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_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI 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-fixed-point enable fixed-point arithmetic extension to C
887 --enable-threads enable thread usage for target GCC
888 --enable-threads=LIB use LIB thread package for target GCC
889 --enable-tls enable or disable generation of tls code
890 overriding the assembler check for tls support
891 --enable-objc-gc enable the use of Boehm's garbage collector with
892 the GNU Objective-C runtime
893 --disable-shared don't provide a shared libgcc
894 --enable-intermodule build the compiler in one step
895 --enable-languages=LIST specify which front-ends to build
896 --disable-rpath do not hardcode runtime library paths
897 --enable-initfini-array use .init_array/.fini_array sections
898 --enable-sjlj-exceptions
899 arrange to use setjmp/longjmp exception handling
900 --enable-secureplt enable -msecure-plt by default for PowerPC
901 --disable-win32-registry
902 disable lookup of installation paths in the
903 Registry on Windows hosts
904 --enable-win32-registry enable registry lookup (default)
905 --enable-win32-registry=KEY
906 use KEY instead of GCC version as the last portion
908 --enable-maintainer-mode
909 enable make rules and dependencies not useful
910 (and sometimes confusing) to the casual installer
911 --enable-version-specific-runtime-libs
912 specify that runtime libraries should be
913 installed in a compiler-specific directory
916 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
917 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
918 --with-build-libsubdir=DIR Directory where to find libraries for build system
919 --with-local-prefix=DIR specifies directory to put local include
920 --with-gxx-include-dir=DIR
921 specifies directory to put g++ header files
922 --with-cpp-install-dir=DIR
923 install the user visible C preprocessor in DIR
924 (relative to PREFIX) as well as PREFIX/bin
925 --with-gnu-ld arrange to work with GNU ld.
926 --with-ld arrange to use the specified ld (full pathname)
927 --with-demangler-in-ld try to use demangler in GNU ld.
928 --with-gnu-as arrange to work with GNU as
929 --with-as arrange to use the specified as (full pathname)
930 --with-stabs arrange to use stabs instead of host debug format
931 --with-dwarf2 force the default debug format to be DWARF 2
932 --with-build-sysroot=sysroot
933 use sysroot as the system root during the build
934 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
935 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
936 --with-bugurl=URL Direct users to URL to report a bug
937 --with-gnu-ld assume the C compiler uses GNU ld default=no
938 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
939 --without-libiconv-prefix don't search for libiconv in includedir and libdir
940 --with-system-libunwind use installed libunwind
941 --with-long-double-128 Use 128-bit long double by default.
942 --with-gc={page,zone} choose the garbage collection mechanism to use
944 --with-system-zlib use installed libz
945 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
946 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
947 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
948 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
950 Some influential environment variables:
951 CC C compiler command
952 CFLAGS C compiler flags
953 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
954 nonstandard directory <lib dir>
955 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
956 headers in a nonstandard directory <include dir>
958 GMPLIBS How to link GMP
959 GMPINC How to find GMP include files
961 Use these variables to override the choices made by `configure' or to help
962 it to find libraries and programs with nonstandard names/locations.
967 if test "$ac_init_help" = "recursive"; then
968 # If there are subdirs, report their specific --help.
970 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
971 test -d $ac_dir || continue
974 if test "$ac_dir" != .; then
975 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
976 # A "../" for each directory in $ac_dir_suffix.
977 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
979 ac_dir_suffix= ac_top_builddir=
983 .) # No --srcdir option. We are building in place.
985 if test -z "$ac_top_builddir"; then
988 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
990 [\\/]* | ?:[\\/]* ) # Absolute path.
991 ac_srcdir=$srcdir$ac_dir_suffix;
992 ac_top_srcdir=$srcdir ;;
994 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
995 ac_top_srcdir=$ac_top_builddir$srcdir ;;
998 # Do not use `cd foo && pwd` to compute absolute paths, because
999 # the directories may not exist.
1001 .) ac_abs_builddir="$ac_dir";;
1004 .) ac_abs_builddir=`pwd`;;
1005 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1006 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1009 case $ac_abs_builddir in
1010 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 case ${ac_top_builddir}. in
1013 .) ac_abs_top_builddir=$ac_abs_builddir;;
1014 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1015 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1018 case $ac_abs_builddir in
1019 .) ac_abs_srcdir=$ac_srcdir;;
1022 .) ac_abs_srcdir=$ac_abs_builddir;;
1023 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1024 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1027 case $ac_abs_builddir in
1028 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 case $ac_top_srcdir in
1031 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1032 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1033 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1038 # Check for guested configure; otherwise get Cygnus style configure.
1039 if test -f $ac_srcdir/configure.gnu; then
1041 $SHELL $ac_srcdir/configure.gnu --help=recursive
1042 elif test -f $ac_srcdir/configure; then
1044 $SHELL $ac_srcdir/configure --help=recursive
1045 elif test -f $ac_srcdir/configure.ac ||
1046 test -f $ac_srcdir/configure.in; then
1048 $ac_configure --help
1050 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1056 test -n "$ac_init_help" && exit 0
1057 if $ac_init_version; then
1060 Copyright (C) 2003 Free Software Foundation, Inc.
1061 This configure script is free software; the Free Software Foundation
1062 gives unlimited permission to copy, distribute and modify it.
1068 This file contains any messages produced by compilers while
1069 running configure, to aid debugging if configure makes a mistake.
1071 It was created by $as_me, which was
1072 generated by GNU Autoconf 2.59. Invocation command line was
1083 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1084 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1085 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1086 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1087 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1089 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1090 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1092 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1093 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1094 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1095 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1096 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1097 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1098 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1106 test -z "$as_dir" && as_dir=.
1107 echo "PATH: $as_dir"
1122 # Keep a trace of the command line.
1123 # Strip out --no-create and --no-recursion so they do not pile up.
1124 # Strip out --silent because we don't want to record it for future runs.
1125 # Also quote any args containing shell meta-characters.
1126 # Make two passes to allow for proper duplicate-argument suppression.
1131 ac_must_keep_next=false
1137 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1141 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1142 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1145 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1147 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1148 if test $ac_must_keep_next = true; then
1149 ac_must_keep_next=false # Got value, back to normal.
1152 *=* | --config-cache | -C | -disable-* | --disable-* \
1153 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1154 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1155 | -with-* | --with-* | -without-* | --without-* | --x)
1156 case "$ac_configure_args0 " in
1157 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1160 -* ) ac_must_keep_next=true ;;
1163 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1164 # Get rid of the leading space.
1170 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1171 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1173 # When interrupted or exit'd, cleanup temporary files, and complete
1174 # config.log. We remove comments because anyway the quotes in there
1175 # would cause problems or look ugly.
1176 # WARNING: Be sure not to use single quotes in there, as some shells,
1177 # such as our DU 5.0 friend, will then `close' the trap.
1178 trap 'exit_status=$?
1179 # Save into config.log some information that might help in debugging.
1184 ## ---------------- ##
1185 ## Cache variables. ##
1186 ## ---------------- ##
1189 # The following way of writing the cache mishandles newlines in values,
1192 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1195 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1200 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1207 ## ----------------- ##
1208 ## Output variables. ##
1209 ## ----------------- ##
1212 for ac_var in $ac_subst_vars
1214 eval ac_val=$`echo $ac_var`
1215 echo "$ac_var='"'"'$ac_val'"'"'"
1219 if test -n "$ac_subst_files"; then
1226 for ac_var in $ac_subst_files
1228 eval ac_val=$`echo $ac_var`
1229 echo "$ac_var='"'"'$ac_val'"'"'"
1234 if test -s confdefs.h; then
1241 sed "/^$/d" confdefs.h | sort
1244 test "$ac_signal" != 0 &&
1245 echo "$as_me: caught signal $ac_signal"
1246 echo "$as_me: exit $exit_status"
1248 rm -f core *.core &&
1249 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1252 for ac_signal in 1 2 13 15; do
1253 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1257 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1258 rm -rf conftest* confdefs.h
1259 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1262 # Predefined preprocessor variables.
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_NAME "$PACKAGE_NAME"
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_STRING "$PACKAGE_STRING"
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1289 # Let the site file select an alternate cache file if it wants to.
1290 # Prefer explicitly selected file to automatically selected ones.
1291 if test -z "$CONFIG_SITE"; then
1292 if test "x$prefix" != xNONE; then
1293 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1295 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1298 for ac_site_file in $CONFIG_SITE; do
1299 if test -r "$ac_site_file"; then
1300 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1301 echo "$as_me: loading site script $ac_site_file" >&6;}
1302 sed 's/^/| /' "$ac_site_file" >&5
1307 if test -r "$cache_file"; then
1308 # Some versions of bash will fail to source /dev/null (special
1309 # files actually), so we avoid doing that.
1310 if test -f "$cache_file"; then
1311 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1312 echo "$as_me: loading cache $cache_file" >&6;}
1314 [\\/]* | ?:[\\/]* ) . $cache_file;;
1315 *) . ./$cache_file;;
1319 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1320 echo "$as_me: creating cache $cache_file" >&6;}
1324 # Check that the precious variables saved in the cache have kept the same
1326 ac_cache_corrupted=false
1327 for ac_var in `(set) 2>&1 |
1328 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1330 eval ac_new_set=\$ac_env_${ac_var}_set
1331 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1332 eval ac_new_val="\$ac_env_${ac_var}_value"
1333 case $ac_old_set,$ac_new_set in
1335 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1336 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1337 ac_cache_corrupted=: ;;
1339 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1340 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1341 ac_cache_corrupted=: ;;
1344 if test "x$ac_old_val" != "x$ac_new_val"; then
1345 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1346 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1347 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1348 echo "$as_me: former value: $ac_old_val" >&2;}
1349 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1350 echo "$as_me: current value: $ac_new_val" >&2;}
1351 ac_cache_corrupted=:
1354 # Pass precious variables to config.status.
1355 if test "$ac_new_set" = set; then
1357 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1358 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1359 *) ac_arg=$ac_var=$ac_new_val ;;
1361 case " $ac_configure_args " in
1362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1363 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1367 if $ac_cache_corrupted; then
1368 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1369 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1370 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1371 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1372 { (exit 1); exit 1; }; }
1376 ac_cpp='$CPP $CPPFLAGS'
1377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1400 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1403 gcc_version=`cat $srcdir/BASE-VER`
1405 # Determine the host, build, and target systems
1407 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1408 if test -f $ac_dir/install-sh; then
1410 ac_install_sh="$ac_aux_dir/install-sh -c"
1412 elif test -f $ac_dir/install.sh; then
1414 ac_install_sh="$ac_aux_dir/install.sh -c"
1416 elif test -f $ac_dir/shtool; then
1418 ac_install_sh="$ac_aux_dir/shtool install -c"
1422 if test -z "$ac_aux_dir"; then
1423 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1424 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1425 { (exit 1); exit 1; }; }
1427 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1428 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1429 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1431 # Make sure we can run config.sub.
1432 $ac_config_sub sun4 >/dev/null 2>&1 ||
1433 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1434 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1435 { (exit 1); exit 1; }; }
1437 echo "$as_me:$LINENO: checking build system type" >&5
1438 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1439 if test "${ac_cv_build+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 ac_cv_build_alias=$build_alias
1443 test -z "$ac_cv_build_alias" &&
1444 ac_cv_build_alias=`$ac_config_guess`
1445 test -z "$ac_cv_build_alias" &&
1446 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1447 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1448 { (exit 1); exit 1; }; }
1449 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1450 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1451 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1452 { (exit 1); exit 1; }; }
1455 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1456 echo "${ECHO_T}$ac_cv_build" >&6
1458 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1459 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1460 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1463 echo "$as_me:$LINENO: checking host system type" >&5
1464 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1465 if test "${ac_cv_host+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 ac_cv_host_alias=$host_alias
1469 test -z "$ac_cv_host_alias" &&
1470 ac_cv_host_alias=$ac_cv_build_alias
1471 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1473 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1474 { (exit 1); exit 1; }; }
1477 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1478 echo "${ECHO_T}$ac_cv_host" >&6
1480 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1481 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1482 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1485 echo "$as_me:$LINENO: checking target system type" >&5
1486 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1487 if test "${ac_cv_target+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 ac_cv_target_alias=$target_alias
1491 test "x$ac_cv_target_alias" = "x" &&
1492 ac_cv_target_alias=$ac_cv_host_alias
1493 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1495 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1496 { (exit 1); exit 1; }; }
1499 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1500 echo "${ECHO_T}$ac_cv_target" >&6
1501 target=$ac_cv_target
1502 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1503 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1504 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1507 # The aliases save the names the user supplied, while $host etc.
1508 # will get canonicalized.
1509 test -n "$target_alias" &&
1510 test "$program_prefix$program_suffix$program_transform_name" = \
1512 program_prefix=${target_alias}-
1514 # Determine the noncanonical target name, for directory use.
1515 case ${build_alias} in
1516 "") build_noncanonical=${build} ;;
1517 *) build_noncanonical=${build_alias} ;;
1520 case ${host_alias} in
1521 "") host_noncanonical=${build_noncanonical} ;;
1522 *) host_noncanonical=${host_alias} ;;
1525 case ${target_alias} in
1526 "") target_noncanonical=${host_noncanonical} ;;
1527 *) target_noncanonical=${target_alias} ;;
1533 # Determine the target- and build-specific subdirectories
1535 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1536 # have matching libraries, they should use host libraries: Makefile.tpl
1537 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1538 # However, they still use the build modules, because the corresponding
1539 # host modules (e.g. bison) are only built for the host when bootstrap
1541 # - build_subdir is where we find build modules, and never changes.
1542 # - build_libsubdir is where we find build libraries, and can be overridden.
1544 # Prefix 'build-' so this never conflicts with target_subdir.
1545 build_subdir="build-${build_noncanonical}"
1547 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1548 if test "${with_build_libsubdir+set}" = set; then
1549 withval="$with_build_libsubdir"
1550 build_libsubdir="$withval"
1552 build_libsubdir="$build_subdir"
1554 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1555 if ( test $srcdir = . && test -d gcc ) \
1556 || test -d $srcdir/../host-${host_noncanonical}; then
1557 host_subdir="host-${host_noncanonical}"
1562 target_subdir=${target_noncanonical}
1565 # Set program_transform_name
1566 test "$program_prefix" != NONE &&
1567 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1568 # Use a double $ so make ignores it.
1569 test "$program_suffix" != NONE &&
1570 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1571 # Double any \ or $. echo might interpret backslashes.
1572 # By default was `s,x,x', remove it if useless.
1573 cat <<\_ACEOF >conftest.sed
1574 s/[\\$]/&&/g;s/;s,x,x,$//
1576 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1580 # Check for bogus environment variables.
1581 # Test if LIBRARY_PATH contains the notation for the current directory
1582 # since this would lead to problems installing/building glibc.
1583 # LIBRARY_PATH contains the current directory if one of the following
1585 # - one of the terminals (":" and ";") is the first or last sign
1586 # - two terminals occur directly after each other
1587 # - the path contains an element with a dot in it
1588 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1589 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1590 case ${LIBRARY_PATH} in
1591 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1592 library_path_setting="contains current directory"
1595 library_path_setting="ok"
1598 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1599 echo "${ECHO_T}$library_path_setting" >&6
1600 if test "$library_path_setting" != "ok"; then
1601 { { echo "$as_me:$LINENO: error:
1602 *** LIBRARY_PATH shouldn't contain the current directory when
1603 *** building gcc. Please change the environment variable
1604 *** and run configure again." >&5
1605 echo "$as_me: error:
1606 *** LIBRARY_PATH shouldn't contain the current directory when
1607 *** building gcc. Please change the environment variable
1608 *** and run configure again." >&2;}
1609 { (exit 1); exit 1; }; }
1612 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1613 # since this would lead to problems installing/building glibc.
1614 # GCC_EXEC_PREFIX contains the current directory if one of the following
1616 # - one of the terminals (":" and ";") is the first or last sign
1617 # - two terminals occur directly after each other
1618 # - the path contains an element with a dot in it
1619 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1620 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1621 case ${GCC_EXEC_PREFIX} in
1622 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1623 gcc_exec_prefix_setting="contains current directory"
1626 gcc_exec_prefix_setting="ok"
1629 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1630 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1631 if test "$gcc_exec_prefix_setting" != "ok"; then
1632 { { echo "$as_me:$LINENO: error:
1633 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1634 *** building gcc. Please change the environment variable
1635 *** and run configure again." >&5
1636 echo "$as_me: error:
1637 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1638 *** building gcc. Please change the environment variable
1639 *** and run configure again." >&2;}
1640 { (exit 1); exit 1; }; }
1647 # Specify the local prefix
1650 # Check whether --with-local-prefix or --without-local-prefix was given.
1651 if test "${with_local_prefix+set}" = set; then
1652 withval="$with_local_prefix"
1653 case "${withval}" in
1654 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1655 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1656 { (exit 1); exit 1; }; } ;;
1658 *) local_prefix=$with_local_prefix ;;
1662 # Default local prefix if it is empty
1663 if test x$local_prefix = x; then
1664 local_prefix=/usr/local
1667 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1668 # passed in by the toplevel make and thus we'd get different behavior
1669 # depending on where we built the sources.
1670 gcc_gxx_include_dir=
1671 # Specify the g++ header file directory
1673 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1674 if test "${with_gxx_include_dir+set}" = set; then
1675 withval="$with_gxx_include_dir"
1676 case "${withval}" in
1677 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1678 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1679 { (exit 1); exit 1; }; } ;;
1681 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1685 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1686 if test x${gcc_gxx_include_dir} = x; then
1687 if test x${enable_version_specific_runtime_libs} = xyes; then
1688 gcc_gxx_include_dir='${libsubdir}/include/c++'
1690 libstdcxx_incdir='include/c++/$(version)'
1691 if test x$host != x$target; then
1692 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1694 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1699 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1700 if test "${with_cpp_install_dir+set}" = set; then
1701 withval="$with_cpp_install_dir"
1702 if test x$withval = xyes; then
1703 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1704 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1705 { (exit 1); exit 1; }; }
1706 elif test x$withval != xno; then
1707 cpp_install_dir=$withval
1711 # We would like to our source tree to be readonly. However when releases or
1712 # pre-releases are generated, the flex/bison generated files as well as the
1713 # various formats of manuals need to be included along with the rest of the
1714 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1717 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1718 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1719 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1720 if test "${enable_generated_files_in_srcdir+set}" = set; then
1721 enableval="$enable_generated_files_in_srcdir"
1722 generated_files_in_srcdir=$enableval
1724 generated_files_in_srcdir=no
1727 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1728 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1730 if test "$generated_files_in_srcdir" = "yes"; then
1737 # -------------------
1738 # Find default linker
1739 # -------------------
1743 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1744 if test "${with_gnu_ld+set}" = set; then
1745 withval="$with_gnu_ld"
1746 gnu_ld_flag="$with_gnu_ld"
1751 # With pre-defined ld
1753 # Check whether --with-ld or --without-ld was given.
1754 if test "${with_ld+set}" = set; then
1756 DEFAULT_LINKER="$with_ld"
1758 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1759 if test ! -x "$DEFAULT_LINKER"; then
1760 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1761 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1762 { (exit 1); exit 1; }; }
1763 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1767 cat >>confdefs.h <<_ACEOF
1768 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1773 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1775 cat >>confdefs.h <<_ACEOF
1776 #define HAVE_GNU_LD $gnu_ld
1780 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1781 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1782 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1783 if test x"$gnu_ld_flag" = x"no"; then
1784 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1785 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1787 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1788 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1795 # With demangler in GNU ld
1797 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1798 if test "${with_demangler_in_ld+set}" = set; then
1799 withval="$with_demangler_in_ld"
1800 demangler_in_ld="$with_demangler_in_ld"
1805 # ----------------------
1806 # Find default assembler
1807 # ----------------------
1811 # Check whether --with-gnu-as or --without-gnu-as was given.
1812 if test "${with_gnu_as+set}" = set; then
1813 withval="$with_gnu_as"
1814 gas_flag="$with_gnu_as"
1820 # Check whether --with-as or --without-as was given.
1821 if test "${with_as+set}" = set; then
1823 DEFAULT_ASSEMBLER="$with_as"
1825 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1826 if test ! -x "$DEFAULT_ASSEMBLER"; then
1827 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1828 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1829 { (exit 1); exit 1; }; }
1830 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1834 cat >>confdefs.h <<_ACEOF
1835 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1840 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1842 cat >>confdefs.h <<_ACEOF
1843 #define HAVE_GNU_AS $gnu_as
1847 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1848 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1849 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1850 if test x"$gas_flag" = x"no"; then
1851 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1852 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1854 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1855 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1866 # If a non-executable a.out is present (e.g. created by GNU as above even if
1867 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1868 # file, even when creating an executable, so an execution test fails.
1869 # Remove possible default executable files to avoid this.
1871 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1872 # Autoconf includes it.
1873 rm -f a.out a.exe b.out
1875 # Find the native compiler
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 if test -n "$CC"; then
1910 echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1918 if test -z "$ac_cv_prog_CC"; then
1920 # Extract the first word of "gcc", so it can be a program name with args.
1921 set dummy gcc; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 if test -n "$ac_ct_CC"; then
1928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_CC="gcc"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1947 if test -n "$ac_ct_CC"; then
1948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1949 echo "${ECHO_T}$ac_ct_CC" >&6
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1960 if test -z "$CC"; then
1961 if test -n "$ac_tool_prefix"; then
1962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1963 set dummy ${ac_tool_prefix}cc; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 ac_cv_prog_CC="${ac_tool_prefix}cc"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 if test -n "$CC"; then
1990 echo "$as_me:$LINENO: result: $CC" >&5
1991 echo "${ECHO_T}$CC" >&6
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1998 if test -z "$ac_cv_prog_CC"; then
2000 # Extract the first word of "cc", so it can be a program name with args.
2001 set dummy cc; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$ac_ct_CC"; then
2008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_ac_ct_CC="cc"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2027 if test -n "$ac_ct_CC"; then
2028 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2029 echo "${ECHO_T}$ac_ct_CC" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2041 if test -z "$CC"; then
2042 # Extract the first word of "cc", so it can be a program name with args.
2043 set dummy cc; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2061 ac_prog_rejected=yes
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 if test $ac_prog_rejected = yes; then
2072 # We found a bogon in the path, so make sure we never use it.
2073 set dummy $ac_cv_prog_CC
2075 if test $# != 0; then
2076 # We chose a different compiler from the bogus one.
2077 # However, it has the same basename, so the bogon will be chosen
2078 # first if we set CC to just the basename; use the full file name.
2080 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2086 if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2095 if test -z "$CC"; then
2096 if test -n "$ac_tool_prefix"; then
2099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 if test -n "$CC"; then
2107 ac_cv_prog_CC="$CC" # Let the user override the test.
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 if test -n "$CC"; then
2127 echo "$as_me:$LINENO: result: $CC" >&5
2128 echo "${ECHO_T}$CC" >&6
2130 echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2134 test -n "$CC" && break
2137 if test -z "$CC"; then
2141 # Extract the first word of "$ac_prog", so it can be a program name with args.
2142 set dummy $ac_prog; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test -n "$ac_ct_CC"; then
2149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158 ac_cv_prog_ac_ct_CC="$ac_prog"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2168 if test -n "$ac_ct_CC"; then
2169 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2170 echo "${ECHO_T}$ac_ct_CC" >&6
2172 echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2176 test -n "$ac_ct_CC" && break
2185 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: no acceptable C compiler found in \$PATH
2188 See \`config.log' for more details." >&2;}
2189 { (exit 1); exit 1; }; }
2191 # Provide some information about the compiler.
2192 echo "$as_me:$LINENO:" \
2193 "checking for C compiler version" >&5
2194 ac_compiler=`set X $ac_compile; echo $2`
2195 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2196 (eval $ac_compiler --version </dev/null >&5) 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2201 (eval $ac_compiler -v </dev/null >&5) 2>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }
2205 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2206 (eval $ac_compiler -V </dev/null >&5) 2>&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }
2211 cat >conftest.$ac_ext <<_ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2226 ac_clean_files_save=$ac_clean_files
2227 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2228 # Try to create an executable without -o first, disregard a.out.
2229 # It will help us diagnose broken compilers, and finding out an intuition
2231 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2232 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2233 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2234 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2235 (eval $ac_link_default) 2>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; then
2239 # Find the output, starting from the most likely. This scheme is
2240 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2243 # Be careful to initialize this variable, since it used to be cached.
2244 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2246 # b.out is created by i960 compilers.
2247 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2249 test -f "$ac_file" || continue
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2254 # This is the source file.
2257 # We found the default executable, but exeext='' is most
2261 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262 # FIXME: I believe we export ac_cv_exeext for Libtool,
2263 # but it would be cool to find out if it's true. Does anybody
2264 # maintain Libtool? --akim.
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2275 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: C compiler cannot create executables
2278 See \`config.log' for more details." >&2;}
2279 { (exit 77); exit 77; }; }
2282 ac_exeext=$ac_cv_exeext
2283 echo "$as_me:$LINENO: result: $ac_file" >&5
2284 echo "${ECHO_T}$ac_file" >&6
2286 # Check the compiler produces executables we can run. If not, either
2287 # the compiler is broken, or we cross compile.
2288 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2289 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2290 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2291 # If not cross compiling, check that we can run a simple program.
2292 if test "$cross_compiling" != yes; then
2293 if { ac_try='./$ac_file'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2301 if test "$cross_compiling" = maybe; then
2304 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2305 If you meant to cross compile, use \`--host'.
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: cannot run C compiled programs.
2308 If you meant to cross compile, use \`--host'.
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2314 echo "$as_me:$LINENO: result: yes" >&5
2315 echo "${ECHO_T}yes" >&6
2317 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2318 ac_clean_files=$ac_clean_files_save
2319 # Check the compiler produces executables we can run. If not, either
2320 # the compiler is broken, or we cross compile.
2321 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2322 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2323 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2324 echo "${ECHO_T}$cross_compiling" >&6
2326 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2327 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2329 (eval $ac_link) 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2334 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2335 # work properly (i.e., refer to `conftest.exe'), while it won't with
2337 for ac_file in conftest.exe conftest conftest.*; do
2338 test -f "$ac_file" || continue
2340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2341 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2351 See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2355 rm -f conftest$ac_cv_exeext
2356 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2357 echo "${ECHO_T}$ac_cv_exeext" >&6
2359 rm -f conftest.$ac_ext
2360 EXEEXT=$ac_cv_exeext
2362 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2363 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2364 if test "${ac_cv_objext+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat >conftest.$ac_ext <<_ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2382 rm -f conftest.o conftest.obj
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; then
2388 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2391 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2396 echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2399 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2400 See \`config.log' for more details." >&5
2401 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2402 See \`config.log' for more details." >&2;}
2403 { (exit 1); exit 1; }; }
2406 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2408 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2409 echo "${ECHO_T}$ac_cv_objext" >&6
2410 OBJEXT=$ac_cv_objext
2412 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2413 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2414 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 cat >conftest.$ac_ext <<_ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2435 rm -f conftest.$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>conftest.er1
2439 grep -v '^ *+' conftest.er1 >conftest.err
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -z "$ac_c_werror_flag"
2445 || test ! -s conftest.err'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2468 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2469 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2470 GCC=`test $ac_compiler_gnu = yes && echo yes`
2471 ac_test_CFLAGS=${CFLAGS+set}
2472 ac_save_CFLAGS=$CFLAGS
2474 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2475 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_g+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 cat >conftest.$ac_ext <<_ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>conftest.er1
2498 grep -v '^ *+' conftest.er1 >conftest.err
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2525 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2526 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2527 if test "$ac_test_CFLAGS" = set; then
2528 CFLAGS=$ac_save_CFLAGS
2529 elif test $ac_cv_prog_cc_g = yes; then
2530 if test "$GCC" = yes; then
2536 if test "$GCC" = yes; then
2542 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2543 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2544 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 ac_cv_prog_cc_stdc=no
2549 cat >conftest.$ac_ext <<_ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2557 #include <sys/types.h>
2558 #include <sys/stat.h>
2559 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2560 struct buf { int x; };
2561 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2562 static char *e (p, i)
2568 static char *f (char * (*g) (char **, int), char **p, ...)
2573 s = g (p, va_arg (v,int));
2578 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2579 function prototypes and stuff, but not '\xHH' hex character constants.
2580 These don't provoke an error unfortunately, instead are silently treated
2581 as 'x'. The following induces an error, until -std1 is added to get
2582 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2583 array size at least. It's necessary to write '\x00'==0 to get something
2584 that's true only with -std1. */
2585 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2587 int test (int i, double x);
2588 struct s1 {int (*f) (int a);};
2589 struct s2 {int (*f) (double a);};
2590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2596 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2601 # Don't try gcc -ansi; that turns off useful extensions and
2602 # breaks some systems' header files.
2603 # AIX -qlanglvl=ansi
2604 # Ultrix and OSF/1 -std1
2605 # HP-UX 10.20 and later -Ae
2606 # HP-UX older versions -Aa -D_HPUX_SOURCE
2607 # SVR4 -Xc -D__EXTENSIONS__
2608 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2610 CC="$ac_save_CC $ac_arg"
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2615 grep -v '^ *+' conftest.er1 >conftest.err
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 ac_cv_prog_cc_stdc=$ac_arg
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2640 rm -f conftest.err conftest.$ac_objext
2642 rm -f conftest.$ac_ext conftest.$ac_objext
2647 case "x$ac_cv_prog_cc_stdc" in
2649 echo "$as_me:$LINENO: result: none needed" >&5
2650 echo "${ECHO_T}none needed" >&6 ;;
2652 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2654 CC="$CC $ac_cv_prog_cc_stdc" ;;
2657 # Some people use a C++ compiler to compile C. Since we use `exit',
2658 # in C++ we need to declare it. In case someone uses the same compiler
2659 # for both compiling C and C++ we need to have the C++ compiler decide
2660 # the declaration of exit, since it's the most demanding environment.
2661 cat >conftest.$ac_ext <<_ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2670 grep -v '^ *+' conftest.er1 >conftest.err
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 for ac_declaration in \
2690 'extern "C" void std::exit (int) throw (); using std::exit;' \
2691 'extern "C" void std::exit (int); using std::exit;' \
2692 'extern "C" void exit (int) throw ();' \
2693 'extern "C" void exit (int);' \
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2716 grep -v '^ *+' conftest.er1 >conftest.err
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag"
2722 || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742 cat >conftest.$ac_ext <<_ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>conftest.er1
2761 grep -v '^ *+' conftest.er1 >conftest.err
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -z "$ac_c_werror_flag"
2767 || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788 if test -n "$ac_declaration"; then
2789 echo '#ifdef __cplusplus' >>confdefs.h
2790 echo $ac_declaration >>confdefs.h
2791 echo '#endif' >>confdefs.h
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 if test "x$CC" != xcc; then
2807 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2808 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2810 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2811 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2813 set dummy $CC; ac_cc=`echo $2 |
2814 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2815 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2833 # Make sure it works both with $CC and with simple cc.
2834 # We do the test twice because some compilers refuse to overwrite an
2835 # existing .o file with -o, though they will create one.
2836 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2837 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); };
2848 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2849 if test "x$CC" != xcc; then
2850 # Test first that cc exists at all.
2851 if { ac_try='cc -c conftest.$ac_ext >&5'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2858 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); };
2872 # cc exists but doesn't like -o.
2873 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2878 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2884 echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2890 cat >>confdefs.h <<\_ACEOF
2891 #define NO_MINUS_C_MINUS_O 1
2896 # expand $ac_aux_dir to an absolute path
2897 am_aux_dir=`cd $ac_aux_dir && pwd`
2899 # FIXME: we rely on the cache variable name because
2900 # there is no other way.
2902 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2904 # Losing compiler, so override with the script.
2905 # FIXME: It is wrong to rewrite CC.
2906 # But if we don't then we get into trouble of one sort or another.
2907 # A longer-term fix would be to have automake use am__CC in this case,
2908 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2909 CC="$am_aux_dir/compile $CC"
2912 # autoconf is lame and doesn't give us any substitution variable for this.
2913 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2914 NO_MINUS_C_MINUS_O=yes
2916 OUTPUT_OPTION='-o $@'
2921 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2922 # optimizations to be activated explicitly by the toplevel.
2924 */prev-gcc/xgcc*) ;;
2925 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2929 # -------------------------
2930 # Check C compiler features
2931 # -------------------------
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2944 if test -z "$CPP"; then
2945 if test "${ac_cv_prog_CPP+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 # Double quotes because CPP needs to be expanded
2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2952 for ac_c_preproc_warn_flag in '' yes
2954 # Use a header file that comes with gcc, so configuring glibc
2955 # with a fresh cross-compiler works.
2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957 # <limits.h> exists even on freestanding compilers.
2958 # On the NeXT, cc -E runs the code through the compiler's parser,
2959 # not just through cpp. "Syntax error" is here to catch this case.
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2967 # include <limits.h>
2969 # include <assert.h>
2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 grep -v '^ *+' conftest.er1 >conftest.err
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } >/dev/null; then
2981 if test -s conftest.err; then
2982 ac_cpp_err=$ac_c_preproc_warn_flag
2983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2990 if test -z "$ac_cpp_err"; then
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2996 # Broken: fails on valid input.
2999 rm -f conftest.err conftest.$ac_ext
3001 # OK, works on sane cases. Now check whether non-existent headers
3002 # can be detected and how.
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009 #include <ac_nonexistent.h>
3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } >/dev/null; then
3019 if test -s conftest.err; then
3020 ac_cpp_err=$ac_c_preproc_warn_flag
3021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3028 if test -z "$ac_cpp_err"; then
3029 # Broken: success on invalid input.
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 # Passes both tests.
3039 rm -f conftest.err conftest.$ac_ext
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err conftest.$ac_ext
3044 if $ac_preproc_ok; then
3056 echo "$as_me:$LINENO: result: $CPP" >&5
3057 echo "${ECHO_T}$CPP" >&6
3059 for ac_c_preproc_warn_flag in '' yes
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064 # <limits.h> exists even on freestanding compilers.
3065 # On the NeXT, cc -E runs the code through the compiler's parser,
3066 # not just through cpp. "Syntax error" is here to catch this case.
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3074 # include <limits.h>
3076 # include <assert.h>
3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } >/dev/null; then
3088 if test -s conftest.err; then
3089 ac_cpp_err=$ac_c_preproc_warn_flag
3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097 if test -z "$ac_cpp_err"; then
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Broken: fails on valid input.
3106 rm -f conftest.err conftest.$ac_ext
3108 # OK, works on sane cases. Now check whether non-existent headers
3109 # can be detected and how.
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <ac_nonexistent.h>
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3121 grep -v '^ *+' conftest.er1 >conftest.err
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } >/dev/null; then
3126 if test -s conftest.err; then
3127 ac_cpp_err=$ac_c_preproc_warn_flag
3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135 if test -z "$ac_cpp_err"; then
3136 # Broken: success on invalid input.
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 # Passes both tests.
3146 rm -f conftest.err conftest.$ac_ext
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168 echo "$as_me:$LINENO: checking for inline" >&5
3169 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3170 if test "${ac_cv_c_inline+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 for ac_kw in inline __inline__ __inline; do
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3183 static $ac_kw foo_t static_foo () {return 0; }
3184 $ac_kw foo_t foo () {return 0; }
3188 rm -f conftest.$ac_objext
3189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>conftest.er1
3192 grep -v '^ *+' conftest.er1 >conftest.err
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag"
3198 || test ! -s conftest.err'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 ac_cv_c_inline=$ac_kw; break
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3220 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3221 echo "${ECHO_T}$ac_cv_c_inline" >&6
3224 case $ac_cv_c_inline in
3227 case $ac_cv_c_inline in
3229 *) ac_val=$ac_cv_c_inline;;
3231 cat >>confdefs.h <<_ACEOF
3233 #define inline $ac_val
3240 # sizeof(char) is 1 by definition.
3242 echo "$as_me:$LINENO: checking for egrep" >&5
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3244 if test "${ac_cv_prog_egrep+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3248 then ac_cv_prog_egrep='grep -E'
3249 else ac_cv_prog_egrep='egrep'
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3254 EGREP=$ac_cv_prog_egrep
3257 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3258 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3259 if test "${ac_cv_header_stdc+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_cv_header_stdc=yes
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 ac_cv_header_stdc=no
3310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3312 if test $ac_cv_header_stdc = yes; then
3313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3314 cat >conftest.$ac_ext <<_ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3324 $EGREP "memchr" >/dev/null 2>&1; then
3327 ac_cv_header_stdc=no
3333 if test $ac_cv_header_stdc = yes; then
3334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3335 cat >conftest.$ac_ext <<_ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 $EGREP "free" >/dev/null 2>&1; then
3348 ac_cv_header_stdc=no
3354 if test $ac_cv_header_stdc = yes; then
3355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3356 if test "$cross_compiling" = yes; then
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3366 #if ((' ' & 0x0FF) == 0x020)
3367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3370 # define ISLOWER(c) \
3371 (('a' <= (c) && (c) <= 'i') \
3372 || ('j' <= (c) && (c) <= 'r') \
3373 || ('s' <= (c) && (c) <= 'z'))
3374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3382 for (i = 0; i < 256; i++)
3383 if (XOR (islower (i), ISLOWER (i))
3384 || toupper (i) != TOUPPER (i))
3389 rm -f conftest$ac_exeext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3391 (eval $ac_link) 2>&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3402 echo "$as_me: program exited with status $ac_status" >&5
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3407 ac_cv_header_stdc=no
3409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3413 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3414 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3415 if test $ac_cv_header_stdc = yes; then
3417 cat >>confdefs.h <<\_ACEOF
3418 #define STDC_HEADERS 1
3423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3433 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3434 inttypes.h stdint.h unistd.h
3436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3437 echo "$as_me:$LINENO: checking for $ac_header" >&5
3438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 $ac_includes_default
3450 #include <$ac_header>
3452 rm -f conftest.$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try='test -z "$ac_c_werror_flag"
3462 || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 eval "$as_ac_Header=yes"
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 eval "$as_ac_Header=no"
3481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3486 cat >>confdefs.h <<_ACEOF
3487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3495 echo "$as_me:$LINENO: checking for void *" >&5
3496 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3497 if test "${ac_cv_type_void_p+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 $ac_includes_default
3512 if (sizeof (void *))
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 ac_cv_type_void_p=yes
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 ac_cv_type_void_p=no
3547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3549 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3550 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3552 echo "$as_me:$LINENO: checking size of void *" >&5
3553 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3554 if test "${ac_cv_sizeof_void_p+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 if test "$ac_cv_type_void_p" = yes; then
3558 # The cast to unsigned long works around a bug in the HP C Compiler
3559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3561 # This bug is HP SR number 8606223364.
3562 if test "$cross_compiling" = yes; then
3563 # Depending upon the size, compute the lo and hi bounds.
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 $ac_includes_default
3574 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_c_werror_flag"
3591 || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3605 cat >conftest.$ac_ext <<_ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 $ac_includes_default
3615 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3622 rm -f conftest.$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3626 grep -v '^ *+' conftest.er1 >conftest.err
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_hi=$ac_mid; break
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 ac_lo=`expr $ac_mid + 1`
3650 if test $ac_lo -le $ac_mid; then
3654 ac_mid=`expr 2 '*' $ac_mid + 1`
3656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 $ac_includes_default
3672 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_c_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3703 cat >conftest.$ac_ext <<_ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 $ac_includes_default
3713 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3720 rm -f conftest.$ac_objext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>conftest.er1
3724 grep -v '^ *+' conftest.er1 >conftest.err
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try='test -s conftest.$ac_objext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 ac_lo=$ac_mid; break
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 ac_hi=`expr '(' $ac_mid ')' - 1`
3748 if test $ac_mid -le $ac_hi; then
3752 ac_mid=`expr 2 '*' $ac_mid`
3754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 # Binary search between lo and hi bounds.
3766 while test "x$ac_lo" != "x$ac_hi"; do
3767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 $ac_includes_default
3778 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 ac_lo=`expr '(' $ac_mid ')' + 1`
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3818 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3819 See \`config.log' for more details." >&5
3820 echo "$as_me: error: cannot compute sizeof (void *), 77
3821 See \`config.log' for more details." >&2;}
3822 { (exit 1); exit 1; }; } ;;
3825 if test "$cross_compiling" = yes; then
3826 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3827 See \`config.log' for more details." >&5
3828 echo "$as_me: error: cannot run test program while cross compiling
3829 See \`config.log' for more details." >&2;}
3830 { (exit 1); exit 1; }; }
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 $ac_includes_default
3839 long longval () { return (long) (sizeof (void *)); }
3840 unsigned long ulongval () { return (long) (sizeof (void *)); }
3847 FILE *f = fopen ("conftest.val", "w");
3850 if (((long) (sizeof (void *))) < 0)
3852 long i = longval ();
3853 if (i != ((long) (sizeof (void *))))
3855 fprintf (f, "%ld\n", i);
3859 unsigned long i = ulongval ();
3860 if (i != ((long) (sizeof (void *))))
3862 fprintf (f, "%lu\n", i);
3864 exit (ferror (f) || fclose (f) != 0);
3870 rm -f conftest$ac_exeext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3872 (eval $ac_link) 2>&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_sizeof_void_p=`cat conftest.val`
3883 echo "$as_me: program exited with status $ac_status" >&5
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3888 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3889 See \`config.log' for more details." >&5
3890 echo "$as_me: error: cannot compute sizeof (void *), 77
3891 See \`config.log' for more details." >&2;}
3892 { (exit 1); exit 1; }; }
3894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3899 ac_cv_sizeof_void_p=0
3902 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3903 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3904 cat >>confdefs.h <<_ACEOF
3905 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3909 echo "$as_me:$LINENO: checking for short" >&5
3910 echo $ECHO_N "checking for short... $ECHO_C" >&6
3911 if test "${ac_cv_type_short+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 $ac_includes_default
3932 rm -f conftest.$ac_objext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest.$ac_objext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 ac_cv_type_short=yes
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3963 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3964 echo "${ECHO_T}$ac_cv_type_short" >&6
3966 echo "$as_me:$LINENO: checking size of short" >&5
3967 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3968 if test "${ac_cv_sizeof_short+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 if test "$ac_cv_type_short" = yes; then
3972 # The cast to unsigned long works around a bug in the HP C Compiler
3973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3975 # This bug is HP SR number 8606223364.
3976 if test "$cross_compiling" = yes; then
3977 # Depending upon the size, compute the lo and hi bounds.
3978 cat >conftest.$ac_ext <<_ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 $ac_includes_default
3988 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3995 rm -f conftest.$ac_objext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997 (eval $ac_compile) 2>conftest.er1
3999 grep -v '^ *+' conftest.er1 >conftest.err
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -z "$ac_c_werror_flag"
4005 || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest.$ac_objext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4029 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 ac_hi=$ac_mid; break
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4063 ac_lo=`expr $ac_mid + 1`
4064 if test $ac_lo -le $ac_mid; then
4068 ac_mid=`expr 2 '*' $ac_mid + 1`
4070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 cat >conftest.$ac_ext <<_ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 $ac_includes_default
4086 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>conftest.er1
4097 grep -v '^ *+' conftest.er1 >conftest.err
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -z "$ac_c_werror_flag"
4103 || test ! -s conftest.err'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4117 cat >conftest.$ac_ext <<_ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 $ac_includes_default
4127 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_lo=$ac_mid; break
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_hi=`expr '(' $ac_mid ')' - 1`
4162 if test $ac_mid -le $ac_hi; then
4166 ac_mid=`expr 2 '*' $ac_mid`
4168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179 # Binary search between lo and hi bounds.
4180 while test "x$ac_lo" != "x$ac_hi"; do
4181 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 $ac_includes_default
4192 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>conftest.er1
4203 grep -v '^ *+' conftest.er1 >conftest.err
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -z "$ac_c_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 ac_lo=`expr '(' $ac_mid ')' + 1`
4228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4231 ?*) ac_cv_sizeof_short=$ac_lo;;
4232 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4233 See \`config.log' for more details." >&5
4234 echo "$as_me: error: cannot compute sizeof (short), 77
4235 See \`config.log' for more details." >&2;}
4236 { (exit 1); exit 1; }; } ;;
4239 if test "$cross_compiling" = yes; then
4240 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4241 See \`config.log' for more details." >&5
4242 echo "$as_me: error: cannot run test program while cross compiling
4243 See \`config.log' for more details." >&2;}
4244 { (exit 1); exit 1; }; }
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 $ac_includes_default
4253 long longval () { return (long) (sizeof (short)); }
4254 unsigned long ulongval () { return (long) (sizeof (short)); }
4261 FILE *f = fopen ("conftest.val", "w");
4264 if (((long) (sizeof (short))) < 0)
4266 long i = longval ();
4267 if (i != ((long) (sizeof (short))))
4269 fprintf (f, "%ld\n", i);
4273 unsigned long i = ulongval ();
4274 if (i != ((long) (sizeof (short))))
4276 fprintf (f, "%lu\n", i);
4278 exit (ferror (f) || fclose (f) != 0);
4284 rm -f conftest$ac_exeext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286 (eval $ac_link) 2>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_cv_sizeof_short=`cat conftest.val`
4297 echo "$as_me: program exited with status $ac_status" >&5
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4302 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4303 See \`config.log' for more details." >&5
4304 echo "$as_me: error: cannot compute sizeof (short), 77
4305 See \`config.log' for more details." >&2;}
4306 { (exit 1); exit 1; }; }
4308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4313 ac_cv_sizeof_short=0
4316 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4317 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4318 cat >>confdefs.h <<_ACEOF
4319 #define SIZEOF_SHORT $ac_cv_sizeof_short
4323 echo "$as_me:$LINENO: checking for int" >&5
4324 echo $ECHO_N "checking for int... $ECHO_C" >&6
4325 if test "${ac_cv_type_int+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 $ac_includes_default
4346 rm -f conftest.$ac_objext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4377 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4378 echo "${ECHO_T}$ac_cv_type_int" >&6
4380 echo "$as_me:$LINENO: checking size of int" >&5
4381 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4382 if test "${ac_cv_sizeof_int+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test "$ac_cv_type_int" = yes; then
4386 # The cast to unsigned long works around a bug in the HP C Compiler
4387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4389 # This bug is HP SR number 8606223364.
4390 if test "$cross_compiling" = yes; then
4391 # Depending upon the size, compute the lo and hi bounds.
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 $ac_includes_default
4402 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4409 rm -f conftest.$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>conftest.er1
4413 grep -v '^ *+' conftest.er1 >conftest.err
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_c_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4433 cat >conftest.$ac_ext <<_ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 $ac_includes_default
4443 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_hi=$ac_mid; break
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_lo=`expr $ac_mid + 1`
4478 if test $ac_lo -le $ac_mid; then
4482 ac_mid=`expr 2 '*' $ac_mid + 1`
4484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 $ac_includes_default
4500 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4511 grep -v '^ *+' conftest.er1 >conftest.err
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4531 cat >conftest.$ac_ext <<_ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4541 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1 >conftest.err
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_lo=$ac_mid; break
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 ac_hi=`expr '(' $ac_mid ')' - 1`
4576 if test $ac_mid -le $ac_hi; then
4580 ac_mid=`expr 2 '*' $ac_mid`
4582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4593 # Binary search between lo and hi bounds.
4594 while test "x$ac_lo" != "x$ac_hi"; do
4595 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4606 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4613 rm -f conftest.$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>conftest.er1
4617 grep -v '^ *+' conftest.er1 >conftest.err
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4640 ac_lo=`expr '(' $ac_mid ')' + 1`
4642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 ?*) ac_cv_sizeof_int=$ac_lo;;
4646 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4647 See \`config.log' for more details." >&5
4648 echo "$as_me: error: cannot compute sizeof (int), 77
4649 See \`config.log' for more details." >&2;}
4650 { (exit 1); exit 1; }; } ;;
4653 if test "$cross_compiling" = yes; then
4654 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4655 See \`config.log' for more details." >&5
4656 echo "$as_me: error: cannot run test program while cross compiling
4657 See \`config.log' for more details." >&2;}
4658 { (exit 1); exit 1; }; }
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 long longval () { return (long) (sizeof (int)); }
4668 unsigned long ulongval () { return (long) (sizeof (int)); }
4675 FILE *f = fopen ("conftest.val", "w");
4678 if (((long) (sizeof (int))) < 0)
4680 long i = longval ();
4681 if (i != ((long) (sizeof (int))))
4683 fprintf (f, "%ld\n", i);
4687 unsigned long i = ulongval ();
4688 if (i != ((long) (sizeof (int))))
4690 fprintf (f, "%lu\n", i);
4692 exit (ferror (f) || fclose (f) != 0);
4698 rm -f conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_sizeof_int=`cat conftest.val`
4711 echo "$as_me: program exited with status $ac_status" >&5
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4717 See \`config.log' for more details." >&5
4718 echo "$as_me: error: cannot compute sizeof (int), 77
4719 See \`config.log' for more details." >&2;}
4720 { (exit 1); exit 1; }; }
4722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4730 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4731 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4732 cat >>confdefs.h <<_ACEOF
4733 #define SIZEOF_INT $ac_cv_sizeof_int
4737 echo "$as_me:$LINENO: checking for long" >&5
4738 echo $ECHO_N "checking for long... $ECHO_C" >&6
4739 if test "${ac_cv_type_long+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 cat >conftest.$ac_ext <<_ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 $ac_includes_default
4760 rm -f conftest.$ac_objext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4764 grep -v '^ *+' conftest.er1 >conftest.err
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag"
4770 || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4791 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4792 echo "${ECHO_T}$ac_cv_type_long" >&6
4794 echo "$as_me:$LINENO: checking size of long" >&5
4795 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4796 if test "${ac_cv_sizeof_long+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 if test "$ac_cv_type_long" = yes; then
4800 # The cast to unsigned long works around a bug in the HP C Compiler
4801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4803 # This bug is HP SR number 8606223364.
4804 if test "$cross_compiling" = yes; then
4805 # Depending upon the size, compute the lo and hi bounds.
4806 cat >conftest.$ac_ext <<_ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 $ac_includes_default
4816 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4823 rm -f conftest.$ac_objext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>conftest.er1
4827 grep -v '^ *+' conftest.er1 >conftest.err
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -z "$ac_c_werror_flag"
4833 || test ! -s conftest.err'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; } &&
4839 { ac_try='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4847 cat >conftest.$ac_ext <<_ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4857 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4864 rm -f conftest.$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>conftest.er1
4868 grep -v '^ *+' conftest.er1 >conftest.err
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_hi=$ac_mid; break
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 ac_lo=`expr $ac_mid + 1`
4892 if test $ac_lo -le $ac_mid; then
4896 ac_mid=`expr 2 '*' $ac_mid + 1`
4898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 cat >conftest.$ac_ext <<_ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 $ac_includes_default
4914 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4921 rm -f conftest.$ac_objext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } &&
4930 { ac_try='test -z "$ac_c_werror_flag"
4931 || test ! -s conftest.err'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest.$ac_objext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4945 cat >conftest.$ac_ext <<_ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 $ac_includes_default
4955 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4966 grep -v '^ *+' conftest.er1 >conftest.err
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -z "$ac_c_werror_flag"
4972 || test ! -s conftest.err'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; } &&
4978 { ac_try='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_lo=$ac_mid; break
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 ac_hi=`expr '(' $ac_mid ')' - 1`
4990 if test $ac_mid -le $ac_hi; then
4994 ac_mid=`expr 2 '*' $ac_mid`
4996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5007 # Binary search between lo and hi bounds.
5008 while test "x$ac_lo" != "x$ac_hi"; do
5009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_includes_default
5020 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>conftest.er1
5031 grep -v '^ *+' conftest.er1 >conftest.err
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 ac_lo=`expr '(' $ac_mid ')' + 1`
5056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5059 ?*) ac_cv_sizeof_long=$ac_lo;;
5060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5061 See \`config.log' for more details." >&5
5062 echo "$as_me: error: cannot compute sizeof (long), 77
5063 See \`config.log' for more details." >&2;}
5064 { (exit 1); exit 1; }; } ;;
5067 if test "$cross_compiling" = yes; then
5068 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5069 See \`config.log' for more details." >&5
5070 echo "$as_me: error: cannot run test program while cross compiling
5071 See \`config.log' for more details." >&2;}
5072 { (exit 1); exit 1; }; }
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 $ac_includes_default
5081 long longval () { return (long) (sizeof (long)); }
5082 unsigned long ulongval () { return (long) (sizeof (long)); }
5089 FILE *f = fopen ("conftest.val", "w");
5092 if (((long) (sizeof (long))) < 0)
5094 long i = longval ();
5095 if (i != ((long) (sizeof (long))))
5097 fprintf (f, "%ld\n", i);
5101 unsigned long i = ulongval ();
5102 if (i != ((long) (sizeof (long))))
5104 fprintf (f, "%lu\n", i);
5106 exit (ferror (f) || fclose (f) != 0);
5112 rm -f conftest$ac_exeext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114 (eval $ac_link) 2>&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_cv_sizeof_long=`cat conftest.val`
5125 echo "$as_me: program exited with status $ac_status" >&5
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5130 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5131 See \`config.log' for more details." >&5
5132 echo "$as_me: error: cannot compute sizeof (long), 77
5133 See \`config.log' for more details." >&2;}
5134 { (exit 1); exit 1; }; }
5136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5144 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5145 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5146 cat >>confdefs.h <<_ACEOF
5147 #define SIZEOF_LONG $ac_cv_sizeof_long
5151 echo "$as_me:$LINENO: checking for long long" >&5
5152 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5153 if test "${ac_cv_type_long_long+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 cat >conftest.$ac_ext <<_ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 $ac_includes_default
5166 if ((long long *) 0)
5168 if (sizeof (long long))
5174 rm -f conftest.$ac_objext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176 (eval $ac_compile) 2>conftest.er1
5178 grep -v '^ *+' conftest.er1 >conftest.err
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_type_long_long=yes
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 ac_cv_type_long_long=no
5203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5205 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5206 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5207 if test $ac_cv_type_long_long = yes; then
5209 cat >>confdefs.h <<_ACEOF
5210 #define HAVE_LONG_LONG 1
5213 echo "$as_me:$LINENO: checking for long long" >&5
5214 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5215 if test "${ac_cv_type_long_long+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 cat >conftest.$ac_ext <<_ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 $ac_includes_default
5228 if ((long long *) 0)
5230 if (sizeof (long long))
5236 rm -f conftest.$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>conftest.er1
5240 grep -v '^ *+' conftest.er1 >conftest.err
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -z "$ac_c_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest.$ac_objext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_type_long_long=yes
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 ac_cv_type_long_long=no
5265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5267 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5268 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5270 echo "$as_me:$LINENO: checking size of long long" >&5
5271 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5272 if test "${ac_cv_sizeof_long_long+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 if test "$ac_cv_type_long_long" = yes; then
5276 # The cast to unsigned long works around a bug in the HP C Compiler
5277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5279 # This bug is HP SR number 8606223364.
5280 if test "$cross_compiling" = yes; then
5281 # Depending upon the size, compute the lo and hi bounds.
5282 cat >conftest.$ac_ext <<_ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 $ac_includes_default
5292 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>conftest.er1
5303 grep -v '^ *+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -z "$ac_c_werror_flag"
5309 || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5333 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5344 grep -v '^ *+' conftest.er1 >conftest.err
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -z "$ac_c_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_hi=$ac_mid; break
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5367 ac_lo=`expr $ac_mid + 1`
5368 if test $ac_lo -le $ac_mid; then
5372 ac_mid=`expr 2 '*' $ac_mid + 1`
5374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 cat >conftest.$ac_ext <<_ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 $ac_includes_default
5390 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399 (eval $ac_compile) 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_c_werror_flag"
5407 || test ! -s conftest.err'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest.$ac_objext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5421 cat >conftest.$ac_ext <<_ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 $ac_includes_default
5431 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5442 grep -v '^ *+' conftest.er1 >conftest.err
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_lo=$ac_mid; break
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_hi=`expr '(' $ac_mid ')' - 1`
5466 if test $ac_mid -le $ac_hi; then
5470 ac_mid=`expr 2 '*' $ac_mid`
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 # Binary search between lo and hi bounds.
5484 while test "x$ac_lo" != "x$ac_hi"; do
5485 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5486 cat >conftest.$ac_ext <<_ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 $ac_includes_default
5496 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5503 rm -f conftest.$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try='test -s conftest.$ac_objext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 ac_lo=`expr '(' $ac_mid ')' + 1`
5532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5535 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5536 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5537 See \`config.log' for more details." >&5
5538 echo "$as_me: error: cannot compute sizeof (long long), 77
5539 See \`config.log' for more details." >&2;}
5540 { (exit 1); exit 1; }; } ;;
5543 if test "$cross_compiling" = yes; then
5544 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5545 See \`config.log' for more details." >&5
5546 echo "$as_me: error: cannot run test program while cross compiling
5547 See \`config.log' for more details." >&2;}
5548 { (exit 1); exit 1; }; }
5550 cat >conftest.$ac_ext <<_ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 $ac_includes_default
5557 long longval () { return (long) (sizeof (long long)); }
5558 unsigned long ulongval () { return (long) (sizeof (long long)); }
5565 FILE *f = fopen ("conftest.val", "w");
5568 if (((long) (sizeof (long long))) < 0)
5570 long i = longval ();
5571 if (i != ((long) (sizeof (long long))))
5573 fprintf (f, "%ld\n", i);
5577 unsigned long i = ulongval ();
5578 if (i != ((long) (sizeof (long long))))
5580 fprintf (f, "%lu\n", i);
5582 exit (ferror (f) || fclose (f) != 0);
5588 rm -f conftest$ac_exeext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5590 (eval $ac_link) 2>&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5599 ac_cv_sizeof_long_long=`cat conftest.val`
5601 echo "$as_me: program exited with status $ac_status" >&5
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5607 See \`config.log' for more details." >&5
5608 echo "$as_me: error: cannot compute sizeof (long long), 77
5609 See \`config.log' for more details." >&2;}
5610 { (exit 1); exit 1; }; }
5612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5617 ac_cv_sizeof_long_long=0
5620 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5621 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5622 cat >>confdefs.h <<_ACEOF
5623 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5629 echo "$as_me:$LINENO: checking for __int64" >&5
5630 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5631 if test "${ac_cv_type___int64+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5646 if (sizeof (__int64))
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5656 grep -v '^ *+' conftest.er1 >conftest.err
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_type___int64=yes
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 ac_cv_type___int64=no
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5684 echo "${ECHO_T}$ac_cv_type___int64" >&6
5685 if test $ac_cv_type___int64 = yes; then
5687 cat >>confdefs.h <<_ACEOF
5688 #define HAVE___INT64 1
5691 echo "$as_me:$LINENO: checking for __int64" >&5
5692 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5693 if test "${ac_cv_type___int64+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 cat >conftest.$ac_ext <<_ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 $ac_includes_default
5708 if (sizeof (__int64))
5714 rm -f conftest.$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>conftest.er1
5718 grep -v '^ *+' conftest.er1 >conftest.err
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try='test -z "$ac_c_werror_flag"
5724 || test ! -s conftest.err'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try='test -s conftest.$ac_objext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_cv_type___int64=yes
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 ac_cv_type___int64=no
5743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5745 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5746 echo "${ECHO_T}$ac_cv_type___int64" >&6
5748 echo "$as_me:$LINENO: checking size of __int64" >&5
5749 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5750 if test "${ac_cv_sizeof___int64+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test "$ac_cv_type___int64" = yes; then
5754 # The cast to unsigned long works around a bug in the HP C Compiler
5755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5757 # This bug is HP SR number 8606223364.
5758 if test "$cross_compiling" = yes; then
5759 # Depending upon the size, compute the lo and hi bounds.
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5770 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5781 grep -v '^ *+' conftest.er1 >conftest.err
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5801 cat >conftest.$ac_ext <<_ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 $ac_includes_default
5811 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5818 rm -f conftest.$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>conftest.er1
5822 grep -v '^ *+' conftest.er1 >conftest.err
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_c_werror_flag"
5828 || test ! -s conftest.err'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 ac_hi=$ac_mid; break
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5845 ac_lo=`expr $ac_mid + 1`
5846 if test $ac_lo -le $ac_mid; then
5850 ac_mid=`expr 2 '*' $ac_mid + 1`
5852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 cat >conftest.$ac_ext <<_ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 $ac_includes_default
5868 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5875 rm -f conftest.$ac_objext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>conftest.er1
5879 grep -v '^ *+' conftest.er1 >conftest.err
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -z "$ac_c_werror_flag"
5885 || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5909 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5916 rm -f conftest.$ac_objext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>conftest.er1
5920 grep -v '^ *+' conftest.er1 >conftest.err
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_c_werror_flag"
5926 || test ! -s conftest.err'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try='test -s conftest.$ac_objext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 ac_lo=$ac_mid; break
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5943 ac_hi=`expr '(' $ac_mid ')' - 1`
5944 if test $ac_mid -le $ac_hi; then
5948 ac_mid=`expr 2 '*' $ac_mid`
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5961 # Binary search between lo and hi bounds.
5962 while test "x$ac_lo" != "x$ac_hi"; do
5963 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5964 cat >conftest.$ac_ext <<_ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 $ac_includes_default
5974 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5981 rm -f conftest.$ac_objext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>conftest.er1
5985 grep -v '^ *+' conftest.er1 >conftest.err
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag"
5991 || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest.$ac_objext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6008 ac_lo=`expr '(' $ac_mid ')' + 1`
6010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013 ?*) ac_cv_sizeof___int64=$ac_lo;;
6014 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (__int64), 77
6017 See \`config.log' for more details." >&2;}
6018 { (exit 1); exit 1; }; } ;;
6021 if test "$cross_compiling" = yes; then
6022 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6023 See \`config.log' for more details." >&5
6024 echo "$as_me: error: cannot run test program while cross compiling
6025 See \`config.log' for more details." >&2;}
6026 { (exit 1); exit 1; }; }
6028 cat >conftest.$ac_ext <<_ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 $ac_includes_default
6035 long longval () { return (long) (sizeof (__int64)); }
6036 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6043 FILE *f = fopen ("conftest.val", "w");
6046 if (((long) (sizeof (__int64))) < 0)
6048 long i = longval ();
6049 if (i != ((long) (sizeof (__int64))))
6051 fprintf (f, "%ld\n", i);
6055 unsigned long i = ulongval ();
6056 if (i != ((long) (sizeof (__int64))))
6058 fprintf (f, "%lu\n", i);
6060 exit (ferror (f) || fclose (f) != 0);
6066 rm -f conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068 (eval $ac_link) 2>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_sizeof___int64=`cat conftest.val`
6079 echo "$as_me: program exited with status $ac_status" >&5
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6085 See \`config.log' for more details." >&5
6086 echo "$as_me: error: cannot compute sizeof (__int64), 77
6087 See \`config.log' for more details." >&2;}
6088 { (exit 1); exit 1; }; }
6090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6095 ac_cv_sizeof___int64=0
6098 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6099 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6100 cat >>confdefs.h <<_ACEOF
6101 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6108 # ---------------------
6109 # Warnings and checking
6110 # ---------------------
6112 # Check $CC warning features (if it's GCC).
6113 # We want to use -pedantic, but we don't want warnings about
6116 # * overlong strings
6117 # So, we only use -pedantic if we can disable those warnings.
6120 save_CFLAGS="$CFLAGS"
6121 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6122 -Wmissing-prototypes; do
6123 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6125 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6126 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6127 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 cat >conftest.$ac_ext <<_ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>conftest.er1
6150 grep -v '^ *+' conftest.er1 >conftest.err
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest.$ac_objext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 eval "$as_acx_Woption=yes"
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 eval "$as_acx_Woption=no"
6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6178 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6180 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6181 loose_warn="$loose_warn${loose_warn:+ }$option"
6185 CFLAGS="$save_CFLAGS"
6188 save_CFLAGS="$CFLAGS"
6189 for option in -Wc++-compat; do
6190 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6192 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6193 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6194 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 cat >conftest.$ac_ext <<_ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6213 rm -f conftest.$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>conftest.er1
6217 grep -v '^ *+' conftest.er1 >conftest.err
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_c_werror_flag"
6223 || test ! -s conftest.err'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; } &&
6229 { ac_try='test -s conftest.$ac_objext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 eval "$as_acx_Woption=yes"
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.$ac_ext >&5
6240 eval "$as_acx_Woption=no"
6242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6245 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6246 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6247 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6248 cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6252 CFLAGS="$save_CFLAGS"
6255 save_CFLAGS="$CFLAGS"
6256 for option in -Wold-style-definition \
6257 -Wmissing-format-attribute; do
6258 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6260 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6261 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6262 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 cat >conftest.$ac_ext <<_ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>conftest.er1
6285 grep -v '^ *+' conftest.er1 >conftest.err
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 eval "$as_acx_Woption=yes"
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 eval "$as_acx_Woption=no"
6310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6313 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6314 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6315 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6316 strict_warn="$strict_warn${strict_warn:+ }$option"
6320 CFLAGS="$save_CFLAGS"
6322 if test "$GCC" = yes; then
6323 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6324 -Wno-overlength-strings" >&5
6325 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6326 -Wno-overlength-strings... $ECHO_C" >&6
6327 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 save_CFLAGS="$CFLAGS"
6331 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6332 -Wno-overlength-strings"
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6348 rm -f conftest.$ac_objext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>conftest.er1
6352 grep -v '^ *+' conftest.er1 >conftest.err
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_c_werror_flag"
6358 || test ! -s conftest.err'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest.$ac_objext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378 CFLAGS="$save_CFLAGS"
6380 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6381 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6382 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6383 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6384 -Wno-overlength-strings"
6391 # Check whether --enable-werror-always or --disable-werror-always was given.
6392 if test "${enable_werror_always+set}" = set; then
6393 enableval="$enable_werror_always"
6396 enable_werror_always=no
6398 if test $enable_werror_always = yes; then
6399 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6405 # The above macros do nothing if the compiler is not GCC. However, the
6406 # Makefile has more goo to add other flags, so this variabl is used to
6407 # enables warnings only for GCC.
6409 if test "x$GCC" = "xyes"; then
6410 warn_cflags='$(GCC_WARN_CFLAGS)'
6414 # Enable expensive internal checks
6416 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6420 # Check whether --enable-checking or --disable-checking was given.
6421 if test "${enable_checking+set}" = set; then
6422 enableval="$enable_checking"
6423 ac_checking_flags="${enableval}"
6426 # Determine the default checks.
6427 if test x$is_release = x ; then
6428 ac_checking_flags=yes
6430 ac_checking_flags=release
6433 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6434 for check in release $ac_checking_flags
6437 # these set all the flags to specific states
6438 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6439 ac_fold_checking= ; ac_gc_checking=1 ;
6440 ac_gc_always_collect= ; ac_rtl_checking= ;
6441 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6442 ac_tree_checking=1 ; ac_valgrind_checking= ;
6443 ac_types_checking= ;;
6444 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6445 ac_fold_checking= ; ac_gc_checking= ;
6446 ac_gc_always_collect= ; ac_rtl_checking= ;
6447 ac_rtlflag_checking= ; ac_runtime_checking= ;
6448 ac_tree_checking= ; ac_valgrind_checking= ;
6449 ac_types_checking= ;;
6450 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6451 ac_fold_checking=1 ; ac_gc_checking=1 ;
6452 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6453 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6454 ac_tree_checking=1 ; ac_valgrind_checking= ;
6455 ac_types_checking=1 ;;
6456 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6457 ac_fold_checking= ; ac_gc_checking= ;
6458 ac_gc_always_collect= ; ac_rtl_checking= ;
6459 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6460 ac_tree_checking= ; ac_valgrind_checking= ;
6461 ac_types_checking= ;;
6462 # these enable particular checks
6463 assert) ac_assert_checking=1 ;;
6464 df) ac_df_checking=1 ;;
6465 fold) ac_fold_checking=1 ;;
6466 gc) ac_gc_checking=1 ;;
6467 gcac) ac_gc_always_collect=1 ;;
6468 misc) ac_checking=1 ;;
6469 rtl) ac_rtl_checking=1 ;;
6470 rtlflag) ac_rtlflag_checking=1 ;;
6471 runtime) ac_runtime_checking=1 ;;
6472 tree) ac_tree_checking=1 ;;
6473 types) ac_types_checking=1 ;;
6474 valgrind) ac_valgrind_checking=1 ;;
6475 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6476 echo "$as_me: error: unknown check category $check" >&2;}
6477 { (exit 1); exit 1; }; } ;;
6483 if test x$ac_checking != x ; then
6485 cat >>confdefs.h <<\_ACEOF
6486 #define ENABLE_CHECKING 1
6489 nocommon_flag=-fno-common
6492 if test x$ac_df_checking != x ; then
6494 cat >>confdefs.h <<\_ACEOF
6495 #define ENABLE_DF_CHECKING 1
6499 if test x$ac_assert_checking != x ; then
6501 cat >>confdefs.h <<\_ACEOF
6502 #define ENABLE_ASSERT_CHECKING 1
6507 if test x$ac_runtime_checking != x ; then
6509 cat >>confdefs.h <<\_ACEOF
6510 #define ENABLE_RUNTIME_CHECKING 1
6514 if test x$ac_tree_checking != x ; then
6516 cat >>confdefs.h <<\_ACEOF
6517 #define ENABLE_TREE_CHECKING 1
6520 TREEBROWSER=tree-browser.o
6522 if test x$ac_types_checking != x ; then
6524 cat >>confdefs.h <<\_ACEOF
6525 #define ENABLE_TYPES_CHECKING 1
6530 if test x$ac_rtl_checking != x ; then
6532 cat >>confdefs.h <<\_ACEOF
6533 #define ENABLE_RTL_CHECKING 1
6537 if test x$ac_rtlflag_checking != x ; then
6539 cat >>confdefs.h <<\_ACEOF
6540 #define ENABLE_RTL_FLAG_CHECKING 1
6544 if test x$ac_gc_checking != x ; then
6546 cat >>confdefs.h <<\_ACEOF
6547 #define ENABLE_GC_CHECKING 1
6551 if test x$ac_gc_always_collect != x ; then
6553 cat >>confdefs.h <<\_ACEOF
6554 #define ENABLE_GC_ALWAYS_COLLECT 1
6558 if test x$ac_fold_checking != x ; then
6560 cat >>confdefs.h <<\_ACEOF
6561 #define ENABLE_FOLD_CHECKING 1
6565 valgrind_path_defines=
6568 if test "${ac_cv_header_valgrind_h+set}" = set; then
6569 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6570 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6571 if test "${ac_cv_header_valgrind_h+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6575 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6577 # Is the header compilable?
6578 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6579 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6587 #include <valgrind.h>
6589 rm -f conftest.$ac_objext
6590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6591 (eval $ac_compile) 2>conftest.er1
6593 grep -v '^ *+' conftest.er1 >conftest.err
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -z "$ac_c_werror_flag"
6599 || test ! -s conftest.err'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; } &&
6605 { ac_try='test -s conftest.$ac_objext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_header_compiler=yes
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 ac_header_compiler=no
6618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6620 echo "${ECHO_T}$ac_header_compiler" >&6
6622 # Is the header present?
6623 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6624 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6625 cat >conftest.$ac_ext <<_ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 #include <valgrind.h>
6633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6636 grep -v '^ *+' conftest.er1 >conftest.err
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } >/dev/null; then
6641 if test -s conftest.err; then
6642 ac_cpp_err=$ac_c_preproc_warn_flag
6643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6650 if test -z "$ac_cpp_err"; then
6651 ac_header_preproc=yes
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6656 ac_header_preproc=no
6658 rm -f conftest.err conftest.$ac_ext
6659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6660 echo "${ECHO_T}$ac_header_preproc" >&6
6662 # So? What about this header?
6663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6665 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6666 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6668 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6669 ac_header_preproc=yes
6672 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6673 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6675 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6677 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6679 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6681 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6683 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6686 ## ------------------------------------------ ##
6687 ## Report this to the AC_PACKAGE_NAME lists. ##
6688 ## ------------------------------------------ ##
6691 sed "s/^/$as_me: WARNING: /" >&2
6694 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6695 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6696 if test "${ac_cv_header_valgrind_h+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 ac_cv_header_valgrind_h=$ac_header_preproc
6701 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6702 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6705 if test $ac_cv_header_valgrind_h = yes; then
6713 if test x$ac_valgrind_checking != x ; then
6714 # It is certainly possible that there's valgrind but no valgrind.h.
6715 # GCC relies on making annotations so we must have both.
6716 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6717 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <valgrind/memcheck.h>
6725 #ifndef VALGRIND_DISCARD
6726 #error VALGRIND_DISCARD not defined
6729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6732 grep -v '^ *+' conftest.er1 >conftest.err
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } >/dev/null; then
6737 if test -s conftest.err; then
6738 ac_cpp_err=$ac_c_preproc_warn_flag
6739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6746 if test -z "$ac_cpp_err"; then
6747 gcc_cv_header_valgrind_memcheck_h=yes
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 gcc_cv_header_valgrind_memcheck_h=no
6754 rm -f conftest.err conftest.$ac_ext
6755 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6756 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6757 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6758 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6759 cat >conftest.$ac_ext <<_ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 #include <memcheck.h>
6766 #ifndef VALGRIND_DISCARD
6767 #error VALGRIND_DISCARD not defined
6770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6773 grep -v '^ *+' conftest.er1 >conftest.err
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } >/dev/null; then
6778 if test -s conftest.err; then
6779 ac_cpp_err=$ac_c_preproc_warn_flag
6780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6787 if test -z "$ac_cpp_err"; then
6788 gcc_cv_header_memcheck_h=yes
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6793 gcc_cv_header_memcheck_h=no
6795 rm -f conftest.err conftest.$ac_ext
6796 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6797 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6799 # Prepare PATH_SEPARATOR.
6800 # The user is always right.
6801 if test "${PATH_SEPARATOR+set}" != set; then
6802 echo "#! /bin/sh" >conf$$.sh
6803 echo "exit 0" >>conf$$.sh
6805 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6813 # Find out how to test for executable files. Don't use a zero-byte file,
6814 # as systems may use methods other than mode bits to determine executability.
6815 cat >conf$$.file <<_ASEOF
6819 chmod +x conf$$.file
6820 if test -x conf$$.file >/dev/null 2>&1; then
6821 ac_executable_p="test -x"
6823 ac_executable_p="test -f"
6827 # Extract the first word of "valgrind", so it can be a program name with args.
6828 set dummy valgrind; ac_word=$2
6829 echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6831 if test "${ac_cv_path_valgrind_path+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 case "$valgrind_path" in
6836 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6839 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6840 for ac_dir in $PATH; do
6842 test -z "$ac_dir" && ac_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6845 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6846 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6856 valgrind_path="$ac_cv_path_valgrind_path"
6857 if test -n "$valgrind_path"; then
6858 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6859 echo "${ECHO_T}$valgrind_path" >&6
6861 echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6
6865 if test "x$valgrind_path" = "x" \
6866 || (test $have_valgrind_h = no \
6867 && test $gcc_cv_header_memcheck_h = no \
6868 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6869 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6870 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6871 { (exit 1); exit 1; }; }
6873 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6874 valgrind_command="$valgrind_path -q"
6876 cat >>confdefs.h <<\_ACEOF
6877 #define ENABLE_VALGRIND_CHECKING 1
6880 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6882 cat >>confdefs.h <<\_ACEOF
6883 #define HAVE_VALGRIND_MEMCHECK_H 1
6887 if test $gcc_cv_header_memcheck_h = yes; then
6889 cat >>confdefs.h <<\_ACEOF
6890 #define HAVE_MEMCHECK_H 1
6898 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6899 if test "${enable_mapped_location+set}" = set; then
6900 enableval="$enable_mapped_location"
6903 enable_mapped_location=yes
6906 if test "$enable_mapped_location" = yes ; then
6908 cat >>confdefs.h <<\_ACEOF
6909 #define USE_MAPPED_LOCATION 1
6914 # Enable code coverage collection
6915 # Check whether --enable-coverage or --disable-coverage was given.
6916 if test "${enable_coverage+set}" = set; then
6917 enableval="$enable_coverage"
6918 case "${enableval}" in
6920 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6923 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6926 # a.k.a. --disable-coverage
6930 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6931 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6932 { (exit 1); exit 1; }; }
6940 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6941 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6942 enableval="$enable_gather_detailed_mem_stats"
6945 enable_gather_detailed_mem_stats=no
6947 if test x$enable_gather_detailed_mem_stats = xyes ; then
6949 cat >>confdefs.h <<\_ACEOF
6950 #define GATHER_STATISTICS 1
6955 # -------------------------------
6956 # Miscenalleous configure options
6957 # -------------------------------
6961 # Check whether --with-stabs or --without-stabs was given.
6962 if test "${with_stabs+set}" = set; then
6963 withval="$with_stabs"
6969 # Determine whether or not multilibs are enabled.
6970 # Check whether --enable-multilib or --disable-multilib was given.
6971 if test "${enable_multilib+set}" = set; then
6972 enableval="$enable_multilib"
6979 # Enable __cxa_atexit for C++.
6980 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6981 if test "${enable___cxa_atexit+set}" = set; then
6982 enableval="$enable___cxa_atexit"
6986 # Enable C extension for decimal float if target supports it.
6987 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6988 if test "${enable_decimal_float+set}" = set; then
6989 enableval="$enable_decimal_float"
6991 case $enable_decimal_float in
6992 yes | no | bid | dpd) ;;
6993 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6994 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
6995 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6996 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
6997 { (exit 1); exit 1; }; } ;;
7003 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7004 enable_decimal_float=yes
7007 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7008 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7009 enable_decimal_float=no
7015 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7017 cat >>confdefs.h <<_ACEOF
7018 #define ENABLE_DECIMAL_FLOAT $dfp
7022 # x86's use BID format instead of DPD
7023 case x$enable_decimal_float in
7026 i?86*-*-linux* | x86_64*-*-linux*)
7027 enable_decimal_float=bid
7030 enable_decimal_float=dpd
7035 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7036 # dependency on libdecnumber.
7037 enable_decimal_float=dpd
7042 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7044 cat >>confdefs.h <<_ACEOF
7045 #define ENABLE_DECIMAL_BID_FORMAT $bid
7049 # Enable C extension for fixed-point arithmetic.
7050 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7051 if test "${enable_fixed_point+set}" = set; then
7052 enableval="$enable_fixed_point"
7059 enable_fixed_point=yes
7062 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7063 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7064 enable_fixed_point=no
7071 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7073 cat >>confdefs.h <<_ACEOF
7074 #define ENABLE_FIXED_POINT $fixedpoint
7079 # Pass with no value to take the default
7080 # Pass with a value to specify a thread package
7081 # Check whether --enable-threads or --disable-threads was given.
7082 if test "${enable_threads+set}" = set; then
7083 enableval="$enable_threads"
7089 # Check whether --enable-tls or --disable-tls was given.
7090 if test "${enable_tls+set}" = set; then
7091 enableval="$enable_tls"
7095 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7096 Valid choices are 'yes' and 'no'." >&5
7097 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7098 Valid choices are 'yes' and 'no'." >&2;}
7099 { (exit 1); exit 1; }; } ;;
7106 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7107 if test "${enable_objc_gc+set}" = set; then
7108 enableval="$enable_objc_gc"
7109 if test x$enable_objc_gc = xno; then
7119 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7120 if test "${with_dwarf2+set}" = set; then
7121 withval="$with_dwarf2"
7122 dwarf2="$with_dwarf2"
7127 # Check whether --enable-shared or --disable-shared was given.
7128 if test "${enable_shared+set}" = set; then
7129 enableval="$enable_shared"
7131 case $enable_shared in
7135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7136 for pkg in $enableval; do
7137 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7151 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7152 if test "${with_build_sysroot+set}" = set; then
7153 withval="$with_build_sysroot"
7158 # Check whether --with-sysroot or --without-sysroot was given.
7159 if test "${with_sysroot+set}" = set; then
7160 withval="$with_sysroot"
7162 case ${with_sysroot} in
7163 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7164 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7167 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7168 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7170 if test "x$prefix" = xNONE; then
7171 test_prefix=/usr/local
7175 if test "x$exec_prefix" = xNONE; then
7176 test_exec_prefix=$test_prefix
7178 test_exec_prefix=$exec_prefix
7180 case ${TARGET_SYSTEM_ROOT} in
7181 "${test_prefix}"|"${test_prefix}/"*|\
7182 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7183 '${prefix}'|'${prefix}/'*|\
7184 '${exec_prefix}'|'${exec_prefix}/'*)
7185 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7186 TARGET_SYSTEM_ROOT_DEFINE="$t"
7193 TARGET_SYSTEM_ROOT_DEFINE=
7194 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7201 # Build with intermodule optimisations
7202 # Check whether --enable-intermodule or --disable-intermodule was given.
7203 if test "${enable_intermodule+set}" = set; then
7204 enableval="$enable_intermodule"
7205 case ${enable_intermodule} in
7206 yes) onestep="-onestep";;
7216 # Check whether --with-pkgversion or --without-pkgversion was given.
7217 if test "${with_pkgversion+set}" = set; then
7218 withval="$with_pkgversion"
7220 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7221 echo "$as_me: error: package version not specified" >&2;}
7222 { (exit 1); exit 1; }; } ;;
7224 *) PKGVERSION="($withval) " ;;
7234 # Check whether --with-bugurl or --without-bugurl was given.
7235 if test "${with_bugurl+set}" = set; then
7236 withval="$with_bugurl"
7238 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7239 echo "$as_me: error: bug URL not specified" >&2;}
7240 { (exit 1); exit 1; }; } ;;
7243 *) BUGURL="$withval"
7247 BUGURL="http://gcc.gnu.org/bugs.html"
7256 REPORT_BUGS_TO="<$BUGURL>"
7257 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7264 # Sanity check enable_languages in case someone does not run the toplevel
7265 # configure # script.
7266 # Check whether --enable-languages or --disable-languages was given.
7267 if test "${enable_languages+set}" = set; then
7268 enableval="$enable_languages"
7269 case ,${enable_languages}, in
7271 # go safe -- we cannot be much sure without the toplevel
7273 # analysis of which target libs are present and usable
7277 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7278 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7279 { (exit 1); exit 1; }; }
7284 enable_languages=c,${enable_languages}
7291 # Used by documentation targets
7296 # -------------------------
7297 # Checks for other programs
7298 # -------------------------
7300 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7301 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7302 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7303 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 cat >conftest.make <<\_ACEOF
7308 @echo 'ac_maketemp="$(MAKE)"'
7310 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7311 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7312 if test -n "$ac_maketemp"; then
7313 eval ac_cv_prog_make_${ac_make}_set=yes
7315 eval ac_cv_prog_make_${ac_make}_set=no
7319 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7320 echo "$as_me:$LINENO: result: yes" >&5
7321 echo "${ECHO_T}yes" >&6
7324 echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6
7326 SET_MAKE="MAKE=${MAKE-make}"
7330 # Find some useful tools
7331 for ac_prog in gawk mawk nawk awk
7333 # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy $ac_prog; ac_word=$2
7335 echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7337 if test "${ac_cv_prog_AWK+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 if test -n "$AWK"; then
7341 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_AWK="$ac_prog"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 if test -n "$AWK"; then
7361 echo "$as_me:$LINENO: result: $AWK" >&5
7362 echo "${ECHO_T}$AWK" >&6
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7368 test -n "$AWK" && break
7371 # We need awk to create options.c and options.h.
7372 # Bail out if it's missing.
7374 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7375 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7376 { (exit 1); exit 1; }; } ;;
7379 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7380 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7381 if test "${gcc_cv_prog_LN_S+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 rm -f conftestdata_t
7385 echo >conftestdata_f
7386 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7388 gcc_cv_prog_LN_S="ln -s"
7390 if ln conftestdata_f conftestdata_t 2>/dev/null
7394 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7396 gcc_cv_prog_LN_S="cp -p"
7402 rm -f conftestdata_f conftestdata_t
7405 LN_S="$gcc_cv_prog_LN_S"
7406 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7407 echo "$as_me:$LINENO: result: yes" >&5
7408 echo "${ECHO_T}yes" >&6
7410 if test "$gcc_cv_prog_LN_S" = "ln"; then
7411 echo "$as_me:$LINENO: result: no, using ln" >&5
7412 echo "${ECHO_T}no, using ln" >&6
7414 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7415 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7419 echo "$as_me:$LINENO: checking whether ln works" >&5
7420 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7421 if test "${acx_cv_prog_LN+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 rm -f conftestdata_t
7425 echo >conftestdata_f
7426 if ln conftestdata_f conftestdata_t 2>/dev/null
7432 rm -f conftestdata_f conftestdata_t
7435 if test $acx_cv_prog_LN = no; then
7437 echo "$as_me:$LINENO: result: no, using $LN" >&5
7438 echo "${ECHO_T}no, using $LN" >&6
7440 LN="$acx_cv_prog_LN"
7441 echo "$as_me:$LINENO: result: yes" >&5
7442 echo "${ECHO_T}yes" >&6
7445 if test -n "$ac_tool_prefix"; then
7446 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7447 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7448 echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7450 if test "${ac_cv_prog_RANLIB+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 if test -n "$RANLIB"; then
7454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 RANLIB=$ac_cv_prog_RANLIB
7473 if test -n "$RANLIB"; then
7474 echo "$as_me:$LINENO: result: $RANLIB" >&5
7475 echo "${ECHO_T}$RANLIB" >&6
7477 echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6
7482 if test -z "$ac_cv_prog_RANLIB"; then
7483 ac_ct_RANLIB=$RANLIB
7484 # Extract the first word of "ranlib", so it can be a program name with args.
7485 set dummy ranlib; ac_word=$2
7486 echo "$as_me:$LINENO: checking for $ac_word" >&5
7487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7488 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 if test -n "$ac_ct_RANLIB"; then
7492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_ac_ct_RANLIB="ranlib"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7511 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7512 if test -n "$ac_ct_RANLIB"; then
7513 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7514 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7516 echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7520 RANLIB=$ac_ct_RANLIB
7522 RANLIB="$ac_cv_prog_RANLIB"
7527 # By default, the Darwin ranlib will not treat common symbols as
7528 # definitions when building the archive table of contents. Other
7529 # ranlibs do that; pass an option to the Darwin ranlib that makes
7530 # it behave similarly.
7538 # Find a good install program. We prefer a C program (faster),
7539 # so one script is as good as another. But avoid the broken or
7540 # incompatible versions:
7541 # SysV /etc/install, /usr/sbin/install
7542 # SunOS /usr/etc/install
7543 # IRIX /sbin/install
7545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7547 # ./install, which can be erroneously created by make from ./install.sh.
7548 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7549 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7550 if test -z "$INSTALL"; then
7551 if test "${ac_cv_path_install+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7555 for ac_dir in $PATH; do
7556 # Account for people who put trailing slashes in PATH elements.
7558 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7560 # OSF1 and SCO ODT 3.0 have their own names for install.
7561 for ac_prog in ginstall scoinst install; do
7562 if test -f $ac_dir/$ac_prog; then
7563 if test $ac_prog = install &&
7564 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7565 # AIX install. It has an incompatible calling convention.
7566 # OSF/1 installbsd also uses dspmsg, but is usable.
7569 ac_cv_path_install="$ac_dir/$ac_prog -c"
7580 if test "${ac_cv_path_install+set}" = set; then
7581 INSTALL="$ac_cv_path_install"
7583 # As a last resort, use the slow shell script. We don't cache a
7584 # path for INSTALL within a source directory, because that will
7585 # break other packages using the cache if that directory is
7586 # removed, or if the path is relative.
7587 INSTALL="$ac_install_sh"
7590 echo "$as_me:$LINENO: result: $INSTALL" >&5
7591 echo "${ECHO_T}$INSTALL" >&6
7593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7594 # It thinks the first close brace ends the variable substitution.
7595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7597 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7600 # See if cmp has --ignore-initial.
7601 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7602 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7603 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 gcc_cv_prog_cmp_skip=slowcompare
7609 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7610 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7613 gcc_cv_prog_cmp_skip=gnucompare
7616 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7617 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7618 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7621 gcc_cv_prog_cmp_skip=fastcompare
7628 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7629 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7630 make_compare_target=$gcc_cv_prog_cmp_skip
7634 # See if we have the mktemp command.
7635 # Extract the first word of "mktemp", so it can be a program name with args.
7636 set dummy mktemp; ac_word=$2
7637 echo "$as_me:$LINENO: checking for $ac_word" >&5
7638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7639 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 if test -n "$have_mktemp_command"; then
7643 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_have_mktemp_command="yes"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7662 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7663 if test -n "$have_mktemp_command"; then
7664 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7665 echo "${ECHO_T}$have_mktemp_command" >&6
7667 echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6
7672 # See if makeinfo has been installed and is modern enough
7673 # that we can use it.
7675 # Extract the first word of "makeinfo", so it can be a program name with args.
7676 set dummy makeinfo; ac_word=$2
7677 echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7679 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 if test -n "$MAKEINFO"; then
7683 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_MAKEINFO="makeinfo"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 MAKEINFO=$ac_cv_prog_MAKEINFO
7702 if test -n "$MAKEINFO"; then
7703 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7704 echo "${ECHO_T}$MAKEINFO" >&6
7706 echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6
7710 if test -n "$MAKEINFO"; then
7711 # Found it, now check the version.
7712 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7713 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7714 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7718 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7720 case $ac_prog_version in
7721 '') gcc_cv_prog_makeinfo_modern=no;;
7722 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7723 *) gcc_cv_prog_makeinfo_modern=no;;
7727 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7728 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7730 gcc_cv_prog_makeinfo_modern=no
7732 if test $gcc_cv_prog_makeinfo_modern = no; then
7733 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7736 if test $gcc_cv_prog_makeinfo_modern = no; then
7737 { echo "$as_me:$LINENO: WARNING:
7738 *** Makeinfo is missing or too old.
7739 *** Info documentation will not be built." >&5
7740 echo "$as_me: WARNING:
7741 *** Makeinfo is missing or too old.
7742 *** Info documentation will not be built." >&2;}
7749 # Is pod2man recent enough to regenerate manpages?
7750 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7751 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7752 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7753 echo "$as_me:$LINENO: result: yes" >&5
7754 echo "${ECHO_T}yes" >&6
7755 GENERATED_MANPAGES=generated-manpages
7757 echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6
7763 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
7769 set dummy $ac_prog; ac_word=$2
7770 echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7772 if test "${ac_cv_prog_FLEX+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 if test -n "$FLEX"; then
7776 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785 ac_cv_prog_FLEX="$ac_prog"
7786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 FLEX=$ac_cv_prog_FLEX
7795 if test -n "$FLEX"; then
7796 echo "$as_me:$LINENO: result: $FLEX" >&5
7797 echo "${ECHO_T}$FLEX" >&6
7799 echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6
7803 test -n "$FLEX" && break
7805 test -n "$FLEX" || FLEX="$MISSING flex"
7809 for ac_prog in bison
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 echo "$as_me:$LINENO: checking for $ac_word" >&5
7814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7815 if test "${ac_cv_prog_BISON+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 if test -n "$BISON"; then
7819 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_prog_BISON="$ac_prog"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 BISON=$ac_cv_prog_BISON
7838 if test -n "$BISON"; then
7839 echo "$as_me:$LINENO: result: $BISON" >&5
7840 echo "${ECHO_T}$BISON" >&6
7842 echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6
7846 test -n "$BISON" && break
7848 test -n "$BISON" || BISON="$MISSING bison"
7851 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7852 # check for build == host before using them.
7855 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7856 && test -d ../binutils ; then
7857 NM='$(objdir)/../binutils/nm-new'
7859 # Extract the first word of "nm", so it can be a program name with args.
7860 set dummy nm; ac_word=$2
7861 echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7863 if test "${ac_cv_prog_NM+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 if test -n "$NM"; then
7867 ac_cv_prog_NM="$NM" # Let the user override the test.
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7887 if test -n "$NM"; then
7888 echo "$as_me:$LINENO: result: $NM" >&5
7889 echo "${ECHO_T}$NM" >&6
7891 echo "$as_me:$LINENO: result: no" >&5
7892 echo "${ECHO_T}no" >&6
7898 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7899 && test -d ../binutils ; then
7900 AR='$(objdir)/../binutils/ar'
7902 # Extract the first word of "ar", so it can be a program name with args.
7903 set dummy ar; ac_word=$2
7904 echo "$as_me:$LINENO: checking for $ac_word" >&5
7905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7906 if test "${ac_cv_prog_AR+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 if test -n "$AR"; then
7910 ac_cv_prog_AR="$AR" # Let the user override the test.
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7930 if test -n "$AR"; then
7931 echo "$as_me:$LINENO: result: $AR" >&5
7932 echo "${ECHO_T}$AR" >&6
7934 echo "$as_me:$LINENO: result: no" >&5
7935 echo "${ECHO_T}no" >&6
7941 # --------------------
7942 # Checks for C headers
7943 # --------------------
7945 echo "$as_me:$LINENO: checking for GNU C library" >&5
7946 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7947 if test "${gcc_cv_glibc+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 cat >conftest.$ac_ext <<_ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 #include <features.h>
7961 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7962 #error Not a GNU C library system
7968 rm -f conftest.$ac_objext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7970 (eval $ac_compile) 2>conftest.er1
7972 grep -v '^ *+' conftest.er1 >conftest.err
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } &&
7977 { ac_try='test -z "$ac_c_werror_flag"
7978 || test ! -s conftest.err'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; } &&
7984 { ac_try='test -s conftest.$ac_objext'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8001 echo "${ECHO_T}$gcc_cv_glibc" >&6
8002 if test $gcc_cv_glibc = yes; then
8004 cat >>confdefs.h <<\_ACEOF
8005 #define _GNU_SOURCE 1
8010 # Need to reject headers which give warnings, so that the -Werror bootstrap
8011 # works later. *sigh* This needs to come before all header checks.
8013 ac_c_preproc_warn_flag=yes
8015 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8017 if test "${ac_cv_header_stdc+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8039 rm -f conftest.$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041 (eval $ac_compile) 2>conftest.er1
8043 grep -v '^ *+' conftest.er1 >conftest.err
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest.$ac_objext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_cv_header_stdc=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_cv_header_stdc=no
8068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070 if test $ac_cv_header_stdc = yes; then
8071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8082 $EGREP "memchr" >/dev/null 2>&1; then
8085 ac_cv_header_stdc=no
8091 if test $ac_cv_header_stdc = yes; then
8092 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8093 cat >conftest.$ac_ext <<_ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8103 $EGREP "free" >/dev/null 2>&1; then
8106 ac_cv_header_stdc=no
8112 if test $ac_cv_header_stdc = yes; then
8113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8114 if test "$cross_compiling" = yes; then
8117 cat >conftest.$ac_ext <<_ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8124 #if ((' ' & 0x0FF) == 0x020)
8125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8128 # define ISLOWER(c) \
8129 (('a' <= (c) && (c) <= 'i') \
8130 || ('j' <= (c) && (c) <= 'r') \
8131 || ('s' <= (c) && (c) <= 'z'))
8132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8140 for (i = 0; i < 256; i++)
8141 if (XOR (islower (i), ISLOWER (i))
8142 || toupper (i) != TOUPPER (i))
8147 rm -f conftest$ac_exeext
8148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8149 (eval $ac_link) 2>&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8160 echo "$as_me: program exited with status $ac_status" >&5
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_cv_header_stdc=no
8167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8171 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8172 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8173 if test $ac_cv_header_stdc = yes; then
8175 cat >>confdefs.h <<\_ACEOF
8176 #define STDC_HEADERS 1
8181 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8182 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8183 if test "${ac_cv_header_time+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 cat >conftest.$ac_ext <<_ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 #include <sys/types.h>
8193 #include <sys/time.h>
8199 if ((struct tm *) 0)
8205 rm -f conftest.$ac_objext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207 (eval $ac_compile) 2>conftest.er1
8209 grep -v '^ *+' conftest.er1 >conftest.err
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag"
8215 || test ! -s conftest.err'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; } &&
8221 { ac_try='test -s conftest.$ac_objext'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227 ac_cv_header_time=yes
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8232 ac_cv_header_time=no
8234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8236 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8237 echo "${ECHO_T}$ac_cv_header_time" >&6
8238 if test $ac_cv_header_time = yes; then
8240 cat >>confdefs.h <<\_ACEOF
8241 #define TIME_WITH_SYS_TIME 1
8246 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8247 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8248 if test "${gcc_cv_header_string+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 cat >conftest.$ac_ext <<_ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8258 #include <strings.h>
8267 rm -f conftest.$ac_objext
8268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8269 (eval $ac_compile) 2>conftest.er1
8271 grep -v '^ *+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -z "$ac_c_werror_flag"
8277 || test ! -s conftest.err'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; } &&
8283 { ac_try='test -s conftest.$ac_objext'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 gcc_cv_header_string=yes
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 gcc_cv_header_string=no
8296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8298 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8299 echo "${ECHO_T}$gcc_cv_header_string" >&6
8300 if test $gcc_cv_header_string = yes; then
8302 cat >>confdefs.h <<\_ACEOF
8303 #define STRING_WITH_STRINGS 1
8308 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8309 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8310 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 cat >conftest.$ac_ext <<_ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <sys/types.h>
8320 #include <sys/wait.h>
8322 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8325 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8333 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8338 rm -f conftest.$ac_objext
8339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8340 (eval $ac_compile) 2>conftest.er1
8342 grep -v '^ *+' conftest.er1 >conftest.err
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } &&
8347 { ac_try='test -z "$ac_c_werror_flag"
8348 || test ! -s conftest.err'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_cv_header_sys_wait_h=yes
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 ac_cv_header_sys_wait_h=no
8367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8370 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8371 if test $ac_cv_header_sys_wait_h = yes; then
8373 cat >>confdefs.h <<\_ACEOF
8374 #define HAVE_SYS_WAIT_H 1
8401 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8402 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8403 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8404 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8407 echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 cat >conftest.$ac_ext <<_ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 #include <$ac_header>
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8423 grep -v '^ *+' conftest.er1 >conftest.err
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } >/dev/null; then
8428 if test -s conftest.err; then
8429 ac_cpp_err=$ac_c_preproc_warn_flag
8430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8437 if test -z "$ac_cpp_err"; then
8438 eval "$as_ac_Header=yes"
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 eval "$as_ac_Header=no"
8445 rm -f conftest.err conftest.$ac_ext
8447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8450 cat >>confdefs.h <<_ACEOF
8451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8458 # Check for thread headers.
8459 echo "$as_me:$LINENO: checking for thread.h" >&5
8460 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8461 if test "${ac_cv_header_thread_h+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8475 grep -v '^ *+' conftest.er1 >conftest.err
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } >/dev/null; then
8480 if test -s conftest.err; then
8481 ac_cpp_err=$ac_c_preproc_warn_flag
8482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8489 if test -z "$ac_cpp_err"; then
8490 ac_cv_header_thread_h=yes
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_cv_header_thread_h=no
8497 rm -f conftest.err conftest.$ac_ext
8499 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8500 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8501 if test $ac_cv_header_thread_h = yes; then
8507 echo "$as_me:$LINENO: checking for pthread.h" >&5
8508 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8509 if test "${ac_cv_header_pthread_h+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 #include <pthread.h>
8520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } >/dev/null; then
8528 if test -s conftest.err; then
8529 ac_cpp_err=$ac_c_preproc_warn_flag
8530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8537 if test -z "$ac_cpp_err"; then
8538 ac_cv_header_pthread_h=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_header_pthread_h=no
8545 rm -f conftest.err conftest.$ac_ext
8547 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8548 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8549 if test $ac_cv_header_pthread_h = yes; then
8556 # These tests can't be done till we know if we have limits.h.
8557 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8558 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8559 if test "${gcc_cv_decl_char_bit+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 #ifdef HAVE_LIMITS_H
8575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8576 $EGREP "found" >/dev/null 2>&1; then
8577 gcc_cv_decl_char_bit=yes
8579 gcc_cv_decl_char_bit=no
8585 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8586 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8587 if test $gcc_cv_decl_char_bit = no; then
8588 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8589 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8590 if test "${gcc_cv_c_nbby+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 while test $i -lt 65; do
8596 cat >conftest.$ac_ext <<_ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8607 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8608 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8614 rm -f conftest.$ac_objext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -z "$ac_c_werror_flag"
8624 || test ! -s conftest.err'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest.$ac_objext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 gcc_cv_c_nbby=$i; break
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8645 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8648 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8649 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8650 if test $gcc_cv_c_nbby = failed; then
8651 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8652 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8653 { (exit 1); exit 1; }; }
8656 cat >>confdefs.h <<_ACEOF
8657 #define CHAR_BIT $gcc_cv_c_nbby
8662 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8663 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8664 if test "${ac_cv_c_bigendian+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 # See if sys/param.h defines the BYTE_ORDER macro.
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <sys/types.h>
8675 #include <sys/param.h>
8680 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8688 rm -f conftest.$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690 (eval $ac_compile) 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 # It does; now see whether it defined to BIG_ENDIAN or not.
8711 cat >conftest.$ac_ext <<_ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 #include <sys/types.h>
8718 #include <sys/param.h>
8723 #if BYTE_ORDER != BIG_ENDIAN
8731 rm -f conftest.$ac_objext
8732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8733 (eval $ac_compile) 2>conftest.er1
8735 grep -v '^ *+' conftest.er1 >conftest.err
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -z "$ac_c_werror_flag"
8741 || test ! -s conftest.err'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; } &&
8747 { ac_try='test -s conftest.$ac_objext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 ac_cv_c_bigendian=yes
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ac_cv_c_bigendian=no
8760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 # It does not; compile a test program.
8766 if test "$cross_compiling" = yes; then
8767 # try to guess the endianness by grepping values into an object file
8768 ac_cv_c_bigendian=unknown
8769 cat >conftest.$ac_ext <<_ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8776 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8777 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8778 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8779 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8780 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8784 _ascii (); _ebcdic ();
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791 (eval $ac_compile) 2>conftest.er1
8793 grep -v '^ *+' conftest.er1 >conftest.err
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag"
8799 || test ! -s conftest.err'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try='test -s conftest.$ac_objext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8812 ac_cv_c_bigendian=yes
8814 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8815 if test "$ac_cv_c_bigendian" = unknown; then
8816 ac_cv_c_bigendian=no
8818 # finding both strings is unlikely to happen, but who knows?
8819 ac_cv_c_bigendian=unknown
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8829 cat >conftest.$ac_ext <<_ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8838 /* Are we little or big endian? From Harbison&Steele. */
8842 char c[sizeof (long)];
8845 exit (u.c[sizeof (long) - 1] == 1);
8848 rm -f conftest$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850 (eval $ac_link) 2>&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 ac_cv_c_bigendian=no
8861 echo "$as_me: program exited with status $ac_status" >&5
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8866 ac_cv_c_bigendian=yes
8868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8873 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8874 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8875 case $ac_cv_c_bigendian in
8878 cat >>confdefs.h <<\_ACEOF
8879 #define WORDS_BIGENDIAN 1
8885 { { echo "$as_me:$LINENO: error: unknown endianness
8886 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8887 echo "$as_me: error: unknown endianness
8888 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8889 { (exit 1); exit 1; }; } ;;
8898 # These libraries may be used by collect2.
8899 # We may need a special search path to get them linked.
8900 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8901 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8902 if test "${gcc_cv_collect2_libs+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 for libs in '' -lld -lmld \
8907 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8908 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8918 /* Override any gcc2 internal prototype to avoid an error. */
8922 /* We use char because int might match the return type of a gcc2
8923 builtin and then its argument prototype would still apply. */
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935 (eval $ac_link) 2>conftest.er1
8937 grep -v '^ *+' conftest.er1 >conftest.err
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag"
8943 || test ! -s conftest.err'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; } &&
8949 { ac_try='test -s conftest$ac_exeext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 gcc_cv_collect2_libs="$libs"; break
8957 echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8961 rm -f conftest.err conftest.$ac_objext \
8962 conftest$ac_exeext conftest.$ac_ext
8965 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8967 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8968 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8969 case $gcc_cv_collect2_libs in
8971 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8975 # When building Ada code on Alpha, we need exc_resume which is usually in
8976 # -lexc. So test for it.
8979 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8980 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8981 if test "${ac_cv_search_exc_resume+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 ac_func_search_save_LIBS=$LIBS
8985 ac_cv_search_exc_resume=no
8986 cat >conftest.$ac_ext <<_ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8993 /* Override any gcc2 internal prototype to avoid an error. */
8997 /* We use char because int might match the return type of a gcc2
8998 builtin and then its argument prototype would still apply. */
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9010 (eval $ac_link) 2>conftest.er1
9012 grep -v '^ *+' conftest.er1 >conftest.err
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -z "$ac_c_werror_flag"
9018 || test ! -s conftest.err'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; } &&
9024 { ac_try='test -s conftest$ac_exeext'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 ac_cv_search_exc_resume="none required"
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9036 rm -f conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9038 if test "$ac_cv_search_exc_resume" = no; then
9039 for ac_lib in exc; do
9040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9041 cat >conftest.$ac_ext <<_ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9048 /* Override any gcc2 internal prototype to avoid an error. */
9052 /* We use char because int might match the return type of a gcc2
9053 builtin and then its argument prototype would still apply. */
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065 (eval $ac_link) 2>conftest.er1
9067 grep -v '^ *+' conftest.er1 >conftest.err
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest$ac_exeext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_cv_search_exc_resume="-l$ac_lib"
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9092 rm -f conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9096 LIBS=$ac_func_search_save_LIBS
9098 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9099 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9100 if test "$ac_cv_search_exc_resume" != no; then
9101 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9109 # Some systems put ldexp and frexp in libm instead of libc; assume
9110 # they're both in the same place. jcf-dump needs them.
9113 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9114 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9115 if test "${ac_cv_search_ldexp+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 ac_func_search_save_LIBS=$LIBS
9119 ac_cv_search_ldexp=no
9120 cat >conftest.$ac_ext <<_ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9127 /* Override any gcc2 internal prototype to avoid an error. */
9131 /* We use char because int might match the return type of a gcc2
9132 builtin and then its argument prototype would still apply. */
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>conftest.er1
9146 grep -v '^ *+' conftest.er1 >conftest.err
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try='test -z "$ac_c_werror_flag"
9152 || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 ac_cv_search_ldexp="none required"
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9170 rm -f conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
9172 if test "$ac_cv_search_ldexp" = no; then
9174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9175 cat >conftest.$ac_ext <<_ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9182 /* Override any gcc2 internal prototype to avoid an error. */
9186 /* We use char because int might match the return type of a gcc2
9187 builtin and then its argument prototype would still apply. */
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199 (eval $ac_link) 2>conftest.er1
9201 grep -v '^ *+' conftest.er1 >conftest.err
9203 cat conftest.err >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } &&
9206 { ac_try='test -z "$ac_c_werror_flag"
9207 || test ! -s conftest.err'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; } &&
9213 { ac_try='test -s conftest$ac_exeext'
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 ac_cv_search_ldexp="-l$ac_lib"
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9226 rm -f conftest.err conftest.$ac_objext \
9227 conftest$ac_exeext conftest.$ac_ext
9230 LIBS=$ac_func_search_save_LIBS
9232 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9233 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9234 if test "$ac_cv_search_ldexp" != no; then
9235 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9243 # Use <inttypes.h> only if it exists,
9244 # doesn't clash with <sys/types.h>, and declares intmax_t.
9245 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9246 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9247 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 #include <sys/types.h>
9257 #include <inttypes.h>
9266 rm -f conftest.$ac_objext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9268 (eval $ac_compile) 2>conftest.er1
9270 grep -v '^ *+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest.$ac_objext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 gcc_cv_header_inttypes_h=yes
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9293 gcc_cv_header_inttypes_h=no
9295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9299 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9300 if test $gcc_cv_header_inttypes_h = yes; then
9302 cat >>confdefs.h <<\_ACEOF
9303 #define HAVE_INTTYPES_H 1
9345 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9346 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9347 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9348 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
9350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9351 echo "$as_me:$LINENO: checking for $ac_func" >&5
9352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9353 if eval "test \"\${$as_ac_var+set}\" = set"; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9364 #define $ac_func innocuous_$ac_func
9366 /* System header to define __stub macros and hopefully few prototypes,
9367 which can conflict with char $ac_func (); below.
9368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9369 <limits.h> exists even on freestanding compilers. */
9372 # include <limits.h>
9374 # include <assert.h>
9379 /* Override any gcc2 internal prototype to avoid an error. */
9384 /* We use char because int might match the return type of a gcc2
9385 builtin and then its argument prototype would still apply. */
9387 /* The GNU C library defines this for functions which it implements
9388 to always fail with ENOSYS. Some functions are actually named
9389 something starting with __ and the normal name is an alias. */
9390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9393 char (*f) () = $ac_func;
9402 return f != $ac_func;
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>conftest.er1
9411 grep -v '^ *+' conftest.er1 >conftest.err
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -z "$ac_c_werror_flag"
9417 || test ! -s conftest.err'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; } &&
9423 { ac_try='test -s conftest$ac_exeext'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9429 eval "$as_ac_var=yes"
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9434 eval "$as_ac_var=no"
9436 rm -f conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9441 if test `eval echo '${'$as_ac_var'}'` = yes; then
9442 cat >>confdefs.h <<_ACEOF
9443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9450 if test x$ac_cv_func_mbstowcs = xyes; then
9451 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9452 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9453 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 if test "$cross_compiling" = yes; then
9457 gcc_cv_func_mbstowcs_works=yes
9459 cat >conftest.$ac_ext <<_ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9472 rm -f conftest$ac_exeext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474 (eval $ac_link) 2>&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9483 gcc_cv_func_mbstowcs_works=yes
9485 echo "$as_me: program exited with status $ac_status" >&5
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9490 gcc_cv_func_mbstowcs_works=no
9492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9495 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9496 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9497 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9499 cat >>confdefs.h <<\_ACEOF
9500 #define HAVE_WORKING_MBSTOWCS 1
9506 echo "$as_me:$LINENO: checking for ssize_t" >&5
9507 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9508 if test "${ac_cv_type_ssize_t+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 cat >conftest.$ac_ext <<_ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9517 $ac_includes_default
9523 if (sizeof (ssize_t))
9529 rm -f conftest.$ac_objext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9531 (eval $ac_compile) 2>conftest.er1
9533 grep -v '^ *+' conftest.er1 >conftest.err
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } &&
9538 { ac_try='test -z "$ac_c_werror_flag"
9539 || test ! -s conftest.err'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; } &&
9545 { ac_try='test -s conftest.$ac_objext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_cv_type_ssize_t=yes
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_cv_type_ssize_t=no
9558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9560 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9561 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9562 if test $ac_cv_type_ssize_t = yes; then
9566 cat >>confdefs.h <<_ACEOF
9573 # Try to determine the array type of the second argument of getgroups
9574 # for the target system (int or gid_t).
9575 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9576 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9577 if test "${ac_cv_type_uid_t+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 #include <sys/types.h>
9589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9590 $EGREP "uid_t" >/dev/null 2>&1; then
9591 ac_cv_type_uid_t=yes
9598 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9599 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9600 if test $ac_cv_type_uid_t = no; then
9602 cat >>confdefs.h <<\_ACEOF
9607 cat >>confdefs.h <<\_ACEOF
9613 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9614 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9615 if test "${ac_cv_type_getgroups+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 if test "$cross_compiling" = yes; then
9619 ac_cv_type_getgroups=cross
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 /* Thanks to Mike Rendell for this test. */
9628 #include <sys/types.h>
9631 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9638 union { gid_t gval; long lval; } val;
9641 for (i = 0; i < NGID; i++)
9642 gidset[i] = val.gval;
9643 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9645 /* Exit non-zero if getgroups seems to require an array of ints. This
9646 happens when gid_t is short but getgroups modifies an array of ints. */
9647 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9650 rm -f conftest$ac_exeext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; }; then
9661 ac_cv_type_getgroups=gid_t
9663 echo "$as_me: program exited with status $ac_status" >&5
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9668 ac_cv_type_getgroups=int
9670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9672 if test $ac_cv_type_getgroups = cross; then
9673 cat >conftest.$ac_ext <<_ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9683 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9684 ac_cv_type_getgroups=gid_t
9686 ac_cv_type_getgroups=int
9692 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9693 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9695 cat >>confdefs.h <<_ACEOF
9696 #define GETGROUPS_T $ac_cv_type_getgroups
9700 if test "${target}" = "${build}"; then
9701 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9704 # This condition may need some tweaking. It should include all
9705 # targets where the array type of the second argument of getgroups
9706 # is int and the type of gid_t is not equivalent to int.
9707 *-*-sunos* | *-*-ultrix*)
9708 TARGET_GETGROUPS_T=int
9711 TARGET_GETGROUPS_T=gid_t
9718 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9719 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9720 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 cat >conftest.$ac_ext <<_ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 #include <sys/mman.h>
9731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9734 grep -v '^ *+' conftest.er1 >conftest.err
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } >/dev/null; then
9739 if test -s conftest.err; then
9740 ac_cpp_err=$ac_c_preproc_warn_flag
9741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9748 if test -z "$ac_cpp_err"; then
9749 ac_cv_header_sys_mman_h=yes
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9754 ac_cv_header_sys_mman_h=no
9756 rm -f conftest.err conftest.$ac_ext
9758 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9759 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9760 if test $ac_cv_header_sys_mman_h = yes; then
9761 gcc_header_sys_mman_h=yes
9763 gcc_header_sys_mman_h=no
9766 echo "$as_me:$LINENO: checking for mmap" >&5
9767 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9768 if test "${ac_cv_func_mmap+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 cat >conftest.$ac_ext <<_ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9777 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9779 #define mmap innocuous_mmap
9781 /* System header to define __stub macros and hopefully few prototypes,
9782 which can conflict with char mmap (); below.
9783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784 <limits.h> exists even on freestanding compilers. */
9787 # include <limits.h>
9789 # include <assert.h>
9794 /* Override any gcc2 internal prototype to avoid an error. */
9799 /* We use char because int might match the return type of a gcc2
9800 builtin and then its argument prototype would still apply. */
9802 /* The GNU C library defines this for functions which it implements
9803 to always fail with ENOSYS. Some functions are actually named
9804 something starting with __ and the normal name is an alias. */
9805 #if defined (__stub_mmap) || defined (__stub___mmap)
9808 char (*f) () = mmap;
9822 rm -f conftest.$ac_objext conftest$ac_exeext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824 (eval $ac_link) 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag"
9832 || test ! -s conftest.err'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; } &&
9838 { ac_try='test -s conftest$ac_exeext'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; }; then
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9851 rm -f conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9854 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9855 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9856 if test $ac_cv_func_mmap = yes; then
9862 if test "$gcc_header_sys_mman_h" != yes \
9863 || test "$gcc_func_mmap" != yes; then
9864 gcc_cv_func_mmap_file=no
9865 gcc_cv_func_mmap_dev_zero=no
9866 gcc_cv_func_mmap_anon=no
9868 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9869 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9870 if test "${gcc_cv_func_mmap_file+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 # Add a system to this blacklist if
9874 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9875 # memory area containing the same data that you'd get if you applied
9876 # read() to the same fd. The only system known to have a problem here
9877 # is VMS, where text files have record structure.
9880 gcc_cv_func_mmap_file=no ;;
9882 gcc_cv_func_mmap_file=yes;;
9885 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9886 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9887 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9888 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9889 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 # Add a system to this blacklist if it has mmap() but /dev/zero
9893 # does not exist, or if mmapping /dev/zero does not give anonymous
9894 # zeroed pages with both the following properties:
9895 # 1. If you map N consecutive pages in with one call, and then
9896 # unmap any subset of those pages, the pages that were not
9897 # explicitly unmapped remain accessible.
9898 # 2. If you map two adjacent blocks of memory and then unmap them
9899 # both at once, they must both go away.
9900 # Systems known to be in this category are Windows (all variants),
9903 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9904 gcc_cv_func_mmap_dev_zero=no ;;
9906 gcc_cv_func_mmap_dev_zero=yes;;
9909 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9910 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9912 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9913 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9914 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9915 if test "${gcc_cv_decl_map_anon+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 cat >conftest.$ac_ext <<_ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 #include <sys/types.h>
9925 #include <sys/mman.h>
9928 #ifndef MAP_ANONYMOUS
9929 #define MAP_ANONYMOUS MAP_ANON
9935 int n = MAP_ANONYMOUS;
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>conftest.er1
9944 grep -v '^ *+' conftest.er1 >conftest.err
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 gcc_cv_decl_map_anon=yes
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 gcc_cv_decl_map_anon=no
9969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9971 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9972 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9974 if test $gcc_cv_decl_map_anon = no; then
9975 gcc_cv_func_mmap_anon=no
9977 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9978 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9979 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9983 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9984 # doesn't give anonymous zeroed pages with the same properties listed
9985 # above for use of /dev/zero.
9986 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9988 vms* | cygwin* | pe | mingw* | sco* | udk* )
9989 gcc_cv_func_mmap_anon=no ;;
9991 gcc_cv_func_mmap_anon=yes;;
9994 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9995 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9999 if test $gcc_cv_func_mmap_file = yes; then
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_MMAP_FILE 1
10006 if test $gcc_cv_func_mmap_dev_zero = yes; then
10008 cat >>confdefs.h <<\_ACEOF
10009 #define HAVE_MMAP_DEV_ZERO 1
10013 if test $gcc_cv_func_mmap_anon = yes; then
10015 cat >>confdefs.h <<\_ACEOF
10016 #define HAVE_MMAP_ANON 1
10024 # Under VMS, vfork works very differently than on Unix. The standard test
10025 # won't work, and it isn't easily adaptable. It makes more sense to
10027 ac_cv_func_vfork_works=yes
10030 echo "$as_me:$LINENO: checking for pid_t" >&5
10031 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10032 if test "${ac_cv_type_pid_t+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 $ac_includes_default
10047 if (sizeof (pid_t))
10053 rm -f conftest.$ac_objext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>conftest.er1
10057 grep -v '^ *+' conftest.er1 >conftest.err
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -z "$ac_c_werror_flag"
10063 || test ! -s conftest.err'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; } &&
10069 { ac_try='test -s conftest.$ac_objext'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; }; then
10075 ac_cv_type_pid_t=yes
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_cv_type_pid_t=no
10082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10084 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10085 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10086 if test $ac_cv_type_pid_t = yes; then
10090 cat >>confdefs.h <<_ACEOF
10098 for ac_header in unistd.h vfork.h
10100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10101 echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 cat >conftest.$ac_ext <<_ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 #include <$ac_header>
10114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10117 grep -v '^ *+' conftest.er1 >conftest.err
10119 cat conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } >/dev/null; then
10122 if test -s conftest.err; then
10123 ac_cpp_err=$ac_c_preproc_warn_flag
10124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10131 if test -z "$ac_cpp_err"; then
10132 eval "$as_ac_Header=yes"
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 eval "$as_ac_Header=no"
10139 rm -f conftest.err conftest.$ac_ext
10141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10144 cat >>confdefs.h <<_ACEOF
10145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10153 for ac_func in fork vfork
10155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10156 echo "$as_me:$LINENO: checking for $ac_func" >&5
10157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10158 if eval "test \"\${$as_ac_var+set}\" = set"; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 cat >conftest.$ac_ext <<_ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10169 #define $ac_func innocuous_$ac_func
10171 /* System header to define __stub macros and hopefully few prototypes,
10172 which can conflict with char $ac_func (); below.
10173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10174 <limits.h> exists even on freestanding compilers. */
10177 # include <limits.h>
10179 # include <assert.h>
10184 /* Override any gcc2 internal prototype to avoid an error. */
10189 /* We use char because int might match the return type of a gcc2
10190 builtin and then its argument prototype would still apply. */
10192 /* The GNU C library defines this for functions which it implements
10193 to always fail with ENOSYS. Some functions are actually named
10194 something starting with __ and the normal name is an alias. */
10195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10198 char (*f) () = $ac_func;
10207 return f != $ac_func;
10212 rm -f conftest.$ac_objext conftest$ac_exeext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214 (eval $ac_link) 2>conftest.er1
10216 grep -v '^ *+' conftest.er1 >conftest.err
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -z "$ac_c_werror_flag"
10222 || test ! -s conftest.err'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest$ac_exeext'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10234 eval "$as_ac_var=yes"
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10239 eval "$as_ac_var=no"
10241 rm -f conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10246 if test `eval echo '${'$as_ac_var'}'` = yes; then
10247 cat >>confdefs.h <<_ACEOF
10248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10254 if test "x$ac_cv_func_fork" = xyes; then
10255 echo "$as_me:$LINENO: checking for working fork" >&5
10256 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10257 if test "${ac_cv_func_fork_works+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 if test "$cross_compiling" = yes; then
10261 ac_cv_func_fork_works=cross
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* By Ruediger Kuhlmann. */
10265 #include <sys/types.h>
10267 # include <unistd.h>
10269 /* Some systems only have a dummy stub for fork() */
10277 rm -f conftest$ac_exeext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279 (eval $ac_link) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 ac_cv_func_fork_works=yes
10290 echo "$as_me: program exited with status $ac_status" >&5
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ( exit $ac_status )
10295 ac_cv_func_fork_works=no
10297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10300 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10301 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10304 ac_cv_func_fork_works=$ac_cv_func_fork
10306 if test "x$ac_cv_func_fork_works" = xcross; then
10308 *-*-amigaos* | *-*-msdosdjgpp*)
10309 # Override, as these systems have only a dummy fork() stub
10310 ac_cv_func_fork_works=no
10313 ac_cv_func_fork_works=yes
10316 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10317 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10319 ac_cv_func_vfork_works=$ac_cv_func_vfork
10320 if test "x$ac_cv_func_vfork" = xyes; then
10321 echo "$as_me:$LINENO: checking for working vfork" >&5
10322 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10323 if test "${ac_cv_func_vfork_works+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 if test "$cross_compiling" = yes; then
10327 ac_cv_func_vfork_works=cross
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 /* Thanks to Paul Eggert for this test. */
10337 #include <stdlib.h>
10338 #include <sys/types.h>
10339 #include <sys/stat.h>
10340 #include <sys/wait.h>
10342 # include <unistd.h>
10345 # include <vfork.h>
10347 /* On some sparc systems, changes by the child to local and incoming
10348 argument registers are propagated back to the parent. The compiler
10349 is told about this with #include <vfork.h>, but some compilers
10350 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10351 static variable whose address is put into a register that is
10352 clobbered by the vfork. */
10355 sparc_address_test (int arg)
10357 sparc_address_test (arg) int arg;
10360 static pid_t child;
10378 pid_t parent = getpid ();
10381 sparc_address_test (0);
10386 /* Here is another test for sparc vfork register problems. This
10387 test uses lots of local variables, at least as many local
10388 variables as main has allocated so far including compiler
10389 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10390 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10391 reuse the register of parent for one of the local variables,
10392 since it will think that parent can't possibly be used any more
10393 in this routine. Assigning to the local variable will thus
10394 munge parent in the parent process. */
10396 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10397 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10398 /* Convince the compiler that p..p7 are live; otherwise, it might
10399 use the same hardware register for all 8 local variables. */
10400 if (p != p1 || p != p2 || p != p3 || p != p4
10401 || p != p5 || p != p6 || p != p7)
10404 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10405 from child file descriptors. If the child closes a descriptor
10406 before it execs or exits, this munges the parent's descriptor
10407 as well. Test for this by closing stdout in the child. */
10408 _exit(close(fileno(stdout)) != 0);
10413 while (wait(&status) != child)
10416 /* Was there some problem with vforking? */
10419 /* Did the child fail? (This shouldn't happen.) */
10422 /* Did the vfork/compiler bug occur? */
10423 || parent != getpid()
10425 /* Did the file descriptor bug occur? */
10426 || fstat(fileno(stdout), &st) != 0
10431 rm -f conftest$ac_exeext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 ac_cv_func_vfork_works=yes
10444 echo "$as_me: program exited with status $ac_status" >&5
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10448 ( exit $ac_status )
10449 ac_cv_func_vfork_works=no
10451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10454 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10455 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10458 if test "x$ac_cv_func_fork_works" = xcross; then
10459 ac_cv_func_vfork_works=$ac_cv_func_vfork
10460 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10461 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10464 if test "x$ac_cv_func_vfork_works" = xyes; then
10466 cat >>confdefs.h <<\_ACEOF
10467 #define HAVE_WORKING_VFORK 1
10472 cat >>confdefs.h <<\_ACEOF
10477 if test "x$ac_cv_func_fork_works" = xyes; then
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_WORKING_FORK 1
10487 if test "X$prefix" = "XNONE"; then
10488 acl_final_prefix="$ac_default_prefix"
10490 acl_final_prefix="$prefix"
10492 if test "X$exec_prefix" = "XNONE"; then
10493 acl_final_exec_prefix='${prefix}'
10495 acl_final_exec_prefix="$exec_prefix"
10497 acl_save_prefix="$prefix"
10498 prefix="$acl_final_prefix"
10499 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10500 prefix="$acl_save_prefix"
10503 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10504 if test "${with_gnu_ld+set}" = set; then
10505 withval="$with_gnu_ld"
10506 test "$withval" = no || with_gnu_ld=yes
10510 # Prepare PATH_SEPARATOR.
10511 # The user is always right.
10512 if test "${PATH_SEPARATOR+set}" != set; then
10513 echo "#! /bin/sh" >conf$$.sh
10514 echo "exit 0" >>conf$$.sh
10516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10524 if test "$GCC" = yes; then
10525 # Check if gcc -print-prog-name=ld gives a path.
10526 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10527 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10530 # gcc leaves a trailing carriage return which upsets mingw
10531 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10533 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10536 # Accept absolute paths.
10537 [\\/]* | [A-Za-z]:[\\/]*)
10538 re_direlt='/[^/][^/]*/\.\./'
10539 # Canonicalize the path of ld
10540 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10541 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10542 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10544 test -z "$LD" && LD="$ac_prog"
10547 # If it fails, then pretend we aren't using GCC.
10551 # If it is relative, then search for the first ld in PATH.
10552 with_gnu_ld=unknown
10555 elif test "$with_gnu_ld" = yes; then
10556 echo "$as_me:$LINENO: checking for GNU ld" >&5
10557 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10559 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10560 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10562 if test "${acl_cv_path_LD+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 if test -z "$LD"; then
10566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10567 for ac_dir in $PATH; do
10568 test -z "$ac_dir" && ac_dir=.
10569 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10570 acl_cv_path_LD="$ac_dir/$ac_prog"
10571 # Check to see if the program is GNU ld. I'd rather use --version,
10572 # but apparently some GNU ld's only accept -v.
10573 # Break only if it was the GNU/non-GNU ld that we prefer.
10574 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10575 test "$with_gnu_ld" != no && break
10577 test "$with_gnu_ld" != yes && break
10583 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10587 LD="$acl_cv_path_LD"
10588 if test -n "$LD"; then
10589 echo "$as_me:$LINENO: result: $LD" >&5
10590 echo "${ECHO_T}$LD" >&6
10592 echo "$as_me:$LINENO: result: no" >&5
10593 echo "${ECHO_T}no" >&6
10595 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10596 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10597 { (exit 1); exit 1; }; }
10598 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10599 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10600 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10604 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10605 acl_cv_prog_gnu_ld=yes
10607 acl_cv_prog_gnu_ld=no
10610 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10611 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10612 with_gnu_ld=$acl_cv_prog_gnu_ld
10616 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10617 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10618 if test "${acl_cv_rpath+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10623 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10625 rm -f ./conftest.sh
10629 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10630 echo "${ECHO_T}$acl_cv_rpath" >&6
10632 libext="$acl_cv_libext"
10633 shlibext="$acl_cv_shlibext"
10634 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10635 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10636 hardcode_direct="$acl_cv_hardcode_direct"
10637 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10638 # Check whether --enable-rpath or --disable-rpath was given.
10639 if test "${enable_rpath+set}" = set; then
10640 enableval="$enable_rpath"
10654 acl_save_prefix="$prefix"
10655 prefix="$acl_final_prefix"
10656 acl_save_exec_prefix="$exec_prefix"
10657 exec_prefix="$acl_final_exec_prefix"
10659 eval additional_includedir=\"$includedir\"
10660 eval additional_libdir=\"$libdir\"
10662 exec_prefix="$acl_save_exec_prefix"
10663 prefix="$acl_save_prefix"
10666 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10667 if test "${with_libiconv_prefix+set}" = set; then
10668 withval="$with_libiconv_prefix"
10670 if test "X$withval" = "Xno"; then
10673 if test "X$withval" = "X"; then
10675 acl_save_prefix="$prefix"
10676 prefix="$acl_final_prefix"
10677 acl_save_exec_prefix="$exec_prefix"
10678 exec_prefix="$acl_final_exec_prefix"
10680 eval additional_includedir=\"$includedir\"
10681 eval additional_libdir=\"$libdir\"
10683 exec_prefix="$acl_save_exec_prefix"
10684 prefix="$acl_save_prefix"
10687 additional_includedir="$withval/include"
10688 additional_libdir="$withval/lib"
10698 names_already_handled=
10699 names_next_round='iconv '
10700 while test -n "$names_next_round"; do
10701 names_this_round="$names_next_round"
10703 for name in $names_this_round; do
10705 for n in $names_already_handled; do
10706 if test "$n" = "$name"; then
10707 already_handled=yes
10711 if test -z "$already_handled"; then
10712 names_already_handled="$names_already_handled $name"
10713 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10714 eval value=\"\$HAVE_LIB$uppername\"
10715 if test -n "$value"; then
10716 if test "$value" = yes; then
10717 eval value=\"\$LIB$uppername\"
10718 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10719 eval value=\"\$LTLIB$uppername\"
10720 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10729 if test $use_additional = yes; then
10730 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10731 found_dir="$additional_libdir"
10732 found_so="$additional_libdir/lib$name.$shlibext"
10733 if test -f "$additional_libdir/lib$name.la"; then
10734 found_la="$additional_libdir/lib$name.la"
10737 if test -f "$additional_libdir/lib$name.$libext"; then
10738 found_dir="$additional_libdir"
10739 found_a="$additional_libdir/lib$name.$libext"
10740 if test -f "$additional_libdir/lib$name.la"; then
10741 found_la="$additional_libdir/lib$name.la"
10746 if test "X$found_dir" = "X"; then
10747 for x in $LDFLAGS $LTLIBICONV; do
10749 acl_save_prefix="$prefix"
10750 prefix="$acl_final_prefix"
10751 acl_save_exec_prefix="$exec_prefix"
10752 exec_prefix="$acl_final_exec_prefix"
10754 exec_prefix="$acl_save_exec_prefix"
10755 prefix="$acl_save_prefix"
10759 dir=`echo "X$x" | sed -e 's/^X-L//'`
10760 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10762 found_so="$dir/lib$name.$shlibext"
10763 if test -f "$dir/lib$name.la"; then
10764 found_la="$dir/lib$name.la"
10767 if test -f "$dir/lib$name.$libext"; then
10769 found_a="$dir/lib$name.$libext"
10770 if test -f "$dir/lib$name.la"; then
10771 found_la="$dir/lib$name.la"
10777 if test "X$found_dir" != "X"; then
10782 if test "X$found_dir" != "X"; then
10783 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10784 if test "X$found_so" != "X"; then
10785 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10786 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10789 for x in $ltrpathdirs; do
10790 if test "X$x" = "X$found_dir"; then
10795 if test -z "$haveit"; then
10796 ltrpathdirs="$ltrpathdirs $found_dir"
10798 if test "$hardcode_direct" = yes; then
10799 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10801 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10804 for x in $rpathdirs; do
10805 if test "X$x" = "X$found_dir"; then
10810 if test -z "$haveit"; then
10811 rpathdirs="$rpathdirs $found_dir"
10815 for x in $LDFLAGS $LIBICONV; do
10817 acl_save_prefix="$prefix"
10818 prefix="$acl_final_prefix"
10819 acl_save_exec_prefix="$exec_prefix"
10820 exec_prefix="$acl_final_exec_prefix"
10822 exec_prefix="$acl_save_exec_prefix"
10823 prefix="$acl_save_prefix"
10825 if test "X$x" = "X-L$found_dir"; then
10830 if test -z "$haveit"; then
10831 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10833 if test "$hardcode_minus_L" != no; then
10834 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10836 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10842 if test "X$found_a" != "X"; then
10843 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10845 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10848 additional_includedir=
10849 case "$found_dir" in
10851 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10852 additional_includedir="$basedir/include"
10855 if test "X$additional_includedir" != "X"; then
10856 if test "X$additional_includedir" != "X/usr/include"; then
10858 if test "X$additional_includedir" = "X/usr/local/include"; then
10859 if test -n "$GCC"; then
10861 linux*) haveit=yes;;
10865 if test -z "$haveit"; then
10866 for x in $CPPFLAGS $INCICONV; do
10868 acl_save_prefix="$prefix"
10869 prefix="$acl_final_prefix"
10870 acl_save_exec_prefix="$exec_prefix"
10871 exec_prefix="$acl_final_exec_prefix"
10873 exec_prefix="$acl_save_exec_prefix"
10874 prefix="$acl_save_prefix"
10876 if test "X$x" = "X-I$additional_includedir"; then
10881 if test -z "$haveit"; then
10882 if test -d "$additional_includedir"; then
10883 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10889 if test -n "$found_la"; then
10890 save_libdir="$libdir"
10891 case "$found_la" in
10892 */* | *\\*) . "$found_la" ;;
10893 *) . "./$found_la" ;;
10895 libdir="$save_libdir"
10896 for dep in $dependency_libs; do
10899 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10900 if test "X$additional_libdir" != "X/usr/lib"; then
10902 if test "X$additional_libdir" = "X/usr/local/lib"; then
10903 if test -n "$GCC"; then
10905 linux*) haveit=yes;;
10909 if test -z "$haveit"; then
10911 for x in $LDFLAGS $LIBICONV; do
10913 acl_save_prefix="$prefix"
10914 prefix="$acl_final_prefix"
10915 acl_save_exec_prefix="$exec_prefix"
10916 exec_prefix="$acl_final_exec_prefix"
10918 exec_prefix="$acl_save_exec_prefix"
10919 prefix="$acl_save_prefix"
10921 if test "X$x" = "X-L$additional_libdir"; then
10926 if test -z "$haveit"; then
10927 if test -d "$additional_libdir"; then
10928 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10932 for x in $LDFLAGS $LTLIBICONV; do
10934 acl_save_prefix="$prefix"
10935 prefix="$acl_final_prefix"
10936 acl_save_exec_prefix="$exec_prefix"
10937 exec_prefix="$acl_final_exec_prefix"
10939 exec_prefix="$acl_save_exec_prefix"
10940 prefix="$acl_save_prefix"
10942 if test "X$x" = "X-L$additional_libdir"; then
10947 if test -z "$haveit"; then
10948 if test -d "$additional_libdir"; then
10949 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10956 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10957 if test "$enable_rpath" != no; then
10959 for x in $rpathdirs; do
10960 if test "X$x" = "X$dir"; then
10965 if test -z "$haveit"; then
10966 rpathdirs="$rpathdirs $dir"
10969 for x in $ltrpathdirs; do
10970 if test "X$x" = "X$dir"; then
10975 if test -z "$haveit"; then
10976 ltrpathdirs="$ltrpathdirs $dir"
10981 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10984 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10987 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10988 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10994 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10995 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11001 if test "X$rpathdirs" != "X"; then
11002 if test -n "$hardcode_libdir_separator"; then
11004 for found_dir in $rpathdirs; do
11005 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11007 acl_save_libdir="$libdir"
11009 eval flag=\"$hardcode_libdir_flag_spec\"
11010 libdir="$acl_save_libdir"
11011 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11013 for found_dir in $rpathdirs; do
11014 acl_save_libdir="$libdir"
11015 libdir="$found_dir"
11016 eval flag=\"$hardcode_libdir_flag_spec\"
11017 libdir="$acl_save_libdir"
11018 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11022 if test "X$ltrpathdirs" != "X"; then
11023 for found_dir in $ltrpathdirs; do
11024 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11034 am_save_CPPFLAGS="$CPPFLAGS"
11036 for element in $INCICONV; do
11038 for x in $CPPFLAGS; do
11040 acl_save_prefix="$prefix"
11041 prefix="$acl_final_prefix"
11042 acl_save_exec_prefix="$exec_prefix"
11043 exec_prefix="$acl_final_exec_prefix"
11045 exec_prefix="$acl_save_exec_prefix"
11046 prefix="$acl_save_prefix"
11048 if test "X$x" = "X$element"; then
11053 if test -z "$haveit"; then
11054 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11059 echo "$as_me:$LINENO: checking for iconv" >&5
11060 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11061 if test "${am_cv_func_iconv+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 am_cv_func_iconv="no, consider installing GNU libiconv"
11067 cat >conftest.$ac_ext <<_ACEOF
11070 cat confdefs.h >>conftest.$ac_ext
11071 cat >>conftest.$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11073 #include <stdlib.h>
11078 iconv_t cd = iconv_open("","");
11079 iconv(cd,NULL,NULL,NULL,NULL);
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087 (eval $ac_link) 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag"
11095 || test ! -s conftest.err'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try='test -s conftest$ac_exeext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 am_cv_func_iconv=yes
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11113 rm -f conftest.err conftest.$ac_objext \
11114 conftest$ac_exeext conftest.$ac_ext
11115 if test "$am_cv_func_iconv" != yes; then
11116 am_save_LIBS="$LIBS"
11117 LIBS="$LIBS $LIBICONV"
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 #include <stdlib.h>
11129 iconv_t cd = iconv_open("","");
11130 iconv(cd,NULL,NULL,NULL,NULL);
11136 rm -f conftest.$ac_objext conftest$ac_exeext
11137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138 (eval $ac_link) 2>conftest.er1
11140 grep -v '^ *+' conftest.er1 >conftest.err
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -z "$ac_c_werror_flag"
11146 || test ! -s conftest.err'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; } &&
11152 { ac_try='test -s conftest$ac_exeext'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 am_cv_lib_iconv=yes
11159 am_cv_func_iconv=yes
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11165 rm -f conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167 LIBS="$am_save_LIBS"
11171 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11172 echo "${ECHO_T}$am_cv_func_iconv" >&6
11173 if test "$am_cv_func_iconv" = yes; then
11175 cat >>confdefs.h <<\_ACEOF
11176 #define HAVE_ICONV 1
11180 if test "$am_cv_lib_iconv" = yes; then
11181 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11182 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11183 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11184 echo "${ECHO_T}$LIBICONV" >&6
11186 CPPFLAGS="$am_save_CPPFLAGS"
11193 if test "$am_cv_func_iconv" = yes; then
11194 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11195 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11196 if test "${am_cv_proto_iconv+set}" = set; then
11197 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. */
11207 #include <stdlib.h>
11213 #if defined(__STDC__) || defined(__cplusplus)
11214 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11227 rm -f conftest.$ac_objext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229 (eval $ac_compile) 2>conftest.er1
11231 grep -v '^ *+' conftest.er1 >conftest.err
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag"
11237 || test ! -s conftest.err'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 am_cv_proto_iconv_arg1=""
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 am_cv_proto_iconv_arg1="const"
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257 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);"
11260 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11261 echo "$as_me:$LINENO: result: ${ac_t:-
11262 }$am_cv_proto_iconv" >&5
11263 echo "${ECHO_T}${ac_t:-
11264 }$am_cv_proto_iconv" >&6
11266 cat >>confdefs.h <<_ACEOF
11267 #define ICONV_CONST $am_cv_proto_iconv_arg1
11272 # Until we have in-tree GNU iconv:
11277 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11278 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11279 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 cat >conftest.$ac_ext <<_ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 #include <locale.h>
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>conftest.er1
11301 grep -v '^ *+' conftest.er1 >conftest.err
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag"
11307 || test ! -s conftest.err'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest$ac_exeext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 am_cv_val_LC_MESSAGES=yes
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 am_cv_val_LC_MESSAGES=no
11326 rm -f conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11329 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11330 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11331 if test $am_cv_val_LC_MESSAGES = yes; then
11333 cat >>confdefs.h <<\_ACEOF
11334 #define HAVE_LC_MESSAGES 1
11341 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11342 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11343 if test "${am_cv_langinfo_codeset+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 cat >conftest.$ac_ext <<_ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 #include <langinfo.h>
11356 char* cs = nl_langinfo(CODESET);
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11363 (eval $ac_link) 2>conftest.er1
11365 grep -v '^ *+' conftest.er1 >conftest.err
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -z "$ac_c_werror_flag"
11371 || test ! -s conftest.err'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; } &&
11377 { ac_try='test -s conftest$ac_exeext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 am_cv_langinfo_codeset=yes
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 am_cv_langinfo_codeset=no
11390 rm -f conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext conftest.$ac_ext
11394 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11395 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11396 if test $am_cv_langinfo_codeset = yes; then
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_LANGINFO_CODESET 1
11405 # We will need to find libiberty.h and ansidecl.h
11406 saved_CFLAGS="$CFLAGS"
11407 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11447 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11448 strsignal strstr strverscmp \
11449 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11450 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
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"
11474 char *(*pfn) = (char *(*)) $ac_func ;
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482 (eval $ac_compile) 2>conftest.er1
11484 grep -v '^ *+' conftest.er1 >conftest.err
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -z "$ac_c_werror_flag"
11490 || test ! -s conftest.err'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; } &&
11496 { ac_try='test -s conftest.$ac_objext'
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; }; then
11502 eval "gcc_cv_have_decl_$ac_func=yes"
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 eval "gcc_cv_have_decl_$ac_func=no"
11509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11512 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11513 echo "$as_me:$LINENO: result: yes" >&5
11514 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11515 #define $ac_tr_decl 1
11519 echo "$as_me:$LINENO: result: no" >&5
11520 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11521 #define $ac_tr_decl 0
11532 for ac_func in getrlimit setrlimit getrusage
11534 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11535 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11536 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11537 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11547 #define $ac_tr_decl 1
11549 #include "ansidecl.h"
11550 #include "system.h"
11551 #ifdef HAVE_SYS_RESOURCE_H
11552 #include <sys/resource.h>
11560 char *(*pfn) = (char *(*)) $ac_func ;
11566 rm -f conftest.$ac_objext
11567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11568 (eval $ac_compile) 2>conftest.er1
11570 grep -v '^ *+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
11575 { ac_try='test -z "$ac_c_werror_flag"
11576 || test ! -s conftest.err'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; } &&
11582 { ac_try='test -s conftest.$ac_objext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11588 eval "gcc_cv_have_decl_$ac_func=yes"
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 eval "gcc_cv_have_decl_$ac_func=no"
11595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11598 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11599 echo "$as_me:$LINENO: result: yes" >&5
11600 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11601 #define $ac_tr_decl 1
11605 echo "$as_me:$LINENO: result: no" >&5
11606 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11607 #define $ac_tr_decl 0
11615 cat >conftest.$ac_ext <<_ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11622 #include "ansidecl.h"
11623 #include "system.h"
11624 #ifdef HAVE_SYS_RESOURCE_H
11625 #include <sys/resource.h>
11636 rm -f conftest.$ac_objext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11638 (eval $ac_compile) 2>conftest.er1
11640 grep -v '^ *+' conftest.er1 >conftest.err
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -z "$ac_c_werror_flag"
11646 || test ! -s conftest.err'
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); }; } &&
11652 { ac_try='test -s conftest.$ac_objext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11664 cat >>confdefs.h <<\_ACEOF
11665 #define rlim_t long
11669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11671 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11672 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11673 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11674 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11676 for ac_func in ldgetname
11678 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11679 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11680 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11681 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11684 cat >conftest.$ac_ext <<_ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11691 #define $ac_tr_decl 1
11693 #include "ansidecl.h"
11694 #include "system.h"
11695 #ifdef HAVE_LDFCN_H
11706 char *(*pfn) = (char *(*)) $ac_func ;
11712 rm -f conftest.$ac_objext
11713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11714 (eval $ac_compile) 2>conftest.er1
11716 grep -v '^ *+' conftest.er1 >conftest.err
11718 cat conftest.err >&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } &&
11721 { ac_try='test -z "$ac_c_werror_flag"
11722 || test ! -s conftest.err'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest.$ac_objext'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; }; then
11734 eval "gcc_cv_have_decl_$ac_func=yes"
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11739 eval "gcc_cv_have_decl_$ac_func=no"
11741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11744 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11745 echo "$as_me:$LINENO: result: yes" >&5
11746 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11747 #define $ac_tr_decl 1
11751 echo "$as_me:$LINENO: result: no" >&5
11752 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11753 #define $ac_tr_decl 0
11762 for ac_func in times
11764 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11765 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11766 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11767 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 cat >conftest.$ac_ext <<_ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11777 #define $ac_tr_decl 1
11779 #include "ansidecl.h"
11780 #include "system.h"
11781 #ifdef HAVE_SYS_TIMES_H
11782 #include <sys/times.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
11846 for ac_func in sigaltstack
11848 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11849 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11850 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11851 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 cat >conftest.$ac_ext <<_ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11861 #define $ac_tr_decl 1
11863 #include "ansidecl.h"
11864 #include "system.h"
11865 #include <signal.h>
11872 char *(*pfn) = (char *(*)) $ac_func ;
11878 rm -f conftest.$ac_objext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11880 (eval $ac_compile) 2>conftest.er1
11882 grep -v '^ *+' conftest.er1 >conftest.err
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
11887 { ac_try='test -z "$ac_c_werror_flag"
11888 || test ! -s conftest.err'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest.$ac_objext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 eval "gcc_cv_have_decl_$ac_func=yes"
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 eval "gcc_cv_have_decl_$ac_func=no"
11907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11910 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11911 echo "$as_me:$LINENO: result: yes" >&5
11912 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11913 #define $ac_tr_decl 1
11917 echo "$as_me:$LINENO: result: no" >&5
11918 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11919 #define $ac_tr_decl 0
11927 # More time-related stuff.
11928 echo "$as_me:$LINENO: checking for struct tms" >&5
11929 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11930 if test "${ac_cv_struct_tms+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11941 #include "ansidecl.h"
11942 #include "system.h"
11943 #ifdef HAVE_SYS_TIMES_H
11944 #include <sys/times.h>
11955 rm -f conftest.$ac_objext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11957 (eval $ac_compile) 2>conftest.er1
11959 grep -v '^ *+' conftest.er1 >conftest.err
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag"
11965 || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest.$ac_objext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_struct_tms=yes
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_cv_struct_tms=no
11984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11986 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11987 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11988 if test $ac_cv_struct_tms = yes; then
11990 cat >>confdefs.h <<\_ACEOF
11991 #define HAVE_STRUCT_TMS 1
11996 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11997 # revisit after autoconf 2.50.
11998 echo "$as_me:$LINENO: checking for clock_t" >&5
11999 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12000 if test "${gcc_cv_type_clock_t+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 cat >conftest.$ac_ext <<_ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12011 #include "ansidecl.h"
12012 #include "system.h"
12022 rm -f conftest.$ac_objext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024 (eval $ac_compile) 2>conftest.er1
12026 grep -v '^ *+' conftest.er1 >conftest.err
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } &&
12031 { ac_try='test -z "$ac_c_werror_flag"
12032 || test ! -s conftest.err'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest.$ac_objext'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 gcc_cv_type_clock_t=yes
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 gcc_cv_type_clock_t=no
12051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12053 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12054 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12055 if test $gcc_cv_type_clock_t = yes; then
12057 cat >>confdefs.h <<\_ACEOF
12058 #define HAVE_CLOCK_T 1
12063 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12064 CFLAGS="$saved_CFLAGS"
12066 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12067 if test "${enable_initfini_array+set}" = set; then
12068 enableval="$enable_initfini_array"
12072 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12073 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12074 if test "${gcc_cv_initfini_array+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 if test "$cross_compiling" = yes; then
12078 gcc_cv_initfini_array=no
12080 cat >conftest.$ac_ext <<_ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12088 int main (void) { return x; }
12089 int foo (void) { x = 0; }
12090 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12092 rm -f conftest$ac_exeext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12094 (eval $ac_link) 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 gcc_cv_initfini_array=yes
12105 echo "$as_me: program exited with status $ac_status" >&5
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ( exit $ac_status )
12110 gcc_cv_initfini_array=no
12112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12115 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12116 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12117 enable_initfini_array=$gcc_cv_initfini_array
12120 if test $enable_initfini_array = yes; then
12122 cat >>confdefs.h <<\_ACEOF
12123 #define HAVE_INITFINI_ARRAY 1
12128 # mkdir takes a single argument on some systems.
12129 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12130 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12131 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 cat >conftest.$ac_ext <<_ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12141 #include <sys/types.h>
12142 #ifdef HAVE_SYS_STAT_H
12143 # include <sys/stat.h>
12145 #ifdef HAVE_UNISTD_H
12146 # include <unistd.h>
12148 #ifdef HAVE_DIRECT_H
12149 # include <direct.h>
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>conftest.er1
12163 grep -v '^ *+' conftest.er1 >conftest.err
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag"
12169 || test ! -s conftest.err'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest.$ac_objext'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
12181 gcc_cv_mkdir_takes_one_arg=no
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 gcc_cv_mkdir_takes_one_arg=yes
12188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12190 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12191 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12192 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12194 cat >>confdefs.h <<\_ACEOF
12195 #define MKDIR_TAKES_ONE_ARG 1
12207 # With Setjmp/Longjmp based exception handling.
12208 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12209 if test "${enable_sjlj_exceptions+set}" = set; then
12210 enableval="$enable_sjlj_exceptions"
12211 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12213 cat >>confdefs.h <<_ACEOF
12214 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12219 # For platforms with the unwind ABI which includes an unwind library,
12220 # libunwind, we can choose to use the system libunwind.
12222 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12223 if test "${with_system_libunwind+set}" = set; then
12224 withval="$with_system_libunwind"
12228 # config.gcc also contains tests of with_system_libunwind.
12229 if test x$with_system_libunwind = xyes; then
12231 cat >>confdefs.h <<\_ACEOF
12232 #define HAVE_GETIPINFO 1
12237 # --------------------------------------------------------
12238 # Build, host, and target specific configuration fragments
12239 # --------------------------------------------------------
12241 # Collect build-machine-specific information.
12242 . ${srcdir}/config.build
12244 # Collect host-machine-specific information.
12245 . ${srcdir}/config.host
12249 # Collect target-machine-specific information.
12250 . ${srcdir}/config.gcc
12252 extra_objs="${host_extra_objs} ${extra_objs}"
12253 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12255 # Default the target-machine variables that were not explicitly set.
12256 if test x"$tm_file" = x
12257 then tm_file=$cpu_type/$cpu_type.h; fi
12259 if test x"$extra_headers" = x
12260 then extra_headers=; fi
12262 if test x$md_file = x
12263 then md_file=$cpu_type/$cpu_type.md; fi
12265 if test x$out_file = x
12266 then out_file=$cpu_type/$cpu_type.c; fi
12268 if test x"$tmake_file" = x
12269 then tmake_file=$cpu_type/t-$cpu_type
12272 if test x"$dwarf2" = xyes
12273 then tm_file="$tm_file tm-dwarf2.h"
12276 # Say what files are being used for the output code and MD file.
12277 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12278 echo "Using \`$srcdir/config/$md_file' as machine description file."
12280 # If any of the xm_file variables contain nonexistent files, warn
12281 # about them and drop them.
12284 for x in $build_xm_file; do
12285 if test -f $srcdir/config/$x
12287 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12288 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12291 build_xm_file="$bx"
12294 for x in $host_xm_file; do
12295 if test -f $srcdir/config/$x
12297 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12298 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12304 for x in $xm_file; do
12305 if test -f $srcdir/config/$x
12307 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12308 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12314 for f in $tm_file; do
12317 if test $count = ax; then
12318 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12320 echo "Using the following target machine macro files:"
12321 for f in $tm_file; do
12322 echo " $srcdir/config/$f"
12326 if test x$need_64bit_hwint = xyes; then
12328 cat >>confdefs.h <<\_ACEOF
12329 #define NEED_64BIT_HOST_WIDE_INT 1
12334 if test x$use_long_long_for_widest_fast_int = xyes; then
12336 cat >>confdefs.h <<\_ACEOF
12337 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12343 for f in $host_xm_file; do
12346 if test $count = a; then
12348 elif test $count = ax; then
12349 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12351 echo "Using the following host machine macro files:"
12352 for f in $host_xm_file; do
12353 echo " $srcdir/config/$f"
12356 echo "Using ${out_host_hook_obj} for host machine hooks."
12358 if test "$host_xm_file" != "$build_xm_file"; then
12360 for f in $build_xm_file; do
12363 if test $count = a; then
12365 elif test $count = ax; then
12366 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12368 echo "Using the following build machine macro files:"
12369 for f in $build_xm_file; do
12370 echo " $srcdir/config/$f"
12376 powerpc*-*-darwin*)
12377 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12378 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12379 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 cat >conftest.$ac_ext <<_ACEOF
12384 #include <sys/cdefs.h>
12385 #include <sys/signal.h>
12386 #include <ucontext.h>
12387 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12390 rm -f conftest.$ac_objext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12392 (eval $ac_compile) 2>conftest.er1
12394 grep -v '^ *+' conftest.er1 >conftest.err
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } &&
12399 { ac_try='test -z "$ac_c_werror_flag"
12400 || test ! -s conftest.err'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } &&
12406 { ac_try='test -s conftest.$ac_objext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 gcc_cv_mcontext_underscores=no
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 gcc_cv_mcontext_underscores=yes
12419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12421 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12422 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12423 if test $gcc_cv_mcontext_underscores = yes; then
12425 cat >>confdefs.h <<\_ACEOF
12426 #define HAS_MCONTEXT_T_UNDERSCORES
12437 # Check if a valid thread package
12438 case ${enable_threads} in
12441 target_thread_file='single'
12445 target_thread_file='single'
12447 aix | dce | gnat | irix | posix | posix95 | rtems | \
12448 single | solaris | vxworks | win32 | mipssde)
12449 target_thread_file=${enable_threads}
12452 echo "${enable_threads} is an unknown thread package" 1>&2
12457 if test x${thread_file} = x; then
12458 # No thread file set by target-specific clauses in config.gcc,
12459 # so use file chosen by default logic above
12460 thread_file=${target_thread_file}
12463 # Make gthr-default.h if we have a thread file.
12465 if test $thread_file != single; then
12466 rm -f gthr-default.h
12467 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12468 gthread_flags=-DHAVE_GTHR_DEFAULT
12477 if test x$enable___cxa_atexit = xyes || \
12478 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12479 if test x$host = x$target; then
12481 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12482 # keyed to flag_use_cxa_atexit
12487 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12488 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12489 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 cat >conftest.$ac_ext <<_ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12500 #define __cxa_atexit innocuous___cxa_atexit
12502 /* System header to define __stub macros and hopefully few prototypes,
12503 which can conflict with char __cxa_atexit (); below.
12504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12505 <limits.h> exists even on freestanding compilers. */
12508 # include <limits.h>
12510 # include <assert.h>
12513 #undef __cxa_atexit
12515 /* Override any gcc2 internal prototype to avoid an error. */
12520 /* We use char because int might match the return type of a gcc2
12521 builtin and then its argument prototype would still apply. */
12522 char __cxa_atexit ();
12523 /* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12529 char (*f) () = __cxa_atexit;
12538 return f != __cxa_atexit;
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12545 (eval $ac_link) 2>conftest.er1
12547 grep -v '^ *+' conftest.er1 >conftest.err
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -z "$ac_c_werror_flag"
12553 || test ! -s conftest.err'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; } &&
12559 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12565 ac_cv_func___cxa_atexit=yes
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12570 ac_cv_func___cxa_atexit=no
12572 rm -f conftest.err conftest.$ac_objext \
12573 conftest$ac_exeext conftest.$ac_ext
12575 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12576 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12577 if test $ac_cv_func___cxa_atexit = yes; then
12580 echo "__cxa_atexit can't be enabled on this target"
12586 # We can't check for __cxa_atexit when building a cross, so assume
12590 if test x$use_cxa_atexit = xyes; then
12592 cat >>confdefs.h <<\_ACEOF
12593 #define DEFAULT_USE_CXA_ATEXIT 2
12600 if test x$with_system_libunwind = xyes; then
12601 if test x$host = x$target; then
12602 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12603 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12604 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 ac_func_search_save_LIBS=$LIBS
12608 ac_cv_search__Unwind_GetIPInfo=no
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12616 /* Override any gcc2 internal prototype to avoid an error. */
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12622 char _Unwind_GetIPInfo ();
12626 _Unwind_GetIPInfo ();
12631 rm -f conftest.$ac_objext conftest$ac_exeext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12633 (eval $ac_link) 2>conftest.er1
12635 grep -v '^ *+' conftest.er1 >conftest.err
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -z "$ac_c_werror_flag"
12641 || test ! -s conftest.err'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest$ac_exeext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_cv_search__Unwind_GetIPInfo="none required"
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12659 rm -f conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12661 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12662 for ac_lib in unwind; do
12663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12664 cat >conftest.$ac_ext <<_ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12671 /* Override any gcc2 internal prototype to avoid an error. */
12675 /* We use char because int might match the return type of a gcc2
12676 builtin and then its argument prototype would still apply. */
12677 char _Unwind_GetIPInfo ();
12681 _Unwind_GetIPInfo ();
12686 rm -f conftest.$ac_objext conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688 (eval $ac_link) 2>conftest.er1
12690 grep -v '^ *+' conftest.er1 >conftest.err
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } &&
12695 { ac_try='test -z "$ac_c_werror_flag"
12696 || test ! -s conftest.err'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest$ac_exeext'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12708 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12715 rm -f conftest.err conftest.$ac_objext \
12716 conftest$ac_exeext conftest.$ac_ext
12719 LIBS=$ac_func_search_save_LIBS
12721 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12722 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12723 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12724 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12733 if test x$use_getipinfo = xyes; then
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_GETIPINFO 1
12740 echo "The system unwind library does not support _Unwind_GetIPInfo."
12743 # Look for a file containing extra machine modes.
12744 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12745 extra_modes_file='$(srcdir)'/config/${extra_modes}
12748 cat >>confdefs.h <<_ACEOF
12749 #define EXTRA_MODES_FILE "config/$extra_modes"
12754 # Convert extra_options into a form suitable for Makefile use.
12756 for f in $extra_options; do
12757 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12761 # auto-host.h is the file containing items generated by autoconf and is
12762 # the first file included by config.h.
12763 # If host=build, it is correct to have bconfig include auto-host.h
12764 # as well. If host!=build, we are in error and need to do more
12765 # work to find out the build config parameters.
12766 if test x$host = x$build
12768 build_auto=auto-host.h
12770 # We create a subdir, then run autoconf in the subdir.
12771 # To prevent recursion we set host and build for the new
12772 # invocation of configure to the build for this invocation
12779 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12780 *) realsrcdir=../${srcdir};;
12782 saved_CFLAGS="${CFLAGS}"
12783 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12784 ${realsrcdir}/configure \
12785 --enable-languages=${enable_languages-all} \
12786 --target=$target_alias --host=$build_alias --build=$build_alias
12787 CFLAGS="${saved_CFLAGS}"
12789 # We just finished tests for the build machine, so rename
12790 # the file auto-build.h in the gcc directory.
12791 mv auto-host.h ../auto-build.h
12794 build_auto=auto-build.h
12798 tm_file="${tm_file} defaults.h"
12799 tm_p_file="${tm_p_file} tm-preds.h"
12800 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12801 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12802 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12803 # put this back in temporarily.
12804 xm_file="auto-host.h ansidecl.h ${xm_file}"
12810 # Compile in configure arguments.
12811 if test -f configargs.h ; then
12812 # Being re-configured.
12813 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12814 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12816 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12819 # Double all backslashes and backslash all quotes to turn
12820 # gcc_config_arguments into a C string.
12821 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12822 $gcc_config_arguments
12824 gcc_config_arguments_str=`cat conftest.out`
12827 cat > configargs.h <<EOF
12828 /* Generated automatically. */
12829 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12830 static const char thread_model[] = "$thread_file";
12832 static const struct {
12833 const char *name, *value;
12834 } configure_default_options[] = $configure_default_options;
12837 # Internationalization
12838 # If we haven't got the data from the intl directory,
12839 # assume NLS is disabled.
12848 if test -f ../intl/config.intl; then
12849 . ../intl/config.intl
12851 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12852 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12853 if test x"$USE_NLS" != xyes; then
12854 echo "$as_me:$LINENO: result: no" >&5
12855 echo "${ECHO_T}no" >&6
12857 echo "$as_me:$LINENO: result: yes" >&5
12858 echo "${ECHO_T}yes" >&6
12860 cat >>confdefs.h <<\_ACEOF
12861 #define ENABLE_NLS 1
12865 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12866 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12867 # Look for .po and .gmo files in the source directory.
12870 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12871 # If there aren't any .gmo files the shell will give us the
12872 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12874 case "$cat" in *\**)
12877 # The quadruple backslash is collapsed to a double backslash
12878 # by the backticks, then collapsed again by the double quotes,
12879 # leaving us with one backslash in the sed expression (right
12880 # before the dot that mustn't act as a wildcard).
12881 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12882 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12883 # The user is allowed to set LINGUAS to a list of languages to
12884 # install catalogs for. If it's empty that means "all of them."
12885 if test "x$LINGUAS" = x; then
12886 CATALOGS="$CATALOGS $cat"
12887 XLINGUAS="$XLINGUAS $lang"
12889 case "$LINGUAS" in *$lang*)
12890 CATALOGS="$CATALOGS $cat"
12891 XLINGUAS="$XLINGUAS $lang"
12896 LINGUAS="$XLINGUAS"
12897 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12898 echo "${ECHO_T}$LINGUAS" >&6
12911 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12912 # -liconv on the link line twice.
12913 case "$LIBINTL" in *$LIBICONV*)
12917 # Check whether --enable-secureplt or --disable-secureplt was given.
12918 if test "${enable_secureplt+set}" = set; then
12919 enableval="$enable_secureplt"
12923 # Windows32 Registry support for specifying GCC installation paths.
12924 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12925 if test "${enable_win32_registry+set}" = set; then
12926 enableval="$enable_win32_registry"
12931 win32 | pe | cygwin* | mingw32* | uwin*)
12932 if test "x$enable_win32_registry" != xno; then
12933 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12934 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12935 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 ac_func_search_save_LIBS=$LIBS
12939 ac_cv_search_RegOpenKeyExA=no
12940 cat >conftest.$ac_ext <<_ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12947 /* Override any gcc2 internal prototype to avoid an error. */
12951 /* We use char because int might match the return type of a gcc2
12952 builtin and then its argument prototype would still apply. */
12953 char RegOpenKeyExA ();
12962 rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964 (eval $ac_link) 2>conftest.er1
12966 grep -v '^ *+' conftest.er1 >conftest.err
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag"
12972 || test ! -s conftest.err'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; } &&
12978 { ac_try='test -s conftest$ac_exeext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 ac_cv_search_RegOpenKeyExA="none required"
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12990 rm -f conftest.err conftest.$ac_objext \
12991 conftest$ac_exeext conftest.$ac_ext
12992 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12993 for ac_lib in advapi32; do
12994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12995 cat >conftest.$ac_ext <<_ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13002 /* Override any gcc2 internal prototype to avoid an error. */
13006 /* We use char because int might match the return type of a gcc2
13007 builtin and then its argument prototype would still apply. */
13008 char RegOpenKeyExA ();
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>conftest.er1
13021 grep -v '^ *+' conftest.er1 >conftest.err
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } &&
13026 { ac_try='test -z "$ac_c_werror_flag"
13027 || test ! -s conftest.err'
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; } &&
13033 { ac_try='test -s conftest$ac_exeext'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
13039 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13046 rm -f conftest.err conftest.$ac_objext \
13047 conftest$ac_exeext conftest.$ac_ext
13050 LIBS=$ac_func_search_save_LIBS
13052 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13053 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13054 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13055 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13058 enable_win32_registry=no
13063 if test "x$enable_win32_registry" != xno; then
13065 cat >>confdefs.h <<\_ACEOF
13066 #define ENABLE_WIN32_REGISTRY 1
13070 if test "x$enable_win32_registry" != xyes \
13071 && test "x$enable_win32_registry" != x; then
13073 cat >>confdefs.h <<_ACEOF
13074 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13082 # Get an absolute path to the GCC top-level source directory
13083 holddir=`${PWDCMD-pwd}`
13085 topdir=`${PWDCMD-pwd}`
13088 # Conditionalize the makefile for this host machine.
13090 for f in ${host_xmake_file}
13092 if test -f ${srcdir}/config/$f
13094 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13098 # Conditionalize the makefile for this target machine.
13100 for f in ${tmake_file}
13102 if test -f ${srcdir}/config/$f
13104 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13107 tmake_file="${tmake_file_}"
13109 # This is a terrible hack which will go away some day.
13110 host_cc_for_libada=${CC}
13113 out_object_file=`basename $out_file .c`.o
13115 tm_file_list="options.h"
13116 tm_include_list="options.h"
13117 for f in $tm_file; do
13120 f=`echo $f | sed 's/^..//'`
13121 tm_file_list="${tm_file_list} $f"
13122 tm_include_list="${tm_include_list} $f"
13125 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13126 tm_include_list="${tm_include_list} $f"
13129 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13130 tm_include_list="${tm_include_list} config/$f"
13137 for f in $tm_p_file; do
13140 tm_p_file_list="${tm_p_file_list} $f"
13141 tm_p_include_list="${tm_p_include_list} $f"
13144 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13145 tm_p_include_list="${tm_p_include_list} config/$f"
13151 for f in $xm_file; do
13154 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13155 xm_include_list="${xm_include_list} $f"
13158 xm_file_list="${xm_file_list} $f"
13159 xm_include_list="${xm_include_list} $f"
13162 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13163 xm_include_list="${xm_include_list} config/$f"
13169 host_xm_include_list=
13170 for f in $host_xm_file; do
13173 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13174 host_xm_include_list="${host_xm_include_list} $f"
13177 host_xm_file_list="${host_xm_file_list} $f"
13178 host_xm_include_list="${host_xm_include_list} $f"
13181 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13182 host_xm_include_list="${host_xm_include_list} config/$f"
13187 build_xm_file_list=
13188 for f in $build_xm_file; do
13191 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13192 build_xm_include_list="${build_xm_include_list} $f"
13194 auto-build.h | auto-host.h )
13195 build_xm_file_list="${build_xm_file_list} $f"
13196 build_xm_include_list="${build_xm_include_list} $f"
13199 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13200 build_xm_include_list="${build_xm_include_list} config/$f"
13205 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13206 # cross-compiler which does not use the native headers and libraries.
13207 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13210 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13212 if test "x$with_build_sysroot" != x; then
13213 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13215 # This value is used, even on a native system, because
13216 # CROSS_SYSTEM_HEADER_DIR is just
13217 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13218 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13221 if test x$host != x$target
13223 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13225 SYSTEM_HEADER_DIR=$build_system_header_dir
13226 case "$host","$target" in
13227 # Darwin crosses can use the host system's libraries and headers,
13228 # because of the fat library support. Of course, it must be the
13229 # same version of Darwin on both sides. Allow the user to
13230 # just say --target=foo-darwin without a version number to mean
13231 # "the version on this system".
13232 *-*-darwin*,*-*-darwin*)
13233 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13234 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13235 if test $hostos = $targetos -o $targetos = darwin ; then
13237 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13242 i?86-*-*,x86_64-*-* \
13243 | powerpc*-*-*,powerpc64*-*-*)
13244 CROSS="$CROSS -DNATIVE_CROSS" ;;
13246 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13247 SYSTEM_HEADER_DIR=$build_system_header_dir
13250 # If this is a cross-compiler that does not
13251 # have its own set of headers then define
13254 # If this is using newlib, without having the headers available now,
13255 # then define inhibit_libc in LIBGCC2_CFLAGS.
13256 # This prevents libgcc2 from containing any code which requires libc
13259 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13260 test x$with_newlib = xyes ; } &&
13261 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13266 # When building gcc with a cross-compiler, we need to adjust things so
13267 # that the generator programs are still built with the native compiler.
13268 # Also, we cannot run fixincludes or fix-header.
13270 # These are the normal (build=host) settings:
13271 CC_FOR_BUILD='$(CC)'
13272 BUILD_CFLAGS='$(ALL_CFLAGS)'
13273 STMP_FIXINC=stmp-fixinc
13275 # Possibly disable fixproto, on a per-target basis.
13276 case ${use_fixproto} in
13281 STMP_FIXPROTO=stmp-fixproto
13286 # And these apply if build != host, or we are generating coverage data
13287 if test x$build != x$host || test "x$coverage_flags" != x
13289 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13291 if test "x$TARGET_SYSTEM_ROOT" = x; then
13292 if test "x$STMP_FIXPROTO" != x; then
13293 STMP_FIXPROTO=stmp-install-fixproto
13298 # Expand extra_headers to include complete path.
13299 # This substitutes for lots of t-* files.
13300 extra_headers_list=
13301 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13302 for file in ${extra_headers} ; do
13303 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13306 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13307 if test x"$use_gcc_tgmath" = xyes
13308 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13311 # Define collect2 in Makefile.
13312 case $host_can_use_collect2 in
13314 *) collect2='collect2$(exeext)' ;;
13318 # Add a definition of USE_COLLECT2 if system wants one.
13319 case $use_collect2 in
13320 no) use_collect2= ;;
13323 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13324 xm_defines="${xm_defines} USE_COLLECT2"
13325 case $host_can_use_collect2 in
13327 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13328 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13329 { (exit 1); exit 1; }; }
13335 # ---------------------------
13336 # Assembler & linker features
13337 # ---------------------------
13339 # Identify the assembler which will work hand-in-glove with the newly
13340 # built GCC, so that we can examine its features. This is the assembler
13341 # which will be driven by the driver program.
13343 # If build != host, and we aren't building gas in-tree, we identify a
13344 # build->target assembler and hope that it will have the same features
13345 # as the host->target assembler we'll be using.
13346 gcc_cv_gas_major_version=
13347 gcc_cv_gas_minor_version=
13348 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13350 if test "${gcc_cv_as+set}" = set; then
13354 if test -x "$DEFAULT_ASSEMBLER"; then
13355 gcc_cv_as="$DEFAULT_ASSEMBLER"
13356 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13357 && test -f ../gas/Makefile \
13358 && test x$build = x$host; then
13359 gcc_cv_as=../gas/as-new$build_exeext
13360 elif test -x as$build_exeext; then
13361 # Build using assembler in the current directory.
13362 gcc_cv_as=./as$build_exeext
13363 elif test -x $AS_FOR_TARGET; then
13364 gcc_cv_as="$AS_FOR_TARGET"
13366 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13367 set dummy $AS_FOR_TARGET; ac_word=$2
13368 echo "$as_me:$LINENO: checking for $ac_word" >&5
13369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13370 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379 for as_dir in $PATH
13382 test -z "$as_dir" && as_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
13384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13385 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13395 gcc_cv_as=$ac_cv_path_gcc_cv_as
13397 if test -n "$gcc_cv_as"; then
13398 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13399 echo "${ECHO_T}$gcc_cv_as" >&6
13401 echo "$as_me:$LINENO: result: no" >&5
13402 echo "${ECHO_T}no" >&6
13409 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13411 case "$ORIGINAL_AS_FOR_TARGET" in
13412 ./as | ./as$build_exeext) ;;
13413 *) ac_config_files="$ac_config_files as:exec-tool.in"
13417 echo "$as_me:$LINENO: checking what assembler to use" >&5
13418 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13419 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13420 # Single tree build which includes gas. We want to prefer it
13421 # over whatever linker top-level may have detected, since
13422 # we'll use what we're building after installation anyway.
13423 echo "$as_me:$LINENO: result: newly built gas" >&5
13424 echo "${ECHO_T}newly built gas" >&6
13426 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13427 for f in $gcc_cv_as_bfd_srcdir/configure \
13428 $gcc_cv_as_gas_srcdir/configure \
13429 $gcc_cv_as_gas_srcdir/configure.in \
13430 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13431 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13432 if test x$gcc_cv_gas_version != x; then
13436 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13437 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13438 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13439 case $gcc_cv_gas_patch_version in
13440 "") gcc_cv_gas_patch_version="0" ;;
13442 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13443 + $gcc_cv_gas_minor_version \) \* 1000 \
13444 + $gcc_cv_gas_patch_version`
13446 in_tree_gas_is_elf=no
13447 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13448 || (grep 'obj_format = multi' ../gas/Makefile \
13449 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13451 in_tree_gas_is_elf=yes
13454 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13455 echo "${ECHO_T}$gcc_cv_as" >&6
13459 # Identify the linker which will work hand-in-glove with the newly
13460 # built GCC, so that we can examine its features. This is the linker
13461 # which will be driven by the driver program.
13463 # If build != host, and we aren't building gas in-tree, we identify a
13464 # build->target linker and hope that it will have the same features
13465 # as the host->target linker we'll be using.
13466 gcc_cv_gld_major_version=
13467 gcc_cv_gld_minor_version=
13468 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13469 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13471 if test "${gcc_cv_ld+set}" = set; then
13475 if test -x "$DEFAULT_LINKER"; then
13476 gcc_cv_ld="$DEFAULT_LINKER"
13477 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13478 && test -f ../ld/Makefile \
13479 && test x$build = x$host; then
13480 gcc_cv_ld=../ld/ld-new$build_exeext
13481 elif test -x collect-ld$build_exeext; then
13482 # Build using linker in the current directory.
13483 gcc_cv_ld=./collect-ld$build_exeext
13484 elif test -x $LD_FOR_TARGET; then
13485 gcc_cv_ld="$LD_FOR_TARGET"
13487 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13488 set dummy $LD_FOR_TARGET; ac_word=$2
13489 echo "$as_me:$LINENO: checking for $ac_word" >&5
13490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13491 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500 for as_dir in $PATH
13503 test -z "$as_dir" && as_dir=.
13504 for ac_exec_ext in '' $ac_executable_extensions; do
13505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13506 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13518 if test -n "$gcc_cv_ld"; then
13519 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13520 echo "${ECHO_T}$gcc_cv_ld" >&6
13522 echo "$as_me:$LINENO: result: no" >&5
13523 echo "${ECHO_T}no" >&6
13530 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13532 case "$ORIGINAL_LD_FOR_TARGET" in
13533 ./collect-ld | ./collect-ld$build_exeext) ;;
13534 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13538 echo "$as_me:$LINENO: checking what linker to use" >&5
13539 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13540 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13541 # Single tree build which includes ld. We want to prefer it
13542 # over whatever linker top-level may have detected, since
13543 # we'll use what we're building after installation anyway.
13544 echo "$as_me:$LINENO: result: newly built ld" >&5
13545 echo "${ECHO_T}newly built ld" >&6
13547 in_tree_ld_is_elf=no
13548 if (grep 'EMUL = .*elf' ../ld/Makefile \
13549 || grep 'EMUL = .*linux' ../ld/Makefile \
13550 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13551 in_tree_ld_is_elf=yes
13553 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
13555 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13556 if test x$gcc_cv_gld_version != x; then
13560 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13561 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13563 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13564 echo "${ECHO_T}$gcc_cv_ld" >&6
13568 # Figure out what nm we will be using.
13569 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13570 if test "${gcc_cv_nm+set}" = set; then
13574 if test -f $gcc_cv_binutils_srcdir/configure.in \
13575 && test -f ../binutils/Makefile \
13576 && test x$build = x$host; then
13577 gcc_cv_nm=../binutils/nm-new$build_exeext
13578 elif test -x nm$build_exeext; then
13579 gcc_cv_nm=./nm$build_exeext
13580 elif test -x $NM_FOR_TARGET; then
13581 gcc_cv_nm="$NM_FOR_TARGET"
13583 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13584 set dummy $NM_FOR_TARGET; ac_word=$2
13585 echo "$as_me:$LINENO: checking for $ac_word" >&5
13586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13587 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13612 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13614 if test -n "$gcc_cv_nm"; then
13615 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13616 echo "${ECHO_T}$gcc_cv_nm" >&6
13618 echo "$as_me:$LINENO: result: no" >&5
13619 echo "${ECHO_T}no" >&6
13626 echo "$as_me:$LINENO: checking what nm to use" >&5
13627 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13628 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13629 # Single tree build which includes binutils.
13630 echo "$as_me:$LINENO: result: newly built nm" >&5
13631 echo "${ECHO_T}newly built nm" >&6
13634 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13635 echo "${ECHO_T}$gcc_cv_nm" >&6
13639 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13641 case "$ORIGINAL_NM_FOR_TARGET" in
13642 ./nm | ./nm$build_exeext) ;;
13643 *) ac_config_files="$ac_config_files nm:exec-tool.in"
13648 # Figure out what objdump we will be using.
13649 if test "${gcc_cv_objdump+set}" = set; then
13653 if test -f $gcc_cv_binutils_srcdir/configure.in \
13654 && test -f ../binutils/Makefile \
13655 && test x$build = x$host; then
13656 # Single tree build which includes binutils.
13657 gcc_cv_objdump=../binutils/objdump$build_exeext
13658 elif test -x objdump$build_exeext; then
13659 gcc_cv_objdump=./objdump$build_exeext
13660 elif test -x $OBJDUMP_FOR_TARGET; then
13661 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13663 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13664 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13665 echo "$as_me:$LINENO: checking for $ac_word" >&5
13666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13667 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 case $gcc_cv_objdump in
13672 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
13681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13682 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13692 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13694 if test -n "$gcc_cv_objdump"; then
13695 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13696 echo "${ECHO_T}$gcc_cv_objdump" >&6
13698 echo "$as_me:$LINENO: result: no" >&5
13699 echo "${ECHO_T}no" >&6
13706 echo "$as_me:$LINENO: checking what objdump to use" >&5
13707 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13708 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13709 # Single tree build which includes binutils.
13710 echo "$as_me:$LINENO: result: newly built objdump" >&5
13711 echo "${ECHO_T}newly built objdump" >&6
13712 elif test x$gcc_cv_objdump = x; then
13713 echo "$as_me:$LINENO: result: not found" >&5
13714 echo "${ECHO_T}not found" >&6
13716 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13717 echo "${ECHO_T}$gcc_cv_objdump" >&6
13720 # Figure out what assembler alignment features are present.
13721 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13722 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13723 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 gcc_cv_as_balign_and_p2align=no
13727 if test $in_tree_gas = yes; then
13728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13729 then gcc_cv_as_balign_and_p2align=yes
13731 elif test x$gcc_cv_as != x; then
13733 .p2align 2' > conftest.s
13734 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }
13741 gcc_cv_as_balign_and_p2align=yes
13743 echo "configure: failed program was" >&5
13746 rm -f conftest.o conftest.s
13749 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13750 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13751 if test $gcc_cv_as_balign_and_p2align = yes; then
13753 cat >>confdefs.h <<\_ACEOF
13754 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13759 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13760 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13761 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13764 gcc_cv_as_max_skip_p2align=no
13765 if test $in_tree_gas = yes; then
13766 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13767 then gcc_cv_as_max_skip_p2align=yes
13769 elif test x$gcc_cv_as != x; then
13770 echo '.p2align 4,,7' > conftest.s
13771 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }
13778 gcc_cv_as_max_skip_p2align=yes
13780 echo "configure: failed program was" >&5
13783 rm -f conftest.o conftest.s
13786 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13787 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13788 if test $gcc_cv_as_max_skip_p2align = yes; then
13790 cat >>confdefs.h <<\_ACEOF
13791 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13796 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13797 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13798 if test "${gcc_cv_as_literal16+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 gcc_cv_as_literal16=no
13802 if test $in_tree_gas = yes; then
13803 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13804 then gcc_cv_as_literal16=yes
13806 elif test x$gcc_cv_as != x; then
13807 echo '.literal16' > conftest.s
13808 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }
13815 gcc_cv_as_literal16=yes
13817 echo "configure: failed program was" >&5
13820 rm -f conftest.o conftest.s
13823 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13824 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13825 if test $gcc_cv_as_literal16 = yes; then
13827 cat >>confdefs.h <<\_ACEOF
13828 #define HAVE_GAS_LITERAL16 1
13833 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13834 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13835 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 gcc_cv_as_subsection_m1=no
13839 if test $in_tree_gas = yes; then
13840 if test $in_tree_gas_is_elf = yes \
13841 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13842 then gcc_cv_as_subsection_m1=yes
13844 elif test x$gcc_cv_as != x; then
13845 echo 'conftest_label1: .word 0
13847 conftest_label2: .word 0
13848 .previous' > 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 if test x$gcc_cv_nm != x; then
13857 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13858 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13859 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13861 else gcc_cv_as_subsection_m1=yes
13863 rm -f conftest.nm1 conftest.nm2
13866 echo "configure: failed program was" >&5
13869 rm -f conftest.o conftest.s
13872 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13873 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13874 if test $gcc_cv_as_subsection_m1 = yes; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_GAS_SUBSECTION_ORDERING 1
13882 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13883 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13884 if test "${gcc_cv_as_weak+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 if test $in_tree_gas = yes; then
13889 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13890 then gcc_cv_as_weak=yes
13892 elif test x$gcc_cv_as != x; then
13893 echo ' .weak foobar' > conftest.s
13894 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }
13903 echo "configure: failed program was" >&5
13906 rm -f conftest.o conftest.s
13909 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13910 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13911 if test $gcc_cv_as_weak = yes; then
13913 cat >>confdefs.h <<\_ACEOF
13914 #define HAVE_GAS_WEAK 1
13919 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13920 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13921 if test "${gcc_cv_as_weakref+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 gcc_cv_as_weakref=no
13925 if test $in_tree_gas = yes; then
13926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13927 then gcc_cv_as_weakref=yes
13929 elif test x$gcc_cv_as != x; then
13930 echo ' .weakref foobar, barfnot' > conftest.s
13931 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }
13938 gcc_cv_as_weakref=yes
13940 echo "configure: failed program was" >&5
13943 rm -f conftest.o conftest.s
13946 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13947 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13948 if test $gcc_cv_as_weakref = yes; then
13950 cat >>confdefs.h <<\_ACEOF
13951 #define HAVE_GAS_WEAKREF 1
13956 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13957 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13958 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 gcc_cv_as_nsubspa_comdat=no
13962 if test $in_tree_gas = yes; then
13963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13964 then gcc_cv_as_nsubspa_comdat=yes
13966 elif test x$gcc_cv_as != x; then
13967 echo ' .SPACE $TEXT$
13968 .NSUBSPA $CODE$,COMDAT' > conftest.s
13969 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }
13976 gcc_cv_as_nsubspa_comdat=yes
13978 echo "configure: failed program was" >&5
13981 rm -f conftest.o conftest.s
13984 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13985 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13986 if test $gcc_cv_as_nsubspa_comdat = yes; then
13988 cat >>confdefs.h <<\_ACEOF
13989 #define HAVE_GAS_NSUBSPA_COMDAT 1
13994 # .hidden needs to be supported in both the assembler and the linker,
13995 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13996 # This is irritatingly difficult to feature test for; we have to check the
13997 # date string after the version number. If we've got an in-tree
13998 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14000 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14001 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14002 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14003 if test "${gcc_cv_as_hidden+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 gcc_cv_as_hidden=no
14007 if test $in_tree_gas = yes; then
14008 if test $in_tree_gas_is_elf = yes \
14009 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14010 then gcc_cv_as_hidden=yes
14012 elif test x$gcc_cv_as != x; then
14013 echo ' .hidden foobar
14014 foobar:' > conftest.s
14015 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }
14022 gcc_cv_as_hidden=yes
14024 echo "configure: failed program was" >&5
14027 rm -f conftest.o conftest.s
14030 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14031 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14034 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14035 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14036 if test "${gcc_cv_ld_hidden+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 if test $in_tree_ld = yes ; then
14040 gcc_cv_ld_hidden=no
14041 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 \
14042 && test $in_tree_ld_is_elf = yes; then
14043 gcc_cv_ld_hidden=yes
14046 gcc_cv_ld_hidden=yes
14047 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14048 if echo "$ld_ver" | grep GNU > /dev/null; then
14049 ld_vers=`echo $ld_ver | sed -n \
14050 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14051 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'`
14052 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14053 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14054 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14055 if test 0"$ld_date" -lt 20020404; then
14056 if test -n "$ld_date"; then
14057 # If there was date string, but was earlier than 2002-04-04, fail
14058 gcc_cv_ld_hidden=no
14059 elif test -z "$ld_vers"; then
14060 # If there was no date string nor ld version number, something is wrong
14061 gcc_cv_ld_hidden=no
14063 test -z "$ld_vers_patch" && ld_vers_patch=0
14064 if test "$ld_vers_major" -lt 2; then
14065 gcc_cv_ld_hidden=no
14066 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14067 gcc_cv_ld_hidden="no"
14068 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14069 gcc_cv_ld_hidden=no
14074 case "${target}" in
14075 hppa64*-*-hpux* | ia64*-*-hpux*)
14076 gcc_cv_ld_hidden=yes
14079 gcc_cv_ld_hidden=no
14085 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14086 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14087 libgcc_visibility=no
14090 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14091 libgcc_visibility=yes
14093 cat >>confdefs.h <<\_ACEOF
14094 #define HAVE_GAS_HIDDEN 1
14099 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14100 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14101 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14102 if test "${gcc_cv_as_leb128+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 gcc_cv_as_leb128=no
14106 if test $in_tree_gas = yes; then
14107 if test $in_tree_gas_is_elf = yes \
14108 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14109 then gcc_cv_as_leb128=yes
14111 elif test x$gcc_cv_as != x; then
14118 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }
14125 # GAS versions before 2.11 do not support uleb128,
14126 # despite appearing to.
14127 # ??? There exists an elf-specific test that will crash
14128 # the assembler. Perhaps it's better to figure out whether
14129 # arbitrary sections are supported and try the test.
14130 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14131 if echo "$as_ver" | grep GNU > /dev/null; then
14132 as_vers=`echo $as_ver | sed -n \
14133 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14134 as_major=`expr "$as_vers" : '\([0-9]*\)'`
14135 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14136 if test $as_major -eq 2 && test $as_minor -lt 11
14138 else gcc_cv_as_leb128=yes
14142 echo "configure: failed program was" >&5
14145 rm -f conftest.o conftest.s
14148 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14149 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14150 if test $gcc_cv_as_leb128 = yes; then
14152 cat >>confdefs.h <<\_ACEOF
14153 #define HAVE_AS_LEB128 1
14158 # GAS versions up to and including 2.11.0 may mis-optimize
14160 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14161 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14162 if test "${gcc_cv_as_eh_frame+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 gcc_cv_as_eh_frame=no
14166 if test $in_tree_gas = yes; then
14167 if test $in_tree_gas_is_elf = yes \
14168 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14169 then gcc_cv_as_eh_frame=yes
14171 elif test x$gcc_cv_as != x; then
14178 .section .eh_frame,"aw",@progbits
14180 .4byte .LECIE1-.LSCIE1
14194 .4byte .LEFDE1-.LASFDE1
14196 .4byte .LASFDE1-__FRAME_BEGIN__
14203 .LEFDE1:' > conftest.s
14204 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }
14211 cat > conftest.lit <<EOF
14212 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14213 0010 01000000 12000000 18000000 00000000 ................
14214 0020 08000000 04080000 0044 .........D
14216 cat > conftest.big <<EOF
14217 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14218 0010 00000001 00000012 00000018 00000000 ................
14219 0020 00000008 04000000 0844 .........D
14221 # If the assembler didn't choke, and we can objdump,
14222 # and we got the correct data, then succeed.
14223 # The text in the here-document typically retains its unix-style line
14224 # endings, while the output of objdump will use host line endings.
14225 # Therefore, use diff -b for the comparisons.
14226 if test x$gcc_cv_objdump != x \
14227 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14228 | tail -3 > conftest.got \
14229 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14230 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14232 gcc_cv_as_eh_frame=yes
14233 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; }; then
14239 gcc_cv_as_eh_frame=buggy
14241 # Uh oh, what do we do now?
14242 gcc_cv_as_eh_frame=no
14245 echo "configure: failed program was" >&5
14248 rm -f conftest.o conftest.s
14251 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14252 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14255 if test $gcc_cv_as_eh_frame = buggy; then
14257 cat >>confdefs.h <<\_ACEOF
14258 #define USE_AS_TRADITIONAL_FORMAT 1
14263 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14264 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14265 if test "${gcc_cv_as_shf_merge+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14268 gcc_cv_as_shf_merge=no
14269 if test $in_tree_gas = yes; then
14270 if test $in_tree_gas_is_elf = yes \
14271 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14272 then gcc_cv_as_shf_merge=yes
14274 elif test x$gcc_cv_as != x; then
14275 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14276 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }
14283 gcc_cv_as_shf_merge=yes
14285 echo "configure: failed program was" >&5
14288 rm -f conftest.o conftest.s
14291 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14292 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14294 if test $gcc_cv_as_shf_merge = no; then
14295 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14296 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14297 if test "${gcc_cv_as_shf_merge+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 gcc_cv_as_shf_merge=no
14301 if test $in_tree_gas = yes; then
14302 if test $in_tree_gas_is_elf = yes \
14303 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14304 then gcc_cv_as_shf_merge=yes
14306 elif test x$gcc_cv_as != x; then
14307 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14308 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }
14315 gcc_cv_as_shf_merge=yes
14317 echo "configure: failed program was" >&5
14320 rm -f conftest.o conftest.s
14323 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14324 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14328 cat >>confdefs.h <<_ACEOF
14329 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14333 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14334 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14335 if test "${gcc_cv_as_comdat_group+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 gcc_cv_as_comdat_group=no
14339 if test $in_tree_gas = yes; then
14340 if test $in_tree_gas_is_elf = yes \
14341 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14342 then gcc_cv_as_comdat_group=yes
14344 elif test x$gcc_cv_as != x; then
14345 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14346 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }
14353 gcc_cv_as_comdat_group=yes
14355 echo "configure: failed program was" >&5
14358 rm -f conftest.o conftest.s
14361 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14362 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14364 if test $gcc_cv_as_comdat_group = yes; then
14365 gcc_cv_as_comdat_group_percent=no
14367 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14368 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14369 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 gcc_cv_as_comdat_group_percent=no
14373 if test $in_tree_gas = yes; then
14374 if test $in_tree_gas_is_elf = yes \
14375 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14376 then gcc_cv_as_comdat_group_percent=yes
14378 elif test x$gcc_cv_as != x; then
14379 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14380 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }
14387 gcc_cv_as_comdat_group_percent=yes
14389 echo "configure: failed program was" >&5
14392 rm -f conftest.o conftest.s
14395 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14396 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14399 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14401 if test 0"$ld_date" -lt 20050308; then
14402 if test -n "$ld_date"; then
14403 # If there was date string, but was earlier than 2005-03-08, fail
14405 elif test "$ld_vers_major" -lt 2; then
14407 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14412 # assume linkers other than GNU ld don't support COMDAT group
14415 if test $comdat_group = no; then
14416 gcc_cv_as_comdat_group=no
14417 gcc_cv_as_comdat_group_percent=no
14420 cat >>confdefs.h <<_ACEOF
14421 #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`
14425 # Thread-local storage - the check is heavily parametrized.
14433 .section ".tdata","awT",@progbits
14436 ldq $27,__tls_get_addr($29) !literal!1
14437 lda $16,foo($29) !tlsgd!1
14438 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14439 ldq $27,__tls_get_addr($29) !literal!2
14440 lda $16,foo($29) !tlsldm!2
14441 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14442 ldq $1,foo($29) !gotdtprel
14443 ldah $2,foo($29) !dtprelhi
14444 lda $3,foo($2) !dtprello
14445 lda $4,foo($29) !dtprel
14446 ldq $1,foo($29) !gottprel
14447 ldah $2,foo($29) !tprelhi
14448 lda $3,foo($2) !tprello
14449 lda $4,foo($29) !tprel'
14452 tls_as_opt=--fatal-warnings
14456 .section ".tdata","awT",@progbits
14459 call #gettlsoff(x)'
14468 .section ".tdata","awT",@progbits
14472 addil LT%foo-$tls_gdidx$,gp
14473 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14476 addil LT%foo-$tls_ldidx$,gp
14478 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14479 addil LR%foo-$tls_dtpoff$,%ret0
14480 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14482 addil LT%foo-$tls_ieoff$,gp
14483 ldw RT%foo-$tls_ieoff$(%r1),%t2
14486 addil LR%foo-$tls_leoff$,%t1
14487 ldo RR%foo-$tls_leoff$(%r1),%t2'
14490 tls_as_opt=--fatal-warnings
14494 .section ".tdata","awT",%progbits
14497 .word foo(gottpoff)
14507 .section ".tdata","awT",@progbits
14511 leal foo@TLSGD(,%ebx,1), %eax
14512 leal foo@TLSLDM(%ebx), %eax
14513 leal foo@DTPOFF(%eax), %edx
14514 movl foo@GOTTPOFF(%ebx), %eax
14515 subl foo@GOTTPOFF(%ebx), %eax
14516 addl foo@GOTNTPOFF(%ebx), %eax
14517 movl foo@INDNTPOFF, %eax
14518 movl $foo@TPOFF, %eax
14519 subl $foo@TPOFF, %eax
14520 leal foo@NTPOFF(%ecx), %eax'
14523 tls_as_opt=--fatal-warnings
14527 .section ".tdata","awT",@progbits
14531 leaq foo@TLSGD(%rip), %rdi
14532 leaq foo@TLSLD(%rip), %rdi
14533 leaq foo@DTPOFF(%rax), %rdx
14534 movq foo@GOTTPOFF(%rip), %rax
14535 movq $foo@TPOFF, %rax'
14538 tls_as_opt=--fatal-warnings
14542 .section ".tdata","awT",@progbits
14545 addl r16 = @ltoff(@dtpmod(foo#)), gp
14546 addl r17 = @ltoff(@dtprel(foo#)), gp
14547 addl r18 = @ltoff(@tprel(foo#)), gp
14548 addl r19 = @dtprel(foo#), gp
14549 adds r21 = @dtprel(foo#), r13
14550 movl r23 = @dtprel(foo#)
14551 addl r20 = @tprel(foo#), gp
14552 adds r22 = @tprel(foo#), r13
14553 movl r24 = @tprel(foo#)'
14556 tls_as_opt=--fatal-warnings
14560 .section .tdata,"awT",@progbits
14564 addiu $4, $28, %tlsgd(x)
14565 addiu $4, $28, %tlsldm(x)
14566 lui $4, %dtprel_hi(x)
14567 addiu $4, $4, %dtprel_lo(x)
14568 lw $4, %gottprel(x)($28)
14569 lui $4, %tprel_hi(x)
14570 addiu $4, $4, %tprel_lo(x)'
14573 tls_as_opt='-32 --fatal-warnings'
14577 .section ".tdata","awT",@progbits
14585 addi 3,31,ld0@got@tlsgd
14587 addi 3,31,x1@got@tlsld
14590 addis 9,3,x2@dtprel@ha
14591 addi 9,9,x2@dtprel@l
14592 lwz 9,x3@got@tprel(31)
14595 addis 9,2,x2@tprel@ha
14596 addi 9,9,x2@tprel@l'
14599 tls_as_opt="-a32 --fatal-warnings"
14603 .section ".tdata","awT",@progbits
14611 addi 3,2,ld0@got@tlsgd
14617 addi 3,2,x1@got@tlsld
14623 addis 9,3,x2@dtprel@ha
14624 addi 9,9,x2@dtprel@l
14627 ld 9,x3@got@dtprel(2)
14633 tls_as_opt="-a64 --fatal-warnings"
14637 .section ".tdata","awT",@progbits
14644 .long foo@GOTNTPOFF
14645 .long foo@INDNTPOFF
14646 l %r1,foo@GOTNTPOFF(%r12)
14647 l %r1,0(%r1):tls_load:foo
14648 bas %r14,0(%r1,%r13):tls_gdcall:foo
14649 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14652 tls_as_opt="-m31 --fatal-warnings"
14656 .section ".tdata","awT",@progbits
14663 .quad foo@GOTNTPOFF
14664 lg %r1,foo@GOTNTPOFF(%r12)
14665 larl %r1,foo@INDNTPOFF
14666 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14667 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14670 tls_as_opt="-m64 -Aesame --fatal-warnings"
14672 sh-*-* | sh[34]-*-*)
14674 .section ".tdata","awT",@progbits
14684 tls_as_opt=--fatal-warnings
14688 sparc*-sun-solaris2.[56789]*)
14689 # TLS was introduced in the Solaris 9 4/04 release but
14690 # we do not enable it by default on Solaris 9 either.
14691 if test "x$enable_tls" = xyes ; then
14697 sparc*-sun-solaris2.*)
14704 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14706 .section ".tdata",#alloc,#write,#tls
14709 sethi %tgd_hi22(foo), %o0
14710 add %o0, %tgd_lo10(foo), %o1
14711 add %l7, %o1, %o0, %tgd_add(foo)
14712 call __tls_get_addr, %tgd_call(foo)
14713 sethi %tldm_hi22(foo), %l1
14714 add %l1, %tldm_lo10(foo), %l2
14715 add %l7, %l2, %o0, %tldm_add(foo)
14716 call __tls_get_addr, %tldm_call(foo)
14717 sethi %tldo_hix22(foo), %l3
14718 xor %l3, %tldo_lox10(foo), %l4
14719 add %o0, %l4, %l5, %tldo_add(foo)
14720 sethi %tie_hi22(foo), %o3
14721 add %o3, %tie_lo10(foo), %o3
14722 ld [%l7 + %o3], %o2, %tie_ld(foo)
14723 add %g7, %o2, %o4, %tie_add(foo)
14724 sethi %tle_hix22(foo), %l1
14725 xor %l1, %tle_lox10(foo), %o5
14726 ld [%g7 + %o5], %o1'
14731 .section ".tdata","awT",@progbits
14734 sethi %tgd_hi22(foo), %o0
14735 add %o0, %tgd_lo10(foo), %o1
14736 add %l7, %o1, %o0, %tgd_add(foo)
14737 call __tls_get_addr, %tgd_call(foo)
14738 sethi %tldm_hi22(foo), %l1
14739 add %l1, %tldm_lo10(foo), %l2
14740 add %l7, %l2, %o0, %tldm_add(foo)
14741 call __tls_get_addr, %tldm_call(foo)
14742 sethi %tldo_hix22(foo), %l3
14743 xor %l3, %tldo_lox10(foo), %l4
14744 add %o0, %l4, %l5, %tldo_add(foo)
14745 sethi %tie_hi22(foo), %o3
14746 add %o3, %tie_lo10(foo), %o3
14747 ld [%l7 + %o3], %o2, %tie_ld(foo)
14748 add %g7, %o2, %o4, %tie_add(foo)
14749 sethi %tle_hix22(foo), %l1
14750 xor %l1, %tle_lox10(foo), %o5
14751 ld [%g7 + %o5], %o1'
14754 tls_as_opt="-32 --fatal-warnings"
14759 if test "x$enable_tls" = xno ; then
14760 : # TLS explicitly disabled.
14761 elif test "x$enable_tls" = xyes ; then
14762 set_have_as_tls=yes # TLS explicitly enabled.
14763 elif test -z "$tls_first_major"; then
14764 : # If we don't have a check, assume no support.
14766 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14767 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14768 if test "${gcc_cv_as_tls+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 if test $in_tree_gas = yes; then
14773 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14774 then gcc_cv_as_tls=yes
14776 elif test x$gcc_cv_as != x; then
14777 echo "$conftest_s" > conftest.s
14778 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }
14787 echo "configure: failed program was" >&5
14790 rm -f conftest.o conftest.s
14793 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14794 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14795 if test $gcc_cv_as_tls = yes; then
14796 set_have_as_tls=yes
14799 if test $set_have_as_tls = yes ; then
14801 cat >>confdefs.h <<\_ACEOF
14802 #define HAVE_AS_TLS 1
14807 # Target-specific assembler checks.
14809 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14810 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14811 gcc_cv_ld_static_dynamic=no
14812 if test $in_tree_ld = yes ; then
14813 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14814 gcc_cv_ld_static_dynamic=yes
14816 elif test x$gcc_cv_ld != x; then
14817 # Check if linker supports -Bstatic/-Bdynamic option
14818 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14819 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14820 gcc_cv_ld_static_dynamic=yes
14823 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14825 cat >>confdefs.h <<\_ACEOF
14826 #define HAVE_LD_STATIC_DYNAMIC 1
14830 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14831 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14833 if test x"$demangler_in_ld" = xyes; then
14834 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14835 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14836 gcc_cv_ld_demangle=no
14837 if test $in_tree_ld = yes; then
14838 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 \
14839 gcc_cv_ld_demangle=yes
14841 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14842 # Check if the GNU linker supports --demangle option
14843 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14844 gcc_cv_ld_demangle=yes
14847 if test x"$gcc_cv_ld_demangle" = xyes; then
14849 cat >>confdefs.h <<\_ACEOF
14850 #define HAVE_LD_DEMANGLE 1
14854 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14855 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14859 # All TARGET_ABI_OSF targets.
14860 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14861 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14862 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14863 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 gcc_cv_as_alpha_explicit_relocs=no
14867 if test $in_tree_gas = yes; then
14868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14869 then gcc_cv_as_alpha_explicit_relocs=yes
14871 elif test x$gcc_cv_as != x; then
14872 echo ' .set nomacro
14874 extbl $3, $2, $3 !lituse_bytoff!1
14875 ldq $2, a($29) !literal!1
14876 ldq $4, b($29) !literal!2
14877 ldq_u $3, 0($2) !lituse_base!1
14878 ldq $27, f($29) !literal!5
14879 jsr $26, ($27), f !lituse_jsr!5
14880 ldah $29, 0($26) !gpdisp!3
14881 lda $0, c($29) !gprel
14882 ldah $1, d($29) !gprelhigh
14883 lda $1, d($1) !gprellow
14884 lda $29, 0($29) !gpdisp!3' > conftest.s
14885 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }
14892 gcc_cv_as_alpha_explicit_relocs=yes
14894 echo "configure: failed program was" >&5
14897 rm -f conftest.o conftest.s
14900 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14901 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14902 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14904 cat >>confdefs.h <<\_ACEOF
14905 #define HAVE_AS_EXPLICIT_RELOCS 1
14909 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14910 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14911 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 gcc_cv_as_alpha_jsrdirect_relocs=no
14915 if test $in_tree_gas = yes; then
14916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14917 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14919 elif test x$gcc_cv_as != x; then
14920 echo ' .set nomacro
14922 ldq $27, a($29) !literal!1
14923 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14924 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }
14931 gcc_cv_as_alpha_jsrdirect_relocs=yes
14933 echo "configure: failed program was" >&5
14936 rm -f conftest.o conftest.s
14939 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14940 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14941 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14943 cat >>confdefs.h <<\_ACEOF
14944 #define HAVE_AS_JSRDIRECT_RELOCS 1
14951 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14952 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14953 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 gcc_cv_as_cris_no_mul_bug=no
14957 if test $in_tree_gas = yes; then
14958 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14959 then gcc_cv_as_cris_no_mul_bug=yes
14961 elif test x$gcc_cv_as != x; then
14962 echo '.text' > conftest.s
14963 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }
14970 gcc_cv_as_cris_no_mul_bug=yes
14972 echo "configure: failed program was" >&5
14975 rm -f conftest.o conftest.s
14978 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14979 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14980 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14982 cat >>confdefs.h <<\_ACEOF
14983 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14990 echo "$as_me:$LINENO: checking assembler for .register" >&5
14991 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14992 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 gcc_cv_as_sparc_register_op=no
14996 if test x$gcc_cv_as != x; then
14997 echo '.register %g2, #scratch' > conftest.s
14998 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }
15005 gcc_cv_as_sparc_register_op=yes
15007 echo "configure: failed program was" >&5
15010 rm -f conftest.o conftest.s
15013 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15014 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15015 if test $gcc_cv_as_sparc_register_op = yes; then
15017 cat >>confdefs.h <<\_ACEOF
15018 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15023 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15024 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15025 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 gcc_cv_as_sparc_relax=no
15029 if test x$gcc_cv_as != x; then
15030 echo '.text' > conftest.s
15031 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }
15038 gcc_cv_as_sparc_relax=yes
15040 echo "configure: failed program was" >&5
15043 rm -f conftest.o conftest.s
15046 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15047 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15048 if test $gcc_cv_as_sparc_relax = yes; then
15050 cat >>confdefs.h <<\_ACEOF
15051 #define HAVE_AS_RELAX_OPTION 1
15056 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15057 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15058 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15061 gcc_cv_as_sparc_ua_pcrel=no
15062 if test x$gcc_cv_as != x; then
15069 .uaword %r_disp32(foo)' > conftest.s
15070 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }
15077 if test x$gcc_cv_ld != x \
15078 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15079 gcc_cv_as_sparc_ua_pcrel=yes
15083 echo "configure: failed program was" >&5
15086 rm -f conftest.o conftest.s
15089 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15090 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15091 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15093 cat >>confdefs.h <<\_ACEOF
15094 #define HAVE_AS_SPARC_UA_PCREL 1
15098 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15099 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15100 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 gcc_cv_as_sparc_ua_pcrel_hidden=no
15104 if test x$gcc_cv_as != x; then
15108 .uaword %r_disp32(foo)
15109 .byte 0x32, 0x33, 0x34
15113 .skip 4' > conftest.s
15114 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }
15121 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15122 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15123 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15124 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15125 if $gcc_cv_objdump -R conftest 2> /dev/null \
15126 | grep 'DISP32' > /dev/null 2>&1; then
15129 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15134 echo "configure: failed program was" >&5
15137 rm -f conftest.o conftest.s
15140 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15141 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15142 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15144 cat >>confdefs.h <<\_ACEOF
15145 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15150 fi # unaligned pcrel relocs
15152 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15153 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15154 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 gcc_cv_as_sparc_offsetable_lo10=no
15158 if test x$gcc_cv_as != x; then
15160 or %g1, %lo(ab) + 12, %g1
15161 or %g1, %lo(ab + 12), %g1' > conftest.s
15162 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }
15169 if test x$gcc_cv_objdump != x \
15170 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15171 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15172 gcc_cv_as_sparc_offsetable_lo10=yes
15175 echo "configure: failed program was" >&5
15178 rm -f conftest.o conftest.s
15181 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15182 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15183 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15185 cat >>confdefs.h <<\_ACEOF
15186 #define HAVE_AS_OFFSETABLE_LO10 1
15192 i[34567]86-*-* | x86_64-*-*)
15194 cygwin* | pe | mingw32*)
15195 # Used for DWARF 2 in PE
15196 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15197 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15198 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 gcc_cv_as_ix86_pe_secrel32=no
15202 if test $in_tree_gas = yes; then
15203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15204 then gcc_cv_as_ix86_pe_secrel32=yes
15206 elif test x$gcc_cv_as != x; then
15210 .secrel32 foo' > conftest.s
15211 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }
15218 if test x$gcc_cv_ld != x \
15219 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15220 gcc_cv_as_ix86_pe_secrel32=yes
15224 echo "configure: failed program was" >&5
15227 rm -f conftest.o conftest.s
15230 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15231 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15232 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15234 cat >>confdefs.h <<\_ACEOF
15235 #define HAVE_GAS_PE_SECREL32_RELOC 1
15242 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15243 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15244 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 gcc_cv_as_ix86_filds_fists=no
15248 if test $in_tree_gas = yes; then
15249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15250 then gcc_cv_as_ix86_filds_fists=yes
15252 elif test x$gcc_cv_as != x; then
15253 echo 'filds mem; fists mem' > conftest.s
15254 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }
15261 gcc_cv_as_ix86_filds_fists=yes
15263 echo "configure: failed program was" >&5
15266 rm -f conftest.o conftest.s
15269 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15270 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15271 if test $gcc_cv_as_ix86_filds_fists = yes; then
15273 cat >>confdefs.h <<\_ACEOF
15274 #define HAVE_GAS_FILDS_FISTS 1
15279 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15280 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15281 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 gcc_cv_as_ix86_cmov_sun_syntax=no
15285 if test x$gcc_cv_as != x; then
15286 echo 'cmovl.l %edx, %eax' > conftest.s
15287 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }
15294 gcc_cv_as_ix86_cmov_sun_syntax=yes
15296 echo "configure: failed program was" >&5
15299 rm -f conftest.o conftest.s
15302 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15303 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15304 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15306 cat >>confdefs.h <<\_ACEOF
15307 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15312 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15313 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15314 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 gcc_cv_as_ix86_ffreep=no
15318 if test x$gcc_cv_as != x; then
15319 echo 'ffreep %st(1)' > conftest.s
15320 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }
15327 gcc_cv_as_ix86_ffreep=yes
15329 echo "configure: failed program was" >&5
15332 rm -f conftest.o conftest.s
15335 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15336 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15337 if test $gcc_cv_as_ix86_ffreep = yes; then
15339 cat >>confdefs.h <<\_ACEOF
15340 #define HAVE_AS_IX86_FFREEP 1
15345 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15346 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15347 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 gcc_cv_as_ix86_sahf=no
15351 if test x$gcc_cv_as != x; then
15352 echo 'sahf' > conftest.s
15353 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }
15360 gcc_cv_as_ix86_sahf=yes
15362 echo "configure: failed program was" >&5
15365 rm -f conftest.o conftest.s
15368 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15369 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15370 if test $gcc_cv_as_ix86_sahf = yes; then
15372 cat >>confdefs.h <<\_ACEOF
15373 #define HAVE_AS_IX86_SAHF 1
15378 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15379 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15380 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 gcc_cv_as_ix86_diff_sect_delta=no
15384 if test x$gcc_cv_as != x; then
15385 echo '.section .rodata
15391 .L2: nop' > conftest.s
15392 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }
15399 gcc_cv_as_ix86_diff_sect_delta=yes
15401 echo "configure: failed program was" >&5
15404 rm -f conftest.o conftest.s
15407 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15408 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15409 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15411 cat >>confdefs.h <<\_ACEOF
15412 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15417 # This one is used unconditionally by i386.[ch]; it is to be defined
15418 # to 1 if the feature is present, 0 otherwise.
15419 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15420 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15421 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15422 echo $ECHO_N "(cached) $ECHO_C" >&6
15424 gcc_cv_as_ix86_gotoff_in_data=no
15425 if test $in_tree_gas = yes; then
15426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15427 then gcc_cv_as_ix86_gotoff_in_data=yes
15429 elif test x$gcc_cv_as != x; then
15434 .long .L0@GOTOFF' > conftest.s
15435 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }
15442 gcc_cv_as_ix86_gotoff_in_data=yes
15444 echo "configure: failed program was" >&5
15447 rm -f conftest.o conftest.s
15450 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15451 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15454 cat >>confdefs.h <<_ACEOF
15455 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15461 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15462 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15463 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15467 if test $in_tree_gas = yes; then
15468 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15469 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15471 elif test x$gcc_cv_as != x; then
15473 addl r15 = @ltoffx(x#), gp
15475 ld8.mov r16 = [r15], x#' > conftest.s
15476 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }
15483 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15485 echo "configure: failed program was" >&5
15488 rm -f conftest.o conftest.s
15491 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15492 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15493 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15495 cat >>confdefs.h <<\_ACEOF
15496 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15505 *-*-aix*) conftest_s=' .machine "pwr5"
15509 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15510 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15511 if test "${gcc_cv_as_machine_directive+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 gcc_cv_as_machine_directive=no
15515 if test x$gcc_cv_as != x; then
15516 echo ' .machine ppc7400' > conftest.s
15517 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }
15524 gcc_cv_as_machine_directive=yes
15526 echo "configure: failed program was" >&5
15529 rm -f conftest.o conftest.s
15532 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15533 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15535 if test x$gcc_cv_as_machine_directive != xyes; then
15536 echo "*** This target requires an assembler supporting \".machine\"" >&2
15537 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15538 test x$build = x$target && exit 1
15542 *) conftest_s=' .machine power4
15547 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15548 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15549 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 gcc_cv_as_powerpc_mfcrf=no
15553 if test $in_tree_gas = yes; then
15554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15555 then gcc_cv_as_powerpc_mfcrf=yes
15557 elif test x$gcc_cv_as != x; then
15558 echo "$conftest_s" > conftest.s
15559 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }
15566 gcc_cv_as_powerpc_mfcrf=yes
15568 echo "configure: failed program was" >&5
15571 rm -f conftest.o conftest.s
15574 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15575 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15576 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15578 cat >>confdefs.h <<\_ACEOF
15579 #define HAVE_AS_MFCRF 1
15585 *-*-aix*) conftest_s=' .machine "pwr5"
15588 *) conftest_s=' .machine power5
15593 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15594 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15595 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 gcc_cv_as_powerpc_popcntb=no
15599 if test $in_tree_gas = yes; then
15600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15601 then gcc_cv_as_powerpc_popcntb=yes
15603 elif test x$gcc_cv_as != x; then
15604 echo "$conftest_s" > conftest.s
15605 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }
15612 gcc_cv_as_powerpc_popcntb=yes
15614 echo "configure: failed program was" >&5
15617 rm -f conftest.o conftest.s
15620 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15621 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15622 if test $gcc_cv_as_powerpc_popcntb = yes; then
15624 cat >>confdefs.h <<\_ACEOF
15625 #define HAVE_AS_POPCNTB 1
15631 *-*-aix*) conftest_s=' .machine "pwr5x"
15634 *) conftest_s=' .machine power5
15639 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15640 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15641 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 gcc_cv_as_powerpc_fprnd=no
15645 if test $in_tree_gas = yes; then
15646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15647 then gcc_cv_as_powerpc_fprnd=yes
15649 elif test x$gcc_cv_as != x; then
15650 echo "$conftest_s" > conftest.s
15651 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }
15658 gcc_cv_as_powerpc_fprnd=yes
15660 echo "configure: failed program was" >&5
15663 rm -f conftest.o conftest.s
15666 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15667 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15668 if test $gcc_cv_as_powerpc_fprnd = yes; then
15670 cat >>confdefs.h <<\_ACEOF
15671 #define HAVE_AS_FPRND 1
15677 *-*-aix*) conftest_s=' .machine "pwr6"
15680 *) conftest_s=' .machine power6
15685 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15686 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15687 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15688 echo $ECHO_N "(cached) $ECHO_C" >&6
15690 gcc_cv_as_powerpc_mfpgpr=no
15691 if test $in_tree_gas = yes; then
15692 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15693 then gcc_cv_as_powerpc_mfpgpr=yes
15695 elif test x$gcc_cv_as != x; then
15696 echo "$conftest_s" > conftest.s
15697 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }
15704 gcc_cv_as_powerpc_mfpgpr=yes
15706 echo "configure: failed program was" >&5
15709 rm -f conftest.o conftest.s
15712 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15713 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15714 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15716 cat >>confdefs.h <<\_ACEOF
15717 #define HAVE_AS_MFPGPR 1
15723 *-*-aix*) conftest_s=' .csect .text[PR]
15725 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15729 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15730 *) conftest_s=' .text
15732 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15735 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15736 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15737 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 gcc_cv_as_powerpc_rel16=no
15741 if test $in_tree_gas = yes; then
15742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15743 then gcc_cv_as_powerpc_rel16=yes
15745 elif test x$gcc_cv_as != x; then
15746 echo "$conftest_s" > conftest.s
15747 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }
15754 gcc_cv_as_powerpc_rel16=yes
15756 echo "configure: failed program was" >&5
15759 rm -f conftest.o conftest.s
15762 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15763 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15764 if test $gcc_cv_as_powerpc_rel16 = yes; then
15766 cat >>confdefs.h <<\_ACEOF
15767 #define HAVE_AS_REL16 1
15773 *-*-aix*) conftest_s=' .machine "pwr6"
15776 *) conftest_s=' .machine power6
15781 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15782 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15783 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 gcc_cv_as_powerpc_cmpb=no
15787 if test $in_tree_gas = yes; then
15788 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15789 then gcc_cv_as_powerpc_cmpb=yes
15791 elif test x$gcc_cv_as != x; then
15792 echo "$conftest_s" > conftest.s
15793 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }
15800 gcc_cv_as_powerpc_cmpb=yes
15802 echo "configure: failed program was" >&5
15805 rm -f conftest.o conftest.s
15808 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15809 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15810 if test $gcc_cv_as_powerpc_cmpb = yes; then
15812 cat >>confdefs.h <<\_ACEOF
15813 #define HAVE_AS_CMPB 1
15819 *-*-aix*) conftest_s=' .machine "pwr6"
15822 *) conftest_s=' .machine power6
15827 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15828 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15829 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15830 echo $ECHO_N "(cached) $ECHO_C" >&6
15832 gcc_cv_as_powerpc_dfp=no
15833 if test $in_tree_gas = yes; then
15834 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15835 then gcc_cv_as_powerpc_dfp=yes
15837 elif test x$gcc_cv_as != x; then
15838 echo "$conftest_s" > conftest.s
15839 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }
15846 gcc_cv_as_powerpc_dfp=yes
15848 echo "configure: failed program was" >&5
15851 rm -f conftest.o conftest.s
15854 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15855 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15856 if test $gcc_cv_as_powerpc_dfp = yes; then
15858 cat >>confdefs.h <<\_ACEOF
15859 #define HAVE_AS_DFP 1
15864 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15865 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15866 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 gcc_cv_as_powerpc_gnu_attribute=no
15870 if test $in_tree_gas = yes; then
15871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15872 then gcc_cv_as_powerpc_gnu_attribute=yes
15874 elif test x$gcc_cv_as != x; then
15875 echo '.gnu_attribute 4,1' > conftest.s
15876 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; }
15883 gcc_cv_as_powerpc_gnu_attribute=yes
15885 echo "configure: failed program was" >&5
15888 rm -f conftest.o conftest.s
15891 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
15892 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
15893 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
15895 cat >>confdefs.h <<\_ACEOF
15896 #define HAVE_AS_GNU_ATTRIBUTE 1
15903 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15904 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15905 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 gcc_cv_as_mips_explicit_relocs=no
15909 if test $in_tree_gas = yes; then
15910 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15911 then gcc_cv_as_mips_explicit_relocs=yes
15913 elif test x$gcc_cv_as != x; then
15914 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15915 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; }
15922 gcc_cv_as_mips_explicit_relocs=yes
15924 echo "configure: failed program was" >&5
15927 rm -f conftest.o conftest.s
15930 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15931 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15932 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15933 if test x$target_cpu_default = x
15934 then target_cpu_default=MASK_EXPLICIT_RELOCS
15935 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15938 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15939 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15940 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 gcc_cv_as_mips_no_shared=no
15944 if test $in_tree_gas = yes; then
15945 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15946 then gcc_cv_as_mips_no_shared=yes
15948 elif test x$gcc_cv_as != x; then
15949 echo 'nop' > conftest.s
15950 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }
15957 gcc_cv_as_mips_no_shared=yes
15959 echo "configure: failed program was" >&5
15962 rm -f conftest.o conftest.s
15965 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15966 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15967 if test $gcc_cv_as_mips_no_shared = yes; then
15969 cat >>confdefs.h <<\_ACEOF
15970 #define HAVE_AS_NO_SHARED 1
15975 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15976 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15977 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15980 gcc_cv_as_mips_gnu_attribute=no
15981 if test $in_tree_gas = yes; then
15982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15983 then gcc_cv_as_mips_gnu_attribute=yes
15985 elif test x$gcc_cv_as != x; then
15986 echo '.gnu_attribute 4,1' > conftest.s
15987 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }
15994 gcc_cv_as_mips_gnu_attribute=yes
15996 echo "configure: failed program was" >&5
15999 rm -f conftest.o conftest.s
16002 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
16003 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
16004 if test $gcc_cv_as_mips_gnu_attribute = yes; then
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_AS_GNU_ATTRIBUTE 1
16012 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16013 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
16014 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 gcc_cv_as_mips_dtprelword=no
16018 if test $in_tree_gas = yes; then
16019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16020 then gcc_cv_as_mips_dtprelword=yes
16022 elif test x$gcc_cv_as != x; then
16023 echo '.section .tdata,"awT",@progbits
16027 .dtprelword x+0x8000' > conftest.s
16028 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }
16035 gcc_cv_as_mips_dtprelword=yes
16037 echo "configure: failed program was" >&5
16040 rm -f conftest.o conftest.s
16043 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16044 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
16045 if test $gcc_cv_as_mips_dtprelword = yes; then
16047 cat >>confdefs.h <<\_ACEOF
16048 #define HAVE_AS_DTPRELWORD 1
16055 # Mips and HP-UX need the GNU assembler.
16056 # Linux on IA64 might be able to use the Intel assembler.
16059 mips*-*-* | *-*-hpux* )
16060 if test x$gas_flag = xyes \
16061 || test x"$host" != x"$build" \
16062 || test ! -x "$gcc_cv_as" \
16063 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16066 echo "*** This configuration requires the GNU assembler" >&2
16072 # ??? Not all targets support dwarf2 debug_line, even within a version
16073 # of gas. Moreover, we need to emit a valid instruction to trigger any
16074 # info to the output file. So, as supported targets are added to gas 2.11,
16075 # add some instruction here to (also) show we expect this might work.
16076 # ??? Once 2.11 is released, probably need to add first known working
16077 # version to the per-target configury.
16079 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16080 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16081 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16084 ia64*-*-* | s390*-*-*)
16091 if test x"$insn" != x; then
16093 .file 1 \"conftest.s\"
16096 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16097 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16098 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 gcc_cv_as_dwarf2_debug_line=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_dwarf2_debug_line=yes
16107 elif test x$gcc_cv_as != x; then
16108 echo "$conftest_s" > conftest.s
16109 if { ac_try='$gcc_cv_as -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 if test x$gcc_cv_objdump != x \
16117 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16118 | grep debug_line > /dev/null 2>&1; then
16119 gcc_cv_as_dwarf2_debug_line=yes
16122 echo "configure: failed program was" >&5
16125 rm -f conftest.o conftest.s
16128 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16129 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16132 # The .debug_line file table must be in the exact order that
16133 # we specified the files, since these indices are also used
16134 # by DW_AT_decl_file. Approximate this test by testing if
16135 # the assembler bitches if the same index is assigned twice.
16136 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16137 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16138 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 gcc_cv_as_dwarf2_file_buggy=no
16142 if test x$gcc_cv_as != x; then
16143 echo ' .file 1 "foo.s"
16144 .file 1 "bar.s"' > conftest.s
16145 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }
16152 gcc_cv_as_dwarf2_file_buggy=yes
16154 echo "configure: failed program was" >&5
16157 rm -f conftest.o conftest.s
16160 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16161 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16164 if test $gcc_cv_as_dwarf2_debug_line = yes \
16165 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16167 cat >>confdefs.h <<\_ACEOF
16168 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16173 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16174 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16175 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16178 gcc_cv_as_gdwarf2_flag=no
16179 if test $in_tree_gas = yes; then
16180 if test $in_tree_gas_is_elf = yes \
16181 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16182 then gcc_cv_as_gdwarf2_flag=yes
16184 elif test x$gcc_cv_as != x; then
16185 echo "$insn" > conftest.s
16186 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; }
16193 gcc_cv_as_gdwarf2_flag=yes
16195 echo "configure: failed program was" >&5
16198 rm -f conftest.o conftest.s
16201 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16202 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16203 if test $gcc_cv_as_gdwarf2_flag = yes; then
16205 cat >>confdefs.h <<\_ACEOF
16206 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16211 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16212 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16213 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16216 gcc_cv_as_gstabs_flag=no
16217 if test $in_tree_gas = yes; then
16218 if test $in_tree_gas_is_elf = yes \
16219 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16220 then gcc_cv_as_gstabs_flag=yes
16222 elif test x$gcc_cv_as != x; then
16223 echo "$insn" > conftest.s
16224 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }
16231 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16232 # and warns about it, but still exits successfully. So check for
16234 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }
16241 else gcc_cv_as_gstabs_flag=yes
16244 echo "configure: failed program was" >&5
16247 rm -f conftest.o conftest.s
16250 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16251 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16252 if test $gcc_cv_as_gstabs_flag = yes; then
16254 cat >>confdefs.h <<\_ACEOF
16255 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16260 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16261 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
16262 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 gcc_cv_as_debug_prefix_map_flag=no
16266 if test $in_tree_gas = yes; then
16267 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16268 then gcc_cv_as_debug_prefix_map_flag=yes
16270 elif test x$gcc_cv_as != x; then
16271 echo "$insn" > conftest.s
16272 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; }
16279 gcc_cv_as_debug_prefix_map_flag=yes
16281 echo "configure: failed program was" >&5
16284 rm -f conftest.o conftest.s
16287 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16288 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
16289 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16291 cat >>confdefs.h <<\_ACEOF
16292 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16298 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16299 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16300 if test "${gcc_cv_as_line_zero+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 gcc_cv_as_line_zero=no
16304 if test $in_tree_gas = yes; then
16305 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16306 then gcc_cv_as_line_zero=yes
16308 elif test "x$gcc_cv_as" != x; then
16309 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16310 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 test "x`cat conftest.out`" = x
16318 gcc_cv_as_line_zero=yes
16320 echo "configure: failed program was" >&5
16322 echo "configure: error output was" >&5
16323 cat conftest.out >&5
16325 rm -f conftest.o conftest.s conftest.out
16328 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16329 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16330 if test "x$gcc_cv_as_line_zero" = xyes; then
16332 cat >>confdefs.h <<\_ACEOF
16333 #define HAVE_AS_LINE_ZERO 1
16338 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16339 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16340 gcc_cv_ld_ro_rw_mix=unknown
16341 if test $in_tree_ld = yes ; then
16342 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 \
16343 && test $in_tree_ld_is_elf = yes; then
16344 gcc_cv_ld_ro_rw_mix=read-write
16346 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16347 echo '.section myfoosect, "a"' > conftest1.s
16348 echo '.section myfoosect, "aw"' > conftest2.s
16349 echo '.byte 1' >> conftest2.s
16350 echo '.section myfoosect, "a"' > conftest3.s
16351 echo '.byte 0' >> conftest3.s
16352 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16353 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16354 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16355 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16356 conftest2.o conftest3.o > /dev/null 2>&1; then
16357 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16358 | sed -e '/myfoosect/!d' -e N`
16359 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16360 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16361 gcc_cv_ld_ro_rw_mix=read-only
16363 gcc_cv_ld_ro_rw_mix=read-write
16367 rm -f conftest.* conftest[123].*
16369 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16376 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16377 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16379 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16380 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16381 gcc_cv_ld_eh_frame_hdr=no
16382 if test $in_tree_ld = yes ; then
16383 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 \
16384 && test $in_tree_ld_is_elf = yes; then
16385 gcc_cv_ld_eh_frame_hdr=yes
16387 elif test x$gcc_cv_ld != x; then
16388 # Check if linker supports --eh-frame-hdr option
16389 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16390 gcc_cv_ld_eh_frame_hdr=yes
16394 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16396 cat >>confdefs.h <<\_ACEOF
16397 #define HAVE_LD_EH_FRAME_HDR 1
16401 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16402 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16404 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16405 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
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 15 -o "$gcc_cv_gld_major_version" -gt 2 \
16409 && test $in_tree_ld_is_elf = yes; then
16412 elif test x$gcc_cv_ld != x; then
16413 # Check if linker supports -pie option
16414 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16418 if test x"$gcc_cv_ld_pie" = xyes; then
16420 cat >>confdefs.h <<\_ACEOF
16421 #define HAVE_LD_PIE 1
16425 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16426 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16428 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16429 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16430 gcc_cv_ld_eh_gc_sections=no
16431 if test $in_tree_ld = yes ; then
16432 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 \
16433 && test $in_tree_ld_is_elf = yes; then
16434 gcc_cv_ld_eh_gc_sections=yes
16436 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16437 cat > conftest.s <<EOF
16440 .type _start, @function
16443 .size _start, .-_start
16444 .section .text.foo,"ax",@progbits
16445 .type foo, @function
16449 .section .gcc_except_table.foo,"a",@progbits
16452 .section .eh_frame,"a",@progbits
16455 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16456 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16457 | grep "gc-sections option ignored" > /dev/null; then
16458 gcc_cv_ld_eh_gc_sections=no
16459 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16460 gcc_cv_ld_eh_gc_sections=yes
16461 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16462 if test x$gcc_cv_as_comdat_group != xyes; then
16463 gcc_cv_ld_eh_gc_sections=no
16464 cat > conftest.s <<EOF
16467 .type _start, @function
16470 .size _start, .-_start
16471 .section .gnu.linkonce.t.foo,"ax",@progbits
16472 .type foo, @function
16476 .section .gcc_except_table.foo,"a",@progbits
16479 .section .eh_frame,"a",@progbits
16482 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16483 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16484 | grep "gc-sections option ignored" > /dev/null; then
16485 gcc_cv_ld_eh_gc_sections=no
16486 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16487 gcc_cv_ld_eh_gc_sections=yes
16493 rm -f conftest.s conftest.o conftest
16497 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16498 gcc_cv_ld_eh_gc_sections=no
16501 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16503 cat >>confdefs.h <<\_ACEOF
16504 #define HAVE_LD_EH_GC_SECTIONS 1
16508 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16509 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16515 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16516 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16517 if test "${gcc_cv_ld_as_needed+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 gcc_cv_ld_as_needed=no
16521 if test $in_tree_ld = yes ; then
16522 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 \
16523 && test $in_tree_ld_is_elf = yes; then
16524 gcc_cv_ld_as_needed=yes
16526 elif test x$gcc_cv_ld != x; then
16527 # Check if linker supports --as-needed and --no-as-needed options
16528 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16529 gcc_cv_ld_as_needed=yes
16534 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16535 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16536 if test x"$gcc_cv_ld_as_needed" = xyes; then
16538 cat >>confdefs.h <<\_ACEOF
16539 #define HAVE_LD_AS_NEEDED 1
16544 case "$target:$tm_file" in
16545 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16546 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16547 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16548 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16551 gcc_cv_ld_no_dot_syms=no
16552 if test $in_tree_ld = yes ; then
16553 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
16554 gcc_cv_ld_no_dot_syms=yes
16556 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16557 cat > conftest1.s <<EOF
16561 cat > conftest2.s <<EOF
16562 .section ".opd","aw"
16565 .type foo,@function
16567 .quad .LEfoo,.TOC.@tocbase,0
16573 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16574 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16575 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16576 gcc_cv_ld_no_dot_syms=yes
16578 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16582 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16583 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16584 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16586 cat >>confdefs.h <<\_ACEOF
16587 #define HAVE_LD_NO_DOT_SYMS 1
16594 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16595 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16596 if test "${gcc_cv_ld_sysroot+set}" = set; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16599 gcc_cv_ld_sysroot=no
16600 if test $in_tree_ld = yes ; then
16601 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
16602 gcc_cv_ld_sysroot=yes
16604 elif test x$gcc_cv_ld != x; then
16605 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16606 gcc_cv_ld_sysroot=yes
16610 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16611 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16612 if test x"$gcc_cv_ld_sysroot" = xyes; then
16614 cat >>confdefs.h <<\_ACEOF
16615 #define HAVE_LD_SYSROOT 1
16620 if test x$with_sysroot = x && test x$host = x$target \
16621 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16622 && test "$prefix" != "NONE"; then
16624 cat >>confdefs.h <<_ACEOF
16625 #define PREFIX_INCLUDE_DIR "$prefix/include"
16630 # Test for stack protector support in target C library.
16631 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16632 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16633 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16636 gcc_cv_libc_provides_ssp=no
16639 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16640 if test "x$with_sysroot" = x; then
16641 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16642 elif test "x$with_build_sysroot" != "x"; then
16643 glibc_header_dir="${with_build_sysroot}/usr/include"
16644 elif test "x$with_sysroot" = xyes; then
16645 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16647 glibc_header_dir="${with_sysroot}/usr/include"
16650 glibc_header_dir=/usr/include
16652 # glibc 2.4 and later provides __stack_chk_fail and
16653 # either __stack_chk_guard, or TLS access to stack guard canary.
16654 if test -f $glibc_header_dir/features.h \
16655 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16656 $glibc_header_dir/features.h > /dev/null; then
16657 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16658 $glibc_header_dir/features.h > /dev/null; then
16659 gcc_cv_libc_provides_ssp=yes
16660 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16661 $glibc_header_dir/features.h > /dev/null \
16662 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16663 $glibc_header_dir/features.h > /dev/null; then
16664 gcc_cv_libc_provides_ssp=yes
16669 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16670 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16671 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 cat >conftest.$ac_ext <<_ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16682 #define __stack_chk_fail innocuous___stack_chk_fail
16684 /* System header to define __stub macros and hopefully few prototypes,
16685 which can conflict with char __stack_chk_fail (); below.
16686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16687 <limits.h> exists even on freestanding compilers. */
16690 # include <limits.h>
16692 # include <assert.h>
16695 #undef __stack_chk_fail
16697 /* Override any gcc2 internal prototype to avoid an error. */
16702 /* We use char because int might match the return type of a gcc2
16703 builtin and then its argument prototype would still apply. */
16704 char __stack_chk_fail ();
16705 /* The GNU C library defines this for functions which it implements
16706 to always fail with ENOSYS. Some functions are actually named
16707 something starting with __ and the normal name is an alias. */
16708 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16711 char (*f) () = __stack_chk_fail;
16720 return f != __stack_chk_fail;
16725 rm -f conftest.$ac_objext conftest$ac_exeext
16726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16727 (eval $ac_link) 2>conftest.er1
16729 grep -v '^ *+' conftest.er1 >conftest.err
16731 cat conftest.err >&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -z "$ac_c_werror_flag"
16735 || test ! -s conftest.err'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 { ac_try='test -s conftest$ac_exeext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_func___stack_chk_fail=yes
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_cv_func___stack_chk_fail=no
16754 rm -f conftest.err conftest.$ac_objext \
16755 conftest$ac_exeext conftest.$ac_ext
16757 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16758 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16759 if test $ac_cv_func___stack_chk_fail = yes; then
16760 gcc_cv_libc_provides_ssp=yes
16762 echo "no __stack_chk_fail on this target"
16766 *) gcc_cv_libc_provides_ssp=no ;;
16769 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16770 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16772 if test x$gcc_cv_libc_provides_ssp = xyes; then
16774 cat >>confdefs.h <<\_ACEOF
16775 #define TARGET_LIBC_PROVIDES_SSP 1
16780 # Check if TFmode long double should be used by default or not.
16781 # Some glibc targets used DFmode long double, but with glibc 2.4
16782 # and later they can use TFmode.
16784 powerpc*-*-linux* | \
16785 powerpc*-*-gnu* | \
16786 sparc*-*-linux* | \
16790 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16791 if test "${with_long_double_128+set}" = set; then
16792 withval="$with_long_double_128"
16793 gcc_cv_target_ldbl128="$with_long_double_128"
16795 gcc_cv_target_ldbl128=no
16796 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16797 if test "x$with_sysroot" = x; then
16798 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16799 elif test "x$with_build_sysroot" != "x"; then
16800 glibc_header_dir="${with_build_sysroot}/usr/include"
16801 elif test "x$with_sysroot" = xyes; then
16802 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16804 glibc_header_dir="${with_sysroot}/usr/include"
16807 glibc_header_dir=/usr/include
16809 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16810 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16811 && gcc_cv_target_ldbl128=yes
16816 if test x$gcc_cv_target_ldbl128 = xyes; then
16818 cat >>confdefs.h <<\_ACEOF
16819 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16824 # Find out what GC implementation we want, or may, use.
16826 # Check whether --with-gc or --without-gc was given.
16827 if test "${with_gc+set}" = set; then
16836 cat >>confdefs.h <<\_ACEOF
16842 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16843 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16844 { (exit 1); exit 1; }; }
16851 echo "Using $GGC for garbage collection."
16853 # Use the system's zlib library.
16855 zlibinc="-I\$(srcdir)/../zlib"
16857 # Check whether --with-system-zlib or --without-system-zlib was given.
16858 if test "${with_system_zlib+set}" = set; then
16859 withval="$with_system_zlib"
16868 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16869 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16870 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16871 if test "${enable_maintainer_mode+set}" = set; then
16872 enableval="$enable_maintainer_mode"
16873 maintainer_mode=$enableval
16878 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16879 echo "${ECHO_T}$maintainer_mode" >&6
16881 if test "$maintainer_mode" = "yes"; then
16891 # Make empty files to contain the specs and options for each language.
16892 # Then add #include lines to for a compiler that has specs and/or options.
16898 # These (without "all_") are set in each config-lang.in.
16899 # `language' must be a single word so is spelled singularly.
16902 all_outputs='Makefile gccbug libada-mk'
16903 # List of language makefile fragments.
16904 all_lang_makefrags=
16905 # List of language subdirectory makefiles. Deprecated.
16906 all_lang_makefiles=
16907 # Additional files for gengtype
16908 all_gtfiles="$target_gtfiles"
16910 # These are the languages that are set in --enable-languages,
16911 # and are available in the GCC tree.
16912 all_selected_languages=
16914 # Add the language fragments.
16915 # Languages are added via two mechanisms. Some information must be
16916 # recorded in makefile variables, these are defined in config-lang.in.
16917 # We accumulate them and plug them into the main Makefile.
16918 # The other mechanism is a set of hooks for each of the main targets
16919 # like `clean', `install', etc.
16921 language_hooks="Make-hooks"
16923 for lang in ${srcdir}/*/config-lang.in
16925 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16927 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16928 if test "x$lang_alias" = x
16930 echo "$lang doesn't set \$language." 1>&2
16933 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16934 subdirs="$subdirs $subdir"
16935 case ",$enable_languages," in
16937 all_selected_languages="$all_selected_languages $lang_alias"
16938 if test -f $srcdir/$subdir/lang-specs.h; then
16939 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16950 . ${srcdir}/$subdir/config-lang.in
16951 if test "x$language" = x
16953 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16958 case ",$enable_languages," in
16959 *,$lang_alias,*) ;;
16961 for i in $subdir_requires; do
16962 test -f "${srcdir}/$i/config-lang.in" && continue
16970 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16971 if test -f $srcdir/$subdir/lang.opt; then
16972 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16974 if test -f $srcdir/$subdir/$subdir-tree.def; then
16975 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16977 if test -f ${srcdir}/$subdir/Makefile.in
16978 then all_lang_makefiles="$subdir/Makefile"
16980 all_languages="$all_languages $language"
16981 all_compilers="$all_compilers $compilers"
16982 all_outputs="$all_outputs $outputs"
16983 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
16986 # Pick up gtfiles for c
16988 . ${srcdir}/c-config-lang.in
16989 all_gtfiles="$all_gtfiles [c] $gtfiles"
16992 for language in $all_selected_languages
16994 check_languages="$check_languages check-$language"
16997 # We link each language in with a set of hooks, reached indirectly via
16998 # lang.${target}. Only do so for selected languages.
17002 target_list="all.cross start.encap rest.encap tags \
17003 install-common install-man install-info install-pdf dvi pdf \
17004 html uninstall info man srcextra srcman srcinfo \
17005 mostlyclean clean distclean maintainer-clean"
17007 for t in $target_list
17010 for lang in $all_selected_languages
17014 echo "lang.$t: $x" >> Make-hooks
17023 echo "dir ." > .gdbinit
17024 echo "dir ${srcdir}" >> .gdbinit
17025 if test x$gdb_needs_out_file_path = xyes
17027 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17029 if test "x$subdirs" != x; then
17032 echo "dir ${srcdir}/$s" >> .gdbinit
17035 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17037 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17041 # Find a directory in which to install a shared libgcc.
17043 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17044 if test "${enable_version_specific_runtime_libs+set}" = set; then
17045 enableval="$enable_version_specific_runtime_libs"
17050 # Check whether --with-slibdir or --without-slibdir was given.
17051 if test "${with_slibdir+set}" = set; then
17052 withval="$with_slibdir"
17053 slibdir="$with_slibdir"
17055 if test "${enable_version_specific_runtime_libs+set}" = set; then
17056 slibdir='$(libsubdir)'
17057 elif test "$host" != "$target"; then
17058 slibdir='$(build_tooldir)/lib'
17060 slibdir='$(libdir)'
17065 objdir=`${PWDCMD-pwd}`
17069 # Check whether --with-datarootdir or --without-datarootdir was given.
17070 if test "${with_datarootdir+set}" = set; then
17071 withval="$with_datarootdir"
17072 datarootdir="\${prefix}/$with_datarootdir"
17074 datarootdir='$(prefix)/share'
17079 # Check whether --with-docdir or --without-docdir was given.
17080 if test "${with_docdir+set}" = set; then
17081 withval="$with_docdir"
17082 docdir="\${prefix}/$with_docdir"
17084 docdir='$(datarootdir)'
17089 # Check whether --with-htmldir or --without-htmldir was given.
17090 if test "${with_htmldir+set}" = set; then
17091 withval="$with_htmldir"
17092 htmldir="\${prefix}/$with_htmldir"
17094 htmldir='$(docdir)'
17098 # Substitute configuration variables
17155 if test x${build} = x${host} ; then
17156 if test x${host} = x${target} ; then
17157 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17159 echo "Links are now set up to build a cross-compiler" 1>&2
17160 echo " from ${host} to ${target}." 1>&2
17163 if test x${host} = x${target} ; then
17164 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17165 echo " for ${target}." 1>&2
17167 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17168 echo " from ${host} to ${target}." 1>&2
17175 # Configure the subdirectories
17176 # AC_CONFIG_SUBDIRS($subdirs)
17178 # Create the Makefile
17179 # and configure language subdirectories
17180 ac_config_files="$ac_config_files $all_outputs"
17183 ac_config_commands="$ac_config_commands default"
17185 cat >confcache <<\_ACEOF
17186 # This file is a shell script that caches the results of configure
17187 # tests run on this system so they can be shared between configure
17188 # scripts and configure runs, see configure's option --config-cache.
17189 # It is not useful on other systems. If it contains results you don't
17190 # want to keep, you may remove or edit it.
17192 # config.status only pays attention to the cache file if you give it
17193 # the --recheck option to rerun configure.
17195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17197 # following values.
17201 # The following way of writing the cache mishandles newlines in values,
17202 # but we know of no workaround that is simple, portable, and efficient.
17203 # So, don't put newlines in cache variables' values.
17204 # Ultrix sh set writes to stderr and can't be redirected directly,
17205 # and sets the high bit in the cache file unless we assign to the vars.
17208 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17210 # `set' does not quote correctly, so add quotes (double-quote
17211 # substitution turns \\\\ into \\, and sed turns \\ into \).
17214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17217 # `set' quotes correctly as required by POSIX, so do not add quotes.
17219 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17226 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17228 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17230 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17231 if test -w $cache_file; then
17232 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17233 cat confcache >$cache_file
17235 echo "not updating unwritable cache $cache_file"
17240 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17241 # Let make expand exec_prefix.
17242 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17244 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17245 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17246 # trailing colons and then remove the whole line if VPATH becomes empty
17247 # (actually we leave an empty line to preserve line numbers).
17248 if test "x$srcdir" = x.; then
17249 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17250 s/:*\$(srcdir):*/:/;
17251 s/:*\${srcdir}:*/:/;
17253 s/^\([^=]*=[ ]*\):*/\1/;
17259 DEFS=-DHAVE_CONFIG_H
17263 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17264 # 1. Remove the extension, and $U if already installed.
17265 ac_i=`echo "$ac_i" |
17266 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17268 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17269 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17271 LIBOBJS=$ac_libobjs
17273 LTLIBOBJS=$ac_ltlibobjs
17277 : ${CONFIG_STATUS=./config.status}
17278 ac_clean_files_save=$ac_clean_files
17279 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17280 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17281 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17282 cat >$CONFIG_STATUS <<_ACEOF
17284 # Generated by $as_me.
17285 # Run this file to recreate the current configuration.
17286 # Compiler output produced by configure, useful for debugging
17287 # configure, is in config.log if it exists.
17290 ac_cs_recheck=false
17292 SHELL=\${CONFIG_SHELL-$SHELL}
17295 cat >>$CONFIG_STATUS <<\_ACEOF
17296 ## --------------------- ##
17297 ## M4sh Initialization. ##
17298 ## --------------------- ##
17300 # Be Bourne compatible
17301 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17304 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17305 # is contrary to our usage. Disable this feature.
17306 alias -g '${1+"$@"}'='"$@"'
17307 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17310 DUALCASE=1; export DUALCASE # for MKS sh
17312 # Support unset when possible.
17313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17320 # Work around bugs in pre-3.0 UWIN ksh.
17321 $as_unset ENV MAIL MAILPATH
17328 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17329 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17330 LC_TELEPHONE LC_TIME
17332 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17333 eval $as_var=C; export $as_var
17339 # Required to use basename.
17340 if expr a : '\(a\)' >/dev/null 2>&1; then
17346 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17347 as_basename=basename
17353 # Name of the executable.
17354 as_me=`$as_basename "$0" ||
17355 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17356 X"$0" : 'X\(//\)$' \| \
17357 X"$0" : 'X\(/\)$' \| \
17358 . : '\(.\)' 2>/dev/null ||
17360 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17361 /^X\/\(\/\/\)$/{ s//\1/; q; }
17362 /^X\/\(\/\).*/{ s//\1/; q; }
17366 # PATH needs CR, and LINENO needs CR and PATH.
17367 # Avoid depending upon Character Ranges.
17368 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17369 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17370 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17371 as_cr_digits='0123456789'
17372 as_cr_alnum=$as_cr_Letters$as_cr_digits
17374 # The user is always right.
17375 if test "${PATH_SEPARATOR+set}" != set; then
17376 echo "#! /bin/sh" >conf$$.sh
17377 echo "exit 0" >>conf$$.sh
17379 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17388 as_lineno_1=$LINENO
17389 as_lineno_2=$LINENO
17390 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17391 test "x$as_lineno_1" != "x$as_lineno_2" &&
17392 test "x$as_lineno_3" = "x$as_lineno_2" || {
17393 # Find who we are. Look in the path if we contain no path at all
17396 *[\\/]* ) as_myself=$0 ;;
17397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17398 for as_dir in $PATH
17401 test -z "$as_dir" && as_dir=.
17402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17407 # We did not find ourselves, most probably we were run as `sh COMMAND'
17408 # in which case we are not to be found in the path.
17409 if test "x$as_myself" = x; then
17412 if test ! -f "$as_myself"; then
17413 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17414 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17415 { (exit 1); exit 1; }; }
17417 case $CONFIG_SHELL in
17419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17420 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17423 test -z "$as_dir" && as_dir=.
17424 for as_base in sh bash ksh sh5; do
17427 if ("$as_dir/$as_base" -c '
17428 as_lineno_1=$LINENO
17429 as_lineno_2=$LINENO
17430 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17431 test "x$as_lineno_1" != "x$as_lineno_2" &&
17432 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17433 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17434 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17435 CONFIG_SHELL=$as_dir/$as_base
17436 export CONFIG_SHELL
17437 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17445 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17446 # uniformly replaced by the line number. The first 'sed' inserts a
17447 # line-number line before each line; the second 'sed' does the real
17448 # work. The second script uses 'N' to pair each line-number line
17449 # with the numbered line, and appends trailing '-' during
17450 # substitution so that $LINENO is not a special case at line end.
17451 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17452 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17453 sed '=' <$as_myself |
17458 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17461 s,^['$as_cr_digits']*\n,,
17462 ' >$as_me.lineno &&
17463 chmod +x $as_me.lineno ||
17464 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17465 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17466 { (exit 1); exit 1; }; }
17468 # Don't try to exec as it changes $[0], causing all sort of problems
17469 # (the dirname of $[0] is not the place where we might find the
17470 # original and so on. Autoconf is especially sensible to this).
17472 # Exit status is that of the last command.
17477 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17478 *c*,-n*) ECHO_N= ECHO_C='
17480 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17481 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17484 if expr a : '\(a\)' >/dev/null 2>&1; then
17490 rm -f conf$$ conf$$.exe conf$$.file
17492 if ln -s conf$$.file conf$$ 2>/dev/null; then
17493 # We could just check for DJGPP; but this test a) works b) is more generic
17494 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17495 if test -f conf$$.exe; then
17496 # Don't use ln at all; we don't have any links
17501 elif ln conf$$.file conf$$ 2>/dev/null; then
17506 rm -f conf$$ conf$$.exe conf$$.file
17508 if mkdir -p . 2>/dev/null; then
17511 test -d ./-p && rmdir ./-p
17515 as_executable_p="test -f"
17517 # Sed expression to map a string onto a valid CPP name.
17518 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17520 # Sed expression to map a string onto a valid variable name.
17521 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17525 # We need space, tab and new line, in precisely that order.
17535 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17536 # report actual input values of CONFIG_FILES etc. instead of their
17537 # values after options handling. Logging --version etc. is OK.
17541 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17542 ## Running $as_me. ##
17547 This file was extended by $as_me, which was
17548 generated by GNU Autoconf 2.59. Invocation command line was
17550 CONFIG_FILES = $CONFIG_FILES
17551 CONFIG_HEADERS = $CONFIG_HEADERS
17552 CONFIG_LINKS = $CONFIG_LINKS
17553 CONFIG_COMMANDS = $CONFIG_COMMANDS
17557 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17561 # Files that config.status was made for.
17562 if test -n "$ac_config_files"; then
17563 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17566 if test -n "$ac_config_headers"; then
17567 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17570 if test -n "$ac_config_links"; then
17571 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17574 if test -n "$ac_config_commands"; then
17575 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17578 cat >>$CONFIG_STATUS <<\_ACEOF
17581 \`$as_me' instantiates files from templates according to the
17582 current configuration.
17584 Usage: $0 [OPTIONS] [FILE]...
17586 -h, --help print this help, then exit
17587 -V, --version print version number, then exit
17588 -q, --quiet do not print progress messages
17589 -d, --debug don't remove temporary files
17590 --recheck update $as_me by reconfiguring in the same conditions
17591 --file=FILE[:TEMPLATE]
17592 instantiate the configuration file FILE
17593 --header=FILE[:TEMPLATE]
17594 instantiate the configuration header FILE
17596 Configuration files:
17599 Configuration headers:
17602 Configuration commands:
17605 Report bugs to <bug-autoconf@gnu.org>."
17608 cat >>$CONFIG_STATUS <<_ACEOF
17611 configured by $0, generated by GNU Autoconf 2.59,
17612 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17614 Copyright (C) 2003 Free Software Foundation, Inc.
17615 This config.status script is free software; the Free Software Foundation
17616 gives unlimited permission to copy, distribute and modify it."
17620 cat >>$CONFIG_STATUS <<\_ACEOF
17621 # If no file are specified by the user, then we need to provide default
17622 # value. By we need to know if files were specified by the user.
17628 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17629 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17637 *) # This is not an option, so the user has probably given explicit
17640 ac_need_defaults=false;;
17644 # Handling of the options.
17646 cat >>$CONFIG_STATUS <<\_ACEOF
17647 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17649 --version | --vers* | -V )
17650 echo "$ac_cs_version"; exit 0 ;;
17652 # Conflict between --help and --header
17653 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17654 Try \`$0 --help' for more information." >&5
17655 echo "$as_me: error: ambiguous option: $1
17656 Try \`$0 --help' for more information." >&2;}
17657 { (exit 1); exit 1; }; };;
17658 --help | --hel | -h )
17659 echo "$ac_cs_usage"; exit 0 ;;
17660 --debug | --d* | -d )
17662 --file | --fil | --fi | --f )
17664 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17665 ac_need_defaults=false;;
17666 --header | --heade | --head | --hea )
17668 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17669 ac_need_defaults=false;;
17670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17671 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17674 # This is an error.
17675 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17676 Try \`$0 --help' for more information." >&5
17677 echo "$as_me: error: unrecognized option: $1
17678 Try \`$0 --help' for more information." >&2;}
17679 { (exit 1); exit 1; }; } ;;
17681 *) ac_config_targets="$ac_config_targets $1" ;;
17687 ac_configure_extra_args=
17689 if $ac_cs_silent; then
17691 ac_configure_extra_args="$ac_configure_extra_args --silent"
17695 cat >>$CONFIG_STATUS <<_ACEOF
17696 if \$ac_cs_recheck; then
17697 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17698 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17703 cat >>$CONFIG_STATUS <<_ACEOF
17705 # INIT-COMMANDS section.
17714 cat >>$CONFIG_STATUS <<\_ACEOF
17715 for ac_config_target in $ac_config_targets
17717 case "$ac_config_target" in
17718 # Handling of arguments.
17719 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
17720 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17721 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
17722 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17723 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17724 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17725 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17726 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17727 { (exit 1); exit 1; }; };;
17731 # If the user did not use the arguments to specify the items to instantiate,
17732 # then the envvar interface is used. Set only those that are not.
17733 # We use the long form for the default assignment because of an extremely
17734 # bizarre bug on SunOS 4.1.3.
17735 if $ac_need_defaults; then
17736 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17737 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17738 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17741 # Have a temporary directory for convenience. Make it in the build tree
17742 # simply because there is no reason to put it here, and in addition,
17743 # creating and moving files from /tmp can sometimes cause problems.
17744 # Create a temporary directory, and hook for its removal unless debugging.
17747 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17748 trap '{ (exit 1); exit 1; }' 1 2 13 15
17751 # Create a (secure) tmp directory for tmp files.
17754 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17755 test -n "$tmp" && test -d "$tmp"
17758 tmp=./confstat$$-$RANDOM
17759 (umask 077 && mkdir $tmp)
17762 echo "$me: cannot create a temporary directory in ." >&2
17763 { (exit 1); exit 1; }
17768 cat >>$CONFIG_STATUS <<_ACEOF
17771 # CONFIG_FILES section.
17774 # No need to generate the scripts if there are no CONFIG_FILES.
17775 # This happens for instance when ./config.status config.h
17776 if test -n "\$CONFIG_FILES"; then
17777 # Protect against being on the right side of a sed subst in config.status.
17778 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17779 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17780 s,@SHELL@,$SHELL,;t t
17781 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17782 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17783 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17784 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17785 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17786 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17787 s,@exec_prefix@,$exec_prefix,;t t
17788 s,@prefix@,$prefix,;t t
17789 s,@program_transform_name@,$program_transform_name,;t t
17790 s,@bindir@,$bindir,;t t
17791 s,@sbindir@,$sbindir,;t t
17792 s,@libexecdir@,$libexecdir,;t t
17793 s,@datadir@,$datadir,;t t
17794 s,@sysconfdir@,$sysconfdir,;t t
17795 s,@sharedstatedir@,$sharedstatedir,;t t
17796 s,@localstatedir@,$localstatedir,;t t
17797 s,@libdir@,$libdir,;t t
17798 s,@includedir@,$includedir,;t t
17799 s,@oldincludedir@,$oldincludedir,;t t
17800 s,@infodir@,$infodir,;t t
17801 s,@mandir@,$mandir,;t t
17802 s,@build_alias@,$build_alias,;t t
17803 s,@host_alias@,$host_alias,;t t
17804 s,@target_alias@,$target_alias,;t t
17805 s,@DEFS@,$DEFS,;t t
17806 s,@ECHO_C@,$ECHO_C,;t t
17807 s,@ECHO_N@,$ECHO_N,;t t
17808 s,@ECHO_T@,$ECHO_T,;t t
17809 s,@LIBS@,$LIBS,;t t
17810 s,@build@,$build,;t t
17811 s,@build_cpu@,$build_cpu,;t t
17812 s,@build_vendor@,$build_vendor,;t t
17813 s,@build_os@,$build_os,;t t
17814 s,@host@,$host,;t t
17815 s,@host_cpu@,$host_cpu,;t t
17816 s,@host_vendor@,$host_vendor,;t t
17817 s,@host_os@,$host_os,;t t
17818 s,@target@,$target,;t t
17819 s,@target_cpu@,$target_cpu,;t t
17820 s,@target_vendor@,$target_vendor,;t t
17821 s,@target_os@,$target_os,;t t
17822 s,@target_noncanonical@,$target_noncanonical,;t t
17823 s,@build_libsubdir@,$build_libsubdir,;t t
17824 s,@build_subdir@,$build_subdir,;t t
17825 s,@host_subdir@,$host_subdir,;t t
17826 s,@target_subdir@,$target_subdir,;t t
17827 s,@GENINSRC@,$GENINSRC,;t t
17829 s,@CFLAGS@,$CFLAGS,;t t
17830 s,@LDFLAGS@,$LDFLAGS,;t t
17831 s,@CPPFLAGS@,$CPPFLAGS,;t t
17832 s,@ac_ct_CC@,$ac_ct_CC,;t t
17833 s,@EXEEXT@,$EXEEXT,;t t
17834 s,@OBJEXT@,$OBJEXT,;t t
17835 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17836 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17838 s,@EGREP@,$EGREP,;t t
17839 s,@loose_warn@,$loose_warn,;t t
17840 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17841 s,@strict_warn@,$strict_warn,;t t
17842 s,@warn_cflags@,$warn_cflags,;t t
17843 s,@nocommon_flag@,$nocommon_flag,;t t
17844 s,@TREEBROWSER@,$TREEBROWSER,;t t
17845 s,@valgrind_path@,$valgrind_path,;t t
17846 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17847 s,@valgrind_command@,$valgrind_command,;t t
17848 s,@coverage_flags@,$coverage_flags,;t t
17849 s,@enable_multilib@,$enable_multilib,;t t
17850 s,@enable_decimal_float@,$enable_decimal_float,;t t
17851 s,@enable_fixed_point@,$enable_fixed_point,;t t
17852 s,@enable_shared@,$enable_shared,;t t
17853 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17854 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17855 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17856 s,@onestep@,$onestep,;t t
17857 s,@PKGVERSION@,$PKGVERSION,;t t
17858 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
17859 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
17860 s,@datarootdir@,$datarootdir,;t t
17861 s,@docdir@,$docdir,;t t
17862 s,@htmldir@,$htmldir,;t t
17863 s,@SET_MAKE@,$SET_MAKE,;t t
17865 s,@LN_S@,$LN_S,;t t
17867 s,@RANLIB@,$RANLIB,;t t
17868 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17869 s,@ranlib_flags@,$ranlib_flags,;t t
17870 s,@INSTALL@,$INSTALL,;t t
17871 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17872 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17873 s,@make_compare_target@,$make_compare_target,;t t
17874 s,@have_mktemp_command@,$have_mktemp_command,;t t
17875 s,@MAKEINFO@,$MAKEINFO,;t t
17876 s,@BUILD_INFO@,$BUILD_INFO,;t t
17877 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17878 s,@FLEX@,$FLEX,;t t
17879 s,@BISON@,$BISON,;t t
17882 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17883 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17884 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17885 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17886 s,@LIBICONV@,$LIBICONV,;t t
17887 s,@LTLIBICONV@,$LTLIBICONV,;t t
17888 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17889 s,@manext@,$manext,;t t
17890 s,@objext@,$objext,;t t
17891 s,@gthread_flags@,$gthread_flags,;t t
17892 s,@extra_modes_file@,$extra_modes_file,;t t
17893 s,@extra_opt_files@,$extra_opt_files,;t t
17894 s,@USE_NLS@,$USE_NLS,;t t
17895 s,@LIBINTL@,$LIBINTL,;t t
17896 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17897 s,@INCINTL@,$INCINTL,;t t
17898 s,@XGETTEXT@,$XGETTEXT,;t t
17899 s,@GMSGFMT@,$GMSGFMT,;t t
17900 s,@POSUB@,$POSUB,;t t
17901 s,@CATALOGS@,$CATALOGS,;t t
17902 s,@DATADIRNAME@,$DATADIRNAME,;t t
17903 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17904 s,@GENCAT@,$GENCAT,;t t
17905 s,@CATOBJEXT@,$CATOBJEXT,;t t
17906 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17907 s,@CROSS@,$CROSS,;t t
17909 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17910 s,@inhibit_libc@,$inhibit_libc,;t t
17911 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17912 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17913 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17914 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17915 s,@collect2@,$collect2,;t t
17916 s,@gcc_cv_as@,$gcc_cv_as,;t t
17917 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17918 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17919 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17920 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17921 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17922 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17923 s,@libgcc_visibility@,$libgcc_visibility,;t t
17925 s,@zlibdir@,$zlibdir,;t t
17926 s,@zlibinc@,$zlibinc,;t t
17927 s,@MAINT@,$MAINT,;t t
17928 s,@gcc_tooldir@,$gcc_tooldir,;t t
17929 s,@dollar@,$dollar,;t t
17930 s,@slibdir@,$slibdir,;t t
17931 s,@objdir@,$objdir,;t t
17932 s,@subdirs@,$subdirs,;t t
17933 s,@srcdir@,$srcdir,;t t
17934 s,@all_compilers@,$all_compilers,;t t
17935 s,@all_gtfiles@,$all_gtfiles,;t t
17936 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17937 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17938 s,@all_languages@,$all_languages,;t t
17939 s,@all_selected_languages@,$all_selected_languages,;t t
17940 s,@build_exeext@,$build_exeext,;t t
17941 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17942 s,@build_xm_file_list@,$build_xm_file_list,;t t
17943 s,@build_xm_include_list@,$build_xm_include_list,;t t
17944 s,@build_xm_defines@,$build_xm_defines,;t t
17945 s,@check_languages@,$check_languages,;t t
17946 s,@cpp_install_dir@,$cpp_install_dir,;t t
17947 s,@xmake_file@,$xmake_file,;t t
17948 s,@tmake_file@,$tmake_file,;t t
17949 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17950 s,@extra_headers_list@,$extra_headers_list,;t t
17951 s,@extra_objs@,$extra_objs,;t t
17952 s,@extra_parts@,$extra_parts,;t t
17953 s,@extra_passes@,$extra_passes,;t t
17954 s,@extra_programs@,$extra_programs,;t t
17955 s,@float_h_file@,$float_h_file,;t t
17956 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17957 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17958 s,@host_exeext@,$host_exeext,;t t
17959 s,@host_xm_file_list@,$host_xm_file_list,;t t
17960 s,@host_xm_include_list@,$host_xm_include_list,;t t
17961 s,@host_xm_defines@,$host_xm_defines,;t t
17962 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17963 s,@install@,$install,;t t
17964 s,@lang_opt_files@,$lang_opt_files,;t t
17965 s,@lang_specs_files@,$lang_specs_files,;t t
17966 s,@lang_tree_files@,$lang_tree_files,;t t
17967 s,@local_prefix@,$local_prefix,;t t
17968 s,@md_file@,$md_file,;t t
17969 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17970 s,@out_file@,$out_file,;t t
17971 s,@out_object_file@,$out_object_file,;t t
17972 s,@thread_file@,$thread_file,;t t
17973 s,@tm_file_list@,$tm_file_list,;t t
17974 s,@tm_include_list@,$tm_include_list,;t t
17975 s,@tm_defines@,$tm_defines,;t t
17976 s,@tm_p_file_list@,$tm_p_file_list,;t t
17977 s,@tm_p_include_list@,$tm_p_include_list,;t t
17978 s,@xm_file_list@,$xm_file_list,;t t
17979 s,@xm_include_list@,$xm_include_list,;t t
17980 s,@xm_defines@,$xm_defines,;t t
17981 s,@c_target_objs@,$c_target_objs,;t t
17982 s,@cxx_target_objs@,$cxx_target_objs,;t t
17983 s,@target_cpu_default@,$target_cpu_default,;t t
17984 s,@GMPLIBS@,$GMPLIBS,;t t
17985 s,@GMPINC@,$GMPINC,;t t
17986 s,@LIBOBJS@,$LIBOBJS,;t t
17987 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17988 /@language_hooks@/r $language_hooks
17989 s,@language_hooks@,,;t t
17994 cat >>$CONFIG_STATUS <<\_ACEOF
17995 # Split the substitutions into bite-sized pieces for seds with
17996 # small command number limits, like on Digital OSF/1 and HP-UX.
17997 ac_max_sed_lines=48
17998 ac_sed_frag=1 # Number of current file.
17999 ac_beg=1 # First line for current file.
18000 ac_end=$ac_max_sed_lines # Line after last line for current file.
18003 while $ac_more_lines; do
18004 if test $ac_beg -gt 1; then
18005 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18007 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18009 if test ! -s $tmp/subs.frag; then
18010 ac_more_lines=false
18012 # The purpose of the label and of the branching condition is to
18013 # speed up the sed processing (if there are no `@' at all, there
18014 # is no need to browse any of the substitutions).
18015 # These are the two extra sed commands mentioned above.
18017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18018 if test -z "$ac_sed_cmds"; then
18019 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18021 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18023 ac_sed_frag=`expr $ac_sed_frag + 1`
18025 ac_end=`expr $ac_end + $ac_max_sed_lines`
18028 if test -z "$ac_sed_cmds"; then
18031 fi # test -n "$CONFIG_FILES"
18034 cat >>$CONFIG_STATUS <<\_ACEOF
18035 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18036 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18038 - | *:- | *:-:* ) # input from stdin
18040 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18042 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18043 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18044 * ) ac_file_in=$ac_file.in ;;
18047 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18048 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18050 X"$ac_file" : 'X\(//\)[^/]' \| \
18051 X"$ac_file" : 'X\(//\)$' \| \
18052 X"$ac_file" : 'X\(/\)' \| \
18053 . : '\(.\)' 2>/dev/null ||
18055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18057 /^X\(\/\/\)$/{ s//\1/; q; }
18058 /^X\(\/\).*/{ s//\1/; q; }
18060 { if $as_mkdir_p; then
18065 while test ! -d "$as_dir"; do
18066 as_dirs="$as_dir $as_dirs"
18067 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18069 X"$as_dir" : 'X\(//\)[^/]' \| \
18070 X"$as_dir" : 'X\(//\)$' \| \
18071 X"$as_dir" : 'X\(/\)' \| \
18072 . : '\(.\)' 2>/dev/null ||
18074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18076 /^X\(\/\/\)$/{ s//\1/; q; }
18077 /^X\(\/\).*/{ s//\1/; q; }
18080 test ! -n "$as_dirs" || mkdir $as_dirs
18081 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18082 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18083 { (exit 1); exit 1; }; }; }
18087 if test "$ac_dir" != .; then
18088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18089 # A "../" for each directory in $ac_dir_suffix.
18090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18092 ac_dir_suffix= ac_top_builddir=
18096 .) # No --srcdir option. We are building in place.
18098 if test -z "$ac_top_builddir"; then
18101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18103 [\\/]* | ?:[\\/]* ) # Absolute path.
18104 ac_srcdir=$srcdir$ac_dir_suffix;
18105 ac_top_srcdir=$srcdir ;;
18106 *) # Relative path.
18107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18111 # Do not use `cd foo && pwd` to compute absolute paths, because
18112 # the directories may not exist.
18114 .) ac_abs_builddir="$ac_dir";;
18117 .) ac_abs_builddir=`pwd`;;
18118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18122 case $ac_abs_builddir in
18123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18125 case ${ac_top_builddir}. in
18126 .) ac_abs_top_builddir=$ac_abs_builddir;;
18127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18131 case $ac_abs_builddir in
18132 .) ac_abs_srcdir=$ac_srcdir;;
18135 .) ac_abs_srcdir=$ac_abs_builddir;;
18136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18140 case $ac_abs_builddir in
18141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18143 case $ac_top_srcdir in
18144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18152 if test x"$ac_file" != x-; then
18153 { echo "$as_me:$LINENO: creating $ac_file" >&5
18154 echo "$as_me: creating $ac_file" >&6;}
18157 # Let's still pretend it is `configure' which instantiates (i.e., don't
18158 # use $as_me), people would be surprised to read:
18159 # /* config.h. Generated by config.status. */
18160 if test x"$ac_file" = x-; then
18163 configure_input="$ac_file. "
18165 configure_input=$configure_input"Generated from `echo $ac_file_in |
18166 sed 's,.*/,,'` by configure."
18168 # First look for the input files in the build tree, otherwise in the
18170 ac_file_inputs=`IFS=:
18171 for f in $ac_file_in; do
18173 -) echo $tmp/stdin ;;
18175 # Absolute (can't be DOS-style, as IFS=:)
18176 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18177 echo "$as_me: error: cannot find input file: $f" >&2;}
18178 { (exit 1); exit 1; }; }
18181 if test -f "$f"; then
18184 elif test -f "$srcdir/$f"; then
18189 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18190 echo "$as_me: error: cannot find input file: $f" >&2;}
18191 { (exit 1); exit 1; }; }
18194 done` || { (exit 1); exit 1; }
18196 cat >>$CONFIG_STATUS <<_ACEOF
18200 cat >>$CONFIG_STATUS <<\_ACEOF
18202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18203 s,@configure_input@,$configure_input,;t t
18204 s,@srcdir@,$ac_srcdir,;t t
18205 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18206 s,@top_srcdir@,$ac_top_srcdir,;t t
18207 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18208 s,@builddir@,$ac_builddir,;t t
18209 s,@abs_builddir@,$ac_abs_builddir,;t t
18210 s,@top_builddir@,$ac_top_builddir,;t t
18211 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18212 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18214 if test x"$ac_file" != x-; then
18215 mv $tmp/out $ac_file
18221 # Run the commands associated with the file.
18223 as ) chmod +x as ;;
18224 collect-ld ) chmod +x collect-ld ;;
18225 nm ) chmod +x nm ;;
18229 cat >>$CONFIG_STATUS <<\_ACEOF
18232 # CONFIG_HEADER section.
18235 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18236 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18238 # ac_d sets the value in "#define NAME VALUE" lines.
18239 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18240 ac_dB='[ ].*$,\1#\2'
18243 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18244 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18245 ac_uB='$,\1#\2define\3'
18249 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18250 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18252 - | *:- | *:-:* ) # input from stdin
18254 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18255 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18256 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18258 * ) ac_file_in=$ac_file.in ;;
18261 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18262 echo "$as_me: creating $ac_file" >&6;}
18264 # First look for the input files in the build tree, otherwise in the
18266 ac_file_inputs=`IFS=:
18267 for f in $ac_file_in; do
18269 -) echo $tmp/stdin ;;
18271 # Absolute (can't be DOS-style, as IFS=:)
18272 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18273 echo "$as_me: error: cannot find input file: $f" >&2;}
18274 { (exit 1); exit 1; }; }
18275 # Do quote $f, to prevent DOS paths from being IFS'd.
18278 if test -f "$f"; then
18281 elif test -f "$srcdir/$f"; then
18286 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18287 echo "$as_me: error: cannot find input file: $f" >&2;}
18288 { (exit 1); exit 1; }; }
18291 done` || { (exit 1); exit 1; }
18292 # Remove the trailing spaces.
18293 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18297 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18298 # `conftest.undefs', that substitutes the proper values into
18299 # config.h.in to produce config.h. The first handles `#define'
18300 # templates, and the second `#undef' templates.
18301 # And first: Protect against being on the right side of a sed subst in
18302 # config.status. Protect against being in an unquoted here document
18303 # in config.status.
18304 rm -f conftest.defines conftest.undefs
18305 # Using a here document instead of a string reduces the quoting nightmare.
18306 # Putting comments in sed scripts is not portable.
18308 # `end' is used to avoid that the second main sed command (meant for
18309 # 0-ary CPP macros) applies to n-ary macro definitions.
18310 # See the Autoconf documentation for `clear'.
18311 cat >confdef2sed.sed <<\_ACEOF
18316 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18318 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18321 # If some macros were called several times there might be several times
18322 # the same #defines, which is useless. Nevertheless, we may not want to
18323 # sort them, since we want the *last* AC-DEFINE to be honored.
18324 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18325 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18326 rm -f confdef2sed.sed
18328 # This sed command replaces #undef with comments. This is necessary, for
18329 # example, in the case of _POSIX_SOURCE, which is predefined and required
18330 # on some systems where configure will not decide to define it.
18331 cat >>conftest.undefs <<\_ACEOF
18332 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18335 # Break up conftest.defines because some shells have a limit on the size
18336 # of here documents, and old seds have small limits too (100 cmds).
18337 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18338 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18339 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18340 echo ' :' >>$CONFIG_STATUS
18341 rm -f conftest.tail
18342 while grep . conftest.defines >/dev/null
18344 # Write a limited-size here document to $tmp/defines.sed.
18345 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18346 # Speed up: don't consider the non `#define' lines.
18347 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18348 # Work around the forget-to-reset-the-flag bug.
18349 echo 't clr' >>$CONFIG_STATUS
18350 echo ': clr' >>$CONFIG_STATUS
18351 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18353 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18355 mv $tmp/out $tmp/in
18357 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18358 rm -f conftest.defines
18359 mv conftest.tail conftest.defines
18361 rm -f conftest.defines
18362 echo ' fi # grep' >>$CONFIG_STATUS
18363 echo >>$CONFIG_STATUS
18365 # Break up conftest.undefs because some shells have a limit on the size
18366 # of here documents, and old seds have small limits too (100 cmds).
18367 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18368 rm -f conftest.tail
18369 while grep . conftest.undefs >/dev/null
18371 # Write a limited-size here document to $tmp/undefs.sed.
18372 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18373 # Speed up: don't consider the non `#undef'
18374 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18375 # Work around the forget-to-reset-the-flag bug.
18376 echo 't clr' >>$CONFIG_STATUS
18377 echo ': clr' >>$CONFIG_STATUS
18378 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18380 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18382 mv $tmp/out $tmp/in
18384 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18385 rm -f conftest.undefs
18386 mv conftest.tail conftest.undefs
18388 rm -f conftest.undefs
18390 cat >>$CONFIG_STATUS <<\_ACEOF
18391 # Let's still pretend it is `configure' which instantiates (i.e., don't
18392 # use $as_me), people would be surprised to read:
18393 # /* config.h. Generated by config.status. */
18394 if test x"$ac_file" = x-; then
18395 echo "/* Generated by configure. */" >$tmp/config.h
18397 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18399 cat $tmp/in >>$tmp/config.h
18401 if test x"$ac_file" != x-; then
18402 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18403 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18404 echo "$as_me: $ac_file is unchanged" >&6;}
18406 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18408 X"$ac_file" : 'X\(//\)[^/]' \| \
18409 X"$ac_file" : 'X\(//\)$' \| \
18410 X"$ac_file" : 'X\(/\)' \| \
18411 . : '\(.\)' 2>/dev/null ||
18413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18415 /^X\(\/\/\)$/{ s//\1/; q; }
18416 /^X\(\/\).*/{ s//\1/; q; }
18418 { if $as_mkdir_p; then
18423 while test ! -d "$as_dir"; do
18424 as_dirs="$as_dir $as_dirs"
18425 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18427 X"$as_dir" : 'X\(//\)[^/]' \| \
18428 X"$as_dir" : 'X\(//\)$' \| \
18429 X"$as_dir" : 'X\(/\)' \| \
18430 . : '\(.\)' 2>/dev/null ||
18432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18434 /^X\(\/\/\)$/{ s//\1/; q; }
18435 /^X\(\/\).*/{ s//\1/; q; }
18438 test ! -n "$as_dirs" || mkdir $as_dirs
18439 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18440 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18441 { (exit 1); exit 1; }; }; }
18444 mv $tmp/config.h $ac_file
18448 rm -f $tmp/config.h
18452 cat >>$CONFIG_STATUS <<\_ACEOF
18455 # CONFIG_COMMANDS section.
18457 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18458 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18459 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18460 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18461 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18462 X"$ac_dest" : 'X\(//\)[^/]' \| \
18463 X"$ac_dest" : 'X\(//\)$' \| \
18464 X"$ac_dest" : 'X\(/\)' \| \
18465 . : '\(.\)' 2>/dev/null ||
18467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18469 /^X\(\/\/\)$/{ s//\1/; q; }
18470 /^X\(\/\).*/{ s//\1/; q; }
18472 { if $as_mkdir_p; then
18477 while test ! -d "$as_dir"; do
18478 as_dirs="$as_dir $as_dirs"
18479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18481 X"$as_dir" : 'X\(//\)[^/]' \| \
18482 X"$as_dir" : 'X\(//\)$' \| \
18483 X"$as_dir" : 'X\(/\)' \| \
18484 . : '\(.\)' 2>/dev/null ||
18486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18488 /^X\(\/\/\)$/{ s//\1/; q; }
18489 /^X\(\/\).*/{ s//\1/; q; }
18492 test ! -n "$as_dirs" || mkdir $as_dirs
18493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18494 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18495 { (exit 1); exit 1; }; }; }
18499 if test "$ac_dir" != .; then
18500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18501 # A "../" for each directory in $ac_dir_suffix.
18502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18504 ac_dir_suffix= ac_top_builddir=
18508 .) # No --srcdir option. We are building in place.
18510 if test -z "$ac_top_builddir"; then
18513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18515 [\\/]* | ?:[\\/]* ) # Absolute path.
18516 ac_srcdir=$srcdir$ac_dir_suffix;
18517 ac_top_srcdir=$srcdir ;;
18518 *) # Relative path.
18519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18523 # Do not use `cd foo && pwd` to compute absolute paths, because
18524 # the directories may not exist.
18526 .) ac_abs_builddir="$ac_dir";;
18529 .) ac_abs_builddir=`pwd`;;
18530 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18531 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18534 case $ac_abs_builddir in
18535 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18537 case ${ac_top_builddir}. in
18538 .) ac_abs_top_builddir=$ac_abs_builddir;;
18539 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18540 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18543 case $ac_abs_builddir in
18544 .) ac_abs_srcdir=$ac_srcdir;;
18547 .) ac_abs_srcdir=$ac_abs_builddir;;
18548 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18549 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18552 case $ac_abs_builddir in
18553 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18555 case $ac_top_srcdir in
18556 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18557 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18558 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18563 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18564 echo "$as_me: executing $ac_dest commands" >&6;}
18567 case ${CONFIG_HEADERS} in
18568 *auto-host.h:config.in*)
18571 # Make sure all the subdirs exist.
18572 for d in $subdirs doc build
18574 test -d $d || mkdir $d
18581 cat >>$CONFIG_STATUS <<\_ACEOF
18583 { (exit 0); exit 0; }
18585 chmod +x $CONFIG_STATUS
18586 ac_clean_files=$ac_clean_files_save
18589 # configure is writing to config.log, and then calls config.status.
18590 # config.status does its own redirection, appending to config.log.
18591 # Unfortunately, on DOS this fails, as config.log is still kept open
18592 # by configure, so config.status won't be able to write to it; its
18593 # output is simply discarded. So we exec the FD to /dev/null,
18594 # effectively closing config.log, so it can be properly (re)opened and
18595 # appended to by config.status. When coming back to configure, we
18596 # need to make the FD available again.
18597 if test "$no_create" != yes; then
18599 ac_config_status_args=
18600 test "$silent" = yes &&
18601 ac_config_status_args="$ac_config_status_args --quiet"
18603 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18606 # would make configure fail if this is the last instruction.
18607 $ac_cs_success || { (exit 1); exit 1; }