2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn cxx_compat_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror despite compiler version
866 --enable-checking=LIST
867 enable expensive run-time checks. With LIST,
868 enable only specific categories of checks.
869 Categories are: yes,no,all,none,release.
870 Flags are: assert,df,fold,gc,gcac,misc,
871 rtlflag,rtl,runtime,tree,valgrind,types.
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-decimal-float={no,yes,bid,dpd}
883 enable decimal float extension to C. Selecting 'bid'
884 or 'dpd' choses which decimal floating point format
886 --enable-threads enable thread usage for target GCC
887 --enable-threads=LIB use LIB thread package for target GCC
888 --enable-tls enable or disable generation of tls code
889 overriding the assembler check for tls support
890 --enable-objc-gc enable the use of Boehm's garbage collector with
891 the GNU Objective-C runtime
892 --disable-shared don't provide a shared libgcc
893 --enable-intermodule build the compiler in one step
894 --enable-languages=LIST specify which front-ends to build
895 --disable-rpath do not hardcode runtime library paths
896 --enable-initfini-array use .init_array/.fini_array sections
897 --enable-sjlj-exceptions
898 arrange to use setjmp/longjmp exception handling
899 --enable-secureplt enable -msecure-plt by default for PowerPC
900 --disable-win32-registry
901 disable lookup of installation paths in the
902 Registry on Windows hosts
903 --enable-win32-registry enable registry lookup (default)
904 --enable-win32-registry=KEY
905 use KEY instead of GCC version as the last portion
907 --enable-maintainer-mode
908 enable make rules and dependencies not useful
909 (and sometimes confusing) to the casual installer
910 --enable-version-specific-runtime-libs
911 specify that runtime libraries should be
912 installed in a compiler-specific directory
915 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
916 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
917 --with-build-libsubdir=DIR Directory where to find libraries for build system
918 --with-local-prefix=DIR specifies directory to put local include
919 --with-gxx-include-dir=DIR
920 specifies directory to put g++ header files
921 --with-cpp-install-dir=DIR
922 install the user visible C preprocessor in DIR
923 (relative to PREFIX) as well as PREFIX/bin
924 --with-gnu-ld arrange to work with GNU ld.
925 --with-ld arrange to use the specified ld (full pathname)
926 --with-demangler-in-ld try to use demangler in GNU ld.
927 --with-gnu-as arrange to work with GNU as
928 --with-as arrange to use the specified as (full pathname)
929 --with-stabs arrange to use stabs instead of host debug format
930 --with-dwarf2 force the default debug format to be DWARF 2
931 --with-build-sysroot=sysroot
932 use sysroot as the system root during the build
933 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
934 --with-gnu-ld assume the C compiler uses GNU ld default=no
935 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
936 --without-libiconv-prefix don't search for libiconv in includedir and libdir
937 --with-system-libunwind use installed libunwind
938 --with-long-double-128 Use 128-bit long double by default.
939 --with-gc={page,zone} choose the garbage collection mechanism to use
941 --with-system-zlib use installed libz
942 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
943 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
944 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
945 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
947 Some influential environment variables:
948 CC C compiler command
949 CFLAGS C compiler flags
950 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
951 nonstandard directory <lib dir>
952 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
953 headers in a nonstandard directory <include dir>
955 GMPLIBS How to link GMP
956 GMPINC How to find GMP include files
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
964 if test "$ac_init_help" = "recursive"; then
965 # If there are subdirs, report their specific --help.
967 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968 test -d $ac_dir || continue
971 if test "$ac_dir" != .; then
972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973 # A "../" for each directory in $ac_dir_suffix.
974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 ac_dir_suffix= ac_top_builddir=
980 .) # No --srcdir option. We are building in place.
982 if test -z "$ac_top_builddir"; then
985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987 [\\/]* | ?:[\\/]* ) # Absolute path.
988 ac_srcdir=$srcdir$ac_dir_suffix;
989 ac_top_srcdir=$srcdir ;;
991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
998 .) ac_abs_builddir="$ac_dir";;
1001 .) ac_abs_builddir=`pwd`;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 case ${ac_top_builddir}. in
1010 .) ac_abs_top_builddir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1019 .) ac_abs_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 case $ac_top_srcdir in
1028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1035 # Check for guested configure; otherwise get Cygnus style configure.
1036 if test -f $ac_srcdir/configure.gnu; then
1038 $SHELL $ac_srcdir/configure.gnu --help=recursive
1039 elif test -f $ac_srcdir/configure; then
1041 $SHELL $ac_srcdir/configure --help=recursive
1042 elif test -f $ac_srcdir/configure.ac ||
1043 test -f $ac_srcdir/configure.in; then
1045 $ac_configure --help
1047 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59. Invocation command line was
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1103 test -z "$as_dir" && as_dir=.
1104 echo "PATH: $as_dir"
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1128 ac_must_keep_next=false
1134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1138 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1142 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145 if test $ac_must_keep_next = true; then
1146 ac_must_keep_next=false # Got value, back to normal.
1149 *=* | --config-cache | -C | -disable-* | --disable-* \
1150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152 | -with-* | --with-* | -without-* | --without-* | --x)
1153 case "$ac_configure_args0 " in
1154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1157 -* ) ac_must_keep_next=true ;;
1160 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161 # Get rid of the leading space.
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log. We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176 # Save into config.log some information that might help in debugging.
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1186 # The following way of writing the cache mishandles newlines in values,
1189 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1209 for ac_var in $ac_subst_vars
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1216 if test -n "$ac_subst_files"; then
1223 for ac_var in $ac_subst_files
1225 eval ac_val=$`echo $ac_var`
1226 echo "$ac_var='"'"'$ac_val'"'"'"
1231 if test -s confdefs.h; then
1238 sed "/^$/d" confdefs.h | sort
1241 test "$ac_signal" != 0 &&
1242 echo "$as_me: caught signal $ac_signal"
1243 echo "$as_me: exit $exit_status"
1245 rm -f core *.core &&
1246 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1249 for ac_signal in 1 2 13 15; do
1250 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1259 # Predefined preprocessor variables.
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289 if test "x$prefix" != xNONE; then
1290 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295 for ac_site_file in $CONFIG_SITE; do
1296 if test -r "$ac_site_file"; then
1297 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299 sed 's/^/| /' "$ac_site_file" >&5
1304 if test -r "$cache_file"; then
1305 # Some versions of bash will fail to source /dev/null (special
1306 # files actually), so we avoid doing that.
1307 if test -f "$cache_file"; then
1308 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1311 [\\/]* | ?:[\\/]* ) . $cache_file;;
1312 *) . ./$cache_file;;
1316 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1321 # Check that the precious variables saved in the cache have kept the same
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327 eval ac_new_set=\$ac_env_${ac_var}_set
1328 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329 eval ac_new_val="\$ac_env_${ac_var}_value"
1330 case $ac_old_set,$ac_new_set in
1332 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334 ac_cache_corrupted=: ;;
1336 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1341 if test "x$ac_old_val" != "x$ac_new_val"; then
1342 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1345 echo "$as_me: former value: $ac_old_val" >&2;}
1346 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1347 echo "$as_me: current value: $ac_new_val" >&2;}
1348 ac_cache_corrupted=:
1351 # Pass precious variables to config.status.
1352 if test "$ac_new_set" = set; then
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356 *) ac_arg=$ac_var=$ac_new_val ;;
1358 case " $ac_configure_args " in
1359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1360 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1364 if $ac_cache_corrupted; then
1365 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369 { (exit 1); exit 1; }; }
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1400 gcc_version=`cat $srcdir/BASE-VER`
1402 # Determine the host, build, and target systems
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1409 elif test -f $ac_dir/install.sh; then
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1413 elif test -f $ac_dir/shtool; then
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1509 program_prefix=${target_alias}-
1511 # Determine the noncanonical target name, for directory use.
1512 case ${build_alias} in
1513 "") build_noncanonical=${build} ;;
1514 *) build_noncanonical=${build_alias} ;;
1517 case ${host_alias} in
1518 "") host_noncanonical=${build_noncanonical} ;;
1519 *) host_noncanonical=${host_alias} ;;
1522 case ${target_alias} in
1523 "") target_noncanonical=${host_noncanonical} ;;
1524 *) target_noncanonical=${target_alias} ;;
1530 # Determine the target- and build-specific subdirectories
1532 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1533 # have matching libraries, they should use host libraries: Makefile.tpl
1534 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1535 # However, they still use the build modules, because the corresponding
1536 # host modules (e.g. bison) are only built for the host when bootstrap
1538 # - build_subdir is where we find build modules, and never changes.
1539 # - build_libsubdir is where we find build libraries, and can be overridden.
1541 # Prefix 'build-' so this never conflicts with target_subdir.
1542 build_subdir="build-${build_noncanonical}"
1544 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1545 if test "${with_build_libsubdir+set}" = set; then
1546 withval="$with_build_libsubdir"
1547 build_libsubdir="$withval"
1549 build_libsubdir="$build_subdir"
1551 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1552 if ( test $srcdir = . && test -d gcc ) \
1553 || test -d $srcdir/../host-${host_noncanonical}; then
1554 host_subdir="host-${host_noncanonical}"
1559 target_subdir=${target_noncanonical}
1562 # Set program_transform_name
1563 test "$program_prefix" != NONE &&
1564 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1565 # Use a double $ so make ignores it.
1566 test "$program_suffix" != NONE &&
1567 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1568 # Double any \ or $. echo might interpret backslashes.
1569 # By default was `s,x,x', remove it if useless.
1570 cat <<\_ACEOF >conftest.sed
1571 s/[\\$]/&&/g;s/;s,x,x,$//
1573 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1577 # Check for bogus environment variables.
1578 # Test if LIBRARY_PATH contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # LIBRARY_PATH contains the current directory if one of the following
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1586 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1587 case ${LIBRARY_PATH} in
1588 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1589 library_path_setting="contains current directory"
1592 library_path_setting="ok"
1595 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1596 echo "${ECHO_T}$library_path_setting" >&6
1597 if test "$library_path_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** LIBRARY_PATH shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** LIBRARY_PATH shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606 { (exit 1); exit 1; }; }
1609 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1610 # since this would lead to problems installing/building glibc.
1611 # GCC_EXEC_PREFIX contains the current directory if one of the following
1613 # - one of the terminals (":" and ";") is the first or last sign
1614 # - two terminals occur directly after each other
1615 # - the path contains an element with a dot in it
1616 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1617 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1618 case ${GCC_EXEC_PREFIX} in
1619 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1620 gcc_exec_prefix_setting="contains current directory"
1623 gcc_exec_prefix_setting="ok"
1626 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1627 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1628 if test "$gcc_exec_prefix_setting" != "ok"; then
1629 { { echo "$as_me:$LINENO: error:
1630 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1631 *** building gcc. Please change the environment variable
1632 *** and run configure again." >&5
1633 echo "$as_me: error:
1634 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1635 *** building gcc. Please change the environment variable
1636 *** and run configure again." >&2;}
1637 { (exit 1); exit 1; }; }
1644 # Specify the local prefix
1647 # Check whether --with-local-prefix or --without-local-prefix was given.
1648 if test "${with_local_prefix+set}" = set; then
1649 withval="$with_local_prefix"
1650 case "${withval}" in
1651 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1652 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1653 { (exit 1); exit 1; }; } ;;
1655 *) local_prefix=$with_local_prefix ;;
1659 # Default local prefix if it is empty
1660 if test x$local_prefix = x; then
1661 local_prefix=/usr/local
1664 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1665 # passed in by the toplevel make and thus we'd get different behavior
1666 # depending on where we built the sources.
1667 gcc_gxx_include_dir=
1668 # Specify the g++ header file directory
1670 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1671 if test "${with_gxx_include_dir+set}" = set; then
1672 withval="$with_gxx_include_dir"
1673 case "${withval}" in
1674 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1675 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1676 { (exit 1); exit 1; }; } ;;
1678 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1682 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1683 if test x${gcc_gxx_include_dir} = x; then
1684 if test x${enable_version_specific_runtime_libs} = xyes; then
1685 gcc_gxx_include_dir='${libsubdir}/include/c++'
1687 libstdcxx_incdir='include/c++/$(version)'
1688 if test x$host != x$target; then
1689 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1691 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1696 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1697 if test "${with_cpp_install_dir+set}" = set; then
1698 withval="$with_cpp_install_dir"
1699 if test x$withval = xyes; then
1700 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1701 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1702 { (exit 1); exit 1; }; }
1703 elif test x$withval != xno; then
1704 cpp_install_dir=$withval
1708 # We would like to our source tree to be readonly. However when releases or
1709 # pre-releases are generated, the flex/bison generated files as well as the
1710 # various formats of manuals need to be included along with the rest of the
1711 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1714 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1715 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1716 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1717 if test "${enable_generated_files_in_srcdir+set}" = set; then
1718 enableval="$enable_generated_files_in_srcdir"
1719 generated_files_in_srcdir=$enableval
1721 generated_files_in_srcdir=no
1724 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1725 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1727 if test "$generated_files_in_srcdir" = "yes"; then
1734 # -------------------
1735 # Find default linker
1736 # -------------------
1740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1741 if test "${with_gnu_ld+set}" = set; then
1742 withval="$with_gnu_ld"
1743 gnu_ld_flag="$with_gnu_ld"
1748 # With pre-defined ld
1750 # Check whether --with-ld or --without-ld was given.
1751 if test "${with_ld+set}" = set; then
1753 DEFAULT_LINKER="$with_ld"
1755 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1756 if test ! -x "$DEFAULT_LINKER"; then
1757 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1758 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1759 { (exit 1); exit 1; }; }
1760 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1764 cat >>confdefs.h <<_ACEOF
1765 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1770 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1772 cat >>confdefs.h <<_ACEOF
1773 #define HAVE_GNU_LD $gnu_ld
1777 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1778 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1779 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1780 if test x"$gnu_ld_flag" = x"no"; then
1781 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1782 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1784 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1785 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1792 # With demangler in GNU ld
1794 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1795 if test "${with_demangler_in_ld+set}" = set; then
1796 withval="$with_demangler_in_ld"
1797 demangler_in_ld="$with_demangler_in_ld"
1802 # ----------------------
1803 # Find default assembler
1804 # ----------------------
1808 # Check whether --with-gnu-as or --without-gnu-as was given.
1809 if test "${with_gnu_as+set}" = set; then
1810 withval="$with_gnu_as"
1811 gas_flag="$with_gnu_as"
1817 # Check whether --with-as or --without-as was given.
1818 if test "${with_as+set}" = set; then
1820 DEFAULT_ASSEMBLER="$with_as"
1822 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1823 if test ! -x "$DEFAULT_ASSEMBLER"; then
1824 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1825 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1826 { (exit 1); exit 1; }; }
1827 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1831 cat >>confdefs.h <<_ACEOF
1832 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1837 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1839 cat >>confdefs.h <<_ACEOF
1840 #define HAVE_GNU_AS $gnu_as
1844 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1845 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1846 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1847 if test x"$gas_flag" = x"no"; then
1848 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1849 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1851 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1852 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1855 echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1863 # If a non-executable a.out is present (e.g. created by GNU as above even if
1864 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1865 # file, even when creating an executable, so an execution test fails.
1866 # Remove possible default executable files to avoid this.
1868 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1869 # Autoconf includes it.
1870 rm -f a.out a.exe b.out
1872 # Find the native compiler
1874 ac_cpp='$CPP $CPPFLAGS'
1875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 if test -n "$CC"; then
1907 echo "$as_me:$LINENO: result: $CC" >&5
1908 echo "${ECHO_T}$CC" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1915 if test -z "$ac_cv_prog_CC"; then
1917 # Extract the first word of "gcc", so it can be a program name with args.
1918 set dummy gcc; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 if test -n "$ac_ct_CC"; then
1925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_ac_ct_CC="gcc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944 if test -n "$ac_ct_CC"; then
1945 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946 echo "${ECHO_T}$ac_ct_CC" >&6
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1957 if test -z "$CC"; then
1958 if test -n "$ac_tool_prefix"; then
1959 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1960 set dummy ${ac_tool_prefix}cc; ac_word=$2
1961 echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976 ac_cv_prog_CC="${ac_tool_prefix}cc"
1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 if test -n "$CC"; then
1987 echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6
1990 echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6
1995 if test -z "$ac_cv_prog_CC"; then
1997 # Extract the first word of "cc", so it can be a program name with args.
1998 set dummy cc; ac_word=$2
1999 echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 if test -n "$ac_ct_CC"; then
2005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014 ac_cv_prog_ac_ct_CC="cc"
2015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024 if test -n "$ac_ct_CC"; then
2025 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026 echo "${ECHO_T}$ac_ct_CC" >&6
2028 echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2038 if test -z "$CC"; then
2039 # Extract the first word of "cc", so it can be a program name with args.
2040 set dummy cc; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_CC+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2058 ac_prog_rejected=yes
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 if test $ac_prog_rejected = yes; then
2069 # We found a bogon in the path, so make sure we never use it.
2070 set dummy $ac_cv_prog_CC
2072 if test $# != 0; then
2073 # We chose a different compiler from the bogus one.
2074 # However, it has the same basename, so the bogon will be chosen
2075 # first if we set CC to just the basename; use the full file name.
2077 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2083 if test -n "$CC"; then
2084 echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2092 if test -z "$CC"; then
2093 if test -n "$ac_tool_prefix"; then
2096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test -n "$CC"; then
2104 ac_cv_prog_CC="$CC" # Let the user override the test.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 if test -n "$CC"; then
2124 echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2131 test -n "$CC" && break
2134 if test -z "$CC"; then
2138 # Extract the first word of "$ac_prog", so it can be a program name with args.
2139 set dummy $ac_prog; ac_word=$2
2140 echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 if test -n "$ac_ct_CC"; then
2146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155 ac_cv_prog_ac_ct_CC="$ac_prog"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2165 if test -n "$ac_ct_CC"; then
2166 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2167 echo "${ECHO_T}$ac_ct_CC" >&6
2169 echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2173 test -n "$ac_ct_CC" && break
2182 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: no acceptable C compiler found in \$PATH
2185 See \`config.log' for more details." >&2;}
2186 { (exit 1); exit 1; }; }
2188 # Provide some information about the compiler.
2189 echo "$as_me:$LINENO:" \
2190 "checking for C compiler version" >&5
2191 ac_compiler=`set X $ac_compile; echo $2`
2192 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2193 (eval $ac_compiler --version </dev/null >&5) 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }
2197 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2198 (eval $ac_compiler -v </dev/null >&5) 2>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }
2202 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2203 (eval $ac_compiler -V </dev/null >&5) 2>&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }
2208 cat >conftest.$ac_ext <<_ACEOF
2211 cat confdefs.h >>conftest.$ac_ext
2212 cat >>conftest.$ac_ext <<_ACEOF
2213 /* end confdefs.h. */
2223 ac_clean_files_save=$ac_clean_files
2224 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2225 # Try to create an executable without -o first, disregard a.out.
2226 # It will help us diagnose broken compilers, and finding out an intuition
2228 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2229 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2230 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2231 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2232 (eval $ac_link_default) 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; then
2236 # Find the output, starting from the most likely. This scheme is
2237 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2240 # Be careful to initialize this variable, since it used to be cached.
2241 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2243 # b.out is created by i960 compilers.
2244 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2246 test -f "$ac_file" || continue
2248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2251 # This is the source file.
2254 # We found the default executable, but exeext='' is most
2258 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2259 # FIXME: I believe we export ac_cv_exeext for Libtool,
2260 # but it would be cool to find out if it's true. Does anybody
2261 # maintain Libtool? --akim.
2269 echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2272 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: C compiler cannot create executables
2275 See \`config.log' for more details." >&2;}
2276 { (exit 77); exit 77; }; }
2279 ac_exeext=$ac_cv_exeext
2280 echo "$as_me:$LINENO: result: $ac_file" >&5
2281 echo "${ECHO_T}$ac_file" >&6
2283 # Check the compiler produces executables we can run. If not, either
2284 # the compiler is broken, or we cross compile.
2285 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2286 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2287 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2288 # If not cross compiling, check that we can run a simple program.
2289 if test "$cross_compiling" != yes; then
2290 if { ac_try='./$ac_file'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; }; then
2298 if test "$cross_compiling" = maybe; then
2301 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2302 If you meant to cross compile, use \`--host'.
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot run C compiled programs.
2305 If you meant to cross compile, use \`--host'.
2306 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }
2311 echo "$as_me:$LINENO: result: yes" >&5
2312 echo "${ECHO_T}yes" >&6
2314 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2315 ac_clean_files=$ac_clean_files_save
2316 # Check the compiler produces executables we can run. If not, either
2317 # the compiler is broken, or we cross compile.
2318 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2319 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2320 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2321 echo "${ECHO_T}$cross_compiling" >&6
2323 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2324 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2326 (eval $ac_link) 2>&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; then
2330 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2331 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2332 # work properly (i.e., refer to `conftest.exe'), while it won't with
2334 for ac_file in conftest.exe conftest conftest.*; do
2335 test -f "$ac_file" || continue
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest$ac_cv_exeext
2353 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2354 echo "${ECHO_T}$ac_cv_exeext" >&6
2356 rm -f conftest.$ac_ext
2357 EXEEXT=$ac_cv_exeext
2359 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2360 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2361 if test "${ac_cv_objext+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.$ac_ext <<_ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2379 rm -f conftest.o conftest.obj
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; then
2385 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2388 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2396 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2397 See \`config.log' for more details." >&5
2398 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2399 See \`config.log' for more details." >&2;}
2400 { (exit 1); exit 1; }; }
2403 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2405 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2406 echo "${ECHO_T}$ac_cv_objext" >&6
2407 OBJEXT=$ac_cv_objext
2409 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2410 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2411 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1 >conftest.err
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2465 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2466 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2467 GCC=`test $ac_compiler_gnu = yes && echo yes`
2468 ac_test_CFLAGS=${CFLAGS+set}
2469 ac_save_CFLAGS=$CFLAGS
2471 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2472 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2473 if test "${ac_cv_prog_cc_g+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 cat >conftest.$ac_ext <<_ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2495 grep -v '^ *+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2523 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2524 if test "$ac_test_CFLAGS" = set; then
2525 CFLAGS=$ac_save_CFLAGS
2526 elif test $ac_cv_prog_cc_g = yes; then
2527 if test "$GCC" = yes; then
2533 if test "$GCC" = yes; then
2539 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2540 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2541 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 ac_cv_prog_cc_stdc=no
2546 cat >conftest.$ac_ext <<_ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2554 #include <sys/types.h>
2555 #include <sys/stat.h>
2556 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2557 struct buf { int x; };
2558 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2559 static char *e (p, i)
2565 static char *f (char * (*g) (char **, int), char **p, ...)
2570 s = g (p, va_arg (v,int));
2575 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2576 function prototypes and stuff, but not '\xHH' hex character constants.
2577 These don't provoke an error unfortunately, instead are silently treated
2578 as 'x'. The following induces an error, until -std1 is added to get
2579 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2580 array size at least. It's necessary to write '\x00'==0 to get something
2581 that's true only with -std1. */
2582 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2584 int test (int i, double x);
2585 struct s1 {int (*f) (int a);};
2586 struct s2 {int (*f) (double a);};
2587 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2593 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2598 # Don't try gcc -ansi; that turns off useful extensions and
2599 # breaks some systems' header files.
2600 # AIX -qlanglvl=ansi
2601 # Ultrix and OSF/1 -std1
2602 # HP-UX 10.20 and later -Ae
2603 # HP-UX older versions -Aa -D_HPUX_SOURCE
2604 # SVR4 -Xc -D__EXTENSIONS__
2605 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2607 CC="$ac_save_CC $ac_arg"
2608 rm -f conftest.$ac_objext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610 (eval $ac_compile) 2>conftest.er1
2612 grep -v '^ *+' conftest.er1 >conftest.err
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -z "$ac_c_werror_flag"
2618 || test ! -s conftest.err'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; } &&
2624 { ac_try='test -s conftest.$ac_objext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 ac_cv_prog_cc_stdc=$ac_arg
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f conftest.err conftest.$ac_objext
2639 rm -f conftest.$ac_ext conftest.$ac_objext
2644 case "x$ac_cv_prog_cc_stdc" in
2646 echo "$as_me:$LINENO: result: none needed" >&5
2647 echo "${ECHO_T}none needed" >&6 ;;
2649 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2650 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2651 CC="$CC $ac_cv_prog_cc_stdc" ;;
2654 # Some people use a C++ compiler to compile C. Since we use `exit',
2655 # in C++ we need to declare it. In case someone uses the same compiler
2656 # for both compiling C and C++ we need to have the C++ compiler decide
2657 # the declaration of exit, since it's the most demanding environment.
2658 cat >conftest.$ac_ext <<_ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665 (eval $ac_compile) 2>conftest.er1
2667 grep -v '^ *+' conftest.er1 >conftest.err
2669 cat conftest.err >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -z "$ac_c_werror_flag"
2673 || test ! -s conftest.err'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; } &&
2679 { ac_try='test -s conftest.$ac_objext'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2685 for ac_declaration in \
2687 'extern "C" void std::exit (int) throw (); using std::exit;' \
2688 'extern "C" void std::exit (int); using std::exit;' \
2689 'extern "C" void exit (int) throw ();' \
2690 'extern "C" void exit (int);' \
2693 cat >conftest.$ac_ext <<_ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711 (eval $ac_compile) 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag"
2719 || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest.$ac_objext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739 cat >conftest.$ac_ext <<_ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>conftest.er1
2758 grep -v '^ *+' conftest.er1 >conftest.err
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -z "$ac_c_werror_flag"
2764 || test ! -s conftest.err'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; } &&
2770 { ac_try='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 if test -n "$ac_declaration"; then
2786 echo '#ifdef __cplusplus' >>confdefs.h
2787 echo $ac_declaration >>confdefs.h
2788 echo '#endif' >>confdefs.h
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 if test "x$CC" != xcc; then
2804 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2805 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2807 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2808 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2810 set dummy $CC; ac_cc=`echo $2 |
2811 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2812 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 cat >conftest.$ac_ext <<_ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2830 # Make sure it works both with $CC and with simple cc.
2831 # We do the test twice because some compilers refuse to overwrite an
2832 # existing .o file with -o, though they will create one.
2833 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2834 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } &&
2839 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); };
2845 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2846 if test "x$CC" != xcc; then
2847 # Test first that cc exists at all.
2848 if { ac_try='cc -c conftest.$ac_ext >&5'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2855 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); };
2869 # cc exists but doesn't like -o.
2870 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2875 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2880 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2881 echo "$as_me:$LINENO: result: yes" >&5
2882 echo "${ECHO_T}yes" >&6
2884 echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2887 cat >>confdefs.h <<\_ACEOF
2888 #define NO_MINUS_C_MINUS_O 1
2893 # expand $ac_aux_dir to an absolute path
2894 am_aux_dir=`cd $ac_aux_dir && pwd`
2896 # FIXME: we rely on the cache variable name because
2897 # there is no other way.
2899 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2900 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2901 # Losing compiler, so override with the script.
2902 # FIXME: It is wrong to rewrite CC.
2903 # But if we don't then we get into trouble of one sort or another.
2904 # A longer-term fix would be to have automake use am__CC in this case,
2905 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2906 CC="$am_aux_dir/compile $CC"
2909 # autoconf is lame and doesn't give us any substitution variable for this.
2910 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2911 NO_MINUS_C_MINUS_O=yes
2913 OUTPUT_OPTION='-o $@'
2918 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2919 # optimizations to be activated explicitly by the toplevel.
2921 */prev-gcc/xgcc*) ;;
2922 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2926 # -------------------------
2927 # Check C compiler features
2928 # -------------------------
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2936 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2937 # On Suns, sometimes $CPP names a directory.
2938 if test -n "$CPP" && test -d "$CPP"; then
2941 if test -z "$CPP"; then
2942 if test "${ac_cv_prog_CPP+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 # Double quotes because CPP needs to be expanded
2946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2949 for ac_c_preproc_warn_flag in '' yes
2951 # Use a header file that comes with gcc, so configuring glibc
2952 # with a fresh cross-compiler works.
2953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2954 # <limits.h> exists even on freestanding compilers.
2955 # On the NeXT, cc -E runs the code through the compiler's parser,
2956 # not just through cpp. "Syntax error" is here to catch this case.
2957 cat >conftest.$ac_ext <<_ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2964 # include <limits.h>
2966 # include <assert.h>
2970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2973 grep -v '^ *+' conftest.er1 >conftest.err
2975 cat conftest.err >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } >/dev/null; then
2978 if test -s conftest.err; then
2979 ac_cpp_err=$ac_c_preproc_warn_flag
2980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2987 if test -z "$ac_cpp_err"; then
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2993 # Broken: fails on valid input.
2996 rm -f conftest.err conftest.$ac_ext
2998 # OK, works on sane cases. Now check whether non-existent headers
2999 # can be detected and how.
3000 cat >conftest.$ac_ext <<_ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 #include <ac_nonexistent.h>
3008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3011 grep -v '^ *+' conftest.er1 >conftest.err
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } >/dev/null; then
3016 if test -s conftest.err; then
3017 ac_cpp_err=$ac_c_preproc_warn_flag
3018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3025 if test -z "$ac_cpp_err"; then
3026 # Broken: success on invalid input.
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3032 # Passes both tests.
3036 rm -f conftest.err conftest.$ac_ext
3039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3040 rm -f conftest.err conftest.$ac_ext
3041 if $ac_preproc_ok; then
3053 echo "$as_me:$LINENO: result: $CPP" >&5
3054 echo "${ECHO_T}$CPP" >&6
3056 for ac_c_preproc_warn_flag in '' yes
3058 # Use a header file that comes with gcc, so configuring glibc
3059 # with a fresh cross-compiler works.
3060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061 # <limits.h> exists even on freestanding compilers.
3062 # On the NeXT, cc -E runs the code through the compiler's parser,
3063 # not just through cpp. "Syntax error" is here to catch this case.
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3071 # include <limits.h>
3073 # include <assert.h>
3077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3080 grep -v '^ *+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } >/dev/null; then
3085 if test -s conftest.err; then
3086 ac_cpp_err=$ac_c_preproc_warn_flag
3087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3094 if test -z "$ac_cpp_err"; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 # Broken: fails on valid input.
3103 rm -f conftest.err conftest.$ac_ext
3105 # OK, works on sane cases. Now check whether non-existent headers
3106 # can be detected and how.
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113 #include <ac_nonexistent.h>
3115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3118 grep -v '^ *+' conftest.er1 >conftest.err
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } >/dev/null; then
3123 if test -s conftest.err; then
3124 ac_cpp_err=$ac_c_preproc_warn_flag
3125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3132 if test -z "$ac_cpp_err"; then
3133 # Broken: success on invalid input.
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 # Passes both tests.
3143 rm -f conftest.err conftest.$ac_ext
3146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147 rm -f conftest.err conftest.$ac_ext
3148 if $ac_preproc_ok; then
3151 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3152 See \`config.log' for more details." >&5
3153 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3154 See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; }
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165 echo "$as_me:$LINENO: checking for inline" >&5
3166 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3167 if test "${ac_cv_c_inline+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 for ac_kw in inline __inline__ __inline; do
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3180 static $ac_kw foo_t static_foo () {return 0; }
3181 $ac_kw foo_t foo () {return 0; }
3185 rm -f conftest.$ac_objext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag"
3195 || test ! -s conftest.err'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3207 ac_cv_c_inline=$ac_kw; break
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3218 echo "${ECHO_T}$ac_cv_c_inline" >&6
3221 case $ac_cv_c_inline in
3224 case $ac_cv_c_inline in
3226 *) ac_val=$ac_cv_c_inline;;
3228 cat >>confdefs.h <<_ACEOF
3230 #define inline $ac_val
3237 # sizeof(char) is 1 by definition.
3239 echo "$as_me:$LINENO: checking for egrep" >&5
3240 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3241 if test "${ac_cv_prog_egrep+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3245 then ac_cv_prog_egrep='grep -E'
3246 else ac_cv_prog_egrep='egrep'
3249 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3250 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3251 EGREP=$ac_cv_prog_egrep
3254 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3255 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3256 if test "${ac_cv_header_stdc+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3278 rm -f conftest.$ac_objext
3279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280 (eval $ac_compile) 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -z "$ac_c_werror_flag"
3288 || test ! -s conftest.err'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; } &&
3294 { ac_try='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 ac_cv_header_stdc=yes
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3305 ac_cv_header_stdc=no
3307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3309 if test $ac_cv_header_stdc = yes; then
3310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3311 cat >conftest.$ac_ext <<_ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3321 $EGREP "memchr" >/dev/null 2>&1; then
3324 ac_cv_header_stdc=no
3330 if test $ac_cv_header_stdc = yes; then
3331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3342 $EGREP "free" >/dev/null 2>&1; then
3345 ac_cv_header_stdc=no
3351 if test $ac_cv_header_stdc = yes; then
3352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3353 if test "$cross_compiling" = yes; then
3356 cat >conftest.$ac_ext <<_ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3363 #if ((' ' & 0x0FF) == 0x020)
3364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3367 # define ISLOWER(c) \
3368 (('a' <= (c) && (c) <= 'i') \
3369 || ('j' <= (c) && (c) <= 'r') \
3370 || ('s' <= (c) && (c) <= 'z'))
3371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3379 for (i = 0; i < 256; i++)
3380 if (XOR (islower (i), ISLOWER (i))
3381 || toupper (i) != TOUPPER (i))
3386 rm -f conftest$ac_exeext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3388 (eval $ac_link) 2>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3399 echo "$as_me: program exited with status $ac_status" >&5
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3404 ac_cv_header_stdc=no
3406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3410 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3411 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3412 if test $ac_cv_header_stdc = yes; then
3414 cat >>confdefs.h <<\_ACEOF
3415 #define STDC_HEADERS 1
3420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3430 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3431 inttypes.h stdint.h unistd.h
3433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3434 echo "$as_me:$LINENO: checking for $ac_header" >&5
3435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445 $ac_includes_default
3447 #include <$ac_header>
3449 rm -f conftest.$ac_objext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451 (eval $ac_compile) 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try='test -z "$ac_c_werror_flag"
3459 || test ! -s conftest.err'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try='test -s conftest.$ac_objext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 eval "$as_ac_Header=yes"
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 eval "$as_ac_Header=no"
3478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3483 cat >>confdefs.h <<_ACEOF
3484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3492 echo "$as_me:$LINENO: checking for void *" >&5
3493 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3494 if test "${ac_cv_type_void_p+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 $ac_includes_default
3509 if (sizeof (void *))
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3519 grep -v '^ *+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_c_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_cv_type_void_p=yes
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 ac_cv_type_void_p=no
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3546 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3547 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3549 echo "$as_me:$LINENO: checking size of void *" >&5
3550 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3551 if test "${ac_cv_sizeof_void_p+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 if test "$ac_cv_type_void_p" = yes; then
3555 # The cast to unsigned long works around a bug in the HP C Compiler
3556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3558 # This bug is HP SR number 8606223364.
3559 if test "$cross_compiling" = yes; then
3560 # Depending upon the size, compute the lo and hi bounds.
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567 $ac_includes_default
3571 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3578 rm -f conftest.$ac_objext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580 (eval $ac_compile) 2>conftest.er1
3582 grep -v '^ *+' conftest.er1 >conftest.err
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try='test -z "$ac_c_werror_flag"
3588 || test ! -s conftest.err'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; } &&
3594 { ac_try='test -s conftest.$ac_objext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3602 cat >conftest.$ac_ext <<_ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3608 $ac_includes_default
3612 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3619 rm -f conftest.$ac_objext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3621 (eval $ac_compile) 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -z "$ac_c_werror_flag"
3629 || test ! -s conftest.err'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; } &&
3635 { ac_try='test -s conftest.$ac_objext'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 ac_hi=$ac_mid; break
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 ac_lo=`expr $ac_mid + 1`
3647 if test $ac_lo -le $ac_mid; then
3651 ac_mid=`expr 2 '*' $ac_mid + 1`
3653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 $ac_includes_default
3669 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3676 rm -f conftest.$ac_objext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>conftest.er1
3680 grep -v '^ *+' conftest.er1 >conftest.err
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -z "$ac_c_werror_flag"
3686 || test ! -s conftest.err'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest.$ac_objext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3700 cat >conftest.$ac_ext <<_ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 $ac_includes_default
3710 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>conftest.er1
3721 grep -v '^ *+' conftest.er1 >conftest.err
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -z "$ac_c_werror_flag"
3727 || test ! -s conftest.err'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 ac_lo=$ac_mid; break
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 ac_hi=`expr '(' $ac_mid ')' - 1`
3745 if test $ac_mid -le $ac_hi; then
3749 ac_mid=`expr 2 '*' $ac_mid`
3751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3762 # Binary search between lo and hi bounds.
3763 while test "x$ac_lo" != "x$ac_hi"; do
3764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 $ac_includes_default
3775 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1 >conftest.err
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 ac_lo=`expr '(' $ac_mid ')' + 1`
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3815 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3816 See \`config.log' for more details." >&5
3817 echo "$as_me: error: cannot compute sizeof (void *), 77
3818 See \`config.log' for more details." >&2;}
3819 { (exit 1); exit 1; }; } ;;
3822 if test "$cross_compiling" = yes; then
3823 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3824 See \`config.log' for more details." >&5
3825 echo "$as_me: error: cannot run test program while cross compiling
3826 See \`config.log' for more details." >&2;}
3827 { (exit 1); exit 1; }; }
3829 cat >conftest.$ac_ext <<_ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3835 $ac_includes_default
3836 long longval () { return (long) (sizeof (void *)); }
3837 unsigned long ulongval () { return (long) (sizeof (void *)); }
3844 FILE *f = fopen ("conftest.val", "w");
3847 if (((long) (sizeof (void *))) < 0)
3849 long i = longval ();
3850 if (i != ((long) (sizeof (void *))))
3852 fprintf (f, "%ld\n", i);
3856 unsigned long i = ulongval ();
3857 if (i != ((long) (sizeof (void *))))
3859 fprintf (f, "%lu\n", i);
3861 exit (ferror (f) || fclose (f) != 0);
3867 rm -f conftest$ac_exeext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3869 (eval $ac_link) 2>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_sizeof_void_p=`cat conftest.val`
3880 echo "$as_me: program exited with status $ac_status" >&5
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3885 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: cannot compute sizeof (void *), 77
3888 See \`config.log' for more details." >&2;}
3889 { (exit 1); exit 1; }; }
3891 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3896 ac_cv_sizeof_void_p=0
3899 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3900 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3901 cat >>confdefs.h <<_ACEOF
3902 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3906 echo "$as_me:$LINENO: checking for short" >&5
3907 echo $ECHO_N "checking for short... $ECHO_C" >&6
3908 if test "${ac_cv_type_short+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
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
3929 rm -f conftest.$ac_objext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_c_werror_flag"
3939 || test ! -s conftest.err'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest.$ac_objext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 ac_cv_type_short=yes
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3960 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3961 echo "${ECHO_T}$ac_cv_type_short" >&6
3963 echo "$as_me:$LINENO: checking size of short" >&5
3964 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3965 if test "${ac_cv_sizeof_short+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 if test "$ac_cv_type_short" = yes; then
3969 # The cast to unsigned long works around a bug in the HP C Compiler
3970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3972 # This bug is HP SR number 8606223364.
3973 if test "$cross_compiling" = yes; then
3974 # Depending upon the size, compute the lo and hi bounds.
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 $ac_includes_default
3985 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3992 rm -f conftest.$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3996 grep -v '^ *+' conftest.er1 >conftest.err
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4016 cat >conftest.$ac_ext <<_ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 $ac_includes_default
4026 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 ac_hi=$ac_mid; break
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 ac_lo=`expr $ac_mid + 1`
4061 if test $ac_lo -le $ac_mid; then
4065 ac_mid=`expr 2 '*' $ac_mid + 1`
4067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 $ac_includes_default
4083 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>conftest.er1
4094 grep -v '^ *+' conftest.er1 >conftest.err
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -z "$ac_c_werror_flag"
4100 || test ! -s conftest.err'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest.$ac_objext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 $ac_includes_default
4124 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4131 rm -f conftest.$ac_objext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133 (eval $ac_compile) 2>conftest.er1
4135 grep -v '^ *+' conftest.er1 >conftest.err
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try='test -z "$ac_c_werror_flag"
4141 || test ! -s conftest.err'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 ac_lo=$ac_mid; break
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4158 ac_hi=`expr '(' $ac_mid ')' - 1`
4159 if test $ac_mid -le $ac_hi; then
4163 ac_mid=`expr 2 '*' $ac_mid`
4165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 # Binary search between lo and hi bounds.
4177 while test "x$ac_lo" != "x$ac_hi"; do
4178 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4179 cat >conftest.$ac_ext <<_ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 $ac_includes_default
4189 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4196 rm -f conftest.$ac_objext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4198 (eval $ac_compile) 2>conftest.er1
4200 grep -v '^ *+' conftest.er1 >conftest.err
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } &&
4205 { ac_try='test -z "$ac_c_werror_flag"
4206 || test ! -s conftest.err'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; } &&
4212 { ac_try='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 ac_lo=`expr '(' $ac_mid ')' + 1`
4225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228 ?*) ac_cv_sizeof_short=$ac_lo;;
4229 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4230 See \`config.log' for more details." >&5
4231 echo "$as_me: error: cannot compute sizeof (short), 77
4232 See \`config.log' for more details." >&2;}
4233 { (exit 1); exit 1; }; } ;;
4236 if test "$cross_compiling" = yes; then
4237 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4238 See \`config.log' for more details." >&5
4239 echo "$as_me: error: cannot run test program while cross compiling
4240 See \`config.log' for more details." >&2;}
4241 { (exit 1); exit 1; }; }
4243 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 $ac_includes_default
4250 long longval () { return (long) (sizeof (short)); }
4251 unsigned long ulongval () { return (long) (sizeof (short)); }
4258 FILE *f = fopen ("conftest.val", "w");
4261 if (((long) (sizeof (short))) < 0)
4263 long i = longval ();
4264 if (i != ((long) (sizeof (short))))
4266 fprintf (f, "%ld\n", i);
4270 unsigned long i = ulongval ();
4271 if (i != ((long) (sizeof (short))))
4273 fprintf (f, "%lu\n", i);
4275 exit (ferror (f) || fclose (f) != 0);
4281 rm -f conftest$ac_exeext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283 (eval $ac_link) 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_sizeof_short=`cat conftest.val`
4294 echo "$as_me: program exited with status $ac_status" >&5
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4300 See \`config.log' for more details." >&5
4301 echo "$as_me: error: cannot compute sizeof (short), 77
4302 See \`config.log' for more details." >&2;}
4303 { (exit 1); exit 1; }; }
4305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4310 ac_cv_sizeof_short=0
4313 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4314 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4315 cat >>confdefs.h <<_ACEOF
4316 #define SIZEOF_SHORT $ac_cv_sizeof_short
4320 echo "$as_me:$LINENO: checking for int" >&5
4321 echo $ECHO_N "checking for int... $ECHO_C" >&6
4322 if test "${ac_cv_type_int+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
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
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -z "$ac_c_werror_flag"
4353 || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4374 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4375 echo "${ECHO_T}$ac_cv_type_int" >&6
4377 echo "$as_me:$LINENO: checking size of int" >&5
4378 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4379 if test "${ac_cv_sizeof_int+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 if test "$ac_cv_type_int" = yes; then
4383 # The cast to unsigned long works around a bug in the HP C Compiler
4384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4386 # This bug is HP SR number 8606223364.
4387 if test "$cross_compiling" = yes; then
4388 # Depending upon the size, compute the lo and hi bounds.
4389 cat >conftest.$ac_ext <<_ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4395 $ac_includes_default
4399 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4406 rm -f conftest.$ac_objext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>conftest.er1
4410 grep -v '^ *+' conftest.er1 >conftest.err
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4430 cat >conftest.$ac_ext <<_ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 $ac_includes_default
4440 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>conftest.er1
4451 grep -v '^ *+' conftest.er1 >conftest.err
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -z "$ac_c_werror_flag"
4457 || test ! -s conftest.err'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; } &&
4463 { ac_try='test -s conftest.$ac_objext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_hi=$ac_mid; break
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 ac_lo=`expr $ac_mid + 1`
4475 if test $ac_lo -le $ac_mid; then
4479 ac_mid=`expr 2 '*' $ac_mid + 1`
4481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4497 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>conftest.er1
4508 grep -v '^ *+' conftest.er1 >conftest.err
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag"
4514 || test ! -s conftest.err'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; } &&
4520 { ac_try='test -s conftest.$ac_objext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 $ac_includes_default
4538 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>conftest.er1
4549 grep -v '^ *+' conftest.er1 >conftest.err
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_c_werror_flag"
4555 || test ! -s conftest.err'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try='test -s conftest.$ac_objext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 ac_lo=$ac_mid; break
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4572 ac_hi=`expr '(' $ac_mid ')' - 1`
4573 if test $ac_mid -le $ac_hi; then
4577 ac_mid=`expr 2 '*' $ac_mid`
4579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4590 # Binary search between lo and hi bounds.
4591 while test "x$ac_lo" != "x$ac_hi"; do
4592 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4593 cat >conftest.$ac_ext <<_ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 $ac_includes_default
4603 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612 (eval $ac_compile) 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try='test -z "$ac_c_werror_flag"
4620 || test ! -s conftest.err'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; } &&
4626 { ac_try='test -s conftest.$ac_objext'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4637 ac_lo=`expr '(' $ac_mid ')' + 1`
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 ?*) ac_cv_sizeof_int=$ac_lo;;
4643 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4644 See \`config.log' for more details." >&5
4645 echo "$as_me: error: cannot compute sizeof (int), 77
4646 See \`config.log' for more details." >&2;}
4647 { (exit 1); exit 1; }; } ;;
4650 if test "$cross_compiling" = yes; then
4651 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4652 See \`config.log' for more details." >&5
4653 echo "$as_me: error: cannot run test program while cross compiling
4654 See \`config.log' for more details." >&2;}
4655 { (exit 1); exit 1; }; }
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 $ac_includes_default
4664 long longval () { return (long) (sizeof (int)); }
4665 unsigned long ulongval () { return (long) (sizeof (int)); }
4672 FILE *f = fopen ("conftest.val", "w");
4675 if (((long) (sizeof (int))) < 0)
4677 long i = longval ();
4678 if (i != ((long) (sizeof (int))))
4680 fprintf (f, "%ld\n", i);
4684 unsigned long i = ulongval ();
4685 if (i != ((long) (sizeof (int))))
4687 fprintf (f, "%lu\n", i);
4689 exit (ferror (f) || fclose (f) != 0);
4695 rm -f conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697 (eval $ac_link) 2>&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_cv_sizeof_int=`cat conftest.val`
4708 echo "$as_me: program exited with status $ac_status" >&5
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4713 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4714 See \`config.log' for more details." >&5
4715 echo "$as_me: error: cannot compute sizeof (int), 77
4716 See \`config.log' for more details." >&2;}
4717 { (exit 1); exit 1; }; }
4719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4727 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4728 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4729 cat >>confdefs.h <<_ACEOF
4730 #define SIZEOF_INT $ac_cv_sizeof_int
4734 echo "$as_me:$LINENO: checking for long" >&5
4735 echo $ECHO_N "checking for long... $ECHO_C" >&6
4736 if test "${ac_cv_type_long+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
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
4757 rm -f conftest.$ac_objext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759 (eval $ac_compile) 2>conftest.er1
4761 grep -v '^ *+' conftest.er1 >conftest.err
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } &&
4766 { ac_try='test -z "$ac_c_werror_flag"
4767 || test ! -s conftest.err'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4788 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4789 echo "${ECHO_T}$ac_cv_type_long" >&6
4791 echo "$as_me:$LINENO: checking size of long" >&5
4792 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4793 if test "${ac_cv_sizeof_long+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 if test "$ac_cv_type_long" = yes; then
4797 # The cast to unsigned long works around a bug in the HP C Compiler
4798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4800 # This bug is HP SR number 8606223364.
4801 if test "$cross_compiling" = yes; then
4802 # Depending upon the size, compute the lo and hi bounds.
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 $ac_includes_default
4813 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4824 grep -v '^ *+' conftest.er1 >conftest.err
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -z "$ac_c_werror_flag"
4830 || test ! -s conftest.err'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; } &&
4836 { ac_try='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4844 cat >conftest.$ac_ext <<_ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 $ac_includes_default
4854 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4865 grep -v '^ *+' conftest.er1 >conftest.err
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -z "$ac_c_werror_flag"
4871 || test ! -s conftest.err'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; } &&
4877 { ac_try='test -s conftest.$ac_objext'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4883 ac_hi=$ac_mid; break
4885 echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4888 ac_lo=`expr $ac_mid + 1`
4889 if test $ac_lo -le $ac_mid; then
4893 ac_mid=`expr 2 '*' $ac_mid + 1`
4895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 cat >conftest.$ac_ext <<_ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 $ac_includes_default
4911 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag"
4928 || test ! -s conftest.err'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4952 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_lo=$ac_mid; break
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 ac_hi=`expr '(' $ac_mid ')' - 1`
4987 if test $ac_mid -le $ac_hi; then
4991 ac_mid=`expr 2 '*' $ac_mid`
4993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
5001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5004 # Binary search between lo and hi bounds.
5005 while test "x$ac_lo" != "x$ac_hi"; do
5006 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5007 cat >conftest.$ac_ext <<_ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 $ac_includes_default
5017 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try='test -z "$ac_c_werror_flag"
5034 || test ! -s conftest.err'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; } &&
5040 { ac_try='test -s conftest.$ac_objext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 ac_lo=`expr '(' $ac_mid ')' + 1`
5053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 ?*) ac_cv_sizeof_long=$ac_lo;;
5057 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5058 See \`config.log' for more details." >&5
5059 echo "$as_me: error: cannot compute sizeof (long), 77
5060 See \`config.log' for more details." >&2;}
5061 { (exit 1); exit 1; }; } ;;
5064 if test "$cross_compiling" = yes; then
5065 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5066 See \`config.log' for more details." >&5
5067 echo "$as_me: error: cannot run test program while cross compiling
5068 See \`config.log' for more details." >&2;}
5069 { (exit 1); exit 1; }; }
5071 cat >conftest.$ac_ext <<_ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 $ac_includes_default
5078 long longval () { return (long) (sizeof (long)); }
5079 unsigned long ulongval () { return (long) (sizeof (long)); }
5086 FILE *f = fopen ("conftest.val", "w");
5089 if (((long) (sizeof (long))) < 0)
5091 long i = longval ();
5092 if (i != ((long) (sizeof (long))))
5094 fprintf (f, "%ld\n", i);
5098 unsigned long i = ulongval ();
5099 if (i != ((long) (sizeof (long))))
5101 fprintf (f, "%lu\n", i);
5103 exit (ferror (f) || fclose (f) != 0);
5109 rm -f conftest$ac_exeext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5111 (eval $ac_link) 2>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 ac_cv_sizeof_long=`cat conftest.val`
5122 echo "$as_me: program exited with status $ac_status" >&5
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5128 See \`config.log' for more details." >&5
5129 echo "$as_me: error: cannot compute sizeof (long), 77
5130 See \`config.log' for more details." >&2;}
5131 { (exit 1); exit 1; }; }
5133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5141 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5142 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5143 cat >>confdefs.h <<_ACEOF
5144 #define SIZEOF_LONG $ac_cv_sizeof_long
5148 echo "$as_me:$LINENO: checking for long long" >&5
5149 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5150 if test "${ac_cv_type_long_long+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
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
5163 if ((long long *) 0)
5165 if (sizeof (long long))
5171 rm -f conftest.$ac_objext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173 (eval $ac_compile) 2>conftest.er1
5175 grep -v '^ *+' conftest.er1 >conftest.err
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -z "$ac_c_werror_flag"
5181 || test ! -s conftest.err'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; } &&
5187 { ac_try='test -s conftest.$ac_objext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 ac_cv_type_long_long=yes
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 ac_cv_type_long_long=no
5200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5202 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5203 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5204 if test $ac_cv_type_long_long = yes; then
5206 cat >>confdefs.h <<_ACEOF
5207 #define HAVE_LONG_LONG 1
5210 echo "$as_me:$LINENO: checking for long long" >&5
5211 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5212 if test "${ac_cv_type_long_long+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 $ac_includes_default
5225 if ((long long *) 0)
5227 if (sizeof (long long))
5233 rm -f conftest.$ac_objext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235 (eval $ac_compile) 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -z "$ac_c_werror_flag"
5243 || test ! -s conftest.err'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; } &&
5249 { ac_try='test -s conftest.$ac_objext'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5255 ac_cv_type_long_long=yes
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5260 ac_cv_type_long_long=no
5262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5264 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5265 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5267 echo "$as_me:$LINENO: checking size of long long" >&5
5268 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5269 if test "${ac_cv_sizeof_long_long+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 if test "$ac_cv_type_long_long" = yes; then
5273 # The cast to unsigned long works around a bug in the HP C Compiler
5274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5276 # This bug is HP SR number 8606223364.
5277 if test "$cross_compiling" = yes; then
5278 # Depending upon the size, compute the lo and hi bounds.
5279 cat >conftest.$ac_ext <<_ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 $ac_includes_default
5289 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5296 rm -f conftest.$ac_objext
5297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5298 (eval $ac_compile) 2>conftest.er1
5300 grep -v '^ *+' conftest.er1 >conftest.err
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -z "$ac_c_werror_flag"
5306 || test ! -s conftest.err'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; } &&
5312 { ac_try='test -s conftest.$ac_objext'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5320 cat >conftest.$ac_ext <<_ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 $ac_includes_default
5330 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339 (eval $ac_compile) 2>conftest.er1
5341 grep -v '^ *+' conftest.er1 >conftest.err
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -z "$ac_c_werror_flag"
5347 || test ! -s conftest.err'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; } &&
5353 { ac_try='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_hi=$ac_mid; break
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 ac_lo=`expr $ac_mid + 1`
5365 if test $ac_lo -le $ac_mid; then
5369 ac_mid=`expr 2 '*' $ac_mid + 1`
5371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 cat >conftest.$ac_ext <<_ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 $ac_includes_default
5387 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5394 rm -f conftest.$ac_objext
5395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396 (eval $ac_compile) 2>conftest.er1
5398 grep -v '^ *+' conftest.er1 >conftest.err
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
5403 { ac_try='test -z "$ac_c_werror_flag"
5404 || test ! -s conftest.err'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; } &&
5410 { ac_try='test -s conftest.$ac_objext'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5418 cat >conftest.$ac_ext <<_ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5424 $ac_includes_default
5428 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5435 rm -f conftest.$ac_objext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437 (eval $ac_compile) 2>conftest.er1
5439 grep -v '^ *+' conftest.er1 >conftest.err
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -z "$ac_c_werror_flag"
5445 || test ! -s conftest.err'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; } &&
5451 { ac_try='test -s conftest.$ac_objext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 ac_lo=$ac_mid; break
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 ac_hi=`expr '(' $ac_mid ')' - 1`
5463 if test $ac_mid -le $ac_hi; then
5467 ac_mid=`expr 2 '*' $ac_mid`
5469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5480 # Binary search between lo and hi bounds.
5481 while test "x$ac_lo" != "x$ac_hi"; do
5482 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5493 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>conftest.er1
5504 grep -v '^ *+' conftest.er1 >conftest.err
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -z "$ac_c_werror_flag"
5510 || test ! -s conftest.err'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try='test -s conftest.$ac_objext'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5527 ac_lo=`expr '(' $ac_mid ')' + 1`
5529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5533 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5534 See \`config.log' for more details." >&5
5535 echo "$as_me: error: cannot compute sizeof (long long), 77
5536 See \`config.log' for more details." >&2;}
5537 { (exit 1); exit 1; }; } ;;
5540 if test "$cross_compiling" = yes; then
5541 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5542 See \`config.log' for more details." >&5
5543 echo "$as_me: error: cannot run test program while cross compiling
5544 See \`config.log' for more details." >&2;}
5545 { (exit 1); exit 1; }; }
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553 $ac_includes_default
5554 long longval () { return (long) (sizeof (long long)); }
5555 unsigned long ulongval () { return (long) (sizeof (long long)); }
5562 FILE *f = fopen ("conftest.val", "w");
5565 if (((long) (sizeof (long long))) < 0)
5567 long i = longval ();
5568 if (i != ((long) (sizeof (long long))))
5570 fprintf (f, "%ld\n", i);
5574 unsigned long i = ulongval ();
5575 if (i != ((long) (sizeof (long long))))
5577 fprintf (f, "%lu\n", i);
5579 exit (ferror (f) || fclose (f) != 0);
5585 rm -f conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587 (eval $ac_link) 2>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 ac_cv_sizeof_long_long=`cat conftest.val`
5598 echo "$as_me: program exited with status $ac_status" >&5
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5603 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5604 See \`config.log' for more details." >&5
5605 echo "$as_me: error: cannot compute sizeof (long long), 77
5606 See \`config.log' for more details." >&2;}
5607 { (exit 1); exit 1; }; }
5609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5614 ac_cv_sizeof_long_long=0
5617 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5618 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5619 cat >>confdefs.h <<_ACEOF
5620 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5626 echo "$as_me:$LINENO: checking for __int64" >&5
5627 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5628 if test "${ac_cv_type___int64+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 $ac_includes_default
5643 if (sizeof (__int64))
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>conftest.er1
5653 grep -v '^ *+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_type___int64=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_cv_type___int64=no
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5680 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5681 echo "${ECHO_T}$ac_cv_type___int64" >&6
5682 if test $ac_cv_type___int64 = yes; then
5684 cat >>confdefs.h <<_ACEOF
5685 #define HAVE___INT64 1
5688 echo "$as_me:$LINENO: checking for __int64" >&5
5689 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5690 if test "${ac_cv_type___int64+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 cat >conftest.$ac_ext <<_ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 $ac_includes_default
5705 if (sizeof (__int64))
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5715 grep -v '^ *+' conftest.er1 >conftest.err
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -z "$ac_c_werror_flag"
5721 || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_type___int64=yes
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 ac_cv_type___int64=no
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5742 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5743 echo "${ECHO_T}$ac_cv_type___int64" >&6
5745 echo "$as_me:$LINENO: checking size of __int64" >&5
5746 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5747 if test "${ac_cv_sizeof___int64+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test "$ac_cv_type___int64" = yes; then
5751 # The cast to unsigned long works around a bug in the HP C Compiler
5752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754 # This bug is HP SR number 8606223364.
5755 if test "$cross_compiling" = yes; then
5756 # Depending upon the size, compute the lo and hi bounds.
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))) >= 0)];
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
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5808 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5819 grep -v '^ *+' conftest.er1 >conftest.err
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_hi=$ac_mid; break
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 ac_lo=`expr $ac_mid + 1`
5843 if test $ac_lo -le $ac_mid; then
5847 ac_mid=`expr 2 '*' $ac_mid + 1`
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
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))) < 0)];
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
5896 cat >conftest.$ac_ext <<_ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 $ac_includes_default
5906 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5913 rm -f conftest.$ac_objext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915 (eval $ac_compile) 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -z "$ac_c_werror_flag"
5923 || test ! -s conftest.err'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 ac_lo=$ac_mid; break
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5940 ac_hi=`expr '(' $ac_mid ')' - 1`
5941 if test $ac_mid -le $ac_hi; then
5945 ac_mid=`expr 2 '*' $ac_mid`
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 # Binary search between lo and hi bounds.
5959 while test "x$ac_lo" != "x$ac_hi"; do
5960 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5971 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_lo=`expr '(' $ac_mid ')' + 1`
6007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010 ?*) ac_cv_sizeof___int64=$ac_lo;;
6011 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6012 See \`config.log' for more details." >&5
6013 echo "$as_me: error: cannot compute sizeof (__int64), 77
6014 See \`config.log' for more details." >&2;}
6015 { (exit 1); exit 1; }; } ;;
6018 if test "$cross_compiling" = yes; then
6019 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6020 See \`config.log' for more details." >&5
6021 echo "$as_me: error: cannot run test program while cross compiling
6022 See \`config.log' for more details." >&2;}
6023 { (exit 1); exit 1; }; }
6025 cat >conftest.$ac_ext <<_ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 $ac_includes_default
6032 long longval () { return (long) (sizeof (__int64)); }
6033 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6040 FILE *f = fopen ("conftest.val", "w");
6043 if (((long) (sizeof (__int64))) < 0)
6045 long i = longval ();
6046 if (i != ((long) (sizeof (__int64))))
6048 fprintf (f, "%ld\n", i);
6052 unsigned long i = ulongval ();
6053 if (i != ((long) (sizeof (__int64))))
6055 fprintf (f, "%lu\n", i);
6057 exit (ferror (f) || fclose (f) != 0);
6063 rm -f conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065 (eval $ac_link) 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6074 ac_cv_sizeof___int64=`cat conftest.val`
6076 echo "$as_me: program exited with status $ac_status" >&5
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6082 See \`config.log' for more details." >&5
6083 echo "$as_me: error: cannot compute sizeof (__int64), 77
6084 See \`config.log' for more details." >&2;}
6085 { (exit 1); exit 1; }; }
6087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6092 ac_cv_sizeof___int64=0
6095 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6096 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6105 # ---------------------
6106 # Warnings and checking
6107 # ---------------------
6109 # Check $CC warning features (if it's GCC).
6110 # We want to use -pedantic, but we don't want warnings about
6113 # * overlong strings
6114 # So, we only use -pedantic if we can disable those warnings.
6117 save_CFLAGS="$CFLAGS"
6118 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6119 -Wmissing-prototypes; do
6120 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6122 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6123 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6124 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6143 rm -f conftest.$ac_objext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145 (eval $ac_compile) 2>conftest.er1
6147 grep -v '^ *+' conftest.er1 >conftest.err
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
6152 { ac_try='test -z "$ac_c_werror_flag"
6153 || test ! -s conftest.err'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; } &&
6159 { ac_try='test -s conftest.$ac_objext'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
6165 eval "$as_acx_Woption=yes"
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6170 eval "$as_acx_Woption=no"
6172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6175 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6176 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6177 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6178 loose_warn="$loose_warn${loose_warn:+ }$option"
6182 CFLAGS="$save_CFLAGS"
6185 save_CFLAGS="$CFLAGS"
6186 for option in -Wc++-compat; do
6187 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6189 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6190 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6191 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 cat >conftest.$ac_ext <<_ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6210 rm -f conftest.$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -z "$ac_c_werror_flag"
6220 || test ! -s conftest.err'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; } &&
6226 { ac_try='test -s conftest.$ac_objext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 eval "$as_acx_Woption=yes"
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 eval "$as_acx_Woption=no"
6239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6243 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6244 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6245 cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6249 CFLAGS="$save_CFLAGS"
6252 save_CFLAGS="$CFLAGS"
6253 for option in -Wold-style-definition \
6254 -Wmissing-format-attribute; do
6255 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6257 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6258 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6259 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 cat >conftest.$ac_ext <<_ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280 (eval $ac_compile) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest.$ac_objext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 eval "$as_acx_Woption=yes"
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 eval "$as_acx_Woption=no"
6307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6311 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6312 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6313 strict_warn="$strict_warn${strict_warn:+ }$option"
6317 CFLAGS="$save_CFLAGS"
6319 if test "$GCC" = yes; then
6320 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6321 -Wno-overlength-strings" >&5
6322 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6323 -Wno-overlength-strings... $ECHO_C" >&6
6324 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 save_CFLAGS="$CFLAGS"
6328 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6329 -Wno-overlength-strings"
6330 cat >conftest.$ac_ext <<_ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6345 rm -f conftest.$ac_objext
6346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347 (eval $ac_compile) 2>conftest.er1
6349 grep -v '^ *+' conftest.er1 >conftest.err
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_c_werror_flag"
6355 || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
6374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375 CFLAGS="$save_CFLAGS"
6377 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6378 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6379 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6380 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6381 -Wno-overlength-strings"
6388 # Check whether --enable-werror-always or --disable-werror-always was given.
6389 if test "${enable_werror_always+set}" = set; then
6390 enableval="$enable_werror_always"
6393 enable_werror_always=no
6395 if test $enable_werror_always = yes; then
6396 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6402 # The above macros do nothing if the compiler is not GCC. However, the
6403 # Makefile has more goo to add other flags, so this variabl is used to
6404 # enables warnings only for GCC.
6406 if test "x$GCC" = "xyes"; then
6407 warn_cflags='$(GCC_WARN_CFLAGS)'
6411 # Enable expensive internal checks
6413 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6417 # Check whether --enable-checking or --disable-checking was given.
6418 if test "${enable_checking+set}" = set; then
6419 enableval="$enable_checking"
6420 ac_checking_flags="${enableval}"
6423 # Determine the default checks.
6424 if test x$is_release = x ; then
6425 ac_checking_flags=yes
6427 ac_checking_flags=release
6430 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6431 for check in release $ac_checking_flags
6434 # these set all the flags to specific states
6435 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6436 ac_fold_checking= ; ac_gc_checking=1 ;
6437 ac_gc_always_collect= ; ac_rtl_checking= ;
6438 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6439 ac_tree_checking=1 ; ac_valgrind_checking= ;
6440 ac_types_checking= ;;
6441 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6442 ac_fold_checking= ; ac_gc_checking= ;
6443 ac_gc_always_collect= ; ac_rtl_checking= ;
6444 ac_rtlflag_checking= ; ac_runtime_checking= ;
6445 ac_tree_checking= ; ac_valgrind_checking= ;
6446 ac_types_checking= ;;
6447 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6448 ac_fold_checking=1 ; ac_gc_checking=1 ;
6449 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6450 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6451 ac_tree_checking=1 ; ac_valgrind_checking= ;
6452 ac_types_checking=1 ;;
6453 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6454 ac_fold_checking= ; ac_gc_checking= ;
6455 ac_gc_always_collect= ; ac_rtl_checking= ;
6456 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6457 ac_tree_checking= ; ac_valgrind_checking= ;
6458 ac_types_checking= ;;
6459 # these enable particular checks
6460 assert) ac_assert_checking=1 ;;
6461 df) ac_df_checking=1 ;;
6462 fold) ac_fold_checking=1 ;;
6463 gc) ac_gc_checking=1 ;;
6464 gcac) ac_gc_always_collect=1 ;;
6465 misc) ac_checking=1 ;;
6466 rtl) ac_rtl_checking=1 ;;
6467 rtlflag) ac_rtlflag_checking=1 ;;
6468 runtime) ac_runtime_checking=1 ;;
6469 tree) ac_tree_checking=1 ;;
6470 types) ac_types_checking=1 ;;
6471 valgrind) ac_valgrind_checking=1 ;;
6472 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6473 echo "$as_me: error: unknown check category $check" >&2;}
6474 { (exit 1); exit 1; }; } ;;
6480 if test x$ac_checking != x ; then
6482 cat >>confdefs.h <<\_ACEOF
6483 #define ENABLE_CHECKING 1
6486 nocommon_flag=-fno-common
6489 if test x$ac_df_checking != x ; then
6491 cat >>confdefs.h <<\_ACEOF
6492 #define ENABLE_DF_CHECKING 1
6496 if test x$ac_assert_checking != x ; then
6498 cat >>confdefs.h <<\_ACEOF
6499 #define ENABLE_ASSERT_CHECKING 1
6504 if test x$ac_runtime_checking != x ; then
6506 cat >>confdefs.h <<\_ACEOF
6507 #define ENABLE_RUNTIME_CHECKING 1
6511 if test x$ac_tree_checking != x ; then
6513 cat >>confdefs.h <<\_ACEOF
6514 #define ENABLE_TREE_CHECKING 1
6517 TREEBROWSER=tree-browser.o
6519 if test x$ac_types_checking != x ; then
6521 cat >>confdefs.h <<\_ACEOF
6522 #define ENABLE_TYPES_CHECKING 1
6527 if test x$ac_rtl_checking != x ; then
6529 cat >>confdefs.h <<\_ACEOF
6530 #define ENABLE_RTL_CHECKING 1
6534 if test x$ac_rtlflag_checking != x ; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define ENABLE_RTL_FLAG_CHECKING 1
6541 if test x$ac_gc_checking != x ; then
6543 cat >>confdefs.h <<\_ACEOF
6544 #define ENABLE_GC_CHECKING 1
6548 if test x$ac_gc_always_collect != x ; then
6550 cat >>confdefs.h <<\_ACEOF
6551 #define ENABLE_GC_ALWAYS_COLLECT 1
6555 if test x$ac_fold_checking != x ; then
6557 cat >>confdefs.h <<\_ACEOF
6558 #define ENABLE_FOLD_CHECKING 1
6562 valgrind_path_defines=
6565 if test "${ac_cv_header_valgrind_h+set}" = set; then
6566 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6567 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6568 if test "${ac_cv_header_valgrind_h+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6572 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6574 # Is the header compilable?
6575 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6576 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6577 cat >conftest.$ac_ext <<_ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 $ac_includes_default
6584 #include <valgrind.h>
6586 rm -f conftest.$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>conftest.er1
6590 grep -v '^ *+' conftest.er1 >conftest.err
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_header_compiler=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_header_compiler=no
6615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6617 echo "${ECHO_T}$ac_header_compiler" >&6
6619 # Is the header present?
6620 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6621 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6622 cat >conftest.$ac_ext <<_ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 #include <valgrind.h>
6630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6633 grep -v '^ *+' conftest.er1 >conftest.err
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } >/dev/null; then
6638 if test -s conftest.err; then
6639 ac_cpp_err=$ac_c_preproc_warn_flag
6640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6647 if test -z "$ac_cpp_err"; then
6648 ac_header_preproc=yes
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 ac_header_preproc=no
6655 rm -f conftest.err conftest.$ac_ext
6656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6657 echo "${ECHO_T}$ac_header_preproc" >&6
6659 # So? What about this header?
6660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6662 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6663 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6665 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6666 ac_header_preproc=yes
6669 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6670 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6672 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6674 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6676 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6678 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6680 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6683 ## ------------------------------------------ ##
6684 ## Report this to the AC_PACKAGE_NAME lists. ##
6685 ## ------------------------------------------ ##
6688 sed "s/^/$as_me: WARNING: /" >&2
6691 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6692 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6693 if test "${ac_cv_header_valgrind_h+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 ac_cv_header_valgrind_h=$ac_header_preproc
6698 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6699 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6702 if test $ac_cv_header_valgrind_h = yes; then
6710 if test x$ac_valgrind_checking != x ; then
6711 # It is certainly possible that there's valgrind but no valgrind.h.
6712 # GCC relies on making annotations so we must have both.
6713 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6714 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6715 cat >conftest.$ac_ext <<_ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 #include <valgrind/memcheck.h>
6722 #ifndef VALGRIND_DISCARD
6723 #error VALGRIND_DISCARD not defined
6726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6729 grep -v '^ *+' conftest.er1 >conftest.err
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } >/dev/null; then
6734 if test -s conftest.err; then
6735 ac_cpp_err=$ac_c_preproc_warn_flag
6736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6743 if test -z "$ac_cpp_err"; then
6744 gcc_cv_header_valgrind_memcheck_h=yes
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6749 gcc_cv_header_valgrind_memcheck_h=no
6751 rm -f conftest.err conftest.$ac_ext
6752 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6753 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6754 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6755 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6756 cat >conftest.$ac_ext <<_ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 #include <memcheck.h>
6763 #ifndef VALGRIND_DISCARD
6764 #error VALGRIND_DISCARD not defined
6767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6770 grep -v '^ *+' conftest.er1 >conftest.err
6772 cat conftest.err >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } >/dev/null; then
6775 if test -s conftest.err; then
6776 ac_cpp_err=$ac_c_preproc_warn_flag
6777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6784 if test -z "$ac_cpp_err"; then
6785 gcc_cv_header_memcheck_h=yes
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 gcc_cv_header_memcheck_h=no
6792 rm -f conftest.err conftest.$ac_ext
6793 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6794 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6796 # Prepare PATH_SEPARATOR.
6797 # The user is always right.
6798 if test "${PATH_SEPARATOR+set}" != set; then
6799 echo "#! /bin/sh" >conf$$.sh
6800 echo "exit 0" >>conf$$.sh
6802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6810 # Find out how to test for executable files. Don't use a zero-byte file,
6811 # as systems may use methods other than mode bits to determine executability.
6812 cat >conf$$.file <<_ASEOF
6816 chmod +x conf$$.file
6817 if test -x conf$$.file >/dev/null 2>&1; then
6818 ac_executable_p="test -x"
6820 ac_executable_p="test -f"
6824 # Extract the first word of "valgrind", so it can be a program name with args.
6825 set dummy valgrind; ac_word=$2
6826 echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6828 if test "${ac_cv_path_valgrind_path+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 case "$valgrind_path" in
6833 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6836 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6837 for ac_dir in $PATH; do
6839 test -z "$ac_dir" && ac_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6842 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6843 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6853 valgrind_path="$ac_cv_path_valgrind_path"
6854 if test -n "$valgrind_path"; then
6855 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6856 echo "${ECHO_T}$valgrind_path" >&6
6858 echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6
6862 if test "x$valgrind_path" = "x" \
6863 || (test $have_valgrind_h = no \
6864 && test $gcc_cv_header_memcheck_h = no \
6865 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6866 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6867 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6868 { (exit 1); exit 1; }; }
6870 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6871 valgrind_command="$valgrind_path -q"
6873 cat >>confdefs.h <<\_ACEOF
6874 #define ENABLE_VALGRIND_CHECKING 1
6877 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6879 cat >>confdefs.h <<\_ACEOF
6880 #define HAVE_VALGRIND_MEMCHECK_H 1
6884 if test $gcc_cv_header_memcheck_h = yes; then
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_MEMCHECK_H 1
6895 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6896 if test "${enable_mapped_location+set}" = set; then
6897 enableval="$enable_mapped_location"
6900 enable_mapped_location=no
6903 if test "$enable_mapped_location" = yes ; then
6905 cat >>confdefs.h <<\_ACEOF
6906 #define USE_MAPPED_LOCATION 1
6911 # Enable code coverage collection
6912 # Check whether --enable-coverage or --disable-coverage was given.
6913 if test "${enable_coverage+set}" = set; then
6914 enableval="$enable_coverage"
6915 case "${enableval}" in
6917 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6920 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6923 # a.k.a. --disable-coverage
6927 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6928 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6929 { (exit 1); exit 1; }; }
6937 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6938 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6939 enableval="$enable_gather_detailed_mem_stats"
6942 enable_gather_detailed_mem_stats=no
6944 if test x$enable_gather_detailed_mem_stats = xyes ; then
6946 cat >>confdefs.h <<\_ACEOF
6947 #define GATHER_STATISTICS 1
6952 # -------------------------------
6953 # Miscenalleous configure options
6954 # -------------------------------
6958 # Check whether --with-stabs or --without-stabs was given.
6959 if test "${with_stabs+set}" = set; then
6960 withval="$with_stabs"
6966 # Determine whether or not multilibs are enabled.
6967 # Check whether --enable-multilib or --disable-multilib was given.
6968 if test "${enable_multilib+set}" = set; then
6969 enableval="$enable_multilib"
6976 # Enable __cxa_atexit for C++.
6977 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6978 if test "${enable___cxa_atexit+set}" = set; then
6979 enableval="$enable___cxa_atexit"
6983 # Enable C extension for decimal float if target supports it.
6984 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6985 if test "${enable_decimal_float+set}" = set; then
6986 enableval="$enable_decimal_float"
6988 case $enable_decimal_float in
6989 yes | no | bid | dpd) ;;
6990 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6991 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
6992 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6993 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
6994 { (exit 1); exit 1; }; } ;;
7000 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7001 enable_decimal_float=yes
7004 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7005 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7006 enable_decimal_float=no
7012 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7014 cat >>confdefs.h <<_ACEOF
7015 #define ENABLE_DECIMAL_FLOAT $dfp
7019 # x86's use BID format instead of DPD
7020 case x$enable_decimal_float in
7023 i?86*-*-linux* | x86_64*-*-linux*)
7024 enable_decimal_float=bid
7027 enable_decimal_float=dpd
7032 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7033 # dependency on libdecnumber.
7034 enable_decimal_float=dpd
7039 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7041 cat >>confdefs.h <<_ACEOF
7042 #define ENABLE_DECIMAL_BID_FORMAT $bid
7047 # Pass with no value to take the default
7048 # Pass with a value to specify a thread package
7049 # Check whether --enable-threads or --disable-threads was given.
7050 if test "${enable_threads+set}" = set; then
7051 enableval="$enable_threads"
7057 # Check whether --enable-tls or --disable-tls was given.
7058 if test "${enable_tls+set}" = set; then
7059 enableval="$enable_tls"
7063 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7064 Valid choices are 'yes' and 'no'." >&5
7065 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7066 Valid choices are 'yes' and 'no'." >&2;}
7067 { (exit 1); exit 1; }; } ;;
7074 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7075 if test "${enable_objc_gc+set}" = set; then
7076 enableval="$enable_objc_gc"
7077 if test x$enable_objc_gc = xno; then
7087 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7088 if test "${with_dwarf2+set}" = set; then
7089 withval="$with_dwarf2"
7090 dwarf2="$with_dwarf2"
7095 # Check whether --enable-shared or --disable-shared was given.
7096 if test "${enable_shared+set}" = set; then
7097 enableval="$enable_shared"
7099 case $enable_shared in
7103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7104 for pkg in $enableval; do
7105 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7119 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7120 if test "${with_build_sysroot+set}" = set; then
7121 withval="$with_build_sysroot"
7126 # Check whether --with-sysroot or --without-sysroot was given.
7127 if test "${with_sysroot+set}" = set; then
7128 withval="$with_sysroot"
7130 case ${with_sysroot} in
7131 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7132 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7135 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7136 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7138 if test "x$prefix" = xNONE; then
7139 test_prefix=/usr/local
7143 if test "x$exec_prefix" = xNONE; then
7144 test_exec_prefix=$test_prefix
7146 test_exec_prefix=$exec_prefix
7148 case ${TARGET_SYSTEM_ROOT} in
7149 "${test_prefix}"|"${test_prefix}/"*|\
7150 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7151 '${prefix}'|'${prefix}/'*|\
7152 '${exec_prefix}'|'${exec_prefix}/'*)
7153 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7154 TARGET_SYSTEM_ROOT_DEFINE="$t"
7161 TARGET_SYSTEM_ROOT_DEFINE=
7162 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7169 # Build with intermodule optimisations
7170 # Check whether --enable-intermodule or --disable-intermodule was given.
7171 if test "${enable_intermodule+set}" = set; then
7172 enableval="$enable_intermodule"
7173 case ${enable_intermodule} in
7174 yes) onestep="-onestep";;
7182 # Sanity check enable_languages in case someone does not run the toplevel
7183 # configure # script.
7184 # Check whether --enable-languages or --disable-languages was given.
7185 if test "${enable_languages+set}" = set; then
7186 enableval="$enable_languages"
7187 case ,${enable_languages}, in
7189 # go safe -- we cannot be much sure without the toplevel
7191 # analysis of which target libs are present and usable
7195 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7196 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7197 { (exit 1); exit 1; }; }
7202 enable_languages=c,${enable_languages}
7209 # Used by documentation targets
7214 # -------------------------
7215 # Checks for other programs
7216 # -------------------------
7218 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7219 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7220 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7221 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 cat >conftest.make <<\_ACEOF
7226 @echo 'ac_maketemp="$(MAKE)"'
7228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7229 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7230 if test -n "$ac_maketemp"; then
7231 eval ac_cv_prog_make_${ac_make}_set=yes
7233 eval ac_cv_prog_make_${ac_make}_set=no
7237 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7238 echo "$as_me:$LINENO: result: yes" >&5
7239 echo "${ECHO_T}yes" >&6
7242 echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6
7244 SET_MAKE="MAKE=${MAKE-make}"
7248 # Find some useful tools
7249 for ac_prog in gawk mawk nawk awk
7251 # Extract the first word of "$ac_prog", so it can be a program name with args.
7252 set dummy $ac_prog; ac_word=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_prog_AWK+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 if test -n "$AWK"; then
7259 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_AWK="$ac_prog"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 if test -n "$AWK"; then
7279 echo "$as_me:$LINENO: result: $AWK" >&5
7280 echo "${ECHO_T}$AWK" >&6
7282 echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7286 test -n "$AWK" && break
7289 # We need awk to create options.c and options.h.
7290 # Bail out if it's missing.
7292 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7293 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7294 { (exit 1); exit 1; }; } ;;
7297 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7298 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7299 if test "${gcc_cv_prog_LN_S+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 rm -f conftestdata_t
7303 echo >conftestdata_f
7304 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7306 gcc_cv_prog_LN_S="ln -s"
7308 if ln conftestdata_f conftestdata_t 2>/dev/null
7312 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7314 gcc_cv_prog_LN_S="cp -p"
7320 rm -f conftestdata_f conftestdata_t
7323 LN_S="$gcc_cv_prog_LN_S"
7324 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7325 echo "$as_me:$LINENO: result: yes" >&5
7326 echo "${ECHO_T}yes" >&6
7328 if test "$gcc_cv_prog_LN_S" = "ln"; then
7329 echo "$as_me:$LINENO: result: no, using ln" >&5
7330 echo "${ECHO_T}no, using ln" >&6
7332 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7333 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7337 echo "$as_me:$LINENO: checking whether ln works" >&5
7338 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7339 if test "${acx_cv_prog_LN+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 rm -f conftestdata_t
7343 echo >conftestdata_f
7344 if ln conftestdata_f conftestdata_t 2>/dev/null
7350 rm -f conftestdata_f conftestdata_t
7353 if test $acx_cv_prog_LN = no; then
7355 echo "$as_me:$LINENO: result: no, using $LN" >&5
7356 echo "${ECHO_T}no, using $LN" >&6
7358 LN="$acx_cv_prog_LN"
7359 echo "$as_me:$LINENO: result: yes" >&5
7360 echo "${ECHO_T}yes" >&6
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7365 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7366 echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7368 if test "${ac_cv_prog_RANLIB+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 if test -n "$RANLIB"; then
7372 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 RANLIB=$ac_cv_prog_RANLIB
7391 if test -n "$RANLIB"; then
7392 echo "$as_me:$LINENO: result: $RANLIB" >&5
7393 echo "${ECHO_T}$RANLIB" >&6
7395 echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6
7400 if test -z "$ac_cv_prog_RANLIB"; then
7401 ac_ct_RANLIB=$RANLIB
7402 # Extract the first word of "ranlib", so it can be a program name with args.
7403 set dummy ranlib; ac_word=$2
7404 echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7406 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 if test -n "$ac_ct_RANLIB"; then
7410 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_ac_ct_RANLIB="ranlib"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7429 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7430 if test -n "$ac_ct_RANLIB"; then
7431 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7432 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7434 echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6
7438 RANLIB=$ac_ct_RANLIB
7440 RANLIB="$ac_cv_prog_RANLIB"
7445 # By default, the Darwin ranlib will not treat common symbols as
7446 # definitions when building the archive table of contents. Other
7447 # ranlibs do that; pass an option to the Darwin ranlib that makes
7448 # it behave similarly.
7456 # Find a good install program. We prefer a C program (faster),
7457 # so one script is as good as another. But avoid the broken or
7458 # incompatible versions:
7459 # SysV /etc/install, /usr/sbin/install
7460 # SunOS /usr/etc/install
7461 # IRIX /sbin/install
7463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7465 # ./install, which can be erroneously created by make from ./install.sh.
7466 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7467 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7468 if test -z "$INSTALL"; then
7469 if test "${ac_cv_path_install+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7473 for ac_dir in $PATH; do
7474 # Account for people who put trailing slashes in PATH elements.
7476 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7478 # OSF1 and SCO ODT 3.0 have their own names for install.
7479 for ac_prog in ginstall scoinst install; do
7480 if test -f $ac_dir/$ac_prog; then
7481 if test $ac_prog = install &&
7482 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7483 # AIX install. It has an incompatible calling convention.
7484 # OSF/1 installbsd also uses dspmsg, but is usable.
7487 ac_cv_path_install="$ac_dir/$ac_prog -c"
7498 if test "${ac_cv_path_install+set}" = set; then
7499 INSTALL="$ac_cv_path_install"
7501 # As a last resort, use the slow shell script. We don't cache a
7502 # path for INSTALL within a source directory, because that will
7503 # break other packages using the cache if that directory is
7504 # removed, or if the path is relative.
7505 INSTALL="$ac_install_sh"
7508 echo "$as_me:$LINENO: result: $INSTALL" >&5
7509 echo "${ECHO_T}$INSTALL" >&6
7511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7512 # It thinks the first close brace ends the variable substitution.
7513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7518 # See if cmp has --ignore-initial.
7519 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7520 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7521 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 gcc_cv_prog_cmp_skip=slowcompare
7527 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7528 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7531 gcc_cv_prog_cmp_skip=gnucompare
7534 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7535 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7536 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7539 gcc_cv_prog_cmp_skip=fastcompare
7546 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7547 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7548 make_compare_target=$gcc_cv_prog_cmp_skip
7552 # See if we have the mktemp command.
7553 # Extract the first word of "mktemp", so it can be a program name with args.
7554 set dummy mktemp; ac_word=$2
7555 echo "$as_me:$LINENO: checking for $ac_word" >&5
7556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7557 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 if test -n "$have_mktemp_command"; then
7561 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570 ac_cv_prog_have_mktemp_command="yes"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7580 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7581 if test -n "$have_mktemp_command"; then
7582 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7583 echo "${ECHO_T}$have_mktemp_command" >&6
7585 echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7590 # See if makeinfo has been installed and is modern enough
7591 # that we can use it.
7593 # Extract the first word of "makeinfo", so it can be a program name with args.
7594 set dummy makeinfo; ac_word=$2
7595 echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7597 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 if test -n "$MAKEINFO"; then
7601 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_MAKEINFO="makeinfo"
7611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 MAKEINFO=$ac_cv_prog_MAKEINFO
7620 if test -n "$MAKEINFO"; then
7621 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7622 echo "${ECHO_T}$MAKEINFO" >&6
7624 echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6
7628 if test -n "$MAKEINFO"; then
7629 # Found it, now check the version.
7630 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7631 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7632 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7636 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7638 case $ac_prog_version in
7639 '') gcc_cv_prog_makeinfo_modern=no;;
7640 4.[4-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7641 *) gcc_cv_prog_makeinfo_modern=no;;
7645 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7646 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7648 gcc_cv_prog_makeinfo_modern=no
7650 if test $gcc_cv_prog_makeinfo_modern = no; then
7651 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7654 if test $gcc_cv_prog_makeinfo_modern = no; then
7655 { echo "$as_me:$LINENO: WARNING:
7656 *** Makeinfo is missing or too old.
7657 *** Info documentation will not be built." >&5
7658 echo "$as_me: WARNING:
7659 *** Makeinfo is missing or too old.
7660 *** Info documentation will not be built." >&2;}
7667 # Is pod2man recent enough to regenerate manpages?
7668 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7669 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7670 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7671 echo "$as_me:$LINENO: result: yes" >&5
7672 echo "${ECHO_T}yes" >&6
7673 GENERATED_MANPAGES=generated-manpages
7675 echo "$as_me:$LINENO: result: no" >&5
7676 echo "${ECHO_T}no" >&6
7681 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7686 # Extract the first word of "$ac_prog", so it can be a program name with args.
7687 set dummy $ac_prog; ac_word=$2
7688 echo "$as_me:$LINENO: checking for $ac_word" >&5
7689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7690 if test "${ac_cv_prog_FLEX+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 if test -n "$FLEX"; then
7694 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703 ac_cv_prog_FLEX="$ac_prog"
7704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 FLEX=$ac_cv_prog_FLEX
7713 if test -n "$FLEX"; then
7714 echo "$as_me:$LINENO: result: $FLEX" >&5
7715 echo "${ECHO_T}$FLEX" >&6
7717 echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6
7721 test -n "$FLEX" && break
7723 test -n "$FLEX" || FLEX="$MISSING flex"
7727 for ac_prog in bison
7729 # Extract the first word of "$ac_prog", so it can be a program name with args.
7730 set dummy $ac_prog; ac_word=$2
7731 echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7733 if test "${ac_cv_prog_BISON+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 if test -n "$BISON"; then
7737 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_BISON="$ac_prog"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 BISON=$ac_cv_prog_BISON
7756 if test -n "$BISON"; then
7757 echo "$as_me:$LINENO: result: $BISON" >&5
7758 echo "${ECHO_T}$BISON" >&6
7760 echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6
7764 test -n "$BISON" && break
7766 test -n "$BISON" || BISON="$MISSING bison"
7769 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7770 # check for build == host before using them.
7773 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7774 && test -d ../binutils ; then
7775 NM='$(objdir)/../binutils/nm-new'
7777 # Extract the first word of "nm", so it can be a program name with args.
7778 set dummy nm; ac_word=$2
7779 echo "$as_me:$LINENO: checking for $ac_word" >&5
7780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781 if test "${ac_cv_prog_NM+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 if test -n "$NM"; then
7785 ac_cv_prog_NM="$NM" # Let the user override the test.
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7805 if test -n "$NM"; then
7806 echo "$as_me:$LINENO: result: $NM" >&5
7807 echo "${ECHO_T}$NM" >&6
7809 echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6
7816 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7817 && test -d ../binutils ; then
7818 AR='$(objdir)/../binutils/ar'
7820 # Extract the first word of "ar", so it can be a program name with args.
7821 set dummy ar; ac_word=$2
7822 echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7824 if test "${ac_cv_prog_AR+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 if test -n "$AR"; then
7828 ac_cv_prog_AR="$AR" # Let the user override the test.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7848 if test -n "$AR"; then
7849 echo "$as_me:$LINENO: result: $AR" >&5
7850 echo "${ECHO_T}$AR" >&6
7852 echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6
7859 # --------------------
7860 # Checks for C headers
7861 # --------------------
7863 echo "$as_me:$LINENO: checking for GNU C library" >&5
7864 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7865 if test "${gcc_cv_glibc+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 #include <features.h>
7879 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7880 #error Not a GNU C library system
7886 rm -f conftest.$ac_objext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>conftest.er1
7890 grep -v '^ *+' conftest.er1 >conftest.err
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -z "$ac_c_werror_flag"
7896 || test ! -s conftest.err'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7918 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7919 echo "${ECHO_T}$gcc_cv_glibc" >&6
7920 if test $gcc_cv_glibc = yes; then
7922 cat >>confdefs.h <<\_ACEOF
7923 #define _GNU_SOURCE 1
7928 # Need to reject headers which give warnings, so that the -Werror bootstrap
7929 # works later. *sigh* This needs to come before all header checks.
7931 ac_c_preproc_warn_flag=yes
7933 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7934 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7935 if test "${ac_cv_header_stdc+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7957 rm -f conftest.$ac_objext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7959 (eval $ac_compile) 2>conftest.er1
7961 grep -v '^ *+' conftest.er1 >conftest.err
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -z "$ac_c_werror_flag"
7967 || test ! -s conftest.err'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; } &&
7973 { ac_try='test -s conftest.$ac_objext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 ac_cv_header_stdc=yes
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7984 ac_cv_header_stdc=no
7986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7988 if test $ac_cv_header_stdc = yes; then
7989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7990 cat >conftest.$ac_ext <<_ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8000 $EGREP "memchr" >/dev/null 2>&1; then
8003 ac_cv_header_stdc=no
8009 if test $ac_cv_header_stdc = yes; then
8010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8011 cat >conftest.$ac_ext <<_ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8021 $EGREP "free" >/dev/null 2>&1; then
8024 ac_cv_header_stdc=no
8030 if test $ac_cv_header_stdc = yes; then
8031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8032 if test "$cross_compiling" = yes; then
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8042 #if ((' ' & 0x0FF) == 0x020)
8043 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8044 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8046 # define ISLOWER(c) \
8047 (('a' <= (c) && (c) <= 'i') \
8048 || ('j' <= (c) && (c) <= 'r') \
8049 || ('s' <= (c) && (c) <= 'z'))
8050 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8053 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8058 for (i = 0; i < 256; i++)
8059 if (XOR (islower (i), ISLOWER (i))
8060 || toupper (i) != TOUPPER (i))
8065 rm -f conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8078 echo "$as_me: program exited with status $ac_status" >&5
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_cv_header_stdc=no
8085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8089 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8090 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8091 if test $ac_cv_header_stdc = yes; then
8093 cat >>confdefs.h <<\_ACEOF
8094 #define STDC_HEADERS 1
8099 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8100 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8101 if test "${ac_cv_header_time+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 cat >conftest.$ac_ext <<_ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8110 #include <sys/types.h>
8111 #include <sys/time.h>
8117 if ((struct tm *) 0)
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125 (eval $ac_compile) 2>conftest.er1
8127 grep -v '^ *+' conftest.er1 >conftest.err
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag"
8133 || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest.$ac_objext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 ac_cv_header_time=yes
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 ac_cv_header_time=no
8152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8155 echo "${ECHO_T}$ac_cv_header_time" >&6
8156 if test $ac_cv_header_time = yes; then
8158 cat >>confdefs.h <<\_ACEOF
8159 #define TIME_WITH_SYS_TIME 1
8164 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8165 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8166 if test "${gcc_cv_header_string+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 cat >conftest.$ac_ext <<_ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8176 #include <strings.h>
8185 rm -f conftest.$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187 (eval $ac_compile) 2>conftest.er1
8189 grep -v '^ *+' conftest.er1 >conftest.err
8191 cat conftest.err >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try='test -z "$ac_c_werror_flag"
8195 || test ! -s conftest.err'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; } &&
8201 { ac_try='test -s conftest.$ac_objext'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8207 gcc_cv_header_string=yes
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8212 gcc_cv_header_string=no
8214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8216 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8217 echo "${ECHO_T}$gcc_cv_header_string" >&6
8218 if test $gcc_cv_header_string = yes; then
8220 cat >>confdefs.h <<\_ACEOF
8221 #define STRING_WITH_STRINGS 1
8226 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8227 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8228 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 #include <sys/types.h>
8238 #include <sys/wait.h>
8240 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8243 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8251 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8256 rm -f conftest.$ac_objext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8258 (eval $ac_compile) 2>conftest.er1
8260 grep -v '^ *+' conftest.er1 >conftest.err
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try='test -z "$ac_c_werror_flag"
8266 || test ! -s conftest.err'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; } &&
8272 { ac_try='test -s conftest.$ac_objext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_header_sys_wait_h=yes
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 ac_cv_header_sys_wait_h=no
8285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8288 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8289 if test $ac_cv_header_sys_wait_h = yes; then
8291 cat >>confdefs.h <<\_ACEOF
8292 #define HAVE_SYS_WAIT_H 1
8319 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8320 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8321 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8322 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8325 echo "$as_me:$LINENO: checking for $ac_header" >&5
8326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 cat >conftest.$ac_ext <<_ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 #include <$ac_header>
8338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } >/dev/null; then
8346 if test -s conftest.err; then
8347 ac_cpp_err=$ac_c_preproc_warn_flag
8348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8355 if test -z "$ac_cpp_err"; then
8356 eval "$as_ac_Header=yes"
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8361 eval "$as_ac_Header=no"
8363 rm -f conftest.err conftest.$ac_ext
8365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8368 cat >>confdefs.h <<_ACEOF
8369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8376 # Check for thread headers.
8377 echo "$as_me:$LINENO: checking for thread.h" >&5
8378 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8379 if test "${ac_cv_header_thread_h+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 cat >conftest.$ac_ext <<_ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8393 grep -v '^ *+' conftest.er1 >conftest.err
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } >/dev/null; then
8398 if test -s conftest.err; then
8399 ac_cpp_err=$ac_c_preproc_warn_flag
8400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8407 if test -z "$ac_cpp_err"; then
8408 ac_cv_header_thread_h=yes
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_cv_header_thread_h=no
8415 rm -f conftest.err conftest.$ac_ext
8417 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8418 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8419 if test $ac_cv_header_thread_h = yes; then
8425 echo "$as_me:$LINENO: checking for pthread.h" >&5
8426 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8427 if test "${ac_cv_header_pthread_h+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 cat >conftest.$ac_ext <<_ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 #include <pthread.h>
8438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8441 grep -v '^ *+' conftest.er1 >conftest.err
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } >/dev/null; then
8446 if test -s conftest.err; then
8447 ac_cpp_err=$ac_c_preproc_warn_flag
8448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8455 if test -z "$ac_cpp_err"; then
8456 ac_cv_header_pthread_h=yes
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8461 ac_cv_header_pthread_h=no
8463 rm -f conftest.err conftest.$ac_ext
8465 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8466 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8467 if test $ac_cv_header_pthread_h = yes; then
8474 # These tests can't be done till we know if we have limits.h.
8475 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8476 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8477 if test "${gcc_cv_decl_char_bit+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 #ifdef HAVE_LIMITS_H
8493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8494 $EGREP "found" >/dev/null 2>&1; then
8495 gcc_cv_decl_char_bit=yes
8497 gcc_cv_decl_char_bit=no
8503 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8504 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8505 if test $gcc_cv_decl_char_bit = no; then
8506 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8507 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8508 if test "${gcc_cv_c_nbby+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 while test $i -lt 65; do
8514 cat >conftest.$ac_ext <<_ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8525 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8526 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8532 rm -f conftest.$ac_objext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8534 (eval $ac_compile) 2>conftest.er1
8536 grep -v '^ *+' conftest.er1 >conftest.err
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag"
8542 || test ! -s conftest.err'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest.$ac_objext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8554 gcc_cv_c_nbby=$i; break
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8563 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8566 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8567 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8568 if test $gcc_cv_c_nbby = failed; then
8569 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8570 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8571 { (exit 1); exit 1; }; }
8574 cat >>confdefs.h <<_ACEOF
8575 #define CHAR_BIT $gcc_cv_c_nbby
8580 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8581 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8582 if test "${ac_cv_c_bigendian+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 # See if sys/param.h defines the BYTE_ORDER macro.
8586 cat >conftest.$ac_ext <<_ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592 #include <sys/types.h>
8593 #include <sys/param.h>
8598 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8606 rm -f conftest.$ac_objext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8608 (eval $ac_compile) 2>conftest.er1
8610 grep -v '^ *+' conftest.er1 >conftest.err
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag"
8616 || test ! -s conftest.err'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest.$ac_objext'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8628 # It does; now see whether it defined to BIG_ENDIAN or not.
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 #include <sys/types.h>
8636 #include <sys/param.h>
8641 #if BYTE_ORDER != BIG_ENDIAN
8649 rm -f conftest.$ac_objext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651 (eval $ac_compile) 2>conftest.er1
8653 grep -v '^ *+' conftest.er1 >conftest.err
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_c_werror_flag"
8659 || test ! -s conftest.err'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest.$ac_objext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_cv_c_bigendian=yes
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8676 ac_cv_c_bigendian=no
8678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 # It does not; compile a test program.
8684 if test "$cross_compiling" = yes; then
8685 # try to guess the endianness by grepping values into an object file
8686 ac_cv_c_bigendian=unknown
8687 cat >conftest.$ac_ext <<_ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8694 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8695 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8696 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8697 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8698 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8702 _ascii (); _ebcdic ();
8707 rm -f conftest.$ac_objext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8709 (eval $ac_compile) 2>conftest.er1
8711 grep -v '^ *+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag"
8717 || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest.$ac_objext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8730 ac_cv_c_bigendian=yes
8732 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8733 if test "$ac_cv_c_bigendian" = unknown; then
8734 ac_cv_c_bigendian=no
8736 # finding both strings is unlikely to happen, but who knows?
8737 ac_cv_c_bigendian=unknown
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8747 cat >conftest.$ac_ext <<_ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8756 /* Are we little or big endian? From Harbison&Steele. */
8760 char c[sizeof (long)];
8763 exit (u.c[sizeof (long) - 1] == 1);
8766 rm -f conftest$ac_exeext
8767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8768 (eval $ac_link) 2>&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_cv_c_bigendian=no
8779 echo "$as_me: program exited with status $ac_status" >&5
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_cv_c_bigendian=yes
8786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8792 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8793 case $ac_cv_c_bigendian in
8796 cat >>confdefs.h <<\_ACEOF
8797 #define WORDS_BIGENDIAN 1
8803 { { echo "$as_me:$LINENO: error: unknown endianness
8804 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8805 echo "$as_me: error: unknown endianness
8806 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8807 { (exit 1); exit 1; }; } ;;
8816 # These libraries may be used by collect2.
8817 # We may need a special search path to get them linked.
8818 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8819 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8820 if test "${gcc_cv_collect2_libs+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 for libs in '' -lld -lmld \
8825 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8826 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8829 cat >conftest.$ac_ext <<_ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8836 /* Override any gcc2 internal prototype to avoid an error. */
8840 /* We use char because int might match the return type of a gcc2
8841 builtin and then its argument prototype would still apply. */
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853 (eval $ac_link) 2>conftest.er1
8855 grep -v '^ *+' conftest.er1 >conftest.err
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag"
8861 || test ! -s conftest.err'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; } &&
8867 { ac_try='test -s conftest$ac_exeext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 gcc_cv_collect2_libs="$libs"; break
8875 echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8879 rm -f conftest.err conftest.$ac_objext \
8880 conftest$ac_exeext conftest.$ac_ext
8883 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8885 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8886 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8887 case $gcc_cv_collect2_libs in
8889 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8893 # When building Ada code on Alpha, we need exc_resume which is usually in
8894 # -lexc. So test for it.
8897 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8898 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8899 if test "${ac_cv_search_exc_resume+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 ac_func_search_save_LIBS=$LIBS
8903 ac_cv_search_exc_resume=no
8904 cat >conftest.$ac_ext <<_ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8911 /* Override any gcc2 internal prototype to avoid an error. */
8915 /* We use char because int might match the return type of a gcc2
8916 builtin and then its argument prototype would still apply. */
8926 rm -f conftest.$ac_objext conftest$ac_exeext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928 (eval $ac_link) 2>conftest.er1
8930 grep -v '^ *+' conftest.er1 >conftest.err
8932 cat conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try='test -z "$ac_c_werror_flag"
8936 || test ! -s conftest.err'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try='test -s conftest$ac_exeext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_search_exc_resume="none required"
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8954 rm -f conftest.err conftest.$ac_objext \
8955 conftest$ac_exeext conftest.$ac_ext
8956 if test "$ac_cv_search_exc_resume" = no; then
8957 for ac_lib in exc; do
8958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8966 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983 (eval $ac_link) 2>conftest.er1
8985 grep -v '^ *+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try='test -z "$ac_c_werror_flag"
8991 || test ! -s conftest.err'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; } &&
8997 { ac_try='test -s conftest$ac_exeext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 ac_cv_search_exc_resume="-l$ac_lib"
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9010 rm -f conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_func_search_save_LIBS
9016 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9017 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9018 if test "$ac_cv_search_exc_resume" != no; then
9019 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9027 # Some systems put ldexp and frexp in libm instead of libc; assume
9028 # they're both in the same place. jcf-dump needs them.
9031 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9032 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9033 if test "${ac_cv_search_ldexp+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 ac_func_search_save_LIBS=$LIBS
9037 ac_cv_search_ldexp=no
9038 cat >conftest.$ac_ext <<_ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h. */
9045 /* 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. */
9060 rm -f conftest.$ac_objext conftest$ac_exeext
9061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062 (eval $ac_link) 2>conftest.er1
9064 grep -v '^ *+' conftest.er1 >conftest.err
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -z "$ac_c_werror_flag"
9070 || test ! -s conftest.err'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; } &&
9076 { ac_try='test -s conftest$ac_exeext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
9082 ac_cv_search_ldexp="none required"
9084 echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9088 rm -f conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090 if test "$ac_cv_search_ldexp" = no; then
9092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any gcc2 internal prototype to avoid an error. */
9104 /* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_search_ldexp="-l$ac_lib"
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9144 rm -f conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9148 LIBS=$ac_func_search_save_LIBS
9150 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9151 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9152 if test "$ac_cv_search_ldexp" != no; then
9153 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9161 # Use <inttypes.h> only if it exists,
9162 # doesn't clash with <sys/types.h>, and declares intmax_t.
9163 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9164 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9165 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 cat >conftest.$ac_ext <<_ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 #include <sys/types.h>
9175 #include <inttypes.h>
9184 rm -f conftest.$ac_objext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9186 (eval $ac_compile) 2>conftest.er1
9188 grep -v '^ *+' conftest.er1 >conftest.err
9190 cat conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -z "$ac_c_werror_flag"
9194 || test ! -s conftest.err'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; } &&
9200 { ac_try='test -s conftest.$ac_objext'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 gcc_cv_header_inttypes_h=yes
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9211 gcc_cv_header_inttypes_h=no
9213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9216 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9217 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9218 if test $gcc_cv_header_inttypes_h = yes; then
9220 cat >>confdefs.h <<\_ACEOF
9221 #define HAVE_INTTYPES_H 1
9263 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9264 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9265 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9266 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9269 echo "$as_me:$LINENO: checking for $ac_func" >&5
9270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9271 if eval "test \"\${$as_ac_var+set}\" = set"; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 cat >conftest.$ac_ext <<_ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9282 #define $ac_func innocuous_$ac_func
9284 /* System header to define __stub macros and hopefully few prototypes,
9285 which can conflict with char $ac_func (); below.
9286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9287 <limits.h> exists even on freestanding compilers. */
9290 # include <limits.h>
9292 # include <assert.h>
9297 /* Override any gcc2 internal prototype to avoid an error. */
9302 /* We use char because int might match the return type of a gcc2
9303 builtin and then its argument prototype would still apply. */
9305 /* The GNU C library defines this for functions which it implements
9306 to always fail with ENOSYS. Some functions are actually named
9307 something starting with __ and the normal name is an alias. */
9308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9311 char (*f) () = $ac_func;
9320 return f != $ac_func;
9325 rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>conftest.er1
9329 grep -v '^ *+' conftest.er1 >conftest.err
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try='test -z "$ac_c_werror_flag"
9335 || test ! -s conftest.err'
9336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; } &&
9341 { ac_try='test -s conftest$ac_exeext'
9342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9347 eval "$as_ac_var=yes"
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 eval "$as_ac_var=no"
9354 rm -f conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9359 if test `eval echo '${'$as_ac_var'}'` = yes; then
9360 cat >>confdefs.h <<_ACEOF
9361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9368 if test x$ac_cv_func_mbstowcs = xyes; then
9369 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9370 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9371 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 if test "$cross_compiling" = yes; then
9375 gcc_cv_func_mbstowcs_works=yes
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9390 rm -f conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 gcc_cv_func_mbstowcs_works=yes
9403 echo "$as_me: program exited with status $ac_status" >&5
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9408 gcc_cv_func_mbstowcs_works=no
9410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9413 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9414 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9415 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9417 cat >>confdefs.h <<\_ACEOF
9418 #define HAVE_WORKING_MBSTOWCS 1
9424 echo "$as_me:$LINENO: checking for ssize_t" >&5
9425 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9426 if test "${ac_cv_type_ssize_t+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 cat >conftest.$ac_ext <<_ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9435 $ac_includes_default
9441 if (sizeof (ssize_t))
9447 rm -f conftest.$ac_objext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9449 (eval $ac_compile) 2>conftest.er1
9451 grep -v '^ *+' conftest.er1 >conftest.err
9453 cat conftest.err >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try='test -z "$ac_c_werror_flag"
9457 || test ! -s conftest.err'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; } &&
9463 { ac_try='test -s conftest.$ac_objext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 ac_cv_type_ssize_t=yes
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9474 ac_cv_type_ssize_t=no
9476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9478 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9479 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9480 if test $ac_cv_type_ssize_t = yes; then
9484 cat >>confdefs.h <<_ACEOF
9491 # Try to determine the array type of the second argument of getgroups
9492 # for the target system (int or gid_t).
9493 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9494 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9495 if test "${ac_cv_type_uid_t+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 cat >conftest.$ac_ext <<_ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 #include <sys/types.h>
9507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9508 $EGREP "uid_t" >/dev/null 2>&1; then
9509 ac_cv_type_uid_t=yes
9516 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9517 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9518 if test $ac_cv_type_uid_t = no; then
9520 cat >>confdefs.h <<\_ACEOF
9525 cat >>confdefs.h <<\_ACEOF
9531 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9532 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9533 if test "${ac_cv_type_getgroups+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 if test "$cross_compiling" = yes; then
9537 ac_cv_type_getgroups=cross
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9545 /* Thanks to Mike Rendell for this test. */
9546 #include <sys/types.h>
9549 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9556 union { gid_t gval; long lval; } val;
9559 for (i = 0; i < NGID; i++)
9560 gidset[i] = val.gval;
9561 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9563 /* Exit non-zero if getgroups seems to require an array of ints. This
9564 happens when gid_t is short but getgroups modifies an array of ints. */
9565 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9568 rm -f conftest$ac_exeext
9569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9570 (eval $ac_link) 2>&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_cv_type_getgroups=gid_t
9581 echo "$as_me: program exited with status $ac_status" >&5
9582 echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_cv_type_getgroups=int
9588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9590 if test $ac_cv_type_getgroups = cross; then
9591 cat >conftest.$ac_ext <<_ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9601 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9602 ac_cv_type_getgroups=gid_t
9604 ac_cv_type_getgroups=int
9610 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9611 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9613 cat >>confdefs.h <<_ACEOF
9614 #define GETGROUPS_T $ac_cv_type_getgroups
9618 if test "${target}" = "${build}"; then
9619 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9622 # This condition may need some tweaking. It should include all
9623 # targets where the array type of the second argument of getgroups
9624 # is int and the type of gid_t is not equivalent to int.
9625 *-*-sunos* | *-*-ultrix*)
9626 TARGET_GETGROUPS_T=int
9629 TARGET_GETGROUPS_T=gid_t
9636 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9637 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9638 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 cat >conftest.$ac_ext <<_ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9647 #include <sys/mman.h>
9649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9652 grep -v '^ *+' conftest.er1 >conftest.err
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } >/dev/null; then
9657 if test -s conftest.err; then
9658 ac_cpp_err=$ac_c_preproc_warn_flag
9659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9666 if test -z "$ac_cpp_err"; then
9667 ac_cv_header_sys_mman_h=yes
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_cv_header_sys_mman_h=no
9674 rm -f conftest.err conftest.$ac_ext
9676 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9677 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9678 if test $ac_cv_header_sys_mman_h = yes; then
9679 gcc_header_sys_mman_h=yes
9681 gcc_header_sys_mman_h=no
9684 echo "$as_me:$LINENO: checking for mmap" >&5
9685 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9686 if test "${ac_cv_func_mmap+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 cat >conftest.$ac_ext <<_ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9697 #define mmap innocuous_mmap
9699 /* System header to define __stub macros and hopefully few prototypes,
9700 which can conflict with char mmap (); below.
9701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702 <limits.h> exists even on freestanding compilers. */
9705 # include <limits.h>
9707 # include <assert.h>
9712 /* Override any gcc2 internal prototype to avoid an error. */
9717 /* We use char because int might match the return type of a gcc2
9718 builtin and then its argument prototype would still apply. */
9720 /* The GNU C library defines this for functions which it implements
9721 to always fail with ENOSYS. Some functions are actually named
9722 something starting with __ and the normal name is an alias. */
9723 #if defined (__stub_mmap) || defined (__stub___mmap)
9726 char (*f) () = mmap;
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742 (eval $ac_link) 2>conftest.er1
9744 grep -v '^ *+' conftest.er1 >conftest.err
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -z "$ac_c_werror_flag"
9750 || test ! -s conftest.err'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9769 rm -f conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
9772 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9773 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9774 if test $ac_cv_func_mmap = yes; then
9780 if test "$gcc_header_sys_mman_h" != yes \
9781 || test "$gcc_func_mmap" != yes; then
9782 gcc_cv_func_mmap_file=no
9783 gcc_cv_func_mmap_dev_zero=no
9784 gcc_cv_func_mmap_anon=no
9786 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9787 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9788 if test "${gcc_cv_func_mmap_file+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 # Add a system to this blacklist if
9792 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9793 # memory area containing the same data that you'd get if you applied
9794 # read() to the same fd. The only system known to have a problem here
9795 # is VMS, where text files have record structure.
9798 gcc_cv_func_mmap_file=no ;;
9800 gcc_cv_func_mmap_file=yes;;
9803 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9804 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9805 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9806 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9807 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 # Add a system to this blacklist if it has mmap() but /dev/zero
9811 # does not exist, or if mmapping /dev/zero does not give anonymous
9812 # zeroed pages with both the following properties:
9813 # 1. If you map N consecutive pages in with one call, and then
9814 # unmap any subset of those pages, the pages that were not
9815 # explicitly unmapped remain accessible.
9816 # 2. If you map two adjacent blocks of memory and then unmap them
9817 # both at once, they must both go away.
9818 # Systems known to be in this category are Windows (all variants),
9821 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9822 gcc_cv_func_mmap_dev_zero=no ;;
9824 gcc_cv_func_mmap_dev_zero=yes;;
9827 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9828 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9830 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9831 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9832 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9833 if test "${gcc_cv_decl_map_anon+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 #include <sys/types.h>
9843 #include <sys/mman.h>
9846 #ifndef MAP_ANONYMOUS
9847 #define MAP_ANONYMOUS MAP_ANON
9853 int n = MAP_ANONYMOUS;
9858 rm -f conftest.$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860 (eval $ac_compile) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest.$ac_objext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 gcc_cv_decl_map_anon=yes
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 gcc_cv_decl_map_anon=no
9887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9889 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9890 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9892 if test $gcc_cv_decl_map_anon = no; then
9893 gcc_cv_func_mmap_anon=no
9895 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9896 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9897 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9901 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9902 # doesn't give anonymous zeroed pages with the same properties listed
9903 # above for use of /dev/zero.
9904 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9906 vms* | cygwin* | pe | mingw* | sco* | udk* )
9907 gcc_cv_func_mmap_anon=no ;;
9909 gcc_cv_func_mmap_anon=yes;;
9912 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9913 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9917 if test $gcc_cv_func_mmap_file = yes; then
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_MMAP_FILE 1
9924 if test $gcc_cv_func_mmap_dev_zero = yes; then
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_MMAP_DEV_ZERO 1
9931 if test $gcc_cv_func_mmap_anon = yes; then
9933 cat >>confdefs.h <<\_ACEOF
9934 #define HAVE_MMAP_ANON 1
9942 # Under VMS, vfork works very differently than on Unix. The standard test
9943 # won't work, and it isn't easily adaptable. It makes more sense to
9945 ac_cv_func_vfork_works=yes
9948 echo "$as_me:$LINENO: checking for pid_t" >&5
9949 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9950 if test "${ac_cv_type_pid_t+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 $ac_includes_default
9971 rm -f conftest.$ac_objext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9973 (eval $ac_compile) 2>conftest.er1
9975 grep -v '^ *+' conftest.er1 >conftest.err
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag"
9981 || test ! -s conftest.err'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; } &&
9987 { ac_try='test -s conftest.$ac_objext'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_cv_type_pid_t=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
10000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10002 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10003 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10004 if test $ac_cv_type_pid_t = yes; then
10008 cat >>confdefs.h <<_ACEOF
10016 for ac_header in unistd.h vfork.h
10018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10019 echo "$as_me:$LINENO: checking for $ac_header" >&5
10020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 cat >conftest.$ac_ext <<_ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 #include <$ac_header>
10032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } >/dev/null; then
10040 if test -s conftest.err; then
10041 ac_cpp_err=$ac_c_preproc_warn_flag
10042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10049 if test -z "$ac_cpp_err"; then
10050 eval "$as_ac_Header=yes"
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 eval "$as_ac_Header=no"
10057 rm -f conftest.err conftest.$ac_ext
10059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10071 for ac_func in fork vfork
10073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10074 echo "$as_me:$LINENO: checking for $ac_func" >&5
10075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10076 if eval "test \"\${$as_ac_var+set}\" = set"; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 cat >conftest.$ac_ext <<_ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10087 #define $ac_func innocuous_$ac_func
10089 /* System header to define __stub macros and hopefully few prototypes,
10090 which can conflict with char $ac_func (); below.
10091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10092 <limits.h> exists even on freestanding compilers. */
10095 # include <limits.h>
10097 # include <assert.h>
10102 /* Override any gcc2 internal prototype to avoid an error. */
10107 /* We use char because int might match the return type of a gcc2
10108 builtin and then its argument prototype would still apply. */
10110 /* The GNU C library defines this for functions which it implements
10111 to always fail with ENOSYS. Some functions are actually named
10112 something starting with __ and the normal name is an alias. */
10113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10116 char (*f) () = $ac_func;
10125 return f != $ac_func;
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>conftest.er1
10134 grep -v '^ *+' conftest.er1 >conftest.err
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try='test -z "$ac_c_werror_flag"
10140 || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest$ac_exeext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 eval "$as_ac_var=yes"
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 eval "$as_ac_var=no"
10159 rm -f conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10164 if test `eval echo '${'$as_ac_var'}'` = yes; then
10165 cat >>confdefs.h <<_ACEOF
10166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10172 if test "x$ac_cv_func_fork" = xyes; then
10173 echo "$as_me:$LINENO: checking for working fork" >&5
10174 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10175 if test "${ac_cv_func_fork_works+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 if test "$cross_compiling" = yes; then
10179 ac_cv_func_fork_works=cross
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* By Ruediger Kuhlmann. */
10183 #include <sys/types.h>
10185 # include <unistd.h>
10187 /* Some systems only have a dummy stub for fork() */
10195 rm -f conftest$ac_exeext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10197 (eval $ac_link) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 ac_cv_func_fork_works=yes
10208 echo "$as_me: program exited with status $ac_status" >&5
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 ( exit $ac_status )
10213 ac_cv_func_fork_works=no
10215 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10218 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10219 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10222 ac_cv_func_fork_works=$ac_cv_func_fork
10224 if test "x$ac_cv_func_fork_works" = xcross; then
10226 *-*-amigaos* | *-*-msdosdjgpp*)
10227 # Override, as these systems have only a dummy fork() stub
10228 ac_cv_func_fork_works=no
10231 ac_cv_func_fork_works=yes
10234 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10235 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10237 ac_cv_func_vfork_works=$ac_cv_func_vfork
10238 if test "x$ac_cv_func_vfork" = xyes; then
10239 echo "$as_me:$LINENO: checking for working vfork" >&5
10240 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10241 if test "${ac_cv_func_vfork_works+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 if test "$cross_compiling" = yes; then
10245 ac_cv_func_vfork_works=cross
10247 cat >conftest.$ac_ext <<_ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253 /* Thanks to Paul Eggert for this test. */
10255 #include <stdlib.h>
10256 #include <sys/types.h>
10257 #include <sys/stat.h>
10258 #include <sys/wait.h>
10260 # include <unistd.h>
10263 # include <vfork.h>
10265 /* On some sparc systems, changes by the child to local and incoming
10266 argument registers are propagated back to the parent. The compiler
10267 is told about this with #include <vfork.h>, but some compilers
10268 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10269 static variable whose address is put into a register that is
10270 clobbered by the vfork. */
10273 sparc_address_test (int arg)
10275 sparc_address_test (arg) int arg;
10278 static pid_t child;
10296 pid_t parent = getpid ();
10299 sparc_address_test (0);
10304 /* Here is another test for sparc vfork register problems. This
10305 test uses lots of local variables, at least as many local
10306 variables as main has allocated so far including compiler
10307 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10308 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10309 reuse the register of parent for one of the local variables,
10310 since it will think that parent can't possibly be used any more
10311 in this routine. Assigning to the local variable will thus
10312 munge parent in the parent process. */
10314 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10315 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10316 /* Convince the compiler that p..p7 are live; otherwise, it might
10317 use the same hardware register for all 8 local variables. */
10318 if (p != p1 || p != p2 || p != p3 || p != p4
10319 || p != p5 || p != p6 || p != p7)
10322 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10323 from child file descriptors. If the child closes a descriptor
10324 before it execs or exits, this munges the parent's descriptor
10325 as well. Test for this by closing stdout in the child. */
10326 _exit(close(fileno(stdout)) != 0);
10331 while (wait(&status) != child)
10334 /* Was there some problem with vforking? */
10337 /* Did the child fail? (This shouldn't happen.) */
10340 /* Did the vfork/compiler bug occur? */
10341 || parent != getpid()
10343 /* Did the file descriptor bug occur? */
10344 || fstat(fileno(stdout), &st) != 0
10349 rm -f conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351 (eval $ac_link) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 ac_cv_func_vfork_works=yes
10362 echo "$as_me: program exited with status $ac_status" >&5
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 ( exit $ac_status )
10367 ac_cv_func_vfork_works=no
10369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10372 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10373 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10376 if test "x$ac_cv_func_fork_works" = xcross; then
10377 ac_cv_func_vfork_works=$ac_cv_func_vfork
10378 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10379 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10382 if test "x$ac_cv_func_vfork_works" = xyes; then
10384 cat >>confdefs.h <<\_ACEOF
10385 #define HAVE_WORKING_VFORK 1
10390 cat >>confdefs.h <<\_ACEOF
10395 if test "x$ac_cv_func_fork_works" = xyes; then
10397 cat >>confdefs.h <<\_ACEOF
10398 #define HAVE_WORKING_FORK 1
10405 if test "X$prefix" = "XNONE"; then
10406 acl_final_prefix="$ac_default_prefix"
10408 acl_final_prefix="$prefix"
10410 if test "X$exec_prefix" = "XNONE"; then
10411 acl_final_exec_prefix='${prefix}'
10413 acl_final_exec_prefix="$exec_prefix"
10415 acl_save_prefix="$prefix"
10416 prefix="$acl_final_prefix"
10417 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10418 prefix="$acl_save_prefix"
10421 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10422 if test "${with_gnu_ld+set}" = set; then
10423 withval="$with_gnu_ld"
10424 test "$withval" = no || with_gnu_ld=yes
10428 # Prepare PATH_SEPARATOR.
10429 # The user is always right.
10430 if test "${PATH_SEPARATOR+set}" != set; then
10431 echo "#! /bin/sh" >conf$$.sh
10432 echo "exit 0" >>conf$$.sh
10434 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10442 if test "$GCC" = yes; then
10443 # Check if gcc -print-prog-name=ld gives a path.
10444 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10445 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10448 # gcc leaves a trailing carriage return which upsets mingw
10449 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10451 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10454 # Accept absolute paths.
10455 [\\/]* | [A-Za-z]:[\\/]*)
10456 re_direlt='/[^/][^/]*/\.\./'
10457 # Canonicalize the path of ld
10458 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10459 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10460 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10462 test -z "$LD" && LD="$ac_prog"
10465 # If it fails, then pretend we aren't using GCC.
10469 # If it is relative, then search for the first ld in PATH.
10470 with_gnu_ld=unknown
10473 elif test "$with_gnu_ld" = yes; then
10474 echo "$as_me:$LINENO: checking for GNU ld" >&5
10475 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10477 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10478 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10480 if test "${acl_cv_path_LD+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 if test -z "$LD"; then
10484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10485 for ac_dir in $PATH; do
10486 test -z "$ac_dir" && ac_dir=.
10487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10488 acl_cv_path_LD="$ac_dir/$ac_prog"
10489 # Check to see if the program is GNU ld. I'd rather use --version,
10490 # but apparently some GNU ld's only accept -v.
10491 # Break only if it was the GNU/non-GNU ld that we prefer.
10492 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10493 test "$with_gnu_ld" != no && break
10495 test "$with_gnu_ld" != yes && break
10501 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10505 LD="$acl_cv_path_LD"
10506 if test -n "$LD"; then
10507 echo "$as_me:$LINENO: result: $LD" >&5
10508 echo "${ECHO_T}$LD" >&6
10510 echo "$as_me:$LINENO: result: no" >&5
10511 echo "${ECHO_T}no" >&6
10513 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10514 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10515 { (exit 1); exit 1; }; }
10516 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10517 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10518 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10522 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10523 acl_cv_prog_gnu_ld=yes
10525 acl_cv_prog_gnu_ld=no
10528 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10529 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10530 with_gnu_ld=$acl_cv_prog_gnu_ld
10534 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10535 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10536 if test "${acl_cv_rpath+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10541 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10543 rm -f ./conftest.sh
10547 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10548 echo "${ECHO_T}$acl_cv_rpath" >&6
10550 libext="$acl_cv_libext"
10551 shlibext="$acl_cv_shlibext"
10552 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10553 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10554 hardcode_direct="$acl_cv_hardcode_direct"
10555 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10556 # Check whether --enable-rpath or --disable-rpath was given.
10557 if test "${enable_rpath+set}" = set; then
10558 enableval="$enable_rpath"
10572 acl_save_prefix="$prefix"
10573 prefix="$acl_final_prefix"
10574 acl_save_exec_prefix="$exec_prefix"
10575 exec_prefix="$acl_final_exec_prefix"
10577 eval additional_includedir=\"$includedir\"
10578 eval additional_libdir=\"$libdir\"
10580 exec_prefix="$acl_save_exec_prefix"
10581 prefix="$acl_save_prefix"
10584 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10585 if test "${with_libiconv_prefix+set}" = set; then
10586 withval="$with_libiconv_prefix"
10588 if test "X$withval" = "Xno"; then
10591 if test "X$withval" = "X"; then
10593 acl_save_prefix="$prefix"
10594 prefix="$acl_final_prefix"
10595 acl_save_exec_prefix="$exec_prefix"
10596 exec_prefix="$acl_final_exec_prefix"
10598 eval additional_includedir=\"$includedir\"
10599 eval additional_libdir=\"$libdir\"
10601 exec_prefix="$acl_save_exec_prefix"
10602 prefix="$acl_save_prefix"
10605 additional_includedir="$withval/include"
10606 additional_libdir="$withval/lib"
10616 names_already_handled=
10617 names_next_round='iconv '
10618 while test -n "$names_next_round"; do
10619 names_this_round="$names_next_round"
10621 for name in $names_this_round; do
10623 for n in $names_already_handled; do
10624 if test "$n" = "$name"; then
10625 already_handled=yes
10629 if test -z "$already_handled"; then
10630 names_already_handled="$names_already_handled $name"
10631 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10632 eval value=\"\$HAVE_LIB$uppername\"
10633 if test -n "$value"; then
10634 if test "$value" = yes; then
10635 eval value=\"\$LIB$uppername\"
10636 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10637 eval value=\"\$LTLIB$uppername\"
10638 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10647 if test $use_additional = yes; then
10648 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10649 found_dir="$additional_libdir"
10650 found_so="$additional_libdir/lib$name.$shlibext"
10651 if test -f "$additional_libdir/lib$name.la"; then
10652 found_la="$additional_libdir/lib$name.la"
10655 if test -f "$additional_libdir/lib$name.$libext"; then
10656 found_dir="$additional_libdir"
10657 found_a="$additional_libdir/lib$name.$libext"
10658 if test -f "$additional_libdir/lib$name.la"; then
10659 found_la="$additional_libdir/lib$name.la"
10664 if test "X$found_dir" = "X"; then
10665 for x in $LDFLAGS $LTLIBICONV; do
10667 acl_save_prefix="$prefix"
10668 prefix="$acl_final_prefix"
10669 acl_save_exec_prefix="$exec_prefix"
10670 exec_prefix="$acl_final_exec_prefix"
10672 exec_prefix="$acl_save_exec_prefix"
10673 prefix="$acl_save_prefix"
10677 dir=`echo "X$x" | sed -e 's/^X-L//'`
10678 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10680 found_so="$dir/lib$name.$shlibext"
10681 if test -f "$dir/lib$name.la"; then
10682 found_la="$dir/lib$name.la"
10685 if test -f "$dir/lib$name.$libext"; then
10687 found_a="$dir/lib$name.$libext"
10688 if test -f "$dir/lib$name.la"; then
10689 found_la="$dir/lib$name.la"
10695 if test "X$found_dir" != "X"; then
10700 if test "X$found_dir" != "X"; then
10701 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10702 if test "X$found_so" != "X"; then
10703 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10704 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10707 for x in $ltrpathdirs; do
10708 if test "X$x" = "X$found_dir"; then
10713 if test -z "$haveit"; then
10714 ltrpathdirs="$ltrpathdirs $found_dir"
10716 if test "$hardcode_direct" = yes; then
10717 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10719 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10720 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10722 for x in $rpathdirs; do
10723 if test "X$x" = "X$found_dir"; then
10728 if test -z "$haveit"; then
10729 rpathdirs="$rpathdirs $found_dir"
10733 for x in $LDFLAGS $LIBICONV; do
10735 acl_save_prefix="$prefix"
10736 prefix="$acl_final_prefix"
10737 acl_save_exec_prefix="$exec_prefix"
10738 exec_prefix="$acl_final_exec_prefix"
10740 exec_prefix="$acl_save_exec_prefix"
10741 prefix="$acl_save_prefix"
10743 if test "X$x" = "X-L$found_dir"; then
10748 if test -z "$haveit"; then
10749 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10751 if test "$hardcode_minus_L" != no; then
10752 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10754 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10760 if test "X$found_a" != "X"; then
10761 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10763 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10766 additional_includedir=
10767 case "$found_dir" in
10769 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10770 additional_includedir="$basedir/include"
10773 if test "X$additional_includedir" != "X"; then
10774 if test "X$additional_includedir" != "X/usr/include"; then
10776 if test "X$additional_includedir" = "X/usr/local/include"; then
10777 if test -n "$GCC"; then
10779 linux*) haveit=yes;;
10783 if test -z "$haveit"; then
10784 for x in $CPPFLAGS $INCICONV; do
10786 acl_save_prefix="$prefix"
10787 prefix="$acl_final_prefix"
10788 acl_save_exec_prefix="$exec_prefix"
10789 exec_prefix="$acl_final_exec_prefix"
10791 exec_prefix="$acl_save_exec_prefix"
10792 prefix="$acl_save_prefix"
10794 if test "X$x" = "X-I$additional_includedir"; then
10799 if test -z "$haveit"; then
10800 if test -d "$additional_includedir"; then
10801 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10807 if test -n "$found_la"; then
10808 save_libdir="$libdir"
10809 case "$found_la" in
10810 */* | *\\*) . "$found_la" ;;
10811 *) . "./$found_la" ;;
10813 libdir="$save_libdir"
10814 for dep in $dependency_libs; do
10817 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10818 if test "X$additional_libdir" != "X/usr/lib"; then
10820 if test "X$additional_libdir" = "X/usr/local/lib"; then
10821 if test -n "$GCC"; then
10823 linux*) haveit=yes;;
10827 if test -z "$haveit"; then
10829 for x in $LDFLAGS $LIBICONV; do
10831 acl_save_prefix="$prefix"
10832 prefix="$acl_final_prefix"
10833 acl_save_exec_prefix="$exec_prefix"
10834 exec_prefix="$acl_final_exec_prefix"
10836 exec_prefix="$acl_save_exec_prefix"
10837 prefix="$acl_save_prefix"
10839 if test "X$x" = "X-L$additional_libdir"; then
10844 if test -z "$haveit"; then
10845 if test -d "$additional_libdir"; then
10846 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10850 for x in $LDFLAGS $LTLIBICONV; do
10852 acl_save_prefix="$prefix"
10853 prefix="$acl_final_prefix"
10854 acl_save_exec_prefix="$exec_prefix"
10855 exec_prefix="$acl_final_exec_prefix"
10857 exec_prefix="$acl_save_exec_prefix"
10858 prefix="$acl_save_prefix"
10860 if test "X$x" = "X-L$additional_libdir"; then
10865 if test -z "$haveit"; then
10866 if test -d "$additional_libdir"; then
10867 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10874 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10875 if test "$enable_rpath" != no; then
10877 for x in $rpathdirs; do
10878 if test "X$x" = "X$dir"; then
10883 if test -z "$haveit"; then
10884 rpathdirs="$rpathdirs $dir"
10887 for x in $ltrpathdirs; do
10888 if test "X$x" = "X$dir"; then
10893 if test -z "$haveit"; then
10894 ltrpathdirs="$ltrpathdirs $dir"
10899 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10902 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10905 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10912 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10913 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10919 if test "X$rpathdirs" != "X"; then
10920 if test -n "$hardcode_libdir_separator"; then
10922 for found_dir in $rpathdirs; do
10923 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10925 acl_save_libdir="$libdir"
10927 eval flag=\"$hardcode_libdir_flag_spec\"
10928 libdir="$acl_save_libdir"
10929 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10931 for found_dir in $rpathdirs; do
10932 acl_save_libdir="$libdir"
10933 libdir="$found_dir"
10934 eval flag=\"$hardcode_libdir_flag_spec\"
10935 libdir="$acl_save_libdir"
10936 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10940 if test "X$ltrpathdirs" != "X"; then
10941 for found_dir in $ltrpathdirs; do
10942 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10952 am_save_CPPFLAGS="$CPPFLAGS"
10954 for element in $INCICONV; do
10956 for x in $CPPFLAGS; do
10958 acl_save_prefix="$prefix"
10959 prefix="$acl_final_prefix"
10960 acl_save_exec_prefix="$exec_prefix"
10961 exec_prefix="$acl_final_exec_prefix"
10963 exec_prefix="$acl_save_exec_prefix"
10964 prefix="$acl_save_prefix"
10966 if test "X$x" = "X$element"; then
10971 if test -z "$haveit"; then
10972 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10977 echo "$as_me:$LINENO: checking for iconv" >&5
10978 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10979 if test "${am_cv_func_iconv+set}" = set; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 am_cv_func_iconv="no, consider installing GNU libiconv"
10985 cat >conftest.$ac_ext <<_ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991 #include <stdlib.h>
10996 iconv_t cd = iconv_open("","");
10997 iconv(cd,NULL,NULL,NULL,NULL);
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11005 (eval $ac_link) 2>conftest.er1
11007 grep -v '^ *+' conftest.er1 >conftest.err
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } &&
11012 { ac_try='test -z "$ac_c_werror_flag"
11013 || test ! -s conftest.err'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest$ac_exeext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 am_cv_func_iconv=yes
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11031 rm -f conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
11033 if test "$am_cv_func_iconv" != yes; then
11034 am_save_LIBS="$LIBS"
11035 LIBS="$LIBS $LIBICONV"
11036 cat >conftest.$ac_ext <<_ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 #include <stdlib.h>
11047 iconv_t cd = iconv_open("","");
11048 iconv(cd,NULL,NULL,NULL,NULL);
11054 rm -f conftest.$ac_objext conftest$ac_exeext
11055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11056 (eval $ac_link) 2>conftest.er1
11058 grep -v '^ *+' conftest.er1 >conftest.err
11060 cat conftest.err >&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } &&
11063 { ac_try='test -z "$ac_c_werror_flag"
11064 || test ! -s conftest.err'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest$ac_exeext'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }; then
11076 am_cv_lib_iconv=yes
11077 am_cv_func_iconv=yes
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11083 rm -f conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085 LIBS="$am_save_LIBS"
11089 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11090 echo "${ECHO_T}$am_cv_func_iconv" >&6
11091 if test "$am_cv_func_iconv" = yes; then
11093 cat >>confdefs.h <<\_ACEOF
11094 #define HAVE_ICONV 1
11098 if test "$am_cv_lib_iconv" = yes; then
11099 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11100 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11101 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11102 echo "${ECHO_T}$LIBICONV" >&6
11104 CPPFLAGS="$am_save_CPPFLAGS"
11111 if test "$am_cv_func_iconv" = yes; then
11112 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11113 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11114 if test "${am_cv_proto_iconv+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11125 #include <stdlib.h>
11131 #if defined(__STDC__) || defined(__cplusplus)
11132 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147 (eval $ac_compile) 2>conftest.er1
11149 grep -v '^ *+' conftest.er1 >conftest.err
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -z "$ac_c_werror_flag"
11155 || test ! -s conftest.err'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try='test -s conftest.$ac_objext'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 am_cv_proto_iconv_arg1=""
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11172 am_cv_proto_iconv_arg1="const"
11174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11175 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);"
11178 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11179 echo "$as_me:$LINENO: result: ${ac_t:-
11180 }$am_cv_proto_iconv" >&5
11181 echo "${ECHO_T}${ac_t:-
11182 }$am_cv_proto_iconv" >&6
11184 cat >>confdefs.h <<_ACEOF
11185 #define ICONV_CONST $am_cv_proto_iconv_arg1
11190 # Until we have in-tree GNU iconv:
11195 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11196 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11197 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 cat >conftest.$ac_ext <<_ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11206 #include <locale.h>
11215 rm -f conftest.$ac_objext conftest$ac_exeext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11217 (eval $ac_link) 2>conftest.er1
11219 grep -v '^ *+' conftest.er1 >conftest.err
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try='test -z "$ac_c_werror_flag"
11225 || test ! -s conftest.err'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try='test -s conftest$ac_exeext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 am_cv_val_LC_MESSAGES=yes
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 am_cv_val_LC_MESSAGES=no
11244 rm -f conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext conftest.$ac_ext
11247 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11248 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11249 if test $am_cv_val_LC_MESSAGES = yes; then
11251 cat >>confdefs.h <<\_ACEOF
11252 #define HAVE_LC_MESSAGES 1
11259 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11260 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11261 if test "${am_cv_langinfo_codeset+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 cat >conftest.$ac_ext <<_ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11270 #include <langinfo.h>
11274 char* cs = nl_langinfo(CODESET);
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>conftest.er1
11283 grep -v '^ *+' conftest.er1 >conftest.err
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } &&
11288 { ac_try='test -z "$ac_c_werror_flag"
11289 || test ! -s conftest.err'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest$ac_exeext'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11301 am_cv_langinfo_codeset=yes
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 am_cv_langinfo_codeset=no
11308 rm -f conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11312 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11313 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11314 if test $am_cv_langinfo_codeset = yes; then
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_LANGINFO_CODESET 1
11323 # We will need to find libiberty.h and ansidecl.h
11324 saved_CFLAGS="$CFLAGS"
11325 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11365 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11366 strsignal strstr strverscmp \
11367 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11368 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11370 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11371 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11372 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11373 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11383 #define $ac_tr_decl 1
11385 #include "ansidecl.h"
11386 #include "system.h"
11392 char *(*pfn) = (char *(*)) $ac_func ;
11398 rm -f conftest.$ac_objext
11399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400 (eval $ac_compile) 2>conftest.er1
11402 grep -v '^ *+' conftest.er1 >conftest.err
11404 cat conftest.err >&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } &&
11407 { ac_try='test -z "$ac_c_werror_flag"
11408 || test ! -s conftest.err'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try='test -s conftest.$ac_objext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 eval "gcc_cv_have_decl_$ac_func=yes"
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11425 eval "gcc_cv_have_decl_$ac_func=no"
11427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11430 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11431 echo "$as_me:$LINENO: result: yes" >&5
11432 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11433 #define $ac_tr_decl 1
11437 echo "$as_me:$LINENO: result: no" >&5
11438 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11439 #define $ac_tr_decl 0
11450 for ac_func in getrlimit setrlimit getrusage
11452 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11453 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11454 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11455 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 cat >conftest.$ac_ext <<_ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11465 #define $ac_tr_decl 1
11467 #include "ansidecl.h"
11468 #include "system.h"
11469 #ifdef HAVE_SYS_RESOURCE_H
11470 #include <sys/resource.h>
11478 char *(*pfn) = (char *(*)) $ac_func ;
11484 rm -f conftest.$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486 (eval $ac_compile) 2>conftest.er1
11488 grep -v '^ *+' conftest.er1 >conftest.err
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try='test -z "$ac_c_werror_flag"
11494 || test ! -s conftest.err'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest.$ac_objext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 eval "gcc_cv_have_decl_$ac_func=yes"
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 eval "gcc_cv_have_decl_$ac_func=no"
11513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11516 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11517 echo "$as_me:$LINENO: result: yes" >&5
11518 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11519 #define $ac_tr_decl 1
11523 echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11525 #define $ac_tr_decl 0
11533 cat >conftest.$ac_ext <<_ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11540 #include "ansidecl.h"
11541 #include "system.h"
11542 #ifdef HAVE_SYS_RESOURCE_H
11543 #include <sys/resource.h>
11554 rm -f conftest.$ac_objext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11556 (eval $ac_compile) 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -z "$ac_c_werror_flag"
11564 || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11582 cat >>confdefs.h <<\_ACEOF
11583 #define rlim_t long
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11589 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11590 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11591 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11592 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11594 for ac_func in ldgetname
11596 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11597 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11598 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11599 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11609 #define $ac_tr_decl 1
11611 #include "ansidecl.h"
11612 #include "system.h"
11613 #ifdef HAVE_LDFCN_H
11624 char *(*pfn) = (char *(*)) $ac_func ;
11630 rm -f conftest.$ac_objext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632 (eval $ac_compile) 2>conftest.er1
11634 grep -v '^ *+' conftest.er1 >conftest.err
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_c_werror_flag"
11640 || test ! -s conftest.err'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; } &&
11646 { ac_try='test -s conftest.$ac_objext'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 eval "gcc_cv_have_decl_$ac_func=yes"
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11657 eval "gcc_cv_have_decl_$ac_func=no"
11659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11662 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11663 echo "$as_me:$LINENO: result: yes" >&5
11664 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11665 #define $ac_tr_decl 1
11669 echo "$as_me:$LINENO: result: no" >&5
11670 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11671 #define $ac_tr_decl 0
11680 for ac_func in times
11682 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11683 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11684 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11685 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 cat >conftest.$ac_ext <<_ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11695 #define $ac_tr_decl 1
11697 #include "ansidecl.h"
11698 #include "system.h"
11699 #ifdef HAVE_SYS_TIMES_H
11700 #include <sys/times.h>
11708 char *(*pfn) = (char *(*)) $ac_func ;
11714 rm -f conftest.$ac_objext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11716 (eval $ac_compile) 2>conftest.er1
11718 grep -v '^ *+' conftest.er1 >conftest.err
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -z "$ac_c_werror_flag"
11724 || test ! -s conftest.err'
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); }; } &&
11730 { ac_try='test -s conftest.$ac_objext'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736 eval "gcc_cv_have_decl_$ac_func=yes"
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11741 eval "gcc_cv_have_decl_$ac_func=no"
11743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11746 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11747 echo "$as_me:$LINENO: result: yes" >&5
11748 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11749 #define $ac_tr_decl 1
11753 echo "$as_me:$LINENO: result: no" >&5
11754 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11755 #define $ac_tr_decl 0
11764 for ac_func in sigaltstack
11766 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11767 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11768 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11769 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 cat >conftest.$ac_ext <<_ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11779 #define $ac_tr_decl 1
11781 #include "ansidecl.h"
11782 #include "system.h"
11783 #include <signal.h>
11790 char *(*pfn) = (char *(*)) $ac_func ;
11796 rm -f conftest.$ac_objext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11798 (eval $ac_compile) 2>conftest.er1
11800 grep -v '^ *+' conftest.er1 >conftest.err
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag"
11806 || test ! -s conftest.err'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest.$ac_objext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 eval "gcc_cv_have_decl_$ac_func=yes"
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 eval "gcc_cv_have_decl_$ac_func=no"
11825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11828 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11829 echo "$as_me:$LINENO: result: yes" >&5
11830 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11831 #define $ac_tr_decl 1
11835 echo "$as_me:$LINENO: result: no" >&5
11836 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11837 #define $ac_tr_decl 0
11845 # More time-related stuff.
11846 echo "$as_me:$LINENO: checking for struct tms" >&5
11847 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11848 if test "${ac_cv_struct_tms+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 cat >conftest.$ac_ext <<_ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11859 #include "ansidecl.h"
11860 #include "system.h"
11861 #ifdef HAVE_SYS_TIMES_H
11862 #include <sys/times.h>
11873 rm -f conftest.$ac_objext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875 (eval $ac_compile) 2>conftest.er1
11877 grep -v '^ *+' conftest.er1 >conftest.err
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
11882 { ac_try='test -z "$ac_c_werror_flag"
11883 || test ! -s conftest.err'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; } &&
11889 { ac_try='test -s conftest.$ac_objext'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; }; then
11895 ac_cv_struct_tms=yes
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 ac_cv_struct_tms=no
11902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11904 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11905 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11906 if test $ac_cv_struct_tms = yes; then
11908 cat >>confdefs.h <<\_ACEOF
11909 #define HAVE_STRUCT_TMS 1
11914 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11915 # revisit after autoconf 2.50.
11916 echo "$as_me:$LINENO: checking for clock_t" >&5
11917 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11918 if test "${gcc_cv_type_clock_t+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 cat >conftest.$ac_ext <<_ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11929 #include "ansidecl.h"
11930 #include "system.h"
11940 rm -f conftest.$ac_objext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11942 (eval $ac_compile) 2>conftest.er1
11944 grep -v '^ *+' conftest.er1 >conftest.err
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
11949 { ac_try='test -z "$ac_c_werror_flag"
11950 || test ! -s conftest.err'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; } &&
11956 { ac_try='test -s conftest.$ac_objext'
11957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; }; then
11962 gcc_cv_type_clock_t=yes
11964 echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11967 gcc_cv_type_clock_t=no
11969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11971 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11972 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11973 if test $gcc_cv_type_clock_t = yes; then
11975 cat >>confdefs.h <<\_ACEOF
11976 #define HAVE_CLOCK_T 1
11981 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11982 CFLAGS="$saved_CFLAGS"
11984 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11985 if test "${enable_initfini_array+set}" = set; then
11986 enableval="$enable_initfini_array"
11990 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11991 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11992 if test "${gcc_cv_initfini_array+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 if test "$cross_compiling" = yes; then
11996 gcc_cv_initfini_array=no
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12006 int main (void) { return x; }
12007 int foo (void) { x = 0; }
12008 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12010 rm -f conftest$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012 (eval $ac_link) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 gcc_cv_initfini_array=yes
12023 echo "$as_me: program exited with status $ac_status" >&5
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ( exit $ac_status )
12028 gcc_cv_initfini_array=no
12030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12033 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12034 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12035 enable_initfini_array=$gcc_cv_initfini_array
12038 if test $enable_initfini_array = yes; then
12040 cat >>confdefs.h <<\_ACEOF
12041 #define HAVE_INITFINI_ARRAY 1
12046 # mkdir takes a single argument on some systems.
12047 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12048 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12049 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 cat >conftest.$ac_ext <<_ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 #include <sys/types.h>
12060 #ifdef HAVE_SYS_STAT_H
12061 # include <sys/stat.h>
12063 #ifdef HAVE_UNISTD_H
12064 # include <unistd.h>
12066 #ifdef HAVE_DIRECT_H
12067 # include <direct.h>
12077 rm -f conftest.$ac_objext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12079 (eval $ac_compile) 2>conftest.er1
12081 grep -v '^ *+' conftest.er1 >conftest.err
12083 cat conftest.err >&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } &&
12086 { ac_try='test -z "$ac_c_werror_flag"
12087 || test ! -s conftest.err'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest.$ac_objext'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 gcc_cv_mkdir_takes_one_arg=no
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 gcc_cv_mkdir_takes_one_arg=yes
12106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12108 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12109 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12110 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12112 cat >>confdefs.h <<\_ACEOF
12113 #define MKDIR_TAKES_ONE_ARG 1
12125 # With Setjmp/Longjmp based exception handling.
12126 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12127 if test "${enable_sjlj_exceptions+set}" = set; then
12128 enableval="$enable_sjlj_exceptions"
12129 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12131 cat >>confdefs.h <<_ACEOF
12132 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12137 # For platforms with the unwind ABI which includes an unwind library,
12138 # libunwind, we can choose to use the system libunwind.
12140 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12141 if test "${with_system_libunwind+set}" = set; then
12142 withval="$with_system_libunwind"
12146 # config.gcc also contains tests of with_system_libunwind.
12147 if test x$with_system_libunwind = xyes; then
12149 cat >>confdefs.h <<\_ACEOF
12150 #define HAVE_GETIPINFO 1
12155 # --------------------------------------------------------
12156 # Build, host, and target specific configuration fragments
12157 # --------------------------------------------------------
12159 # Collect build-machine-specific information.
12160 . ${srcdir}/config.build
12162 # Collect host-machine-specific information.
12163 . ${srcdir}/config.host
12167 # Collect target-machine-specific information.
12168 . ${srcdir}/config.gcc
12170 extra_objs="${host_extra_objs} ${extra_objs}"
12171 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12173 # Default the target-machine variables that were not explicitly set.
12174 if test x"$tm_file" = x
12175 then tm_file=$cpu_type/$cpu_type.h; fi
12177 if test x"$extra_headers" = x
12178 then extra_headers=; fi
12180 if test x$md_file = x
12181 then md_file=$cpu_type/$cpu_type.md; fi
12183 if test x$out_file = x
12184 then out_file=$cpu_type/$cpu_type.c; fi
12186 if test x"$tmake_file" = x
12187 then tmake_file=$cpu_type/t-$cpu_type
12190 if test x"$dwarf2" = xyes
12191 then tm_file="$tm_file tm-dwarf2.h"
12194 # Say what files are being used for the output code and MD file.
12195 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12196 echo "Using \`$srcdir/config/$md_file' as machine description file."
12198 # If any of the xm_file variables contain nonexistent files, warn
12199 # about them and drop them.
12202 for x in $build_xm_file; do
12203 if test -f $srcdir/config/$x
12205 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12206 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12209 build_xm_file="$bx"
12212 for x in $host_xm_file; do
12213 if test -f $srcdir/config/$x
12215 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12216 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12222 for x in $xm_file; do
12223 if test -f $srcdir/config/$x
12225 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12226 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12232 for f in $tm_file; do
12235 if test $count = ax; then
12236 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12238 echo "Using the following target machine macro files:"
12239 for f in $tm_file; do
12240 echo " $srcdir/config/$f"
12244 if test x$need_64bit_hwint = xyes; then
12246 cat >>confdefs.h <<\_ACEOF
12247 #define NEED_64BIT_HOST_WIDE_INT 1
12252 if test x$use_long_long_for_widest_fast_int = xyes; then
12254 cat >>confdefs.h <<\_ACEOF
12255 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12261 for f in $host_xm_file; do
12264 if test $count = a; then
12266 elif test $count = ax; then
12267 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12269 echo "Using the following host machine macro files:"
12270 for f in $host_xm_file; do
12271 echo " $srcdir/config/$f"
12274 echo "Using ${out_host_hook_obj} for host machine hooks."
12276 if test "$host_xm_file" != "$build_xm_file"; then
12278 for f in $build_xm_file; do
12281 if test $count = a; then
12283 elif test $count = ax; then
12284 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12286 echo "Using the following build machine macro files:"
12287 for f in $build_xm_file; do
12288 echo " $srcdir/config/$f"
12294 powerpc*-*-darwin*)
12295 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12296 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12297 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 cat >conftest.$ac_ext <<_ACEOF
12302 #include <sys/cdefs.h>
12303 #include <sys/signal.h>
12304 #include <ucontext.h>
12305 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12308 rm -f conftest.$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310 (eval $ac_compile) 2>conftest.er1
12312 grep -v '^ *+' conftest.er1 >conftest.err
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try='test -z "$ac_c_werror_flag"
12318 || test ! -s conftest.err'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; } &&
12324 { ac_try='test -s conftest.$ac_objext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 gcc_cv_mcontext_underscores=no
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12335 gcc_cv_mcontext_underscores=yes
12337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12339 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12340 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12341 if test $gcc_cv_mcontext_underscores = yes; then
12343 cat >>confdefs.h <<\_ACEOF
12344 #define HAS_MCONTEXT_T_UNDERSCORES
12355 # Check if a valid thread package
12356 case ${enable_threads} in
12359 target_thread_file='single'
12363 target_thread_file='single'
12365 aix | dce | gnat | irix | posix | posix95 | rtems | \
12366 single | solaris | vxworks | win32 )
12367 target_thread_file=${enable_threads}
12370 echo "${enable_threads} is an unknown thread package" 1>&2
12375 if test x${thread_file} = x; then
12376 # No thread file set by target-specific clauses in config.gcc,
12377 # so use file chosen by default logic above
12378 thread_file=${target_thread_file}
12381 # Make gthr-default.h if we have a thread file.
12383 if test $thread_file != single; then
12384 rm -f gthr-default.h
12385 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12386 gthread_flags=-DHAVE_GTHR_DEFAULT
12395 if test x$enable___cxa_atexit = xyes || \
12396 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12397 if test x$host = x$target; then
12399 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12400 # keyed to flag_use_cxa_atexit
12405 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12406 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12407 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 cat >conftest.$ac_ext <<_ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12416 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12418 #define __cxa_atexit innocuous___cxa_atexit
12420 /* System header to define __stub macros and hopefully few prototypes,
12421 which can conflict with char __cxa_atexit (); below.
12422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12423 <limits.h> exists even on freestanding compilers. */
12426 # include <limits.h>
12428 # include <assert.h>
12431 #undef __cxa_atexit
12433 /* Override any gcc2 internal prototype to avoid an error. */
12438 /* We use char because int might match the return type of a gcc2
12439 builtin and then its argument prototype would still apply. */
12440 char __cxa_atexit ();
12441 /* The GNU C library defines this for functions which it implements
12442 to always fail with ENOSYS. Some functions are actually named
12443 something starting with __ and the normal name is an alias. */
12444 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12447 char (*f) () = __cxa_atexit;
12456 return f != __cxa_atexit;
12461 rm -f conftest.$ac_objext conftest$ac_exeext
12462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12463 (eval $ac_link) 2>conftest.er1
12465 grep -v '^ *+' conftest.er1 >conftest.err
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -z "$ac_c_werror_flag"
12471 || test ! -s conftest.err'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; } &&
12477 { ac_try='test -s conftest$ac_exeext'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_cv_func___cxa_atexit=yes
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 ac_cv_func___cxa_atexit=no
12490 rm -f conftest.err conftest.$ac_objext \
12491 conftest$ac_exeext conftest.$ac_ext
12493 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12494 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12495 if test $ac_cv_func___cxa_atexit = yes; then
12498 echo "__cxa_atexit can't be enabled on this target"
12504 # We can't check for __cxa_atexit when building a cross, so assume
12508 if test x$use_cxa_atexit = xyes; then
12510 cat >>confdefs.h <<\_ACEOF
12511 #define DEFAULT_USE_CXA_ATEXIT 2
12518 if test x$with_system_libunwind = xyes; then
12519 if test x$host = x$target; then
12520 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12521 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12522 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_func_search_save_LIBS=$LIBS
12526 ac_cv_search__Unwind_GetIPInfo=no
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any gcc2 internal prototype to avoid an error. */
12538 /* We use char because int might match the return type of a gcc2
12539 builtin and then its argument prototype would still apply. */
12540 char _Unwind_GetIPInfo ();
12544 _Unwind_GetIPInfo ();
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551 (eval $ac_link) 2>conftest.er1
12553 grep -v '^ *+' conftest.er1 >conftest.err
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -z "$ac_c_werror_flag"
12559 || test ! -s conftest.err'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; } &&
12565 { ac_try='test -s conftest$ac_exeext'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 ac_cv_search__Unwind_GetIPInfo="none required"
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12577 rm -f conftest.err conftest.$ac_objext \
12578 conftest$ac_exeext conftest.$ac_ext
12579 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12580 for ac_lib in unwind; do
12581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12582 cat >conftest.$ac_ext <<_ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12589 /* Override any gcc2 internal prototype to avoid an error. */
12593 /* We use char because int might match the return type of a gcc2
12594 builtin and then its argument prototype would still apply. */
12595 char _Unwind_GetIPInfo ();
12599 _Unwind_GetIPInfo ();
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606 (eval $ac_link) 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_c_werror_flag"
12614 || test ! -s conftest.err'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest$ac_exeext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12633 rm -f conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12637 LIBS=$ac_func_search_save_LIBS
12639 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12640 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12641 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12642 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12651 if test x$use_getipinfo = xyes; then
12653 cat >>confdefs.h <<\_ACEOF
12654 #define HAVE_GETIPINFO 1
12658 echo "The system unwind library does not support _Unwind_GetIPInfo."
12661 # Look for a file containing extra machine modes.
12662 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12663 extra_modes_file='$(srcdir)'/config/${extra_modes}
12666 cat >>confdefs.h <<_ACEOF
12667 #define EXTRA_MODES_FILE "config/$extra_modes"
12672 # Convert extra_options into a form suitable for Makefile use.
12674 for f in $extra_options; do
12675 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12679 # auto-host.h is the file containing items generated by autoconf and is
12680 # the first file included by config.h.
12681 # If host=build, it is correct to have bconfig include auto-host.h
12682 # as well. If host!=build, we are in error and need to do more
12683 # work to find out the build config parameters.
12684 if test x$host = x$build
12686 build_auto=auto-host.h
12688 # We create a subdir, then run autoconf in the subdir.
12689 # To prevent recursion we set host and build for the new
12690 # invocation of configure to the build for this invocation
12697 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12698 *) realsrcdir=../${srcdir};;
12700 saved_CFLAGS="${CFLAGS}"
12701 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12702 ${realsrcdir}/configure \
12703 --enable-languages=${enable_languages-all} \
12704 --target=$target_alias --host=$build_alias --build=$build_alias
12705 CFLAGS="${saved_CFLAGS}"
12707 # We just finished tests for the build machine, so rename
12708 # the file auto-build.h in the gcc directory.
12709 mv auto-host.h ../auto-build.h
12712 build_auto=auto-build.h
12716 tm_file="${tm_file} defaults.h"
12717 tm_p_file="${tm_p_file} tm-preds.h"
12718 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12719 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12720 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12721 # put this back in temporarily.
12722 xm_file="auto-host.h ansidecl.h ${xm_file}"
12728 # Compile in configure arguments.
12729 if test -f configargs.h ; then
12730 # Being re-configured.
12731 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12732 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12734 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12737 # Double all backslashes and backslash all quotes to turn
12738 # gcc_config_arguments into a C string.
12739 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12740 $gcc_config_arguments
12742 gcc_config_arguments_str=`cat conftest.out`
12745 cat > configargs.h <<EOF
12746 /* Generated automatically. */
12747 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12748 static const char thread_model[] = "$thread_file";
12750 static const struct {
12751 const char *name, *value;
12752 } configure_default_options[] = $configure_default_options;
12755 # Internationalization
12756 # If we haven't got the data from the intl directory,
12757 # assume NLS is disabled.
12766 if test -f ../intl/config.intl; then
12767 . ../intl/config.intl
12769 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12770 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12771 if test x"$USE_NLS" != xyes; then
12772 echo "$as_me:$LINENO: result: no" >&5
12773 echo "${ECHO_T}no" >&6
12775 echo "$as_me:$LINENO: result: yes" >&5
12776 echo "${ECHO_T}yes" >&6
12778 cat >>confdefs.h <<\_ACEOF
12779 #define ENABLE_NLS 1
12783 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12784 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12785 # Look for .po and .gmo files in the source directory.
12788 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12789 # If there aren't any .gmo files the shell will give us the
12790 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12792 case "$cat" in *\**)
12795 # The quadruple backslash is collapsed to a double backslash
12796 # by the backticks, then collapsed again by the double quotes,
12797 # leaving us with one backslash in the sed expression (right
12798 # before the dot that mustn't act as a wildcard).
12799 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12800 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12801 # The user is allowed to set LINGUAS to a list of languages to
12802 # install catalogs for. If it's empty that means "all of them."
12803 if test "x$LINGUAS" = x; then
12804 CATALOGS="$CATALOGS $cat"
12805 XLINGUAS="$XLINGUAS $lang"
12807 case "$LINGUAS" in *$lang*)
12808 CATALOGS="$CATALOGS $cat"
12809 XLINGUAS="$XLINGUAS $lang"
12814 LINGUAS="$XLINGUAS"
12815 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12816 echo "${ECHO_T}$LINGUAS" >&6
12829 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12830 # -liconv on the link line twice.
12831 case "$LIBINTL" in *$LIBICONV*)
12835 # Check whether --enable-secureplt or --disable-secureplt was given.
12836 if test "${enable_secureplt+set}" = set; then
12837 enableval="$enable_secureplt"
12841 # Windows32 Registry support for specifying GCC installation paths.
12842 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12843 if test "${enable_win32_registry+set}" = set; then
12844 enableval="$enable_win32_registry"
12849 win32 | pe | cygwin* | mingw32* | uwin*)
12850 if test "x$enable_win32_registry" != xno; then
12851 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12852 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12853 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 ac_func_search_save_LIBS=$LIBS
12857 ac_cv_search_RegOpenKeyExA=no
12858 cat >conftest.$ac_ext <<_ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12865 /* Override any gcc2 internal prototype to avoid an error. */
12869 /* We use char because int might match the return type of a gcc2
12870 builtin and then its argument prototype would still apply. */
12871 char RegOpenKeyExA ();
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12882 (eval $ac_link) 2>conftest.er1
12884 grep -v '^ *+' conftest.er1 >conftest.err
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } &&
12889 { ac_try='test -z "$ac_c_werror_flag"
12890 || test ! -s conftest.err'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; } &&
12896 { ac_try='test -s conftest$ac_exeext'
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; }; then
12902 ac_cv_search_RegOpenKeyExA="none required"
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12908 rm -f conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12911 for ac_lib in advapi32; do
12912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12913 cat >conftest.$ac_ext <<_ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12920 /* Override any gcc2 internal prototype to avoid an error. */
12924 /* We use char because int might match the return type of a gcc2
12925 builtin and then its argument prototype would still apply. */
12926 char RegOpenKeyExA ();
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12937 (eval $ac_link) 2>conftest.er1
12939 grep -v '^ *+' conftest.er1 >conftest.err
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -z "$ac_c_werror_flag"
12945 || test ! -s conftest.err'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; } &&
12951 { ac_try='test -s conftest$ac_exeext'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12957 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12960 echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12964 rm -f conftest.err conftest.$ac_objext \
12965 conftest$ac_exeext conftest.$ac_ext
12968 LIBS=$ac_func_search_save_LIBS
12970 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12971 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12972 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12973 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12976 enable_win32_registry=no
12981 if test "x$enable_win32_registry" != xno; then
12983 cat >>confdefs.h <<\_ACEOF
12984 #define ENABLE_WIN32_REGISTRY 1
12988 if test "x$enable_win32_registry" != xyes \
12989 && test "x$enable_win32_registry" != x; then
12991 cat >>confdefs.h <<_ACEOF
12992 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13000 # Get an absolute path to the GCC top-level source directory
13001 holddir=`${PWDCMD-pwd}`
13003 topdir=`${PWDCMD-pwd}`
13006 # Conditionalize the makefile for this host machine.
13008 for f in ${host_xmake_file}
13010 if test -f ${srcdir}/config/$f
13012 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13016 # Conditionalize the makefile for this target machine.
13018 for f in ${tmake_file}
13020 if test -f ${srcdir}/config/$f
13022 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13025 tmake_file="${tmake_file_}"
13027 # This is a terrible hack which will go away some day.
13028 host_cc_for_libada=${CC}
13031 out_object_file=`basename $out_file .c`.o
13033 tm_file_list="options.h"
13034 tm_include_list="options.h"
13035 for f in $tm_file; do
13038 f=`echo $f | sed 's/^..//'`
13039 tm_file_list="${tm_file_list} $f"
13040 tm_include_list="${tm_include_list} $f"
13043 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13044 tm_include_list="${tm_include_list} $f"
13047 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13048 tm_include_list="${tm_include_list} config/$f"
13055 for f in $tm_p_file; do
13058 tm_p_file_list="${tm_p_file_list} $f"
13059 tm_p_include_list="${tm_p_include_list} $f"
13062 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13063 tm_p_include_list="${tm_p_include_list} config/$f"
13069 for f in $xm_file; do
13072 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13073 xm_include_list="${xm_include_list} $f"
13076 xm_file_list="${xm_file_list} $f"
13077 xm_include_list="${xm_include_list} $f"
13080 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13081 xm_include_list="${xm_include_list} config/$f"
13087 host_xm_include_list=
13088 for f in $host_xm_file; do
13091 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13092 host_xm_include_list="${host_xm_include_list} $f"
13095 host_xm_file_list="${host_xm_file_list} $f"
13096 host_xm_include_list="${host_xm_include_list} $f"
13099 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13100 host_xm_include_list="${host_xm_include_list} config/$f"
13105 build_xm_file_list=
13106 for f in $build_xm_file; do
13109 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13110 build_xm_include_list="${build_xm_include_list} $f"
13112 auto-build.h | auto-host.h )
13113 build_xm_file_list="${build_xm_file_list} $f"
13114 build_xm_include_list="${build_xm_include_list} $f"
13117 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13118 build_xm_include_list="${build_xm_include_list} config/$f"
13123 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13124 # cross-compiler which does not use the native headers and libraries.
13125 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13128 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13130 if test "x$with_build_sysroot" != x; then
13131 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13133 # This value is used, even on a native system, because
13134 # CROSS_SYSTEM_HEADER_DIR is just
13135 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13136 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13139 if test x$host != x$target
13141 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13143 SYSTEM_HEADER_DIR=$build_system_header_dir
13144 case "$host","$target" in
13145 # Darwin crosses can use the host system's libraries and headers,
13146 # because of the fat library support. Of course, it must be the
13147 # same version of Darwin on both sides. Allow the user to
13148 # just say --target=foo-darwin without a version number to mean
13149 # "the version on this system".
13150 *-*-darwin*,*-*-darwin*)
13151 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13152 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13153 if test $hostos = $targetos -o $targetos = darwin ; then
13155 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13160 i?86-*-*,x86_64-*-* \
13161 | powerpc*-*-*,powerpc64*-*-*)
13162 CROSS="$CROSS -DNATIVE_CROSS" ;;
13164 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13165 SYSTEM_HEADER_DIR=$build_system_header_dir
13168 # If this is a cross-compiler that does not
13169 # have its own set of headers then define
13172 # If this is using newlib, without having the headers available now,
13173 # then define inhibit_libc in LIBGCC2_CFLAGS.
13174 # This prevents libgcc2 from containing any code which requires libc
13177 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13178 test x$with_newlib = xyes ; } &&
13179 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13184 # When building gcc with a cross-compiler, we need to adjust things so
13185 # that the generator programs are still built with the native compiler.
13186 # Also, we cannot run fixincludes or fix-header.
13188 # These are the normal (build=host) settings:
13189 CC_FOR_BUILD='$(CC)'
13190 BUILD_CFLAGS='$(ALL_CFLAGS)'
13191 STMP_FIXINC=stmp-fixinc
13193 # Possibly disable fixproto, on a per-target basis.
13194 case ${use_fixproto} in
13199 STMP_FIXPROTO=stmp-fixproto
13204 # And these apply if build != host, or we are generating coverage data
13205 if test x$build != x$host || test "x$coverage_flags" != x
13207 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13209 if test "x$TARGET_SYSTEM_ROOT" = x; then
13210 if test "x$STMP_FIXPROTO" != x; then
13211 STMP_FIXPROTO=stmp-install-fixproto
13216 # Expand extra_headers to include complete path.
13217 # This substitutes for lots of t-* files.
13218 extra_headers_list=
13219 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13220 for file in ${extra_headers} ; do
13221 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13224 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13225 if test x"$use_gcc_tgmath" = xyes
13226 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13229 # Define collect2 in Makefile.
13230 case $host_can_use_collect2 in
13232 *) collect2='collect2$(exeext)' ;;
13236 # Add a definition of USE_COLLECT2 if system wants one.
13237 case $use_collect2 in
13238 no) use_collect2= ;;
13241 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13242 xm_defines="${xm_defines} USE_COLLECT2"
13243 case $host_can_use_collect2 in
13245 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13246 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13247 { (exit 1); exit 1; }; }
13253 # ---------------------------
13254 # Assembler & linker features
13255 # ---------------------------
13257 # Identify the assembler which will work hand-in-glove with the newly
13258 # built GCC, so that we can examine its features. This is the assembler
13259 # which will be driven by the driver program.
13261 # If build != host, and we aren't building gas in-tree, we identify a
13262 # build->target assembler and hope that it will have the same features
13263 # as the host->target assembler we'll be using.
13264 gcc_cv_gas_major_version=
13265 gcc_cv_gas_minor_version=
13266 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13268 if test "${gcc_cv_as+set}" = set; then
13272 if test -x "$DEFAULT_ASSEMBLER"; then
13273 gcc_cv_as="$DEFAULT_ASSEMBLER"
13274 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13275 && test -f ../gas/Makefile \
13276 && test x$build = x$host; then
13277 gcc_cv_as=../gas/as-new$build_exeext
13278 elif test -x as$build_exeext; then
13279 # Build using assembler in the current directory.
13280 gcc_cv_as=./as$build_exeext
13281 elif test -x $AS_FOR_TARGET; then
13282 gcc_cv_as="$AS_FOR_TARGET"
13284 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13285 set dummy $AS_FOR_TARGET; ac_word=$2
13286 echo "$as_me:$LINENO: checking for $ac_word" >&5
13287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13288 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13303 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13313 gcc_cv_as=$ac_cv_path_gcc_cv_as
13315 if test -n "$gcc_cv_as"; then
13316 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13317 echo "${ECHO_T}$gcc_cv_as" >&6
13319 echo "$as_me:$LINENO: result: no" >&5
13320 echo "${ECHO_T}no" >&6
13327 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13329 case "$ORIGINAL_AS_FOR_TARGET" in
13330 ./as | ./as$build_exeext) ;;
13331 *) ac_config_files="$ac_config_files as:exec-tool.in"
13335 echo "$as_me:$LINENO: checking what assembler to use" >&5
13336 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13337 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13338 # Single tree build which includes gas. We want to prefer it
13339 # over whatever linker top-level may have detected, since
13340 # we'll use what we're building after installation anyway.
13341 echo "$as_me:$LINENO: result: newly built gas" >&5
13342 echo "${ECHO_T}newly built gas" >&6
13344 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13345 for f in $gcc_cv_as_bfd_srcdir/configure \
13346 $gcc_cv_as_gas_srcdir/configure \
13347 $gcc_cv_as_gas_srcdir/configure.in \
13348 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13349 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13350 if test x$gcc_cv_gas_version != x; then
13354 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13355 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13356 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13357 case $gcc_cv_gas_patch_version in
13358 "") gcc_cv_gas_patch_version="0" ;;
13360 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13361 + $gcc_cv_gas_minor_version \) \* 1000 \
13362 + $gcc_cv_gas_patch_version`
13364 in_tree_gas_is_elf=no
13365 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13366 || (grep 'obj_format = multi' ../gas/Makefile \
13367 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13369 in_tree_gas_is_elf=yes
13372 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13373 echo "${ECHO_T}$gcc_cv_as" >&6
13377 # Identify the linker which will work hand-in-glove with the newly
13378 # built GCC, so that we can examine its features. This is the linker
13379 # which will be driven by the driver program.
13381 # If build != host, and we aren't building gas in-tree, we identify a
13382 # build->target linker and hope that it will have the same features
13383 # as the host->target linker we'll be using.
13384 gcc_cv_gld_major_version=
13385 gcc_cv_gld_minor_version=
13386 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13387 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13389 if test "${gcc_cv_ld+set}" = set; then
13393 if test -x "$DEFAULT_LINKER"; then
13394 gcc_cv_ld="$DEFAULT_LINKER"
13395 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13396 && test -f ../ld/Makefile \
13397 && test x$build = x$host; then
13398 gcc_cv_ld=../ld/ld-new$build_exeext
13399 elif test -x collect-ld$build_exeext; then
13400 # Build using linker in the current directory.
13401 gcc_cv_ld=./collect-ld$build_exeext
13402 elif test -x $LD_FOR_TARGET; then
13403 gcc_cv_ld="$LD_FOR_TARGET"
13405 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13406 set dummy $LD_FOR_TARGET; ac_word=$2
13407 echo "$as_me:$LINENO: checking for $ac_word" >&5
13408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13409 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $PATH
13421 test -z "$as_dir" && as_dir=.
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13424 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13434 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13436 if test -n "$gcc_cv_ld"; then
13437 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13438 echo "${ECHO_T}$gcc_cv_ld" >&6
13440 echo "$as_me:$LINENO: result: no" >&5
13441 echo "${ECHO_T}no" >&6
13448 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13450 case "$ORIGINAL_LD_FOR_TARGET" in
13451 ./collect-ld | ./collect-ld$build_exeext) ;;
13452 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13456 echo "$as_me:$LINENO: checking what linker to use" >&5
13457 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13458 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13459 # Single tree build which includes ld. We want to prefer it
13460 # over whatever linker top-level may have detected, since
13461 # we'll use what we're building after installation anyway.
13462 echo "$as_me:$LINENO: result: newly built ld" >&5
13463 echo "${ECHO_T}newly built ld" >&6
13465 in_tree_ld_is_elf=no
13466 if (grep 'EMUL = .*elf' ../ld/Makefile \
13467 || grep 'EMUL = .*linux' ../ld/Makefile \
13468 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13469 in_tree_ld_is_elf=yes
13471 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
13473 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13474 if test x$gcc_cv_gld_version != x; then
13478 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13479 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13481 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13482 echo "${ECHO_T}$gcc_cv_ld" >&6
13486 # Figure out what nm we will be using.
13487 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13488 if test "${gcc_cv_nm+set}" = set; then
13492 if test -f $gcc_cv_binutils_srcdir/configure.in \
13493 && test -f ../binutils/Makefile \
13494 && test x$build = x$host; then
13495 gcc_cv_nm=../binutils/nm-new$build_exeext
13496 elif test -x nm$build_exeext; then
13497 gcc_cv_nm=./nm$build_exeext
13498 elif test -x $NM_FOR_TARGET; then
13499 gcc_cv_nm="$NM_FOR_TARGET"
13501 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13502 set dummy $NM_FOR_TARGET; ac_word=$2
13503 echo "$as_me:$LINENO: checking for $ac_word" >&5
13504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13505 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13514 for as_dir in $PATH
13517 test -z "$as_dir" && as_dir=.
13518 for ac_exec_ext in '' $ac_executable_extensions; do
13519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13520 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13530 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13532 if test -n "$gcc_cv_nm"; then
13533 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13534 echo "${ECHO_T}$gcc_cv_nm" >&6
13536 echo "$as_me:$LINENO: result: no" >&5
13537 echo "${ECHO_T}no" >&6
13544 echo "$as_me:$LINENO: checking what nm to use" >&5
13545 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13546 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13547 # Single tree build which includes binutils.
13548 echo "$as_me:$LINENO: result: newly built nm" >&5
13549 echo "${ECHO_T}newly built nm" >&6
13552 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13553 echo "${ECHO_T}$gcc_cv_nm" >&6
13557 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13559 case "$ORIGINAL_NM_FOR_TARGET" in
13560 ./nm | ./nm$build_exeext) ;;
13561 *) ac_config_files="$ac_config_files nm:exec-tool.in"
13566 # Figure out what objdump we will be using.
13567 if test "${gcc_cv_objdump+set}" = set; then
13571 if test -f $gcc_cv_binutils_srcdir/configure.in \
13572 && test -f ../binutils/Makefile \
13573 && test x$build = x$host; then
13574 # Single tree build which includes binutils.
13575 gcc_cv_objdump=../binutils/objdump$build_exeext
13576 elif test -x objdump$build_exeext; then
13577 gcc_cv_objdump=./objdump$build_exeext
13578 elif test -x $OBJDUMP_FOR_TARGET; then
13579 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13581 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13582 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13583 echo "$as_me:$LINENO: checking for $ac_word" >&5
13584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13585 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 case $gcc_cv_objdump in
13590 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 for as_dir in $PATH
13597 test -z "$as_dir" && as_dir=.
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13600 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13610 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13612 if test -n "$gcc_cv_objdump"; then
13613 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13614 echo "${ECHO_T}$gcc_cv_objdump" >&6
13616 echo "$as_me:$LINENO: result: no" >&5
13617 echo "${ECHO_T}no" >&6
13624 echo "$as_me:$LINENO: checking what objdump to use" >&5
13625 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13626 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13627 # Single tree build which includes binutils.
13628 echo "$as_me:$LINENO: result: newly built objdump" >&5
13629 echo "${ECHO_T}newly built objdump" >&6
13630 elif test x$gcc_cv_objdump = x; then
13631 echo "$as_me:$LINENO: result: not found" >&5
13632 echo "${ECHO_T}not found" >&6
13634 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13635 echo "${ECHO_T}$gcc_cv_objdump" >&6
13638 # Figure out what assembler alignment features are present.
13639 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13640 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13641 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 gcc_cv_as_balign_and_p2align=no
13645 if test $in_tree_gas = yes; then
13646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13647 then gcc_cv_as_balign_and_p2align=yes
13649 elif test x$gcc_cv_as != x; then
13651 .p2align 2' > conftest.s
13652 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }
13659 gcc_cv_as_balign_and_p2align=yes
13661 echo "configure: failed program was" >&5
13664 rm -f conftest.o conftest.s
13667 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13668 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13669 if test $gcc_cv_as_balign_and_p2align = yes; then
13671 cat >>confdefs.h <<\_ACEOF
13672 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13677 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13678 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13679 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 gcc_cv_as_max_skip_p2align=no
13683 if test $in_tree_gas = yes; then
13684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13685 then gcc_cv_as_max_skip_p2align=yes
13687 elif test x$gcc_cv_as != x; then
13688 echo '.p2align 4,,7' > conftest.s
13689 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }
13696 gcc_cv_as_max_skip_p2align=yes
13698 echo "configure: failed program was" >&5
13701 rm -f conftest.o conftest.s
13704 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13705 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13706 if test $gcc_cv_as_max_skip_p2align = yes; then
13708 cat >>confdefs.h <<\_ACEOF
13709 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13714 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13715 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13716 if test "${gcc_cv_as_literal16+set}" = set; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13719 gcc_cv_as_literal16=no
13720 if test $in_tree_gas = yes; then
13721 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13722 then gcc_cv_as_literal16=yes
13724 elif test x$gcc_cv_as != x; then
13725 echo '.literal16' > conftest.s
13726 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }
13733 gcc_cv_as_literal16=yes
13735 echo "configure: failed program was" >&5
13738 rm -f conftest.o conftest.s
13741 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13742 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13743 if test $gcc_cv_as_literal16 = yes; then
13745 cat >>confdefs.h <<\_ACEOF
13746 #define HAVE_GAS_LITERAL16 1
13751 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13752 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13753 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13756 gcc_cv_as_subsection_m1=no
13757 if test $in_tree_gas = yes; then
13758 if test $in_tree_gas_is_elf = yes \
13759 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13760 then gcc_cv_as_subsection_m1=yes
13762 elif test x$gcc_cv_as != x; then
13763 echo 'conftest_label1: .word 0
13765 conftest_label2: .word 0
13766 .previous' > conftest.s
13767 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }
13774 if test x$gcc_cv_nm != x; then
13775 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13776 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13777 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13779 else gcc_cv_as_subsection_m1=yes
13781 rm -f conftest.nm1 conftest.nm2
13784 echo "configure: failed program was" >&5
13787 rm -f conftest.o conftest.s
13790 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13791 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13792 if test $gcc_cv_as_subsection_m1 = yes; then
13794 cat >>confdefs.h <<\_ACEOF
13795 #define HAVE_GAS_SUBSECTION_ORDERING 1
13800 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13801 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13802 if test "${gcc_cv_as_weak+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 if test $in_tree_gas = yes; then
13807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13808 then gcc_cv_as_weak=yes
13810 elif test x$gcc_cv_as != x; then
13811 echo ' .weak foobar' > conftest.s
13812 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }
13821 echo "configure: failed program was" >&5
13824 rm -f conftest.o conftest.s
13827 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13828 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13829 if test $gcc_cv_as_weak = yes; then
13831 cat >>confdefs.h <<\_ACEOF
13832 #define HAVE_GAS_WEAK 1
13837 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13838 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13839 if test "${gcc_cv_as_weakref+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 gcc_cv_as_weakref=no
13843 if test $in_tree_gas = yes; then
13844 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13845 then gcc_cv_as_weakref=yes
13847 elif test x$gcc_cv_as != x; then
13848 echo ' .weakref foobar, barfnot' > conftest.s
13849 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }
13856 gcc_cv_as_weakref=yes
13858 echo "configure: failed program was" >&5
13861 rm -f conftest.o conftest.s
13864 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13865 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13866 if test $gcc_cv_as_weakref = yes; then
13868 cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_GAS_WEAKREF 1
13874 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13875 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13876 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 gcc_cv_as_nsubspa_comdat=no
13880 if test $in_tree_gas = yes; then
13881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13882 then gcc_cv_as_nsubspa_comdat=yes
13884 elif test x$gcc_cv_as != x; then
13885 echo ' .SPACE $TEXT$
13886 .NSUBSPA $CODE$,COMDAT' > conftest.s
13887 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }
13894 gcc_cv_as_nsubspa_comdat=yes
13896 echo "configure: failed program was" >&5
13899 rm -f conftest.o conftest.s
13902 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13903 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13904 if test $gcc_cv_as_nsubspa_comdat = yes; then
13906 cat >>confdefs.h <<\_ACEOF
13907 #define HAVE_GAS_NSUBSPA_COMDAT 1
13912 # .hidden needs to be supported in both the assembler and the linker,
13913 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13914 # This is irritatingly difficult to feature test for; we have to check the
13915 # date string after the version number. If we've got an in-tree
13916 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13918 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13919 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13920 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13921 if test "${gcc_cv_as_hidden+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 gcc_cv_as_hidden=no
13925 if test $in_tree_gas = yes; then
13926 if test $in_tree_gas_is_elf = yes \
13927 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13928 then gcc_cv_as_hidden=yes
13930 elif test x$gcc_cv_as != x; then
13931 echo ' .hidden foobar
13932 foobar:' > conftest.s
13933 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }
13940 gcc_cv_as_hidden=yes
13942 echo "configure: failed program was" >&5
13945 rm -f conftest.o conftest.s
13948 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13949 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13952 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13953 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13954 if test "${gcc_cv_ld_hidden+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 if test $in_tree_ld = yes ; then
13958 gcc_cv_ld_hidden=no
13959 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 \
13960 && test $in_tree_ld_is_elf = yes; then
13961 gcc_cv_ld_hidden=yes
13964 gcc_cv_ld_hidden=yes
13965 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13966 if echo "$ld_ver" | grep GNU > /dev/null; then
13967 ld_vers=`echo $ld_ver | sed -n \
13968 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13969 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13970 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13971 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13972 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13973 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13974 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
13975 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'`
13976 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13977 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13978 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13979 if test 0"$ld_date" -lt 20020404; then
13980 if test -n "$ld_date"; then
13981 # If there was date string, but was earlier than 2002-04-04, fail
13982 gcc_cv_ld_hidden=no
13983 elif test -z "$ld_vers"; then
13984 # If there was no date string nor ld version number, something is wrong
13985 gcc_cv_ld_hidden=no
13987 test -z "$ld_vers_patch" && ld_vers_patch=0
13988 if test "$ld_vers_major" -lt 2; then
13989 gcc_cv_ld_hidden=no
13990 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13991 gcc_cv_ld_hidden="no"
13992 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13993 gcc_cv_ld_hidden=no
13998 case "${target}" in
13999 hppa64*-*-hpux* | ia64*-*-hpux*)
14000 gcc_cv_ld_hidden=yes
14003 gcc_cv_ld_hidden=no
14009 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14010 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14011 libgcc_visibility=no
14014 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14015 libgcc_visibility=yes
14017 cat >>confdefs.h <<\_ACEOF
14018 #define HAVE_GAS_HIDDEN 1
14023 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14024 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14025 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14026 if test "${gcc_cv_as_leb128+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 gcc_cv_as_leb128=no
14030 if test $in_tree_gas = yes; then
14031 if test $in_tree_gas_is_elf = yes \
14032 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14033 then gcc_cv_as_leb128=yes
14035 elif test x$gcc_cv_as != x; then
14042 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; }
14049 # GAS versions before 2.11 do not support uleb128,
14050 # despite appearing to.
14051 # ??? There exists an elf-specific test that will crash
14052 # the assembler. Perhaps it's better to figure out whether
14053 # arbitrary sections are supported and try the test.
14054 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14055 if echo "$as_ver" | grep GNU > /dev/null; then
14056 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14057 as_major=`echo $as_ver | sed 's/\..*//'`
14058 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14059 if test $as_major -eq 2 && test $as_minor -lt 11
14061 else gcc_cv_as_leb128=yes
14065 echo "configure: failed program was" >&5
14068 rm -f conftest.o conftest.s
14071 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14072 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14073 if test $gcc_cv_as_leb128 = yes; then
14075 cat >>confdefs.h <<\_ACEOF
14076 #define HAVE_AS_LEB128 1
14081 # GAS versions up to and including 2.11.0 may mis-optimize
14083 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14084 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14085 if test "${gcc_cv_as_eh_frame+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 gcc_cv_as_eh_frame=no
14089 if test $in_tree_gas = yes; then
14090 if test $in_tree_gas_is_elf = yes \
14091 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14092 then gcc_cv_as_eh_frame=yes
14094 elif test x$gcc_cv_as != x; then
14101 .section .eh_frame,"aw",@progbits
14103 .4byte .LECIE1-.LSCIE1
14117 .4byte .LEFDE1-.LASFDE1
14119 .4byte .LASFDE1-__FRAME_BEGIN__
14126 .LEFDE1:' > conftest.s
14127 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }
14134 cat > conftest.lit <<EOF
14135 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14136 0010 01000000 12000000 18000000 00000000 ................
14137 0020 08000000 04080000 0044 .........D
14139 cat > conftest.big <<EOF
14140 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14141 0010 00000001 00000012 00000018 00000000 ................
14142 0020 00000008 04000000 0844 .........D
14144 # If the assembler didn't choke, and we can objdump,
14145 # and we got the correct data, then succeed.
14146 # The text in the here-document typically retains its unix-style line
14147 # endings, while the output of objdump will use host line endings.
14148 # Therefore, use diff -b for the comparisons.
14149 if test x$gcc_cv_objdump != x \
14150 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14151 | tail -3 > conftest.got \
14152 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14153 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14155 gcc_cv_as_eh_frame=yes
14156 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 gcc_cv_as_eh_frame=buggy
14164 # Uh oh, what do we do now?
14165 gcc_cv_as_eh_frame=no
14168 echo "configure: failed program was" >&5
14171 rm -f conftest.o conftest.s
14174 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14175 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14178 if test $gcc_cv_as_eh_frame = buggy; then
14180 cat >>confdefs.h <<\_ACEOF
14181 #define USE_AS_TRADITIONAL_FORMAT 1
14186 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14187 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14188 if test "${gcc_cv_as_shf_merge+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 gcc_cv_as_shf_merge=no
14192 if test $in_tree_gas = yes; then
14193 if test $in_tree_gas_is_elf = yes \
14194 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14195 then gcc_cv_as_shf_merge=yes
14197 elif test x$gcc_cv_as != x; then
14198 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14199 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }
14206 gcc_cv_as_shf_merge=yes
14208 echo "configure: failed program was" >&5
14211 rm -f conftest.o conftest.s
14214 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14215 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14217 if test $gcc_cv_as_shf_merge = no; then
14218 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14219 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14220 if test "${gcc_cv_as_shf_merge+set}" = set; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 gcc_cv_as_shf_merge=no
14224 if test $in_tree_gas = yes; then
14225 if test $in_tree_gas_is_elf = yes \
14226 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14227 then gcc_cv_as_shf_merge=yes
14229 elif test x$gcc_cv_as != x; then
14230 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14231 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }
14238 gcc_cv_as_shf_merge=yes
14240 echo "configure: failed program was" >&5
14243 rm -f conftest.o conftest.s
14246 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14247 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14251 cat >>confdefs.h <<_ACEOF
14252 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14256 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14257 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14258 if test "${gcc_cv_as_comdat_group+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 gcc_cv_as_comdat_group=no
14262 if test $in_tree_gas = yes; then
14263 if test $in_tree_gas_is_elf = yes \
14264 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14265 then gcc_cv_as_comdat_group=yes
14267 elif test x$gcc_cv_as != x; then
14268 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14269 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }
14276 gcc_cv_as_comdat_group=yes
14278 echo "configure: failed program was" >&5
14281 rm -f conftest.o conftest.s
14284 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14285 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14287 if test $gcc_cv_as_comdat_group = yes; then
14288 gcc_cv_as_comdat_group_percent=no
14290 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14291 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14292 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 gcc_cv_as_comdat_group_percent=no
14296 if test $in_tree_gas = yes; then
14297 if test $in_tree_gas_is_elf = yes \
14298 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14299 then gcc_cv_as_comdat_group_percent=yes
14301 elif test x$gcc_cv_as != x; then
14302 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14303 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }
14310 gcc_cv_as_comdat_group_percent=yes
14312 echo "configure: failed program was" >&5
14315 rm -f conftest.o conftest.s
14318 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14319 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14322 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14324 if test 0"$ld_date" -lt 20050308; then
14325 if test -n "$ld_date"; then
14326 # If there was date string, but was earlier than 2005-03-08, fail
14328 elif test "$ld_vers_major" -lt 2; then
14330 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14335 # assume linkers other than GNU ld don't support COMDAT group
14338 if test $comdat_group = no; then
14339 gcc_cv_as_comdat_group=no
14340 gcc_cv_as_comdat_group_percent=no
14343 cat >>confdefs.h <<_ACEOF
14344 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14348 # Thread-local storage - the check is heavily parametrized.
14356 .section ".tdata","awT",@progbits
14359 ldq $27,__tls_get_addr($29) !literal!1
14360 lda $16,foo($29) !tlsgd!1
14361 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14362 ldq $27,__tls_get_addr($29) !literal!2
14363 lda $16,foo($29) !tlsldm!2
14364 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14365 ldq $1,foo($29) !gotdtprel
14366 ldah $2,foo($29) !dtprelhi
14367 lda $3,foo($2) !dtprello
14368 lda $4,foo($29) !dtprel
14369 ldq $1,foo($29) !gottprel
14370 ldah $2,foo($29) !tprelhi
14371 lda $3,foo($2) !tprello
14372 lda $4,foo($29) !tprel'
14375 tls_as_opt=--fatal-warnings
14379 .section ".tdata","awT",@progbits
14382 call #gettlsoff(x)'
14391 .section ".tdata","awT",@progbits
14395 addil LT%foo-$tls_gdidx$,gp
14396 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14399 addil LT%foo-$tls_ldidx$,gp
14401 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14402 addil LR%foo-$tls_dtpoff$,%ret0
14403 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14405 addil LT%foo-$tls_ieoff$,gp
14406 ldw RT%foo-$tls_ieoff$(%r1),%t2
14409 addil LR%foo-$tls_leoff$,%t1
14410 ldo RR%foo-$tls_leoff$(%r1),%t2'
14413 tls_as_opt=--fatal-warnings
14417 .section ".tdata","awT",%progbits
14420 .word foo(gottpoff)
14430 .section ".tdata","awT",@progbits
14434 leal foo@TLSGD(,%ebx,1), %eax
14435 leal foo@TLSLDM(%ebx), %eax
14436 leal foo@DTPOFF(%eax), %edx
14437 movl foo@GOTTPOFF(%ebx), %eax
14438 subl foo@GOTTPOFF(%ebx), %eax
14439 addl foo@GOTNTPOFF(%ebx), %eax
14440 movl foo@INDNTPOFF, %eax
14441 movl $foo@TPOFF, %eax
14442 subl $foo@TPOFF, %eax
14443 leal foo@NTPOFF(%ecx), %eax'
14446 tls_as_opt=--fatal-warnings
14450 .section ".tdata","awT",@progbits
14454 leaq foo@TLSGD(%rip), %rdi
14455 leaq foo@TLSLD(%rip), %rdi
14456 leaq foo@DTPOFF(%rax), %rdx
14457 movq foo@GOTTPOFF(%rip), %rax
14458 movq $foo@TPOFF, %rax'
14461 tls_as_opt=--fatal-warnings
14465 .section ".tdata","awT",@progbits
14468 addl r16 = @ltoff(@dtpmod(foo#)), gp
14469 addl r17 = @ltoff(@dtprel(foo#)), gp
14470 addl r18 = @ltoff(@tprel(foo#)), gp
14471 addl r19 = @dtprel(foo#), gp
14472 adds r21 = @dtprel(foo#), r13
14473 movl r23 = @dtprel(foo#)
14474 addl r20 = @tprel(foo#), gp
14475 adds r22 = @tprel(foo#), r13
14476 movl r24 = @tprel(foo#)'
14479 tls_as_opt=--fatal-warnings
14483 .section .tdata,"awT",@progbits
14487 addiu $4, $28, %tlsgd(x)
14488 addiu $4, $28, %tlsldm(x)
14489 lui $4, %dtprel_hi(x)
14490 addiu $4, $4, %dtprel_lo(x)
14491 lw $4, %gottprel(x)($28)
14492 lui $4, %tprel_hi(x)
14493 addiu $4, $4, %tprel_lo(x)'
14496 tls_as_opt='-32 --fatal-warnings'
14500 .section ".tdata","awT",@progbits
14508 addi 3,31,ld0@got@tlsgd
14510 addi 3,31,x1@got@tlsld
14513 addis 9,3,x2@dtprel@ha
14514 addi 9,9,x2@dtprel@l
14515 lwz 9,x3@got@tprel(31)
14518 addis 9,2,x2@tprel@ha
14519 addi 9,9,x2@tprel@l'
14522 tls_as_opt="-a32 --fatal-warnings"
14526 .section ".tdata","awT",@progbits
14534 addi 3,2,ld0@got@tlsgd
14540 addi 3,2,x1@got@tlsld
14546 addis 9,3,x2@dtprel@ha
14547 addi 9,9,x2@dtprel@l
14550 ld 9,x3@got@dtprel(2)
14556 tls_as_opt="-a64 --fatal-warnings"
14560 .section ".tdata","awT",@progbits
14567 .long foo@GOTNTPOFF
14568 .long foo@INDNTPOFF
14569 l %r1,foo@GOTNTPOFF(%r12)
14570 l %r1,0(%r1):tls_load:foo
14571 bas %r14,0(%r1,%r13):tls_gdcall:foo
14572 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14575 tls_as_opt="-m31 --fatal-warnings"
14579 .section ".tdata","awT",@progbits
14586 .quad foo@GOTNTPOFF
14587 lg %r1,foo@GOTNTPOFF(%r12)
14588 larl %r1,foo@INDNTPOFF
14589 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14590 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14593 tls_as_opt="-m64 -Aesame --fatal-warnings"
14595 sh-*-* | sh[34]-*-*)
14597 .section ".tdata","awT",@progbits
14607 tls_as_opt=--fatal-warnings
14611 sparc*-sun-solaris2.[56789]*)
14612 # TLS was introduced in the Solaris 9 4/04 release but
14613 # we do not enable it by default on Solaris 9 either.
14614 if test "x$enable_tls" = xyes ; then
14620 sparc*-sun-solaris2.*)
14627 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14629 .section ".tdata",#alloc,#write,#tls
14632 sethi %tgd_hi22(foo), %o0
14633 add %o0, %tgd_lo10(foo), %o1
14634 add %l7, %o1, %o0, %tgd_add(foo)
14635 call __tls_get_addr, %tgd_call(foo)
14636 sethi %tldm_hi22(foo), %l1
14637 add %l1, %tldm_lo10(foo), %l2
14638 add %l7, %l2, %o0, %tldm_add(foo)
14639 call __tls_get_addr, %tldm_call(foo)
14640 sethi %tldo_hix22(foo), %l3
14641 xor %l3, %tldo_lox10(foo), %l4
14642 add %o0, %l4, %l5, %tldo_add(foo)
14643 sethi %tie_hi22(foo), %o3
14644 add %o3, %tie_lo10(foo), %o3
14645 ld [%l7 + %o3], %o2, %tie_ld(foo)
14646 add %g7, %o2, %o4, %tie_add(foo)
14647 sethi %tle_hix22(foo), %l1
14648 xor %l1, %tle_lox10(foo), %o5
14649 ld [%g7 + %o5], %o1'
14654 .section ".tdata","awT",@progbits
14657 sethi %tgd_hi22(foo), %o0
14658 add %o0, %tgd_lo10(foo), %o1
14659 add %l7, %o1, %o0, %tgd_add(foo)
14660 call __tls_get_addr, %tgd_call(foo)
14661 sethi %tldm_hi22(foo), %l1
14662 add %l1, %tldm_lo10(foo), %l2
14663 add %l7, %l2, %o0, %tldm_add(foo)
14664 call __tls_get_addr, %tldm_call(foo)
14665 sethi %tldo_hix22(foo), %l3
14666 xor %l3, %tldo_lox10(foo), %l4
14667 add %o0, %l4, %l5, %tldo_add(foo)
14668 sethi %tie_hi22(foo), %o3
14669 add %o3, %tie_lo10(foo), %o3
14670 ld [%l7 + %o3], %o2, %tie_ld(foo)
14671 add %g7, %o2, %o4, %tie_add(foo)
14672 sethi %tle_hix22(foo), %l1
14673 xor %l1, %tle_lox10(foo), %o5
14674 ld [%g7 + %o5], %o1'
14677 tls_as_opt="-32 --fatal-warnings"
14682 if test "x$enable_tls" = xno ; then
14683 : # TLS explicitly disabled.
14684 elif test "x$enable_tls" = xyes ; then
14685 set_have_as_tls=yes # TLS explicitly enabled.
14686 elif test -z "$tls_first_major"; then
14687 : # If we don't have a check, assume no support.
14689 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14690 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14691 if test "${gcc_cv_as_tls+set}" = set; then
14692 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 if test $in_tree_gas = yes; then
14696 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14697 then gcc_cv_as_tls=yes
14699 elif test x$gcc_cv_as != x; then
14700 echo "$conftest_s" > conftest.s
14701 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }
14710 echo "configure: failed program was" >&5
14713 rm -f conftest.o conftest.s
14716 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14717 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14718 if test $gcc_cv_as_tls = yes; then
14719 set_have_as_tls=yes
14722 if test $set_have_as_tls = yes ; then
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_AS_TLS 1
14730 # Target-specific assembler checks.
14732 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14733 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14734 gcc_cv_ld_static_dynamic=no
14735 if test $in_tree_ld = yes ; then
14736 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14737 gcc_cv_ld_static_dynamic=yes
14739 elif test x$gcc_cv_ld != x; then
14740 # Check if linker supports -Bstatic/-Bdynamic option
14741 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14742 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14743 gcc_cv_ld_static_dynamic=yes
14746 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14748 cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_LD_STATIC_DYNAMIC 1
14753 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14754 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14756 if test x"$demangler_in_ld" = xyes; then
14757 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14758 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14759 gcc_cv_ld_demangle=no
14760 if test $in_tree_ld = yes; then
14761 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 \
14762 gcc_cv_ld_demangle=yes
14764 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14765 # Check if the GNU linker supports --demangle option
14766 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14767 gcc_cv_ld_demangle=yes
14770 if test x"$gcc_cv_ld_demangle" = xyes; then
14772 cat >>confdefs.h <<\_ACEOF
14773 #define HAVE_LD_DEMANGLE 1
14777 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14778 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14782 # All TARGET_ABI_OSF targets.
14783 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14784 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14785 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14786 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 gcc_cv_as_alpha_explicit_relocs=no
14790 if test $in_tree_gas = yes; then
14791 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14792 then gcc_cv_as_alpha_explicit_relocs=yes
14794 elif test x$gcc_cv_as != x; then
14795 echo ' .set nomacro
14797 extbl $3, $2, $3 !lituse_bytoff!1
14798 ldq $2, a($29) !literal!1
14799 ldq $4, b($29) !literal!2
14800 ldq_u $3, 0($2) !lituse_base!1
14801 ldq $27, f($29) !literal!5
14802 jsr $26, ($27), f !lituse_jsr!5
14803 ldah $29, 0($26) !gpdisp!3
14804 lda $0, c($29) !gprel
14805 ldah $1, d($29) !gprelhigh
14806 lda $1, d($1) !gprellow
14807 lda $29, 0($29) !gpdisp!3' > conftest.s
14808 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }
14815 gcc_cv_as_alpha_explicit_relocs=yes
14817 echo "configure: failed program was" >&5
14820 rm -f conftest.o conftest.s
14823 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14824 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14825 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14827 cat >>confdefs.h <<\_ACEOF
14828 #define HAVE_AS_EXPLICIT_RELOCS 1
14832 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14833 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14834 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 gcc_cv_as_alpha_jsrdirect_relocs=no
14838 if test $in_tree_gas = yes; then
14839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14840 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14842 elif test x$gcc_cv_as != x; then
14843 echo ' .set nomacro
14845 ldq $27, a($29) !literal!1
14846 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14847 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; }
14854 gcc_cv_as_alpha_jsrdirect_relocs=yes
14856 echo "configure: failed program was" >&5
14859 rm -f conftest.o conftest.s
14862 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14863 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14864 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14866 cat >>confdefs.h <<\_ACEOF
14867 #define HAVE_AS_JSRDIRECT_RELOCS 1
14874 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14875 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14876 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 gcc_cv_as_cris_no_mul_bug=no
14880 if test $in_tree_gas = yes; then
14881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14882 then gcc_cv_as_cris_no_mul_bug=yes
14884 elif test x$gcc_cv_as != x; then
14885 echo '.text' > conftest.s
14886 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; }
14893 gcc_cv_as_cris_no_mul_bug=yes
14895 echo "configure: failed program was" >&5
14898 rm -f conftest.o conftest.s
14901 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14902 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14903 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14905 cat >>confdefs.h <<\_ACEOF
14906 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14913 echo "$as_me:$LINENO: checking assembler for .register" >&5
14914 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14915 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 gcc_cv_as_sparc_register_op=no
14919 if test x$gcc_cv_as != x; then
14920 echo '.register %g2, #scratch' > conftest.s
14921 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }
14928 gcc_cv_as_sparc_register_op=yes
14930 echo "configure: failed program was" >&5
14933 rm -f conftest.o conftest.s
14936 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14937 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14938 if test $gcc_cv_as_sparc_register_op = yes; then
14940 cat >>confdefs.h <<\_ACEOF
14941 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14946 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14947 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14948 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 gcc_cv_as_sparc_relax=no
14952 if test x$gcc_cv_as != x; then
14953 echo '.text' > conftest.s
14954 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }
14961 gcc_cv_as_sparc_relax=yes
14963 echo "configure: failed program was" >&5
14966 rm -f conftest.o conftest.s
14969 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14970 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14971 if test $gcc_cv_as_sparc_relax = yes; then
14973 cat >>confdefs.h <<\_ACEOF
14974 #define HAVE_AS_RELAX_OPTION 1
14979 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14980 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14981 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 gcc_cv_as_sparc_ua_pcrel=no
14985 if test x$gcc_cv_as != x; then
14992 .uaword %r_disp32(foo)' > conftest.s
14993 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }
15000 if test x$gcc_cv_ld != x \
15001 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15002 gcc_cv_as_sparc_ua_pcrel=yes
15006 echo "configure: failed program was" >&5
15009 rm -f conftest.o conftest.s
15012 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15013 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15014 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_AS_SPARC_UA_PCREL 1
15021 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15022 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15023 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 gcc_cv_as_sparc_ua_pcrel_hidden=no
15027 if test x$gcc_cv_as != x; then
15031 .uaword %r_disp32(foo)
15032 .byte 0x32, 0x33, 0x34
15036 .skip 4' > conftest.s
15037 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }
15044 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15045 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15046 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15047 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15048 if $gcc_cv_objdump -R conftest 2> /dev/null \
15049 | grep 'DISP32' > /dev/null 2>&1; then
15052 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15057 echo "configure: failed program was" >&5
15060 rm -f conftest.o conftest.s
15063 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15064 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15065 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15067 cat >>confdefs.h <<\_ACEOF
15068 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15073 fi # unaligned pcrel relocs
15075 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15076 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15077 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 gcc_cv_as_sparc_offsetable_lo10=no
15081 if test x$gcc_cv_as != x; then
15083 or %g1, %lo(ab) + 12, %g1
15084 or %g1, %lo(ab + 12), %g1' > conftest.s
15085 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; }
15092 if test x$gcc_cv_objdump != x \
15093 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15094 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15095 gcc_cv_as_sparc_offsetable_lo10=yes
15098 echo "configure: failed program was" >&5
15101 rm -f conftest.o conftest.s
15104 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15105 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15106 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15108 cat >>confdefs.h <<\_ACEOF
15109 #define HAVE_AS_OFFSETABLE_LO10 1
15115 i[34567]86-*-* | x86_64-*-*)
15117 cygwin* | pe | mingw32*)
15118 # Used for DWARF 2 in PE
15119 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15120 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15121 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 gcc_cv_as_ix86_pe_secrel32=no
15125 if test $in_tree_gas = yes; then
15126 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15127 then gcc_cv_as_ix86_pe_secrel32=yes
15129 elif test x$gcc_cv_as != x; then
15133 .secrel32 foo' > conftest.s
15134 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }
15141 if test x$gcc_cv_ld != x \
15142 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15143 gcc_cv_as_ix86_pe_secrel32=yes
15147 echo "configure: failed program was" >&5
15150 rm -f conftest.o conftest.s
15153 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15154 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15155 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15157 cat >>confdefs.h <<\_ACEOF
15158 #define HAVE_GAS_PE_SECREL32_RELOC 1
15165 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15166 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15167 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 gcc_cv_as_ix86_filds_fists=no
15171 if test $in_tree_gas = yes; then
15172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15173 then gcc_cv_as_ix86_filds_fists=yes
15175 elif test x$gcc_cv_as != x; then
15176 echo 'filds mem; fists mem' > conftest.s
15177 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }
15184 gcc_cv_as_ix86_filds_fists=yes
15186 echo "configure: failed program was" >&5
15189 rm -f conftest.o conftest.s
15192 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15193 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15194 if test $gcc_cv_as_ix86_filds_fists = yes; then
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_GAS_FILDS_FISTS 1
15202 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15203 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15204 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 gcc_cv_as_ix86_cmov_sun_syntax=no
15208 if test x$gcc_cv_as != x; then
15209 echo 'cmovl.l %edx, %eax' > conftest.s
15210 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }
15217 gcc_cv_as_ix86_cmov_sun_syntax=yes
15219 echo "configure: failed program was" >&5
15222 rm -f conftest.o conftest.s
15225 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15226 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15227 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15235 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15236 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15237 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 gcc_cv_as_ix86_ffreep=no
15241 if test x$gcc_cv_as != x; then
15242 echo 'ffreep %st(1)' > conftest.s
15243 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }
15250 gcc_cv_as_ix86_ffreep=yes
15252 echo "configure: failed program was" >&5
15255 rm -f conftest.o conftest.s
15258 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15259 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15260 if test $gcc_cv_as_ix86_ffreep = yes; then
15262 cat >>confdefs.h <<\_ACEOF
15263 #define HAVE_AS_IX86_FFREEP 1
15268 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15269 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15270 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 gcc_cv_as_ix86_sahf=no
15274 if test x$gcc_cv_as != x; then
15275 echo 'sahf' > conftest.s
15276 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }
15283 gcc_cv_as_ix86_sahf=yes
15285 echo "configure: failed program was" >&5
15288 rm -f conftest.o conftest.s
15291 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15292 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15293 if test $gcc_cv_as_ix86_sahf = yes; then
15295 cat >>confdefs.h <<\_ACEOF
15296 #define HAVE_AS_IX86_SAHF 1
15301 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15302 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15303 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 gcc_cv_as_ix86_diff_sect_delta=no
15307 if test x$gcc_cv_as != x; then
15308 echo '.section .rodata
15314 .L2: nop' > conftest.s
15315 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }
15322 gcc_cv_as_ix86_diff_sect_delta=yes
15324 echo "configure: failed program was" >&5
15327 rm -f conftest.o conftest.s
15330 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15331 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15332 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15334 cat >>confdefs.h <<\_ACEOF
15335 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15340 # This one is used unconditionally by i386.[ch]; it is to be defined
15341 # to 1 if the feature is present, 0 otherwise.
15342 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15343 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15344 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15347 gcc_cv_as_ix86_gotoff_in_data=no
15348 if test $in_tree_gas = yes; then
15349 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15350 then gcc_cv_as_ix86_gotoff_in_data=yes
15352 elif test x$gcc_cv_as != x; then
15357 .long .L0@GOTOFF' > conftest.s
15358 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }
15365 gcc_cv_as_ix86_gotoff_in_data=yes
15367 echo "configure: failed program was" >&5
15370 rm -f conftest.o conftest.s
15373 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15374 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15377 cat >>confdefs.h <<_ACEOF
15378 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15384 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15385 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15386 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15390 if test $in_tree_gas = yes; then
15391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15392 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15394 elif test x$gcc_cv_as != x; then
15396 addl r15 = @ltoffx(x#), gp
15398 ld8.mov r16 = [r15], x#' > conftest.s
15399 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401 (eval $ac_try) 2>&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; }
15406 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15408 echo "configure: failed program was" >&5
15411 rm -f conftest.o conftest.s
15414 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15415 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15416 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15418 cat >>confdefs.h <<\_ACEOF
15419 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15428 *-*-aix*) conftest_s=' .machine "pwr5"
15432 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15433 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15434 if test "${gcc_cv_as_machine_directive+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 gcc_cv_as_machine_directive=no
15438 if test x$gcc_cv_as != x; then
15439 echo ' .machine ppc7400' > conftest.s
15440 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }
15447 gcc_cv_as_machine_directive=yes
15449 echo "configure: failed program was" >&5
15452 rm -f conftest.o conftest.s
15455 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15456 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15458 if test x$gcc_cv_as_machine_directive != xyes; then
15459 echo "*** This target requires an assembler supporting \".machine\"" >&2
15460 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15461 test x$build = x$target && exit 1
15465 *) conftest_s=' .machine power4
15470 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15471 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15472 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 gcc_cv_as_powerpc_mfcrf=no
15476 if test $in_tree_gas = yes; then
15477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15478 then gcc_cv_as_powerpc_mfcrf=yes
15480 elif test x$gcc_cv_as != x; then
15481 echo "$conftest_s" > conftest.s
15482 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; }
15489 gcc_cv_as_powerpc_mfcrf=yes
15491 echo "configure: failed program was" >&5
15494 rm -f conftest.o conftest.s
15497 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15498 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15499 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15501 cat >>confdefs.h <<\_ACEOF
15502 #define HAVE_AS_MFCRF 1
15508 *-*-aix*) conftest_s=' .machine "pwr5"
15511 *) conftest_s=' .machine power5
15516 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15517 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15518 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15521 gcc_cv_as_powerpc_popcntb=no
15522 if test $in_tree_gas = yes; then
15523 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15524 then gcc_cv_as_powerpc_popcntb=yes
15526 elif test x$gcc_cv_as != x; then
15527 echo "$conftest_s" > conftest.s
15528 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }
15535 gcc_cv_as_powerpc_popcntb=yes
15537 echo "configure: failed program was" >&5
15540 rm -f conftest.o conftest.s
15543 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15544 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15545 if test $gcc_cv_as_powerpc_popcntb = yes; then
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_AS_POPCNTB 1
15554 *-*-aix*) conftest_s=' .machine "pwr5x"
15557 *) conftest_s=' .machine power5
15562 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15563 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15564 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 gcc_cv_as_powerpc_fprnd=no
15568 if test $in_tree_gas = yes; then
15569 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15570 then gcc_cv_as_powerpc_fprnd=yes
15572 elif test x$gcc_cv_as != x; then
15573 echo "$conftest_s" > conftest.s
15574 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576 (eval $ac_try) 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }
15581 gcc_cv_as_powerpc_fprnd=yes
15583 echo "configure: failed program was" >&5
15586 rm -f conftest.o conftest.s
15589 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15590 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15591 if test $gcc_cv_as_powerpc_fprnd = yes; then
15593 cat >>confdefs.h <<\_ACEOF
15594 #define HAVE_AS_FPRND 1
15600 *-*-aix*) conftest_s=' .machine "pwr6"
15603 *) conftest_s=' .machine power6
15608 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15609 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15610 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 gcc_cv_as_powerpc_mfpgpr=no
15614 if test $in_tree_gas = yes; then
15615 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15616 then gcc_cv_as_powerpc_mfpgpr=yes
15618 elif test x$gcc_cv_as != x; then
15619 echo "$conftest_s" > conftest.s
15620 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }
15627 gcc_cv_as_powerpc_mfpgpr=yes
15629 echo "configure: failed program was" >&5
15632 rm -f conftest.o conftest.s
15635 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15636 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15637 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15639 cat >>confdefs.h <<\_ACEOF
15640 #define HAVE_AS_MFPGPR 1
15646 *-*-aix*) conftest_s=' .csect .text[PR]
15648 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15652 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15653 *) conftest_s=' .text
15655 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15658 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15659 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15660 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 gcc_cv_as_powerpc_rel16=no
15664 if test $in_tree_gas = yes; then
15665 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15666 then gcc_cv_as_powerpc_rel16=yes
15668 elif test x$gcc_cv_as != x; then
15669 echo "$conftest_s" > conftest.s
15670 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }
15677 gcc_cv_as_powerpc_rel16=yes
15679 echo "configure: failed program was" >&5
15682 rm -f conftest.o conftest.s
15685 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15686 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15687 if test $gcc_cv_as_powerpc_rel16 = yes; then
15689 cat >>confdefs.h <<\_ACEOF
15690 #define HAVE_AS_REL16 1
15696 *-*-aix*) conftest_s=' .machine "pwr6"
15699 *) conftest_s=' .machine power6
15704 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15705 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15706 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 gcc_cv_as_powerpc_cmpb=no
15710 if test $in_tree_gas = yes; then
15711 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15712 then gcc_cv_as_powerpc_cmpb=yes
15714 elif test x$gcc_cv_as != x; then
15715 echo "$conftest_s" > conftest.s
15716 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }
15723 gcc_cv_as_powerpc_cmpb=yes
15725 echo "configure: failed program was" >&5
15728 rm -f conftest.o conftest.s
15731 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15732 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15733 if test $gcc_cv_as_powerpc_cmpb = yes; then
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_AS_CMPB 1
15742 *-*-aix*) conftest_s=' .machine "pwr6"
15745 *) conftest_s=' .machine power6
15750 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15751 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15752 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 gcc_cv_as_powerpc_dfp=no
15756 if test $in_tree_gas = yes; then
15757 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15758 then gcc_cv_as_powerpc_dfp=yes
15760 elif test x$gcc_cv_as != x; then
15761 echo "$conftest_s" > conftest.s
15762 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }
15769 gcc_cv_as_powerpc_dfp=yes
15771 echo "configure: failed program was" >&5
15774 rm -f conftest.o conftest.s
15777 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15778 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15779 if test $gcc_cv_as_powerpc_dfp = yes; then
15781 cat >>confdefs.h <<\_ACEOF
15782 #define HAVE_AS_DFP 1
15787 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15788 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15789 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 gcc_cv_as_powerpc_gnu_attribute=no
15793 if test $in_tree_gas = yes; then
15794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15795 then gcc_cv_as_powerpc_gnu_attribute=yes
15797 elif test x$gcc_cv_as != x; then
15798 echo '.gnu_attribute 4,1' > conftest.s
15799 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }
15806 gcc_cv_as_powerpc_gnu_attribute=yes
15808 echo "configure: failed program was" >&5
15811 rm -f conftest.o conftest.s
15814 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
15815 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
15816 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
15818 cat >>confdefs.h <<\_ACEOF
15819 #define HAVE_AS_GNU_ATTRIBUTE 1
15826 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15827 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15828 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 gcc_cv_as_mips_explicit_relocs=no
15832 if test $in_tree_gas = yes; then
15833 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15834 then gcc_cv_as_mips_explicit_relocs=yes
15836 elif test x$gcc_cv_as != x; then
15837 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15838 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }
15845 gcc_cv_as_mips_explicit_relocs=yes
15847 echo "configure: failed program was" >&5
15850 rm -f conftest.o conftest.s
15853 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15854 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15855 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15856 if test x$target_cpu_default = x
15857 then target_cpu_default=MASK_EXPLICIT_RELOCS
15858 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15861 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15862 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15863 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15866 gcc_cv_as_mips_no_shared=no
15867 if test $in_tree_gas = yes; then
15868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15869 then gcc_cv_as_mips_no_shared=yes
15871 elif test x$gcc_cv_as != x; then
15872 echo 'nop' > conftest.s
15873 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }
15880 gcc_cv_as_mips_no_shared=yes
15882 echo "configure: failed program was" >&5
15885 rm -f conftest.o conftest.s
15888 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15889 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15890 if test $gcc_cv_as_mips_no_shared = yes; then
15892 cat >>confdefs.h <<\_ACEOF
15893 #define HAVE_AS_NO_SHARED 1
15898 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15899 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15900 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 gcc_cv_as_mips_gnu_attribute=no
15904 if test $in_tree_gas = yes; then
15905 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15906 then gcc_cv_as_mips_gnu_attribute=yes
15908 elif test x$gcc_cv_as != x; then
15909 echo '.gnu_attribute 4,1' > conftest.s
15910 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }
15917 gcc_cv_as_mips_gnu_attribute=yes
15919 echo "configure: failed program was" >&5
15922 rm -f conftest.o conftest.s
15925 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
15926 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
15927 if test $gcc_cv_as_mips_gnu_attribute = yes; then
15929 cat >>confdefs.h <<\_ACEOF
15930 #define HAVE_AS_GNU_ATTRIBUTE 1
15935 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
15936 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
15937 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
15938 echo $ECHO_N "(cached) $ECHO_C" >&6
15940 gcc_cv_as_mips_dtprelword=no
15941 if test $in_tree_gas = yes; then
15942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15943 then gcc_cv_as_mips_dtprelword=yes
15945 elif test x$gcc_cv_as != x; then
15946 echo '.section .tdata,"awT",@progbits
15950 .dtprelword x+0x8000' > conftest.s
15951 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }
15958 gcc_cv_as_mips_dtprelword=yes
15960 echo "configure: failed program was" >&5
15963 rm -f conftest.o conftest.s
15966 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
15967 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
15968 if test $gcc_cv_as_mips_dtprelword = yes; then
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_AS_DTPRELWORD 1
15978 # Mips and HP-UX need the GNU assembler.
15979 # Linux on IA64 might be able to use the Intel assembler.
15982 mips*-*-* | *-*-hpux* )
15983 if test x$gas_flag = xyes \
15984 || test x"$host" != x"$build" \
15985 || test ! -x "$gcc_cv_as" \
15986 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15989 echo "*** This configuration requires the GNU assembler" >&2
15995 # ??? Not all targets support dwarf2 debug_line, even within a version
15996 # of gas. Moreover, we need to emit a valid instruction to trigger any
15997 # info to the output file. So, as supported targets are added to gas 2.11,
15998 # add some instruction here to (also) show we expect this might work.
15999 # ??? Once 2.11 is released, probably need to add first known working
16000 # version to the per-target configury.
16002 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16003 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16004 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16007 ia64*-*-* | s390*-*-*)
16014 if test x"$insn" != x; then
16016 .file 1 \"conftest.s\"
16019 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16020 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16021 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 gcc_cv_as_dwarf2_debug_line=no
16025 if test $in_tree_gas = yes; then
16026 if test $in_tree_gas_is_elf = yes \
16027 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16028 then gcc_cv_as_dwarf2_debug_line=yes
16030 elif test x$gcc_cv_as != x; then
16031 echo "$conftest_s" > conftest.s
16032 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }
16039 if test x$gcc_cv_objdump != x \
16040 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16041 | grep debug_line > /dev/null 2>&1; then
16042 gcc_cv_as_dwarf2_debug_line=yes
16045 echo "configure: failed program was" >&5
16048 rm -f conftest.o conftest.s
16051 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16052 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16055 # The .debug_line file table must be in the exact order that
16056 # we specified the files, since these indices are also used
16057 # by DW_AT_decl_file. Approximate this test by testing if
16058 # the assembler bitches if the same index is assigned twice.
16059 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16060 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16061 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16064 gcc_cv_as_dwarf2_file_buggy=no
16065 if test x$gcc_cv_as != x; then
16066 echo ' .file 1 "foo.s"
16067 .file 1 "bar.s"' > conftest.s
16068 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; }
16075 gcc_cv_as_dwarf2_file_buggy=yes
16077 echo "configure: failed program was" >&5
16080 rm -f conftest.o conftest.s
16083 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16084 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16087 if test $gcc_cv_as_dwarf2_debug_line = yes \
16088 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16090 cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16096 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16097 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16098 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 gcc_cv_as_gdwarf2_flag=no
16102 if test $in_tree_gas = yes; then
16103 if test $in_tree_gas_is_elf = yes \
16104 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16105 then gcc_cv_as_gdwarf2_flag=yes
16107 elif test x$gcc_cv_as != x; then
16108 echo "$insn" > conftest.s
16109 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }
16116 gcc_cv_as_gdwarf2_flag=yes
16118 echo "configure: failed program was" >&5
16121 rm -f conftest.o conftest.s
16124 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16125 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16126 if test $gcc_cv_as_gdwarf2_flag = yes; then
16128 cat >>confdefs.h <<\_ACEOF
16129 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16134 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16135 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16136 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16139 gcc_cv_as_gstabs_flag=no
16140 if test $in_tree_gas = yes; then
16141 if test $in_tree_gas_is_elf = yes \
16142 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16143 then gcc_cv_as_gstabs_flag=yes
16145 elif test x$gcc_cv_as != x; then
16146 echo "$insn" > conftest.s
16147 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }
16154 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16155 # and warns about it, but still exits successfully. So check for
16157 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }
16164 else gcc_cv_as_gstabs_flag=yes
16167 echo "configure: failed program was" >&5
16170 rm -f conftest.o conftest.s
16173 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16174 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16175 if test $gcc_cv_as_gstabs_flag = yes; then
16177 cat >>confdefs.h <<\_ACEOF
16178 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16184 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16185 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16186 if test "${gcc_cv_as_line_zero+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 gcc_cv_as_line_zero=no
16190 if test $in_tree_gas = yes; then
16191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16192 then gcc_cv_as_line_zero=yes
16194 elif test "x$gcc_cv_as" != x; then
16195 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16196 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } &&
16202 test "x`cat conftest.out`" = x
16204 gcc_cv_as_line_zero=yes
16206 echo "configure: failed program was" >&5
16208 echo "configure: error output was" >&5
16209 cat conftest.out >&5
16211 rm -f conftest.o conftest.s conftest.out
16214 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16215 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16216 if test "x$gcc_cv_as_line_zero" = xyes; then
16218 cat >>confdefs.h <<\_ACEOF
16219 #define HAVE_AS_LINE_ZERO 1
16224 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16225 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16226 gcc_cv_ld_ro_rw_mix=unknown
16227 if test $in_tree_ld = yes ; then
16228 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 \
16229 && test $in_tree_ld_is_elf = yes; then
16230 gcc_cv_ld_ro_rw_mix=read-write
16232 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16233 echo '.section myfoosect, "a"' > conftest1.s
16234 echo '.section myfoosect, "aw"' > conftest2.s
16235 echo '.byte 1' >> conftest2.s
16236 echo '.section myfoosect, "a"' > conftest3.s
16237 echo '.byte 0' >> conftest3.s
16238 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16239 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16240 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16241 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16242 conftest2.o conftest3.o > /dev/null 2>&1; then
16243 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16244 | sed -e '/myfoosect/!d' -e N`
16245 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16246 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16247 gcc_cv_ld_ro_rw_mix=read-only
16249 gcc_cv_ld_ro_rw_mix=read-write
16253 rm -f conftest.* conftest[123].*
16255 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16257 cat >>confdefs.h <<\_ACEOF
16258 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16262 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16263 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16265 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16266 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16267 gcc_cv_ld_eh_frame_hdr=no
16268 if test $in_tree_ld = yes ; then
16269 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
16270 && test $in_tree_ld_is_elf = yes; then
16271 gcc_cv_ld_eh_frame_hdr=yes
16273 elif test x$gcc_cv_ld != x; then
16274 # Check if linker supports --eh-frame-hdr option
16275 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16276 gcc_cv_ld_eh_frame_hdr=yes
16280 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_LD_EH_FRAME_HDR 1
16287 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16288 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16290 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16291 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16293 if test $in_tree_ld = yes ; then
16294 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 \
16295 && test $in_tree_ld_is_elf = yes; then
16298 elif test x$gcc_cv_ld != x; then
16299 # Check if linker supports -pie option
16300 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16304 if test x"$gcc_cv_ld_pie" = xyes; then
16306 cat >>confdefs.h <<\_ACEOF
16307 #define HAVE_LD_PIE 1
16311 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16312 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16314 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16315 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16316 gcc_cv_ld_eh_gc_sections=no
16317 if test $in_tree_ld = yes ; then
16318 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16319 && test $in_tree_ld_is_elf = yes; then
16320 gcc_cv_ld_eh_gc_sections=yes
16322 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16323 cat > conftest.s <<EOF
16326 .type _start, @function
16329 .size _start, .-_start
16330 .section .text.foo,"ax",@progbits
16331 .type foo, @function
16335 .section .gcc_except_table.foo,"a",@progbits
16338 .section .eh_frame,"a",@progbits
16341 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16342 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16343 | grep "gc-sections option ignored" > /dev/null; then
16344 gcc_cv_ld_eh_gc_sections=no
16345 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16346 gcc_cv_ld_eh_gc_sections=yes
16347 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16348 if test x$gcc_cv_as_comdat_group != xyes; then
16349 gcc_cv_ld_eh_gc_sections=no
16350 cat > conftest.s <<EOF
16353 .type _start, @function
16356 .size _start, .-_start
16357 .section .gnu.linkonce.t.foo,"ax",@progbits
16358 .type foo, @function
16362 .section .gcc_except_table.foo,"a",@progbits
16365 .section .eh_frame,"a",@progbits
16368 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16369 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16370 | grep "gc-sections option ignored" > /dev/null; then
16371 gcc_cv_ld_eh_gc_sections=no
16372 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16373 gcc_cv_ld_eh_gc_sections=yes
16379 rm -f conftest.s conftest.o conftest
16383 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16384 gcc_cv_ld_eh_gc_sections=no
16387 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16389 cat >>confdefs.h <<\_ACEOF
16390 #define HAVE_LD_EH_GC_SECTIONS 1
16394 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16395 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16401 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16402 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16403 if test "${gcc_cv_ld_as_needed+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 gcc_cv_ld_as_needed=no
16407 if test $in_tree_ld = yes ; then
16408 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 \
16409 && test $in_tree_ld_is_elf = yes; then
16410 gcc_cv_ld_as_needed=yes
16412 elif test x$gcc_cv_ld != x; then
16413 # Check if linker supports --as-needed and --no-as-needed options
16414 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16415 gcc_cv_ld_as_needed=yes
16420 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16421 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16422 if test x"$gcc_cv_ld_as_needed" = xyes; then
16424 cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_LD_AS_NEEDED 1
16430 case "$target:$tm_file" in
16431 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16432 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16433 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16434 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 gcc_cv_ld_no_dot_syms=no
16438 if test $in_tree_ld = yes ; then
16439 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
16440 gcc_cv_ld_no_dot_syms=yes
16442 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16443 cat > conftest1.s <<EOF
16447 cat > conftest2.s <<EOF
16448 .section ".opd","aw"
16451 .type foo,@function
16453 .quad .LEfoo,.TOC.@tocbase,0
16459 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16460 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16461 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16462 gcc_cv_ld_no_dot_syms=yes
16464 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16468 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16469 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16470 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16472 cat >>confdefs.h <<\_ACEOF
16473 #define HAVE_LD_NO_DOT_SYMS 1
16480 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16481 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16482 if test "${gcc_cv_ld_sysroot+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 gcc_cv_ld_sysroot=no
16486 if test $in_tree_ld = yes ; then
16487 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
16488 gcc_cv_ld_sysroot=yes
16490 elif test x$gcc_cv_ld != x; then
16491 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16492 gcc_cv_ld_sysroot=yes
16496 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16497 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16498 if test x"$gcc_cv_ld_sysroot" = xyes; then
16500 cat >>confdefs.h <<\_ACEOF
16501 #define HAVE_LD_SYSROOT 1
16506 if test x$with_sysroot = x && test x$host = x$target \
16507 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16508 && test "$prefix" != "NONE"; then
16510 cat >>confdefs.h <<_ACEOF
16511 #define PREFIX_INCLUDE_DIR "$prefix/include"
16516 # Test for stack protector support in target C library.
16517 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16518 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16519 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 gcc_cv_libc_provides_ssp=no
16525 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16526 if test "x$with_sysroot" = x; then
16527 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16528 elif test "x$with_build_sysroot" != "x"; then
16529 glibc_header_dir="${with_build_sysroot}/usr/include"
16530 elif test "x$with_sysroot" = xyes; then
16531 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16533 glibc_header_dir="${with_sysroot}/usr/include"
16536 glibc_header_dir=/usr/include
16538 # glibc 2.4 and later provides __stack_chk_fail and
16539 # either __stack_chk_guard, or TLS access to stack guard canary.
16540 if test -f $glibc_header_dir/features.h \
16541 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16542 $glibc_header_dir/features.h > /dev/null; then
16543 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16544 $glibc_header_dir/features.h > /dev/null; then
16545 gcc_cv_libc_provides_ssp=yes
16546 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16547 $glibc_header_dir/features.h > /dev/null \
16548 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16549 $glibc_header_dir/features.h > /dev/null; then
16550 gcc_cv_libc_provides_ssp=yes
16555 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16556 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16557 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 cat >conftest.$ac_ext <<_ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16566 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16568 #define __stack_chk_fail innocuous___stack_chk_fail
16570 /* System header to define __stub macros and hopefully few prototypes,
16571 which can conflict with char __stack_chk_fail (); below.
16572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16573 <limits.h> exists even on freestanding compilers. */
16576 # include <limits.h>
16578 # include <assert.h>
16581 #undef __stack_chk_fail
16583 /* Override any gcc2 internal prototype to avoid an error. */
16588 /* We use char because int might match the return type of a gcc2
16589 builtin and then its argument prototype would still apply. */
16590 char __stack_chk_fail ();
16591 /* The GNU C library defines this for functions which it implements
16592 to always fail with ENOSYS. Some functions are actually named
16593 something starting with __ and the normal name is an alias. */
16594 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16597 char (*f) () = __stack_chk_fail;
16606 return f != __stack_chk_fail;
16611 rm -f conftest.$ac_objext conftest$ac_exeext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613 (eval $ac_link) 2>conftest.er1
16615 grep -v '^ *+' conftest.er1 >conftest.err
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest$ac_exeext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 ac_cv_func___stack_chk_fail=yes
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16638 ac_cv_func___stack_chk_fail=no
16640 rm -f conftest.err conftest.$ac_objext \
16641 conftest$ac_exeext conftest.$ac_ext
16643 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16644 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16645 if test $ac_cv_func___stack_chk_fail = yes; then
16646 gcc_cv_libc_provides_ssp=yes
16648 echo "no __stack_chk_fail on this target"
16652 *) gcc_cv_libc_provides_ssp=no ;;
16655 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16656 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16658 if test x$gcc_cv_libc_provides_ssp = xyes; then
16660 cat >>confdefs.h <<\_ACEOF
16661 #define TARGET_LIBC_PROVIDES_SSP 1
16666 # Check if TFmode long double should be used by default or not.
16667 # Some glibc targets used DFmode long double, but with glibc 2.4
16668 # and later they can use TFmode.
16670 powerpc*-*-linux* | \
16671 powerpc*-*-gnu* | \
16672 sparc*-*-linux* | \
16676 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16677 if test "${with_long_double_128+set}" = set; then
16678 withval="$with_long_double_128"
16679 gcc_cv_target_ldbl128="$with_long_double_128"
16681 gcc_cv_target_ldbl128=no
16682 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16683 if test "x$with_sysroot" = x; then
16684 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16685 elif test "x$with_build_sysroot" != "x"; then
16686 glibc_header_dir="${with_build_sysroot}/usr/include"
16687 elif test "x$with_sysroot" = xyes; then
16688 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16690 glibc_header_dir="${with_sysroot}/usr/include"
16693 glibc_header_dir=/usr/include
16695 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16696 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16697 && gcc_cv_target_ldbl128=yes
16702 if test x$gcc_cv_target_ldbl128 = xyes; then
16704 cat >>confdefs.h <<\_ACEOF
16705 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16710 # Find out what GC implementation we want, or may, use.
16712 # Check whether --with-gc or --without-gc was given.
16713 if test "${with_gc+set}" = set; then
16722 cat >>confdefs.h <<\_ACEOF
16728 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16729 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16730 { (exit 1); exit 1; }; }
16737 echo "Using $GGC for garbage collection."
16739 # Use the system's zlib library.
16741 zlibinc="-I\$(srcdir)/../zlib"
16743 # Check whether --with-system-zlib or --without-system-zlib was given.
16744 if test "${with_system_zlib+set}" = set; then
16745 withval="$with_system_zlib"
16754 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16755 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16756 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16757 if test "${enable_maintainer_mode+set}" = set; then
16758 enableval="$enable_maintainer_mode"
16759 maintainer_mode=$enableval
16764 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16765 echo "${ECHO_T}$maintainer_mode" >&6
16767 if test "$maintainer_mode" = "yes"; then
16777 # Make empty files to contain the specs and options for each language.
16778 # Then add #include lines to for a compiler that has specs and/or options.
16784 # These (without "all_") are set in each config-lang.in.
16785 # `language' must be a single word so is spelled singularly.
16788 all_outputs='Makefile gccbug libada-mk'
16789 # List of language makefile fragments.
16790 all_lang_makefrags=
16791 # List of language subdirectory makefiles. Deprecated.
16792 all_lang_makefiles=
16793 # Additional files for gengtype
16794 all_gtfiles="$target_gtfiles"
16796 # These are the languages that are set in --enable-languages,
16797 # and are available in the GCC tree.
16798 all_selected_languages=
16800 # Add the language fragments.
16801 # Languages are added via two mechanisms. Some information must be
16802 # recorded in makefile variables, these are defined in config-lang.in.
16803 # We accumulate them and plug them into the main Makefile.
16804 # The other mechanism is a set of hooks for each of the main targets
16805 # like `clean', `install', etc.
16807 language_hooks="Make-hooks"
16809 for lang in ${srcdir}/*/config-lang.in
16811 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16813 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16814 if test "x$lang_alias" = x
16816 echo "$lang doesn't set \$language." 1>&2
16819 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16820 subdirs="$subdirs $subdir"
16821 case ",$enable_languages," in
16823 all_selected_languages="$all_selected_languages $lang_alias"
16824 if test -f $srcdir/$subdir/lang-specs.h; then
16825 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16836 . ${srcdir}/$subdir/config-lang.in
16837 if test "x$language" = x
16839 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16844 case ",$enable_languages," in
16845 *,$lang_alias,*) ;;
16847 for i in $subdir_requires; do
16848 test -f "${srcdir}/$i/config-lang.in" && continue
16856 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16857 if test -f $srcdir/$subdir/lang.opt; then
16858 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16860 if test -f $srcdir/$subdir/$subdir-tree.def; then
16861 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16863 if test -f ${srcdir}/$subdir/Makefile.in
16864 then all_lang_makefiles="$subdir/Makefile"
16866 all_languages="$all_languages $language"
16867 all_compilers="$all_compilers $compilers"
16868 all_outputs="$all_outputs $outputs"
16869 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
16872 # Pick up gtfiles for c
16874 . ${srcdir}/c-config-lang.in
16875 all_gtfiles="$all_gtfiles [c] $gtfiles"
16878 for language in $all_selected_languages
16880 check_languages="$check_languages check-$language"
16883 # We link each language in with a set of hooks, reached indirectly via
16884 # lang.${target}. Only do so for selected languages.
16888 target_list="all.cross start.encap rest.encap tags \
16889 install-common install-man install-info install-pdf dvi pdf \
16890 html uninstall info man srcextra srcman srcinfo \
16891 mostlyclean clean distclean maintainer-clean"
16893 for t in $target_list
16896 for lang in $all_selected_languages
16900 echo "lang.$t: $x" >> Make-hooks
16909 echo "dir ." > .gdbinit
16910 echo "dir ${srcdir}" >> .gdbinit
16911 if test x$gdb_needs_out_file_path = xyes
16913 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16915 if test "x$subdirs" != x; then
16918 echo "dir ${srcdir}/$s" >> .gdbinit
16921 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16923 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
16927 # Find a directory in which to install a shared libgcc.
16929 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16930 if test "${enable_version_specific_runtime_libs+set}" = set; then
16931 enableval="$enable_version_specific_runtime_libs"
16936 # Check whether --with-slibdir or --without-slibdir was given.
16937 if test "${with_slibdir+set}" = set; then
16938 withval="$with_slibdir"
16939 slibdir="$with_slibdir"
16941 if test "${enable_version_specific_runtime_libs+set}" = set; then
16942 slibdir='$(libsubdir)'
16943 elif test "$host" != "$target"; then
16944 slibdir='$(build_tooldir)/lib'
16946 slibdir='$(libdir)'
16951 objdir=`${PWDCMD-pwd}`
16955 # Check whether --with-datarootdir or --without-datarootdir was given.
16956 if test "${with_datarootdir+set}" = set; then
16957 withval="$with_datarootdir"
16958 datarootdir="\${prefix}/$with_datarootdir"
16960 datarootdir='$(prefix)/share'
16965 # Check whether --with-docdir or --without-docdir was given.
16966 if test "${with_docdir+set}" = set; then
16967 withval="$with_docdir"
16968 docdir="\${prefix}/$with_docdir"
16970 docdir='$(datarootdir)'
16975 # Check whether --with-htmldir or --without-htmldir was given.
16976 if test "${with_htmldir+set}" = set; then
16977 withval="$with_htmldir"
16978 htmldir="\${prefix}/$with_htmldir"
16980 htmldir='$(docdir)'
16984 # Substitute configuration variables
17041 if test x${build} = x${host} ; then
17042 if test x${host} = x${target} ; then
17043 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17045 echo "Links are now set up to build a cross-compiler" 1>&2
17046 echo " from ${host} to ${target}." 1>&2
17049 if test x${host} = x${target} ; then
17050 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17051 echo " for ${target}." 1>&2
17053 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17054 echo " from ${host} to ${target}." 1>&2
17061 # Configure the subdirectories
17062 # AC_CONFIG_SUBDIRS($subdirs)
17064 # Create the Makefile
17065 # and configure language subdirectories
17066 ac_config_files="$ac_config_files $all_outputs"
17069 ac_config_commands="$ac_config_commands default"
17071 cat >confcache <<\_ACEOF
17072 # This file is a shell script that caches the results of configure
17073 # tests run on this system so they can be shared between configure
17074 # scripts and configure runs, see configure's option --config-cache.
17075 # It is not useful on other systems. If it contains results you don't
17076 # want to keep, you may remove or edit it.
17078 # config.status only pays attention to the cache file if you give it
17079 # the --recheck option to rerun configure.
17081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17083 # following values.
17087 # The following way of writing the cache mishandles newlines in values,
17088 # but we know of no workaround that is simple, portable, and efficient.
17089 # So, don't put newlines in cache variables' values.
17090 # Ultrix sh set writes to stderr and can't be redirected directly,
17091 # and sets the high bit in the cache file unless we assign to the vars.
17094 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17096 # `set' does not quote correctly, so add quotes (double-quote
17097 # substitution turns \\\\ into \\, and sed turns \\ into \).
17100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17103 # `set' quotes correctly as required by POSIX, so do not add quotes.
17105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17114 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17116 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17117 if test -w $cache_file; then
17118 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17119 cat confcache >$cache_file
17121 echo "not updating unwritable cache $cache_file"
17126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17127 # Let make expand exec_prefix.
17128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17130 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17131 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17132 # trailing colons and then remove the whole line if VPATH becomes empty
17133 # (actually we leave an empty line to preserve line numbers).
17134 if test "x$srcdir" = x.; then
17135 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17136 s/:*\$(srcdir):*/:/;
17137 s/:*\${srcdir}:*/:/;
17139 s/^\([^=]*=[ ]*\):*/\1/;
17145 DEFS=-DHAVE_CONFIG_H
17149 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17150 # 1. Remove the extension, and $U if already installed.
17151 ac_i=`echo "$ac_i" |
17152 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17154 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17155 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17157 LIBOBJS=$ac_libobjs
17159 LTLIBOBJS=$ac_ltlibobjs
17163 : ${CONFIG_STATUS=./config.status}
17164 ac_clean_files_save=$ac_clean_files
17165 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17166 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17167 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17168 cat >$CONFIG_STATUS <<_ACEOF
17170 # Generated by $as_me.
17171 # Run this file to recreate the current configuration.
17172 # Compiler output produced by configure, useful for debugging
17173 # configure, is in config.log if it exists.
17176 ac_cs_recheck=false
17178 SHELL=\${CONFIG_SHELL-$SHELL}
17181 cat >>$CONFIG_STATUS <<\_ACEOF
17182 ## --------------------- ##
17183 ## M4sh Initialization. ##
17184 ## --------------------- ##
17186 # Be Bourne compatible
17187 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17190 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17191 # is contrary to our usage. Disable this feature.
17192 alias -g '${1+"$@"}'='"$@"'
17193 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17196 DUALCASE=1; export DUALCASE # for MKS sh
17198 # Support unset when possible.
17199 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17206 # Work around bugs in pre-3.0 UWIN ksh.
17207 $as_unset ENV MAIL MAILPATH
17214 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17215 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17216 LC_TELEPHONE LC_TIME
17218 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17219 eval $as_var=C; export $as_var
17225 # Required to use basename.
17226 if expr a : '\(a\)' >/dev/null 2>&1; then
17232 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17233 as_basename=basename
17239 # Name of the executable.
17240 as_me=`$as_basename "$0" ||
17241 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17242 X"$0" : 'X\(//\)$' \| \
17243 X"$0" : 'X\(/\)$' \| \
17244 . : '\(.\)' 2>/dev/null ||
17246 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17247 /^X\/\(\/\/\)$/{ s//\1/; q; }
17248 /^X\/\(\/\).*/{ s//\1/; q; }
17252 # PATH needs CR, and LINENO needs CR and PATH.
17253 # Avoid depending upon Character Ranges.
17254 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17255 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17256 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17257 as_cr_digits='0123456789'
17258 as_cr_alnum=$as_cr_Letters$as_cr_digits
17260 # The user is always right.
17261 if test "${PATH_SEPARATOR+set}" != set; then
17262 echo "#! /bin/sh" >conf$$.sh
17263 echo "exit 0" >>conf$$.sh
17265 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17274 as_lineno_1=$LINENO
17275 as_lineno_2=$LINENO
17276 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17277 test "x$as_lineno_1" != "x$as_lineno_2" &&
17278 test "x$as_lineno_3" = "x$as_lineno_2" || {
17279 # Find who we are. Look in the path if we contain no path at all
17282 *[\\/]* ) as_myself=$0 ;;
17283 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17284 for as_dir in $PATH
17287 test -z "$as_dir" && as_dir=.
17288 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17293 # We did not find ourselves, most probably we were run as `sh COMMAND'
17294 # in which case we are not to be found in the path.
17295 if test "x$as_myself" = x; then
17298 if test ! -f "$as_myself"; then
17299 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17300 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17301 { (exit 1); exit 1; }; }
17303 case $CONFIG_SHELL in
17305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17306 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17309 test -z "$as_dir" && as_dir=.
17310 for as_base in sh bash ksh sh5; do
17313 if ("$as_dir/$as_base" -c '
17314 as_lineno_1=$LINENO
17315 as_lineno_2=$LINENO
17316 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17317 test "x$as_lineno_1" != "x$as_lineno_2" &&
17318 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17319 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17320 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17321 CONFIG_SHELL=$as_dir/$as_base
17322 export CONFIG_SHELL
17323 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17331 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17332 # uniformly replaced by the line number. The first 'sed' inserts a
17333 # line-number line before each line; the second 'sed' does the real
17334 # work. The second script uses 'N' to pair each line-number line
17335 # with the numbered line, and appends trailing '-' during
17336 # substitution so that $LINENO is not a special case at line end.
17337 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17338 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17339 sed '=' <$as_myself |
17344 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17347 s,^['$as_cr_digits']*\n,,
17348 ' >$as_me.lineno &&
17349 chmod +x $as_me.lineno ||
17350 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17351 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17352 { (exit 1); exit 1; }; }
17354 # Don't try to exec as it changes $[0], causing all sort of problems
17355 # (the dirname of $[0] is not the place where we might find the
17356 # original and so on. Autoconf is especially sensible to this).
17358 # Exit status is that of the last command.
17363 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17364 *c*,-n*) ECHO_N= ECHO_C='
17366 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17367 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17370 if expr a : '\(a\)' >/dev/null 2>&1; then
17376 rm -f conf$$ conf$$.exe conf$$.file
17378 if ln -s conf$$.file conf$$ 2>/dev/null; then
17379 # We could just check for DJGPP; but this test a) works b) is more generic
17380 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17381 if test -f conf$$.exe; then
17382 # Don't use ln at all; we don't have any links
17387 elif ln conf$$.file conf$$ 2>/dev/null; then
17392 rm -f conf$$ conf$$.exe conf$$.file
17394 if mkdir -p . 2>/dev/null; then
17397 test -d ./-p && rmdir ./-p
17401 as_executable_p="test -f"
17403 # Sed expression to map a string onto a valid CPP name.
17404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17406 # Sed expression to map a string onto a valid variable name.
17407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17411 # We need space, tab and new line, in precisely that order.
17421 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17422 # report actual input values of CONFIG_FILES etc. instead of their
17423 # values after options handling. Logging --version etc. is OK.
17427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17428 ## Running $as_me. ##
17433 This file was extended by $as_me, which was
17434 generated by GNU Autoconf 2.59. Invocation command line was
17436 CONFIG_FILES = $CONFIG_FILES
17437 CONFIG_HEADERS = $CONFIG_HEADERS
17438 CONFIG_LINKS = $CONFIG_LINKS
17439 CONFIG_COMMANDS = $CONFIG_COMMANDS
17443 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17447 # Files that config.status was made for.
17448 if test -n "$ac_config_files"; then
17449 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17452 if test -n "$ac_config_headers"; then
17453 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17456 if test -n "$ac_config_links"; then
17457 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17460 if test -n "$ac_config_commands"; then
17461 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17464 cat >>$CONFIG_STATUS <<\_ACEOF
17467 \`$as_me' instantiates files from templates according to the
17468 current configuration.
17470 Usage: $0 [OPTIONS] [FILE]...
17472 -h, --help print this help, then exit
17473 -V, --version print version number, then exit
17474 -q, --quiet do not print progress messages
17475 -d, --debug don't remove temporary files
17476 --recheck update $as_me by reconfiguring in the same conditions
17477 --file=FILE[:TEMPLATE]
17478 instantiate the configuration file FILE
17479 --header=FILE[:TEMPLATE]
17480 instantiate the configuration header FILE
17482 Configuration files:
17485 Configuration headers:
17488 Configuration commands:
17491 Report bugs to <bug-autoconf@gnu.org>."
17494 cat >>$CONFIG_STATUS <<_ACEOF
17497 configured by $0, generated by GNU Autoconf 2.59,
17498 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17500 Copyright (C) 2003 Free Software Foundation, Inc.
17501 This config.status script is free software; the Free Software Foundation
17502 gives unlimited permission to copy, distribute and modify it."
17506 cat >>$CONFIG_STATUS <<\_ACEOF
17507 # If no file are specified by the user, then we need to provide default
17508 # value. By we need to know if files were specified by the user.
17514 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17515 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17523 *) # This is not an option, so the user has probably given explicit
17526 ac_need_defaults=false;;
17530 # Handling of the options.
17532 cat >>$CONFIG_STATUS <<\_ACEOF
17533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17535 --version | --vers* | -V )
17536 echo "$ac_cs_version"; exit 0 ;;
17538 # Conflict between --help and --header
17539 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17540 Try \`$0 --help' for more information." >&5
17541 echo "$as_me: error: ambiguous option: $1
17542 Try \`$0 --help' for more information." >&2;}
17543 { (exit 1); exit 1; }; };;
17544 --help | --hel | -h )
17545 echo "$ac_cs_usage"; exit 0 ;;
17546 --debug | --d* | -d )
17548 --file | --fil | --fi | --f )
17550 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17551 ac_need_defaults=false;;
17552 --header | --heade | --head | --hea )
17554 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17555 ac_need_defaults=false;;
17556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17560 # This is an error.
17561 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17562 Try \`$0 --help' for more information." >&5
17563 echo "$as_me: error: unrecognized option: $1
17564 Try \`$0 --help' for more information." >&2;}
17565 { (exit 1); exit 1; }; } ;;
17567 *) ac_config_targets="$ac_config_targets $1" ;;
17573 ac_configure_extra_args=
17575 if $ac_cs_silent; then
17577 ac_configure_extra_args="$ac_configure_extra_args --silent"
17581 cat >>$CONFIG_STATUS <<_ACEOF
17582 if \$ac_cs_recheck; then
17583 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17584 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17589 cat >>$CONFIG_STATUS <<_ACEOF
17591 # INIT-COMMANDS section.
17600 cat >>$CONFIG_STATUS <<\_ACEOF
17601 for ac_config_target in $ac_config_targets
17603 case "$ac_config_target" in
17604 # Handling of arguments.
17605 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
17606 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17607 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
17608 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17609 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17610 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17611 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17612 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17613 { (exit 1); exit 1; }; };;
17617 # If the user did not use the arguments to specify the items to instantiate,
17618 # then the envvar interface is used. Set only those that are not.
17619 # We use the long form for the default assignment because of an extremely
17620 # bizarre bug on SunOS 4.1.3.
17621 if $ac_need_defaults; then
17622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17627 # Have a temporary directory for convenience. Make it in the build tree
17628 # simply because there is no reason to put it here, and in addition,
17629 # creating and moving files from /tmp can sometimes cause problems.
17630 # Create a temporary directory, and hook for its removal unless debugging.
17633 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17634 trap '{ (exit 1); exit 1; }' 1 2 13 15
17637 # Create a (secure) tmp directory for tmp files.
17640 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17641 test -n "$tmp" && test -d "$tmp"
17644 tmp=./confstat$$-$RANDOM
17645 (umask 077 && mkdir $tmp)
17648 echo "$me: cannot create a temporary directory in ." >&2
17649 { (exit 1); exit 1; }
17654 cat >>$CONFIG_STATUS <<_ACEOF
17657 # CONFIG_FILES section.
17660 # No need to generate the scripts if there are no CONFIG_FILES.
17661 # This happens for instance when ./config.status config.h
17662 if test -n "\$CONFIG_FILES"; then
17663 # Protect against being on the right side of a sed subst in config.status.
17664 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17665 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17666 s,@SHELL@,$SHELL,;t t
17667 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17668 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17669 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17670 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17671 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17672 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17673 s,@exec_prefix@,$exec_prefix,;t t
17674 s,@prefix@,$prefix,;t t
17675 s,@program_transform_name@,$program_transform_name,;t t
17676 s,@bindir@,$bindir,;t t
17677 s,@sbindir@,$sbindir,;t t
17678 s,@libexecdir@,$libexecdir,;t t
17679 s,@datadir@,$datadir,;t t
17680 s,@sysconfdir@,$sysconfdir,;t t
17681 s,@sharedstatedir@,$sharedstatedir,;t t
17682 s,@localstatedir@,$localstatedir,;t t
17683 s,@libdir@,$libdir,;t t
17684 s,@includedir@,$includedir,;t t
17685 s,@oldincludedir@,$oldincludedir,;t t
17686 s,@infodir@,$infodir,;t t
17687 s,@mandir@,$mandir,;t t
17688 s,@build_alias@,$build_alias,;t t
17689 s,@host_alias@,$host_alias,;t t
17690 s,@target_alias@,$target_alias,;t t
17691 s,@DEFS@,$DEFS,;t t
17692 s,@ECHO_C@,$ECHO_C,;t t
17693 s,@ECHO_N@,$ECHO_N,;t t
17694 s,@ECHO_T@,$ECHO_T,;t t
17695 s,@LIBS@,$LIBS,;t t
17696 s,@build@,$build,;t t
17697 s,@build_cpu@,$build_cpu,;t t
17698 s,@build_vendor@,$build_vendor,;t t
17699 s,@build_os@,$build_os,;t t
17700 s,@host@,$host,;t t
17701 s,@host_cpu@,$host_cpu,;t t
17702 s,@host_vendor@,$host_vendor,;t t
17703 s,@host_os@,$host_os,;t t
17704 s,@target@,$target,;t t
17705 s,@target_cpu@,$target_cpu,;t t
17706 s,@target_vendor@,$target_vendor,;t t
17707 s,@target_os@,$target_os,;t t
17708 s,@target_noncanonical@,$target_noncanonical,;t t
17709 s,@build_libsubdir@,$build_libsubdir,;t t
17710 s,@build_subdir@,$build_subdir,;t t
17711 s,@host_subdir@,$host_subdir,;t t
17712 s,@target_subdir@,$target_subdir,;t t
17713 s,@GENINSRC@,$GENINSRC,;t t
17715 s,@CFLAGS@,$CFLAGS,;t t
17716 s,@LDFLAGS@,$LDFLAGS,;t t
17717 s,@CPPFLAGS@,$CPPFLAGS,;t t
17718 s,@ac_ct_CC@,$ac_ct_CC,;t t
17719 s,@EXEEXT@,$EXEEXT,;t t
17720 s,@OBJEXT@,$OBJEXT,;t t
17721 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17722 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17724 s,@EGREP@,$EGREP,;t t
17725 s,@loose_warn@,$loose_warn,;t t
17726 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17727 s,@strict_warn@,$strict_warn,;t t
17728 s,@warn_cflags@,$warn_cflags,;t t
17729 s,@nocommon_flag@,$nocommon_flag,;t t
17730 s,@TREEBROWSER@,$TREEBROWSER,;t t
17731 s,@valgrind_path@,$valgrind_path,;t t
17732 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17733 s,@valgrind_command@,$valgrind_command,;t t
17734 s,@coverage_flags@,$coverage_flags,;t t
17735 s,@enable_multilib@,$enable_multilib,;t t
17736 s,@enable_decimal_float@,$enable_decimal_float,;t t
17737 s,@enable_shared@,$enable_shared,;t t
17738 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17739 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17740 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17741 s,@onestep@,$onestep,;t t
17742 s,@datarootdir@,$datarootdir,;t t
17743 s,@docdir@,$docdir,;t t
17744 s,@htmldir@,$htmldir,;t t
17745 s,@SET_MAKE@,$SET_MAKE,;t t
17747 s,@LN_S@,$LN_S,;t t
17749 s,@RANLIB@,$RANLIB,;t t
17750 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17751 s,@ranlib_flags@,$ranlib_flags,;t t
17752 s,@INSTALL@,$INSTALL,;t t
17753 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17754 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17755 s,@make_compare_target@,$make_compare_target,;t t
17756 s,@have_mktemp_command@,$have_mktemp_command,;t t
17757 s,@MAKEINFO@,$MAKEINFO,;t t
17758 s,@BUILD_INFO@,$BUILD_INFO,;t t
17759 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17760 s,@FLEX@,$FLEX,;t t
17761 s,@BISON@,$BISON,;t t
17764 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17765 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17766 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17767 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17768 s,@LIBICONV@,$LIBICONV,;t t
17769 s,@LTLIBICONV@,$LTLIBICONV,;t t
17770 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17771 s,@manext@,$manext,;t t
17772 s,@objext@,$objext,;t t
17773 s,@gthread_flags@,$gthread_flags,;t t
17774 s,@extra_modes_file@,$extra_modes_file,;t t
17775 s,@extra_opt_files@,$extra_opt_files,;t t
17776 s,@USE_NLS@,$USE_NLS,;t t
17777 s,@LIBINTL@,$LIBINTL,;t t
17778 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17779 s,@INCINTL@,$INCINTL,;t t
17780 s,@XGETTEXT@,$XGETTEXT,;t t
17781 s,@GMSGFMT@,$GMSGFMT,;t t
17782 s,@POSUB@,$POSUB,;t t
17783 s,@CATALOGS@,$CATALOGS,;t t
17784 s,@DATADIRNAME@,$DATADIRNAME,;t t
17785 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17786 s,@GENCAT@,$GENCAT,;t t
17787 s,@CATOBJEXT@,$CATOBJEXT,;t t
17788 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17789 s,@CROSS@,$CROSS,;t t
17791 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17792 s,@inhibit_libc@,$inhibit_libc,;t t
17793 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17794 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17795 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17796 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17797 s,@collect2@,$collect2,;t t
17798 s,@gcc_cv_as@,$gcc_cv_as,;t t
17799 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17800 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17801 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17802 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17803 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17804 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17805 s,@libgcc_visibility@,$libgcc_visibility,;t t
17807 s,@zlibdir@,$zlibdir,;t t
17808 s,@zlibinc@,$zlibinc,;t t
17809 s,@MAINT@,$MAINT,;t t
17810 s,@gcc_tooldir@,$gcc_tooldir,;t t
17811 s,@dollar@,$dollar,;t t
17812 s,@slibdir@,$slibdir,;t t
17813 s,@objdir@,$objdir,;t t
17814 s,@subdirs@,$subdirs,;t t
17815 s,@srcdir@,$srcdir,;t t
17816 s,@all_compilers@,$all_compilers,;t t
17817 s,@all_gtfiles@,$all_gtfiles,;t t
17818 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17819 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17820 s,@all_languages@,$all_languages,;t t
17821 s,@all_selected_languages@,$all_selected_languages,;t t
17822 s,@build_exeext@,$build_exeext,;t t
17823 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17824 s,@build_xm_file_list@,$build_xm_file_list,;t t
17825 s,@build_xm_include_list@,$build_xm_include_list,;t t
17826 s,@build_xm_defines@,$build_xm_defines,;t t
17827 s,@check_languages@,$check_languages,;t t
17828 s,@cpp_install_dir@,$cpp_install_dir,;t t
17829 s,@xmake_file@,$xmake_file,;t t
17830 s,@tmake_file@,$tmake_file,;t t
17831 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17832 s,@extra_headers_list@,$extra_headers_list,;t t
17833 s,@extra_objs@,$extra_objs,;t t
17834 s,@extra_parts@,$extra_parts,;t t
17835 s,@extra_passes@,$extra_passes,;t t
17836 s,@extra_programs@,$extra_programs,;t t
17837 s,@float_h_file@,$float_h_file,;t t
17838 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17839 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17840 s,@host_exeext@,$host_exeext,;t t
17841 s,@host_xm_file_list@,$host_xm_file_list,;t t
17842 s,@host_xm_include_list@,$host_xm_include_list,;t t
17843 s,@host_xm_defines@,$host_xm_defines,;t t
17844 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17845 s,@install@,$install,;t t
17846 s,@lang_opt_files@,$lang_opt_files,;t t
17847 s,@lang_specs_files@,$lang_specs_files,;t t
17848 s,@lang_tree_files@,$lang_tree_files,;t t
17849 s,@local_prefix@,$local_prefix,;t t
17850 s,@md_file@,$md_file,;t t
17851 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17852 s,@out_file@,$out_file,;t t
17853 s,@out_object_file@,$out_object_file,;t t
17854 s,@thread_file@,$thread_file,;t t
17855 s,@tm_file_list@,$tm_file_list,;t t
17856 s,@tm_include_list@,$tm_include_list,;t t
17857 s,@tm_defines@,$tm_defines,;t t
17858 s,@tm_p_file_list@,$tm_p_file_list,;t t
17859 s,@tm_p_include_list@,$tm_p_include_list,;t t
17860 s,@xm_file_list@,$xm_file_list,;t t
17861 s,@xm_include_list@,$xm_include_list,;t t
17862 s,@xm_defines@,$xm_defines,;t t
17863 s,@c_target_objs@,$c_target_objs,;t t
17864 s,@cxx_target_objs@,$cxx_target_objs,;t t
17865 s,@target_cpu_default@,$target_cpu_default,;t t
17866 s,@GMPLIBS@,$GMPLIBS,;t t
17867 s,@GMPINC@,$GMPINC,;t t
17868 s,@LIBOBJS@,$LIBOBJS,;t t
17869 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17870 /@language_hooks@/r $language_hooks
17871 s,@language_hooks@,,;t t
17876 cat >>$CONFIG_STATUS <<\_ACEOF
17877 # Split the substitutions into bite-sized pieces for seds with
17878 # small command number limits, like on Digital OSF/1 and HP-UX.
17879 ac_max_sed_lines=48
17880 ac_sed_frag=1 # Number of current file.
17881 ac_beg=1 # First line for current file.
17882 ac_end=$ac_max_sed_lines # Line after last line for current file.
17885 while $ac_more_lines; do
17886 if test $ac_beg -gt 1; then
17887 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17889 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17891 if test ! -s $tmp/subs.frag; then
17892 ac_more_lines=false
17894 # The purpose of the label and of the branching condition is to
17895 # speed up the sed processing (if there are no `@' at all, there
17896 # is no need to browse any of the substitutions).
17897 # These are the two extra sed commands mentioned above.
17899 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17900 if test -z "$ac_sed_cmds"; then
17901 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17903 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17905 ac_sed_frag=`expr $ac_sed_frag + 1`
17907 ac_end=`expr $ac_end + $ac_max_sed_lines`
17910 if test -z "$ac_sed_cmds"; then
17913 fi # test -n "$CONFIG_FILES"
17916 cat >>$CONFIG_STATUS <<\_ACEOF
17917 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17918 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17920 - | *:- | *:-:* ) # input from stdin
17922 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17923 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17924 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17925 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17926 * ) ac_file_in=$ac_file.in ;;
17929 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17930 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17932 X"$ac_file" : 'X\(//\)[^/]' \| \
17933 X"$ac_file" : 'X\(//\)$' \| \
17934 X"$ac_file" : 'X\(/\)' \| \
17935 . : '\(.\)' 2>/dev/null ||
17937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17939 /^X\(\/\/\)$/{ s//\1/; q; }
17940 /^X\(\/\).*/{ s//\1/; q; }
17942 { if $as_mkdir_p; then
17947 while test ! -d "$as_dir"; do
17948 as_dirs="$as_dir $as_dirs"
17949 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17951 X"$as_dir" : 'X\(//\)[^/]' \| \
17952 X"$as_dir" : 'X\(//\)$' \| \
17953 X"$as_dir" : 'X\(/\)' \| \
17954 . : '\(.\)' 2>/dev/null ||
17956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17958 /^X\(\/\/\)$/{ s//\1/; q; }
17959 /^X\(\/\).*/{ s//\1/; q; }
17962 test ! -n "$as_dirs" || mkdir $as_dirs
17963 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17965 { (exit 1); exit 1; }; }; }
17969 if test "$ac_dir" != .; then
17970 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17971 # A "../" for each directory in $ac_dir_suffix.
17972 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17974 ac_dir_suffix= ac_top_builddir=
17978 .) # No --srcdir option. We are building in place.
17980 if test -z "$ac_top_builddir"; then
17983 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17985 [\\/]* | ?:[\\/]* ) # Absolute path.
17986 ac_srcdir=$srcdir$ac_dir_suffix;
17987 ac_top_srcdir=$srcdir ;;
17988 *) # Relative path.
17989 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17990 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17993 # Do not use `cd foo && pwd` to compute absolute paths, because
17994 # the directories may not exist.
17996 .) ac_abs_builddir="$ac_dir";;
17999 .) ac_abs_builddir=`pwd`;;
18000 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18001 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18004 case $ac_abs_builddir in
18005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18007 case ${ac_top_builddir}. in
18008 .) ac_abs_top_builddir=$ac_abs_builddir;;
18009 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18010 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18013 case $ac_abs_builddir in
18014 .) ac_abs_srcdir=$ac_srcdir;;
18017 .) ac_abs_srcdir=$ac_abs_builddir;;
18018 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18019 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18022 case $ac_abs_builddir in
18023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18025 case $ac_top_srcdir in
18026 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18027 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18028 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18034 if test x"$ac_file" != x-; then
18035 { echo "$as_me:$LINENO: creating $ac_file" >&5
18036 echo "$as_me: creating $ac_file" >&6;}
18039 # Let's still pretend it is `configure' which instantiates (i.e., don't
18040 # use $as_me), people would be surprised to read:
18041 # /* config.h. Generated by config.status. */
18042 if test x"$ac_file" = x-; then
18045 configure_input="$ac_file. "
18047 configure_input=$configure_input"Generated from `echo $ac_file_in |
18048 sed 's,.*/,,'` by configure."
18050 # First look for the input files in the build tree, otherwise in the
18052 ac_file_inputs=`IFS=:
18053 for f in $ac_file_in; do
18055 -) echo $tmp/stdin ;;
18057 # Absolute (can't be DOS-style, as IFS=:)
18058 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18059 echo "$as_me: error: cannot find input file: $f" >&2;}
18060 { (exit 1); exit 1; }; }
18063 if test -f "$f"; then
18066 elif test -f "$srcdir/$f"; then
18071 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18072 echo "$as_me: error: cannot find input file: $f" >&2;}
18073 { (exit 1); exit 1; }; }
18076 done` || { (exit 1); exit 1; }
18078 cat >>$CONFIG_STATUS <<_ACEOF
18082 cat >>$CONFIG_STATUS <<\_ACEOF
18084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18085 s,@configure_input@,$configure_input,;t t
18086 s,@srcdir@,$ac_srcdir,;t t
18087 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18088 s,@top_srcdir@,$ac_top_srcdir,;t t
18089 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18090 s,@builddir@,$ac_builddir,;t t
18091 s,@abs_builddir@,$ac_abs_builddir,;t t
18092 s,@top_builddir@,$ac_top_builddir,;t t
18093 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18094 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18096 if test x"$ac_file" != x-; then
18097 mv $tmp/out $ac_file
18103 # Run the commands associated with the file.
18105 as ) chmod +x as ;;
18106 collect-ld ) chmod +x collect-ld ;;
18107 nm ) chmod +x nm ;;
18111 cat >>$CONFIG_STATUS <<\_ACEOF
18114 # CONFIG_HEADER section.
18117 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18118 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18120 # ac_d sets the value in "#define NAME VALUE" lines.
18121 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18122 ac_dB='[ ].*$,\1#\2'
18125 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18126 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18127 ac_uB='$,\1#\2define\3'
18131 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18134 - | *:- | *:-:* ) # input from stdin
18136 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18138 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18139 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18140 * ) ac_file_in=$ac_file.in ;;
18143 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18144 echo "$as_me: creating $ac_file" >&6;}
18146 # First look for the input files in the build tree, otherwise in the
18148 ac_file_inputs=`IFS=:
18149 for f in $ac_file_in; do
18151 -) echo $tmp/stdin ;;
18153 # Absolute (can't be DOS-style, as IFS=:)
18154 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18155 echo "$as_me: error: cannot find input file: $f" >&2;}
18156 { (exit 1); exit 1; }; }
18157 # Do quote $f, to prevent DOS paths from being IFS'd.
18160 if test -f "$f"; then
18163 elif test -f "$srcdir/$f"; then
18168 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18169 echo "$as_me: error: cannot find input file: $f" >&2;}
18170 { (exit 1); exit 1; }; }
18173 done` || { (exit 1); exit 1; }
18174 # Remove the trailing spaces.
18175 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18179 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18180 # `conftest.undefs', that substitutes the proper values into
18181 # config.h.in to produce config.h. The first handles `#define'
18182 # templates, and the second `#undef' templates.
18183 # And first: Protect against being on the right side of a sed subst in
18184 # config.status. Protect against being in an unquoted here document
18185 # in config.status.
18186 rm -f conftest.defines conftest.undefs
18187 # Using a here document instead of a string reduces the quoting nightmare.
18188 # Putting comments in sed scripts is not portable.
18190 # `end' is used to avoid that the second main sed command (meant for
18191 # 0-ary CPP macros) applies to n-ary macro definitions.
18192 # See the Autoconf documentation for `clear'.
18193 cat >confdef2sed.sed <<\_ACEOF
18198 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18200 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18203 # If some macros were called several times there might be several times
18204 # the same #defines, which is useless. Nevertheless, we may not want to
18205 # sort them, since we want the *last* AC-DEFINE to be honored.
18206 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18207 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18208 rm -f confdef2sed.sed
18210 # This sed command replaces #undef with comments. This is necessary, for
18211 # example, in the case of _POSIX_SOURCE, which is predefined and required
18212 # on some systems where configure will not decide to define it.
18213 cat >>conftest.undefs <<\_ACEOF
18214 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18217 # Break up conftest.defines because some shells have a limit on the size
18218 # of here documents, and old seds have small limits too (100 cmds).
18219 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18220 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18221 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18222 echo ' :' >>$CONFIG_STATUS
18223 rm -f conftest.tail
18224 while grep . conftest.defines >/dev/null
18226 # Write a limited-size here document to $tmp/defines.sed.
18227 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18228 # Speed up: don't consider the non `#define' lines.
18229 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18230 # Work around the forget-to-reset-the-flag bug.
18231 echo 't clr' >>$CONFIG_STATUS
18232 echo ': clr' >>$CONFIG_STATUS
18233 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18235 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18237 mv $tmp/out $tmp/in
18239 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18240 rm -f conftest.defines
18241 mv conftest.tail conftest.defines
18243 rm -f conftest.defines
18244 echo ' fi # grep' >>$CONFIG_STATUS
18245 echo >>$CONFIG_STATUS
18247 # Break up conftest.undefs because some shells have a limit on the size
18248 # of here documents, and old seds have small limits too (100 cmds).
18249 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18250 rm -f conftest.tail
18251 while grep . conftest.undefs >/dev/null
18253 # Write a limited-size here document to $tmp/undefs.sed.
18254 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18255 # Speed up: don't consider the non `#undef'
18256 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18257 # Work around the forget-to-reset-the-flag bug.
18258 echo 't clr' >>$CONFIG_STATUS
18259 echo ': clr' >>$CONFIG_STATUS
18260 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18262 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18264 mv $tmp/out $tmp/in
18266 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18267 rm -f conftest.undefs
18268 mv conftest.tail conftest.undefs
18270 rm -f conftest.undefs
18272 cat >>$CONFIG_STATUS <<\_ACEOF
18273 # Let's still pretend it is `configure' which instantiates (i.e., don't
18274 # use $as_me), people would be surprised to read:
18275 # /* config.h. Generated by config.status. */
18276 if test x"$ac_file" = x-; then
18277 echo "/* Generated by configure. */" >$tmp/config.h
18279 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18281 cat $tmp/in >>$tmp/config.h
18283 if test x"$ac_file" != x-; then
18284 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18285 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18286 echo "$as_me: $ac_file is unchanged" >&6;}
18288 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18289 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18290 X"$ac_file" : 'X\(//\)[^/]' \| \
18291 X"$ac_file" : 'X\(//\)$' \| \
18292 X"$ac_file" : 'X\(/\)' \| \
18293 . : '\(.\)' 2>/dev/null ||
18295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18297 /^X\(\/\/\)$/{ s//\1/; q; }
18298 /^X\(\/\).*/{ s//\1/; q; }
18300 { if $as_mkdir_p; then
18305 while test ! -d "$as_dir"; do
18306 as_dirs="$as_dir $as_dirs"
18307 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18309 X"$as_dir" : 'X\(//\)[^/]' \| \
18310 X"$as_dir" : 'X\(//\)$' \| \
18311 X"$as_dir" : 'X\(/\)' \| \
18312 . : '\(.\)' 2>/dev/null ||
18314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18316 /^X\(\/\/\)$/{ s//\1/; q; }
18317 /^X\(\/\).*/{ s//\1/; q; }
18320 test ! -n "$as_dirs" || mkdir $as_dirs
18321 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18322 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18323 { (exit 1); exit 1; }; }; }
18326 mv $tmp/config.h $ac_file
18330 rm -f $tmp/config.h
18334 cat >>$CONFIG_STATUS <<\_ACEOF
18337 # CONFIG_COMMANDS section.
18339 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18340 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18341 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18342 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18343 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18344 X"$ac_dest" : 'X\(//\)[^/]' \| \
18345 X"$ac_dest" : 'X\(//\)$' \| \
18346 X"$ac_dest" : 'X\(/\)' \| \
18347 . : '\(.\)' 2>/dev/null ||
18349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18351 /^X\(\/\/\)$/{ s//\1/; q; }
18352 /^X\(\/\).*/{ s//\1/; q; }
18354 { if $as_mkdir_p; then
18359 while test ! -d "$as_dir"; do
18360 as_dirs="$as_dir $as_dirs"
18361 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18363 X"$as_dir" : 'X\(//\)[^/]' \| \
18364 X"$as_dir" : 'X\(//\)$' \| \
18365 X"$as_dir" : 'X\(/\)' \| \
18366 . : '\(.\)' 2>/dev/null ||
18368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18370 /^X\(\/\/\)$/{ s//\1/; q; }
18371 /^X\(\/\).*/{ s//\1/; q; }
18374 test ! -n "$as_dirs" || mkdir $as_dirs
18375 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18376 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18377 { (exit 1); exit 1; }; }; }
18381 if test "$ac_dir" != .; then
18382 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18383 # A "../" for each directory in $ac_dir_suffix.
18384 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18386 ac_dir_suffix= ac_top_builddir=
18390 .) # No --srcdir option. We are building in place.
18392 if test -z "$ac_top_builddir"; then
18395 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18397 [\\/]* | ?:[\\/]* ) # Absolute path.
18398 ac_srcdir=$srcdir$ac_dir_suffix;
18399 ac_top_srcdir=$srcdir ;;
18400 *) # Relative path.
18401 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18402 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18405 # Do not use `cd foo && pwd` to compute absolute paths, because
18406 # the directories may not exist.
18408 .) ac_abs_builddir="$ac_dir";;
18411 .) ac_abs_builddir=`pwd`;;
18412 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18413 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18416 case $ac_abs_builddir in
18417 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18419 case ${ac_top_builddir}. in
18420 .) ac_abs_top_builddir=$ac_abs_builddir;;
18421 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18422 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18425 case $ac_abs_builddir in
18426 .) ac_abs_srcdir=$ac_srcdir;;
18429 .) ac_abs_srcdir=$ac_abs_builddir;;
18430 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18431 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18434 case $ac_abs_builddir in
18435 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18437 case $ac_top_srcdir in
18438 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18439 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18440 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18445 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18446 echo "$as_me: executing $ac_dest commands" >&6;}
18449 case ${CONFIG_HEADERS} in
18450 *auto-host.h:config.in*)
18453 # Make sure all the subdirs exist.
18454 for d in $subdirs doc build
18456 test -d $d || mkdir $d
18463 cat >>$CONFIG_STATUS <<\_ACEOF
18465 { (exit 0); exit 0; }
18467 chmod +x $CONFIG_STATUS
18468 ac_clean_files=$ac_clean_files_save
18471 # configure is writing to config.log, and then calls config.status.
18472 # config.status does its own redirection, appending to config.log.
18473 # Unfortunately, on DOS this fails, as config.log is still kept open
18474 # by configure, so config.status won't be able to write to it; its
18475 # output is simply discarded. So we exec the FD to /dev/null,
18476 # effectively closing config.log, so it can be properly (re)opened and
18477 # appended to by config.status. When coming back to configure, we
18478 # need to make the FD available again.
18479 if test "$no_create" != yes; then
18481 ac_config_status_args=
18482 test "$silent" = yes &&
18483 ac_config_status_args="$ac_config_status_args --quiet"
18485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18488 # would make configure fail if this is the last instruction.
18489 $ac_cs_success || { (exit 1); exit 1; }