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 am__leading_dot DEPDIR CCDEPMODE BUILD_DEPMODE 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 build_file_translate 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-coverage=LEVEL
873 enable compiler's code coverage collection.
874 Use to measure compiler performance and locate
875 unused parts of the compiler. With LEVEL, specify
876 optimization. Values are opt, noopt,
878 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
879 --enable-multilib enable library support for multiple ABIs
880 --enable-__cxa_atexit enable __cxa_atexit for C++
881 --enable-decimal-float={no,yes,bid,dpd}
882 enable decimal float extension to C. Selecting 'bid'
883 or 'dpd' choses which decimal floating point format
885 --enable-fixed-point enable fixed-point arithmetic extension to C
886 --enable-threads enable thread usage for target GCC
887 --enable-threads=LIB use LIB thread package for target GCC
888 --enable-tls enable or disable generation of tls code
889 overriding the assembler check for tls support
890 --enable-objc-gc enable the use of Boehm's garbage collector with
891 the GNU Objective-C runtime
892 --disable-shared don't provide a shared libgcc
893 --enable-intermodule build the compiler in one step
894 --enable-languages=LIST specify which front-ends to build
895 --disable-rpath do not hardcode runtime library paths
896 --enable-initfini-array use .init_array/.fini_array sections
897 --enable-sjlj-exceptions
898 arrange to use setjmp/longjmp exception handling
899 --enable-secureplt enable -msecure-plt by default for PowerPC
900 --disable-win32-registry
901 disable lookup of installation paths in the
902 Registry on Windows hosts
903 --enable-win32-registry enable registry lookup (default)
904 --enable-win32-registry=KEY
905 use KEY instead of GCC version as the last portion
907 --enable-maintainer-mode
908 enable make rules and dependencies not useful
909 (and sometimes confusing) to the casual installer
910 --enable-version-specific-runtime-libs
911 specify that runtime libraries should be
912 installed in a compiler-specific directory
915 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
916 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
917 --with-build-libsubdir=DIR Directory where to find libraries for build system
918 --with-local-prefix=DIR specifies directory to put local include
919 --with-gxx-include-dir=DIR
920 specifies directory to put g++ header files
921 --with-cpp-install-dir=DIR
922 install the user visible C preprocessor in DIR
923 (relative to PREFIX) as well as PREFIX/bin
924 --with-gnu-ld arrange to work with GNU ld.
925 --with-ld arrange to use the specified ld (full pathname)
926 --with-demangler-in-ld try to use demangler in GNU ld.
927 --with-gnu-as arrange to work with GNU as
928 --with-as arrange to use the specified as (full pathname)
929 --with-stabs arrange to use stabs instead of host debug format
930 --with-dwarf2 force the default debug format to be DWARF 2
931 --with-build-sysroot=sysroot
932 use sysroot as the system root during the build
933 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
934 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
935 --with-bugurl=URL Direct users to URL to report a bug
936 --with-gnu-ld assume the C compiler uses GNU ld default=no
937 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
938 --without-libiconv-prefix don't search for libiconv in includedir and libdir
939 --with-system-libunwind use installed libunwind
940 --with-long-double-128 Use 128-bit long double by default.
941 --with-gc={page,zone} choose the garbage collection mechanism to use
943 --with-system-zlib use installed libz
944 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
945 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
946 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
947 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
949 Some influential environment variables:
950 CC C compiler command
951 CFLAGS C compiler flags
952 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
953 nonstandard directory <lib dir>
954 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
955 headers in a nonstandard directory <include dir>
957 GMPLIBS How to link GMP
958 GMPINC How to find GMP include files
960 Use these variables to override the choices made by `configure' or to help
961 it to find libraries and programs with nonstandard names/locations.
966 if test "$ac_init_help" = "recursive"; then
967 # If there are subdirs, report their specific --help.
969 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
970 test -d $ac_dir || continue
973 if test "$ac_dir" != .; then
974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
975 # A "../" for each directory in $ac_dir_suffix.
976 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
978 ac_dir_suffix= ac_top_builddir=
982 .) # No --srcdir option. We are building in place.
984 if test -z "$ac_top_builddir"; then
987 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
989 [\\/]* | ?:[\\/]* ) # Absolute path.
990 ac_srcdir=$srcdir$ac_dir_suffix;
991 ac_top_srcdir=$srcdir ;;
993 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
994 ac_top_srcdir=$ac_top_builddir$srcdir ;;
997 # Do not use `cd foo && pwd` to compute absolute paths, because
998 # the directories may not exist.
1000 .) ac_abs_builddir="$ac_dir";;
1003 .) ac_abs_builddir=`pwd`;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1005 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1011 case ${ac_top_builddir}. in
1012 .) ac_abs_top_builddir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1014 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1017 case $ac_abs_builddir in
1018 .) ac_abs_srcdir=$ac_srcdir;;
1021 .) ac_abs_srcdir=$ac_abs_builddir;;
1022 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1023 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1026 case $ac_abs_builddir in
1027 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1029 case $ac_top_srcdir in
1030 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1031 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1032 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1037 # Check for guested configure; otherwise get Cygnus style configure.
1038 if test -f $ac_srcdir/configure.gnu; then
1040 $SHELL $ac_srcdir/configure.gnu --help=recursive
1041 elif test -f $ac_srcdir/configure; then
1043 $SHELL $ac_srcdir/configure --help=recursive
1044 elif test -f $ac_srcdir/configure.ac ||
1045 test -f $ac_srcdir/configure.in; then
1047 $ac_configure --help
1049 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1055 test -n "$ac_init_help" && exit 0
1056 if $ac_init_version; then
1059 Copyright (C) 2003 Free Software Foundation, Inc.
1060 This configure script is free software; the Free Software Foundation
1061 gives unlimited permission to copy, distribute and modify it.
1067 This file contains any messages produced by compilers while
1068 running configure, to aid debugging if configure makes a mistake.
1070 It was created by $as_me, which was
1071 generated by GNU Autoconf 2.59. Invocation command line was
1082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1089 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1091 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1092 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1094 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1095 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1096 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1097 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1105 test -z "$as_dir" && as_dir=.
1106 echo "PATH: $as_dir"
1121 # Keep a trace of the command line.
1122 # Strip out --no-create and --no-recursion so they do not pile up.
1123 # Strip out --silent because we don't want to record it for future runs.
1124 # Also quote any args containing shell meta-characters.
1125 # Make two passes to allow for proper duplicate-argument suppression.
1130 ac_must_keep_next=false
1136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1140 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1141 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1144 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1146 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1147 if test $ac_must_keep_next = true; then
1148 ac_must_keep_next=false # Got value, back to normal.
1151 *=* | --config-cache | -C | -disable-* | --disable-* \
1152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1154 | -with-* | --with-* | -without-* | --without-* | --x)
1155 case "$ac_configure_args0 " in
1156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1159 -* ) ac_must_keep_next=true ;;
1162 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1163 # Get rid of the leading space.
1169 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1170 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1172 # When interrupted or exit'd, cleanup temporary files, and complete
1173 # config.log. We remove comments because anyway the quotes in there
1174 # would cause problems or look ugly.
1175 # WARNING: Be sure not to use single quotes in there, as some shells,
1176 # such as our DU 5.0 friend, will then `close' the trap.
1177 trap 'exit_status=$?
1178 # Save into config.log some information that might help in debugging.
1183 ## ---------------- ##
1184 ## Cache variables. ##
1185 ## ---------------- ##
1188 # The following way of writing the cache mishandles newlines in values,
1191 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1194 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1199 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1206 ## ----------------- ##
1207 ## Output variables. ##
1208 ## ----------------- ##
1211 for ac_var in $ac_subst_vars
1213 eval ac_val=$`echo $ac_var`
1214 echo "$ac_var='"'"'$ac_val'"'"'"
1218 if test -n "$ac_subst_files"; then
1225 for ac_var in $ac_subst_files
1227 eval ac_val=$`echo $ac_var`
1228 echo "$ac_var='"'"'$ac_val'"'"'"
1233 if test -s confdefs.h; then
1240 sed "/^$/d" confdefs.h | sort
1243 test "$ac_signal" != 0 &&
1244 echo "$as_me: caught signal $ac_signal"
1245 echo "$as_me: exit $exit_status"
1247 rm -f core *.core &&
1248 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1251 for ac_signal in 1 2 13 15; do
1252 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1256 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1257 rm -rf conftest* confdefs.h
1258 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1261 # Predefined preprocessor variables.
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_NAME "$PACKAGE_NAME"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_STRING "$PACKAGE_STRING"
1283 cat >>confdefs.h <<_ACEOF
1284 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1288 # Let the site file select an alternate cache file if it wants to.
1289 # Prefer explicitly selected file to automatically selected ones.
1290 if test -z "$CONFIG_SITE"; then
1291 if test "x$prefix" != xNONE; then
1292 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1294 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1297 for ac_site_file in $CONFIG_SITE; do
1298 if test -r "$ac_site_file"; then
1299 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1300 echo "$as_me: loading site script $ac_site_file" >&6;}
1301 sed 's/^/| /' "$ac_site_file" >&5
1306 if test -r "$cache_file"; then
1307 # Some versions of bash will fail to source /dev/null (special
1308 # files actually), so we avoid doing that.
1309 if test -f "$cache_file"; then
1310 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1311 echo "$as_me: loading cache $cache_file" >&6;}
1313 [\\/]* | ?:[\\/]* ) . $cache_file;;
1314 *) . ./$cache_file;;
1318 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1319 echo "$as_me: creating cache $cache_file" >&6;}
1323 # Check that the precious variables saved in the cache have kept the same
1325 ac_cache_corrupted=false
1326 for ac_var in `(set) 2>&1 |
1327 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1328 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1329 eval ac_new_set=\$ac_env_${ac_var}_set
1330 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1331 eval ac_new_val="\$ac_env_${ac_var}_value"
1332 case $ac_old_set,$ac_new_set in
1334 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1336 ac_cache_corrupted=: ;;
1338 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1339 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1340 ac_cache_corrupted=: ;;
1343 if test "x$ac_old_val" != "x$ac_new_val"; then
1344 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1345 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1346 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1347 echo "$as_me: former value: $ac_old_val" >&2;}
1348 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1349 echo "$as_me: current value: $ac_new_val" >&2;}
1350 ac_cache_corrupted=:
1353 # Pass precious variables to config.status.
1354 if test "$ac_new_set" = set; then
1356 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1357 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1358 *) ac_arg=$ac_var=$ac_new_val ;;
1360 case " $ac_configure_args " in
1361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1362 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1366 if $ac_cache_corrupted; then
1367 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1368 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1369 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1370 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1371 { (exit 1); exit 1; }; }
1375 ac_cpp='$CPP $CPPFLAGS'
1376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1402 gcc_version=`cat $srcdir/BASE-VER`
1404 # Determine the host, build, and target systems
1406 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1407 if test -f $ac_dir/install-sh; then
1409 ac_install_sh="$ac_aux_dir/install-sh -c"
1411 elif test -f $ac_dir/install.sh; then
1413 ac_install_sh="$ac_aux_dir/install.sh -c"
1415 elif test -f $ac_dir/shtool; then
1417 ac_install_sh="$ac_aux_dir/shtool install -c"
1421 if test -z "$ac_aux_dir"; then
1422 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1423 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1424 { (exit 1); exit 1; }; }
1426 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1427 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1428 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1430 # Make sure we can run config.sub.
1431 $ac_config_sub sun4 >/dev/null 2>&1 ||
1432 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1433 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1434 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: checking build system type" >&5
1437 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1438 if test "${ac_cv_build+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 ac_cv_build_alias=$build_alias
1442 test -z "$ac_cv_build_alias" &&
1443 ac_cv_build_alias=`$ac_config_guess`
1444 test -z "$ac_cv_build_alias" &&
1445 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1447 { (exit 1); exit 1; }; }
1448 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1449 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1451 { (exit 1); exit 1; }; }
1454 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1455 echo "${ECHO_T}$ac_cv_build" >&6
1457 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1462 echo "$as_me:$LINENO: checking host system type" >&5
1463 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1464 if test "${ac_cv_host+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 ac_cv_host_alias=$host_alias
1468 test -z "$ac_cv_host_alias" &&
1469 ac_cv_host_alias=$ac_cv_build_alias
1470 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1471 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1472 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1473 { (exit 1); exit 1; }; }
1476 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1477 echo "${ECHO_T}$ac_cv_host" >&6
1479 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484 echo "$as_me:$LINENO: checking target system type" >&5
1485 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1486 if test "${ac_cv_target+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 ac_cv_target_alias=$target_alias
1490 test "x$ac_cv_target_alias" = "x" &&
1491 ac_cv_target_alias=$ac_cv_host_alias
1492 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1493 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1495 { (exit 1); exit 1; }; }
1498 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1499 echo "${ECHO_T}$ac_cv_target" >&6
1500 target=$ac_cv_target
1501 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1506 # The aliases save the names the user supplied, while $host etc.
1507 # will get canonicalized.
1508 test -n "$target_alias" &&
1509 test "$program_prefix$program_suffix$program_transform_name" = \
1511 program_prefix=${target_alias}-
1513 # Determine the noncanonical target name, for directory use.
1514 case ${build_alias} in
1515 "") build_noncanonical=${build} ;;
1516 *) build_noncanonical=${build_alias} ;;
1519 case ${host_alias} in
1520 "") host_noncanonical=${build_noncanonical} ;;
1521 *) host_noncanonical=${host_alias} ;;
1524 case ${target_alias} in
1525 "") target_noncanonical=${host_noncanonical} ;;
1526 *) target_noncanonical=${target_alias} ;;
1532 # Determine the target- and build-specific subdirectories
1534 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1535 # have matching libraries, they should use host libraries: Makefile.tpl
1536 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1537 # However, they still use the build modules, because the corresponding
1538 # host modules (e.g. bison) are only built for the host when bootstrap
1540 # - build_subdir is where we find build modules, and never changes.
1541 # - build_libsubdir is where we find build libraries, and can be overridden.
1543 # Prefix 'build-' so this never conflicts with target_subdir.
1544 build_subdir="build-${build_noncanonical}"
1546 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1547 if test "${with_build_libsubdir+set}" = set; then
1548 withval="$with_build_libsubdir"
1549 build_libsubdir="$withval"
1551 build_libsubdir="$build_subdir"
1553 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1554 if ( test $srcdir = . && test -d gcc ) \
1555 || test -d $srcdir/../host-${host_noncanonical}; then
1556 host_subdir="host-${host_noncanonical}"
1561 target_subdir=${target_noncanonical}
1564 # Set program_transform_name
1565 test "$program_prefix" != NONE &&
1566 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1567 # Use a double $ so make ignores it.
1568 test "$program_suffix" != NONE &&
1569 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1570 # Double any \ or $. echo might interpret backslashes.
1571 # By default was `s,x,x', remove it if useless.
1572 cat <<\_ACEOF >conftest.sed
1573 s/[\\$]/&&/g;s/;s,x,x,$//
1575 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1579 # Check for bogus environment variables.
1580 # Test if LIBRARY_PATH contains the notation for the current directory
1581 # since this would lead to problems installing/building glibc.
1582 # LIBRARY_PATH contains the current directory if one of the following
1584 # - one of the terminals (":" and ";") is the first or last sign
1585 # - two terminals occur directly after each other
1586 # - the path contains an element with a dot in it
1587 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1588 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1589 case ${LIBRARY_PATH} in
1590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1591 library_path_setting="contains current directory"
1594 library_path_setting="ok"
1597 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1598 echo "${ECHO_T}$library_path_setting" >&6
1599 if test "$library_path_setting" != "ok"; then
1600 { { echo "$as_me:$LINENO: error:
1601 *** LIBRARY_PATH shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&5
1604 echo "$as_me: error:
1605 *** LIBRARY_PATH shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&2;}
1608 { (exit 1); exit 1; }; }
1611 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1612 # since this would lead to problems installing/building glibc.
1613 # GCC_EXEC_PREFIX contains the current directory if one of the following
1615 # - one of the terminals (":" and ";") is the first or last sign
1616 # - two terminals occur directly after each other
1617 # - the path contains an element with a dot in it
1618 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1619 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1620 case ${GCC_EXEC_PREFIX} in
1621 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1622 gcc_exec_prefix_setting="contains current directory"
1625 gcc_exec_prefix_setting="ok"
1628 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1629 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1630 if test "$gcc_exec_prefix_setting" != "ok"; then
1631 { { echo "$as_me:$LINENO: error:
1632 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1633 *** building gcc. Please change the environment variable
1634 *** and run configure again." >&5
1635 echo "$as_me: error:
1636 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1637 *** building gcc. Please change the environment variable
1638 *** and run configure again." >&2;}
1639 { (exit 1); exit 1; }; }
1646 # Specify the local prefix
1649 # Check whether --with-local-prefix or --without-local-prefix was given.
1650 if test "${with_local_prefix+set}" = set; then
1651 withval="$with_local_prefix"
1652 case "${withval}" in
1653 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1654 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1655 { (exit 1); exit 1; }; } ;;
1657 *) local_prefix=$with_local_prefix ;;
1661 # Default local prefix if it is empty
1662 if test x$local_prefix = x; then
1663 local_prefix=/usr/local
1666 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1667 # passed in by the toplevel make and thus we'd get different behavior
1668 # depending on where we built the sources.
1669 gcc_gxx_include_dir=
1670 # Specify the g++ header file directory
1672 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1673 if test "${with_gxx_include_dir+set}" = set; then
1674 withval="$with_gxx_include_dir"
1675 case "${withval}" in
1676 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1677 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1678 { (exit 1); exit 1; }; } ;;
1680 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1684 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1685 if test x${gcc_gxx_include_dir} = x; then
1686 if test x${enable_version_specific_runtime_libs} = xyes; then
1687 gcc_gxx_include_dir='${libsubdir}/include/c++'
1689 libstdcxx_incdir='include/c++/$(version)'
1690 if test x$host != x$target; then
1691 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1693 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1698 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1699 if test "${with_cpp_install_dir+set}" = set; then
1700 withval="$with_cpp_install_dir"
1701 if test x$withval = xyes; then
1702 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1703 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1704 { (exit 1); exit 1; }; }
1705 elif test x$withval != xno; then
1706 cpp_install_dir=$withval
1710 # We would like to our source tree to be readonly. However when releases or
1711 # pre-releases are generated, the flex/bison generated files as well as the
1712 # various formats of manuals need to be included along with the rest of the
1713 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1716 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1717 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1718 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1719 if test "${enable_generated_files_in_srcdir+set}" = set; then
1720 enableval="$enable_generated_files_in_srcdir"
1721 generated_files_in_srcdir=$enableval
1723 generated_files_in_srcdir=no
1726 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1727 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1729 if test "$generated_files_in_srcdir" = "yes"; then
1736 # -------------------
1737 # Find default linker
1738 # -------------------
1742 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1743 if test "${with_gnu_ld+set}" = set; then
1744 withval="$with_gnu_ld"
1745 gnu_ld_flag="$with_gnu_ld"
1750 # With pre-defined ld
1752 # Check whether --with-ld or --without-ld was given.
1753 if test "${with_ld+set}" = set; then
1755 DEFAULT_LINKER="$with_ld"
1757 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1758 if test ! -x "$DEFAULT_LINKER"; then
1759 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1760 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1761 { (exit 1); exit 1; }; }
1762 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1766 cat >>confdefs.h <<_ACEOF
1767 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1772 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1774 cat >>confdefs.h <<_ACEOF
1775 #define HAVE_GNU_LD $gnu_ld
1779 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1780 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1781 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1782 if test x"$gnu_ld_flag" = x"no"; then
1783 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1784 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1786 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1787 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1790 echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1794 # With demangler in GNU ld
1796 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1797 if test "${with_demangler_in_ld+set}" = set; then
1798 withval="$with_demangler_in_ld"
1799 demangler_in_ld="$with_demangler_in_ld"
1804 # ----------------------
1805 # Find default assembler
1806 # ----------------------
1810 # Check whether --with-gnu-as or --without-gnu-as was given.
1811 if test "${with_gnu_as+set}" = set; then
1812 withval="$with_gnu_as"
1813 gas_flag="$with_gnu_as"
1819 # Check whether --with-as or --without-as was given.
1820 if test "${with_as+set}" = set; then
1822 DEFAULT_ASSEMBLER="$with_as"
1824 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1825 if test ! -x "$DEFAULT_ASSEMBLER"; then
1826 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1827 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1828 { (exit 1); exit 1; }; }
1829 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1833 cat >>confdefs.h <<_ACEOF
1834 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1839 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1841 cat >>confdefs.h <<_ACEOF
1842 #define HAVE_GNU_AS $gnu_as
1846 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1847 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1848 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1849 if test x"$gas_flag" = x"no"; then
1850 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1851 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1853 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1854 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1865 # If a non-executable a.out is present (e.g. created by GNU as above even if
1866 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1867 # file, even when creating an executable, so an execution test fails.
1868 # Remove possible default executable files to avoid this.
1870 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1871 # Autoconf includes it.
1872 rm -f a.out a.exe b.out
1874 # Find the native compiler
1876 ac_cpp='$CPP $CPPFLAGS'
1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880 if test -n "$ac_tool_prefix"; then
1881 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC="$CC" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$CC"; then
1909 echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1917 if test -z "$ac_cv_prog_CC"; then
1919 # Extract the first word of "gcc", so it can be a program name with args.
1920 set dummy gcc; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 if test -n "$ac_ct_CC"; then
1927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_ac_ct_CC="gcc"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1959 if test -z "$CC"; then
1960 if test -n "$ac_tool_prefix"; then
1961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}cc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 if test -n "$CC"; then
1969 ac_cv_prog_CC="$CC" # Let the user override the test.
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 ac_cv_prog_CC="${ac_tool_prefix}cc"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 if test -n "$CC"; then
1989 echo "$as_me:$LINENO: result: $CC" >&5
1990 echo "${ECHO_T}$CC" >&6
1992 echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1997 if test -z "$ac_cv_prog_CC"; then
1999 # Extract the first word of "cc", so it can be a program name with args.
2000 set dummy cc; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$ac_ct_CC"; then
2007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_ac_ct_CC="cc"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2040 if test -z "$CC"; then
2041 # Extract the first word of "cc", so it can be a program name with args.
2042 set dummy cc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC="$CC" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2060 ac_prog_rejected=yes
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 if test $ac_prog_rejected = yes; then
2071 # We found a bogon in the path, so make sure we never use it.
2072 set dummy $ac_cv_prog_CC
2074 if test $# != 0; then
2075 # We chose a different compiler from the bogus one.
2076 # However, it has the same basename, so the bogon will be chosen
2077 # first if we set CC to just the basename; use the full file name.
2079 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2085 if test -n "$CC"; then
2086 echo "$as_me:$LINENO: result: $CC" >&5
2087 echo "${ECHO_T}$CC" >&6
2089 echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2094 if test -z "$CC"; then
2095 if test -n "$ac_tool_prefix"; then
2098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_CC+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC="$CC" # Let the user override the test.
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 test -z "$as_dir" && as_dir=.
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 if test -n "$CC"; then
2126 echo "$as_me:$LINENO: result: $CC" >&5
2127 echo "${ECHO_T}$CC" >&6
2129 echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6
2133 test -n "$CC" && break
2136 if test -z "$CC"; then
2140 # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy $ac_prog; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$ac_ct_CC"; then
2148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_ac_ct_CC="$ac_prog"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167 if test -n "$ac_ct_CC"; then
2168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2175 test -n "$ac_ct_CC" && break
2184 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: no acceptable C compiler found in \$PATH
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2190 # Provide some information about the compiler.
2191 echo "$as_me:$LINENO:" \
2192 "checking for C compiler version" >&5
2193 ac_compiler=`set X $ac_compile; echo $2`
2194 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2195 (eval $ac_compiler --version </dev/null >&5) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }
2199 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2200 (eval $ac_compiler -v </dev/null >&5) 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }
2204 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2205 (eval $ac_compiler -V </dev/null >&5) 2>&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }
2210 cat >conftest.$ac_ext <<_ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2225 ac_clean_files_save=$ac_clean_files
2226 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2227 # Try to create an executable without -o first, disregard a.out.
2228 # It will help us diagnose broken compilers, and finding out an intuition
2230 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2231 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2232 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2234 (eval $ac_link_default) 2>&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; then
2238 # Find the output, starting from the most likely. This scheme is
2239 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2242 # Be careful to initialize this variable, since it used to be cached.
2243 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2245 # b.out is created by i960 compilers.
2246 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2248 test -f "$ac_file" || continue
2250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2253 # This is the source file.
2256 # We found the default executable, but exeext='' is most
2260 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2261 # FIXME: I believe we export ac_cv_exeext for Libtool,
2262 # but it would be cool to find out if it's true. Does anybody
2263 # maintain Libtool? --akim.
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2274 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: C compiler cannot create executables
2277 See \`config.log' for more details." >&2;}
2278 { (exit 77); exit 77; }; }
2281 ac_exeext=$ac_cv_exeext
2282 echo "$as_me:$LINENO: result: $ac_file" >&5
2283 echo "${ECHO_T}$ac_file" >&6
2285 # Check the compiler produces executables we can run. If not, either
2286 # the compiler is broken, or we cross compile.
2287 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2288 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2289 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2290 # If not cross compiling, check that we can run a simple program.
2291 if test "$cross_compiling" != yes; then
2292 if { ac_try='./$ac_file'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2300 if test "$cross_compiling" = maybe; then
2303 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&2;}
2309 { (exit 1); exit 1; }; }
2313 echo "$as_me:$LINENO: result: yes" >&5
2314 echo "${ECHO_T}yes" >&6
2316 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2317 ac_clean_files=$ac_clean_files_save
2318 # Check the compiler produces executables we can run. If not, either
2319 # the compiler is broken, or we cross compile.
2320 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2322 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2323 echo "${ECHO_T}$cross_compiling" >&6
2325 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2328 (eval $ac_link) 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2333 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2334 # work properly (i.e., refer to `conftest.exe'), while it won't with
2336 for ac_file in conftest.exe conftest conftest.*; do
2337 test -f "$ac_file" || continue
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2340 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2347 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2350 See \`config.log' for more details." >&2;}
2351 { (exit 1); exit 1; }; }
2354 rm -f conftest$ac_cv_exeext
2355 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2356 echo "${ECHO_T}$ac_cv_exeext" >&6
2358 rm -f conftest.$ac_ext
2359 EXEEXT=$ac_cv_exeext
2361 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2362 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2363 if test "${ac_cv_objext+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2381 rm -f conftest.o conftest.obj
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; then
2387 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2390 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2398 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2401 See \`config.log' for more details." >&2;}
2402 { (exit 1); exit 1; }; }
2405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2407 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2408 echo "${ECHO_T}$ac_cv_objext" >&6
2409 OBJEXT=$ac_cv_objext
2411 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2412 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2413 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 cat >conftest.$ac_ext <<_ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2438 grep -v '^ *+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag"
2444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2467 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2469 GCC=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS=${CFLAGS+set}
2471 ac_save_CFLAGS=$CFLAGS
2473 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2497 grep -v '^ *+' conftest.er1 >conftest.err
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2524 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2525 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2526 if test "$ac_test_CFLAGS" = set; then
2527 CFLAGS=$ac_save_CFLAGS
2528 elif test $ac_cv_prog_cc_g = yes; then
2529 if test "$GCC" = yes; then
2535 if test "$GCC" = yes; then
2541 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2542 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 ac_cv_prog_cc_stdc=no
2548 cat >conftest.$ac_ext <<_ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2556 #include <sys/types.h>
2557 #include <sys/stat.h>
2558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2559 struct buf { int x; };
2560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2561 static char *e (p, i)
2567 static char *f (char * (*g) (char **, int), char **p, ...)
2572 s = g (p, va_arg (v,int));
2577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2578 function prototypes and stuff, but not '\xHH' hex character constants.
2579 These don't provoke an error unfortunately, instead are silently treated
2580 as 'x'. The following induces an error, until -std1 is added to get
2581 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2582 array size at least. It's necessary to write '\x00'==0 to get something
2583 that's true only with -std1. */
2584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2586 int test (int i, double x);
2587 struct s1 {int (*f) (int a);};
2588 struct s2 {int (*f) (double a);};
2589 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2595 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2600 # Don't try gcc -ansi; that turns off useful extensions and
2601 # breaks some systems' header files.
2602 # AIX -qlanglvl=ansi
2603 # Ultrix and OSF/1 -std1
2604 # HP-UX 10.20 and later -Ae
2605 # HP-UX older versions -Aa -D_HPUX_SOURCE
2606 # SVR4 -Xc -D__EXTENSIONS__
2607 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2609 CC="$ac_save_CC $ac_arg"
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2614 grep -v '^ *+' conftest.er1 >conftest.err
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_prog_cc_stdc=$ac_arg
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2639 rm -f conftest.err conftest.$ac_objext
2641 rm -f conftest.$ac_ext conftest.$ac_objext
2646 case "x$ac_cv_prog_cc_stdc" in
2648 echo "$as_me:$LINENO: result: none needed" >&5
2649 echo "${ECHO_T}none needed" >&6 ;;
2651 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2653 CC="$CC $ac_cv_prog_cc_stdc" ;;
2656 # Some people use a C++ compiler to compile C. Since we use `exit',
2657 # in C++ we need to declare it. In case someone uses the same compiler
2658 # for both compiling C and C++ we need to have the C++ compiler decide
2659 # the declaration of exit, since it's the most demanding environment.
2660 cat >conftest.$ac_ext <<_ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>conftest.er1
2669 grep -v '^ *+' conftest.er1 >conftest.err
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -z "$ac_c_werror_flag"
2675 || test ! -s conftest.err'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2687 for ac_declaration in \
2689 'extern "C" void std::exit (int) throw (); using std::exit;' \
2690 'extern "C" void std::exit (int); using std::exit;' \
2691 'extern "C" void exit (int) throw ();' \
2692 'extern "C" void exit (int);' \
2695 cat >conftest.$ac_ext <<_ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 cat >conftest.$ac_ext <<_ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2760 grep -v '^ *+' conftest.er1 >conftest.err
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2787 if test -n "$ac_declaration"; then
2788 echo '#ifdef __cplusplus' >>confdefs.h
2789 echo $ac_declaration >>confdefs.h
2790 echo '#endif' >>confdefs.h
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 if test "x$CC" != xcc; then
2806 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2807 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2809 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2810 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2812 set dummy $CC; ac_cc=`echo $2 |
2813 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2814 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 cat >conftest.$ac_ext <<_ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2832 # Make sure it works both with $CC and with simple cc.
2833 # We do the test twice because some compilers refuse to overwrite an
2834 # existing .o file with -o, though they will create one.
2835 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2836 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); };
2847 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2848 if test "x$CC" != xcc; then
2849 # Test first that cc exists at all.
2850 if { ac_try='cc -c conftest.$ac_ext >&5'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2856 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); };
2871 # cc exists but doesn't like -o.
2872 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2877 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2882 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2883 echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6
2886 echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2889 cat >>confdefs.h <<\_ACEOF
2890 #define NO_MINUS_C_MINUS_O 1
2895 # expand $ac_aux_dir to an absolute path
2896 am_aux_dir=`cd $ac_aux_dir && pwd`
2898 # FIXME: we rely on the cache variable name because
2899 # there is no other way.
2901 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2902 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2903 # Losing compiler, so override with the script.
2904 # FIXME: It is wrong to rewrite CC.
2905 # But if we don't then we get into trouble of one sort or another.
2906 # A longer-term fix would be to have automake use am__CC in this case,
2907 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2908 CC="$am_aux_dir/compile $CC"
2911 # autoconf is lame and doesn't give us any substitution variable for this.
2912 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2913 NO_MINUS_C_MINUS_O=yes
2915 OUTPUT_OPTION='-o $@'
2920 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2921 # optimizations to be activated explicitly by the toplevel.
2923 */prev-gcc/xgcc*) ;;
2924 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2928 # -------------------------
2929 # Check C compiler features
2930 # -------------------------
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 egrep" >&5
3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3170 if test "${ac_cv_prog_egrep+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3174 then ac_cv_prog_egrep='grep -E'
3175 else ac_cv_prog_egrep='egrep'
3178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3180 EGREP=$ac_cv_prog_egrep
3183 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3185 if test "${ac_cv_header_stdc+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209 (eval $ac_compile) 2>conftest.er1
3211 grep -v '^ *+' conftest.er1 >conftest.err
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } &&
3216 { ac_try='test -z "$ac_c_werror_flag"
3217 || test ! -s conftest.err'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_cv_header_stdc=yes
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 ac_cv_header_stdc=no
3236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3238 if test $ac_cv_header_stdc = yes; then
3239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3250 $EGREP "memchr" >/dev/null 2>&1; then
3253 ac_cv_header_stdc=no
3259 if test $ac_cv_header_stdc = yes; then
3260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 $EGREP "free" >/dev/null 2>&1; then
3274 ac_cv_header_stdc=no
3280 if test $ac_cv_header_stdc = yes; then
3281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3282 if test "$cross_compiling" = yes; then
3285 cat >conftest.$ac_ext <<_ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3292 #if ((' ' & 0x0FF) == 0x020)
3293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3296 # define ISLOWER(c) \
3297 (('a' <= (c) && (c) <= 'i') \
3298 || ('j' <= (c) && (c) <= 'r') \
3299 || ('s' <= (c) && (c) <= 'z'))
3300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3308 for (i = 0; i < 256; i++)
3309 if (XOR (islower (i), ISLOWER (i))
3310 || toupper (i) != TOUPPER (i))
3315 rm -f conftest$ac_exeext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3317 (eval $ac_link) 2>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3328 echo "$as_me: program exited with status $ac_status" >&5
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3333 ac_cv_header_stdc=no
3335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3340 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3341 if test $ac_cv_header_stdc = yes; then
3343 cat >>confdefs.h <<\_ACEOF
3344 #define STDC_HEADERS 1
3349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3360 inttypes.h stdint.h unistd.h
3362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3363 echo "$as_me:$LINENO: checking for $ac_header" >&5
3364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 cat >conftest.$ac_ext <<_ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 $ac_includes_default
3376 #include <$ac_header>
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 eval "$as_ac_Header=yes"
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 eval "$as_ac_Header=no"
3407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3412 cat >>confdefs.h <<_ACEOF
3413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3422 if test "${ac_cv_header_minix_config_h+set}" = set; then
3423 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3424 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3425 if test "${ac_cv_header_minix_config_h+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3429 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3431 # Is the header compilable?
3432 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3433 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 $ac_includes_default
3441 #include <minix/config.h>
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 ac_header_compiler=yes
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 ac_header_compiler=no
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3474 echo "${ECHO_T}$ac_header_compiler" >&6
3476 # Is the header present?
3477 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3478 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3479 cat >conftest.$ac_ext <<_ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 #include <minix/config.h>
3487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null; then
3495 if test -s conftest.err; then
3496 ac_cpp_err=$ac_c_preproc_warn_flag
3497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504 if test -z "$ac_cpp_err"; then
3505 ac_header_preproc=yes
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 ac_header_preproc=no
3512 rm -f conftest.err conftest.$ac_ext
3513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3514 echo "${ECHO_T}$ac_header_preproc" >&6
3516 # So? What about this header?
3517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3519 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3520 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3521 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3522 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3523 ac_header_preproc=yes
3526 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3527 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3528 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3529 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3530 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3531 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3532 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3533 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3534 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3535 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3536 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3537 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3540 ## ------------------------------------------ ##
3541 ## Report this to the AC_PACKAGE_NAME lists. ##
3542 ## ------------------------------------------ ##
3545 sed "s/^/$as_me: WARNING: /" >&2
3548 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3549 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3550 if test "${ac_cv_header_minix_config_h+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 ac_cv_header_minix_config_h=$ac_header_preproc
3555 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3556 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3559 if test $ac_cv_header_minix_config_h = yes; then
3566 if test "$MINIX" = yes; then
3568 cat >>confdefs.h <<\_ACEOF
3569 #define _POSIX_SOURCE 1
3573 cat >>confdefs.h <<\_ACEOF
3574 #define _POSIX_1_SOURCE 2
3578 cat >>confdefs.h <<\_ACEOF
3586 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3587 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3588 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3598 # define __EXTENSIONS__ 1
3599 $ac_includes_default
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3612 grep -v '^ *+' conftest.er1 >conftest.err
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_cv_safe_to_define___extensions__=yes
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_cv_safe_to_define___extensions__=no
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3640 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3641 test $ac_cv_safe_to_define___extensions__ = yes &&
3642 cat >>confdefs.h <<\_ACEOF
3643 #define __EXTENSIONS__ 1
3646 cat >>confdefs.h <<\_ACEOF
3647 #define _ALL_SOURCE 1
3650 cat >>confdefs.h <<\_ACEOF
3651 #define _GNU_SOURCE 1
3654 cat >>confdefs.h <<\_ACEOF
3655 #define _POSIX_PTHREAD_SEMANTICS 1
3658 cat >>confdefs.h <<\_ACEOF
3659 #define _TANDEM_SOURCE 1
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3669 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3670 # On Suns, sometimes $CPP names a directory.
3671 if test -n "$CPP" && test -d "$CPP"; then
3674 if test -z "$CPP"; then
3675 if test "${ac_cv_prog_CPP+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 # Double quotes because CPP needs to be expanded
3679 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3682 for ac_c_preproc_warn_flag in '' yes
3684 # Use a header file that comes with gcc, so configuring glibc
3685 # with a fresh cross-compiler works.
3686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3687 # <limits.h> exists even on freestanding compilers.
3688 # On the NeXT, cc -E runs the code through the compiler's parser,
3689 # not just through cpp. "Syntax error" is here to catch this case.
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3697 # include <limits.h>
3699 # include <assert.h>
3703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } >/dev/null; then
3711 if test -s conftest.err; then
3712 ac_cpp_err=$ac_c_preproc_warn_flag
3713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3720 if test -z "$ac_cpp_err"; then
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3726 # Broken: fails on valid input.
3729 rm -f conftest.err conftest.$ac_ext
3731 # OK, works on sane cases. Now check whether non-existent headers
3732 # can be detected and how.
3733 cat >conftest.$ac_ext <<_ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3739 #include <ac_nonexistent.h>
3741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } >/dev/null; then
3749 if test -s conftest.err; then
3750 ac_cpp_err=$ac_c_preproc_warn_flag
3751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3758 if test -z "$ac_cpp_err"; then
3759 # Broken: success on invalid input.
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3765 # Passes both tests.
3769 rm -f conftest.err conftest.$ac_ext
3772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3773 rm -f conftest.err conftest.$ac_ext
3774 if $ac_preproc_ok; then
3786 echo "$as_me:$LINENO: result: $CPP" >&5
3787 echo "${ECHO_T}$CPP" >&6
3789 for ac_c_preproc_warn_flag in '' yes
3791 # Use a header file that comes with gcc, so configuring glibc
3792 # with a fresh cross-compiler works.
3793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3794 # <limits.h> exists even on freestanding compilers.
3795 # On the NeXT, cc -E runs the code through the compiler's parser,
3796 # not just through cpp. "Syntax error" is here to catch this case.
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3804 # include <limits.h>
3806 # include <assert.h>
3810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3813 grep -v '^ *+' conftest.er1 >conftest.err
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null; then
3818 if test -s conftest.err; then
3819 ac_cpp_err=$ac_c_preproc_warn_flag
3820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3827 if test -z "$ac_cpp_err"; then
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 # Broken: fails on valid input.
3836 rm -f conftest.err conftest.$ac_ext
3838 # OK, works on sane cases. Now check whether non-existent headers
3839 # can be detected and how.
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 #include <ac_nonexistent.h>
3848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } >/dev/null; then
3856 if test -s conftest.err; then
3857 ac_cpp_err=$ac_c_preproc_warn_flag
3858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3865 if test -z "$ac_cpp_err"; then
3866 # Broken: success on invalid input.
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 # Passes both tests.
3876 rm -f conftest.err conftest.$ac_ext
3879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3880 rm -f conftest.err conftest.$ac_ext
3881 if $ac_preproc_ok; then
3884 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&5
3886 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3887 See \`config.log' for more details." >&2;}
3888 { (exit 1); exit 1; }; }
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897 echo "$as_me:$LINENO: checking for inline" >&5
3898 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3899 if test "${ac_cv_c_inline+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 for ac_kw in inline __inline__ __inline; do
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3912 static $ac_kw foo_t static_foo () {return 0; }
3913 $ac_kw foo_t foo () {return 0; }
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_c_werror_flag"
3927 || test ! -s conftest.err'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 ac_cv_c_inline=$ac_kw; break
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3949 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3950 echo "${ECHO_T}$ac_cv_c_inline" >&6
3953 case $ac_cv_c_inline in
3956 case $ac_cv_c_inline in
3958 *) ac_val=$ac_cv_c_inline;;
3960 cat >>confdefs.h <<_ACEOF
3962 #define inline $ac_val
3969 # sizeof(char) is 1 by definition.
3970 echo "$as_me:$LINENO: checking for void *" >&5
3971 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3972 if test "${ac_cv_type_void_p+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 $ac_includes_default
3987 if (sizeof (void *))
3993 rm -f conftest.$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 (eval $ac_compile) 2>conftest.er1
3997 grep -v '^ *+' conftest.er1 >conftest.err
3999 cat conftest.err >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try='test -z "$ac_c_werror_flag"
4003 || test ! -s conftest.err'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try='test -s conftest.$ac_objext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 ac_cv_type_void_p=yes
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 ac_cv_type_void_p=no
4022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4024 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4025 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4027 echo "$as_me:$LINENO: checking size of void *" >&5
4028 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4029 if test "${ac_cv_sizeof_void_p+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 if test "$ac_cv_type_void_p" = yes; then
4033 # The cast to unsigned long works around a bug in the HP C Compiler
4034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4036 # This bug is HP SR number 8606223364.
4037 if test "$cross_compiling" = yes; then
4038 # Depending upon the size, compute the lo and hi bounds.
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 $ac_includes_default
4049 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4086 $ac_includes_default
4090 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4097 rm -f conftest.$ac_objext
4098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4099 (eval $ac_compile) 2>conftest.er1
4101 grep -v '^ *+' conftest.er1 >conftest.err
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try='test -z "$ac_c_werror_flag"
4107 || test ! -s conftest.err'
4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; } &&
4113 { ac_try='test -s conftest.$ac_objext'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ac_hi=$ac_mid; break
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 ac_lo=`expr $ac_mid + 1`
4125 if test $ac_lo -le $ac_mid; then
4129 ac_mid=`expr 2 '*' $ac_mid + 1`
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4137 cat >conftest.$ac_ext <<_ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 $ac_includes_default
4147 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4154 rm -f conftest.$ac_objext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>conftest.er1
4158 grep -v '^ *+' conftest.er1 >conftest.err
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -z "$ac_c_werror_flag"
4164 || test ! -s conftest.err'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest.$ac_objext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4178 cat >conftest.$ac_ext <<_ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 $ac_includes_default
4188 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4195 rm -f conftest.$ac_objext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>conftest.er1
4199 grep -v '^ *+' conftest.er1 >conftest.err
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -z "$ac_c_werror_flag"
4205 || test ! -s conftest.err'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 ac_lo=$ac_mid; break
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 ac_hi=`expr '(' $ac_mid ')' - 1`
4223 if test $ac_mid -le $ac_hi; then
4227 ac_mid=`expr 2 '*' $ac_mid`
4229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4240 # Binary search between lo and hi bounds.
4241 while test "x$ac_lo" != "x$ac_hi"; do
4242 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4243 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 $ac_includes_default
4253 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4260 rm -f conftest.$ac_objext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262 (eval $ac_compile) 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag"
4270 || test ! -s conftest.err'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4287 ac_lo=`expr '(' $ac_mid ')' + 1`
4289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4293 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4294 See \`config.log' for more details." >&5
4295 echo "$as_me: error: cannot compute sizeof (void *), 77
4296 See \`config.log' for more details." >&2;}
4297 { (exit 1); exit 1; }; } ;;
4300 if test "$cross_compiling" = yes; then
4301 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4302 See \`config.log' for more details." >&5
4303 echo "$as_me: error: cannot run test program while cross compiling
4304 See \`config.log' for more details." >&2;}
4305 { (exit 1); exit 1; }; }
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 $ac_includes_default
4314 long longval () { return (long) (sizeof (void *)); }
4315 unsigned long ulongval () { return (long) (sizeof (void *)); }
4322 FILE *f = fopen ("conftest.val", "w");
4325 if (((long) (sizeof (void *))) < 0)
4327 long i = longval ();
4328 if (i != ((long) (sizeof (void *))))
4330 fprintf (f, "%ld\n", i);
4334 unsigned long i = ulongval ();
4335 if (i != ((long) (sizeof (void *))))
4337 fprintf (f, "%lu\n", i);
4339 exit (ferror (f) || fclose (f) != 0);
4345 rm -f conftest$ac_exeext
4346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4347 (eval $ac_link) 2>&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_sizeof_void_p=`cat conftest.val`
4358 echo "$as_me: program exited with status $ac_status" >&5
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4363 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4364 See \`config.log' for more details." >&5
4365 echo "$as_me: error: cannot compute sizeof (void *), 77
4366 See \`config.log' for more details." >&2;}
4367 { (exit 1); exit 1; }; }
4369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4374 ac_cv_sizeof_void_p=0
4377 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4378 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4379 cat >>confdefs.h <<_ACEOF
4380 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4384 echo "$as_me:$LINENO: checking for short" >&5
4385 echo $ECHO_N "checking for short... $ECHO_C" >&6
4386 if test "${ac_cv_type_short+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 cat >conftest.$ac_ext <<_ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4395 $ac_includes_default
4407 rm -f conftest.$ac_objext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>conftest.er1
4411 grep -v '^ *+' conftest.er1 >conftest.err
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try='test -z "$ac_c_werror_flag"
4417 || test ! -s conftest.err'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 ac_cv_type_short=yes
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4438 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4439 echo "${ECHO_T}$ac_cv_type_short" >&6
4441 echo "$as_me:$LINENO: checking size of short" >&5
4442 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4443 if test "${ac_cv_sizeof_short+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 if test "$ac_cv_type_short" = yes; then
4447 # The cast to unsigned long works around a bug in the HP C Compiler
4448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4450 # This bug is HP SR number 8606223364.
4451 if test "$cross_compiling" = yes; then
4452 # Depending upon the size, compute the lo and hi bounds.
4453 cat >conftest.$ac_ext <<_ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4459 $ac_includes_default
4463 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4470 rm -f conftest.$ac_objext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>conftest.er1
4474 grep -v '^ *+' conftest.er1 >conftest.err
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -z "$ac_c_werror_flag"
4480 || test ! -s conftest.err'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; } &&
4486 { ac_try='test -s conftest.$ac_objext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4494 cat >conftest.$ac_ext <<_ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4500 $ac_includes_default
4504 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>conftest.er1
4515 grep -v '^ *+' conftest.er1 >conftest.err
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -z "$ac_c_werror_flag"
4521 || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 ac_hi=$ac_mid; break
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 ac_lo=`expr $ac_mid + 1`
4539 if test $ac_lo -le $ac_mid; then
4543 ac_mid=`expr 2 '*' $ac_mid + 1`
4545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 cat >conftest.$ac_ext <<_ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 $ac_includes_default
4561 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -z "$ac_c_werror_flag"
4578 || test ! -s conftest.err'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; } &&
4584 { ac_try='test -s conftest.$ac_objext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 $ac_includes_default
4602 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_lo=$ac_mid; break
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_hi=`expr '(' $ac_mid ')' - 1`
4637 if test $ac_mid -le $ac_hi; then
4641 ac_mid=`expr 2 '*' $ac_mid`
4643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654 # Binary search between lo and hi bounds.
4655 while test "x$ac_lo" != "x$ac_hi"; do
4656 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 $ac_includes_default
4667 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>conftest.er1
4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -z "$ac_c_werror_flag"
4684 || test ! -s conftest.err'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 ac_lo=`expr '(' $ac_mid ')' + 1`
4703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4706 ?*) ac_cv_sizeof_short=$ac_lo;;
4707 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4708 See \`config.log' for more details." >&5
4709 echo "$as_me: error: cannot compute sizeof (short), 77
4710 See \`config.log' for more details." >&2;}
4711 { (exit 1); exit 1; }; } ;;
4714 if test "$cross_compiling" = yes; then
4715 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4716 See \`config.log' for more details." >&5
4717 echo "$as_me: error: cannot run test program while cross compiling
4718 See \`config.log' for more details." >&2;}
4719 { (exit 1); exit 1; }; }
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 $ac_includes_default
4728 long longval () { return (long) (sizeof (short)); }
4729 unsigned long ulongval () { return (long) (sizeof (short)); }
4736 FILE *f = fopen ("conftest.val", "w");
4739 if (((long) (sizeof (short))) < 0)
4741 long i = longval ();
4742 if (i != ((long) (sizeof (short))))
4744 fprintf (f, "%ld\n", i);
4748 unsigned long i = ulongval ();
4749 if (i != ((long) (sizeof (short))))
4751 fprintf (f, "%lu\n", i);
4753 exit (ferror (f) || fclose (f) != 0);
4759 rm -f conftest$ac_exeext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4761 (eval $ac_link) 2>&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 ac_cv_sizeof_short=`cat conftest.val`
4772 echo "$as_me: program exited with status $ac_status" >&5
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4777 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4778 See \`config.log' for more details." >&5
4779 echo "$as_me: error: cannot compute sizeof (short), 77
4780 See \`config.log' for more details." >&2;}
4781 { (exit 1); exit 1; }; }
4783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4788 ac_cv_sizeof_short=0
4791 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4792 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4793 cat >>confdefs.h <<_ACEOF
4794 #define SIZEOF_SHORT $ac_cv_sizeof_short
4798 echo "$as_me:$LINENO: checking for int" >&5
4799 echo $ECHO_N "checking for int... $ECHO_C" >&6
4800 if test "${ac_cv_type_int+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 $ac_includes_default
4821 rm -f conftest.$ac_objext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823 (eval $ac_compile) 2>conftest.er1
4825 grep -v '^ *+' conftest.er1 >conftest.err
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } &&
4830 { ac_try='test -z "$ac_c_werror_flag"
4831 || test ! -s conftest.err'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; } &&
4837 { ac_try='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4852 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4853 echo "${ECHO_T}$ac_cv_type_int" >&6
4855 echo "$as_me:$LINENO: checking size of int" >&5
4856 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4857 if test "${ac_cv_sizeof_int+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test "$ac_cv_type_int" = yes; then
4861 # The cast to unsigned long works around a bug in the HP C Compiler
4862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4864 # This bug is HP SR number 8606223364.
4865 if test "$cross_compiling" = yes; then
4866 # Depending upon the size, compute the lo and hi bounds.
4867 cat >conftest.$ac_ext <<_ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 $ac_includes_default
4877 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest.$ac_objext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 $ac_includes_default
4918 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4925 rm -f conftest.$ac_objext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927 (eval $ac_compile) 2>conftest.er1
4929 grep -v '^ *+' conftest.er1 >conftest.err
4931 cat conftest.err >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -z "$ac_c_werror_flag"
4935 || test ! -s conftest.err'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; } &&
4941 { ac_try='test -s conftest.$ac_objext'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 ac_hi=$ac_mid; break
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 ac_lo=`expr $ac_mid + 1`
4953 if test $ac_lo -le $ac_mid; then
4957 ac_mid=`expr 2 '*' $ac_mid + 1`
4959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 $ac_includes_default
4975 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try='test -z "$ac_c_werror_flag"
4992 || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5006 cat >conftest.$ac_ext <<_ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 $ac_includes_default
5016 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>conftest.er1
5027 grep -v '^ *+' conftest.er1 >conftest.err
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest.$ac_objext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_lo=$ac_mid; break
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5050 ac_hi=`expr '(' $ac_mid ')' - 1`
5051 if test $ac_mid -le $ac_hi; then
5055 ac_mid=`expr 2 '*' $ac_mid`
5057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068 # Binary search between lo and hi bounds.
5069 while test "x$ac_lo" != "x$ac_hi"; do
5070 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5071 cat >conftest.$ac_ext <<_ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 $ac_includes_default
5081 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>conftest.er1
5092 grep -v '^ *+' conftest.er1 >conftest.err
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_c_werror_flag"
5098 || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 ac_lo=`expr '(' $ac_mid ')' + 1`
5117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5120 ?*) ac_cv_sizeof_int=$ac_lo;;
5121 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: cannot compute sizeof (int), 77
5124 See \`config.log' for more details." >&2;}
5125 { (exit 1); exit 1; }; } ;;
5128 if test "$cross_compiling" = yes; then
5129 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: cannot run test program while cross compiling
5132 See \`config.log' for more details." >&2;}
5133 { (exit 1); exit 1; }; }
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 $ac_includes_default
5142 long longval () { return (long) (sizeof (int)); }
5143 unsigned long ulongval () { return (long) (sizeof (int)); }
5150 FILE *f = fopen ("conftest.val", "w");
5153 if (((long) (sizeof (int))) < 0)
5155 long i = longval ();
5156 if (i != ((long) (sizeof (int))))
5158 fprintf (f, "%ld\n", i);
5162 unsigned long i = ulongval ();
5163 if (i != ((long) (sizeof (int))))
5165 fprintf (f, "%lu\n", i);
5167 exit (ferror (f) || fclose (f) != 0);
5173 rm -f conftest$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175 (eval $ac_link) 2>&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 ac_cv_sizeof_int=`cat conftest.val`
5186 echo "$as_me: program exited with status $ac_status" >&5
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5191 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5192 See \`config.log' for more details." >&5
5193 echo "$as_me: error: cannot compute sizeof (int), 77
5194 See \`config.log' for more details." >&2;}
5195 { (exit 1); exit 1; }; }
5197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5205 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5206 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5207 cat >>confdefs.h <<_ACEOF
5208 #define SIZEOF_INT $ac_cv_sizeof_int
5212 echo "$as_me:$LINENO: checking for long" >&5
5213 echo $ECHO_N "checking for long... $ECHO_C" >&6
5214 if test "${ac_cv_type_long+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 cat >conftest.$ac_ext <<_ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 $ac_includes_default
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>conftest.er1
5239 grep -v '^ *+' conftest.er1 >conftest.err
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -z "$ac_c_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5267 echo "${ECHO_T}$ac_cv_type_long" >&6
5269 echo "$as_me:$LINENO: checking size of long" >&5
5270 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5271 if test "${ac_cv_sizeof_long+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 if test "$ac_cv_type_long" = yes; then
5275 # The cast to unsigned long works around a bug in the HP C Compiler
5276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278 # This bug is HP SR number 8606223364.
5279 if test "$cross_compiling" = yes; then
5280 # Depending upon the size, compute the lo and hi bounds.
5281 cat >conftest.$ac_ext <<_ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 $ac_includes_default
5291 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1 >conftest.err
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5322 cat >conftest.$ac_ext <<_ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 $ac_includes_default
5332 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5339 rm -f conftest.$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -z "$ac_c_werror_flag"
5349 || test ! -s conftest.err'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try='test -s conftest.$ac_objext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5361 ac_hi=$ac_mid; break
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 ac_lo=`expr $ac_mid + 1`
5367 if test $ac_lo -le $ac_mid; then
5371 ac_mid=`expr 2 '*' $ac_mid + 1`
5373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 cat >conftest.$ac_ext <<_ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5389 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>conftest.er1
5400 grep -v '^ *+' conftest.er1 >conftest.err
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -z "$ac_c_werror_flag"
5406 || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5430 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5437 rm -f conftest.$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>conftest.er1
5441 grep -v '^ *+' conftest.er1 >conftest.err
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_lo=$ac_mid; break
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 ac_hi=`expr '(' $ac_mid ')' - 1`
5465 if test $ac_mid -le $ac_hi; then
5469 ac_mid=`expr 2 '*' $ac_mid`
5471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 # Binary search between lo and hi bounds.
5483 while test "x$ac_lo" != "x$ac_hi"; do
5484 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5485 cat >conftest.$ac_ext <<_ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5495 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5506 grep -v '^ *+' conftest.er1 >conftest.err
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest.$ac_objext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_lo=`expr '(' $ac_mid ')' + 1`
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5534 ?*) ac_cv_sizeof_long=$ac_lo;;
5535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5536 See \`config.log' for more details." >&5
5537 echo "$as_me: error: cannot compute sizeof (long), 77
5538 See \`config.log' for more details." >&2;}
5539 { (exit 1); exit 1; }; } ;;
5542 if test "$cross_compiling" = yes; then
5543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5544 See \`config.log' for more details." >&5
5545 echo "$as_me: error: cannot run test program while cross compiling
5546 See \`config.log' for more details." >&2;}
5547 { (exit 1); exit 1; }; }
5549 cat >conftest.$ac_ext <<_ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 $ac_includes_default
5556 long longval () { return (long) (sizeof (long)); }
5557 unsigned long ulongval () { return (long) (sizeof (long)); }
5564 FILE *f = fopen ("conftest.val", "w");
5567 if (((long) (sizeof (long))) < 0)
5569 long i = longval ();
5570 if (i != ((long) (sizeof (long))))
5572 fprintf (f, "%ld\n", i);
5576 unsigned long i = ulongval ();
5577 if (i != ((long) (sizeof (long))))
5579 fprintf (f, "%lu\n", i);
5581 exit (ferror (f) || fclose (f) != 0);
5587 rm -f conftest$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589 (eval $ac_link) 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_sizeof_long=`cat conftest.val`
5600 echo "$as_me: program exited with status $ac_status" >&5
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot compute sizeof (long), 77
5608 See \`config.log' for more details." >&2;}
5609 { (exit 1); exit 1; }; }
5611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5620 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5621 cat >>confdefs.h <<_ACEOF
5622 #define SIZEOF_LONG $ac_cv_sizeof_long
5626 echo "$as_me:$LINENO: checking for long long" >&5
5627 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5628 if test "${ac_cv_type_long_long+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 $ac_includes_default
5641 if ((long long *) 0)
5643 if (sizeof (long long))
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>conftest.er1
5653 grep -v '^ *+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_type_long_long=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_cv_type_long_long=no
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5680 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5681 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5682 if test $ac_cv_type_long_long = yes; then
5684 cat >>confdefs.h <<_ACEOF
5685 #define HAVE_LONG_LONG 1
5688 echo "$as_me:$LINENO: checking for long long" >&5
5689 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5690 if test "${ac_cv_type_long_long+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 cat >conftest.$ac_ext <<_ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 $ac_includes_default
5703 if ((long long *) 0)
5705 if (sizeof (long long))
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5715 grep -v '^ *+' conftest.er1 >conftest.err
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -z "$ac_c_werror_flag"
5721 || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_type_long_long=yes
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 ac_cv_type_long_long=no
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5742 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5743 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5745 echo "$as_me:$LINENO: checking size of long long" >&5
5746 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5747 if test "${ac_cv_sizeof_long_long+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test "$ac_cv_type_long_long" = yes; then
5751 # The cast to unsigned long works around a bug in the HP C Compiler
5752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754 # This bug is HP SR number 8606223364.
5755 if test "$cross_compiling" = yes; then
5756 # Depending upon the size, compute the lo and hi bounds.
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5767 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>conftest.er1
5778 grep -v '^ *+' conftest.er1 >conftest.err
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -z "$ac_c_werror_flag"
5784 || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5808 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5819 grep -v '^ *+' conftest.er1 >conftest.err
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_hi=$ac_mid; break
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 ac_lo=`expr $ac_mid + 1`
5843 if test $ac_lo -le $ac_mid; then
5847 ac_mid=`expr 2 '*' $ac_mid + 1`
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 cat >conftest.$ac_ext <<_ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 $ac_includes_default
5865 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>conftest.er1
5876 grep -v '^ *+' conftest.er1 >conftest.err
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5896 cat >conftest.$ac_ext <<_ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 $ac_includes_default
5906 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5913 rm -f conftest.$ac_objext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915 (eval $ac_compile) 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -z "$ac_c_werror_flag"
5923 || test ! -s conftest.err'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 ac_lo=$ac_mid; break
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5940 ac_hi=`expr '(' $ac_mid ')' - 1`
5941 if test $ac_mid -le $ac_hi; then
5945 ac_mid=`expr 2 '*' $ac_mid`
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 # Binary search between lo and hi bounds.
5959 while test "x$ac_lo" != "x$ac_hi"; do
5960 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5971 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_lo=`expr '(' $ac_mid ')' + 1`
6007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6011 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6012 See \`config.log' for more details." >&5
6013 echo "$as_me: error: cannot compute sizeof (long long), 77
6014 See \`config.log' for more details." >&2;}
6015 { (exit 1); exit 1; }; } ;;
6018 if test "$cross_compiling" = yes; then
6019 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6020 See \`config.log' for more details." >&5
6021 echo "$as_me: error: cannot run test program while cross compiling
6022 See \`config.log' for more details." >&2;}
6023 { (exit 1); exit 1; }; }
6025 cat >conftest.$ac_ext <<_ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 $ac_includes_default
6032 long longval () { return (long) (sizeof (long long)); }
6033 unsigned long ulongval () { return (long) (sizeof (long long)); }
6040 FILE *f = fopen ("conftest.val", "w");
6043 if (((long) (sizeof (long long))) < 0)
6045 long i = longval ();
6046 if (i != ((long) (sizeof (long long))))
6048 fprintf (f, "%ld\n", i);
6052 unsigned long i = ulongval ();
6053 if (i != ((long) (sizeof (long long))))
6055 fprintf (f, "%lu\n", i);
6057 exit (ferror (f) || fclose (f) != 0);
6063 rm -f conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065 (eval $ac_link) 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6074 ac_cv_sizeof_long_long=`cat conftest.val`
6076 echo "$as_me: program exited with status $ac_status" >&5
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6082 See \`config.log' for more details." >&5
6083 echo "$as_me: error: cannot compute sizeof (long long), 77
6084 See \`config.log' for more details." >&2;}
6085 { (exit 1); exit 1; }; }
6087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6092 ac_cv_sizeof_long_long=0
6095 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6096 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6104 echo "$as_me:$LINENO: checking for __int64" >&5
6105 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6106 if test "${ac_cv_type___int64+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 $ac_includes_default
6121 if (sizeof (__int64))
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>conftest.er1
6131 grep -v '^ *+' conftest.er1 >conftest.err
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -z "$ac_c_werror_flag"
6137 || test ! -s conftest.err'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 ac_cv_type___int64=yes
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 ac_cv_type___int64=no
6156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6158 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6159 echo "${ECHO_T}$ac_cv_type___int64" >&6
6160 if test $ac_cv_type___int64 = yes; then
6162 cat >>confdefs.h <<_ACEOF
6163 #define HAVE___INT64 1
6166 echo "$as_me:$LINENO: checking for __int64" >&5
6167 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6168 if test "${ac_cv_type___int64+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 cat >conftest.$ac_ext <<_ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 $ac_includes_default
6183 if (sizeof (__int64))
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>conftest.er1
6193 grep -v '^ *+' conftest.er1 >conftest.err
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest.$ac_objext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_cv_type___int64=yes
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6216 ac_cv_type___int64=no
6218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6220 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6221 echo "${ECHO_T}$ac_cv_type___int64" >&6
6223 echo "$as_me:$LINENO: checking size of __int64" >&5
6224 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6225 if test "${ac_cv_sizeof___int64+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 if test "$ac_cv_type___int64" = yes; then
6229 # The cast to unsigned long works around a bug in the HP C Compiler
6230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6232 # This bug is HP SR number 8606223364.
6233 if test "$cross_compiling" = yes; then
6234 # Depending upon the size, compute the lo and hi bounds.
6235 cat >conftest.$ac_ext <<_ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6245 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>conftest.er1
6256 grep -v '^ *+' conftest.er1 >conftest.err
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_c_werror_flag"
6262 || test ! -s conftest.err'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest.$ac_objext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 $ac_includes_default
6286 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6293 rm -f conftest.$ac_objext
6294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6295 (eval $ac_compile) 2>conftest.er1
6297 grep -v '^ *+' conftest.er1 >conftest.err
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_c_werror_flag"
6303 || test ! -s conftest.err'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest.$ac_objext'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 ac_hi=$ac_mid; break
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6320 ac_lo=`expr $ac_mid + 1`
6321 if test $ac_lo -le $ac_mid; then
6325 ac_mid=`expr 2 '*' $ac_mid + 1`
6327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 $ac_includes_default
6343 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6354 grep -v '^ *+' conftest.er1 >conftest.err
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag"
6360 || test ! -s conftest.err'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest.$ac_objext'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 $ac_includes_default
6384 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6391 rm -f conftest.$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>conftest.er1
6395 grep -v '^ *+' conftest.er1 >conftest.err
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try='test -z "$ac_c_werror_flag"
6401 || test ! -s conftest.err'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; } &&
6407 { ac_try='test -s conftest.$ac_objext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 ac_lo=$ac_mid; break
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 ac_hi=`expr '(' $ac_mid ')' - 1`
6419 if test $ac_mid -le $ac_hi; then
6423 ac_mid=`expr 2 '*' $ac_mid`
6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436 # Binary search between lo and hi bounds.
6437 while test "x$ac_lo" != "x$ac_hi"; do
6438 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 $ac_includes_default
6449 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6460 grep -v '^ *+' conftest.er1 >conftest.err
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_c_werror_flag"
6466 || test ! -s conftest.err'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 ac_lo=`expr '(' $ac_mid ')' + 1`
6485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6488 ?*) ac_cv_sizeof___int64=$ac_lo;;
6489 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6490 See \`config.log' for more details." >&5
6491 echo "$as_me: error: cannot compute sizeof (__int64), 77
6492 See \`config.log' for more details." >&2;}
6493 { (exit 1); exit 1; }; } ;;
6496 if test "$cross_compiling" = yes; then
6497 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6498 See \`config.log' for more details." >&5
6499 echo "$as_me: error: cannot run test program while cross compiling
6500 See \`config.log' for more details." >&2;}
6501 { (exit 1); exit 1; }; }
6503 cat >conftest.$ac_ext <<_ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 $ac_includes_default
6510 long longval () { return (long) (sizeof (__int64)); }
6511 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6518 FILE *f = fopen ("conftest.val", "w");
6521 if (((long) (sizeof (__int64))) < 0)
6523 long i = longval ();
6524 if (i != ((long) (sizeof (__int64))))
6526 fprintf (f, "%ld\n", i);
6530 unsigned long i = ulongval ();
6531 if (i != ((long) (sizeof (__int64))))
6533 fprintf (f, "%lu\n", i);
6535 exit (ferror (f) || fclose (f) != 0);
6541 rm -f conftest$ac_exeext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543 (eval $ac_link) 2>&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 ac_cv_sizeof___int64=`cat conftest.val`
6554 echo "$as_me: program exited with status $ac_status" >&5
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6559 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6560 See \`config.log' for more details." >&5
6561 echo "$as_me: error: cannot compute sizeof (__int64), 77
6562 See \`config.log' for more details." >&2;}
6563 { (exit 1); exit 1; }; }
6565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6570 ac_cv_sizeof___int64=0
6573 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6574 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6575 cat >>confdefs.h <<_ACEOF
6576 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6583 # ---------------------
6584 # Warnings and checking
6585 # ---------------------
6587 # Check $CC warning features (if it's GCC).
6588 # We want to use -pedantic, but we don't want warnings about
6591 # * overlong strings
6592 # So, we only use -pedantic if we can disable those warnings.
6595 save_CFLAGS="$CFLAGS"
6596 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6597 -Wmissing-prototypes; do
6598 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6600 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6601 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6602 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 cat >conftest.$ac_ext <<_ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6621 rm -f conftest.$ac_objext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6623 (eval $ac_compile) 2>conftest.er1
6625 grep -v '^ *+' conftest.er1 >conftest.err
6627 cat conftest.err >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } &&
6630 { ac_try='test -z "$ac_c_werror_flag"
6631 || test ! -s conftest.err'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; } &&
6637 { ac_try='test -s conftest.$ac_objext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6643 eval "$as_acx_Woption=yes"
6645 echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6648 eval "$as_acx_Woption=no"
6650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6653 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6654 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6655 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6656 loose_warn="$loose_warn${loose_warn:+ }$option"
6660 CFLAGS="$save_CFLAGS"
6663 save_CFLAGS="$CFLAGS"
6664 for option in -Wc++-compat; do
6665 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6667 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6668 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6669 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 cat >conftest.$ac_ext <<_ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6688 rm -f conftest.$ac_objext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690 (eval $ac_compile) 2>conftest.er1
6692 grep -v '^ *+' conftest.er1 >conftest.err
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -z "$ac_c_werror_flag"
6698 || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 eval "$as_acx_Woption=yes"
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 eval "$as_acx_Woption=no"
6717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6720 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6721 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6722 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6723 cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6727 CFLAGS="$save_CFLAGS"
6730 save_CFLAGS="$CFLAGS"
6731 for option in -Wold-style-definition \
6732 -Wmissing-format-attribute; do
6733 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6735 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6736 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6737 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 cat >conftest.$ac_ext <<_ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 eval "$as_acx_Woption=yes"
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 eval "$as_acx_Woption=no"
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6788 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6789 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6790 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6791 strict_warn="$strict_warn${strict_warn:+ }$option"
6795 CFLAGS="$save_CFLAGS"
6797 if test "$GCC" = yes; then
6798 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6799 -Wno-overlength-strings" >&5
6800 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6801 -Wno-overlength-strings... $ECHO_C" >&6
6802 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 save_CFLAGS="$CFLAGS"
6806 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6807 -Wno-overlength-strings"
6808 cat >conftest.$ac_ext <<_ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6823 rm -f conftest.$ac_objext
6824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6825 (eval $ac_compile) 2>conftest.er1
6827 grep -v '^ *+' conftest.er1 >conftest.err
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
6832 { ac_try='test -z "$ac_c_werror_flag"
6833 || test ! -s conftest.err'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; } &&
6839 { ac_try='test -s conftest.$ac_objext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6850 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
6852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6853 CFLAGS="$save_CFLAGS"
6855 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6856 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6857 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6858 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6859 -Wno-overlength-strings"
6866 # Check whether --enable-werror-always or --disable-werror-always was given.
6867 if test "${enable_werror_always+set}" = set; then
6868 enableval="$enable_werror_always"
6871 enable_werror_always=no
6873 if test $enable_werror_always = yes; then
6874 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6880 # The above macros do nothing if the compiler is not GCC. However, the
6881 # Makefile has more goo to add other flags, so this variabl is used to
6882 # enables warnings only for GCC.
6884 if test "x$GCC" = "xyes"; then
6885 warn_cflags='$(GCC_WARN_CFLAGS)'
6889 # Enable expensive internal checks
6891 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6895 # Check whether --enable-checking or --disable-checking was given.
6896 if test "${enable_checking+set}" = set; then
6897 enableval="$enable_checking"
6898 ac_checking_flags="${enableval}"
6901 # Determine the default checks.
6902 if test x$is_release = x ; then
6903 ac_checking_flags=yes
6905 ac_checking_flags=release
6908 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6909 for check in release $ac_checking_flags
6912 # these set all the flags to specific states
6913 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6914 ac_fold_checking= ; ac_gc_checking=1 ;
6915 ac_gc_always_collect= ; ac_rtl_checking= ;
6916 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6917 ac_tree_checking=1 ; ac_valgrind_checking= ;
6918 ac_types_checking=1 ;;
6919 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6920 ac_fold_checking= ; ac_gc_checking= ;
6921 ac_gc_always_collect= ; ac_rtl_checking= ;
6922 ac_rtlflag_checking= ; ac_runtime_checking= ;
6923 ac_tree_checking= ; ac_valgrind_checking= ;
6924 ac_types_checking= ;;
6925 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6926 ac_fold_checking=1 ; ac_gc_checking=1 ;
6927 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6928 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6929 ac_tree_checking=1 ; ac_valgrind_checking= ;
6930 ac_types_checking=1 ;;
6931 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6932 ac_fold_checking= ; ac_gc_checking= ;
6933 ac_gc_always_collect= ; ac_rtl_checking= ;
6934 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6935 ac_tree_checking= ; ac_valgrind_checking= ;
6936 ac_types_checking= ;;
6937 # these enable particular checks
6938 assert) ac_assert_checking=1 ;;
6939 df) ac_df_checking=1 ;;
6940 fold) ac_fold_checking=1 ;;
6941 gc) ac_gc_checking=1 ;;
6942 gcac) ac_gc_always_collect=1 ;;
6943 misc) ac_checking=1 ;;
6944 rtl) ac_rtl_checking=1 ;;
6945 rtlflag) ac_rtlflag_checking=1 ;;
6946 runtime) ac_runtime_checking=1 ;;
6947 tree) ac_tree_checking=1 ;;
6948 types) ac_types_checking=1 ;;
6949 valgrind) ac_valgrind_checking=1 ;;
6950 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6951 echo "$as_me: error: unknown check category $check" >&2;}
6952 { (exit 1); exit 1; }; } ;;
6958 if test x$ac_checking != x ; then
6960 cat >>confdefs.h <<\_ACEOF
6961 #define ENABLE_CHECKING 1
6964 nocommon_flag=-fno-common
6967 if test x$ac_df_checking != x ; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define ENABLE_DF_CHECKING 1
6974 if test x$ac_assert_checking != x ; then
6976 cat >>confdefs.h <<\_ACEOF
6977 #define ENABLE_ASSERT_CHECKING 1
6982 if test x$ac_runtime_checking != x ; then
6984 cat >>confdefs.h <<\_ACEOF
6985 #define ENABLE_RUNTIME_CHECKING 1
6989 if test x$ac_tree_checking != x ; then
6991 cat >>confdefs.h <<\_ACEOF
6992 #define ENABLE_TREE_CHECKING 1
6995 TREEBROWSER=tree-browser.o
6997 if test x$ac_types_checking != x ; then
6999 cat >>confdefs.h <<\_ACEOF
7000 #define ENABLE_TYPES_CHECKING 1
7005 if test x$ac_rtl_checking != x ; then
7007 cat >>confdefs.h <<\_ACEOF
7008 #define ENABLE_RTL_CHECKING 1
7012 if test x$ac_rtlflag_checking != x ; then
7014 cat >>confdefs.h <<\_ACEOF
7015 #define ENABLE_RTL_FLAG_CHECKING 1
7019 if test x$ac_gc_checking != x ; then
7021 cat >>confdefs.h <<\_ACEOF
7022 #define ENABLE_GC_CHECKING 1
7026 if test x$ac_gc_always_collect != x ; then
7028 cat >>confdefs.h <<\_ACEOF
7029 #define ENABLE_GC_ALWAYS_COLLECT 1
7033 if test x$ac_fold_checking != x ; then
7035 cat >>confdefs.h <<\_ACEOF
7036 #define ENABLE_FOLD_CHECKING 1
7040 valgrind_path_defines=
7043 if test "${ac_cv_header_valgrind_h+set}" = set; then
7044 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7045 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7046 if test "${ac_cv_header_valgrind_h+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7050 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7052 # Is the header compilable?
7053 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7054 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 $ac_includes_default
7062 #include <valgrind.h>
7064 rm -f conftest.$ac_objext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>conftest.er1
7068 grep -v '^ *+' conftest.er1 >conftest.err
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -z "$ac_c_werror_flag"
7074 || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 ac_header_compiler=yes
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7091 ac_header_compiler=no
7093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095 echo "${ECHO_T}$ac_header_compiler" >&6
7097 # Is the header present?
7098 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7099 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 #include <valgrind.h>
7108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7111 grep -v '^ *+' conftest.er1 >conftest.err
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } >/dev/null; then
7116 if test -s conftest.err; then
7117 ac_cpp_err=$ac_c_preproc_warn_flag
7118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7125 if test -z "$ac_cpp_err"; then
7126 ac_header_preproc=yes
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_header_preproc=no
7133 rm -f conftest.err conftest.$ac_ext
7134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7135 echo "${ECHO_T}$ac_header_preproc" >&6
7137 # So? What about this header?
7138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7140 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7141 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7142 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7143 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7144 ac_header_preproc=yes
7147 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7148 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7149 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7150 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7151 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7152 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7153 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7154 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7155 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7156 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7157 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7158 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7161 ## ------------------------------------------ ##
7162 ## Report this to the AC_PACKAGE_NAME lists. ##
7163 ## ------------------------------------------ ##
7166 sed "s/^/$as_me: WARNING: /" >&2
7169 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7170 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7171 if test "${ac_cv_header_valgrind_h+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 ac_cv_header_valgrind_h=$ac_header_preproc
7176 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7177 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7180 if test $ac_cv_header_valgrind_h = yes; then
7188 if test x$ac_valgrind_checking != x ; then
7189 # It is certainly possible that there's valgrind but no valgrind.h.
7190 # GCC relies on making annotations so we must have both.
7191 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7192 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 #include <valgrind/memcheck.h>
7200 #ifndef VALGRIND_DISCARD
7201 #error VALGRIND_DISCARD not defined
7204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7207 grep -v '^ *+' conftest.er1 >conftest.err
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } >/dev/null; then
7212 if test -s conftest.err; then
7213 ac_cpp_err=$ac_c_preproc_warn_flag
7214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7221 if test -z "$ac_cpp_err"; then
7222 gcc_cv_header_valgrind_memcheck_h=yes
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 gcc_cv_header_valgrind_memcheck_h=no
7229 rm -f conftest.err conftest.$ac_ext
7230 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7231 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7232 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7233 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 #include <memcheck.h>
7241 #ifndef VALGRIND_DISCARD
7242 #error VALGRIND_DISCARD not defined
7245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7248 grep -v '^ *+' conftest.er1 >conftest.err
7250 cat conftest.err >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } >/dev/null; then
7253 if test -s conftest.err; then
7254 ac_cpp_err=$ac_c_preproc_warn_flag
7255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7262 if test -z "$ac_cpp_err"; then
7263 gcc_cv_header_memcheck_h=yes
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 gcc_cv_header_memcheck_h=no
7270 rm -f conftest.err conftest.$ac_ext
7271 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7272 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7274 # Prepare PATH_SEPARATOR.
7275 # The user is always right.
7276 if test "${PATH_SEPARATOR+set}" != set; then
7277 echo "#! /bin/sh" >conf$$.sh
7278 echo "exit 0" >>conf$$.sh
7280 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7288 # Find out how to test for executable files. Don't use a zero-byte file,
7289 # as systems may use methods other than mode bits to determine executability.
7290 cat >conf$$.file <<_ASEOF
7294 chmod +x conf$$.file
7295 if test -x conf$$.file >/dev/null 2>&1; then
7296 ac_executable_p="test -x"
7298 ac_executable_p="test -f"
7302 # Extract the first word of "valgrind", so it can be a program name with args.
7303 set dummy valgrind; ac_word=$2
7304 echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7306 if test "${ac_cv_path_valgrind_path+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 case "$valgrind_path" in
7311 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7314 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7315 for ac_dir in $PATH; do
7317 test -z "$ac_dir" && ac_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7320 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7321 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7331 valgrind_path="$ac_cv_path_valgrind_path"
7332 if test -n "$valgrind_path"; then
7333 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7334 echo "${ECHO_T}$valgrind_path" >&6
7336 echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6
7340 if test "x$valgrind_path" = "x" \
7341 || (test $have_valgrind_h = no \
7342 && test $gcc_cv_header_memcheck_h = no \
7343 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7344 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7345 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7346 { (exit 1); exit 1; }; }
7348 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7349 valgrind_command="$valgrind_path -q"
7351 cat >>confdefs.h <<\_ACEOF
7352 #define ENABLE_VALGRIND_CHECKING 1
7355 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7357 cat >>confdefs.h <<\_ACEOF
7358 #define HAVE_VALGRIND_MEMCHECK_H 1
7362 if test $gcc_cv_header_memcheck_h = yes; then
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_MEMCHECK_H 1
7373 # Enable code coverage collection
7374 # Check whether --enable-coverage or --disable-coverage was given.
7375 if test "${enable_coverage+set}" = set; then
7376 enableval="$enable_coverage"
7377 case "${enableval}" in
7379 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7382 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7385 # a.k.a. --disable-coverage
7389 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7390 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7391 { (exit 1); exit 1; }; }
7399 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7400 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7401 enableval="$enable_gather_detailed_mem_stats"
7404 enable_gather_detailed_mem_stats=no
7406 if test x$enable_gather_detailed_mem_stats = xyes ; then
7408 cat >>confdefs.h <<\_ACEOF
7409 #define GATHER_STATISTICS 1
7414 # -------------------------------
7415 # Miscenalleous configure options
7416 # -------------------------------
7420 # Check whether --with-stabs or --without-stabs was given.
7421 if test "${with_stabs+set}" = set; then
7422 withval="$with_stabs"
7428 # Determine whether or not multilibs are enabled.
7429 # Check whether --enable-multilib or --disable-multilib was given.
7430 if test "${enable_multilib+set}" = set; then
7431 enableval="$enable_multilib"
7438 # Enable __cxa_atexit for C++.
7439 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7440 if test "${enable___cxa_atexit+set}" = set; then
7441 enableval="$enable___cxa_atexit"
7445 # Enable C extension for decimal float if target supports it.
7446 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7447 if test "${enable_decimal_float+set}" = set; then
7448 enableval="$enable_decimal_float"
7450 case $enable_decimal_float in
7451 yes | no | bid | dpd) ;;
7452 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7453 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7454 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7455 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7456 { (exit 1); exit 1; }; } ;;
7462 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7463 enable_decimal_float=yes
7466 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7467 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7468 enable_decimal_float=no
7474 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7476 cat >>confdefs.h <<_ACEOF
7477 #define ENABLE_DECIMAL_FLOAT $dfp
7481 # x86's use BID format instead of DPD
7482 case x$enable_decimal_float in
7485 i?86*-*-linux* | x86_64*-*-linux*)
7486 enable_decimal_float=bid
7489 enable_decimal_float=dpd
7494 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7495 # dependency on libdecnumber.
7496 enable_decimal_float=dpd
7501 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7503 cat >>confdefs.h <<_ACEOF
7504 #define ENABLE_DECIMAL_BID_FORMAT $bid
7508 # Enable C extension for fixed-point arithmetic.
7509 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7510 if test "${enable_fixed_point+set}" = set; then
7511 enableval="$enable_fixed_point"
7520 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7521 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7522 enable_fixed_point=no
7525 enable_fixed_point=yes
7530 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7531 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7532 enable_fixed_point=no
7539 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7541 cat >>confdefs.h <<_ACEOF
7542 #define ENABLE_FIXED_POINT $fixedpoint
7547 # Pass with no value to take the default
7548 # Pass with a value to specify a thread package
7549 # Check whether --enable-threads or --disable-threads was given.
7550 if test "${enable_threads+set}" = set; then
7551 enableval="$enable_threads"
7557 # Check whether --enable-tls or --disable-tls was given.
7558 if test "${enable_tls+set}" = set; then
7559 enableval="$enable_tls"
7563 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7564 Valid choices are 'yes' and 'no'." >&5
7565 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7566 Valid choices are 'yes' and 'no'." >&2;}
7567 { (exit 1); exit 1; }; } ;;
7574 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7575 if test "${enable_objc_gc+set}" = set; then
7576 enableval="$enable_objc_gc"
7577 if test x$enable_objc_gc = xno; then
7587 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7588 if test "${with_dwarf2+set}" = set; then
7589 withval="$with_dwarf2"
7590 dwarf2="$with_dwarf2"
7595 # Check whether --enable-shared or --disable-shared was given.
7596 if test "${enable_shared+set}" = set; then
7597 enableval="$enable_shared"
7599 case $enable_shared in
7603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7604 for pkg in $enableval; do
7605 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7619 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7620 if test "${with_build_sysroot+set}" = set; then
7621 withval="$with_build_sysroot"
7626 # Check whether --with-sysroot or --without-sysroot was given.
7627 if test "${with_sysroot+set}" = set; then
7628 withval="$with_sysroot"
7630 case ${with_sysroot} in
7631 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7632 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7635 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7636 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7638 if test "x$prefix" = xNONE; then
7639 test_prefix=/usr/local
7643 if test "x$exec_prefix" = xNONE; then
7644 test_exec_prefix=$test_prefix
7646 test_exec_prefix=$exec_prefix
7648 case ${TARGET_SYSTEM_ROOT} in
7649 "${test_prefix}"|"${test_prefix}/"*|\
7650 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7651 '${prefix}'|'${prefix}/'*|\
7652 '${exec_prefix}'|'${exec_prefix}/'*)
7653 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7654 TARGET_SYSTEM_ROOT_DEFINE="$t"
7661 TARGET_SYSTEM_ROOT_DEFINE=
7662 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7669 # Build with intermodule optimisations
7670 # Check whether --enable-intermodule or --disable-intermodule was given.
7671 if test "${enable_intermodule+set}" = set; then
7672 enableval="$enable_intermodule"
7673 case ${enable_intermodule} in
7674 yes) onestep="-onestep";;
7684 # Check whether --with-pkgversion or --without-pkgversion was given.
7685 if test "${with_pkgversion+set}" = set; then
7686 withval="$with_pkgversion"
7688 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7689 echo "$as_me: error: package version not specified" >&2;}
7690 { (exit 1); exit 1; }; } ;;
7692 *) PKGVERSION="($withval) " ;;
7702 # Check whether --with-bugurl or --without-bugurl was given.
7703 if test "${with_bugurl+set}" = set; then
7704 withval="$with_bugurl"
7706 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7707 echo "$as_me: error: bug URL not specified" >&2;}
7708 { (exit 1); exit 1; }; } ;;
7711 *) BUGURL="$withval"
7715 BUGURL="http://gcc.gnu.org/bugs.html"
7724 REPORT_BUGS_TO="<$BUGURL>"
7725 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7732 # Sanity check enable_languages in case someone does not run the toplevel
7733 # configure # script.
7734 # Check whether --enable-languages or --disable-languages was given.
7735 if test "${enable_languages+set}" = set; then
7736 enableval="$enable_languages"
7737 case ,${enable_languages}, in
7739 # go safe -- we cannot be much sure without the toplevel
7741 # analysis of which target libs are present and usable
7745 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7746 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7747 { (exit 1); exit 1; }; }
7752 enable_languages=c,${enable_languages}
7759 # Used by documentation targets
7764 # -------------------------
7765 # Checks for other programs
7766 # -------------------------
7768 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7769 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7770 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7771 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 cat >conftest.make <<\_ACEOF
7776 @echo 'ac_maketemp="$(MAKE)"'
7778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7779 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7780 if test -n "$ac_maketemp"; then
7781 eval ac_cv_prog_make_${ac_make}_set=yes
7783 eval ac_cv_prog_make_${ac_make}_set=no
7787 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7788 echo "$as_me:$LINENO: result: yes" >&5
7789 echo "${ECHO_T}yes" >&6
7792 echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6
7794 SET_MAKE="MAKE=${MAKE-make}"
7798 # Find some useful tools
7799 for ac_prog in gawk mawk nawk awk
7801 # Extract the first word of "$ac_prog", so it can be a program name with args.
7802 set dummy $ac_prog; ac_word=$2
7803 echo "$as_me:$LINENO: checking for $ac_word" >&5
7804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7805 if test "${ac_cv_prog_AWK+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 if test -n "$AWK"; then
7809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_AWK="$ac_prog"
7819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 if test -n "$AWK"; then
7829 echo "$as_me:$LINENO: result: $AWK" >&5
7830 echo "${ECHO_T}$AWK" >&6
7832 echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6
7836 test -n "$AWK" && break
7839 # We need awk to create options.c and options.h.
7840 # Bail out if it's missing.
7842 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7843 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7844 { (exit 1); exit 1; }; } ;;
7847 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7848 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7849 if test "${gcc_cv_prog_LN_S+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 rm -f conftestdata_t
7853 echo >conftestdata_f
7854 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7856 gcc_cv_prog_LN_S="ln -s"
7858 if ln conftestdata_f conftestdata_t 2>/dev/null
7862 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7864 gcc_cv_prog_LN_S="cp -p"
7870 rm -f conftestdata_f conftestdata_t
7873 LN_S="$gcc_cv_prog_LN_S"
7874 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7875 echo "$as_me:$LINENO: result: yes" >&5
7876 echo "${ECHO_T}yes" >&6
7878 if test "$gcc_cv_prog_LN_S" = "ln"; then
7879 echo "$as_me:$LINENO: result: no, using ln" >&5
7880 echo "${ECHO_T}no, using ln" >&6
7882 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7883 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7887 echo "$as_me:$LINENO: checking whether ln works" >&5
7888 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7889 if test "${acx_cv_prog_LN+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 rm -f conftestdata_t
7893 echo >conftestdata_f
7894 if ln conftestdata_f conftestdata_t 2>/dev/null
7900 rm -f conftestdata_f conftestdata_t
7903 if test $acx_cv_prog_LN = no; then
7905 echo "$as_me:$LINENO: result: no, using $LN" >&5
7906 echo "${ECHO_T}no, using $LN" >&6
7908 LN="$acx_cv_prog_LN"
7909 echo "$as_me:$LINENO: result: yes" >&5
7910 echo "${ECHO_T}yes" >&6
7913 if test -n "$ac_tool_prefix"; then
7914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7916 echo "$as_me:$LINENO: checking for $ac_word" >&5
7917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7918 if test "${ac_cv_prog_RANLIB+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 if test -n "$RANLIB"; then
7922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 RANLIB=$ac_cv_prog_RANLIB
7941 if test -n "$RANLIB"; then
7942 echo "$as_me:$LINENO: result: $RANLIB" >&5
7943 echo "${ECHO_T}$RANLIB" >&6
7945 echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6
7950 if test -z "$ac_cv_prog_RANLIB"; then
7951 ac_ct_RANLIB=$RANLIB
7952 # Extract the first word of "ranlib", so it can be a program name with args.
7953 set dummy ranlib; ac_word=$2
7954 echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7956 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 if test -n "$ac_ct_RANLIB"; then
7960 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969 ac_cv_prog_ac_ct_RANLIB="ranlib"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7979 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7980 if test -n "$ac_ct_RANLIB"; then
7981 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7982 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7984 echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6
7988 RANLIB=$ac_ct_RANLIB
7990 RANLIB="$ac_cv_prog_RANLIB"
7995 # By default, the Darwin ranlib will not treat common symbols as
7996 # definitions when building the archive table of contents. Other
7997 # ranlibs do that; pass an option to the Darwin ranlib that makes
7998 # it behave similarly.
8006 # Find a good install program. We prefer a C program (faster),
8007 # so one script is as good as another. But avoid the broken or
8008 # incompatible versions:
8009 # SysV /etc/install, /usr/sbin/install
8010 # SunOS /usr/etc/install
8011 # IRIX /sbin/install
8013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8015 # ./install, which can be erroneously created by make from ./install.sh.
8016 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8017 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8018 if test -z "$INSTALL"; then
8019 if test "${ac_cv_path_install+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8023 for ac_dir in $PATH; do
8024 # Account for people who put trailing slashes in PATH elements.
8026 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8028 # OSF1 and SCO ODT 3.0 have their own names for install.
8029 for ac_prog in ginstall scoinst install; do
8030 if test -f $ac_dir/$ac_prog; then
8031 if test $ac_prog = install &&
8032 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8033 # AIX install. It has an incompatible calling convention.
8034 # OSF/1 installbsd also uses dspmsg, but is usable.
8037 ac_cv_path_install="$ac_dir/$ac_prog -c"
8048 if test "${ac_cv_path_install+set}" = set; then
8049 INSTALL="$ac_cv_path_install"
8051 # As a last resort, use the slow shell script. We don't cache a
8052 # path for INSTALL within a source directory, because that will
8053 # break other packages using the cache if that directory is
8054 # removed, or if the path is relative.
8055 INSTALL="$ac_install_sh"
8058 echo "$as_me:$LINENO: result: $INSTALL" >&5
8059 echo "${ECHO_T}$INSTALL" >&6
8061 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8062 # It thinks the first close brace ends the variable substitution.
8063 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8068 # See if cmp has --ignore-initial.
8069 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8070 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8071 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 gcc_cv_prog_cmp_skip=slowcompare
8077 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8078 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8081 gcc_cv_prog_cmp_skip=gnucompare
8084 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8085 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8086 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8089 gcc_cv_prog_cmp_skip=fastcompare
8096 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8097 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8098 make_compare_target=$gcc_cv_prog_cmp_skip
8102 # See if we have the mktemp command.
8103 # Extract the first word of "mktemp", so it can be a program name with args.
8104 set dummy mktemp; ac_word=$2
8105 echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8107 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 if test -n "$have_mktemp_command"; then
8111 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_have_mktemp_command="yes"
8121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8130 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8131 if test -n "$have_mktemp_command"; then
8132 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8133 echo "${ECHO_T}$have_mktemp_command" >&6
8135 echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8140 # See if makeinfo has been installed and is modern enough
8141 # that we can use it.
8143 # Extract the first word of "makeinfo", so it can be a program name with args.
8144 set dummy makeinfo; ac_word=$2
8145 echo "$as_me:$LINENO: checking for $ac_word" >&5
8146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8147 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 if test -n "$MAKEINFO"; then
8151 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 test -z "$as_dir" && as_dir=.
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160 ac_cv_prog_MAKEINFO="makeinfo"
8161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 MAKEINFO=$ac_cv_prog_MAKEINFO
8170 if test -n "$MAKEINFO"; then
8171 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8172 echo "${ECHO_T}$MAKEINFO" >&6
8174 echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6
8178 if test -n "$MAKEINFO"; then
8179 # Found it, now check the version.
8180 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8181 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8182 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8186 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8188 case $ac_prog_version in
8189 '') gcc_cv_prog_makeinfo_modern=no;;
8190 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8191 *) gcc_cv_prog_makeinfo_modern=no;;
8195 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8196 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8198 gcc_cv_prog_makeinfo_modern=no
8200 if test $gcc_cv_prog_makeinfo_modern = no; then
8201 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8204 if test $gcc_cv_prog_makeinfo_modern = no; then
8205 { echo "$as_me:$LINENO: WARNING:
8206 *** Makeinfo is missing or too old.
8207 *** Info documentation will not be built." >&5
8208 echo "$as_me: WARNING:
8209 *** Makeinfo is missing or too old.
8210 *** Info documentation will not be built." >&2;}
8217 # Is pod2man recent enough to regenerate manpages?
8218 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8219 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8220 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8221 echo "$as_me:$LINENO: result: yes" >&5
8222 echo "${ECHO_T}yes" >&6
8223 GENERATED_MANPAGES=generated-manpages
8225 echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8231 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8236 # Extract the first word of "$ac_prog", so it can be a program name with args.
8237 set dummy $ac_prog; ac_word=$2
8238 echo "$as_me:$LINENO: checking for $ac_word" >&5
8239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8240 if test "${ac_cv_prog_FLEX+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 if test -n "$FLEX"; then
8244 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_FLEX="$ac_prog"
8254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 FLEX=$ac_cv_prog_FLEX
8263 if test -n "$FLEX"; then
8264 echo "$as_me:$LINENO: result: $FLEX" >&5
8265 echo "${ECHO_T}$FLEX" >&6
8267 echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6
8271 test -n "$FLEX" && break
8273 test -n "$FLEX" || FLEX="$MISSING flex"
8277 for ac_prog in bison
8279 # Extract the first word of "$ac_prog", so it can be a program name with args.
8280 set dummy $ac_prog; ac_word=$2
8281 echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283 if test "${ac_cv_prog_BISON+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 if test -n "$BISON"; then
8287 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_BISON="$ac_prog"
8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 BISON=$ac_cv_prog_BISON
8306 if test -n "$BISON"; then
8307 echo "$as_me:$LINENO: result: $BISON" >&5
8308 echo "${ECHO_T}$BISON" >&6
8310 echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8314 test -n "$BISON" && break
8316 test -n "$BISON" || BISON="$MISSING bison"
8319 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8320 # check for build == host before using them.
8323 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8324 && test -d ../binutils ; then
8325 NM='$(objdir)/../binutils/nm-new'
8327 # Extract the first word of "nm", so it can be a program name with args.
8328 set dummy nm; ac_word=$2
8329 echo "$as_me:$LINENO: checking for $ac_word" >&5
8330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8331 if test "${ac_cv_prog_NM+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 if test -n "$NM"; then
8335 ac_cv_prog_NM="$NM" # Let the user override the test.
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 test -z "$as_dir" && as_dir=.
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8355 if test -n "$NM"; then
8356 echo "$as_me:$LINENO: result: $NM" >&5
8357 echo "${ECHO_T}$NM" >&6
8359 echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6
8366 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8367 && test -d ../binutils ; then
8368 AR='$(objdir)/../binutils/ar'
8370 # Extract the first word of "ar", so it can be a program name with args.
8371 set dummy ar; ac_word=$2
8372 echo "$as_me:$LINENO: checking for $ac_word" >&5
8373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8374 if test "${ac_cv_prog_AR+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 if test -n "$AR"; then
8378 ac_cv_prog_AR="$AR" # Let the user override the test.
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8398 if test -n "$AR"; then
8399 echo "$as_me:$LINENO: result: $AR" >&5
8400 echo "${ECHO_T}$AR" >&6
8402 echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6
8409 # --------------------
8410 # Checks for C headers
8411 # --------------------
8413 # Need to reject headers which give warnings, so that the -Werror bootstrap
8414 # works later. *sigh* This needs to come before all header checks.
8416 ac_c_preproc_warn_flag=yes
8418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8420 if test "${ac_cv_header_stdc+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag"
8452 || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest.$ac_objext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_cv_header_stdc=yes
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_cv_header_stdc=no
8471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8473 if test $ac_cv_header_stdc = yes; then
8474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "memchr" >/dev/null 2>&1; then
8488 ac_cv_header_stdc=no
8494 if test $ac_cv_header_stdc = yes; then
8495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8506 $EGREP "free" >/dev/null 2>&1; then
8509 ac_cv_header_stdc=no
8515 if test $ac_cv_header_stdc = yes; then
8516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8517 if test "$cross_compiling" = yes; then
8520 cat >conftest.$ac_ext <<_ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8527 #if ((' ' & 0x0FF) == 0x020)
8528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8531 # define ISLOWER(c) \
8532 (('a' <= (c) && (c) <= 'i') \
8533 || ('j' <= (c) && (c) <= 'r') \
8534 || ('s' <= (c) && (c) <= 'z'))
8535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8543 for (i = 0; i < 256; i++)
8544 if (XOR (islower (i), ISLOWER (i))
8545 || toupper (i) != TOUPPER (i))
8550 rm -f conftest$ac_exeext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552 (eval $ac_link) 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8563 echo "$as_me: program exited with status $ac_status" >&5
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8568 ac_cv_header_stdc=no
8570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8574 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8575 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8576 if test $ac_cv_header_stdc = yes; then
8578 cat >>confdefs.h <<\_ACEOF
8579 #define STDC_HEADERS 1
8584 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8585 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8586 if test "${ac_cv_header_time+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 #include <sys/types.h>
8596 #include <sys/time.h>
8602 if ((struct tm *) 0)
8608 rm -f conftest.$ac_objext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610 (eval $ac_compile) 2>conftest.er1
8612 grep -v '^ *+' conftest.er1 >conftest.err
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag"
8618 || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest.$ac_objext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_cv_header_time=yes
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_cv_header_time=no
8637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8639 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8640 echo "${ECHO_T}$ac_cv_header_time" >&6
8641 if test $ac_cv_header_time = yes; then
8643 cat >>confdefs.h <<\_ACEOF
8644 #define TIME_WITH_SYS_TIME 1
8649 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8650 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8651 if test "${gcc_cv_header_string+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 cat >conftest.$ac_ext <<_ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8661 #include <strings.h>
8670 rm -f conftest.$ac_objext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8672 (eval $ac_compile) 2>conftest.er1
8674 grep -v '^ *+' conftest.er1 >conftest.err
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -z "$ac_c_werror_flag"
8680 || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try='test -s conftest.$ac_objext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 gcc_cv_header_string=yes
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 gcc_cv_header_string=no
8699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8701 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8702 echo "${ECHO_T}$gcc_cv_header_string" >&6
8703 if test $gcc_cv_header_string = yes; then
8705 cat >>confdefs.h <<\_ACEOF
8706 #define STRING_WITH_STRINGS 1
8711 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8712 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8713 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 cat >conftest.$ac_ext <<_ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8722 #include <sys/types.h>
8723 #include <sys/wait.h>
8725 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8728 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8736 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8741 rm -f conftest.$ac_objext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743 (eval $ac_compile) 2>conftest.er1
8745 grep -v '^ *+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -z "$ac_c_werror_flag"
8751 || test ! -s conftest.err'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest.$ac_objext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 ac_cv_header_sys_wait_h=yes
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 ac_cv_header_sys_wait_h=no
8770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8773 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8774 if test $ac_cv_header_sys_wait_h = yes; then
8776 cat >>confdefs.h <<\_ACEOF
8777 #define HAVE_SYS_WAIT_H 1
8804 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8805 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8806 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8807 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8810 echo "$as_me:$LINENO: checking for $ac_header" >&5
8811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821 #include <$ac_header>
8823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8826 grep -v '^ *+' conftest.er1 >conftest.err
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } >/dev/null; then
8831 if test -s conftest.err; then
8832 ac_cpp_err=$ac_c_preproc_warn_flag
8833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8840 if test -z "$ac_cpp_err"; then
8841 eval "$as_ac_Header=yes"
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 eval "$as_ac_Header=no"
8848 rm -f conftest.err conftest.$ac_ext
8850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8853 cat >>confdefs.h <<_ACEOF
8854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8861 # Check for thread headers.
8862 echo "$as_me:$LINENO: checking for thread.h" >&5
8863 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8864 if test "${ac_cv_header_thread_h+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8878 grep -v '^ *+' conftest.er1 >conftest.err
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } >/dev/null; then
8883 if test -s conftest.err; then
8884 ac_cpp_err=$ac_c_preproc_warn_flag
8885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8892 if test -z "$ac_cpp_err"; then
8893 ac_cv_header_thread_h=yes
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 ac_cv_header_thread_h=no
8900 rm -f conftest.err conftest.$ac_ext
8902 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8903 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8904 if test $ac_cv_header_thread_h = yes; then
8910 echo "$as_me:$LINENO: checking for pthread.h" >&5
8911 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8912 if test "${ac_cv_header_pthread_h+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 cat >conftest.$ac_ext <<_ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8921 #include <pthread.h>
8923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8926 grep -v '^ *+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } >/dev/null; then
8931 if test -s conftest.err; then
8932 ac_cpp_err=$ac_c_preproc_warn_flag
8933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8940 if test -z "$ac_cpp_err"; then
8941 ac_cv_header_pthread_h=yes
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 ac_cv_header_pthread_h=no
8948 rm -f conftest.err conftest.$ac_ext
8950 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8951 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8952 if test $ac_cv_header_pthread_h = yes; then
8959 # These tests can't be done till we know if we have limits.h.
8960 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8961 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8962 if test "${gcc_cv_decl_char_bit+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 cat >conftest.$ac_ext <<_ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 #ifdef HAVE_LIMITS_H
8978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8979 $EGREP "found" >/dev/null 2>&1; then
8980 gcc_cv_decl_char_bit=yes
8982 gcc_cv_decl_char_bit=no
8988 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8989 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8990 if test $gcc_cv_decl_char_bit = no; then
8991 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8992 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8993 if test "${gcc_cv_c_nbby+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 while test $i -lt 65; do
8999 cat >conftest.$ac_ext <<_ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9010 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9011 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9017 rm -f conftest.$ac_objext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019 (eval $ac_compile) 2>conftest.er1
9021 grep -v '^ *+' conftest.er1 >conftest.err
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
9026 { ac_try='test -z "$ac_c_werror_flag"
9027 || test ! -s conftest.err'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; } &&
9033 { ac_try='test -s conftest.$ac_objext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 gcc_cv_c_nbby=$i; break
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9048 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9051 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9052 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9053 if test $gcc_cv_c_nbby = failed; then
9054 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9055 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9056 { (exit 1); exit 1; }; }
9059 cat >>confdefs.h <<_ACEOF
9060 #define CHAR_BIT $gcc_cv_c_nbby
9065 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9066 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9067 if test "${ac_cv_c_bigendian+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 # See if sys/param.h defines the BYTE_ORDER macro.
9071 cat >conftest.$ac_ext <<_ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9077 #include <sys/types.h>
9078 #include <sys/param.h>
9083 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093 (eval $ac_compile) 2>conftest.er1
9095 grep -v '^ *+' conftest.er1 >conftest.err
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } &&
9100 { ac_try='test -z "$ac_c_werror_flag"
9101 || test ! -s conftest.err'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 # It does; now see whether it defined to BIG_ENDIAN or not.
9114 cat >conftest.$ac_ext <<_ACEOF
9117 cat confdefs.h >>conftest.$ac_ext
9118 cat >>conftest.$ac_ext <<_ACEOF
9119 /* end confdefs.h. */
9120 #include <sys/types.h>
9121 #include <sys/param.h>
9126 #if BYTE_ORDER != BIG_ENDIAN
9134 rm -f conftest.$ac_objext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136 (eval $ac_compile) 2>conftest.er1
9138 grep -v '^ *+' conftest.er1 >conftest.err
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -z "$ac_c_werror_flag"
9144 || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try='test -s conftest.$ac_objext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 ac_cv_c_bigendian=yes
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9161 ac_cv_c_bigendian=no
9163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 # It does not; compile a test program.
9169 if test "$cross_compiling" = yes; then
9170 # try to guess the endianness by grepping values into an object file
9171 ac_cv_c_bigendian=unknown
9172 cat >conftest.$ac_ext <<_ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9179 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9180 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9181 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9182 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9183 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9187 _ascii (); _ebcdic ();
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194 (eval $ac_compile) 2>conftest.er1
9196 grep -v '^ *+' conftest.er1 >conftest.err
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -z "$ac_c_werror_flag"
9202 || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9215 ac_cv_c_bigendian=yes
9217 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9218 if test "$ac_cv_c_bigendian" = unknown; then
9219 ac_cv_c_bigendian=no
9221 # finding both strings is unlikely to happen, but who knows?
9222 ac_cv_c_bigendian=unknown
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9232 cat >conftest.$ac_ext <<_ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9241 /* Are we little or big endian? From Harbison&Steele. */
9245 char c[sizeof (long)];
9248 exit (u.c[sizeof (long) - 1] == 1);
9251 rm -f conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9262 ac_cv_c_bigendian=no
9264 echo "$as_me: program exited with status $ac_status" >&5
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9269 ac_cv_c_bigendian=yes
9271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9276 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9277 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9278 case $ac_cv_c_bigendian in
9281 cat >>confdefs.h <<\_ACEOF
9282 #define WORDS_BIGENDIAN 1
9288 { { echo "$as_me:$LINENO: error: unknown endianness
9289 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9290 echo "$as_me: error: unknown endianness
9291 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9292 { (exit 1); exit 1; }; } ;;
9301 # These libraries may be used by collect2.
9302 # We may need a special search path to get them linked.
9303 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9304 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9305 if test "${gcc_cv_collect2_libs+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 for libs in '' -lld -lmld \
9310 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9311 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9314 cat >conftest.$ac_ext <<_ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9321 /* Override any gcc2 internal prototype to avoid an error. */
9325 /* We use char because int might match the return type of a gcc2
9326 builtin and then its argument prototype would still apply. */
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338 (eval $ac_link) 2>conftest.er1
9340 grep -v '^ *+' conftest.er1 >conftest.err
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -z "$ac_c_werror_flag"
9346 || test ! -s conftest.err'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try='test -s conftest$ac_exeext'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 gcc_cv_collect2_libs="$libs"; break
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9364 rm -f conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9368 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9370 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9371 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9372 case $gcc_cv_collect2_libs in
9374 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9378 # When building Ada code on Alpha, we need exc_resume which is usually in
9379 # -lexc. So test for it.
9382 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9383 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9384 if test "${ac_cv_search_exc_resume+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 ac_func_search_save_LIBS=$LIBS
9388 ac_cv_search_exc_resume=no
9389 cat >conftest.$ac_ext <<_ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h. */
9396 /* Override any gcc2 internal prototype to avoid an error. */
9400 /* We use char because int might match the return type of a gcc2
9401 builtin and then its argument prototype would still apply. */
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>conftest.er1
9415 grep -v '^ *+' conftest.er1 >conftest.err
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag"
9421 || test ! -s conftest.err'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 ac_cv_search_exc_resume="none required"
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9439 rm -f conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441 if test "$ac_cv_search_exc_resume" = no; then
9442 for ac_lib in exc; do
9443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9451 /* Override any gcc2 internal prototype to avoid an error. */
9455 /* We use char because int might match the return type of a gcc2
9456 builtin and then its argument prototype would still apply. */
9466 rm -f conftest.$ac_objext conftest$ac_exeext
9467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9468 (eval $ac_link) 2>conftest.er1
9470 grep -v '^ *+' conftest.er1 >conftest.err
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try='test -z "$ac_c_werror_flag"
9476 || test ! -s conftest.err'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; } &&
9482 { ac_try='test -s conftest$ac_exeext'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9488 ac_cv_search_exc_resume="-l$ac_lib"
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9495 rm -f conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_func_search_save_LIBS
9501 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9502 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9503 if test "$ac_cv_search_exc_resume" != no; then
9504 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9512 # Some systems put ldexp and frexp in libm instead of libc; assume
9513 # they're both in the same place. jcf-dump needs them.
9516 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9517 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9518 if test "${ac_cv_search_ldexp+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 ac_func_search_save_LIBS=$LIBS
9522 ac_cv_search_ldexp=no
9523 cat >conftest.$ac_ext <<_ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9530 /* Override any gcc2 internal prototype to avoid an error. */
9534 /* We use char because int might match the return type of a gcc2
9535 builtin and then its argument prototype would still apply. */
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547 (eval $ac_link) 2>conftest.er1
9549 grep -v '^ *+' conftest.er1 >conftest.err
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -z "$ac_c_werror_flag"
9555 || test ! -s conftest.err'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; } &&
9561 { ac_try='test -s conftest$ac_exeext'
9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 ac_cv_search_ldexp="none required"
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9573 rm -f conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 if test "$ac_cv_search_ldexp" = no; then
9577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9578 cat >conftest.$ac_ext <<_ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9585 /* Override any gcc2 internal prototype to avoid an error. */
9589 /* We use char because int might match the return type of a gcc2
9590 builtin and then its argument prototype would still apply. */
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest$ac_exeext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_search_ldexp="-l$ac_lib"
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9629 rm -f conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_func_search_save_LIBS
9635 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9636 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9637 if test "$ac_cv_search_ldexp" != no; then
9638 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9646 # Use <inttypes.h> only if it exists,
9647 # doesn't clash with <sys/types.h>, and declares intmax_t.
9648 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9649 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9650 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 cat >conftest.$ac_ext <<_ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659 #include <sys/types.h>
9660 #include <inttypes.h>
9669 rm -f conftest.$ac_objext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671 (eval $ac_compile) 2>conftest.er1
9673 grep -v '^ *+' conftest.er1 >conftest.err
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -z "$ac_c_werror_flag"
9679 || test ! -s conftest.err'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 gcc_cv_header_inttypes_h=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 gcc_cv_header_inttypes_h=no
9698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9701 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9702 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9703 if test $gcc_cv_header_inttypes_h = yes; then
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_INTTYPES_H 1
9748 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9749 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9750 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9751 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
9753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9754 echo "$as_me:$LINENO: checking for $ac_func" >&5
9755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9756 if eval "test \"\${$as_ac_var+set}\" = set"; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 cat >conftest.$ac_ext <<_ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9767 #define $ac_func innocuous_$ac_func
9769 /* System header to define __stub macros and hopefully few prototypes,
9770 which can conflict with char $ac_func (); below.
9771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9772 <limits.h> exists even on freestanding compilers. */
9775 # include <limits.h>
9777 # include <assert.h>
9782 /* Override any gcc2 internal prototype to avoid an error. */
9787 /* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9790 /* The GNU C library defines this for functions which it implements
9791 to always fail with ENOSYS. Some functions are actually named
9792 something starting with __ and the normal name is an alias. */
9793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9796 char (*f) () = $ac_func;
9805 return f != $ac_func;
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812 (eval $ac_link) 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest$ac_exeext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 eval "$as_ac_var=yes"
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 eval "$as_ac_var=no"
9839 rm -f conftest.err conftest.$ac_objext \
9840 conftest$ac_exeext conftest.$ac_ext
9842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9844 if test `eval echo '${'$as_ac_var'}'` = yes; then
9845 cat >>confdefs.h <<_ACEOF
9846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9853 if test x$ac_cv_func_mbstowcs = xyes; then
9854 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9855 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9856 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 if test "$cross_compiling" = yes; then
9860 gcc_cv_func_mbstowcs_works=yes
9862 cat >conftest.$ac_ext <<_ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9875 rm -f conftest$ac_exeext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9877 (eval $ac_link) 2>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 gcc_cv_func_mbstowcs_works=yes
9888 echo "$as_me: program exited with status $ac_status" >&5
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9893 gcc_cv_func_mbstowcs_works=no
9895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9898 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9899 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9900 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9902 cat >>confdefs.h <<\_ACEOF
9903 #define HAVE_WORKING_MBSTOWCS 1
9909 echo "$as_me:$LINENO: checking for ssize_t" >&5
9910 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9911 if test "${ac_cv_type_ssize_t+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 cat >conftest.$ac_ext <<_ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 $ac_includes_default
9926 if (sizeof (ssize_t))
9932 rm -f conftest.$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934 (eval $ac_compile) 2>conftest.er1
9936 grep -v '^ *+' conftest.er1 >conftest.err
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try='test -s conftest.$ac_objext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_cv_type_ssize_t=yes
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 ac_cv_type_ssize_t=no
9961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9963 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9964 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9965 if test $ac_cv_type_ssize_t = yes; then
9969 cat >>confdefs.h <<_ACEOF
9976 # Try to determine the array type of the second argument of getgroups
9977 # for the target system (int or gid_t).
9978 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9979 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9980 if test "${ac_cv_type_uid_t+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 cat >conftest.$ac_ext <<_ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 #include <sys/types.h>
9992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9993 $EGREP "uid_t" >/dev/null 2>&1; then
9994 ac_cv_type_uid_t=yes
10001 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10002 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10003 if test $ac_cv_type_uid_t = no; then
10005 cat >>confdefs.h <<\_ACEOF
10010 cat >>confdefs.h <<\_ACEOF
10016 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10017 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10018 if test "${ac_cv_type_getgroups+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 if test "$cross_compiling" = yes; then
10022 ac_cv_type_getgroups=cross
10024 cat >conftest.$ac_ext <<_ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 /* Thanks to Mike Rendell for this test. */
10031 #include <sys/types.h>
10034 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10039 gid_t gidset[NGID];
10041 union { gid_t gval; long lval; } val;
10044 for (i = 0; i < NGID; i++)
10045 gidset[i] = val.gval;
10046 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10048 /* Exit non-zero if getgroups seems to require an array of ints. This
10049 happens when gid_t is short but getgroups modifies an array of ints. */
10050 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10053 rm -f conftest$ac_exeext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055 (eval $ac_link) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_type_getgroups=gid_t
10066 echo "$as_me: program exited with status $ac_status" >&5
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10070 ( exit $ac_status )
10071 ac_cv_type_getgroups=int
10073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10075 if test $ac_cv_type_getgroups = cross; then
10076 cat >conftest.$ac_ext <<_ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 #include <unistd.h>
10085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10086 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10087 ac_cv_type_getgroups=gid_t
10089 ac_cv_type_getgroups=int
10095 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10096 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10098 cat >>confdefs.h <<_ACEOF
10099 #define GETGROUPS_T $ac_cv_type_getgroups
10103 if test "${target}" = "${build}"; then
10104 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10106 case "${target}" in
10107 # This condition may need some tweaking. It should include all
10108 # targets where the array type of the second argument of getgroups
10109 # is int and the type of gid_t is not equivalent to int.
10110 *-*-sunos* | *-*-ultrix*)
10111 TARGET_GETGROUPS_T=int
10114 TARGET_GETGROUPS_T=gid_t
10121 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10122 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10123 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 #include <sys/mman.h>
10134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10137 grep -v '^ *+' conftest.er1 >conftest.err
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } >/dev/null; then
10142 if test -s conftest.err; then
10143 ac_cpp_err=$ac_c_preproc_warn_flag
10144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10151 if test -z "$ac_cpp_err"; then
10152 ac_cv_header_sys_mman_h=yes
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ac_cv_header_sys_mman_h=no
10159 rm -f conftest.err conftest.$ac_ext
10161 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10162 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10163 if test $ac_cv_header_sys_mman_h = yes; then
10164 gcc_header_sys_mman_h=yes
10166 gcc_header_sys_mman_h=no
10169 echo "$as_me:$LINENO: checking for mmap" >&5
10170 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10171 if test "${ac_cv_func_mmap+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 cat >conftest.$ac_ext <<_ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10182 #define mmap innocuous_mmap
10184 /* System header to define __stub macros and hopefully few prototypes,
10185 which can conflict with char mmap (); below.
10186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10187 <limits.h> exists even on freestanding compilers. */
10190 # include <limits.h>
10192 # include <assert.h>
10197 /* Override any gcc2 internal prototype to avoid an error. */
10202 /* We use char because int might match the return type of a gcc2
10203 builtin and then its argument prototype would still apply. */
10205 /* The GNU C library defines this for functions which it implements
10206 to always fail with ENOSYS. Some functions are actually named
10207 something starting with __ and the normal name is an alias. */
10208 #if defined (__stub_mmap) || defined (__stub___mmap)
10211 char (*f) () = mmap;
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10227 (eval $ac_link) 2>conftest.er1
10229 grep -v '^ *+' conftest.er1 >conftest.err
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag"
10235 || test ! -s conftest.err'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest$ac_exeext'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 ac_cv_func_mmap=yes
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10254 rm -f conftest.err conftest.$ac_objext \
10255 conftest$ac_exeext conftest.$ac_ext
10257 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10258 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10259 if test $ac_cv_func_mmap = yes; then
10265 if test "$gcc_header_sys_mman_h" != yes \
10266 || test "$gcc_func_mmap" != yes; then
10267 gcc_cv_func_mmap_file=no
10268 gcc_cv_func_mmap_dev_zero=no
10269 gcc_cv_func_mmap_anon=no
10271 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10272 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10273 if test "${gcc_cv_func_mmap_file+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 # Add a system to this blacklist if
10277 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10278 # memory area containing the same data that you'd get if you applied
10279 # read() to the same fd. The only system known to have a problem here
10280 # is VMS, where text files have record structure.
10283 gcc_cv_func_mmap_file=no ;;
10285 gcc_cv_func_mmap_file=yes;;
10288 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10289 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10290 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10291 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10292 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 # Add a system to this blacklist if it has mmap() but /dev/zero
10296 # does not exist, or if mmapping /dev/zero does not give anonymous
10297 # zeroed pages with both the following properties:
10298 # 1. If you map N consecutive pages in with one call, and then
10299 # unmap any subset of those pages, the pages that were not
10300 # explicitly unmapped remain accessible.
10301 # 2. If you map two adjacent blocks of memory and then unmap them
10302 # both at once, they must both go away.
10303 # Systems known to be in this category are Windows (all variants),
10306 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10307 gcc_cv_func_mmap_dev_zero=no ;;
10309 gcc_cv_func_mmap_dev_zero=yes;;
10312 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10313 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10315 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10316 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10317 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10318 if test "${gcc_cv_decl_map_anon+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 #include <sys/types.h>
10328 #include <sys/mman.h>
10329 #include <unistd.h>
10331 #ifndef MAP_ANONYMOUS
10332 #define MAP_ANONYMOUS MAP_ANON
10338 int n = MAP_ANONYMOUS;
10343 rm -f conftest.$ac_objext
10344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10345 (eval $ac_compile) 2>conftest.er1
10347 grep -v '^ *+' conftest.er1 >conftest.err
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -z "$ac_c_werror_flag"
10353 || test ! -s conftest.err'
10354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest.$ac_objext'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; }; then
10365 gcc_cv_decl_map_anon=yes
10367 echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10370 gcc_cv_decl_map_anon=no
10372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10374 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10375 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10377 if test $gcc_cv_decl_map_anon = no; then
10378 gcc_cv_func_mmap_anon=no
10380 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10381 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10382 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10386 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10387 # doesn't give anonymous zeroed pages with the same properties listed
10388 # above for use of /dev/zero.
10389 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10391 vms* | cygwin* | pe | mingw* | sco* | udk* )
10392 gcc_cv_func_mmap_anon=no ;;
10394 gcc_cv_func_mmap_anon=yes;;
10397 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10398 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10402 if test $gcc_cv_func_mmap_file = yes; then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_MMAP_FILE 1
10409 if test $gcc_cv_func_mmap_dev_zero = yes; then
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_MMAP_DEV_ZERO 1
10416 if test $gcc_cv_func_mmap_anon = yes; then
10418 cat >>confdefs.h <<\_ACEOF
10419 #define HAVE_MMAP_ANON 1
10427 # Under VMS, vfork works very differently than on Unix. The standard test
10428 # won't work, and it isn't easily adaptable. It makes more sense to
10430 ac_cv_func_vfork_works=yes
10433 echo "$as_me:$LINENO: checking for pid_t" >&5
10434 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10435 if test "${ac_cv_type_pid_t+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 cat >conftest.$ac_ext <<_ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10444 $ac_includes_default
10450 if (sizeof (pid_t))
10456 rm -f conftest.$ac_objext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458 (eval $ac_compile) 2>conftest.er1
10460 grep -v '^ *+' conftest.er1 >conftest.err
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag"
10466 || test ! -s conftest.err'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; } &&
10472 { ac_try='test -s conftest.$ac_objext'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; }; then
10478 ac_cv_type_pid_t=yes
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ac_cv_type_pid_t=no
10485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10487 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10488 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10489 if test $ac_cv_type_pid_t = yes; then
10493 cat >>confdefs.h <<_ACEOF
10501 for ac_header in unistd.h vfork.h
10503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10504 echo "$as_me:$LINENO: checking for $ac_header" >&5
10505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 #include <$ac_header>
10517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10520 grep -v '^ *+' conftest.er1 >conftest.err
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } >/dev/null; then
10525 if test -s conftest.err; then
10526 ac_cpp_err=$ac_c_preproc_warn_flag
10527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10534 if test -z "$ac_cpp_err"; then
10535 eval "$as_ac_Header=yes"
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10540 eval "$as_ac_Header=no"
10542 rm -f conftest.err conftest.$ac_ext
10544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10547 cat >>confdefs.h <<_ACEOF
10548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10556 for ac_func in fork vfork
10558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10559 echo "$as_me:$LINENO: checking for $ac_func" >&5
10560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10561 if eval "test \"\${$as_ac_var+set}\" = set"; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 cat >conftest.$ac_ext <<_ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10572 #define $ac_func innocuous_$ac_func
10574 /* System header to define __stub macros and hopefully few prototypes,
10575 which can conflict with char $ac_func (); below.
10576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10577 <limits.h> exists even on freestanding compilers. */
10580 # include <limits.h>
10582 # include <assert.h>
10587 /* Override any gcc2 internal prototype to avoid an error. */
10592 /* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10595 /* The GNU C library defines this for functions which it implements
10596 to always fail with ENOSYS. Some functions are actually named
10597 something starting with __ and the normal name is an alias. */
10598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10601 char (*f) () = $ac_func;
10610 return f != $ac_func;
10615 rm -f conftest.$ac_objext conftest$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617 (eval $ac_link) 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag"
10625 || test ! -s conftest.err'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; } &&
10631 { ac_try='test -s conftest$ac_exeext'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
10637 eval "$as_ac_var=yes"
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 eval "$as_ac_var=no"
10644 rm -f conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10649 if test `eval echo '${'$as_ac_var'}'` = yes; then
10650 cat >>confdefs.h <<_ACEOF
10651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10657 if test "x$ac_cv_func_fork" = xyes; then
10658 echo "$as_me:$LINENO: checking for working fork" >&5
10659 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10660 if test "${ac_cv_func_fork_works+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 if test "$cross_compiling" = yes; then
10664 ac_cv_func_fork_works=cross
10666 cat >conftest.$ac_ext <<_ACEOF
10667 /* By Ruediger Kuhlmann. */
10668 #include <sys/types.h>
10670 # include <unistd.h>
10672 /* Some systems only have a dummy stub for fork() */
10680 rm -f conftest$ac_exeext
10681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10682 (eval $ac_link) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 ac_cv_func_fork_works=yes
10693 echo "$as_me: program exited with status $ac_status" >&5
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ( exit $ac_status )
10698 ac_cv_func_fork_works=no
10700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10703 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10704 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10707 ac_cv_func_fork_works=$ac_cv_func_fork
10709 if test "x$ac_cv_func_fork_works" = xcross; then
10711 *-*-amigaos* | *-*-msdosdjgpp*)
10712 # Override, as these systems have only a dummy fork() stub
10713 ac_cv_func_fork_works=no
10716 ac_cv_func_fork_works=yes
10719 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10720 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10722 ac_cv_func_vfork_works=$ac_cv_func_vfork
10723 if test "x$ac_cv_func_vfork" = xyes; then
10724 echo "$as_me:$LINENO: checking for working vfork" >&5
10725 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10726 if test "${ac_cv_func_vfork_works+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 if test "$cross_compiling" = yes; then
10730 ac_cv_func_vfork_works=cross
10732 cat >conftest.$ac_ext <<_ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 /* Thanks to Paul Eggert for this test. */
10740 #include <stdlib.h>
10741 #include <sys/types.h>
10742 #include <sys/stat.h>
10743 #include <sys/wait.h>
10745 # include <unistd.h>
10748 # include <vfork.h>
10750 /* On some sparc systems, changes by the child to local and incoming
10751 argument registers are propagated back to the parent. The compiler
10752 is told about this with #include <vfork.h>, but some compilers
10753 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10754 static variable whose address is put into a register that is
10755 clobbered by the vfork. */
10758 sparc_address_test (int arg)
10760 sparc_address_test (arg) int arg;
10763 static pid_t child;
10781 pid_t parent = getpid ();
10784 sparc_address_test (0);
10789 /* Here is another test for sparc vfork register problems. This
10790 test uses lots of local variables, at least as many local
10791 variables as main has allocated so far including compiler
10792 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10793 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10794 reuse the register of parent for one of the local variables,
10795 since it will think that parent can't possibly be used any more
10796 in this routine. Assigning to the local variable will thus
10797 munge parent in the parent process. */
10799 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10800 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10801 /* Convince the compiler that p..p7 are live; otherwise, it might
10802 use the same hardware register for all 8 local variables. */
10803 if (p != p1 || p != p2 || p != p3 || p != p4
10804 || p != p5 || p != p6 || p != p7)
10807 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10808 from child file descriptors. If the child closes a descriptor
10809 before it execs or exits, this munges the parent's descriptor
10810 as well. Test for this by closing stdout in the child. */
10811 _exit(close(fileno(stdout)) != 0);
10816 while (wait(&status) != child)
10819 /* Was there some problem with vforking? */
10822 /* Did the child fail? (This shouldn't happen.) */
10825 /* Did the vfork/compiler bug occur? */
10826 || parent != getpid()
10828 /* Did the file descriptor bug occur? */
10829 || fstat(fileno(stdout), &st) != 0
10834 rm -f conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; }; then
10845 ac_cv_func_vfork_works=yes
10847 echo "$as_me: program exited with status $ac_status" >&5
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ( exit $ac_status )
10852 ac_cv_func_vfork_works=no
10854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10857 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10858 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10861 if test "x$ac_cv_func_fork_works" = xcross; then
10862 ac_cv_func_vfork_works=$ac_cv_func_vfork
10863 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10864 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10867 if test "x$ac_cv_func_vfork_works" = xyes; then
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_WORKING_VFORK 1
10875 cat >>confdefs.h <<\_ACEOF
10880 if test "x$ac_cv_func_fork_works" = xyes; then
10882 cat >>confdefs.h <<\_ACEOF
10883 #define HAVE_WORKING_FORK 1
10890 if test "X$prefix" = "XNONE"; then
10891 acl_final_prefix="$ac_default_prefix"
10893 acl_final_prefix="$prefix"
10895 if test "X$exec_prefix" = "XNONE"; then
10896 acl_final_exec_prefix='${prefix}'
10898 acl_final_exec_prefix="$exec_prefix"
10900 acl_save_prefix="$prefix"
10901 prefix="$acl_final_prefix"
10902 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10903 prefix="$acl_save_prefix"
10906 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10907 if test "${with_gnu_ld+set}" = set; then
10908 withval="$with_gnu_ld"
10909 test "$withval" = no || with_gnu_ld=yes
10913 # Prepare PATH_SEPARATOR.
10914 # The user is always right.
10915 if test "${PATH_SEPARATOR+set}" != set; then
10916 echo "#! /bin/sh" >conf$$.sh
10917 echo "exit 0" >>conf$$.sh
10919 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10927 if test "$GCC" = yes; then
10928 # Check if gcc -print-prog-name=ld gives a path.
10929 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10930 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10933 # gcc leaves a trailing carriage return which upsets mingw
10934 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10936 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10939 # Accept absolute paths.
10940 [\\/]* | [A-Za-z]:[\\/]*)
10941 re_direlt='/[^/][^/]*/\.\./'
10942 # Canonicalize the path of ld
10943 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10944 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10945 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10947 test -z "$LD" && LD="$ac_prog"
10950 # If it fails, then pretend we aren't using GCC.
10954 # If it is relative, then search for the first ld in PATH.
10955 with_gnu_ld=unknown
10958 elif test "$with_gnu_ld" = yes; then
10959 echo "$as_me:$LINENO: checking for GNU ld" >&5
10960 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10962 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10963 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10965 if test "${acl_cv_path_LD+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 if test -z "$LD"; then
10969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10970 for ac_dir in $PATH; do
10971 test -z "$ac_dir" && ac_dir=.
10972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10973 acl_cv_path_LD="$ac_dir/$ac_prog"
10974 # Check to see if the program is GNU ld. I'd rather use --version,
10975 # but apparently some GNU ld's only accept -v.
10976 # Break only if it was the GNU/non-GNU ld that we prefer.
10977 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10978 test "$with_gnu_ld" != no && break
10980 test "$with_gnu_ld" != yes && break
10986 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10990 LD="$acl_cv_path_LD"
10991 if test -n "$LD"; then
10992 echo "$as_me:$LINENO: result: $LD" >&5
10993 echo "${ECHO_T}$LD" >&6
10995 echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6
10998 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10999 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11000 { (exit 1); exit 1; }; }
11001 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11002 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11003 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11007 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11008 acl_cv_prog_gnu_ld=yes
11010 acl_cv_prog_gnu_ld=no
11013 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11014 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11015 with_gnu_ld=$acl_cv_prog_gnu_ld
11019 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11020 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11021 if test "${acl_cv_rpath+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11026 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11028 rm -f ./conftest.sh
11032 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11033 echo "${ECHO_T}$acl_cv_rpath" >&6
11035 libext="$acl_cv_libext"
11036 shlibext="$acl_cv_shlibext"
11037 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11038 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11039 hardcode_direct="$acl_cv_hardcode_direct"
11040 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11041 # Check whether --enable-rpath or --disable-rpath was given.
11042 if test "${enable_rpath+set}" = set; then
11043 enableval="$enable_rpath"
11057 acl_save_prefix="$prefix"
11058 prefix="$acl_final_prefix"
11059 acl_save_exec_prefix="$exec_prefix"
11060 exec_prefix="$acl_final_exec_prefix"
11062 eval additional_includedir=\"$includedir\"
11063 eval additional_libdir=\"$libdir\"
11065 exec_prefix="$acl_save_exec_prefix"
11066 prefix="$acl_save_prefix"
11069 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11070 if test "${with_libiconv_prefix+set}" = set; then
11071 withval="$with_libiconv_prefix"
11073 if test "X$withval" = "Xno"; then
11076 if test "X$withval" = "X"; then
11078 acl_save_prefix="$prefix"
11079 prefix="$acl_final_prefix"
11080 acl_save_exec_prefix="$exec_prefix"
11081 exec_prefix="$acl_final_exec_prefix"
11083 eval additional_includedir=\"$includedir\"
11084 eval additional_libdir=\"$libdir\"
11086 exec_prefix="$acl_save_exec_prefix"
11087 prefix="$acl_save_prefix"
11090 additional_includedir="$withval/include"
11091 additional_libdir="$withval/lib"
11101 names_already_handled=
11102 names_next_round='iconv '
11103 while test -n "$names_next_round"; do
11104 names_this_round="$names_next_round"
11106 for name in $names_this_round; do
11108 for n in $names_already_handled; do
11109 if test "$n" = "$name"; then
11110 already_handled=yes
11114 if test -z "$already_handled"; then
11115 names_already_handled="$names_already_handled $name"
11116 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11117 eval value=\"\$HAVE_LIB$uppername\"
11118 if test -n "$value"; then
11119 if test "$value" = yes; then
11120 eval value=\"\$LIB$uppername\"
11121 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11122 eval value=\"\$LTLIB$uppername\"
11123 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11132 if test $use_additional = yes; then
11133 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11134 found_dir="$additional_libdir"
11135 found_so="$additional_libdir/lib$name.$shlibext"
11136 if test -f "$additional_libdir/lib$name.la"; then
11137 found_la="$additional_libdir/lib$name.la"
11140 if test -f "$additional_libdir/lib$name.$libext"; then
11141 found_dir="$additional_libdir"
11142 found_a="$additional_libdir/lib$name.$libext"
11143 if test -f "$additional_libdir/lib$name.la"; then
11144 found_la="$additional_libdir/lib$name.la"
11149 if test "X$found_dir" = "X"; then
11150 for x in $LDFLAGS $LTLIBICONV; do
11152 acl_save_prefix="$prefix"
11153 prefix="$acl_final_prefix"
11154 acl_save_exec_prefix="$exec_prefix"
11155 exec_prefix="$acl_final_exec_prefix"
11157 exec_prefix="$acl_save_exec_prefix"
11158 prefix="$acl_save_prefix"
11162 dir=`echo "X$x" | sed -e 's/^X-L//'`
11163 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11165 found_so="$dir/lib$name.$shlibext"
11166 if test -f "$dir/lib$name.la"; then
11167 found_la="$dir/lib$name.la"
11170 if test -f "$dir/lib$name.$libext"; then
11172 found_a="$dir/lib$name.$libext"
11173 if test -f "$dir/lib$name.la"; then
11174 found_la="$dir/lib$name.la"
11180 if test "X$found_dir" != "X"; then
11185 if test "X$found_dir" != "X"; then
11186 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11187 if test "X$found_so" != "X"; then
11188 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11192 for x in $ltrpathdirs; do
11193 if test "X$x" = "X$found_dir"; then
11198 if test -z "$haveit"; then
11199 ltrpathdirs="$ltrpathdirs $found_dir"
11201 if test "$hardcode_direct" = yes; then
11202 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11204 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11205 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11207 for x in $rpathdirs; do
11208 if test "X$x" = "X$found_dir"; then
11213 if test -z "$haveit"; then
11214 rpathdirs="$rpathdirs $found_dir"
11218 for x in $LDFLAGS $LIBICONV; do
11220 acl_save_prefix="$prefix"
11221 prefix="$acl_final_prefix"
11222 acl_save_exec_prefix="$exec_prefix"
11223 exec_prefix="$acl_final_exec_prefix"
11225 exec_prefix="$acl_save_exec_prefix"
11226 prefix="$acl_save_prefix"
11228 if test "X$x" = "X-L$found_dir"; then
11233 if test -z "$haveit"; then
11234 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11236 if test "$hardcode_minus_L" != no; then
11237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11239 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11245 if test "X$found_a" != "X"; then
11246 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11248 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11251 additional_includedir=
11252 case "$found_dir" in
11254 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11255 additional_includedir="$basedir/include"
11258 if test "X$additional_includedir" != "X"; then
11259 if test "X$additional_includedir" != "X/usr/include"; then
11261 if test "X$additional_includedir" = "X/usr/local/include"; then
11262 if test -n "$GCC"; then
11264 linux*) haveit=yes;;
11268 if test -z "$haveit"; then
11269 for x in $CPPFLAGS $INCICONV; do
11271 acl_save_prefix="$prefix"
11272 prefix="$acl_final_prefix"
11273 acl_save_exec_prefix="$exec_prefix"
11274 exec_prefix="$acl_final_exec_prefix"
11276 exec_prefix="$acl_save_exec_prefix"
11277 prefix="$acl_save_prefix"
11279 if test "X$x" = "X-I$additional_includedir"; then
11284 if test -z "$haveit"; then
11285 if test -d "$additional_includedir"; then
11286 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11292 if test -n "$found_la"; then
11293 save_libdir="$libdir"
11294 case "$found_la" in
11295 */* | *\\*) . "$found_la" ;;
11296 *) . "./$found_la" ;;
11298 libdir="$save_libdir"
11299 for dep in $dependency_libs; do
11302 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11303 if test "X$additional_libdir" != "X/usr/lib"; then
11305 if test "X$additional_libdir" = "X/usr/local/lib"; then
11306 if test -n "$GCC"; then
11308 linux*) haveit=yes;;
11312 if test -z "$haveit"; then
11314 for x in $LDFLAGS $LIBICONV; do
11316 acl_save_prefix="$prefix"
11317 prefix="$acl_final_prefix"
11318 acl_save_exec_prefix="$exec_prefix"
11319 exec_prefix="$acl_final_exec_prefix"
11321 exec_prefix="$acl_save_exec_prefix"
11322 prefix="$acl_save_prefix"
11324 if test "X$x" = "X-L$additional_libdir"; then
11329 if test -z "$haveit"; then
11330 if test -d "$additional_libdir"; then
11331 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11335 for x in $LDFLAGS $LTLIBICONV; do
11337 acl_save_prefix="$prefix"
11338 prefix="$acl_final_prefix"
11339 acl_save_exec_prefix="$exec_prefix"
11340 exec_prefix="$acl_final_exec_prefix"
11342 exec_prefix="$acl_save_exec_prefix"
11343 prefix="$acl_save_prefix"
11345 if test "X$x" = "X-L$additional_libdir"; then
11350 if test -z "$haveit"; then
11351 if test -d "$additional_libdir"; then
11352 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11359 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11360 if test "$enable_rpath" != no; then
11362 for x in $rpathdirs; do
11363 if test "X$x" = "X$dir"; then
11368 if test -z "$haveit"; then
11369 rpathdirs="$rpathdirs $dir"
11372 for x in $ltrpathdirs; do
11373 if test "X$x" = "X$dir"; then
11378 if test -z "$haveit"; then
11379 ltrpathdirs="$ltrpathdirs $dir"
11384 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11387 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11390 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11391 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11397 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11398 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11404 if test "X$rpathdirs" != "X"; then
11405 if test -n "$hardcode_libdir_separator"; then
11407 for found_dir in $rpathdirs; do
11408 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11410 acl_save_libdir="$libdir"
11412 eval flag=\"$hardcode_libdir_flag_spec\"
11413 libdir="$acl_save_libdir"
11414 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11416 for found_dir in $rpathdirs; do
11417 acl_save_libdir="$libdir"
11418 libdir="$found_dir"
11419 eval flag=\"$hardcode_libdir_flag_spec\"
11420 libdir="$acl_save_libdir"
11421 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11425 if test "X$ltrpathdirs" != "X"; then
11426 for found_dir in $ltrpathdirs; do
11427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11437 am_save_CPPFLAGS="$CPPFLAGS"
11439 for element in $INCICONV; do
11441 for x in $CPPFLAGS; do
11443 acl_save_prefix="$prefix"
11444 prefix="$acl_final_prefix"
11445 acl_save_exec_prefix="$exec_prefix"
11446 exec_prefix="$acl_final_exec_prefix"
11448 exec_prefix="$acl_save_exec_prefix"
11449 prefix="$acl_save_prefix"
11451 if test "X$x" = "X$element"; then
11456 if test -z "$haveit"; then
11457 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11462 echo "$as_me:$LINENO: checking for iconv" >&5
11463 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11464 if test "${am_cv_func_iconv+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 am_cv_func_iconv="no, consider installing GNU libiconv"
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 #include <stdlib.h>
11481 iconv_t cd = iconv_open("","");
11482 iconv(cd,NULL,NULL,NULL,NULL);
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1 >conftest.err
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 am_cv_func_iconv=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11516 rm -f conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 if test "$am_cv_func_iconv" != yes; then
11519 am_save_LIBS="$LIBS"
11520 LIBS="$LIBS $LIBICONV"
11521 cat >conftest.$ac_ext <<_ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 #include <stdlib.h>
11532 iconv_t cd = iconv_open("","");
11533 iconv(cd,NULL,NULL,NULL,NULL);
11539 rm -f conftest.$ac_objext conftest$ac_exeext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11541 (eval $ac_link) 2>conftest.er1
11543 grep -v '^ *+' conftest.er1 >conftest.err
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -z "$ac_c_werror_flag"
11549 || test ! -s conftest.err'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest$ac_exeext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 am_cv_lib_iconv=yes
11562 am_cv_func_iconv=yes
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11568 rm -f conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11570 LIBS="$am_save_LIBS"
11574 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11575 echo "${ECHO_T}$am_cv_func_iconv" >&6
11576 if test "$am_cv_func_iconv" = yes; then
11578 cat >>confdefs.h <<\_ACEOF
11579 #define HAVE_ICONV 1
11583 if test "$am_cv_lib_iconv" = yes; then
11584 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11585 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11586 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11587 echo "${ECHO_T}$LIBICONV" >&6
11589 CPPFLAGS="$am_save_CPPFLAGS"
11596 if test "$am_cv_func_iconv" = yes; then
11597 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11598 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11599 if test "${am_cv_proto_iconv+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 cat >conftest.$ac_ext <<_ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11610 #include <stdlib.h>
11616 #if defined(__STDC__) || defined(__cplusplus)
11617 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11630 rm -f conftest.$ac_objext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632 (eval $ac_compile) 2>conftest.er1
11634 grep -v '^ *+' conftest.er1 >conftest.err
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_c_werror_flag"
11640 || test ! -s conftest.err'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; } &&
11646 { ac_try='test -s conftest.$ac_objext'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 am_cv_proto_iconv_arg1=""
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11657 am_cv_proto_iconv_arg1="const"
11659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11660 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);"
11663 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11664 echo "$as_me:$LINENO: result: ${ac_t:-
11665 }$am_cv_proto_iconv" >&5
11666 echo "${ECHO_T}${ac_t:-
11667 }$am_cv_proto_iconv" >&6
11669 cat >>confdefs.h <<_ACEOF
11670 #define ICONV_CONST $am_cv_proto_iconv_arg1
11675 # Until we have in-tree GNU iconv:
11680 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11681 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11682 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 cat >conftest.$ac_ext <<_ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 #include <locale.h>
11700 rm -f conftest.$ac_objext conftest$ac_exeext
11701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11702 (eval $ac_link) 2>conftest.er1
11704 grep -v '^ *+' conftest.er1 >conftest.err
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
11709 { ac_try='test -z "$ac_c_werror_flag"
11710 || test ! -s conftest.err'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest$ac_exeext'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 am_cv_val_LC_MESSAGES=yes
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 am_cv_val_LC_MESSAGES=no
11729 rm -f conftest.err conftest.$ac_objext \
11730 conftest$ac_exeext conftest.$ac_ext
11732 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11733 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11734 if test $am_cv_val_LC_MESSAGES = yes; then
11736 cat >>confdefs.h <<\_ACEOF
11737 #define HAVE_LC_MESSAGES 1
11744 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11745 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11746 if test "${am_cv_langinfo_codeset+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 cat >conftest.$ac_ext <<_ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755 #include <langinfo.h>
11759 char* cs = nl_langinfo(CODESET);
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11766 (eval $ac_link) 2>conftest.er1
11768 grep -v '^ *+' conftest.er1 >conftest.err
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -z "$ac_c_werror_flag"
11774 || test ! -s conftest.err'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 am_cv_langinfo_codeset=yes
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 am_cv_langinfo_codeset=no
11793 rm -f conftest.err conftest.$ac_objext \
11794 conftest$ac_exeext conftest.$ac_ext
11797 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11798 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11799 if test $am_cv_langinfo_codeset = yes; then
11801 cat >>confdefs.h <<\_ACEOF
11802 #define HAVE_LANGINFO_CODESET 1
11808 # We will need to find libiberty.h and ansidecl.h
11809 saved_CFLAGS="$CFLAGS"
11810 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11850 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11851 strsignal strstr strverscmp \
11852 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11853 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
11855 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11856 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11857 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11858 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11868 #define $ac_tr_decl 1
11870 #include "ansidecl.h"
11871 #include "system.h"
11877 char *(*pfn) = (char *(*)) $ac_func ;
11883 rm -f conftest.$ac_objext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885 (eval $ac_compile) 2>conftest.er1
11887 grep -v '^ *+' conftest.er1 >conftest.err
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -z "$ac_c_werror_flag"
11893 || test ! -s conftest.err'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest.$ac_objext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 eval "gcc_cv_have_decl_$ac_func=yes"
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11910 eval "gcc_cv_have_decl_$ac_func=no"
11912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11915 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11916 echo "$as_me:$LINENO: result: yes" >&5
11917 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11918 #define $ac_tr_decl 1
11922 echo "$as_me:$LINENO: result: no" >&5
11923 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11924 #define $ac_tr_decl 0
11935 for ac_func in getrlimit setrlimit getrusage
11937 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11938 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11939 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11940 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 cat >conftest.$ac_ext <<_ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11950 #define $ac_tr_decl 1
11952 #include "ansidecl.h"
11953 #include "system.h"
11954 #ifdef HAVE_SYS_RESOURCE_H
11955 #include <sys/resource.h>
11963 char *(*pfn) = (char *(*)) $ac_func ;
11969 rm -f conftest.$ac_objext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971 (eval $ac_compile) 2>conftest.er1
11973 grep -v '^ *+' conftest.er1 >conftest.err
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -z "$ac_c_werror_flag"
11979 || test ! -s conftest.err'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 eval "gcc_cv_have_decl_$ac_func=yes"
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 eval "gcc_cv_have_decl_$ac_func=no"
11998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12001 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12002 echo "$as_me:$LINENO: result: yes" >&5
12003 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12004 #define $ac_tr_decl 1
12008 echo "$as_me:$LINENO: result: no" >&5
12009 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12010 #define $ac_tr_decl 0
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12025 #include "ansidecl.h"
12026 #include "system.h"
12027 #ifdef HAVE_SYS_RESOURCE_H
12028 #include <sys/resource.h>
12039 rm -f conftest.$ac_objext
12040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12041 (eval $ac_compile) 2>conftest.er1
12043 grep -v '^ *+' conftest.er1 >conftest.err
12045 cat conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } &&
12048 { ac_try='test -z "$ac_c_werror_flag"
12049 || test ! -s conftest.err'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; } &&
12055 { ac_try='test -s conftest.$ac_objext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12067 cat >>confdefs.h <<\_ACEOF
12068 #define rlim_t long
12072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12074 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12075 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12076 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12077 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12079 for ac_func in ldgetname
12081 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12082 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12083 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12084 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 cat >conftest.$ac_ext <<_ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12094 #define $ac_tr_decl 1
12096 #include "ansidecl.h"
12097 #include "system.h"
12098 #ifdef HAVE_LDFCN_H
12109 char *(*pfn) = (char *(*)) $ac_func ;
12115 rm -f conftest.$ac_objext
12116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>conftest.er1
12119 grep -v '^ *+' conftest.er1 >conftest.err
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -z "$ac_c_werror_flag"
12125 || test ! -s conftest.err'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest.$ac_objext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 eval "gcc_cv_have_decl_$ac_func=yes"
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 eval "gcc_cv_have_decl_$ac_func=no"
12144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12147 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12148 echo "$as_me:$LINENO: result: yes" >&5
12149 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12150 #define $ac_tr_decl 1
12154 echo "$as_me:$LINENO: result: no" >&5
12155 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12156 #define $ac_tr_decl 0
12165 for ac_func in times
12167 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12168 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12169 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12170 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 cat >conftest.$ac_ext <<_ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12180 #define $ac_tr_decl 1
12182 #include "ansidecl.h"
12183 #include "system.h"
12184 #ifdef HAVE_SYS_TIMES_H
12185 #include <sys/times.h>
12193 char *(*pfn) = (char *(*)) $ac_func ;
12199 rm -f conftest.$ac_objext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201 (eval $ac_compile) 2>conftest.er1
12203 grep -v '^ *+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag"
12209 || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 eval "gcc_cv_have_decl_$ac_func=yes"
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 eval "gcc_cv_have_decl_$ac_func=no"
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12231 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12232 echo "$as_me:$LINENO: result: yes" >&5
12233 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12234 #define $ac_tr_decl 1
12238 echo "$as_me:$LINENO: result: no" >&5
12239 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12240 #define $ac_tr_decl 0
12249 for ac_func in sigaltstack
12251 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12252 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12253 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12254 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 cat >conftest.$ac_ext <<_ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12264 #define $ac_tr_decl 1
12266 #include "ansidecl.h"
12267 #include "system.h"
12268 #include <signal.h>
12275 char *(*pfn) = (char *(*)) $ac_func ;
12281 rm -f conftest.$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>conftest.er1
12285 grep -v '^ *+' conftest.er1 >conftest.err
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag"
12291 || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 eval "gcc_cv_have_decl_$ac_func=yes"
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 eval "gcc_cv_have_decl_$ac_func=no"
12310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12313 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12314 echo "$as_me:$LINENO: result: yes" >&5
12315 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12316 #define $ac_tr_decl 1
12320 echo "$as_me:$LINENO: result: no" >&5
12321 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12322 #define $ac_tr_decl 0
12330 # More time-related stuff.
12331 echo "$as_me:$LINENO: checking for struct tms" >&5
12332 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12333 if test "${ac_cv_struct_tms+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12344 #include "ansidecl.h"
12345 #include "system.h"
12346 #ifdef HAVE_SYS_TIMES_H
12347 #include <sys/times.h>
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>conftest.er1
12362 grep -v '^ *+' conftest.er1 >conftest.err
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_c_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest.$ac_objext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 ac_cv_struct_tms=yes
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 ac_cv_struct_tms=no
12387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12389 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12390 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12391 if test $ac_cv_struct_tms = yes; then
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_STRUCT_TMS 1
12399 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12400 # revisit after autoconf 2.50.
12401 echo "$as_me:$LINENO: checking for clock_t" >&5
12402 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12403 if test "${gcc_cv_type_clock_t+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12414 #include "ansidecl.h"
12415 #include "system.h"
12425 rm -f conftest.$ac_objext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427 (eval $ac_compile) 2>conftest.er1
12429 grep -v '^ *+' conftest.er1 >conftest.err
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -z "$ac_c_werror_flag"
12435 || test ! -s conftest.err'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest.$ac_objext'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 gcc_cv_type_clock_t=yes
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12452 gcc_cv_type_clock_t=no
12454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12456 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12457 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12458 if test $gcc_cv_type_clock_t = yes; then
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_CLOCK_T 1
12466 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12467 CFLAGS="$saved_CFLAGS"
12469 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12470 if test "${enable_initfini_array+set}" = set; then
12471 enableval="$enable_initfini_array"
12475 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12476 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12477 if test "${gcc_cv_initfini_array+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 if test "$cross_compiling" = yes; then
12481 gcc_cv_initfini_array=no
12483 cat >conftest.$ac_ext <<_ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12491 int main (void) { return x; }
12492 int foo (void) { x = 0; }
12493 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12495 rm -f conftest$ac_exeext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497 (eval $ac_link) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; }; then
12506 gcc_cv_initfini_array=yes
12508 echo "$as_me: program exited with status $ac_status" >&5
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 ( exit $ac_status )
12513 gcc_cv_initfini_array=no
12515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12518 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12519 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12520 enable_initfini_array=$gcc_cv_initfini_array
12523 if test $enable_initfini_array = yes; then
12525 cat >>confdefs.h <<\_ACEOF
12526 #define HAVE_INITFINI_ARRAY 1
12531 # mkdir takes a single argument on some systems.
12532 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12533 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12534 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 cat >conftest.$ac_ext <<_ACEOF
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12544 #include <sys/types.h>
12545 #ifdef HAVE_SYS_STAT_H
12546 # include <sys/stat.h>
12548 #ifdef HAVE_UNISTD_H
12549 # include <unistd.h>
12551 #ifdef HAVE_DIRECT_H
12552 # include <direct.h>
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564 (eval $ac_compile) 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -z "$ac_c_werror_flag"
12572 || test ! -s conftest.err'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest.$ac_objext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 gcc_cv_mkdir_takes_one_arg=no
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12589 gcc_cv_mkdir_takes_one_arg=yes
12591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12593 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12594 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12595 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12597 cat >>confdefs.h <<\_ACEOF
12598 #define MKDIR_TAKES_ONE_ARG 1
12610 # With Setjmp/Longjmp based exception handling.
12611 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12612 if test "${enable_sjlj_exceptions+set}" = set; then
12613 enableval="$enable_sjlj_exceptions"
12616 if test $enableval != yes; then
12617 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12618 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12623 force_sjlj_exceptions=yes
12627 force_sjlj_exceptions=yes
12631 force_sjlj_exceptions=no
12635 if test $force_sjlj_exceptions = yes; then
12636 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12638 cat >>confdefs.h <<_ACEOF
12639 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12644 # For platforms with the unwind ABI which includes an unwind library,
12645 # libunwind, we can choose to use the system libunwind.
12647 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12648 if test "${with_system_libunwind+set}" = set; then
12649 withval="$with_system_libunwind"
12653 # config.gcc also contains tests of with_system_libunwind.
12654 if test x$with_system_libunwind = xyes; then
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_GETIPINFO 1
12662 # --------------------------------------------------------
12663 # Build, host, and target specific configuration fragments
12664 # --------------------------------------------------------
12666 # Collect build-machine-specific information.
12667 . ${srcdir}/config.build
12669 # Collect host-machine-specific information.
12670 . ${srcdir}/config.host
12674 # Collect target-machine-specific information.
12675 . ${srcdir}/config.gcc
12677 extra_objs="${host_extra_objs} ${extra_objs}"
12678 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12680 # Default the target-machine variables that were not explicitly set.
12681 if test x"$tm_file" = x
12682 then tm_file=$cpu_type/$cpu_type.h; fi
12684 if test x"$extra_headers" = x
12685 then extra_headers=; fi
12687 if test x$md_file = x
12688 then md_file=$cpu_type/$cpu_type.md; fi
12690 if test x$out_file = x
12691 then out_file=$cpu_type/$cpu_type.c; fi
12693 if test x"$tmake_file" = x
12694 then tmake_file=$cpu_type/t-$cpu_type
12697 if test x"$dwarf2" = xyes
12698 then tm_file="$tm_file tm-dwarf2.h"
12701 # Say what files are being used for the output code and MD file.
12702 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12703 echo "Using \`$srcdir/config/$md_file' as machine description file."
12705 # If any of the xm_file variables contain nonexistent files, warn
12706 # about them and drop them.
12709 for x in $build_xm_file; do
12710 if test -f $srcdir/config/$x
12712 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12713 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12716 build_xm_file="$bx"
12719 for x in $host_xm_file; do
12720 if test -f $srcdir/config/$x
12722 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12723 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12729 for x in $xm_file; do
12730 if test -f $srcdir/config/$x
12732 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12733 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12739 for f in $tm_file; do
12742 if test $count = ax; then
12743 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12745 echo "Using the following target machine macro files:"
12746 for f in $tm_file; do
12747 echo " $srcdir/config/$f"
12751 if test x$need_64bit_hwint = xyes; then
12753 cat >>confdefs.h <<\_ACEOF
12754 #define NEED_64BIT_HOST_WIDE_INT 1
12759 if test x$use_long_long_for_widest_fast_int = xyes; then
12761 cat >>confdefs.h <<\_ACEOF
12762 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12768 for f in $host_xm_file; do
12771 if test $count = a; then
12773 elif test $count = ax; then
12774 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12776 echo "Using the following host machine macro files:"
12777 for f in $host_xm_file; do
12778 echo " $srcdir/config/$f"
12781 echo "Using ${out_host_hook_obj} for host machine hooks."
12783 if test "$host_xm_file" != "$build_xm_file"; then
12785 for f in $build_xm_file; do
12788 if test $count = a; then
12790 elif test $count = ax; then
12791 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12793 echo "Using the following build machine macro files:"
12794 for f in $build_xm_file; do
12795 echo " $srcdir/config/$f"
12801 powerpc*-*-darwin*)
12802 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12803 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12804 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 cat >conftest.$ac_ext <<_ACEOF
12809 #include <sys/cdefs.h>
12810 #include <sys/signal.h>
12811 #include <ucontext.h>
12812 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12815 rm -f conftest.$ac_objext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817 (eval $ac_compile) 2>conftest.er1
12819 grep -v '^ *+' conftest.er1 >conftest.err
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try='test -z "$ac_c_werror_flag"
12825 || test ! -s conftest.err'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; } &&
12831 { ac_try='test -s conftest.$ac_objext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 gcc_cv_mcontext_underscores=no
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842 gcc_cv_mcontext_underscores=yes
12844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12846 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12847 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12848 if test $gcc_cv_mcontext_underscores = yes; then
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAS_MCONTEXT_T_UNDERSCORES
12862 # Check if a valid thread package
12863 case ${enable_threads} in
12866 target_thread_file='single'
12870 target_thread_file='single'
12872 aix | dce | gnat | irix | posix | posix95 | rtems | \
12873 single | solaris | vxworks | win32 | mipssde)
12874 target_thread_file=${enable_threads}
12877 echo "${enable_threads} is an unknown thread package" 1>&2
12882 if test x${thread_file} = x; then
12883 # No thread file set by target-specific clauses in config.gcc,
12884 # so use file chosen by default logic above
12885 thread_file=${target_thread_file}
12888 # Make gthr-default.h if we have a thread file.
12890 if test $thread_file != single; then
12891 rm -f gthr-default.h
12892 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12893 gthread_flags=-DHAVE_GTHR_DEFAULT
12902 if test x$enable___cxa_atexit = xyes || \
12903 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12904 if test x$host = x$target; then
12906 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12907 # keyed to flag_use_cxa_atexit
12912 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12913 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12914 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 cat >conftest.$ac_ext <<_ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12923 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12925 #define __cxa_atexit innocuous___cxa_atexit
12927 /* System header to define __stub macros and hopefully few prototypes,
12928 which can conflict with char __cxa_atexit (); below.
12929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12930 <limits.h> exists even on freestanding compilers. */
12933 # include <limits.h>
12935 # include <assert.h>
12938 #undef __cxa_atexit
12940 /* Override any gcc2 internal prototype to avoid an error. */
12945 /* We use char because int might match the return type of a gcc2
12946 builtin and then its argument prototype would still apply. */
12947 char __cxa_atexit ();
12948 /* The GNU C library defines this for functions which it implements
12949 to always fail with ENOSYS. Some functions are actually named
12950 something starting with __ and the normal name is an alias. */
12951 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12954 char (*f) () = __cxa_atexit;
12963 return f != __cxa_atexit;
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12970 (eval $ac_link) 2>conftest.er1
12972 grep -v '^ *+' conftest.er1 >conftest.err
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag"
12978 || test ! -s conftest.err'
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); }; } &&
12984 { ac_try='test -s conftest$ac_exeext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 ac_cv_func___cxa_atexit=yes
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 ac_cv_func___cxa_atexit=no
12997 rm -f conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
13000 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13001 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13002 if test $ac_cv_func___cxa_atexit = yes; then
13005 echo "__cxa_atexit can't be enabled on this target"
13011 # We can't check for __cxa_atexit when building a cross, so assume
13015 if test x$use_cxa_atexit = xyes; then
13017 cat >>confdefs.h <<\_ACEOF
13018 #define DEFAULT_USE_CXA_ATEXIT 2
13025 if test x$with_system_libunwind = xyes; then
13026 if test x$host = x$target; then
13027 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13028 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13029 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 ac_func_search_save_LIBS=$LIBS
13033 ac_cv_search__Unwind_GetIPInfo=no
13034 cat >conftest.$ac_ext <<_ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13041 /* Override any gcc2 internal prototype to avoid an error. */
13045 /* We use char because int might match the return type of a gcc2
13046 builtin and then its argument prototype would still apply. */
13047 char _Unwind_GetIPInfo ();
13051 _Unwind_GetIPInfo ();
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>conftest.er1
13060 grep -v '^ *+' conftest.er1 >conftest.err
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
13065 { ac_try='test -z "$ac_c_werror_flag"
13066 || test ! -s conftest.err'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; } &&
13072 { ac_try='test -s conftest$ac_exeext'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078 ac_cv_search__Unwind_GetIPInfo="none required"
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13084 rm -f conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13086 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13087 for ac_lib in unwind; do
13088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13089 cat >conftest.$ac_ext <<_ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13096 /* Override any gcc2 internal prototype to avoid an error. */
13100 /* We use char because int might match the return type of a gcc2
13101 builtin and then its argument prototype would still apply. */
13102 char _Unwind_GetIPInfo ();
13106 _Unwind_GetIPInfo ();
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113 (eval $ac_link) 2>conftest.er1
13115 grep -v '^ *+' conftest.er1 >conftest.err
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -z "$ac_c_werror_flag"
13121 || test ! -s conftest.err'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; } &&
13127 { ac_try='test -s conftest$ac_exeext'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13136 echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13140 rm -f conftest.err conftest.$ac_objext \
13141 conftest$ac_exeext conftest.$ac_ext
13144 LIBS=$ac_func_search_save_LIBS
13146 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13147 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13148 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13149 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13158 if test x$use_getipinfo = xyes; then
13160 cat >>confdefs.h <<\_ACEOF
13161 #define HAVE_GETIPINFO 1
13165 echo "The system unwind library does not support _Unwind_GetIPInfo."
13168 # Look for a file containing extra machine modes.
13169 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13170 extra_modes_file='$(srcdir)'/config/${extra_modes}
13173 cat >>confdefs.h <<_ACEOF
13174 #define EXTRA_MODES_FILE "config/$extra_modes"
13179 # Convert extra_options into a form suitable for Makefile use.
13181 for f in $extra_options; do
13182 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13186 # auto-host.h is the file containing items generated by autoconf and is
13187 # the first file included by config.h.
13188 # If host=build, it is correct to have bconfig include auto-host.h
13189 # as well. If host!=build, we are in error and need to do more
13190 # work to find out the build config parameters.
13191 if test x$host = x$build
13193 build_auto=auto-host.h
13195 # We create a subdir, then run autoconf in the subdir.
13196 # To prevent recursion we set host and build for the new
13197 # invocation of configure to the build for this invocation
13204 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13205 *) realsrcdir=../${srcdir};;
13207 saved_CFLAGS="${CFLAGS}"
13208 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13209 ${realsrcdir}/configure \
13210 --enable-languages=${enable_languages-all} \
13211 --target=$target_alias --host=$build_alias --build=$build_alias
13212 CFLAGS="${saved_CFLAGS}"
13214 # Extract this setting from the temporary Makefile.
13215 BUILD_DEPMODE=`grep '^CCDEPMODE = ' Makefile | sed -e 's,.* = ,,'`
13217 # We just finished tests for the build machine, so rename
13218 # the file auto-build.h in the gcc directory.
13219 mv auto-host.h ../auto-build.h
13222 build_auto=auto-build.h
13226 tm_file="${tm_file} defaults.h"
13227 tm_p_file="${tm_p_file} tm-preds.h"
13228 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13229 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13230 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13231 # put this back in temporarily.
13232 xm_file="auto-host.h ansidecl.h ${xm_file}"
13238 # Compile in configure arguments.
13239 if test -f configargs.h ; then
13240 # Being re-configured.
13241 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13242 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13244 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13247 # Double all backslashes and backslash all quotes to turn
13248 # gcc_config_arguments into a C string.
13249 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13250 $gcc_config_arguments
13252 gcc_config_arguments_str=`cat conftest.out`
13255 cat > configargs.h <<EOF
13256 /* Generated automatically. */
13257 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13258 static const char thread_model[] = "$thread_file";
13260 static const struct {
13261 const char *name, *value;
13262 } configure_default_options[] = $configure_default_options;
13265 # Internationalization
13266 # If we haven't got the data from the intl directory,
13267 # assume NLS is disabled.
13276 if test -f ../intl/config.intl; then
13277 . ../intl/config.intl
13279 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13280 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13281 if test x"$USE_NLS" != xyes; then
13282 echo "$as_me:$LINENO: result: no" >&5
13283 echo "${ECHO_T}no" >&6
13285 echo "$as_me:$LINENO: result: yes" >&5
13286 echo "${ECHO_T}yes" >&6
13288 cat >>confdefs.h <<\_ACEOF
13289 #define ENABLE_NLS 1
13293 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13294 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13295 # Look for .po and .gmo files in the source directory.
13298 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13299 # If there aren't any .gmo files the shell will give us the
13300 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13302 case "$cat" in *\**)
13305 # The quadruple backslash is collapsed to a double backslash
13306 # by the backticks, then collapsed again by the double quotes,
13307 # leaving us with one backslash in the sed expression (right
13308 # before the dot that mustn't act as a wildcard).
13309 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13310 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13311 # The user is allowed to set LINGUAS to a list of languages to
13312 # install catalogs for. If it's empty that means "all of them."
13313 if test "x$LINGUAS" = x; then
13314 CATALOGS="$CATALOGS $cat"
13315 XLINGUAS="$XLINGUAS $lang"
13317 case "$LINGUAS" in *$lang*)
13318 CATALOGS="$CATALOGS $cat"
13319 XLINGUAS="$XLINGUAS $lang"
13324 LINGUAS="$XLINGUAS"
13325 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13326 echo "${ECHO_T}$LINGUAS" >&6
13339 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13340 # -liconv on the link line twice.
13341 case "$LIBINTL" in *$LIBICONV*)
13345 # Check whether --enable-secureplt or --disable-secureplt was given.
13346 if test "${enable_secureplt+set}" = set; then
13347 enableval="$enable_secureplt"
13351 # Windows32 Registry support for specifying GCC installation paths.
13352 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13353 if test "${enable_win32_registry+set}" = set; then
13354 enableval="$enable_win32_registry"
13359 win32 | pe | cygwin* | mingw32* | uwin*)
13360 if test "x$enable_win32_registry" != xno; then
13361 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13362 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13363 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 ac_func_search_save_LIBS=$LIBS
13367 ac_cv_search_RegOpenKeyExA=no
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13375 /* Override any gcc2 internal prototype to avoid an error. */
13379 /* We use char because int might match the return type of a gcc2
13380 builtin and then its argument prototype would still apply. */
13381 char RegOpenKeyExA ();
13390 rm -f conftest.$ac_objext conftest$ac_exeext
13391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13392 (eval $ac_link) 2>conftest.er1
13394 grep -v '^ *+' conftest.er1 >conftest.err
13396 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } &&
13399 { ac_try='test -z "$ac_c_werror_flag"
13400 || test ! -s conftest.err'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try='test -s conftest$ac_exeext'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 ac_cv_search_RegOpenKeyExA="none required"
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13418 rm -f conftest.err conftest.$ac_objext \
13419 conftest$ac_exeext conftest.$ac_ext
13420 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13421 for ac_lib in advapi32; do
13422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13423 cat >conftest.$ac_ext <<_ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13430 /* Override any gcc2 internal prototype to avoid an error. */
13434 /* We use char because int might match the return type of a gcc2
13435 builtin and then its argument prototype would still apply. */
13436 char RegOpenKeyExA ();
13445 rm -f conftest.$ac_objext conftest$ac_exeext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13447 (eval $ac_link) 2>conftest.er1
13449 grep -v '^ *+' conftest.er1 >conftest.err
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
13454 { ac_try='test -z "$ac_c_werror_flag"
13455 || test ! -s conftest.err'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest$ac_exeext'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; }; then
13467 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13474 rm -f conftest.err conftest.$ac_objext \
13475 conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_func_search_save_LIBS
13480 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13481 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13482 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13483 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13486 enable_win32_registry=no
13491 if test "x$enable_win32_registry" != xno; then
13493 cat >>confdefs.h <<\_ACEOF
13494 #define ENABLE_WIN32_REGISTRY 1
13498 if test "x$enable_win32_registry" != xyes \
13499 && test "x$enable_win32_registry" != x; then
13501 cat >>confdefs.h <<_ACEOF
13502 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13510 # Get an absolute path to the GCC top-level source directory
13511 holddir=`${PWDCMD-pwd}`
13513 topdir=`${PWDCMD-pwd}`
13516 # Conditionalize the makefile for this host machine.
13518 for f in ${host_xmake_file}
13520 if test -f ${srcdir}/config/$f
13522 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13526 # Conditionalize the makefile for this target machine.
13528 for f in ${tmake_file}
13530 if test -f ${srcdir}/config/$f
13532 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13535 tmake_file="${tmake_file_}"
13537 # This is a terrible hack which will go away some day.
13538 host_cc_for_libada=${CC}
13541 out_object_file=`basename $out_file .c`.o
13543 tm_file_list="options.h"
13544 tm_include_list="options.h"
13545 for f in $tm_file; do
13548 f=`echo $f | sed 's/^..//'`
13549 tm_file_list="${tm_file_list} $f"
13550 tm_include_list="${tm_include_list} $f"
13553 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13554 tm_include_list="${tm_include_list} $f"
13557 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13558 tm_include_list="${tm_include_list} config/$f"
13565 for f in $tm_p_file; do
13568 tm_p_file_list="${tm_p_file_list} $f"
13569 tm_p_include_list="${tm_p_include_list} $f"
13572 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13573 tm_p_include_list="${tm_p_include_list} config/$f"
13579 for f in $xm_file; do
13582 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13583 xm_include_list="${xm_include_list} $f"
13586 xm_file_list="${xm_file_list} $f"
13587 xm_include_list="${xm_include_list} $f"
13590 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13591 xm_include_list="${xm_include_list} config/$f"
13597 host_xm_include_list=
13598 for f in $host_xm_file; do
13601 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13602 host_xm_include_list="${host_xm_include_list} $f"
13605 host_xm_file_list="${host_xm_file_list} $f"
13606 host_xm_include_list="${host_xm_include_list} $f"
13609 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13610 host_xm_include_list="${host_xm_include_list} config/$f"
13615 build_xm_file_list=
13616 for f in $build_xm_file; do
13619 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13620 build_xm_include_list="${build_xm_include_list} $f"
13622 auto-build.h | auto-host.h )
13623 build_xm_file_list="${build_xm_file_list} $f"
13624 build_xm_include_list="${build_xm_include_list} $f"
13627 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13628 build_xm_include_list="${build_xm_include_list} config/$f"
13633 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13634 # cross-compiler which does not use the native headers and libraries.
13635 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13638 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13640 if test "x$with_build_sysroot" != x; then
13641 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13643 # This value is used, even on a native system, because
13644 # CROSS_SYSTEM_HEADER_DIR is just
13645 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13646 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13649 if test x$host != x$target
13651 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13653 SYSTEM_HEADER_DIR=$build_system_header_dir
13654 case "$host","$target" in
13655 # Darwin crosses can use the host system's libraries and headers,
13656 # because of the fat library support. Of course, it must be the
13657 # same version of Darwin on both sides. Allow the user to
13658 # just say --target=foo-darwin without a version number to mean
13659 # "the version on this system".
13660 *-*-darwin*,*-*-darwin*)
13661 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13662 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13663 if test $hostos = $targetos -o $targetos = darwin ; then
13665 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13670 i?86-*-*,x86_64-*-* \
13671 | powerpc*-*-*,powerpc64*-*-*)
13672 CROSS="$CROSS -DNATIVE_CROSS" ;;
13674 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13675 SYSTEM_HEADER_DIR=$build_system_header_dir
13678 # If this is a cross-compiler that does not
13679 # have its own set of headers then define
13682 # If this is using newlib, without having the headers available now,
13683 # then define inhibit_libc in LIBGCC2_CFLAGS.
13684 # This prevents libgcc2 from containing any code which requires libc
13687 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13688 test x$with_newlib = xyes ; } &&
13689 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13694 # When building gcc with a cross-compiler, we need to adjust things so
13695 # that the generator programs are still built with the native compiler.
13696 # Also, we cannot run fixincludes or fix-header.
13698 # These are the normal (build=host) settings:
13699 CC_FOR_BUILD='$(CC)'
13700 BUILD_CFLAGS='$(ALL_CFLAGS)'
13701 STMP_FIXINC=stmp-fixinc
13703 # Possibly disable fixproto, on a per-target basis.
13704 case ${use_fixproto} in
13709 STMP_FIXPROTO=stmp-fixproto
13714 # And these apply if build != host, or we are generating coverage data
13715 if test x$build != x$host || test "x$coverage_flags" != x
13717 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13719 if test "x$TARGET_SYSTEM_ROOT" = x; then
13720 if test "x$STMP_FIXPROTO" != x; then
13721 STMP_FIXPROTO=stmp-install-fixproto
13726 # Expand extra_headers to include complete path.
13727 # This substitutes for lots of t-* files.
13728 extra_headers_list=
13729 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13730 for file in ${extra_headers} ; do
13731 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13734 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13735 if test x"$use_gcc_tgmath" = xyes
13736 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13739 # Define collect2 in Makefile.
13740 case $host_can_use_collect2 in
13742 *) collect2='collect2$(exeext)' ;;
13746 # Add a definition of USE_COLLECT2 if system wants one.
13747 case $use_collect2 in
13748 no) use_collect2= ;;
13751 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13752 xm_defines="${xm_defines} USE_COLLECT2"
13753 case $host_can_use_collect2 in
13755 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13756 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13757 { (exit 1); exit 1; }; }
13763 # ---------------------------
13764 # Assembler & linker features
13765 # ---------------------------
13767 # Identify the assembler which will work hand-in-glove with the newly
13768 # built GCC, so that we can examine its features. This is the assembler
13769 # which will be driven by the driver program.
13771 # If build != host, and we aren't building gas in-tree, we identify a
13772 # build->target assembler and hope that it will have the same features
13773 # as the host->target assembler we'll be using.
13774 gcc_cv_gas_major_version=
13775 gcc_cv_gas_minor_version=
13776 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13778 if test "${gcc_cv_as+set}" = set; then
13782 if test -x "$DEFAULT_ASSEMBLER"; then
13783 gcc_cv_as="$DEFAULT_ASSEMBLER"
13784 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13785 && test -f ../gas/Makefile \
13786 && test x$build = x$host; then
13787 gcc_cv_as=../gas/as-new$build_exeext
13788 elif test -x as$build_exeext; then
13789 # Build using assembler in the current directory.
13790 gcc_cv_as=./as$build_exeext
13791 elif test -x $AS_FOR_TARGET; then
13792 gcc_cv_as="$AS_FOR_TARGET"
13794 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13795 set dummy $AS_FOR_TARGET; ac_word=$2
13796 echo "$as_me:$LINENO: checking for $ac_word" >&5
13797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13798 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13807 for as_dir in $PATH
13810 test -z "$as_dir" && as_dir=.
13811 for ac_exec_ext in '' $ac_executable_extensions; do
13812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13813 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13823 gcc_cv_as=$ac_cv_path_gcc_cv_as
13825 if test -n "$gcc_cv_as"; then
13826 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13827 echo "${ECHO_T}$gcc_cv_as" >&6
13829 echo "$as_me:$LINENO: result: no" >&5
13830 echo "${ECHO_T}no" >&6
13837 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13839 case "$ORIGINAL_AS_FOR_TARGET" in
13840 ./as | ./as$build_exeext) ;;
13841 *) ac_config_files="$ac_config_files as:exec-tool.in"
13845 echo "$as_me:$LINENO: checking what assembler to use" >&5
13846 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13847 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13848 # Single tree build which includes gas. We want to prefer it
13849 # over whatever linker top-level may have detected, since
13850 # we'll use what we're building after installation anyway.
13851 echo "$as_me:$LINENO: result: newly built gas" >&5
13852 echo "${ECHO_T}newly built gas" >&6
13854 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13855 for f in $gcc_cv_as_bfd_srcdir/configure \
13856 $gcc_cv_as_gas_srcdir/configure \
13857 $gcc_cv_as_gas_srcdir/configure.in \
13858 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13859 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13860 if test x$gcc_cv_gas_version != x; then
13864 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13865 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13866 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13867 case $gcc_cv_gas_patch_version in
13868 "") gcc_cv_gas_patch_version="0" ;;
13870 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13871 + $gcc_cv_gas_minor_version \) \* 1000 \
13872 + $gcc_cv_gas_patch_version`
13874 in_tree_gas_is_elf=no
13875 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13876 || (grep 'obj_format = multi' ../gas/Makefile \
13877 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13879 in_tree_gas_is_elf=yes
13882 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13883 echo "${ECHO_T}$gcc_cv_as" >&6
13887 # Identify the linker which will work hand-in-glove with the newly
13888 # built GCC, so that we can examine its features. This is the linker
13889 # which will be driven by the driver program.
13891 # If build != host, and we aren't building gas in-tree, we identify a
13892 # build->target linker and hope that it will have the same features
13893 # as the host->target linker we'll be using.
13894 gcc_cv_gld_major_version=
13895 gcc_cv_gld_minor_version=
13896 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13897 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13899 if test "${gcc_cv_ld+set}" = set; then
13903 if test -x "$DEFAULT_LINKER"; then
13904 gcc_cv_ld="$DEFAULT_LINKER"
13905 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13906 && test -f ../ld/Makefile \
13907 && test x$build = x$host; then
13908 gcc_cv_ld=../ld/ld-new$build_exeext
13909 elif test -x collect-ld$build_exeext; then
13910 # Build using linker in the current directory.
13911 gcc_cv_ld=./collect-ld$build_exeext
13912 elif test -x $LD_FOR_TARGET; then
13913 gcc_cv_ld="$LD_FOR_TARGET"
13915 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13916 set dummy $LD_FOR_TARGET; ac_word=$2
13917 echo "$as_me:$LINENO: checking for $ac_word" >&5
13918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13919 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13934 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13946 if test -n "$gcc_cv_ld"; then
13947 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13948 echo "${ECHO_T}$gcc_cv_ld" >&6
13950 echo "$as_me:$LINENO: result: no" >&5
13951 echo "${ECHO_T}no" >&6
13958 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13960 case "$ORIGINAL_LD_FOR_TARGET" in
13961 ./collect-ld | ./collect-ld$build_exeext) ;;
13962 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13966 echo "$as_me:$LINENO: checking what linker to use" >&5
13967 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13968 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13969 # Single tree build which includes ld. We want to prefer it
13970 # over whatever linker top-level may have detected, since
13971 # we'll use what we're building after installation anyway.
13972 echo "$as_me:$LINENO: result: newly built ld" >&5
13973 echo "${ECHO_T}newly built ld" >&6
13975 in_tree_ld_is_elf=no
13976 if (grep 'EMUL = .*elf' ../ld/Makefile \
13977 || grep 'EMUL = .*linux' ../ld/Makefile \
13978 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13979 in_tree_ld_is_elf=yes
13981 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
13983 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13984 if test x$gcc_cv_gld_version != x; then
13988 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13989 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13991 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13992 echo "${ECHO_T}$gcc_cv_ld" >&6
13996 # Figure out what nm we will be using.
13997 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13998 if test "${gcc_cv_nm+set}" = set; then
14002 if test -f $gcc_cv_binutils_srcdir/configure.in \
14003 && test -f ../binutils/Makefile \
14004 && test x$build = x$host; then
14005 gcc_cv_nm=../binutils/nm-new$build_exeext
14006 elif test -x nm$build_exeext; then
14007 gcc_cv_nm=./nm$build_exeext
14008 elif test -x $NM_FOR_TARGET; then
14009 gcc_cv_nm="$NM_FOR_TARGET"
14011 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
14012 set dummy $NM_FOR_TARGET; ac_word=$2
14013 echo "$as_me:$LINENO: checking for $ac_word" >&5
14014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14015 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14027 test -z "$as_dir" && as_dir=.
14028 for ac_exec_ext in '' $ac_executable_extensions; do
14029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14030 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14040 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14042 if test -n "$gcc_cv_nm"; then
14043 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14044 echo "${ECHO_T}$gcc_cv_nm" >&6
14046 echo "$as_me:$LINENO: result: no" >&5
14047 echo "${ECHO_T}no" >&6
14054 echo "$as_me:$LINENO: checking what nm to use" >&5
14055 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
14056 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
14057 # Single tree build which includes binutils.
14058 echo "$as_me:$LINENO: result: newly built nm" >&5
14059 echo "${ECHO_T}newly built nm" >&6
14062 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14063 echo "${ECHO_T}$gcc_cv_nm" >&6
14067 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
14069 case "$ORIGINAL_NM_FOR_TARGET" in
14070 ./nm | ./nm$build_exeext) ;;
14071 *) ac_config_files="$ac_config_files nm:exec-tool.in"
14076 # Figure out what objdump we will be using.
14077 if test "${gcc_cv_objdump+set}" = set; then
14081 if test -f $gcc_cv_binutils_srcdir/configure.in \
14082 && test -f ../binutils/Makefile \
14083 && test x$build = x$host; then
14084 # Single tree build which includes binutils.
14085 gcc_cv_objdump=../binutils/objdump$build_exeext
14086 elif test -x objdump$build_exeext; then
14087 gcc_cv_objdump=./objdump$build_exeext
14088 elif test -x $OBJDUMP_FOR_TARGET; then
14089 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
14091 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14092 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
14093 echo "$as_me:$LINENO: checking for $ac_word" >&5
14094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14095 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 case $gcc_cv_objdump in
14100 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14110 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14120 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14122 if test -n "$gcc_cv_objdump"; then
14123 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14124 echo "${ECHO_T}$gcc_cv_objdump" >&6
14126 echo "$as_me:$LINENO: result: no" >&5
14127 echo "${ECHO_T}no" >&6
14134 echo "$as_me:$LINENO: checking what objdump to use" >&5
14135 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
14136 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
14137 # Single tree build which includes binutils.
14138 echo "$as_me:$LINENO: result: newly built objdump" >&5
14139 echo "${ECHO_T}newly built objdump" >&6
14140 elif test x$gcc_cv_objdump = x; then
14141 echo "$as_me:$LINENO: result: not found" >&5
14142 echo "${ECHO_T}not found" >&6
14144 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14145 echo "${ECHO_T}$gcc_cv_objdump" >&6
14148 # Figure out what assembler alignment features are present.
14149 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14150 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
14151 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 gcc_cv_as_balign_and_p2align=no
14155 if test $in_tree_gas = yes; then
14156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14157 then gcc_cv_as_balign_and_p2align=yes
14159 elif test x$gcc_cv_as != x; then
14161 .p2align 2' > conftest.s
14162 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }
14169 gcc_cv_as_balign_and_p2align=yes
14171 echo "configure: failed program was" >&5
14174 rm -f conftest.o conftest.s
14177 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14178 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
14179 if test $gcc_cv_as_balign_and_p2align = yes; then
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14187 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14188 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
14189 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 gcc_cv_as_max_skip_p2align=no
14193 if test $in_tree_gas = yes; then
14194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14195 then gcc_cv_as_max_skip_p2align=yes
14197 elif test x$gcc_cv_as != x; then
14198 echo '.p2align 4,,7' > conftest.s
14199 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }
14206 gcc_cv_as_max_skip_p2align=yes
14208 echo "configure: failed program was" >&5
14211 rm -f conftest.o conftest.s
14214 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14215 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
14216 if test $gcc_cv_as_max_skip_p2align = yes; then
14218 cat >>confdefs.h <<\_ACEOF
14219 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14224 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
14225 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
14226 if test "${gcc_cv_as_literal16+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 gcc_cv_as_literal16=no
14230 if test $in_tree_gas = yes; then
14231 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14232 then gcc_cv_as_literal16=yes
14234 elif test x$gcc_cv_as != x; then
14235 echo '.literal16' > conftest.s
14236 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }
14243 gcc_cv_as_literal16=yes
14245 echo "configure: failed program was" >&5
14248 rm -f conftest.o conftest.s
14251 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
14252 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
14253 if test $gcc_cv_as_literal16 = yes; then
14255 cat >>confdefs.h <<\_ACEOF
14256 #define HAVE_GAS_LITERAL16 1
14261 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14262 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
14263 if test "${gcc_cv_as_subsection_m1+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 gcc_cv_as_subsection_m1=no
14267 if test $in_tree_gas = yes; then
14268 if test $in_tree_gas_is_elf = yes \
14269 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14270 then gcc_cv_as_subsection_m1=yes
14272 elif test x$gcc_cv_as != x; then
14273 echo 'conftest_label1: .word 0
14275 conftest_label2: .word 0
14276 .previous' > conftest.s
14277 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }
14284 if test x$gcc_cv_nm != x; then
14285 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
14286 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
14287 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
14289 else gcc_cv_as_subsection_m1=yes
14291 rm -f conftest.nm1 conftest.nm2
14294 echo "configure: failed program was" >&5
14297 rm -f conftest.o conftest.s
14300 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14301 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
14302 if test $gcc_cv_as_subsection_m1 = yes; then
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_GAS_SUBSECTION_ORDERING 1
14310 echo "$as_me:$LINENO: checking assembler for .weak" >&5
14311 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
14312 if test "${gcc_cv_as_weak+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 if test $in_tree_gas = yes; then
14317 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14318 then gcc_cv_as_weak=yes
14320 elif test x$gcc_cv_as != x; then
14321 echo ' .weak foobar' > conftest.s
14322 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }
14331 echo "configure: failed program was" >&5
14334 rm -f conftest.o conftest.s
14337 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14338 echo "${ECHO_T}$gcc_cv_as_weak" >&6
14339 if test $gcc_cv_as_weak = yes; then
14341 cat >>confdefs.h <<\_ACEOF
14342 #define HAVE_GAS_WEAK 1
14347 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14348 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
14349 if test "${gcc_cv_as_weakref+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 gcc_cv_as_weakref=no
14353 if test $in_tree_gas = yes; then
14354 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14355 then gcc_cv_as_weakref=yes
14357 elif test x$gcc_cv_as != x; then
14358 echo ' .weakref foobar, barfnot' > conftest.s
14359 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; }
14366 gcc_cv_as_weakref=yes
14368 echo "configure: failed program was" >&5
14371 rm -f conftest.o conftest.s
14374 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14375 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
14376 if test $gcc_cv_as_weakref = yes; then
14378 cat >>confdefs.h <<\_ACEOF
14379 #define HAVE_GAS_WEAKREF 1
14384 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14385 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
14386 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 gcc_cv_as_nsubspa_comdat=no
14390 if test $in_tree_gas = yes; then
14391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14392 then gcc_cv_as_nsubspa_comdat=yes
14394 elif test x$gcc_cv_as != x; then
14395 echo ' .SPACE $TEXT$
14396 .NSUBSPA $CODE$,COMDAT' > conftest.s
14397 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }
14404 gcc_cv_as_nsubspa_comdat=yes
14406 echo "configure: failed program was" >&5
14409 rm -f conftest.o conftest.s
14412 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14413 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
14414 if test $gcc_cv_as_nsubspa_comdat = yes; then
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAVE_GAS_NSUBSPA_COMDAT 1
14422 # .hidden needs to be supported in both the assembler and the linker,
14423 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14424 # This is irritatingly difficult to feature test for; we have to check the
14425 # date string after the version number. If we've got an in-tree
14426 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14428 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14429 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14430 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14431 if test "${gcc_cv_as_hidden+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 gcc_cv_as_hidden=no
14435 if test $in_tree_gas = yes; then
14436 if test $in_tree_gas_is_elf = yes \
14437 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14438 then gcc_cv_as_hidden=yes
14440 elif test x$gcc_cv_as != x; then
14441 echo ' .hidden foobar
14442 foobar:' > conftest.s
14443 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }
14450 gcc_cv_as_hidden=yes
14452 echo "configure: failed program was" >&5
14455 rm -f conftest.o conftest.s
14458 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14459 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14462 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14463 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14464 if test "${gcc_cv_ld_hidden+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 if test $in_tree_ld = yes ; then
14468 gcc_cv_ld_hidden=no
14469 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 \
14470 && test $in_tree_ld_is_elf = yes; then
14471 gcc_cv_ld_hidden=yes
14474 gcc_cv_ld_hidden=yes
14475 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14476 if echo "$ld_ver" | grep GNU > /dev/null; then
14477 ld_vers=`echo $ld_ver | sed -n \
14478 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14479 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'`
14480 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14481 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14482 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14483 if test 0"$ld_date" -lt 20020404; then
14484 if test -n "$ld_date"; then
14485 # If there was date string, but was earlier than 2002-04-04, fail
14486 gcc_cv_ld_hidden=no
14487 elif test -z "$ld_vers"; then
14488 # If there was no date string nor ld version number, something is wrong
14489 gcc_cv_ld_hidden=no
14491 test -z "$ld_vers_patch" && ld_vers_patch=0
14492 if test "$ld_vers_major" -lt 2; then
14493 gcc_cv_ld_hidden=no
14494 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14495 gcc_cv_ld_hidden="no"
14496 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14497 gcc_cv_ld_hidden=no
14502 case "${target}" in
14503 hppa64*-*-hpux* | ia64*-*-hpux*)
14504 gcc_cv_ld_hidden=yes
14507 gcc_cv_ld_hidden=no
14513 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14514 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14515 libgcc_visibility=no
14518 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14519 libgcc_visibility=yes
14521 cat >>confdefs.h <<\_ACEOF
14522 #define HAVE_GAS_HIDDEN 1
14527 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14528 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14529 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14530 if test "${gcc_cv_as_leb128+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 gcc_cv_as_leb128=no
14534 if test $in_tree_gas = yes; then
14535 if test $in_tree_gas_is_elf = yes \
14536 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14537 then gcc_cv_as_leb128=yes
14539 elif test x$gcc_cv_as != x; then
14546 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }
14553 # GAS versions before 2.11 do not support uleb128,
14554 # despite appearing to.
14555 # ??? There exists an elf-specific test that will crash
14556 # the assembler. Perhaps it's better to figure out whether
14557 # arbitrary sections are supported and try the test.
14558 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14559 if echo "$as_ver" | grep GNU > /dev/null; then
14560 as_vers=`echo $as_ver | sed -n \
14561 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14562 as_major=`expr "$as_vers" : '\([0-9]*\)'`
14563 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14564 if test $as_major -eq 2 && test $as_minor -lt 11
14566 else gcc_cv_as_leb128=yes
14570 echo "configure: failed program was" >&5
14573 rm -f conftest.o conftest.s
14576 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14577 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14578 if test $gcc_cv_as_leb128 = yes; then
14580 cat >>confdefs.h <<\_ACEOF
14581 #define HAVE_AS_LEB128 1
14586 # GAS versions up to and including 2.11.0 may mis-optimize
14588 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14589 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14590 if test "${gcc_cv_as_eh_frame+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 gcc_cv_as_eh_frame=no
14594 if test $in_tree_gas = yes; then
14595 if test $in_tree_gas_is_elf = yes \
14596 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14597 then gcc_cv_as_eh_frame=yes
14599 elif test x$gcc_cv_as != x; then
14606 .section .eh_frame,"aw",@progbits
14608 .4byte .LECIE1-.LSCIE1
14622 .4byte .LEFDE1-.LASFDE1
14624 .4byte .LASFDE1-__FRAME_BEGIN__
14631 .LEFDE1:' > conftest.s
14632 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }
14639 cat > conftest.lit <<EOF
14640 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14641 0010 01000000 12000000 18000000 00000000 ................
14642 0020 08000000 04080000 0044 .........D
14644 cat > conftest.big <<EOF
14645 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14646 0010 00000001 00000012 00000018 00000000 ................
14647 0020 00000008 04000000 0844 .........D
14649 # If the assembler didn't choke, and we can objdump,
14650 # and we got the correct data, then succeed.
14651 # The text in the here-document typically retains its unix-style line
14652 # endings, while the output of objdump will use host line endings.
14653 # Therefore, use diff -b for the comparisons.
14654 if test x$gcc_cv_objdump != x \
14655 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14656 | tail -3 > conftest.got \
14657 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14658 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14660 gcc_cv_as_eh_frame=yes
14661 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 gcc_cv_as_eh_frame=buggy
14669 # Uh oh, what do we do now?
14670 gcc_cv_as_eh_frame=no
14673 echo "configure: failed program was" >&5
14676 rm -f conftest.o conftest.s
14679 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14680 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14683 if test $gcc_cv_as_eh_frame = buggy; then
14685 cat >>confdefs.h <<\_ACEOF
14686 #define USE_AS_TRADITIONAL_FORMAT 1
14691 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14692 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14693 if test "${gcc_cv_as_shf_merge+set}" = set; then
14694 echo $ECHO_N "(cached) $ECHO_C" >&6
14696 gcc_cv_as_shf_merge=no
14697 if test $in_tree_gas = yes; then
14698 if test $in_tree_gas_is_elf = yes \
14699 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14700 then gcc_cv_as_shf_merge=yes
14702 elif test x$gcc_cv_as != x; then
14703 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14704 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }
14711 gcc_cv_as_shf_merge=yes
14713 echo "configure: failed program was" >&5
14716 rm -f conftest.o conftest.s
14719 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14720 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14722 if test $gcc_cv_as_shf_merge = no; then
14723 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14724 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14725 if test "${gcc_cv_as_shf_merge+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 gcc_cv_as_shf_merge=no
14729 if test $in_tree_gas = yes; then
14730 if test $in_tree_gas_is_elf = yes \
14731 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14732 then gcc_cv_as_shf_merge=yes
14734 elif test x$gcc_cv_as != x; then
14735 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14736 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }
14743 gcc_cv_as_shf_merge=yes
14745 echo "configure: failed program was" >&5
14748 rm -f conftest.o conftest.s
14751 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14752 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14756 cat >>confdefs.h <<_ACEOF
14757 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14761 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14762 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14763 if test "${gcc_cv_as_comdat_group+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 gcc_cv_as_comdat_group=no
14767 if test $in_tree_gas = yes; then
14768 if test $in_tree_gas_is_elf = yes \
14769 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14770 then gcc_cv_as_comdat_group=yes
14772 elif test x$gcc_cv_as != x; then
14773 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14774 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }
14781 gcc_cv_as_comdat_group=yes
14783 echo "configure: failed program was" >&5
14786 rm -f conftest.o conftest.s
14789 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14790 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14792 if test $gcc_cv_as_comdat_group = yes; then
14793 gcc_cv_as_comdat_group_percent=no
14795 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14796 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14797 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 gcc_cv_as_comdat_group_percent=no
14801 if test $in_tree_gas = yes; then
14802 if test $in_tree_gas_is_elf = yes \
14803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14804 then gcc_cv_as_comdat_group_percent=yes
14806 elif test x$gcc_cv_as != x; then
14807 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14808 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }
14815 gcc_cv_as_comdat_group_percent=yes
14817 echo "configure: failed program was" >&5
14820 rm -f conftest.o conftest.s
14823 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14824 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14827 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14829 if test 0"$ld_date" -lt 20050308; then
14830 if test -n "$ld_date"; then
14831 # If there was date string, but was earlier than 2005-03-08, fail
14833 elif test "$ld_vers_major" -lt 2; then
14835 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14840 # assume linkers other than GNU ld don't support COMDAT group
14843 if test $comdat_group = no; then
14844 gcc_cv_as_comdat_group=no
14845 gcc_cv_as_comdat_group_percent=no
14848 cat >>confdefs.h <<_ACEOF
14849 #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`
14853 # Thread-local storage - the check is heavily parametrized.
14861 .section ".tdata","awT",@progbits
14864 ldq $27,__tls_get_addr($29) !literal!1
14865 lda $16,foo($29) !tlsgd!1
14866 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14867 ldq $27,__tls_get_addr($29) !literal!2
14868 lda $16,foo($29) !tlsldm!2
14869 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14870 ldq $1,foo($29) !gotdtprel
14871 ldah $2,foo($29) !dtprelhi
14872 lda $3,foo($2) !dtprello
14873 lda $4,foo($29) !dtprel
14874 ldq $1,foo($29) !gottprel
14875 ldah $2,foo($29) !tprelhi
14876 lda $3,foo($2) !tprello
14877 lda $4,foo($29) !tprel'
14880 tls_as_opt=--fatal-warnings
14884 .section ".tdata","awT",@progbits
14887 call #gettlsoff(x)'
14896 .section ".tdata","awT",@progbits
14900 addil LT%foo-$tls_gdidx$,gp
14901 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14904 addil LT%foo-$tls_ldidx$,gp
14906 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14907 addil LR%foo-$tls_dtpoff$,%ret0
14908 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14910 addil LT%foo-$tls_ieoff$,gp
14911 ldw RT%foo-$tls_ieoff$(%r1),%t2
14914 addil LR%foo-$tls_leoff$,%t1
14915 ldo RR%foo-$tls_leoff$(%r1),%t2'
14918 tls_as_opt=--fatal-warnings
14922 .section ".tdata","awT",%progbits
14925 .word foo(gottpoff)
14935 .section ".tdata","awT",@progbits
14939 leal foo@TLSGD(,%ebx,1), %eax
14940 leal foo@TLSLDM(%ebx), %eax
14941 leal foo@DTPOFF(%eax), %edx
14942 movl foo@GOTTPOFF(%ebx), %eax
14943 subl foo@GOTTPOFF(%ebx), %eax
14944 addl foo@GOTNTPOFF(%ebx), %eax
14945 movl foo@INDNTPOFF, %eax
14946 movl $foo@TPOFF, %eax
14947 subl $foo@TPOFF, %eax
14948 leal foo@NTPOFF(%ecx), %eax'
14951 tls_as_opt=--fatal-warnings
14955 .section ".tdata","awT",@progbits
14959 leaq foo@TLSGD(%rip), %rdi
14960 leaq foo@TLSLD(%rip), %rdi
14961 leaq foo@DTPOFF(%rax), %rdx
14962 movq foo@GOTTPOFF(%rip), %rax
14963 movq $foo@TPOFF, %rax'
14966 tls_as_opt=--fatal-warnings
14970 .section ".tdata","awT",@progbits
14973 addl r16 = @ltoff(@dtpmod(foo#)), gp
14974 addl r17 = @ltoff(@dtprel(foo#)), gp
14975 addl r18 = @ltoff(@tprel(foo#)), gp
14976 addl r19 = @dtprel(foo#), gp
14977 adds r21 = @dtprel(foo#), r13
14978 movl r23 = @dtprel(foo#)
14979 addl r20 = @tprel(foo#), gp
14980 adds r22 = @tprel(foo#), r13
14981 movl r24 = @tprel(foo#)'
14984 tls_as_opt=--fatal-warnings
14988 .section .tdata,"awT",@progbits
14992 addiu $4, $28, %tlsgd(x)
14993 addiu $4, $28, %tlsldm(x)
14994 lui $4, %dtprel_hi(x)
14995 addiu $4, $4, %dtprel_lo(x)
14996 lw $4, %gottprel(x)($28)
14997 lui $4, %tprel_hi(x)
14998 addiu $4, $4, %tprel_lo(x)'
15001 tls_as_opt='-32 --fatal-warnings'
15005 .section ".tdata","awT",@progbits
15013 addi 3,31,ld0@got@tlsgd
15015 addi 3,31,x1@got@tlsld
15018 addis 9,3,x2@dtprel@ha
15019 addi 9,9,x2@dtprel@l
15020 lwz 9,x3@got@tprel(31)
15023 addis 9,2,x2@tprel@ha
15024 addi 9,9,x2@tprel@l'
15027 tls_as_opt="-a32 --fatal-warnings"
15031 .section ".tdata","awT",@progbits
15039 addi 3,2,ld0@got@tlsgd
15045 addi 3,2,x1@got@tlsld
15051 addis 9,3,x2@dtprel@ha
15052 addi 9,9,x2@dtprel@l
15055 ld 9,x3@got@dtprel(2)
15061 tls_as_opt="-a64 --fatal-warnings"
15065 .section ".tdata","awT",@progbits
15072 .long foo@GOTNTPOFF
15073 .long foo@INDNTPOFF
15074 l %r1,foo@GOTNTPOFF(%r12)
15075 l %r1,0(%r1):tls_load:foo
15076 bas %r14,0(%r1,%r13):tls_gdcall:foo
15077 bas %r14,0(%r1,%r13):tls_ldcall:foo'
15080 tls_as_opt="-m31 --fatal-warnings"
15084 .section ".tdata","awT",@progbits
15091 .quad foo@GOTNTPOFF
15092 lg %r1,foo@GOTNTPOFF(%r12)
15093 larl %r1,foo@INDNTPOFF
15094 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
15095 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
15098 tls_as_opt="-m64 -Aesame --fatal-warnings"
15100 sh-*-* | sh[34]-*-*)
15102 .section ".tdata","awT",@progbits
15112 tls_as_opt=--fatal-warnings
15116 sparc*-sun-solaris2.[56789]*)
15117 # TLS was introduced in the Solaris 9 4/04 release but
15118 # we do not enable it by default on Solaris 9 either.
15119 if test "x$enable_tls" = xyes ; then
15125 sparc*-sun-solaris2.*)
15132 if test x$on_solaris = xyes && test x$gas_flag = xno; then
15134 .section ".tdata",#alloc,#write,#tls
15137 sethi %tgd_hi22(foo), %o0
15138 add %o0, %tgd_lo10(foo), %o1
15139 add %l7, %o1, %o0, %tgd_add(foo)
15140 call __tls_get_addr, %tgd_call(foo)
15141 sethi %tldm_hi22(foo), %l1
15142 add %l1, %tldm_lo10(foo), %l2
15143 add %l7, %l2, %o0, %tldm_add(foo)
15144 call __tls_get_addr, %tldm_call(foo)
15145 sethi %tldo_hix22(foo), %l3
15146 xor %l3, %tldo_lox10(foo), %l4
15147 add %o0, %l4, %l5, %tldo_add(foo)
15148 sethi %tie_hi22(foo), %o3
15149 add %o3, %tie_lo10(foo), %o3
15150 ld [%l7 + %o3], %o2, %tie_ld(foo)
15151 add %g7, %o2, %o4, %tie_add(foo)
15152 sethi %tle_hix22(foo), %l1
15153 xor %l1, %tle_lox10(foo), %o5
15154 ld [%g7 + %o5], %o1'
15159 .section ".tdata","awT",@progbits
15162 sethi %tgd_hi22(foo), %o0
15163 add %o0, %tgd_lo10(foo), %o1
15164 add %l7, %o1, %o0, %tgd_add(foo)
15165 call __tls_get_addr, %tgd_call(foo)
15166 sethi %tldm_hi22(foo), %l1
15167 add %l1, %tldm_lo10(foo), %l2
15168 add %l7, %l2, %o0, %tldm_add(foo)
15169 call __tls_get_addr, %tldm_call(foo)
15170 sethi %tldo_hix22(foo), %l3
15171 xor %l3, %tldo_lox10(foo), %l4
15172 add %o0, %l4, %l5, %tldo_add(foo)
15173 sethi %tie_hi22(foo), %o3
15174 add %o3, %tie_lo10(foo), %o3
15175 ld [%l7 + %o3], %o2, %tie_ld(foo)
15176 add %g7, %o2, %o4, %tie_add(foo)
15177 sethi %tle_hix22(foo), %l1
15178 xor %l1, %tle_lox10(foo), %o5
15179 ld [%g7 + %o5], %o1'
15182 tls_as_opt="-32 --fatal-warnings"
15187 if test "x$enable_tls" = xno ; then
15188 : # TLS explicitly disabled.
15189 elif test "x$enable_tls" = xyes ; then
15190 set_have_as_tls=yes # TLS explicitly enabled.
15191 elif test -z "$tls_first_major"; then
15192 : # If we don't have a check, assume no support.
15194 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15195 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
15196 if test "${gcc_cv_as_tls+set}" = set; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 if test $in_tree_gas = yes; then
15201 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15202 then gcc_cv_as_tls=yes
15204 elif test x$gcc_cv_as != x; then
15205 echo "$conftest_s" > conftest.s
15206 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }
15215 echo "configure: failed program was" >&5
15218 rm -f conftest.o conftest.s
15221 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15222 echo "${ECHO_T}$gcc_cv_as_tls" >&6
15223 if test $gcc_cv_as_tls = yes; then
15224 set_have_as_tls=yes
15227 if test $set_have_as_tls = yes ; then
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_AS_TLS 1
15235 # Target-specific assembler checks.
15237 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15238 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
15239 gcc_cv_ld_static_dynamic=no
15240 if test $in_tree_ld = yes ; then
15241 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15242 gcc_cv_ld_static_dynamic=yes
15244 elif test x$gcc_cv_ld != x; then
15245 # Check if linker supports -Bstatic/-Bdynamic option
15246 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
15247 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
15248 gcc_cv_ld_static_dynamic=yes
15251 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
15253 cat >>confdefs.h <<\_ACEOF
15254 #define HAVE_LD_STATIC_DYNAMIC 1
15258 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15259 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
15261 if test x"$demangler_in_ld" = xyes; then
15262 echo "$as_me:$LINENO: checking linker --demangle support" >&5
15263 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
15264 gcc_cv_ld_demangle=no
15265 if test $in_tree_ld = yes; then
15266 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 \
15267 gcc_cv_ld_demangle=yes
15269 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
15270 # Check if the GNU linker supports --demangle option
15271 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
15272 gcc_cv_ld_demangle=yes
15275 if test x"$gcc_cv_ld_demangle" = xyes; then
15277 cat >>confdefs.h <<\_ACEOF
15278 #define HAVE_LD_DEMANGLE 1
15282 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15283 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
15287 # All TARGET_ABI_OSF targets.
15288 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
15289 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15290 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15291 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 gcc_cv_as_alpha_explicit_relocs=no
15295 if test $in_tree_gas = yes; then
15296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15297 then gcc_cv_as_alpha_explicit_relocs=yes
15299 elif test x$gcc_cv_as != x; then
15300 echo ' .set nomacro
15302 extbl $3, $2, $3 !lituse_bytoff!1
15303 ldq $2, a($29) !literal!1
15304 ldq $4, b($29) !literal!2
15305 ldq_u $3, 0($2) !lituse_base!1
15306 ldq $27, f($29) !literal!5
15307 jsr $26, ($27), f !lituse_jsr!5
15308 ldah $29, 0($26) !gpdisp!3
15309 lda $0, c($29) !gprel
15310 ldah $1, d($29) !gprelhigh
15311 lda $1, d($1) !gprellow
15312 lda $29, 0($29) !gpdisp!3' > conftest.s
15313 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }
15320 gcc_cv_as_alpha_explicit_relocs=yes
15322 echo "configure: failed program was" >&5
15325 rm -f conftest.o conftest.s
15328 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15329 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
15330 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15332 cat >>confdefs.h <<\_ACEOF
15333 #define HAVE_AS_EXPLICIT_RELOCS 1
15337 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15338 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
15339 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 gcc_cv_as_alpha_jsrdirect_relocs=no
15343 if test $in_tree_gas = yes; then
15344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15345 then gcc_cv_as_alpha_jsrdirect_relocs=yes
15347 elif test x$gcc_cv_as != x; then
15348 echo ' .set nomacro
15350 ldq $27, a($29) !literal!1
15351 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
15352 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }
15359 gcc_cv_as_alpha_jsrdirect_relocs=yes
15361 echo "configure: failed program was" >&5
15364 rm -f conftest.o conftest.s
15367 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15368 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
15369 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15371 cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_AS_JSRDIRECT_RELOCS 1
15379 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15380 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
15381 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 gcc_cv_as_cris_no_mul_bug=no
15385 if test $in_tree_gas = yes; then
15386 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15387 then gcc_cv_as_cris_no_mul_bug=yes
15389 elif test x$gcc_cv_as != x; then
15390 echo '.text' > conftest.s
15391 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }
15398 gcc_cv_as_cris_no_mul_bug=yes
15400 echo "configure: failed program was" >&5
15403 rm -f conftest.o conftest.s
15406 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15407 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
15408 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15418 echo "$as_me:$LINENO: checking assembler for .register" >&5
15419 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
15420 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 gcc_cv_as_sparc_register_op=no
15424 if test x$gcc_cv_as != x; then
15425 echo '.register %g2, #scratch' > conftest.s
15426 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }
15433 gcc_cv_as_sparc_register_op=yes
15435 echo "configure: failed program was" >&5
15438 rm -f conftest.o conftest.s
15441 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15442 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15443 if test $gcc_cv_as_sparc_register_op = yes; then
15445 cat >>confdefs.h <<\_ACEOF
15446 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15451 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15452 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15453 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 gcc_cv_as_sparc_relax=no
15457 if test x$gcc_cv_as != x; then
15458 echo '.text' > conftest.s
15459 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }
15466 gcc_cv_as_sparc_relax=yes
15468 echo "configure: failed program was" >&5
15471 rm -f conftest.o conftest.s
15474 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15475 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15476 if test $gcc_cv_as_sparc_relax = yes; then
15478 cat >>confdefs.h <<\_ACEOF
15479 #define HAVE_AS_RELAX_OPTION 1
15484 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15485 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15486 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 gcc_cv_as_sparc_ua_pcrel=no
15490 if test x$gcc_cv_as != x; then
15497 .uaword %r_disp32(foo)' > conftest.s
15498 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }
15505 if test x$gcc_cv_ld != x \
15506 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15507 gcc_cv_as_sparc_ua_pcrel=yes
15511 echo "configure: failed program was" >&5
15514 rm -f conftest.o conftest.s
15517 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15518 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15519 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15521 cat >>confdefs.h <<\_ACEOF
15522 #define HAVE_AS_SPARC_UA_PCREL 1
15526 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15527 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15528 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 gcc_cv_as_sparc_ua_pcrel_hidden=no
15532 if test x$gcc_cv_as != x; then
15536 .uaword %r_disp32(foo)
15537 .byte 0x32, 0x33, 0x34
15541 .skip 4' > conftest.s
15542 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }
15549 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15550 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15551 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15552 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15553 if $gcc_cv_objdump -R conftest 2> /dev/null \
15554 | grep 'DISP32' > /dev/null 2>&1; then
15557 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15562 echo "configure: failed program was" >&5
15565 rm -f conftest.o conftest.s
15568 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15569 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15570 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15572 cat >>confdefs.h <<\_ACEOF
15573 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15578 fi # unaligned pcrel relocs
15580 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15581 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15582 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 gcc_cv_as_sparc_offsetable_lo10=no
15586 if test x$gcc_cv_as != x; then
15588 or %g1, %lo(ab) + 12, %g1
15589 or %g1, %lo(ab + 12), %g1' > conftest.s
15590 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }
15597 if test x$gcc_cv_objdump != x \
15598 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15599 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15600 gcc_cv_as_sparc_offsetable_lo10=yes
15603 echo "configure: failed program was" >&5
15606 rm -f conftest.o conftest.s
15609 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15610 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15611 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15613 cat >>confdefs.h <<\_ACEOF
15614 #define HAVE_AS_OFFSETABLE_LO10 1
15620 i[34567]86-*-* | x86_64-*-*)
15622 cygwin* | pe | mingw32*)
15623 # Used for DWARF 2 in PE
15624 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15625 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15626 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 gcc_cv_as_ix86_pe_secrel32=no
15630 if test $in_tree_gas = yes; then
15631 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15632 then gcc_cv_as_ix86_pe_secrel32=yes
15634 elif test x$gcc_cv_as != x; then
15638 .secrel32 foo' > conftest.s
15639 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }
15646 if test x$gcc_cv_ld != x \
15647 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15648 gcc_cv_as_ix86_pe_secrel32=yes
15652 echo "configure: failed program was" >&5
15655 rm -f conftest.o conftest.s
15658 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15659 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15660 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15662 cat >>confdefs.h <<\_ACEOF
15663 #define HAVE_GAS_PE_SECREL32_RELOC 1
15670 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15671 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15672 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 gcc_cv_as_ix86_filds_fists=no
15676 if test $in_tree_gas = yes; then
15677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15678 then gcc_cv_as_ix86_filds_fists=yes
15680 elif test x$gcc_cv_as != x; then
15681 echo 'filds mem; fists mem' > conftest.s
15682 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }
15689 gcc_cv_as_ix86_filds_fists=yes
15691 echo "configure: failed program was" >&5
15694 rm -f conftest.o conftest.s
15697 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15698 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15699 if test $gcc_cv_as_ix86_filds_fists = yes; then
15701 cat >>confdefs.h <<\_ACEOF
15702 #define HAVE_GAS_FILDS_FISTS 1
15707 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15708 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15709 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 gcc_cv_as_ix86_cmov_sun_syntax=no
15713 if test x$gcc_cv_as != x; then
15714 echo 'cmovl.l %edx, %eax' > conftest.s
15715 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }
15722 gcc_cv_as_ix86_cmov_sun_syntax=yes
15724 echo "configure: failed program was" >&5
15727 rm -f conftest.o conftest.s
15730 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15731 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15732 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15734 cat >>confdefs.h <<\_ACEOF
15735 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15740 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15741 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15742 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 gcc_cv_as_ix86_ffreep=no
15746 if test x$gcc_cv_as != x; then
15747 echo 'ffreep %st(1)' > conftest.s
15748 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }
15755 gcc_cv_as_ix86_ffreep=yes
15757 echo "configure: failed program was" >&5
15760 rm -f conftest.o conftest.s
15763 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15764 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15765 if test $gcc_cv_as_ix86_ffreep = yes; then
15767 cat >>confdefs.h <<\_ACEOF
15768 #define HAVE_AS_IX86_FFREEP 1
15773 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15774 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15775 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 gcc_cv_as_ix86_sahf=no
15779 if test x$gcc_cv_as != x; then
15780 echo 'sahf' > conftest.s
15781 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }
15788 gcc_cv_as_ix86_sahf=yes
15790 echo "configure: failed program was" >&5
15793 rm -f conftest.o conftest.s
15796 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15797 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15798 if test $gcc_cv_as_ix86_sahf = yes; then
15800 cat >>confdefs.h <<\_ACEOF
15801 #define HAVE_AS_IX86_SAHF 1
15806 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15807 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15808 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 gcc_cv_as_ix86_diff_sect_delta=no
15812 if test x$gcc_cv_as != x; then
15813 echo '.section .rodata
15819 .L2: nop' > conftest.s
15820 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; }
15827 gcc_cv_as_ix86_diff_sect_delta=yes
15829 echo "configure: failed program was" >&5
15832 rm -f conftest.o conftest.s
15835 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15836 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15837 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15839 cat >>confdefs.h <<\_ACEOF
15840 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15845 # This one is used unconditionally by i386.[ch]; it is to be defined
15846 # to 1 if the feature is present, 0 otherwise.
15847 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15848 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15849 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 gcc_cv_as_ix86_gotoff_in_data=no
15853 if test $in_tree_gas = yes; then
15854 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15855 then gcc_cv_as_ix86_gotoff_in_data=yes
15857 elif test x$gcc_cv_as != x; then
15862 .long .L0@GOTOFF' > conftest.s
15863 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }
15870 gcc_cv_as_ix86_gotoff_in_data=yes
15872 echo "configure: failed program was" >&5
15875 rm -f conftest.o conftest.s
15878 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15879 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15882 cat >>confdefs.h <<_ACEOF
15883 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15889 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15890 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15891 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15895 if test $in_tree_gas = yes; then
15896 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15897 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15899 elif test x$gcc_cv_as != x; then
15901 addl r15 = @ltoffx(x#), gp
15903 ld8.mov r16 = [r15], x#' > conftest.s
15904 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }
15911 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15913 echo "configure: failed program was" >&5
15916 rm -f conftest.o conftest.s
15919 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15920 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15921 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15923 cat >>confdefs.h <<\_ACEOF
15924 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15933 *-*-aix*) conftest_s=' .machine "pwr5"
15937 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15938 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15939 if test "${gcc_cv_as_machine_directive+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15942 gcc_cv_as_machine_directive=no
15943 if test x$gcc_cv_as != x; then
15944 echo ' .machine ppc7400' > conftest.s
15945 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }
15952 gcc_cv_as_machine_directive=yes
15954 echo "configure: failed program was" >&5
15957 rm -f conftest.o conftest.s
15960 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15961 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15963 if test x$gcc_cv_as_machine_directive != xyes; then
15964 echo "*** This target requires an assembler supporting \".machine\"" >&2
15965 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15966 test x$build = x$target && exit 1
15970 *) conftest_s=' .machine power4
15975 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15976 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15977 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15980 gcc_cv_as_powerpc_mfcrf=no
15981 if test $in_tree_gas = yes; then
15982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15983 then gcc_cv_as_powerpc_mfcrf=yes
15985 elif test x$gcc_cv_as != x; then
15986 echo "$conftest_s" > 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_powerpc_mfcrf=yes
15996 echo "configure: failed program was" >&5
15999 rm -f conftest.o conftest.s
16002 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
16003 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
16004 if test $gcc_cv_as_powerpc_mfcrf = yes; then
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_AS_MFCRF 1
16013 *-*-aix*) conftest_s=' .machine "pwr5"
16016 *) conftest_s=' .machine power5
16021 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
16022 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
16023 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16026 gcc_cv_as_powerpc_popcntb=no
16027 if test $in_tree_gas = yes; then
16028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16029 then gcc_cv_as_powerpc_popcntb=yes
16031 elif test x$gcc_cv_as != x; then
16032 echo "$conftest_s" > conftest.s
16033 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }
16040 gcc_cv_as_powerpc_popcntb=yes
16042 echo "configure: failed program was" >&5
16045 rm -f conftest.o conftest.s
16048 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
16049 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
16050 if test $gcc_cv_as_powerpc_popcntb = yes; then
16052 cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_AS_POPCNTB 1
16059 *-*-aix*) conftest_s=' .machine "pwr5x"
16062 *) conftest_s=' .machine power5
16067 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16068 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
16069 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16072 gcc_cv_as_powerpc_fprnd=no
16073 if test $in_tree_gas = yes; then
16074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16075 then gcc_cv_as_powerpc_fprnd=yes
16077 elif test x$gcc_cv_as != x; then
16078 echo "$conftest_s" > conftest.s
16079 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; }
16086 gcc_cv_as_powerpc_fprnd=yes
16088 echo "configure: failed program was" >&5
16091 rm -f conftest.o conftest.s
16094 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16095 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
16096 if test $gcc_cv_as_powerpc_fprnd = yes; then
16098 cat >>confdefs.h <<\_ACEOF
16099 #define HAVE_AS_FPRND 1
16105 *-*-aix*) conftest_s=' .machine "pwr6"
16108 *) conftest_s=' .machine power6
16113 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
16114 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
16115 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 gcc_cv_as_powerpc_mfpgpr=no
16119 if test $in_tree_gas = yes; then
16120 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16121 then gcc_cv_as_powerpc_mfpgpr=yes
16123 elif test x$gcc_cv_as != x; then
16124 echo "$conftest_s" > conftest.s
16125 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }
16132 gcc_cv_as_powerpc_mfpgpr=yes
16134 echo "configure: failed program was" >&5
16137 rm -f conftest.o conftest.s
16140 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
16141 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
16142 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
16144 cat >>confdefs.h <<\_ACEOF
16145 #define HAVE_AS_MFPGPR 1
16151 *-*-aix*) conftest_s=' .csect .text[PR]
16153 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16157 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16158 *) conftest_s=' .text
16160 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16163 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16164 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
16165 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 gcc_cv_as_powerpc_rel16=no
16169 if test $in_tree_gas = yes; then
16170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16171 then gcc_cv_as_powerpc_rel16=yes
16173 elif test x$gcc_cv_as != x; then
16174 echo "$conftest_s" > conftest.s
16175 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }
16182 gcc_cv_as_powerpc_rel16=yes
16184 echo "configure: failed program was" >&5
16187 rm -f conftest.o conftest.s
16190 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16191 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
16192 if test $gcc_cv_as_powerpc_rel16 = yes; then
16194 cat >>confdefs.h <<\_ACEOF
16195 #define HAVE_AS_REL16 1
16201 *-*-aix*) conftest_s=' .machine "pwr6"
16204 *) conftest_s=' .machine power6
16209 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
16210 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
16211 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 gcc_cv_as_powerpc_cmpb=no
16215 if test $in_tree_gas = yes; then
16216 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16217 then gcc_cv_as_powerpc_cmpb=yes
16219 elif test x$gcc_cv_as != x; then
16220 echo "$conftest_s" > conftest.s
16221 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }
16228 gcc_cv_as_powerpc_cmpb=yes
16230 echo "configure: failed program was" >&5
16233 rm -f conftest.o conftest.s
16236 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
16237 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
16238 if test $gcc_cv_as_powerpc_cmpb = yes; then
16240 cat >>confdefs.h <<\_ACEOF
16241 #define HAVE_AS_CMPB 1
16247 *-*-aix*) conftest_s=' .machine "pwr6"
16250 *) conftest_s=' .machine power6
16255 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
16256 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
16257 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 gcc_cv_as_powerpc_dfp=no
16261 if test $in_tree_gas = yes; then
16262 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16263 then gcc_cv_as_powerpc_dfp=yes
16265 elif test x$gcc_cv_as != x; then
16266 echo "$conftest_s" > conftest.s
16267 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; }
16274 gcc_cv_as_powerpc_dfp=yes
16276 echo "configure: failed program was" >&5
16279 rm -f conftest.o conftest.s
16282 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
16283 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
16284 if test $gcc_cv_as_powerpc_dfp = yes; then
16286 cat >>confdefs.h <<\_ACEOF
16287 #define HAVE_AS_DFP 1
16292 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16293 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
16294 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
16295 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 gcc_cv_as_powerpc_gnu_attribute=no
16298 if test $in_tree_gas = yes; then
16299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16300 then gcc_cv_as_powerpc_gnu_attribute=yes
16302 elif test x$gcc_cv_as != x; then
16303 echo '.gnu_attribute 4,1' > conftest.s
16304 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; }
16311 gcc_cv_as_powerpc_gnu_attribute=yes
16313 echo "configure: failed program was" >&5
16316 rm -f conftest.o conftest.s
16319 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
16320 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
16321 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
16323 cat >>confdefs.h <<\_ACEOF
16324 #define HAVE_AS_GNU_ATTRIBUTE 1
16331 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16332 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
16333 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 gcc_cv_as_mips_explicit_relocs=no
16337 if test $in_tree_gas = yes; then
16338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16339 then gcc_cv_as_mips_explicit_relocs=yes
16341 elif test x$gcc_cv_as != x; then
16342 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
16343 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }
16350 gcc_cv_as_mips_explicit_relocs=yes
16352 echo "configure: failed program was" >&5
16355 rm -f conftest.o conftest.s
16358 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16359 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
16360 if test $gcc_cv_as_mips_explicit_relocs = yes; then
16361 if test x$target_cpu_default = x
16362 then target_cpu_default=MASK_EXPLICIT_RELOCS
16363 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16366 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
16367 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
16368 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 gcc_cv_as_mips_no_shared=no
16372 if test $in_tree_gas = yes; then
16373 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16374 then gcc_cv_as_mips_no_shared=yes
16376 elif test x$gcc_cv_as != x; then
16377 echo 'nop' > conftest.s
16378 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; }
16385 gcc_cv_as_mips_no_shared=yes
16387 echo "configure: failed program was" >&5
16390 rm -f conftest.o conftest.s
16393 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
16394 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
16395 if test $gcc_cv_as_mips_no_shared = yes; then
16397 cat >>confdefs.h <<\_ACEOF
16398 #define HAVE_AS_NO_SHARED 1
16403 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16404 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
16405 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16408 gcc_cv_as_mips_gnu_attribute=no
16409 if test $in_tree_gas = yes; then
16410 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16411 then gcc_cv_as_mips_gnu_attribute=yes
16413 elif test x$gcc_cv_as != x; then
16414 echo '.gnu_attribute 4,1' > conftest.s
16415 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }
16422 gcc_cv_as_mips_gnu_attribute=yes
16424 echo "configure: failed program was" >&5
16427 rm -f conftest.o conftest.s
16430 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
16431 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
16432 if test $gcc_cv_as_mips_gnu_attribute = yes; then
16434 cat >>confdefs.h <<\_ACEOF
16435 #define HAVE_AS_GNU_ATTRIBUTE 1
16440 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16441 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
16442 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 gcc_cv_as_mips_dtprelword=no
16446 if test $in_tree_gas = yes; then
16447 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16448 then gcc_cv_as_mips_dtprelword=yes
16450 elif test x$gcc_cv_as != x; then
16451 echo '.section .tdata,"awT",@progbits
16455 .dtprelword x+0x8000' > conftest.s
16456 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }
16463 gcc_cv_as_mips_dtprelword=yes
16465 echo "configure: failed program was" >&5
16468 rm -f conftest.o conftest.s
16471 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16472 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
16473 if test $gcc_cv_as_mips_dtprelword = yes; then
16475 cat >>confdefs.h <<\_ACEOF
16476 #define HAVE_AS_DTPRELWORD 1
16483 # Mips and HP-UX need the GNU assembler.
16484 # Linux on IA64 might be able to use the Intel assembler.
16487 mips*-*-* | *-*-hpux* )
16488 if test x$gas_flag = xyes \
16489 || test x"$host" != x"$build" \
16490 || test ! -x "$gcc_cv_as" \
16491 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16494 echo "*** This configuration requires the GNU assembler" >&2
16500 # ??? Not all targets support dwarf2 debug_line, even within a version
16501 # of gas. Moreover, we need to emit a valid instruction to trigger any
16502 # info to the output file. So, as supported targets are added to gas 2.11,
16503 # add some instruction here to (also) show we expect this might work.
16504 # ??? Once 2.11 is released, probably need to add first known working
16505 # version to the per-target configury.
16507 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16508 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16509 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16512 ia64*-*-* | s390*-*-*)
16519 if test x"$insn" != x; then
16521 .file 1 \"conftest.s\"
16524 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16525 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16526 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 gcc_cv_as_dwarf2_debug_line=no
16530 if test $in_tree_gas = yes; then
16531 if test $in_tree_gas_is_elf = yes \
16532 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16533 then gcc_cv_as_dwarf2_debug_line=yes
16535 elif test x$gcc_cv_as != x; then
16536 echo "$conftest_s" > conftest.s
16537 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }
16544 if test x$gcc_cv_objdump != x \
16545 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16546 | grep debug_line > /dev/null 2>&1; then
16547 gcc_cv_as_dwarf2_debug_line=yes
16550 echo "configure: failed program was" >&5
16553 rm -f conftest.o conftest.s
16556 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16557 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16560 # The .debug_line file table must be in the exact order that
16561 # we specified the files, since these indices are also used
16562 # by DW_AT_decl_file. Approximate this test by testing if
16563 # the assembler bitches if the same index is assigned twice.
16564 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16565 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16566 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 gcc_cv_as_dwarf2_file_buggy=no
16570 if test x$gcc_cv_as != x; then
16571 echo ' .file 1 "foo.s"
16572 .file 1 "bar.s"' > conftest.s
16573 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }
16580 gcc_cv_as_dwarf2_file_buggy=yes
16582 echo "configure: failed program was" >&5
16585 rm -f conftest.o conftest.s
16588 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16589 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16592 if test $gcc_cv_as_dwarf2_debug_line = yes \
16593 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16595 cat >>confdefs.h <<\_ACEOF
16596 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16601 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16602 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16603 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 gcc_cv_as_gdwarf2_flag=no
16607 if test $in_tree_gas = yes; then
16608 if test $in_tree_gas_is_elf = yes \
16609 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16610 then gcc_cv_as_gdwarf2_flag=yes
16612 elif test x$gcc_cv_as != x; then
16613 echo "$insn" > conftest.s
16614 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }
16621 gcc_cv_as_gdwarf2_flag=yes
16623 echo "configure: failed program was" >&5
16626 rm -f conftest.o conftest.s
16629 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16630 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16631 if test $gcc_cv_as_gdwarf2_flag = yes; then
16633 cat >>confdefs.h <<\_ACEOF
16634 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16639 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16640 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16641 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 gcc_cv_as_gstabs_flag=no
16645 if test $in_tree_gas = yes; then
16646 if test $in_tree_gas_is_elf = yes \
16647 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16648 then gcc_cv_as_gstabs_flag=yes
16650 elif test x$gcc_cv_as != x; then
16651 echo "$insn" > conftest.s
16652 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }
16659 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16660 # and warns about it, but still exits successfully. So check for
16662 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }
16669 else gcc_cv_as_gstabs_flag=yes
16672 echo "configure: failed program was" >&5
16675 rm -f conftest.o conftest.s
16678 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16679 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16680 if test $gcc_cv_as_gstabs_flag = yes; then
16682 cat >>confdefs.h <<\_ACEOF
16683 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16688 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16689 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
16690 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 gcc_cv_as_debug_prefix_map_flag=no
16694 if test $in_tree_gas = yes; then
16695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16696 then gcc_cv_as_debug_prefix_map_flag=yes
16698 elif test x$gcc_cv_as != x; then
16699 echo "$insn" > conftest.s
16700 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; }
16707 gcc_cv_as_debug_prefix_map_flag=yes
16709 echo "configure: failed program was" >&5
16712 rm -f conftest.o conftest.s
16715 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16716 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
16717 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16719 cat >>confdefs.h <<\_ACEOF
16720 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16726 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16727 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16728 if test "${gcc_cv_as_line_zero+set}" = set; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 gcc_cv_as_line_zero=no
16732 if test $in_tree_gas = yes; then
16733 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16734 then gcc_cv_as_line_zero=yes
16736 elif test "x$gcc_cv_as" != x; then
16737 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16738 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 test "x`cat conftest.out`" = x
16746 gcc_cv_as_line_zero=yes
16748 echo "configure: failed program was" >&5
16750 echo "configure: error output was" >&5
16751 cat conftest.out >&5
16753 rm -f conftest.o conftest.s conftest.out
16756 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16757 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16758 if test "x$gcc_cv_as_line_zero" = xyes; then
16760 cat >>confdefs.h <<\_ACEOF
16761 #define HAVE_AS_LINE_ZERO 1
16766 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16767 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16768 gcc_cv_ld_ro_rw_mix=unknown
16769 if test $in_tree_ld = yes ; then
16770 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 \
16771 && test $in_tree_ld_is_elf = yes; then
16772 gcc_cv_ld_ro_rw_mix=read-write
16774 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16775 echo '.section myfoosect, "a"' > conftest1.s
16776 echo '.section myfoosect, "aw"' > conftest2.s
16777 echo '.byte 1' >> conftest2.s
16778 echo '.section myfoosect, "a"' > conftest3.s
16779 echo '.byte 0' >> conftest3.s
16780 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16781 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16782 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16783 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16784 conftest2.o conftest3.o > /dev/null 2>&1; then
16785 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16786 | sed -e '/myfoosect/!d' -e N`
16787 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16788 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16789 gcc_cv_ld_ro_rw_mix=read-only
16791 gcc_cv_ld_ro_rw_mix=read-write
16795 rm -f conftest.* conftest[123].*
16797 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16799 cat >>confdefs.h <<\_ACEOF
16800 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16804 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16805 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16807 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16808 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16809 gcc_cv_ld_eh_frame_hdr=no
16810 if test $in_tree_ld = yes ; then
16811 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 \
16812 && test $in_tree_ld_is_elf = yes; then
16813 gcc_cv_ld_eh_frame_hdr=yes
16815 elif test x$gcc_cv_ld != x; then
16816 # Check if linker supports --eh-frame-hdr option
16817 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16818 gcc_cv_ld_eh_frame_hdr=yes
16822 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16824 cat >>confdefs.h <<\_ACEOF
16825 #define HAVE_LD_EH_FRAME_HDR 1
16829 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16830 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16832 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16833 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16835 if test $in_tree_ld = yes ; then
16836 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 \
16837 && test $in_tree_ld_is_elf = yes; then
16840 elif test x$gcc_cv_ld != x; then
16841 # Check if linker supports -pie option
16842 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16846 if test x"$gcc_cv_ld_pie" = xyes; then
16848 cat >>confdefs.h <<\_ACEOF
16849 #define HAVE_LD_PIE 1
16853 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16854 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16856 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16857 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16858 gcc_cv_ld_eh_gc_sections=no
16859 if test $in_tree_ld = yes ; then
16860 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 \
16861 && test $in_tree_ld_is_elf = yes; then
16862 gcc_cv_ld_eh_gc_sections=yes
16864 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16865 cat > conftest.s <<EOF
16868 .type _start, @function
16871 .size _start, .-_start
16872 .section .text.foo,"ax",@progbits
16873 .type foo, @function
16877 .section .gcc_except_table.foo,"a",@progbits
16880 .section .eh_frame,"a",@progbits
16883 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16884 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16885 | grep "gc-sections option ignored" > /dev/null; then
16886 gcc_cv_ld_eh_gc_sections=no
16887 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16888 gcc_cv_ld_eh_gc_sections=yes
16889 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16890 if test x$gcc_cv_as_comdat_group != xyes; then
16891 gcc_cv_ld_eh_gc_sections=no
16892 cat > conftest.s <<EOF
16895 .type _start, @function
16898 .size _start, .-_start
16899 .section .gnu.linkonce.t.foo,"ax",@progbits
16900 .type foo, @function
16904 .section .gcc_except_table.foo,"a",@progbits
16907 .section .eh_frame,"a",@progbits
16910 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16911 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16912 | grep "gc-sections option ignored" > /dev/null; then
16913 gcc_cv_ld_eh_gc_sections=no
16914 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16915 gcc_cv_ld_eh_gc_sections=yes
16921 rm -f conftest.s conftest.o conftest
16925 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16926 gcc_cv_ld_eh_gc_sections=no
16929 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16931 cat >>confdefs.h <<\_ACEOF
16932 #define HAVE_LD_EH_GC_SECTIONS 1
16936 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16937 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16943 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16944 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16945 if test "${gcc_cv_ld_as_needed+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 gcc_cv_ld_as_needed=no
16949 if test $in_tree_ld = yes ; then
16950 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 \
16951 && test $in_tree_ld_is_elf = yes; then
16952 gcc_cv_ld_as_needed=yes
16954 elif test x$gcc_cv_ld != x; then
16955 # Check if linker supports --as-needed and --no-as-needed options
16956 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16957 gcc_cv_ld_as_needed=yes
16962 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16963 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16964 if test x"$gcc_cv_ld_as_needed" = xyes; then
16966 cat >>confdefs.h <<\_ACEOF
16967 #define HAVE_LD_AS_NEEDED 1
16972 case "$target:$tm_file" in
16973 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16974 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16975 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16976 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16979 gcc_cv_ld_no_dot_syms=no
16980 if test $in_tree_ld = yes ; then
16981 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
16982 gcc_cv_ld_no_dot_syms=yes
16984 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16985 cat > conftest1.s <<EOF
16989 cat > conftest2.s <<EOF
16990 .section ".opd","aw"
16993 .type foo,@function
16995 .quad .LEfoo,.TOC.@tocbase,0
17001 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
17002 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
17003 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
17004 gcc_cv_ld_no_dot_syms=yes
17006 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
17010 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
17011 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
17012 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
17014 cat >>confdefs.h <<\_ACEOF
17015 #define HAVE_LD_NO_DOT_SYMS 1
17022 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
17023 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
17024 if test "${gcc_cv_ld_sysroot+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 gcc_cv_ld_sysroot=no
17028 if test $in_tree_ld = yes ; then
17029 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
17030 gcc_cv_ld_sysroot=yes
17032 elif test x$gcc_cv_ld != x; then
17033 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
17034 gcc_cv_ld_sysroot=yes
17038 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
17039 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
17040 if test x"$gcc_cv_ld_sysroot" = xyes; then
17042 cat >>confdefs.h <<\_ACEOF
17043 #define HAVE_LD_SYSROOT 1
17048 if test x$with_sysroot = x && test x$host = x$target \
17049 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
17050 && test "$prefix" != "NONE"; then
17052 cat >>confdefs.h <<_ACEOF
17053 #define PREFIX_INCLUDE_DIR "$prefix/include"
17058 # Test for stack protector support in target C library.
17059 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
17060 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
17061 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 gcc_cv_libc_provides_ssp=no
17067 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17068 if test "x$with_sysroot" = x; then
17069 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17070 elif test "x$with_build_sysroot" != "x"; then
17071 glibc_header_dir="${with_build_sysroot}/usr/include"
17072 elif test "x$with_sysroot" = xyes; then
17073 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17075 glibc_header_dir="${with_sysroot}/usr/include"
17078 glibc_header_dir=/usr/include
17080 # glibc 2.4 and later provides __stack_chk_fail and
17081 # either __stack_chk_guard, or TLS access to stack guard canary.
17082 if test -f $glibc_header_dir/features.h \
17083 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
17084 $glibc_header_dir/features.h > /dev/null; then
17085 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
17086 $glibc_header_dir/features.h > /dev/null; then
17087 gcc_cv_libc_provides_ssp=yes
17088 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
17089 $glibc_header_dir/features.h > /dev/null \
17090 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
17091 $glibc_header_dir/features.h > /dev/null; then
17092 gcc_cv_libc_provides_ssp=yes
17093 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
17094 $glibc_header_dir/features.h > /dev/null && \
17095 test -f $glibc_header_dir/bits/uClibc_config.h && \
17096 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
17097 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
17098 gcc_cv_libc_provides_ssp=yes
17103 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
17104 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
17105 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 cat >conftest.$ac_ext <<_ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
17115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17116 #define __stack_chk_fail innocuous___stack_chk_fail
17118 /* System header to define __stub macros and hopefully few prototypes,
17119 which can conflict with char __stack_chk_fail (); below.
17120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17121 <limits.h> exists even on freestanding compilers. */
17124 # include <limits.h>
17126 # include <assert.h>
17129 #undef __stack_chk_fail
17131 /* Override any gcc2 internal prototype to avoid an error. */
17136 /* We use char because int might match the return type of a gcc2
17137 builtin and then its argument prototype would still apply. */
17138 char __stack_chk_fail ();
17139 /* The GNU C library defines this for functions which it implements
17140 to always fail with ENOSYS. Some functions are actually named
17141 something starting with __ and the normal name is an alias. */
17142 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
17145 char (*f) () = __stack_chk_fail;
17154 return f != __stack_chk_fail;
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17161 (eval $ac_link) 2>conftest.er1
17163 grep -v '^ *+' conftest.er1 >conftest.err
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
17168 { ac_try='test -z "$ac_c_werror_flag"
17169 || test ! -s conftest.err'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest$ac_exeext'
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
17181 ac_cv_func___stack_chk_fail=yes
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17186 ac_cv_func___stack_chk_fail=no
17188 rm -f conftest.err conftest.$ac_objext \
17189 conftest$ac_exeext conftest.$ac_ext
17191 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
17192 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
17193 if test $ac_cv_func___stack_chk_fail = yes; then
17194 gcc_cv_libc_provides_ssp=yes
17196 echo "no __stack_chk_fail on this target"
17200 *) gcc_cv_libc_provides_ssp=no ;;
17203 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
17204 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
17206 if test x$gcc_cv_libc_provides_ssp = xyes; then
17208 cat >>confdefs.h <<\_ACEOF
17209 #define TARGET_LIBC_PROVIDES_SSP 1
17214 # Check if TFmode long double should be used by default or not.
17215 # Some glibc targets used DFmode long double, but with glibc 2.4
17216 # and later they can use TFmode.
17218 powerpc*-*-linux* | \
17219 powerpc*-*-gnu* | \
17220 sparc*-*-linux* | \
17224 # Check whether --with-long-double-128 or --without-long-double-128 was given.
17225 if test "${with_long_double_128+set}" = set; then
17226 withval="$with_long_double_128"
17227 gcc_cv_target_ldbl128="$with_long_double_128"
17229 gcc_cv_target_ldbl128=no
17230 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17231 if test "x$with_sysroot" = x; then
17232 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17233 elif test "x$with_build_sysroot" != "x"; then
17234 glibc_header_dir="${with_build_sysroot}/usr/include"
17235 elif test "x$with_sysroot" = xyes; then
17236 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17238 glibc_header_dir="${with_sysroot}/usr/include"
17241 glibc_header_dir=/usr/include
17243 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
17244 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
17245 && gcc_cv_target_ldbl128=yes
17250 if test x$gcc_cv_target_ldbl128 = xyes; then
17252 cat >>confdefs.h <<\_ACEOF
17253 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
17258 # Find out what GC implementation we want, or may, use.
17260 # Check whether --with-gc or --without-gc was given.
17261 if test "${with_gc+set}" = set; then
17270 cat >>confdefs.h <<\_ACEOF
17276 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
17277 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
17278 { (exit 1); exit 1; }; }
17285 echo "Using $GGC for garbage collection."
17287 # Use the system's zlib library.
17289 zlibinc="-I\$(srcdir)/../zlib"
17291 # Check whether --with-system-zlib or --without-system-zlib was given.
17292 if test "${with_system_zlib+set}" = set; then
17293 withval="$with_system_zlib"
17302 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
17303 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
17304 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
17305 if test "${enable_maintainer_mode+set}" = set; then
17306 enableval="$enable_maintainer_mode"
17307 maintainer_mode=$enableval
17312 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
17313 echo "${ECHO_T}$maintainer_mode" >&6
17315 if test "$maintainer_mode" = "yes"; then
17325 # Make empty files to contain the specs and options for each language.
17326 # Then add #include lines to for a compiler that has specs and/or options.
17332 # These (without "all_") are set in each config-lang.in.
17333 # `language' must be a single word so is spelled singularly.
17336 all_outputs='Makefile gccbug libada-mk'
17337 # List of language makefile fragments.
17338 all_lang_makefrags=
17339 # List of language subdirectory makefiles. Deprecated.
17340 all_lang_makefiles=
17341 # Additional files for gengtype
17342 all_gtfiles="$target_gtfiles"
17344 # These are the languages that are set in --enable-languages,
17345 # and are available in the GCC tree.
17346 all_selected_languages=
17348 # Add the language fragments.
17349 # Languages are added via two mechanisms. Some information must be
17350 # recorded in makefile variables, these are defined in config-lang.in.
17351 # We accumulate them and plug them into the main Makefile.
17352 # The other mechanism is a set of hooks for each of the main targets
17353 # like `clean', `install', etc.
17355 language_hooks="Make-hooks"
17357 for lang in ${srcdir}/*/config-lang.in
17359 test "$lang" = "${srcdir}/*/config-lang.in" && continue
17361 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
17362 if test "x$lang_alias" = x
17364 echo "$lang doesn't set \$language." 1>&2
17367 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
17368 subdirs="$subdirs $subdir"
17369 case ",$enable_languages," in
17371 all_selected_languages="$all_selected_languages $lang_alias"
17372 if test -f $srcdir/$subdir/lang-specs.h; then
17373 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17384 . ${srcdir}/$subdir/config-lang.in
17385 if test "x$language" = x
17387 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
17392 case ",$enable_languages," in
17393 *,$lang_alias,*) ;;
17395 for i in $subdir_requires; do
17396 test -f "${srcdir}/$i/config-lang.in" && continue
17404 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
17405 if test -f $srcdir/$subdir/lang.opt; then
17406 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17408 if test -f $srcdir/$subdir/$subdir-tree.def; then
17409 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17411 if test -f ${srcdir}/$subdir/Makefile.in
17412 then all_lang_makefiles="$subdir/Makefile"
17414 all_languages="$all_languages $language"
17415 all_compilers="$all_compilers $compilers"
17416 all_outputs="$all_outputs $outputs"
17417 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
17420 # Pick up gtfiles for c
17422 . ${srcdir}/c-config-lang.in
17423 all_gtfiles="$all_gtfiles [c] $gtfiles"
17426 for language in $all_selected_languages
17428 check_languages="$check_languages check-$language"
17431 # We link each language in with a set of hooks, reached indirectly via
17432 # lang.${target}. Only do so for selected languages.
17436 target_list="all.cross start.encap rest.encap tags \
17437 install-common install-man install-info install-pdf dvi pdf \
17438 html uninstall info man srcextra srcman srcinfo \
17439 mostlyclean clean distclean maintainer-clean"
17441 for t in $target_list
17444 for lang in $all_selected_languages
17448 echo "lang.$t: $x" >> Make-hooks
17452 # Dependency checking.
17455 rm -rf .tst 2>/dev/null
17456 mkdir .tst 2>/dev/null
17457 if test -d .tst; then
17462 rmdir .tst 2>/dev/null
17464 DEPDIR="${am__leading_dot}deps"
17466 ac_config_commands="$ac_config_commands depdir"
17469 ac_config_commands="$ac_config_commands gccdepdir"
17472 depcc="$CC" am_compiler_list=
17474 am_depcomp=$ac_aux_dir/depcomp
17475 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
17476 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
17477 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
17478 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 if test -f "$am_depcomp"; then
17481 # We make a subdir and do the tests there. Otherwise we can end up
17482 # making bogus files that we don't know about and never remove. For
17483 # instance it was reported that on HP-UX the gcc test will end up
17484 # making a dummy file named `D' -- because `-MD' means `put the output
17487 # Copy depcomp to subdir because otherwise we won't find it if we're
17488 # using a relative directory.
17489 cp "$am_depcomp" conftest.dir
17491 # We will build objects and dependencies in a subdirectory because
17492 # it helps to detect inapplicable dependency modes. For instance
17493 # both Tru64's cc and ICC support -MD to output dependencies as a
17494 # side effect of compilation, but ICC will put the dependencies in
17495 # the current directory while Tru64 will put them in the object
17499 am_cv_CC_dependencies_compiler_type=none
17500 if test "$am_compiler_list" = ""; then
17501 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17503 for depmode in $am_compiler_list; do
17504 if test $depmode = none; then break; fi
17506 echo "$as_me:$LINENO: trying $depmode" >&5
17507 # Setup a source with many dependencies, because some compilers
17508 # like to wrap large dependency lists on column 80 (with \), and
17509 # we should not choose a depcomp mode which is confused by this.
17511 # We need to recreate these files for each test, as the compiler may
17512 # overwrite some of them when testing with obscure command lines.
17513 # This happens at least with the AIX C compiler.
17515 for i in 1 2 3 4 5 6; do
17516 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17517 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17518 # Solaris 8's {/usr,}/bin/sh.
17519 touch sub/conftst$i.h
17521 echo "include sub/conftest.Po" > confmf
17523 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17524 # mode. It turns out that the SunPro C++ compiler does not properly
17525 # handle `-M -o', and we need to detect this.
17526 depcmd="depmode=$depmode \
17527 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
17528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17529 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
17530 echo "| $depcmd" | sed -e 's/ */ /g' >&5
17531 if env $depcmd > conftest.err 2>&1 &&
17532 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
17533 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
17534 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
17535 # icc doesn't choke on unknown options, it will just issue warnings
17536 # or remarks (even with -Werror). So we grep stderr for any message
17537 # that says an option was ignored or not supported.
17538 # When given -MP, icc 7.0 and 7.1 complain thusly:
17539 # icc: Command line warning: ignoring option '-M'; no argument required
17540 # The diagnosis changed in icc 8.0:
17541 # icc: Command line remark: option '-MP' not supported
17542 if (grep 'ignoring option' conftest.err ||
17543 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17544 am_cv_CC_dependencies_compiler_type=$depmode
17545 echo "$as_me:$LINENO: success" >&5
17549 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
17550 sed -e 's/^/| /' < conftest.err >&5
17554 rm -rf conftest.dir
17556 am_cv_CC_dependencies_compiler_type=none
17560 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
17561 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
17562 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
17563 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
17564 echo "$as_me: error: no usable dependency style found" >&2;}
17565 { (exit 1); exit 1; }; }
17566 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17570 # Note that if build!=host then we extracted the value from the
17571 # temporary Makefile we created above, when we ran configure.
17572 if test "${build}" = "${host}" ; then
17573 BUILD_DEPMODE='$(CCDEPMODE)'
17584 echo "dir ." > .gdbinit
17585 echo "dir ${srcdir}" >> .gdbinit
17586 if test x$gdb_needs_out_file_path = xyes
17588 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17590 if test "x$subdirs" != x; then
17593 echo "dir ${srcdir}/$s" >> .gdbinit
17596 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17598 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17602 # Find a directory in which to install a shared libgcc.
17604 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17605 if test "${enable_version_specific_runtime_libs+set}" = set; then
17606 enableval="$enable_version_specific_runtime_libs"
17611 # Check whether --with-slibdir or --without-slibdir was given.
17612 if test "${with_slibdir+set}" = set; then
17613 withval="$with_slibdir"
17614 slibdir="$with_slibdir"
17616 if test "${enable_version_specific_runtime_libs+set}" = set; then
17617 slibdir='$(libsubdir)'
17618 elif test "$host" != "$target"; then
17619 slibdir='$(build_tooldir)/lib'
17621 slibdir='$(libdir)'
17626 objdir=`${PWDCMD-pwd}`
17630 # Check whether --with-datarootdir or --without-datarootdir was given.
17631 if test "${with_datarootdir+set}" = set; then
17632 withval="$with_datarootdir"
17633 datarootdir="\${prefix}/$with_datarootdir"
17635 datarootdir='$(prefix)/share'
17640 # Check whether --with-docdir or --without-docdir was given.
17641 if test "${with_docdir+set}" = set; then
17642 withval="$with_docdir"
17643 docdir="\${prefix}/$with_docdir"
17645 docdir='$(datarootdir)'
17650 # Check whether --with-htmldir or --without-htmldir was given.
17651 if test "${with_htmldir+set}" = set; then
17652 withval="$with_htmldir"
17653 htmldir="\${prefix}/$with_htmldir"
17655 htmldir='$(docdir)'
17659 # Substitute configuration variables
17717 if test x${build} = x${host} ; then
17718 if test x${host} = x${target} ; then
17719 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17721 echo "Links are now set up to build a cross-compiler" 1>&2
17722 echo " from ${host} to ${target}." 1>&2
17725 if test x${host} = x${target} ; then
17726 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17727 echo " for ${target}." 1>&2
17729 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17730 echo " from ${host} to ${target}." 1>&2
17737 # Configure the subdirectories
17738 # AC_CONFIG_SUBDIRS($subdirs)
17740 # Create the Makefile
17741 # and configure language subdirectories
17742 ac_config_files="$ac_config_files $all_outputs"
17745 ac_config_commands="$ac_config_commands default"
17747 cat >confcache <<\_ACEOF
17748 # This file is a shell script that caches the results of configure
17749 # tests run on this system so they can be shared between configure
17750 # scripts and configure runs, see configure's option --config-cache.
17751 # It is not useful on other systems. If it contains results you don't
17752 # want to keep, you may remove or edit it.
17754 # config.status only pays attention to the cache file if you give it
17755 # the --recheck option to rerun configure.
17757 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17758 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17759 # following values.
17763 # The following way of writing the cache mishandles newlines in values,
17764 # but we know of no workaround that is simple, portable, and efficient.
17765 # So, don't put newlines in cache variables' values.
17766 # Ultrix sh set writes to stderr and can't be redirected directly,
17767 # and sets the high bit in the cache file unless we assign to the vars.
17770 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17772 # `set' does not quote correctly, so add quotes (double-quote
17773 # substitution turns \\\\ into \\, and sed turns \\ into \).
17776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17779 # `set' quotes correctly as required by POSIX, so do not add quotes.
17781 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17790 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17792 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17793 if test -w $cache_file; then
17794 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17795 cat confcache >$cache_file
17797 echo "not updating unwritable cache $cache_file"
17802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17803 # Let make expand exec_prefix.
17804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17808 # trailing colons and then remove the whole line if VPATH becomes empty
17809 # (actually we leave an empty line to preserve line numbers).
17810 if test "x$srcdir" = x.; then
17811 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17812 s/:*\$(srcdir):*/:/;
17813 s/:*\${srcdir}:*/:/;
17815 s/^\([^=]*=[ ]*\):*/\1/;
17821 DEFS=-DHAVE_CONFIG_H
17825 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17826 # 1. Remove the extension, and $U if already installed.
17827 ac_i=`echo "$ac_i" |
17828 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17830 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17831 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17833 LIBOBJS=$ac_libobjs
17835 LTLIBOBJS=$ac_ltlibobjs
17839 : ${CONFIG_STATUS=./config.status}
17840 ac_clean_files_save=$ac_clean_files
17841 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17842 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17843 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17844 cat >$CONFIG_STATUS <<_ACEOF
17846 # Generated by $as_me.
17847 # Run this file to recreate the current configuration.
17848 # Compiler output produced by configure, useful for debugging
17849 # configure, is in config.log if it exists.
17852 ac_cs_recheck=false
17854 SHELL=\${CONFIG_SHELL-$SHELL}
17857 cat >>$CONFIG_STATUS <<\_ACEOF
17858 ## --------------------- ##
17859 ## M4sh Initialization. ##
17860 ## --------------------- ##
17862 # Be Bourne compatible
17863 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17866 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17867 # is contrary to our usage. Disable this feature.
17868 alias -g '${1+"$@"}'='"$@"'
17869 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17872 DUALCASE=1; export DUALCASE # for MKS sh
17874 # Support unset when possible.
17875 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17882 # Work around bugs in pre-3.0 UWIN ksh.
17883 $as_unset ENV MAIL MAILPATH
17890 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17891 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17892 LC_TELEPHONE LC_TIME
17894 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17895 eval $as_var=C; export $as_var
17901 # Required to use basename.
17902 if expr a : '\(a\)' >/dev/null 2>&1; then
17908 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17909 as_basename=basename
17915 # Name of the executable.
17916 as_me=`$as_basename "$0" ||
17917 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17918 X"$0" : 'X\(//\)$' \| \
17919 X"$0" : 'X\(/\)$' \| \
17920 . : '\(.\)' 2>/dev/null ||
17922 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17923 /^X\/\(\/\/\)$/{ s//\1/; q; }
17924 /^X\/\(\/\).*/{ s//\1/; q; }
17928 # PATH needs CR, and LINENO needs CR and PATH.
17929 # Avoid depending upon Character Ranges.
17930 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17931 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17932 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17933 as_cr_digits='0123456789'
17934 as_cr_alnum=$as_cr_Letters$as_cr_digits
17936 # The user is always right.
17937 if test "${PATH_SEPARATOR+set}" != set; then
17938 echo "#! /bin/sh" >conf$$.sh
17939 echo "exit 0" >>conf$$.sh
17941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17950 as_lineno_1=$LINENO
17951 as_lineno_2=$LINENO
17952 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17953 test "x$as_lineno_1" != "x$as_lineno_2" &&
17954 test "x$as_lineno_3" = "x$as_lineno_2" || {
17955 # Find who we are. Look in the path if we contain no path at all
17958 *[\\/]* ) as_myself=$0 ;;
17959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17960 for as_dir in $PATH
17963 test -z "$as_dir" && as_dir=.
17964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17969 # We did not find ourselves, most probably we were run as `sh COMMAND'
17970 # in which case we are not to be found in the path.
17971 if test "x$as_myself" = x; then
17974 if test ! -f "$as_myself"; then
17975 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17976 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17977 { (exit 1); exit 1; }; }
17979 case $CONFIG_SHELL in
17981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17982 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17985 test -z "$as_dir" && as_dir=.
17986 for as_base in sh bash ksh sh5; do
17989 if ("$as_dir/$as_base" -c '
17990 as_lineno_1=$LINENO
17991 as_lineno_2=$LINENO
17992 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17993 test "x$as_lineno_1" != "x$as_lineno_2" &&
17994 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17995 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17996 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17997 CONFIG_SHELL=$as_dir/$as_base
17998 export CONFIG_SHELL
17999 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18007 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18008 # uniformly replaced by the line number. The first 'sed' inserts a
18009 # line-number line before each line; the second 'sed' does the real
18010 # work. The second script uses 'N' to pair each line-number line
18011 # with the numbered line, and appends trailing '-' during
18012 # substitution so that $LINENO is not a special case at line end.
18013 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18014 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18015 sed '=' <$as_myself |
18020 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18023 s,^['$as_cr_digits']*\n,,
18024 ' >$as_me.lineno &&
18025 chmod +x $as_me.lineno ||
18026 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18027 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18028 { (exit 1); exit 1; }; }
18030 # Don't try to exec as it changes $[0], causing all sort of problems
18031 # (the dirname of $[0] is not the place where we might find the
18032 # original and so on. Autoconf is especially sensible to this).
18034 # Exit status is that of the last command.
18039 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18040 *c*,-n*) ECHO_N= ECHO_C='
18042 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18043 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18046 if expr a : '\(a\)' >/dev/null 2>&1; then
18052 rm -f conf$$ conf$$.exe conf$$.file
18054 if ln -s conf$$.file conf$$ 2>/dev/null; then
18055 # We could just check for DJGPP; but this test a) works b) is more generic
18056 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18057 if test -f conf$$.exe; then
18058 # Don't use ln at all; we don't have any links
18063 elif ln conf$$.file conf$$ 2>/dev/null; then
18068 rm -f conf$$ conf$$.exe conf$$.file
18070 if mkdir -p . 2>/dev/null; then
18073 test -d ./-p && rmdir ./-p
18077 as_executable_p="test -f"
18079 # Sed expression to map a string onto a valid CPP name.
18080 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18082 # Sed expression to map a string onto a valid variable name.
18083 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18087 # We need space, tab and new line, in precisely that order.
18097 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18098 # report actual input values of CONFIG_FILES etc. instead of their
18099 # values after options handling. Logging --version etc. is OK.
18103 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18104 ## Running $as_me. ##
18109 This file was extended by $as_me, which was
18110 generated by GNU Autoconf 2.59. Invocation command line was
18112 CONFIG_FILES = $CONFIG_FILES
18113 CONFIG_HEADERS = $CONFIG_HEADERS
18114 CONFIG_LINKS = $CONFIG_LINKS
18115 CONFIG_COMMANDS = $CONFIG_COMMANDS
18119 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18123 # Files that config.status was made for.
18124 if test -n "$ac_config_files"; then
18125 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18128 if test -n "$ac_config_headers"; then
18129 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18132 if test -n "$ac_config_links"; then
18133 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18136 if test -n "$ac_config_commands"; then
18137 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18140 cat >>$CONFIG_STATUS <<\_ACEOF
18143 \`$as_me' instantiates files from templates according to the
18144 current configuration.
18146 Usage: $0 [OPTIONS] [FILE]...
18148 -h, --help print this help, then exit
18149 -V, --version print version number, then exit
18150 -q, --quiet do not print progress messages
18151 -d, --debug don't remove temporary files
18152 --recheck update $as_me by reconfiguring in the same conditions
18153 --file=FILE[:TEMPLATE]
18154 instantiate the configuration file FILE
18155 --header=FILE[:TEMPLATE]
18156 instantiate the configuration header FILE
18158 Configuration files:
18161 Configuration headers:
18164 Configuration commands:
18167 Report bugs to <bug-autoconf@gnu.org>."
18170 cat >>$CONFIG_STATUS <<_ACEOF
18173 configured by $0, generated by GNU Autoconf 2.59,
18174 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18176 Copyright (C) 2003 Free Software Foundation, Inc.
18177 This config.status script is free software; the Free Software Foundation
18178 gives unlimited permission to copy, distribute and modify it."
18182 cat >>$CONFIG_STATUS <<\_ACEOF
18183 # If no file are specified by the user, then we need to provide default
18184 # value. By we need to know if files were specified by the user.
18190 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18191 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18199 *) # This is not an option, so the user has probably given explicit
18202 ac_need_defaults=false;;
18206 # Handling of the options.
18208 cat >>$CONFIG_STATUS <<\_ACEOF
18209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18211 --version | --vers* | -V )
18212 echo "$ac_cs_version"; exit 0 ;;
18214 # Conflict between --help and --header
18215 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18216 Try \`$0 --help' for more information." >&5
18217 echo "$as_me: error: ambiguous option: $1
18218 Try \`$0 --help' for more information." >&2;}
18219 { (exit 1); exit 1; }; };;
18220 --help | --hel | -h )
18221 echo "$ac_cs_usage"; exit 0 ;;
18222 --debug | --d* | -d )
18224 --file | --fil | --fi | --f )
18226 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18227 ac_need_defaults=false;;
18228 --header | --heade | --head | --hea )
18230 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18231 ac_need_defaults=false;;
18232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18233 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18236 # This is an error.
18237 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18238 Try \`$0 --help' for more information." >&5
18239 echo "$as_me: error: unrecognized option: $1
18240 Try \`$0 --help' for more information." >&2;}
18241 { (exit 1); exit 1; }; } ;;
18243 *) ac_config_targets="$ac_config_targets $1" ;;
18249 ac_configure_extra_args=
18251 if $ac_cs_silent; then
18253 ac_configure_extra_args="$ac_configure_extra_args --silent"
18257 cat >>$CONFIG_STATUS <<_ACEOF
18258 if \$ac_cs_recheck; then
18259 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18260 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18265 cat >>$CONFIG_STATUS <<_ACEOF
18267 # INIT-COMMANDS section.
18270 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18271 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18278 cat >>$CONFIG_STATUS <<\_ACEOF
18279 for ac_config_target in $ac_config_targets
18281 case "$ac_config_target" in
18282 # Handling of arguments.
18283 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
18284 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
18285 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
18286 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
18287 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
18288 "gccdepdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
18289 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18290 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
18291 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18292 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18293 { (exit 1); exit 1; }; };;
18297 # If the user did not use the arguments to specify the items to instantiate,
18298 # then the envvar interface is used. Set only those that are not.
18299 # We use the long form for the default assignment because of an extremely
18300 # bizarre bug on SunOS 4.1.3.
18301 if $ac_need_defaults; then
18302 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18303 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18307 # Have a temporary directory for convenience. Make it in the build tree
18308 # simply because there is no reason to put it here, and in addition,
18309 # creating and moving files from /tmp can sometimes cause problems.
18310 # Create a temporary directory, and hook for its removal unless debugging.
18313 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18314 trap '{ (exit 1); exit 1; }' 1 2 13 15
18317 # Create a (secure) tmp directory for tmp files.
18320 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18321 test -n "$tmp" && test -d "$tmp"
18324 tmp=./confstat$$-$RANDOM
18325 (umask 077 && mkdir $tmp)
18328 echo "$me: cannot create a temporary directory in ." >&2
18329 { (exit 1); exit 1; }
18334 cat >>$CONFIG_STATUS <<_ACEOF
18337 # CONFIG_FILES section.
18340 # No need to generate the scripts if there are no CONFIG_FILES.
18341 # This happens for instance when ./config.status config.h
18342 if test -n "\$CONFIG_FILES"; then
18343 # Protect against being on the right side of a sed subst in config.status.
18344 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18345 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18346 s,@SHELL@,$SHELL,;t t
18347 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18348 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18349 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18350 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18351 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18352 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18353 s,@exec_prefix@,$exec_prefix,;t t
18354 s,@prefix@,$prefix,;t t
18355 s,@program_transform_name@,$program_transform_name,;t t
18356 s,@bindir@,$bindir,;t t
18357 s,@sbindir@,$sbindir,;t t
18358 s,@libexecdir@,$libexecdir,;t t
18359 s,@datadir@,$datadir,;t t
18360 s,@sysconfdir@,$sysconfdir,;t t
18361 s,@sharedstatedir@,$sharedstatedir,;t t
18362 s,@localstatedir@,$localstatedir,;t t
18363 s,@libdir@,$libdir,;t t
18364 s,@includedir@,$includedir,;t t
18365 s,@oldincludedir@,$oldincludedir,;t t
18366 s,@infodir@,$infodir,;t t
18367 s,@mandir@,$mandir,;t t
18368 s,@build_alias@,$build_alias,;t t
18369 s,@host_alias@,$host_alias,;t t
18370 s,@target_alias@,$target_alias,;t t
18371 s,@DEFS@,$DEFS,;t t
18372 s,@ECHO_C@,$ECHO_C,;t t
18373 s,@ECHO_N@,$ECHO_N,;t t
18374 s,@ECHO_T@,$ECHO_T,;t t
18375 s,@LIBS@,$LIBS,;t t
18376 s,@build@,$build,;t t
18377 s,@build_cpu@,$build_cpu,;t t
18378 s,@build_vendor@,$build_vendor,;t t
18379 s,@build_os@,$build_os,;t t
18380 s,@host@,$host,;t t
18381 s,@host_cpu@,$host_cpu,;t t
18382 s,@host_vendor@,$host_vendor,;t t
18383 s,@host_os@,$host_os,;t t
18384 s,@target@,$target,;t t
18385 s,@target_cpu@,$target_cpu,;t t
18386 s,@target_vendor@,$target_vendor,;t t
18387 s,@target_os@,$target_os,;t t
18388 s,@target_noncanonical@,$target_noncanonical,;t t
18389 s,@build_libsubdir@,$build_libsubdir,;t t
18390 s,@build_subdir@,$build_subdir,;t t
18391 s,@host_subdir@,$host_subdir,;t t
18392 s,@target_subdir@,$target_subdir,;t t
18393 s,@GENINSRC@,$GENINSRC,;t t
18395 s,@CFLAGS@,$CFLAGS,;t t
18396 s,@LDFLAGS@,$LDFLAGS,;t t
18397 s,@CPPFLAGS@,$CPPFLAGS,;t t
18398 s,@ac_ct_CC@,$ac_ct_CC,;t t
18399 s,@EXEEXT@,$EXEEXT,;t t
18400 s,@OBJEXT@,$OBJEXT,;t t
18401 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
18402 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
18404 s,@EGREP@,$EGREP,;t t
18405 s,@loose_warn@,$loose_warn,;t t
18406 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
18407 s,@strict_warn@,$strict_warn,;t t
18408 s,@warn_cflags@,$warn_cflags,;t t
18409 s,@nocommon_flag@,$nocommon_flag,;t t
18410 s,@TREEBROWSER@,$TREEBROWSER,;t t
18411 s,@valgrind_path@,$valgrind_path,;t t
18412 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
18413 s,@valgrind_command@,$valgrind_command,;t t
18414 s,@coverage_flags@,$coverage_flags,;t t
18415 s,@enable_multilib@,$enable_multilib,;t t
18416 s,@enable_decimal_float@,$enable_decimal_float,;t t
18417 s,@enable_fixed_point@,$enable_fixed_point,;t t
18418 s,@enable_shared@,$enable_shared,;t t
18419 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
18420 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
18421 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
18422 s,@onestep@,$onestep,;t t
18423 s,@PKGVERSION@,$PKGVERSION,;t t
18424 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
18425 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
18426 s,@datarootdir@,$datarootdir,;t t
18427 s,@docdir@,$docdir,;t t
18428 s,@htmldir@,$htmldir,;t t
18429 s,@SET_MAKE@,$SET_MAKE,;t t
18431 s,@LN_S@,$LN_S,;t t
18433 s,@RANLIB@,$RANLIB,;t t
18434 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18435 s,@ranlib_flags@,$ranlib_flags,;t t
18436 s,@INSTALL@,$INSTALL,;t t
18437 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18438 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18439 s,@make_compare_target@,$make_compare_target,;t t
18440 s,@have_mktemp_command@,$have_mktemp_command,;t t
18441 s,@MAKEINFO@,$MAKEINFO,;t t
18442 s,@BUILD_INFO@,$BUILD_INFO,;t t
18443 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
18444 s,@FLEX@,$FLEX,;t t
18445 s,@BISON@,$BISON,;t t
18448 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
18449 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
18450 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
18451 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
18452 s,@LIBICONV@,$LIBICONV,;t t
18453 s,@LTLIBICONV@,$LTLIBICONV,;t t
18454 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
18455 s,@manext@,$manext,;t t
18456 s,@objext@,$objext,;t t
18457 s,@gthread_flags@,$gthread_flags,;t t
18458 s,@extra_modes_file@,$extra_modes_file,;t t
18459 s,@extra_opt_files@,$extra_opt_files,;t t
18460 s,@USE_NLS@,$USE_NLS,;t t
18461 s,@LIBINTL@,$LIBINTL,;t t
18462 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
18463 s,@INCINTL@,$INCINTL,;t t
18464 s,@XGETTEXT@,$XGETTEXT,;t t
18465 s,@GMSGFMT@,$GMSGFMT,;t t
18466 s,@POSUB@,$POSUB,;t t
18467 s,@CATALOGS@,$CATALOGS,;t t
18468 s,@DATADIRNAME@,$DATADIRNAME,;t t
18469 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18470 s,@GENCAT@,$GENCAT,;t t
18471 s,@CATOBJEXT@,$CATOBJEXT,;t t
18472 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
18473 s,@CROSS@,$CROSS,;t t
18475 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
18476 s,@inhibit_libc@,$inhibit_libc,;t t
18477 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
18478 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
18479 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
18480 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
18481 s,@collect2@,$collect2,;t t
18482 s,@gcc_cv_as@,$gcc_cv_as,;t t
18483 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
18484 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
18485 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
18486 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
18487 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
18488 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
18489 s,@libgcc_visibility@,$libgcc_visibility,;t t
18491 s,@zlibdir@,$zlibdir,;t t
18492 s,@zlibinc@,$zlibinc,;t t
18493 s,@MAINT@,$MAINT,;t t
18494 s,@am__leading_dot@,$am__leading_dot,;t t
18495 s,@DEPDIR@,$DEPDIR,;t t
18496 s,@CCDEPMODE@,$CCDEPMODE,;t t
18497 s,@BUILD_DEPMODE@,$BUILD_DEPMODE,;t t
18498 s,@gcc_tooldir@,$gcc_tooldir,;t t
18499 s,@dollar@,$dollar,;t t
18500 s,@slibdir@,$slibdir,;t t
18501 s,@objdir@,$objdir,;t t
18502 s,@subdirs@,$subdirs,;t t
18503 s,@srcdir@,$srcdir,;t t
18504 s,@all_compilers@,$all_compilers,;t t
18505 s,@all_gtfiles@,$all_gtfiles,;t t
18506 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
18507 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
18508 s,@all_languages@,$all_languages,;t t
18509 s,@all_selected_languages@,$all_selected_languages,;t t
18510 s,@build_exeext@,$build_exeext,;t t
18511 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
18512 s,@build_xm_file_list@,$build_xm_file_list,;t t
18513 s,@build_xm_include_list@,$build_xm_include_list,;t t
18514 s,@build_xm_defines@,$build_xm_defines,;t t
18515 s,@build_file_translate@,$build_file_translate,;t t
18516 s,@check_languages@,$check_languages,;t t
18517 s,@cpp_install_dir@,$cpp_install_dir,;t t
18518 s,@xmake_file@,$xmake_file,;t t
18519 s,@tmake_file@,$tmake_file,;t t
18520 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
18521 s,@extra_headers_list@,$extra_headers_list,;t t
18522 s,@extra_objs@,$extra_objs,;t t
18523 s,@extra_parts@,$extra_parts,;t t
18524 s,@extra_passes@,$extra_passes,;t t
18525 s,@extra_programs@,$extra_programs,;t t
18526 s,@float_h_file@,$float_h_file,;t t
18527 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
18528 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
18529 s,@host_exeext@,$host_exeext,;t t
18530 s,@host_xm_file_list@,$host_xm_file_list,;t t
18531 s,@host_xm_include_list@,$host_xm_include_list,;t t
18532 s,@host_xm_defines@,$host_xm_defines,;t t
18533 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
18534 s,@install@,$install,;t t
18535 s,@lang_opt_files@,$lang_opt_files,;t t
18536 s,@lang_specs_files@,$lang_specs_files,;t t
18537 s,@lang_tree_files@,$lang_tree_files,;t t
18538 s,@local_prefix@,$local_prefix,;t t
18539 s,@md_file@,$md_file,;t t
18540 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
18541 s,@out_file@,$out_file,;t t
18542 s,@out_object_file@,$out_object_file,;t t
18543 s,@thread_file@,$thread_file,;t t
18544 s,@tm_file_list@,$tm_file_list,;t t
18545 s,@tm_include_list@,$tm_include_list,;t t
18546 s,@tm_defines@,$tm_defines,;t t
18547 s,@tm_p_file_list@,$tm_p_file_list,;t t
18548 s,@tm_p_include_list@,$tm_p_include_list,;t t
18549 s,@xm_file_list@,$xm_file_list,;t t
18550 s,@xm_include_list@,$xm_include_list,;t t
18551 s,@xm_defines@,$xm_defines,;t t
18552 s,@c_target_objs@,$c_target_objs,;t t
18553 s,@cxx_target_objs@,$cxx_target_objs,;t t
18554 s,@target_cpu_default@,$target_cpu_default,;t t
18555 s,@GMPLIBS@,$GMPLIBS,;t t
18556 s,@GMPINC@,$GMPINC,;t t
18557 s,@LIBOBJS@,$LIBOBJS,;t t
18558 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18559 /@language_hooks@/r $language_hooks
18560 s,@language_hooks@,,;t t
18565 cat >>$CONFIG_STATUS <<\_ACEOF
18566 # Split the substitutions into bite-sized pieces for seds with
18567 # small command number limits, like on Digital OSF/1 and HP-UX.
18568 ac_max_sed_lines=48
18569 ac_sed_frag=1 # Number of current file.
18570 ac_beg=1 # First line for current file.
18571 ac_end=$ac_max_sed_lines # Line after last line for current file.
18574 while $ac_more_lines; do
18575 if test $ac_beg -gt 1; then
18576 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18578 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18580 if test ! -s $tmp/subs.frag; then
18581 ac_more_lines=false
18583 # The purpose of the label and of the branching condition is to
18584 # speed up the sed processing (if there are no `@' at all, there
18585 # is no need to browse any of the substitutions).
18586 # These are the two extra sed commands mentioned above.
18588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18589 if test -z "$ac_sed_cmds"; then
18590 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18592 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18594 ac_sed_frag=`expr $ac_sed_frag + 1`
18596 ac_end=`expr $ac_end + $ac_max_sed_lines`
18599 if test -z "$ac_sed_cmds"; then
18602 fi # test -n "$CONFIG_FILES"
18605 cat >>$CONFIG_STATUS <<\_ACEOF
18606 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18607 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18609 - | *:- | *:-:* ) # input from stdin
18611 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18612 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18613 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18615 * ) ac_file_in=$ac_file.in ;;
18618 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18619 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18621 X"$ac_file" : 'X\(//\)[^/]' \| \
18622 X"$ac_file" : 'X\(//\)$' \| \
18623 X"$ac_file" : 'X\(/\)' \| \
18624 . : '\(.\)' 2>/dev/null ||
18626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18628 /^X\(\/\/\)$/{ s//\1/; q; }
18629 /^X\(\/\).*/{ s//\1/; q; }
18631 { if $as_mkdir_p; then
18636 while test ! -d "$as_dir"; do
18637 as_dirs="$as_dir $as_dirs"
18638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18640 X"$as_dir" : 'X\(//\)[^/]' \| \
18641 X"$as_dir" : 'X\(//\)$' \| \
18642 X"$as_dir" : 'X\(/\)' \| \
18643 . : '\(.\)' 2>/dev/null ||
18645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18647 /^X\(\/\/\)$/{ s//\1/; q; }
18648 /^X\(\/\).*/{ s//\1/; q; }
18651 test ! -n "$as_dirs" || mkdir $as_dirs
18652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18653 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18654 { (exit 1); exit 1; }; }; }
18658 if test "$ac_dir" != .; then
18659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18660 # A "../" for each directory in $ac_dir_suffix.
18661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18663 ac_dir_suffix= ac_top_builddir=
18667 .) # No --srcdir option. We are building in place.
18669 if test -z "$ac_top_builddir"; then
18672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18674 [\\/]* | ?:[\\/]* ) # Absolute path.
18675 ac_srcdir=$srcdir$ac_dir_suffix;
18676 ac_top_srcdir=$srcdir ;;
18677 *) # Relative path.
18678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18679 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18682 # Do not use `cd foo && pwd` to compute absolute paths, because
18683 # the directories may not exist.
18685 .) ac_abs_builddir="$ac_dir";;
18688 .) ac_abs_builddir=`pwd`;;
18689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18690 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18693 case $ac_abs_builddir in
18694 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18696 case ${ac_top_builddir}. in
18697 .) ac_abs_top_builddir=$ac_abs_builddir;;
18698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18702 case $ac_abs_builddir in
18703 .) ac_abs_srcdir=$ac_srcdir;;
18706 .) ac_abs_srcdir=$ac_abs_builddir;;
18707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18711 case $ac_abs_builddir in
18712 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18714 case $ac_top_srcdir in
18715 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18723 if test x"$ac_file" != x-; then
18724 { echo "$as_me:$LINENO: creating $ac_file" >&5
18725 echo "$as_me: creating $ac_file" >&6;}
18728 # Let's still pretend it is `configure' which instantiates (i.e., don't
18729 # use $as_me), people would be surprised to read:
18730 # /* config.h. Generated by config.status. */
18731 if test x"$ac_file" = x-; then
18734 configure_input="$ac_file. "
18736 configure_input=$configure_input"Generated from `echo $ac_file_in |
18737 sed 's,.*/,,'` by configure."
18739 # First look for the input files in the build tree, otherwise in the
18741 ac_file_inputs=`IFS=:
18742 for f in $ac_file_in; do
18744 -) echo $tmp/stdin ;;
18746 # Absolute (can't be DOS-style, as IFS=:)
18747 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18748 echo "$as_me: error: cannot find input file: $f" >&2;}
18749 { (exit 1); exit 1; }; }
18752 if test -f "$f"; then
18755 elif test -f "$srcdir/$f"; then
18760 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18761 echo "$as_me: error: cannot find input file: $f" >&2;}
18762 { (exit 1); exit 1; }; }
18765 done` || { (exit 1); exit 1; }
18767 cat >>$CONFIG_STATUS <<_ACEOF
18771 cat >>$CONFIG_STATUS <<\_ACEOF
18773 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18774 s,@configure_input@,$configure_input,;t t
18775 s,@srcdir@,$ac_srcdir,;t t
18776 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18777 s,@top_srcdir@,$ac_top_srcdir,;t t
18778 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18779 s,@builddir@,$ac_builddir,;t t
18780 s,@abs_builddir@,$ac_abs_builddir,;t t
18781 s,@top_builddir@,$ac_top_builddir,;t t
18782 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18783 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18785 if test x"$ac_file" != x-; then
18786 mv $tmp/out $ac_file
18792 # Run the commands associated with the file.
18794 as ) chmod +x as ;;
18795 collect-ld ) chmod +x collect-ld ;;
18796 nm ) chmod +x nm ;;
18800 cat >>$CONFIG_STATUS <<\_ACEOF
18803 # CONFIG_HEADER section.
18806 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18807 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18809 # ac_d sets the value in "#define NAME VALUE" lines.
18810 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18811 ac_dB='[ ].*$,\1#\2'
18814 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18815 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18816 ac_uB='$,\1#\2define\3'
18820 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18821 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18823 - | *:- | *:-:* ) # input from stdin
18825 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18826 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18827 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18828 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18829 * ) ac_file_in=$ac_file.in ;;
18832 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18833 echo "$as_me: creating $ac_file" >&6;}
18835 # First look for the input files in the build tree, otherwise in the
18837 ac_file_inputs=`IFS=:
18838 for f in $ac_file_in; do
18840 -) echo $tmp/stdin ;;
18842 # Absolute (can't be DOS-style, as IFS=:)
18843 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18844 echo "$as_me: error: cannot find input file: $f" >&2;}
18845 { (exit 1); exit 1; }; }
18846 # Do quote $f, to prevent DOS paths from being IFS'd.
18849 if test -f "$f"; then
18852 elif test -f "$srcdir/$f"; then
18857 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18858 echo "$as_me: error: cannot find input file: $f" >&2;}
18859 { (exit 1); exit 1; }; }
18862 done` || { (exit 1); exit 1; }
18863 # Remove the trailing spaces.
18864 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18868 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18869 # `conftest.undefs', that substitutes the proper values into
18870 # config.h.in to produce config.h. The first handles `#define'
18871 # templates, and the second `#undef' templates.
18872 # And first: Protect against being on the right side of a sed subst in
18873 # config.status. Protect against being in an unquoted here document
18874 # in config.status.
18875 rm -f conftest.defines conftest.undefs
18876 # Using a here document instead of a string reduces the quoting nightmare.
18877 # Putting comments in sed scripts is not portable.
18879 # `end' is used to avoid that the second main sed command (meant for
18880 # 0-ary CPP macros) applies to n-ary macro definitions.
18881 # See the Autoconf documentation for `clear'.
18882 cat >confdef2sed.sed <<\_ACEOF
18887 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18889 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18892 # If some macros were called several times there might be several times
18893 # the same #defines, which is useless. Nevertheless, we may not want to
18894 # sort them, since we want the *last* AC-DEFINE to be honored.
18895 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18896 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18897 rm -f confdef2sed.sed
18899 # This sed command replaces #undef with comments. This is necessary, for
18900 # example, in the case of _POSIX_SOURCE, which is predefined and required
18901 # on some systems where configure will not decide to define it.
18902 cat >>conftest.undefs <<\_ACEOF
18903 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18906 # Break up conftest.defines because some shells have a limit on the size
18907 # of here documents, and old seds have small limits too (100 cmds).
18908 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18909 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18910 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18911 echo ' :' >>$CONFIG_STATUS
18912 rm -f conftest.tail
18913 while grep . conftest.defines >/dev/null
18915 # Write a limited-size here document to $tmp/defines.sed.
18916 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18917 # Speed up: don't consider the non `#define' lines.
18918 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18919 # Work around the forget-to-reset-the-flag bug.
18920 echo 't clr' >>$CONFIG_STATUS
18921 echo ': clr' >>$CONFIG_STATUS
18922 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18924 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18926 mv $tmp/out $tmp/in
18928 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18929 rm -f conftest.defines
18930 mv conftest.tail conftest.defines
18932 rm -f conftest.defines
18933 echo ' fi # grep' >>$CONFIG_STATUS
18934 echo >>$CONFIG_STATUS
18936 # Break up conftest.undefs because some shells have a limit on the size
18937 # of here documents, and old seds have small limits too (100 cmds).
18938 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18939 rm -f conftest.tail
18940 while grep . conftest.undefs >/dev/null
18942 # Write a limited-size here document to $tmp/undefs.sed.
18943 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18944 # Speed up: don't consider the non `#undef'
18945 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18946 # Work around the forget-to-reset-the-flag bug.
18947 echo 't clr' >>$CONFIG_STATUS
18948 echo ': clr' >>$CONFIG_STATUS
18949 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18951 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18953 mv $tmp/out $tmp/in
18955 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18956 rm -f conftest.undefs
18957 mv conftest.tail conftest.undefs
18959 rm -f conftest.undefs
18961 cat >>$CONFIG_STATUS <<\_ACEOF
18962 # Let's still pretend it is `configure' which instantiates (i.e., don't
18963 # use $as_me), people would be surprised to read:
18964 # /* config.h. Generated by config.status. */
18965 if test x"$ac_file" = x-; then
18966 echo "/* Generated by configure. */" >$tmp/config.h
18968 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18970 cat $tmp/in >>$tmp/config.h
18972 if test x"$ac_file" != x-; then
18973 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18974 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18975 echo "$as_me: $ac_file is unchanged" >&6;}
18977 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18979 X"$ac_file" : 'X\(//\)[^/]' \| \
18980 X"$ac_file" : 'X\(//\)$' \| \
18981 X"$ac_file" : 'X\(/\)' \| \
18982 . : '\(.\)' 2>/dev/null ||
18984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18986 /^X\(\/\/\)$/{ s//\1/; q; }
18987 /^X\(\/\).*/{ s//\1/; q; }
18989 { if $as_mkdir_p; then
18994 while test ! -d "$as_dir"; do
18995 as_dirs="$as_dir $as_dirs"
18996 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18998 X"$as_dir" : 'X\(//\)[^/]' \| \
18999 X"$as_dir" : 'X\(//\)$' \| \
19000 X"$as_dir" : 'X\(/\)' \| \
19001 . : '\(.\)' 2>/dev/null ||
19003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19005 /^X\(\/\/\)$/{ s//\1/; q; }
19006 /^X\(\/\).*/{ s//\1/; q; }
19009 test ! -n "$as_dirs" || mkdir $as_dirs
19010 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19011 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19012 { (exit 1); exit 1; }; }; }
19015 mv $tmp/config.h $ac_file
19019 rm -f $tmp/config.h
19023 cat >>$CONFIG_STATUS <<\_ACEOF
19026 # CONFIG_COMMANDS section.
19028 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19029 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19030 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19031 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19032 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19033 X"$ac_dest" : 'X\(//\)[^/]' \| \
19034 X"$ac_dest" : 'X\(//\)$' \| \
19035 X"$ac_dest" : 'X\(/\)' \| \
19036 . : '\(.\)' 2>/dev/null ||
19038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19040 /^X\(\/\/\)$/{ s//\1/; q; }
19041 /^X\(\/\).*/{ s//\1/; q; }
19043 { if $as_mkdir_p; then
19048 while test ! -d "$as_dir"; do
19049 as_dirs="$as_dir $as_dirs"
19050 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19052 X"$as_dir" : 'X\(//\)[^/]' \| \
19053 X"$as_dir" : 'X\(//\)$' \| \
19054 X"$as_dir" : 'X\(/\)' \| \
19055 . : '\(.\)' 2>/dev/null ||
19057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19059 /^X\(\/\/\)$/{ s//\1/; q; }
19060 /^X\(\/\).*/{ s//\1/; q; }
19063 test ! -n "$as_dirs" || mkdir $as_dirs
19064 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19065 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19066 { (exit 1); exit 1; }; }; }
19070 if test "$ac_dir" != .; then
19071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19072 # A "../" for each directory in $ac_dir_suffix.
19073 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19075 ac_dir_suffix= ac_top_builddir=
19079 .) # No --srcdir option. We are building in place.
19081 if test -z "$ac_top_builddir"; then
19084 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19086 [\\/]* | ?:[\\/]* ) # Absolute path.
19087 ac_srcdir=$srcdir$ac_dir_suffix;
19088 ac_top_srcdir=$srcdir ;;
19089 *) # Relative path.
19090 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19091 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19094 # Do not use `cd foo && pwd` to compute absolute paths, because
19095 # the directories may not exist.
19097 .) ac_abs_builddir="$ac_dir";;
19100 .) ac_abs_builddir=`pwd`;;
19101 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19102 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19105 case $ac_abs_builddir in
19106 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19108 case ${ac_top_builddir}. in
19109 .) ac_abs_top_builddir=$ac_abs_builddir;;
19110 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19111 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19114 case $ac_abs_builddir in
19115 .) ac_abs_srcdir=$ac_srcdir;;
19118 .) ac_abs_srcdir=$ac_abs_builddir;;
19119 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19120 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19123 case $ac_abs_builddir in
19124 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19126 case $ac_top_srcdir in
19127 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19128 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19129 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19134 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19135 echo "$as_me: executing $ac_dest commands" >&6;}
19137 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19139 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
19140 for lang in $subdirs
19142 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
19145 case ${CONFIG_HEADERS} in
19146 *auto-host.h:config.in*)
19149 # Make sure all the subdirs exist.
19150 for d in $subdirs doc build
19152 test -d $d || mkdir $d
19159 cat >>$CONFIG_STATUS <<\_ACEOF
19161 { (exit 0); exit 0; }
19163 chmod +x $CONFIG_STATUS
19164 ac_clean_files=$ac_clean_files_save
19167 # configure is writing to config.log, and then calls config.status.
19168 # config.status does its own redirection, appending to config.log.
19169 # Unfortunately, on DOS this fails, as config.log is still kept open
19170 # by configure, so config.status won't be able to write to it; its
19171 # output is simply discarded. So we exec the FD to /dev/null,
19172 # effectively closing config.log, so it can be properly (re)opened and
19173 # appended to by config.status. When coming back to configure, we
19174 # need to make the FD available again.
19175 if test "$no_create" != yes; then
19177 ac_config_status_args=
19178 test "$silent" = yes &&
19179 ac_config_status_args="$ac_config_status_args --quiet"
19181 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19183 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19184 # would make configure fail if this is the last instruction.
19185 $ac_cs_success || { (exit 1); exit 1; }