2005-01-20 Michael Koch <konqueror@gmx.de>
[official-gcc.git] / gcc / configure
blobef40f176ce0c885c5c39e12765d2e1f07632e9f1
1 #! /bin/sh
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
14 emulate sh
15 NULLCMD=:
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
20 set -o posix
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
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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 ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; 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
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
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
122 as_myself=$0
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
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
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 |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
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`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
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 build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT ANDER BANSHEEINC BANSHEELIB gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link 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 target_noncanonical 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.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
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'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
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'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
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.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
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)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
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)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
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'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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; }; }
631 *=*)
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'"
639 export $ac_envvar ;;
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}
649 esac
650 done
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`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
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`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
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
695 cross_compiling=yes
699 ac_tool_prefix=
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 ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
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; }; }
732 else
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}
754 ac_env_CC_value=$CC
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.
788 cat <<_ACEOF
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.
798 Configuration:
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 \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
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]
838 _ACEOF
840 cat <<\_ACEOF
842 Program names:
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
847 System types:
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]
851 _ACEOF
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
871 default is misc,tree,gc,rtlflag
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler\'s code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --enable-initfini-array use .init_array/.fini_array sections
890 --enable-sjlj-exceptions
891 arrange to use setjmp/longjmp exception handling
892 --enable-libunwind-exceptions force use libunwind for exceptions
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
899 of the registry key
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
907 Optional Packages:
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-gnu-as arrange to work with GNU as
919 --with-as arrange to use the specified as (full pathname)
920 --with-stabs arrange to use stabs instead of host debug format
921 --with-dwarf2 force the default debug format to be DWARF 2
922 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
923 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
924 --with-gc={page,zone} choose the garbage collection mechanism to use
925 with the compiler
926 --with-system-zlib use installed libz
927 --with-libbanshee enable libbanshee
928 --with-slibdir=DIR shared libraries in DIR LIBDIR
930 Some influential environment variables:
931 CC C compiler command
932 CFLAGS C compiler flags
933 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
934 nonstandard directory <lib dir>
935 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
936 headers in a nonstandard directory <include dir>
937 CPP C preprocessor
938 GMPLIBS How to link GMP
939 GMPINC How to find GMP include files
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
944 _ACEOF
947 if test "$ac_init_help" = "recursive"; then
948 # If there are subdirs, report their specific --help.
949 ac_popdir=`pwd`
950 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951 test -d $ac_dir || continue
952 ac_builddir=.
954 if test "$ac_dir" != .; then
955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956 # A "../" for each directory in $ac_dir_suffix.
957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 else
959 ac_dir_suffix= ac_top_builddir=
962 case $srcdir in
963 .) # No --srcdir option. We are building in place.
964 ac_srcdir=.
965 if test -z "$ac_top_builddir"; then
966 ac_top_srcdir=.
967 else
968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969 fi ;;
970 [\\/]* | ?:[\\/]* ) # Absolute path.
971 ac_srcdir=$srcdir$ac_dir_suffix;
972 ac_top_srcdir=$srcdir ;;
973 *) # Relative path.
974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 esac
978 # Do not use `cd foo && pwd` to compute absolute paths, because
979 # the directories may not exist.
980 case `pwd` in
981 .) ac_abs_builddir="$ac_dir";;
983 case "$ac_dir" in
984 .) ac_abs_builddir=`pwd`;;
985 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986 *) ac_abs_builddir=`pwd`/"$ac_dir";;
987 esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
992 case ${ac_top_builddir}. in
993 .) ac_abs_top_builddir=$ac_abs_builddir;;
994 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
996 esac;;
997 esac
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1001 case $ac_srcdir in
1002 .) ac_abs_srcdir=$ac_abs_builddir;;
1003 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1005 esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1010 case $ac_top_srcdir in
1011 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1014 esac;;
1015 esac
1017 cd $ac_dir
1018 # Check for guested configure; otherwise get Cygnus style configure.
1019 if test -f $ac_srcdir/configure.gnu; then
1020 echo
1021 $SHELL $ac_srcdir/configure.gnu --help=recursive
1022 elif test -f $ac_srcdir/configure; then
1023 echo
1024 $SHELL $ac_srcdir/configure --help=recursive
1025 elif test -f $ac_srcdir/configure.ac ||
1026 test -f $ac_srcdir/configure.in; then
1027 echo
1028 $ac_configure --help
1029 else
1030 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1032 cd $ac_popdir
1033 done
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1038 cat <<\_ACEOF
1040 Copyright (C) 2003 Free Software Foundation, Inc.
1041 This configure script is free software; the Free Software Foundation
1042 gives unlimited permission to copy, distribute and modify it.
1043 _ACEOF
1044 exit 0
1046 exec 5>config.log
1047 cat >&5 <<_ACEOF
1048 This file contains any messages produced by compilers while
1049 running configure, to aid debugging if configure makes a mistake.
1051 It was created by $as_me, which was
1052 generated by GNU Autoconf 2.59. Invocation command line was
1054 $ $0 $@
1056 _ACEOF
1058 cat <<_ASUNAME
1059 ## --------- ##
1060 ## Platform. ##
1061 ## --------- ##
1063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1070 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1072 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1073 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1075 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1076 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1077 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1078 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1080 _ASUNAME
1082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1083 for as_dir in $PATH
1085 IFS=$as_save_IFS
1086 test -z "$as_dir" && as_dir=.
1087 echo "PATH: $as_dir"
1088 done
1090 } >&5
1092 cat >&5 <<_ACEOF
1095 ## ----------- ##
1096 ## Core tests. ##
1097 ## ----------- ##
1099 _ACEOF
1102 # Keep a trace of the command line.
1103 # Strip out --no-create and --no-recursion so they do not pile up.
1104 # Strip out --silent because we don't want to record it for future runs.
1105 # Also quote any args containing shell meta-characters.
1106 # Make two passes to allow for proper duplicate-argument suppression.
1107 ac_configure_args=
1108 ac_configure_args0=
1109 ac_configure_args1=
1110 ac_sep=
1111 ac_must_keep_next=false
1112 for ac_pass in 1 2
1114 for ac_arg
1116 case $ac_arg in
1117 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 continue ;;
1121 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1123 esac
1124 case $ac_pass in
1125 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1127 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1128 if test $ac_must_keep_next = true; then
1129 ac_must_keep_next=false # Got value, back to normal.
1130 else
1131 case $ac_arg in
1132 *=* | --config-cache | -C | -disable-* | --disable-* \
1133 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1134 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1135 | -with-* | --with-* | -without-* | --without-* | --x)
1136 case "$ac_configure_args0 " in
1137 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1138 esac
1140 -* ) ac_must_keep_next=true ;;
1141 esac
1143 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1144 # Get rid of the leading space.
1145 ac_sep=" "
1147 esac
1148 done
1149 done
1150 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1151 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1153 # When interrupted or exit'd, cleanup temporary files, and complete
1154 # config.log. We remove comments because anyway the quotes in there
1155 # would cause problems or look ugly.
1156 # WARNING: Be sure not to use single quotes in there, as some shells,
1157 # such as our DU 5.0 friend, will then `close' the trap.
1158 trap 'exit_status=$?
1159 # Save into config.log some information that might help in debugging.
1161 echo
1163 cat <<\_ASBOX
1164 ## ---------------- ##
1165 ## Cache variables. ##
1166 ## ---------------- ##
1167 _ASBOX
1168 echo
1169 # The following way of writing the cache mishandles newlines in values,
1171 (set) 2>&1 |
1172 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1173 *ac_space=\ *)
1174 sed -n \
1175 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1179 sed -n \
1180 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1182 esac;
1184 echo
1186 cat <<\_ASBOX
1187 ## ----------------- ##
1188 ## Output variables. ##
1189 ## ----------------- ##
1190 _ASBOX
1191 echo
1192 for ac_var in $ac_subst_vars
1194 eval ac_val=$`echo $ac_var`
1195 echo "$ac_var='"'"'$ac_val'"'"'"
1196 done | sort
1197 echo
1199 if test -n "$ac_subst_files"; then
1200 cat <<\_ASBOX
1201 ## ------------- ##
1202 ## Output files. ##
1203 ## ------------- ##
1204 _ASBOX
1205 echo
1206 for ac_var in $ac_subst_files
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1210 done | sort
1211 echo
1214 if test -s confdefs.h; then
1215 cat <<\_ASBOX
1216 ## ----------- ##
1217 ## confdefs.h. ##
1218 ## ----------- ##
1219 _ASBOX
1220 echo
1221 sed "/^$/d" confdefs.h | sort
1222 echo
1224 test "$ac_signal" != 0 &&
1225 echo "$as_me: caught signal $ac_signal"
1226 echo "$as_me: exit $exit_status"
1227 } >&5
1228 rm -f core *.core &&
1229 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230 exit $exit_status
1232 for ac_signal in 1 2 13 15; do
1233 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 done
1235 ac_signal=0
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 echo >confdefs.h
1242 # Predefined preprocessor variables.
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 _ACEOF
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 _ACEOF
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 _ACEOF
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 _ACEOF
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 _ACEOF
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272 if test "x$prefix" != xNONE; then
1273 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274 else
1275 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278 for ac_site_file in $CONFIG_SITE; do
1279 if test -r "$ac_site_file"; then
1280 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282 sed 's/^/| /' "$ac_site_file" >&5
1283 . "$ac_site_file"
1285 done
1287 if test -r "$cache_file"; then
1288 # Some versions of bash will fail to source /dev/null (special
1289 # files actually), so we avoid doing that.
1290 if test -f "$cache_file"; then
1291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1293 case $cache_file in
1294 [\\/]* | ?:[\\/]* ) . $cache_file;;
1295 *) . ./$cache_file;;
1296 esac
1298 else
1299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1301 >$cache_file
1304 # Check that the precious variables saved in the cache have kept the same
1305 # value.
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310 eval ac_new_set=\$ac_env_${ac_var}_set
1311 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312 eval ac_new_val="\$ac_env_${ac_var}_value"
1313 case $ac_old_set,$ac_new_set in
1314 set,)
1315 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317 ac_cache_corrupted=: ;;
1318 ,set)
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1322 ,);;
1324 if test "x$ac_old_val" != "x$ac_new_val"; then
1325 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1328 echo "$as_me: former value: $ac_old_val" >&2;}
1329 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1330 echo "$as_me: current value: $ac_new_val" >&2;}
1331 ac_cache_corrupted=:
1332 fi;;
1333 esac
1334 # Pass precious variables to config.status.
1335 if test "$ac_new_set" = set; then
1336 case $ac_new_val in
1337 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339 *) ac_arg=$ac_var=$ac_new_val ;;
1340 esac
1341 case " $ac_configure_args " in
1342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344 esac
1346 done
1347 if $ac_cache_corrupted; then
1348 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352 { (exit 1); exit 1; }; }
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1380 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1383 # Determine the host, build, and target systems
1384 ac_aux_dir=
1385 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1386 if test -f $ac_dir/install-sh; then
1387 ac_aux_dir=$ac_dir
1388 ac_install_sh="$ac_aux_dir/install-sh -c"
1389 break
1390 elif test -f $ac_dir/install.sh; then
1391 ac_aux_dir=$ac_dir
1392 ac_install_sh="$ac_aux_dir/install.sh -c"
1393 break
1394 elif test -f $ac_dir/shtool; then
1395 ac_aux_dir=$ac_dir
1396 ac_install_sh="$ac_aux_dir/shtool install -c"
1397 break
1399 done
1400 if test -z "$ac_aux_dir"; then
1401 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1402 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1403 { (exit 1); exit 1; }; }
1405 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1406 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1407 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1409 # Make sure we can run config.sub.
1410 $ac_config_sub sun4 >/dev/null 2>&1 ||
1411 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1412 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1413 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: checking build system type" >&5
1416 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1417 if test "${ac_cv_build+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420 ac_cv_build_alias=$build_alias
1421 test -z "$ac_cv_build_alias" &&
1422 ac_cv_build_alias=`$ac_config_guess`
1423 test -z "$ac_cv_build_alias" &&
1424 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1425 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1426 { (exit 1); exit 1; }; }
1427 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1428 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1429 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1430 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1434 echo "${ECHO_T}$ac_cv_build" >&6
1435 build=$ac_cv_build
1436 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441 echo "$as_me:$LINENO: checking host system type" >&5
1442 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1443 if test "${ac_cv_host+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 ac_cv_host_alias=$host_alias
1447 test -z "$ac_cv_host_alias" &&
1448 ac_cv_host_alias=$ac_cv_build_alias
1449 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1450 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1451 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1452 { (exit 1); exit 1; }; }
1455 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1456 echo "${ECHO_T}$ac_cv_host" >&6
1457 host=$ac_cv_host
1458 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1459 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1460 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1463 echo "$as_me:$LINENO: checking target system type" >&5
1464 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1465 if test "${ac_cv_target+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468 ac_cv_target_alias=$target_alias
1469 test "x$ac_cv_target_alias" = "x" &&
1470 ac_cv_target_alias=$ac_cv_host_alias
1471 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1473 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1474 { (exit 1); exit 1; }; }
1477 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1478 echo "${ECHO_T}$ac_cv_target" >&6
1479 target=$ac_cv_target
1480 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1481 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1482 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1485 # The aliases save the names the user supplied, while $host etc.
1486 # will get canonicalized.
1487 test -n "$target_alias" &&
1488 test "$program_prefix$program_suffix$program_transform_name" = \
1489 NONENONEs,x,x, &&
1490 program_prefix=${target_alias}-
1492 # Determine the noncanonical target name, for directory use.
1493 case ${build_alias} in
1494 "") build_noncanonical=${build} ;;
1495 *) build_noncanonical=${build_alias} ;;
1496 esac
1498 case ${host_alias} in
1499 "") host_noncanonical=${build_noncanonical} ;;
1500 *) host_noncanonical=${host_alias} ;;
1501 esac
1503 case ${target_alias} in
1504 "") target_noncanonical=${host_noncanonical} ;;
1505 *) target_noncanonical=${target_alias} ;;
1506 esac
1509 # Determine the target- and build-specific subdirectories
1510 # Prefix 'build-' so this never conflicts with target_subdir.
1511 build_subdir="build-${build_noncanonical}"
1512 # Not really a subdirectory, but here for completeness.
1513 host_subdir=.
1514 # No prefix.
1515 target_subdir=${target_noncanonical}
1518 # Set program_transform_name
1519 test "$program_prefix" != NONE &&
1520 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1521 # Use a double $ so make ignores it.
1522 test "$program_suffix" != NONE &&
1523 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1524 # Double any \ or $. echo might interpret backslashes.
1525 # By default was `s,x,x', remove it if useless.
1526 cat <<\_ACEOF >conftest.sed
1527 s/[\\$]/&&/g;s/;s,x,x,$//
1528 _ACEOF
1529 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1530 rm conftest.sed
1533 # Check for bogus environment variables.
1534 # Test if LIBRARY_PATH contains the notation for the current directory
1535 # since this would lead to problems installing/building glibc.
1536 # LIBRARY_PATH contains the current directory if one of the following
1537 # is true:
1538 # - one of the terminals (":" and ";") is the first or last sign
1539 # - two terminals occur directly after each other
1540 # - the path contains an element with a dot in it
1541 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1542 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1543 case ${LIBRARY_PATH} in
1544 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1545 library_path_setting="contains current directory"
1548 library_path_setting="ok"
1550 esac
1551 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1552 echo "${ECHO_T}$library_path_setting" >&6
1553 if test "$library_path_setting" != "ok"; then
1554 { { echo "$as_me:$LINENO: error:
1555 *** LIBRARY_PATH shouldn't contain the current directory when
1556 *** building gcc. Please change the environment variable
1557 *** and run configure again." >&5
1558 echo "$as_me: error:
1559 *** LIBRARY_PATH shouldn't contain the current directory when
1560 *** building gcc. Please change the environment variable
1561 *** and run configure again." >&2;}
1562 { (exit 1); exit 1; }; }
1565 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1566 # since this would lead to problems installing/building glibc.
1567 # GCC_EXEC_PREFIX contains the current directory if one of the following
1568 # is true:
1569 # - one of the terminals (":" and ";") is the first or last sign
1570 # - two terminals occur directly after each other
1571 # - the path contains an element with a dot in it
1572 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1573 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1574 case ${GCC_EXEC_PREFIX} in
1575 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1576 gcc_exec_prefix_setting="contains current directory"
1579 gcc_exec_prefix_setting="ok"
1581 esac
1582 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1583 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1584 if test "$gcc_exec_prefix_setting" != "ok"; then
1585 { { echo "$as_me:$LINENO: error:
1586 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1587 *** building gcc. Please change the environment variable
1588 *** and run configure again." >&5
1589 echo "$as_me: error:
1590 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1591 *** building gcc. Please change the environment variable
1592 *** and run configure again." >&2;}
1593 { (exit 1); exit 1; }; }
1596 # -----------
1597 # Directories
1598 # -----------
1600 # Specify the local prefix
1601 local_prefix=
1603 # Check whether --with-local-prefix or --without-local-prefix was given.
1604 if test "${with_local_prefix+set}" = set; then
1605 withval="$with_local_prefix"
1606 case "${withval}" in
1607 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1608 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1609 { (exit 1); exit 1; }; } ;;
1610 no) ;;
1611 *) local_prefix=$with_local_prefix ;;
1612 esac
1615 # Default local prefix if it is empty
1616 if test x$local_prefix = x; then
1617 local_prefix=/usr/local
1620 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1621 # passed in by the toplevel make and thus we'd get different behavior
1622 # depending on where we built the sources.
1623 gcc_gxx_include_dir=
1624 # Specify the g++ header file directory
1626 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1627 if test "${with_gxx_include_dir+set}" = set; then
1628 withval="$with_gxx_include_dir"
1629 case "${withval}" in
1630 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1631 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1632 { (exit 1); exit 1; }; } ;;
1633 no) ;;
1634 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1635 esac
1638 if test x${gcc_gxx_include_dir} = x; then
1639 if test x${enable_version_specific_runtime_libs} = xyes; then
1640 gcc_gxx_include_dir='${libsubdir}/include/c++'
1641 else
1642 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1643 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1648 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1649 if test "${with_cpp_install_dir+set}" = set; then
1650 withval="$with_cpp_install_dir"
1651 if test x$withval = xyes; then
1652 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1653 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1654 { (exit 1); exit 1; }; }
1655 elif test x$withval != xno; then
1656 cpp_install_dir=$withval
1660 # We would like to our source tree to be readonly. However when releases or
1661 # pre-releases are generated, the flex/bison generated files as well as the
1662 # various formats of manuals need to be included along with the rest of the
1663 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1664 # just that.
1666 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1667 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1668 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1669 if test "${enable_generated_files_in_srcdir+set}" = set; then
1670 enableval="$enable_generated_files_in_srcdir"
1671 generated_files_in_srcdir=$enableval
1672 else
1673 generated_files_in_srcdir=no
1676 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1677 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1679 if test "$generated_files_in_srcdir" = "yes"; then
1680 GENINSRC=''
1681 else
1682 GENINSRC='#'
1686 # -------------------
1687 # Find default linker
1688 # -------------------
1690 # With GNU ld
1692 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1693 if test "${with_gnu_ld+set}" = set; then
1694 withval="$with_gnu_ld"
1695 gnu_ld_flag="$with_gnu_ld"
1696 else
1697 gnu_ld_flag=no
1700 # With pre-defined ld
1702 # Check whether --with-ld or --without-ld was given.
1703 if test "${with_ld+set}" = set; then
1704 withval="$with_ld"
1705 DEFAULT_LINKER="$with_ld"
1707 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1708 if test ! -x "$DEFAULT_LINKER"; then
1709 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1710 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1711 { (exit 1); exit 1; }; }
1712 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1713 gnu_ld_flag=yes
1716 cat >>confdefs.h <<_ACEOF
1717 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1718 _ACEOF
1722 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1723 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1724 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1725 if test x"$gnu_ld_flag" = x"no"; then
1726 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1727 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1728 else
1729 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1730 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1737 # ----------------------
1738 # Find default assembler
1739 # ----------------------
1741 # With GNU as
1743 # Check whether --with-gnu-as or --without-gnu-as was given.
1744 if test "${with_gnu_as+set}" = set; then
1745 withval="$with_gnu_as"
1746 gas_flag="$with_gnu_as"
1747 else
1748 gas_flag=no
1752 # Check whether --with-as or --without-as was given.
1753 if test "${with_as+set}" = set; then
1754 withval="$with_as"
1755 DEFAULT_ASSEMBLER="$with_as"
1757 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1758 if test ! -x "$DEFAULT_ASSEMBLER"; then
1759 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1760 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1761 { (exit 1); exit 1; }; }
1762 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1763 gas_flag=yes
1766 cat >>confdefs.h <<_ACEOF
1767 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1768 _ACEOF
1772 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1773 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1774 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1775 if test x"$gas_flag" = x"no"; then
1776 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1777 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1778 else
1779 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1780 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1787 # ---------------
1788 # Find C compiler
1789 # ---------------
1791 # If a non-executable a.out is present (e.g. created by GNU as above even if
1792 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1793 # file, even when creating an executable, so an execution test fails.
1794 # Remove possible default executable files to avoid this.
1796 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1797 # Autoconf includes it.
1798 rm -f a.out a.exe b.out
1800 # Find the native compiler
1801 ac_ext=c
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 if test -n "$ac_tool_prefix"; then
1807 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1808 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC="$CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1828 done
1829 done
1833 CC=$ac_cv_prog_CC
1834 if test -n "$CC"; then
1835 echo "$as_me:$LINENO: result: $CC" >&5
1836 echo "${ECHO_T}$CC" >&6
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1843 if test -z "$ac_cv_prog_CC"; then
1844 ac_ct_CC=$CC
1845 # Extract the first word of "gcc", so it can be a program name with args.
1846 set dummy gcc; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$ac_ct_CC"; then
1853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_ac_ct_CC="gcc"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1866 done
1867 done
1871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872 if test -n "$ac_ct_CC"; then
1873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874 echo "${ECHO_T}$ac_ct_CC" >&6
1875 else
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1880 CC=$ac_ct_CC
1881 else
1882 CC="$ac_cv_prog_CC"
1885 if test -z "$CC"; then
1886 if test -n "$ac_tool_prefix"; then
1887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1888 set dummy ${ac_tool_prefix}cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_CC="${ac_tool_prefix}cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1908 done
1909 done
1913 CC=$ac_cv_prog_CC
1914 if test -n "$CC"; then
1915 echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6
1917 else
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1923 if test -z "$ac_cv_prog_CC"; then
1924 ac_ct_CC=$CC
1925 # Extract the first word of "cc", so it can be a program name with args.
1926 set dummy cc; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 if test -n "$ac_ct_CC"; then
1933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_ac_ct_CC="cc"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 break 2
1946 done
1947 done
1951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952 if test -n "$ac_ct_CC"; then
1953 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954 echo "${ECHO_T}$ac_ct_CC" >&6
1955 else
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1960 CC=$ac_ct_CC
1961 else
1962 CC="$ac_cv_prog_CC"
1966 if test -z "$CC"; then
1967 # Extract the first word of "cc", so it can be a program name with args.
1968 set dummy cc; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 ac_prog_rejected=no
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1986 ac_prog_rejected=yes
1987 continue
1989 ac_cv_prog_CC="cc"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 break 2
1993 done
1994 done
1996 if test $ac_prog_rejected = yes; then
1997 # We found a bogon in the path, so make sure we never use it.
1998 set dummy $ac_cv_prog_CC
1999 shift
2000 if test $# != 0; then
2001 # We chose a different compiler from the bogus one.
2002 # However, it has the same basename, so the bogon will be chosen
2003 # first if we set CC to just the basename; use the full file name.
2004 shift
2005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2010 CC=$ac_cv_prog_CC
2011 if test -n "$CC"; then
2012 echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2014 else
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2020 if test -z "$CC"; then
2021 if test -n "$ac_tool_prefix"; then
2022 for ac_prog in cl
2024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$CC"; then
2032 ac_cv_prog_CC="$CC" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2045 done
2046 done
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2059 test -n "$CC" && break
2060 done
2062 if test -z "$CC"; then
2063 ac_ct_CC=$CC
2064 for ac_prog in cl
2066 # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$ac_ct_CC"; then
2074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_ac_ct_CC="$ac_prog"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093 if test -n "$ac_ct_CC"; then
2094 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095 echo "${ECHO_T}$ac_ct_CC" >&6
2096 else
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2101 test -n "$ac_ct_CC" && break
2102 done
2104 CC=$ac_ct_CC
2110 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&2;}
2114 { (exit 1); exit 1; }; }
2116 # Provide some information about the compiler.
2117 echo "$as_me:$LINENO:" \
2118 "checking for C compiler version" >&5
2119 ac_compiler=`set X $ac_compile; echo $2`
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2121 (eval $ac_compiler --version </dev/null >&5) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2126 (eval $ac_compiler -v </dev/null >&5) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2131 (eval $ac_compiler -V </dev/null >&5) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2136 cat >conftest.$ac_ext <<_ACEOF
2137 /* confdefs.h. */
2138 _ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2144 main ()
2148 return 0;
2150 _ACEOF
2151 ac_clean_files_save=$ac_clean_files
2152 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2153 # Try to create an executable without -o first, disregard a.out.
2154 # It will help us diagnose broken compilers, and finding out an intuition
2155 # of exeext.
2156 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2157 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2158 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2159 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2160 (eval $ac_link_default) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; then
2164 # Find the output, starting from the most likely. This scheme is
2165 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2166 # resort.
2168 # Be careful to initialize this variable, since it used to be cached.
2169 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2170 ac_cv_exeext=
2171 # b.out is created by i960 compilers.
2172 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2174 test -f "$ac_file" || continue
2175 case $ac_file in
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2178 conftest.$ac_ext )
2179 # This is the source file.
2181 [ab].out )
2182 # We found the default executable, but exeext='' is most
2183 # certainly right.
2184 break;;
2185 *.* )
2186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187 # FIXME: I believe we export ac_cv_exeext for Libtool,
2188 # but it would be cool to find out if it's true. Does anybody
2189 # maintain Libtool? --akim.
2190 export ac_cv_exeext
2191 break;;
2193 break;;
2194 esac
2195 done
2196 else
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2200 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&2;}
2204 { (exit 77); exit 77; }; }
2207 ac_exeext=$ac_cv_exeext
2208 echo "$as_me:$LINENO: result: $ac_file" >&5
2209 echo "${ECHO_T}$ac_file" >&6
2211 # Check the compiler produces executables we can run. If not, either
2212 # the compiler is broken, or we cross compile.
2213 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2215 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216 # If not cross compiling, check that we can run a simple program.
2217 if test "$cross_compiling" != yes; then
2218 if { ac_try='./$ac_file'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 cross_compiling=no
2225 else
2226 if test "$cross_compiling" = maybe; then
2227 cross_compiling=yes
2228 else
2229 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&2;}
2235 { (exit 1); exit 1; }; }
2239 echo "$as_me:$LINENO: result: yes" >&5
2240 echo "${ECHO_T}yes" >&6
2242 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2243 ac_clean_files=$ac_clean_files_save
2244 # Check the compiler produces executables we can run. If not, either
2245 # the compiler is broken, or we cross compile.
2246 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2247 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2248 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2249 echo "${ECHO_T}$cross_compiling" >&6
2251 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2252 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2254 (eval $ac_link) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; then
2258 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2259 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2260 # work properly (i.e., refer to `conftest.exe'), while it won't with
2261 # `rm'.
2262 for ac_file in conftest.exe conftest conftest.*; do
2263 test -f "$ac_file" || continue
2264 case $ac_file in
2265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2266 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2267 export ac_cv_exeext
2268 break;;
2269 * ) break;;
2270 esac
2271 done
2272 else
2273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
2280 rm -f conftest$ac_cv_exeext
2281 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2286 ac_exeext=$EXEEXT
2287 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2289 if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h. */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2300 main ()
2304 return 0;
2306 _ACEOF
2307 rm -f conftest.o conftest.obj
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
2313 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2314 case $ac_file in
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2317 break;;
2318 esac
2319 done
2320 else
2321 echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2333 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2334 echo "${ECHO_T}$ac_cv_objext" >&6
2335 OBJEXT=$ac_cv_objext
2336 ac_objext=$OBJEXT
2337 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2338 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2339 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h. */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2350 main ()
2352 #ifndef __GNUC__
2353 choke me
2354 #endif
2357 return 0;
2359 _ACEOF
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>conftest.er1
2363 ac_status=$?
2364 grep -v '^ *+' conftest.er1 >conftest.err
2365 rm -f conftest.er1
2366 cat conftest.err >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try='test -z "$ac_c_werror_flag"
2370 || test ! -s conftest.err'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; } &&
2376 { ac_try='test -s conftest.$ac_objext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2382 ac_compiler_gnu=yes
2383 else
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2387 ac_compiler_gnu=no
2389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2393 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2394 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2395 GCC=`test $ac_compiler_gnu = yes && echo yes`
2396 ac_test_CFLAGS=${CFLAGS+set}
2397 ac_save_CFLAGS=$CFLAGS
2398 CFLAGS="-g"
2399 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2400 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2401 if test "${ac_cv_prog_cc_g+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404 cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h. */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2412 main ()
2416 return 0;
2418 _ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2422 ac_status=$?
2423 grep -v '^ *+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 ac_cv_prog_cc_g=yes
2442 else
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2446 ac_cv_prog_cc_g=no
2448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2451 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2452 if test "$ac_test_CFLAGS" = set; then
2453 CFLAGS=$ac_save_CFLAGS
2454 elif test $ac_cv_prog_cc_g = yes; then
2455 if test "$GCC" = yes; then
2456 CFLAGS="-g -O2"
2457 else
2458 CFLAGS="-g"
2460 else
2461 if test "$GCC" = yes; then
2462 CFLAGS="-O2"
2463 else
2464 CFLAGS=
2467 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2468 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2469 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472 ac_cv_prog_cc_stdc=no
2473 ac_save_CC=$CC
2474 cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h. */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2480 #include <stdarg.h>
2481 #include <stdio.h>
2482 #include <sys/types.h>
2483 #include <sys/stat.h>
2484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2485 struct buf { int x; };
2486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2487 static char *e (p, i)
2488 char **p;
2489 int i;
2491 return p[i];
2493 static char *f (char * (*g) (char **, int), char **p, ...)
2495 char *s;
2496 va_list v;
2497 va_start (v,p);
2498 s = g (p, va_arg (v,int));
2499 va_end (v);
2500 return s;
2503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2504 function prototypes and stuff, but not '\xHH' hex character constants.
2505 These don't provoke an error unfortunately, instead are silently treated
2506 as 'x'. The following induces an error, until -std1 is added to get
2507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2508 array size at least. It's necessary to write '\x00'==0 to get something
2509 that's true only with -std1. */
2510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2512 int test (int i, double x);
2513 struct s1 {int (*f) (int a);};
2514 struct s2 {int (*f) (double a);};
2515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2516 int argc;
2517 char **argv;
2519 main ()
2521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2523 return 0;
2525 _ACEOF
2526 # Don't try gcc -ansi; that turns off useful extensions and
2527 # breaks some systems' header files.
2528 # AIX -qlanglvl=ansi
2529 # Ultrix and OSF/1 -std1
2530 # HP-UX 10.20 and later -Ae
2531 # HP-UX older versions -Aa -D_HPUX_SOURCE
2532 # SVR4 -Xc -D__EXTENSIONS__
2533 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2535 CC="$ac_save_CC $ac_arg"
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>conftest.er1
2539 ac_status=$?
2540 grep -v '^ *+' conftest.er1 >conftest.err
2541 rm -f conftest.er1
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -z "$ac_c_werror_flag"
2546 || test ! -s conftest.err'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 (eval $ac_try) 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try='test -s conftest.$ac_objext'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2558 ac_cv_prog_cc_stdc=$ac_arg
2559 break
2560 else
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2565 rm -f conftest.err conftest.$ac_objext
2566 done
2567 rm -f conftest.$ac_ext conftest.$ac_objext
2568 CC=$ac_save_CC
2572 case "x$ac_cv_prog_cc_stdc" in
2573 x|xno)
2574 echo "$as_me:$LINENO: result: none needed" >&5
2575 echo "${ECHO_T}none needed" >&6 ;;
2577 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2578 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2579 CC="$CC $ac_cv_prog_cc_stdc" ;;
2580 esac
2582 # Some people use a C++ compiler to compile C. Since we use `exit',
2583 # in C++ we need to declare it. In case someone uses the same compiler
2584 # for both compiling C and C++ we need to have the C++ compiler decide
2585 # the declaration of exit, since it's the most demanding environment.
2586 cat >conftest.$ac_ext <<_ACEOF
2587 #ifndef __cplusplus
2588 choke me
2589 #endif
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>conftest.er1
2594 ac_status=$?
2595 grep -v '^ *+' conftest.er1 >conftest.err
2596 rm -f conftest.er1
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -z "$ac_c_werror_flag"
2601 || test ! -s conftest.err'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 for ac_declaration in \
2614 '' \
2615 'extern "C" void std::exit (int) throw (); using std::exit;' \
2616 'extern "C" void std::exit (int); using std::exit;' \
2617 'extern "C" void exit (int) throw ();' \
2618 'extern "C" void exit (int);' \
2619 'void exit (int);'
2621 cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h. */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2627 $ac_declaration
2628 #include <stdlib.h>
2630 main ()
2632 exit (42);
2634 return 0;
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>conftest.er1
2640 ac_status=$?
2641 grep -v '^ *+' conftest.er1 >conftest.err
2642 rm -f conftest.er1
2643 cat conftest.err >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } &&
2646 { ac_try='test -z "$ac_c_werror_flag"
2647 || test ! -s conftest.err'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 continue
2666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2667 cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h. */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2673 $ac_declaration
2675 main ()
2677 exit (42);
2679 return 0;
2681 _ACEOF
2682 rm -f conftest.$ac_objext
2683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684 (eval $ac_compile) 2>conftest.er1
2685 ac_status=$?
2686 grep -v '^ *+' conftest.er1 >conftest.err
2687 rm -f conftest.er1
2688 cat conftest.err >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try='test -z "$ac_c_werror_flag"
2692 || test ! -s conftest.err'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; } &&
2698 { ac_try='test -s conftest.$ac_objext'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 (eval $ac_try) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; }; then
2704 break
2705 else
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2711 done
2712 rm -f conftest*
2713 if test -n "$ac_declaration"; then
2714 echo '#ifdef __cplusplus' >>confdefs.h
2715 echo $ac_declaration >>confdefs.h
2716 echo '#endif' >>confdefs.h
2719 else
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731 if test "x$CC" != xcc; then
2732 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2733 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2734 else
2735 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2736 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2738 set dummy $CC; ac_cc=`echo $2 |
2739 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2740 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2751 main ()
2755 return 0;
2757 _ACEOF
2758 # Make sure it works both with $CC and with simple cc.
2759 # We do the test twice because some compilers refuse to overwrite an
2760 # existing .o file with -o, though they will create one.
2761 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2762 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); };
2772 then
2773 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2774 if test "x$CC" != xcc; then
2775 # Test first that cc exists at all.
2776 if { ac_try='cc -c conftest.$ac_ext >&5'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2783 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); };
2793 then
2794 # cc works too.
2796 else
2797 # cc exists but doesn't like -o.
2798 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2802 else
2803 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2805 rm -f conftest*
2808 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2809 echo "$as_me:$LINENO: result: yes" >&5
2810 echo "${ECHO_T}yes" >&6
2811 else
2812 echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6
2815 cat >>confdefs.h <<\_ACEOF
2816 #define NO_MINUS_C_MINUS_O 1
2817 _ACEOF
2821 # autoconf is lame and doesn't give us any substitution variable for this.
2822 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2823 NO_MINUS_C_MINUS_O=yes
2824 else
2825 OUTPUT_OPTION='-o $@'
2830 # -------------------------
2831 # Check C compiler features
2832 # -------------------------
2834 ac_ext=c
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2840 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2841 # On Suns, sometimes $CPP names a directory.
2842 if test -n "$CPP" && test -d "$CPP"; then
2843 CPP=
2845 if test -z "$CPP"; then
2846 if test "${ac_cv_prog_CPP+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 # Double quotes because CPP needs to be expanded
2850 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2852 ac_preproc_ok=false
2853 for ac_c_preproc_warn_flag in '' yes
2855 # Use a header file that comes with gcc, so configuring glibc
2856 # with a fresh cross-compiler works.
2857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2858 # <limits.h> exists even on freestanding compilers.
2859 # On the NeXT, cc -E runs the code through the compiler's parser,
2860 # not just through cpp. "Syntax error" is here to catch this case.
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h. */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867 #ifdef __STDC__
2868 # include <limits.h>
2869 #else
2870 # include <assert.h>
2871 #endif
2872 Syntax error
2873 _ACEOF
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev/null; then
2882 if test -s conftest.err; then
2883 ac_cpp_err=$ac_c_preproc_warn_flag
2884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2885 else
2886 ac_cpp_err=
2888 else
2889 ac_cpp_err=yes
2891 if test -z "$ac_cpp_err"; then
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 # Broken: fails on valid input.
2898 continue
2900 rm -f conftest.err conftest.$ac_ext
2902 # OK, works on sane cases. Now check whether non-existent headers
2903 # can be detected and how.
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 #include <ac_nonexistent.h>
2911 _ACEOF
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914 ac_status=$?
2915 grep -v '^ *+' conftest.er1 >conftest.err
2916 rm -f conftest.er1
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } >/dev/null; then
2920 if test -s conftest.err; then
2921 ac_cpp_err=$ac_c_preproc_warn_flag
2922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2923 else
2924 ac_cpp_err=
2926 else
2927 ac_cpp_err=yes
2929 if test -z "$ac_cpp_err"; then
2930 # Broken: success on invalid input.
2931 continue
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 # Passes both tests.
2937 ac_preproc_ok=:
2938 break
2940 rm -f conftest.err conftest.$ac_ext
2942 done
2943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2944 rm -f conftest.err conftest.$ac_ext
2945 if $ac_preproc_ok; then
2946 break
2949 done
2950 ac_cv_prog_CPP=$CPP
2953 CPP=$ac_cv_prog_CPP
2954 else
2955 ac_cv_prog_CPP=$CPP
2957 echo "$as_me:$LINENO: result: $CPP" >&5
2958 echo "${ECHO_T}$CPP" >&6
2959 ac_preproc_ok=false
2960 for ac_c_preproc_warn_flag in '' yes
2962 # Use a header file that comes with gcc, so configuring glibc
2963 # with a fresh cross-compiler works.
2964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2965 # <limits.h> exists even on freestanding compilers.
2966 # On the NeXT, cc -E runs the code through the compiler's parser,
2967 # not just through cpp. "Syntax error" is here to catch this case.
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h. */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 #ifdef __STDC__
2975 # include <limits.h>
2976 #else
2977 # include <assert.h>
2978 #endif
2979 Syntax error
2980 _ACEOF
2981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2983 ac_status=$?
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } >/dev/null; then
2989 if test -s conftest.err; then
2990 ac_cpp_err=$ac_c_preproc_warn_flag
2991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2992 else
2993 ac_cpp_err=
2995 else
2996 ac_cpp_err=yes
2998 if test -z "$ac_cpp_err"; then
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 # Broken: fails on valid input.
3005 continue
3007 rm -f conftest.err conftest.$ac_ext
3009 # OK, works on sane cases. Now check whether non-existent headers
3010 # can be detected and how.
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #include <ac_nonexistent.h>
3018 _ACEOF
3019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } >/dev/null; then
3027 if test -s conftest.err; then
3028 ac_cpp_err=$ac_c_preproc_warn_flag
3029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030 else
3031 ac_cpp_err=
3033 else
3034 ac_cpp_err=yes
3036 if test -z "$ac_cpp_err"; then
3037 # Broken: success on invalid input.
3038 continue
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 # Passes both tests.
3044 ac_preproc_ok=:
3045 break
3047 rm -f conftest.err conftest.$ac_ext
3049 done
3050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051 rm -f conftest.err conftest.$ac_ext
3052 if $ac_preproc_ok; then
3054 else
3055 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3058 See \`config.log' for more details." >&2;}
3059 { (exit 1); exit 1; }; }
3062 ac_ext=c
3063 ac_cpp='$CPP $CPPFLAGS'
3064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069 echo "$as_me:$LINENO: checking for inline" >&5
3070 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3071 if test "${ac_cv_c_inline+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074 ac_cv_c_inline=no
3075 for ac_kw in inline __inline__ __inline; do
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h. */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082 #ifndef __cplusplus
3083 typedef int foo_t;
3084 static $ac_kw foo_t static_foo () {return 0; }
3085 $ac_kw foo_t foo () {return 0; }
3086 #endif
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_cv_c_inline=$ac_kw; break
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118 done
3121 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3122 echo "${ECHO_T}$ac_cv_c_inline" >&6
3125 case $ac_cv_c_inline in
3126 inline | yes) ;;
3128 case $ac_cv_c_inline in
3129 no) ac_val=;;
3130 *) ac_val=$ac_cv_c_inline;;
3131 esac
3132 cat >>confdefs.h <<_ACEOF
3133 #ifndef __cplusplus
3134 #define inline $ac_val
3135 #endif
3136 _ACEOF
3138 esac
3141 echo "$as_me:$LINENO: checking for long long int" >&5
3142 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3143 if test "${ac_cv_c_long_long+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h. */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3154 main ()
3156 long long int i;
3158 return 0;
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163 (eval $ac_compile) 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_c_werror_flag"
3171 || test ! -s conftest.err'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_c_long_long=yes
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 ac_cv_c_long_long=no
3190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3193 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3194 if test $ac_cv_c_long_long = yes; then
3196 cat >>confdefs.h <<\_ACEOF
3197 #define HAVE_LONG_LONG 1
3198 _ACEOF
3201 echo "$as_me:$LINENO: checking for __int64" >&5
3202 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3203 if test "${ac_cv_c___int64+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3214 main ()
3216 __int64 i;
3218 return 0;
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223 (eval $ac_compile) 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag"
3231 || test ! -s conftest.err'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; } &&
3237 { ac_try='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 ac_cv_c___int64=yes
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 ac_cv_c___int64=no
3250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3252 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3253 echo "${ECHO_T}$ac_cv_c___int64" >&6
3254 if test $ac_cv_c___int64 = yes; then
3256 cat >>confdefs.h <<\_ACEOF
3257 #define HAVE___INT64 1
3258 _ACEOF
3263 # sizeof(char) is 1 by definition.
3264 echo "$as_me:$LINENO: checking size of void *" >&5
3265 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3266 if test "${ac_cv_sizeof_void_p+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3270 cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h. */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276 #include "confdefs.h"
3277 #include <sys/types.h>
3281 main ()
3283 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3285 return 0;
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -z "$ac_c_werror_flag"
3298 || test ! -s conftest.err'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; } &&
3304 { ac_try='test -s conftest.$ac_objext'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 (eval $ac_try) 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; }; then
3310 ac_cv_sizeof_void_p=$ac_size
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3317 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3318 done
3322 if test x$ac_cv_sizeof_void_p = x ; then
3323 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3324 echo "$as_me: error: cannot determine a size for void *" >&2;}
3325 { (exit 1); exit 1; }; }
3327 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3328 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3330 cat >>confdefs.h <<_ACEOF
3331 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3332 _ACEOF
3335 echo "$as_me:$LINENO: checking size of short" >&5
3336 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3337 if test "${ac_cv_sizeof_short+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #include "confdefs.h"
3348 #include <sys/types.h>
3352 main ()
3354 switch (0) case 0: case (sizeof (short) == $ac_size):;
3356 return 0;
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -z "$ac_c_werror_flag"
3369 || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 ac_cv_sizeof_short=$ac_size
3382 else
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3388 if test x$ac_cv_sizeof_short != x ; then break; fi
3389 done
3393 if test x$ac_cv_sizeof_short = x ; then
3394 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3395 echo "$as_me: error: cannot determine a size for short" >&2;}
3396 { (exit 1); exit 1; }; }
3398 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3399 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3401 cat >>confdefs.h <<_ACEOF
3402 #define SIZEOF_SHORT $ac_cv_sizeof_short
3403 _ACEOF
3406 echo "$as_me:$LINENO: checking size of int" >&5
3407 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3408 if test "${ac_cv_sizeof_int+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3412 cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 #include "confdefs.h"
3419 #include <sys/types.h>
3423 main ()
3425 switch (0) case 0: case (sizeof (int) == $ac_size):;
3427 return 0;
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432 (eval $ac_compile) 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } &&
3439 { ac_try='test -z "$ac_c_werror_flag"
3440 || test ! -s conftest.err'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; } &&
3446 { ac_try='test -s conftest.$ac_objext'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 (eval $ac_try) 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3452 ac_cv_sizeof_int=$ac_size
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3459 if test x$ac_cv_sizeof_int != x ; then break; fi
3460 done
3464 if test x$ac_cv_sizeof_int = x ; then
3465 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3466 echo "$as_me: error: cannot determine a size for int" >&2;}
3467 { (exit 1); exit 1; }; }
3469 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3470 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3472 cat >>confdefs.h <<_ACEOF
3473 #define SIZEOF_INT $ac_cv_sizeof_int
3474 _ACEOF
3477 echo "$as_me:$LINENO: checking size of long" >&5
3478 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3479 if test "${ac_cv_sizeof_long+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3483 cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h. */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 #include "confdefs.h"
3490 #include <sys/types.h>
3494 main ()
3496 switch (0) case 0: case (sizeof (long) == $ac_size):;
3498 return 0;
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try='test -z "$ac_c_werror_flag"
3511 || test ! -s conftest.err'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 (eval $ac_try) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; } &&
3517 { ac_try='test -s conftest.$ac_objext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 ac_cv_sizeof_long=$ac_size
3524 else
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3530 if test x$ac_cv_sizeof_long != x ; then break; fi
3531 done
3535 if test x$ac_cv_sizeof_long = x ; then
3536 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3537 echo "$as_me: error: cannot determine a size for long" >&2;}
3538 { (exit 1); exit 1; }; }
3540 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3541 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3543 cat >>confdefs.h <<_ACEOF
3544 #define SIZEOF_LONG $ac_cv_sizeof_long
3545 _ACEOF
3548 if test $ac_cv_c_long_long = yes; then
3549 echo "$as_me:$LINENO: checking size of long long" >&5
3550 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3551 if test "${ac_cv_sizeof_long_long+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 #include "confdefs.h"
3562 #include <sys/types.h>
3566 main ()
3568 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3570 return 0;
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575 (eval $ac_compile) 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -z "$ac_c_werror_flag"
3583 || test ! -s conftest.err'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; } &&
3589 { ac_try='test -s conftest.$ac_objext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 ac_cv_sizeof_long_long=$ac_size
3596 else
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3602 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3603 done
3607 if test x$ac_cv_sizeof_long_long = x ; then
3608 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3609 echo "$as_me: error: cannot determine a size for long long" >&2;}
3610 { (exit 1); exit 1; }; }
3612 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3613 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3615 cat >>confdefs.h <<_ACEOF
3616 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3617 _ACEOF
3621 if test $ac_cv_c___int64 = yes; then
3622 echo "$as_me:$LINENO: checking size of __int64" >&5
3623 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3624 if test "${ac_cv_sizeof___int64+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include "confdefs.h"
3635 #include <sys/types.h>
3639 main ()
3641 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3643 return 0;
3645 _ACEOF
3646 rm -f conftest.$ac_objext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>conftest.er1
3649 ac_status=$?
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -z "$ac_c_werror_flag"
3656 || test ! -s conftest.err'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; } &&
3662 { ac_try='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 ac_cv_sizeof___int64=$ac_size
3669 else
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3675 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3676 done
3680 if test x$ac_cv_sizeof___int64 = x ; then
3681 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3682 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3683 { (exit 1); exit 1; }; }
3685 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3686 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3688 cat >>confdefs.h <<_ACEOF
3689 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3690 _ACEOF
3695 # ---------------------
3696 # Warnings and checking
3697 # ---------------------
3699 # Check $CC warning features (if it's GCC).
3700 # We want to use -pedantic, but we don't want warnings about
3701 # * 'long long'
3702 # * variadic macros
3703 # So, we only use -pedantic if we can disable those warnings.
3705 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3706 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3707 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 save_CFLAGS="$CFLAGS"
3711 CFLAGS="-Wno-long-long"
3712 cat >conftest.$ac_ext <<_ACEOF
3713 /* confdefs.h. */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3719 _ACEOF
3720 rm -f conftest.$ac_objext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try='test -s conftest.$ac_objext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 ac_cv_prog_cc_w_no_long_long=yes
3743 else
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 ac_cv_prog_cc_w_no_long_long=no
3749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3750 CFLAGS="$save_CFLAGS"
3753 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3754 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3756 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3757 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3758 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 save_CFLAGS="$CFLAGS"
3762 CFLAGS="-Wno-variadic-macros"
3763 cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h. */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3770 _ACEOF
3771 rm -f conftest.$ac_objext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773 (eval $ac_compile) 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try='test -z "$ac_c_werror_flag"
3781 || test ! -s conftest.err'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try='test -s conftest.$ac_objext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 ac_cv_prog_cc_w_no_variadic_macros=yes
3794 else
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 ac_cv_prog_cc_w_no_variadic_macros=no
3800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3801 CFLAGS="$save_CFLAGS"
3804 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3805 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3807 strict1_warn=
3808 if test $ac_cv_prog_cc_w_no_long_long = yes \
3809 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3810 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3814 # Add -Wold-style-definition if it's accepted
3815 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3816 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3817 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820 save_CFLAGS="$CFLAGS"
3821 CFLAGS="-Wold-style-definition"
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3829 _ACEOF
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest.$ac_objext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 ac_cv_prog_cc_w_old_style_definition=yes
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 ac_cv_prog_cc_w_old_style_definition=no
3859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3860 CFLAGS="$save_CFLAGS"
3863 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3864 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3865 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3866 strict1_warn="${strict1_warn} -Wold-style-definition"
3869 # Enable -Werror, period.
3870 # Check whether --enable-werror_always or --disable-werror_always was given.
3871 if test "${enable_werror_always+set}" = set; then
3872 enableval="$enable_werror_always"
3874 else
3875 enable_werror_always=no
3877 if test x${enable_werror_always} = xyes ; then
3878 strict1_warn="${strict1_warn} -Werror"
3879 WERROR=-Werror
3882 # If the native compiler is GCC, we can enable warnings even in stage1.
3883 # That's useful for people building cross-compilers, or just running a
3884 # quick `make'.
3885 warn_cflags=
3886 if test "x$GCC" = "xyes"; then
3887 warn_cflags='$(GCC_WARN_CFLAGS)'
3891 # Enable -Werror in bootstrap stage2 and later.
3892 # Change the default to "no" on release branches.
3893 # Check whether --enable-werror or --disable-werror was given.
3894 if test "${enable_werror+set}" = set; then
3895 enableval="$enable_werror"
3897 else
3898 enable_werror=yes
3900 if test x$enable_werror = xyes ; then
3901 WERROR=-Werror
3905 # Enable expensive internal checks
3906 # Check whether --enable-checking or --disable-checking was given.
3907 if test "${enable_checking+set}" = set; then
3908 enableval="$enable_checking"
3909 ac_checking=
3910 ac_tree_checking=
3911 ac_rtl_checking=
3912 ac_rtlflag_checking=
3913 ac_gc_checking=
3914 ac_gc_always_collect=
3915 ac_fold_checking=
3916 case "${enableval}" in
3917 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3918 ac_rtlflag_checking=1 ;;
3919 no) ;;
3920 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3921 set fnord $enableval; shift
3922 IFS="$ac_save_IFS"
3923 for check
3925 case $check in
3926 misc) ac_checking=1 ;;
3927 tree) ac_tree_checking=1 ;;
3928 rtlflag) ac_rtlflag_checking=1 ;;
3929 rtl) ac_rtl_checking=1 ;;
3930 gc) ac_gc_checking=1 ;;
3931 gcac) ac_gc_always_collect=1 ;;
3932 fold) ac_fold_checking=1 ;;
3933 valgrind) ac_checking_valgrind=1 ;;
3934 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3935 echo "$as_me: error: unknown check category $check" >&2;}
3936 { (exit 1); exit 1; }; } ;;
3937 esac
3938 done
3940 esac
3942 else
3943 # Enable some checks by default for development versions of GCC
3944 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3946 nocommon_flag=""
3947 if test x$ac_checking != x ; then
3949 cat >>confdefs.h <<\_ACEOF
3950 #define ENABLE_CHECKING 1
3951 _ACEOF
3953 nocommon_flag=-fno-common
3956 if test x$ac_tree_checking != x ; then
3958 cat >>confdefs.h <<\_ACEOF
3959 #define ENABLE_TREE_CHECKING 1
3960 _ACEOF
3962 TREEBROWSER=tree-browser.o
3965 if test x$ac_rtl_checking != x ; then
3967 cat >>confdefs.h <<\_ACEOF
3968 #define ENABLE_RTL_CHECKING 1
3969 _ACEOF
3972 if test x$ac_rtlflag_checking != x ; then
3974 cat >>confdefs.h <<\_ACEOF
3975 #define ENABLE_RTL_FLAG_CHECKING 1
3976 _ACEOF
3979 if test x$ac_gc_checking != x ; then
3981 cat >>confdefs.h <<\_ACEOF
3982 #define ENABLE_GC_CHECKING 1
3983 _ACEOF
3986 if test x$ac_gc_always_collect != x ; then
3988 cat >>confdefs.h <<\_ACEOF
3989 #define ENABLE_GC_ALWAYS_COLLECT 1
3990 _ACEOF
3993 if test x$ac_fold_checking != x ; then
3995 cat >>confdefs.h <<\_ACEOF
3996 #define ENABLE_FOLD_CHECKING 1
3997 _ACEOF
4000 valgrind_path_defines=
4001 valgrind_command=
4004 echo "$as_me:$LINENO: checking for egrep" >&5
4005 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4006 if test "${ac_cv_prog_egrep+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4010 then ac_cv_prog_egrep='grep -E'
4011 else ac_cv_prog_egrep='egrep'
4014 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4015 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4016 EGREP=$ac_cv_prog_egrep
4019 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4020 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4021 if test "${ac_cv_header_stdc+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h. */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 #include <stdlib.h>
4031 #include <stdarg.h>
4032 #include <string.h>
4033 #include <float.h>
4036 main ()
4040 return 0;
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_c_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_cv_header_stdc=yes
4066 else
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 ac_cv_header_stdc=no
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4074 if test $ac_cv_header_stdc = yes; then
4075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 #include <string.h>
4084 _ACEOF
4085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086 $EGREP "memchr" >/dev/null 2>&1; then
4088 else
4089 ac_cv_header_stdc=no
4091 rm -f conftest*
4095 if test $ac_cv_header_stdc = yes; then
4096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 #include <stdlib.h>
4105 _ACEOF
4106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4107 $EGREP "free" >/dev/null 2>&1; then
4109 else
4110 ac_cv_header_stdc=no
4112 rm -f conftest*
4116 if test $ac_cv_header_stdc = yes; then
4117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4118 if test "$cross_compiling" = yes; then
4120 else
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #include <ctype.h>
4128 #if ((' ' & 0x0FF) == 0x020)
4129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4130 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131 #else
4132 # define ISLOWER(c) \
4133 (('a' <= (c) && (c) <= 'i') \
4134 || ('j' <= (c) && (c) <= 'r') \
4135 || ('s' <= (c) && (c) <= 'z'))
4136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4137 #endif
4139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4141 main ()
4143 int i;
4144 for (i = 0; i < 256; i++)
4145 if (XOR (islower (i), ISLOWER (i))
4146 || toupper (i) != TOUPPER (i))
4147 exit(2);
4148 exit (0);
4150 _ACEOF
4151 rm -f conftest$ac_exeext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153 (eval $ac_link) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4163 else
4164 echo "$as_me: program exited with status $ac_status" >&5
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4168 ( exit $ac_status )
4169 ac_cv_header_stdc=no
4171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4175 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4176 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4177 if test $ac_cv_header_stdc = yes; then
4179 cat >>confdefs.h <<\_ACEOF
4180 #define STDC_HEADERS 1
4181 _ACEOF
4185 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4195 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4196 inttypes.h stdint.h unistd.h
4198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4199 echo "$as_me:$LINENO: checking for $ac_header" >&5
4200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 $ac_includes_default
4212 #include <$ac_header>
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try='test -z "$ac_c_werror_flag"
4224 || test ! -s conftest.err'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest.$ac_objext'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 eval "$as_ac_Header=yes"
4237 else
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 eval "$as_ac_Header=no"
4243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4248 cat >>confdefs.h <<_ACEOF
4249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4250 _ACEOF
4254 done
4257 if test "${ac_cv_header_valgrind_h+set}" = set; then
4258 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4259 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4260 if test "${ac_cv_header_valgrind_h+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4264 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4265 else
4266 # Is the header compilable?
4267 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4268 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 $ac_includes_default
4276 #include <valgrind.h>
4277 _ACEOF
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 ac_header_compiler=yes
4301 else
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 ac_header_compiler=no
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4309 echo "${ECHO_T}$ac_header_compiler" >&6
4311 # Is the header present?
4312 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4313 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #include <valgrind.h>
4321 _ACEOF
4322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4324 ac_status=$?
4325 grep -v '^ *+' conftest.er1 >conftest.err
4326 rm -f conftest.er1
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } >/dev/null; then
4330 if test -s conftest.err; then
4331 ac_cpp_err=$ac_c_preproc_warn_flag
4332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4333 else
4334 ac_cpp_err=
4336 else
4337 ac_cpp_err=yes
4339 if test -z "$ac_cpp_err"; then
4340 ac_header_preproc=yes
4341 else
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_header_preproc=no
4347 rm -f conftest.err conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4349 echo "${ECHO_T}$ac_header_preproc" >&6
4351 # So? What about this header?
4352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4353 yes:no: )
4354 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4355 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4356 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4357 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4358 ac_header_preproc=yes
4360 no:yes:* )
4361 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4362 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4363 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4364 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4365 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4366 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4368 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4369 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4370 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4371 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4372 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4374 cat <<\_ASBOX
4375 ## ------------------------------------------ ##
4376 ## Report this to the AC_PACKAGE_NAME lists. ##
4377 ## ------------------------------------------ ##
4378 _ASBOX
4380 sed "s/^/$as_me: WARNING: /" >&2
4382 esac
4383 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4384 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4385 if test "${ac_cv_header_valgrind_h+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 ac_cv_header_valgrind_h=$ac_header_preproc
4390 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4391 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4394 if test $ac_cv_header_valgrind_h = yes; then
4395 have_valgrind_h=yes
4396 else
4397 have_valgrind_h=no
4402 if test x$ac_checking_valgrind != x ; then
4403 # It is certainly possible that there's valgrind but no valgrind.h.
4404 # GCC relies on making annotations so we must have both.
4405 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4406 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <valgrind/memcheck.h>
4414 #ifndef VALGRIND_DISCARD
4415 #error VALGRIND_DISCARD not defined
4416 #endif
4417 _ACEOF
4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420 ac_status=$?
4421 grep -v '^ *+' conftest.er1 >conftest.err
4422 rm -f conftest.er1
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } >/dev/null; then
4426 if test -s conftest.err; then
4427 ac_cpp_err=$ac_c_preproc_warn_flag
4428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4429 else
4430 ac_cpp_err=
4432 else
4433 ac_cpp_err=yes
4435 if test -z "$ac_cpp_err"; then
4436 gcc_cv_header_valgrind_memcheck_h=yes
4437 else
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 gcc_cv_header_valgrind_memcheck_h=no
4443 rm -f conftest.err conftest.$ac_ext
4444 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4445 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4446 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4447 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h. */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #include <memcheck.h>
4455 #ifndef VALGRIND_DISCARD
4456 #error VALGRIND_DISCARD not defined
4457 #endif
4458 _ACEOF
4459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
4469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4470 else
4471 ac_cpp_err=
4473 else
4474 ac_cpp_err=yes
4476 if test -z "$ac_cpp_err"; then
4477 gcc_cv_header_memcheck_h=yes
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 gcc_cv_header_memcheck_h=no
4484 rm -f conftest.err conftest.$ac_ext
4485 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4486 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4488 # Prepare PATH_SEPARATOR.
4489 # The user is always right.
4490 if test "${PATH_SEPARATOR+set}" != set; then
4491 echo "#! /bin/sh" >conf$$.sh
4492 echo "exit 0" >>conf$$.sh
4493 chmod +x conf$$.sh
4494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4495 PATH_SEPARATOR=';'
4496 else
4497 PATH_SEPARATOR=:
4499 rm -f conf$$.sh
4502 # Find out how to test for executable files. Don't use a zero-byte file,
4503 # as systems may use methods other than mode bits to determine executability.
4504 cat >conf$$.file <<_ASEOF
4505 #! /bin/sh
4506 exit 0
4507 _ASEOF
4508 chmod +x conf$$.file
4509 if test -x conf$$.file >/dev/null 2>&1; then
4510 ac_executable_p="test -x"
4511 else
4512 ac_executable_p="test -f"
4514 rm -f conf$$.file
4516 # Extract the first word of "valgrind", so it can be a program name with args.
4517 set dummy valgrind; ac_word=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_path_valgrind_path+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 case "$valgrind_path" in
4524 [\\/]* | ?:[\\/]*)
4525 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4528 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4529 for ac_dir in $PATH; do
4530 IFS="$ac_save_IFS"
4531 test -z "$ac_dir" && ac_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4534 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4535 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4536 break 2
4539 done
4540 done
4541 IFS="$ac_save_IFS"
4543 esac
4545 valgrind_path="$ac_cv_path_valgrind_path"
4546 if test -n "$valgrind_path"; then
4547 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4548 echo "${ECHO_T}$valgrind_path" >&6
4549 else
4550 echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6
4554 if test "x$valgrind_path" = "x" \
4555 || (test $have_valgrind_h = no \
4556 && test $gcc_cv_header_memcheck_h = no \
4557 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4558 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4559 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4560 { (exit 1); exit 1; }; }
4562 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4563 valgrind_command="$valgrind_path -q"
4565 cat >>confdefs.h <<\_ACEOF
4566 #define ENABLE_VALGRIND_CHECKING 1
4567 _ACEOF
4569 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4571 cat >>confdefs.h <<\_ACEOF
4572 #define HAVE_VALGRIND_MEMCHECK_H 1
4573 _ACEOF
4576 if test $gcc_cv_header_memcheck_h = yes; then
4578 cat >>confdefs.h <<\_ACEOF
4579 #define HAVE_MEMCHECK_H 1
4580 _ACEOF
4587 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4588 if test "${enable_mapped_location+set}" = set; then
4589 enableval="$enable_mapped_location"
4591 else
4592 enable_mapped_location=no
4595 if test "$enable_mapped_location" = yes ; then
4597 cat >>confdefs.h <<\_ACEOF
4598 #define USE_MAPPED_LOCATION 1
4599 _ACEOF
4603 # Enable code coverage collection
4604 # Check whether --enable-coverage or --disable-coverage was given.
4605 if test "${enable_coverage+set}" = set; then
4606 enableval="$enable_coverage"
4607 case "${enableval}" in
4608 yes|noopt)
4609 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4611 opt)
4612 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4615 # a.k.a. --disable-coverage
4616 coverage_flags=""
4619 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4620 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4621 { (exit 1); exit 1; }; }
4623 esac
4624 else
4625 coverage_flags=""
4629 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4630 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4631 enableval="$enable_gather_detailed_mem_stats"
4633 else
4634 enable_gather_detailed_mem_stats=no
4636 if test x$enable_gather_detailed_mem_stats = xyes ; then
4638 cat >>confdefs.h <<\_ACEOF
4639 #define GATHER_STATISTICS 1
4640 _ACEOF
4644 # -------------------------------
4645 # Miscenalleous configure options
4646 # -------------------------------
4648 # With stabs
4650 # Check whether --with-stabs or --without-stabs was given.
4651 if test "${with_stabs+set}" = set; then
4652 withval="$with_stabs"
4653 stabs="$with_stabs"
4654 else
4655 stabs=no
4658 # Determine whether or not multilibs are enabled.
4659 # Check whether --enable-multilib or --disable-multilib was given.
4660 if test "${enable_multilib+set}" = set; then
4661 enableval="$enable_multilib"
4663 else
4664 enable_multilib=yes
4668 # Enable __cxa_atexit for C++.
4669 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4670 if test "${enable___cxa_atexit+set}" = set; then
4671 enableval="$enable___cxa_atexit"
4675 # Enable threads
4676 # Pass with no value to take the default
4677 # Pass with a value to specify a thread package
4678 # Check whether --enable-threads or --disable-threads was given.
4679 if test "${enable_threads+set}" = set; then
4680 enableval="$enable_threads"
4682 else
4683 enable_threads=''
4686 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4687 if test "${enable_objc_gc+set}" = set; then
4688 enableval="$enable_objc_gc"
4689 if test x$enable_objc_gc = xno; then
4690 objc_boehm_gc=''
4691 else
4692 objc_boehm_gc=1
4694 else
4695 objc_boehm_gc=''
4699 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4700 if test "${with_dwarf2+set}" = set; then
4701 withval="$with_dwarf2"
4702 dwarf2="$with_dwarf2"
4703 else
4704 dwarf2=no
4707 # Check whether --enable-shared or --disable-shared was given.
4708 if test "${enable_shared+set}" = set; then
4709 enableval="$enable_shared"
4711 case $enable_shared in
4712 yes | no) ;;
4714 enable_shared=no
4715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4716 for pkg in $enableval; do
4717 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4718 enable_shared=yes
4720 done
4721 IFS="$ac_save_ifs"
4723 esac
4725 else
4726 enable_shared=yes
4731 # Check whether --with-sysroot or --without-sysroot was given.
4732 if test "${with_sysroot+set}" = set; then
4733 withval="$with_sysroot"
4735 case ${with_sysroot} in
4736 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4737 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4738 esac
4740 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4741 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4743 if test "x$exec_prefix" = xNONE; then
4744 if test "x$prefix" = xNONE; then
4745 test_prefix=/usr/local
4746 else
4747 test_prefix=$prefix
4749 else
4750 test_prefix=$exec_prefix
4752 case ${TARGET_SYSTEM_ROOT} in
4753 "${test_prefix}"|"${test_prefix}/"*|\
4754 '${exec_prefix}'|'${exec_prefix}/'*)
4755 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4756 TARGET_SYSTEM_ROOT_DEFINE="$t"
4758 esac
4760 else
4762 TARGET_SYSTEM_ROOT=
4763 TARGET_SYSTEM_ROOT_DEFINE=
4764 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4771 # Build with intermodule optimisations
4772 # Check whether --enable-intermodule or --disable-intermodule was given.
4773 if test "${enable_intermodule+set}" = set; then
4774 enableval="$enable_intermodule"
4775 case ${enable_intermodule} in
4776 yes) onestep="-onestep";;
4777 *) onestep="";;
4778 esac
4779 else
4780 onestep=""
4784 # Sanity check enable_languages in case someone does not run the toplevel
4785 # configure # script.
4786 # Check whether --enable-languages or --disable-languages was given.
4787 if test "${enable_languages+set}" = set; then
4788 enableval="$enable_languages"
4789 case ,${enable_languages}, in
4790 ,,|,yes,)
4791 # go safe -- we cannot be much sure without the toplevel
4792 # configure's
4793 # analysis of which target libs are present and usable
4794 enable_languages=c
4796 *,all,*)
4797 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4798 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4799 { (exit 1); exit 1; }; }
4801 *,c,*)
4804 enable_languages=c,${enable_languages}
4806 esac
4807 else
4808 enable_languages=c
4811 subdirs=
4812 for lang in ${srcdir}/*/config-lang.in
4814 case $lang in
4815 # The odd quoting in the next line works around
4816 # an apparent bug in bash 1.12 on linux.
4817 ${srcdir}/[*]/config-lang.in) ;;
4819 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4820 if test "x$lang_alias" = x
4821 then
4822 echo "$lang doesn't set \$language." 1>&2
4823 exit 1
4825 case ",$enable_languages," in
4826 *,$lang_alias,*)
4827 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4828 esac
4830 esac
4831 done
4834 # -------------------------
4835 # Checks for other programs
4836 # -------------------------
4838 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4839 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4840 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4841 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844 cat >conftest.make <<\_ACEOF
4845 all:
4846 @echo 'ac_maketemp="$(MAKE)"'
4847 _ACEOF
4848 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4849 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4850 if test -n "$ac_maketemp"; then
4851 eval ac_cv_prog_make_${ac_make}_set=yes
4852 else
4853 eval ac_cv_prog_make_${ac_make}_set=no
4855 rm -f conftest.make
4857 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4858 echo "$as_me:$LINENO: result: yes" >&5
4859 echo "${ECHO_T}yes" >&6
4860 SET_MAKE=
4861 else
4862 echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6
4864 SET_MAKE="MAKE=${MAKE-make}"
4868 # Find some useful tools
4869 for ac_prog in gawk mawk nawk awk
4871 # Extract the first word of "$ac_prog", so it can be a program name with args.
4872 set dummy $ac_prog; ac_word=$2
4873 echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875 if test "${ac_cv_prog_AWK+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 if test -n "$AWK"; then
4879 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888 ac_cv_prog_AWK="$ac_prog"
4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4892 done
4893 done
4897 AWK=$ac_cv_prog_AWK
4898 if test -n "$AWK"; then
4899 echo "$as_me:$LINENO: result: $AWK" >&5
4900 echo "${ECHO_T}$AWK" >&6
4901 else
4902 echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6
4906 test -n "$AWK" && break
4907 done
4909 # We need awk to create options.c and options.h.
4910 # Bail out if it's missing.
4911 case ${AWK} in
4912 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4913 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4914 { (exit 1); exit 1; }; } ;;
4915 esac
4917 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4918 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4919 if test "${gcc_cv_prog_LN_S+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922 rm -f conftestdata_t
4923 echo >conftestdata_f
4924 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4925 then
4926 gcc_cv_prog_LN_S="ln -s"
4927 else
4928 if ln conftestdata_f conftestdata_t 2>/dev/null
4929 then
4930 gcc_cv_prog_LN_S=ln
4931 else
4932 gcc_cv_prog_LN_S=cp
4935 rm -f conftestdata_f conftestdata_t
4938 LN_S="$gcc_cv_prog_LN_S"
4939 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4940 echo "$as_me:$LINENO: result: yes" >&5
4941 echo "${ECHO_T}yes" >&6
4942 else
4943 if test "$gcc_cv_prog_LN_S" = "ln"; then
4944 echo "$as_me:$LINENO: result: no, using ln" >&5
4945 echo "${ECHO_T}no, using ln" >&6
4946 else
4947 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4948 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4952 echo "$as_me:$LINENO: checking whether ln works" >&5
4953 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4954 if test "${acx_cv_prog_LN+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957 rm -f conftestdata_t
4958 echo >conftestdata_f
4959 if ln conftestdata_f conftestdata_t 2>/dev/null
4960 then
4961 acx_cv_prog_LN=ln
4962 else
4963 acx_cv_prog_LN=no
4965 rm -f conftestdata_f conftestdata_t
4968 if test $acx_cv_prog_LN = no; then
4969 LN="$LN_S"
4970 echo "$as_me:$LINENO: result: no, using $LN" >&5
4971 echo "${ECHO_T}no, using $LN" >&6
4972 else
4973 LN="$acx_cv_prog_LN"
4974 echo "$as_me:$LINENO: result: yes" >&5
4975 echo "${ECHO_T}yes" >&6
4978 if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4980 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4981 echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983 if test "${ac_cv_prog_RANLIB+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986 if test -n "$RANLIB"; then
4987 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
5000 done
5001 done
5005 RANLIB=$ac_cv_prog_RANLIB
5006 if test -n "$RANLIB"; then
5007 echo "$as_me:$LINENO: result: $RANLIB" >&5
5008 echo "${ECHO_T}$RANLIB" >&6
5009 else
5010 echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5015 if test -z "$ac_cv_prog_RANLIB"; then
5016 ac_ct_RANLIB=$RANLIB
5017 # Extract the first word of "ranlib", so it can be a program name with args.
5018 set dummy ranlib; ac_word=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 if test -n "$ac_ct_RANLIB"; then
5025 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034 ac_cv_prog_ac_ct_RANLIB="ranlib"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5038 done
5039 done
5041 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5045 if test -n "$ac_ct_RANLIB"; then
5046 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5047 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5048 else
5049 echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6
5053 RANLIB=$ac_ct_RANLIB
5054 else
5055 RANLIB="$ac_cv_prog_RANLIB"
5058 # Find a good install program. We prefer a C program (faster),
5059 # so one script is as good as another. But avoid the broken or
5060 # incompatible versions:
5061 # SysV /etc/install, /usr/sbin/install
5062 # SunOS /usr/etc/install
5063 # IRIX /sbin/install
5064 # AIX /bin/install
5065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5067 # ./install, which can be erroneously created by make from ./install.sh.
5068 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5069 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5070 if test -z "$INSTALL"; then
5071 if test "${ac_cv_path_install+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5075 for ac_dir in $PATH; do
5076 # Account for people who put trailing slashes in PATH elements.
5077 case "$ac_dir/" in
5078 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5080 # OSF1 and SCO ODT 3.0 have their own names for install.
5081 for ac_prog in ginstall scoinst install; do
5082 if test -f $ac_dir/$ac_prog; then
5083 if test $ac_prog = install &&
5084 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5085 # AIX install. It has an incompatible calling convention.
5086 # OSF/1 installbsd also uses dspmsg, but is usable.
5088 else
5089 ac_cv_path_install="$ac_dir/$ac_prog -c"
5090 break 2
5093 done
5095 esac
5096 done
5097 IFS="$ac_save_IFS"
5100 if test "${ac_cv_path_install+set}" = set; then
5101 INSTALL="$ac_cv_path_install"
5102 else
5103 # As a last resort, use the slow shell script. We don't cache a
5104 # path for INSTALL within a source directory, because that will
5105 # break other packages using the cache if that directory is
5106 # removed, or if the path is relative.
5107 INSTALL="$ac_install_sh"
5110 echo "$as_me:$LINENO: result: $INSTALL" >&5
5111 echo "${ECHO_T}$INSTALL" >&6
5113 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5114 # It thinks the first close brace ends the variable substitution.
5115 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5117 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5120 # See if cmp has --ignore-initial.
5121 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5122 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5123 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 echo abfoo >t1
5127 echo cdfoo >t2
5128 gcc_cv_prog_cmp_skip=slowcompare
5129 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5130 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5132 else
5133 gcc_cv_prog_cmp_skip=gnucompare
5136 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5137 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5138 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5140 else
5141 gcc_cv_prog_cmp_skip=fastcompare
5145 rm t1 t2
5148 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5149 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5150 make_compare_target=$gcc_cv_prog_cmp_skip
5154 # See if we have the mktemp command.
5155 # Extract the first word of "mktemp", so it can be a program name with args.
5156 set dummy mktemp; ac_word=$2
5157 echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162 if test -n "$have_mktemp_command"; then
5163 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_have_mktemp_command="yes"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5176 done
5177 done
5179 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5182 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5183 if test -n "$have_mktemp_command"; then
5184 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5185 echo "${ECHO_T}$have_mktemp_command" >&6
5186 else
5187 echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6
5192 # Do we have a single-tree copy of texinfo?
5193 if test -f $srcdir/../texinfo/Makefile.in; then
5194 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5195 gcc_cv_prog_makeinfo_modern=yes
5196 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5197 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5198 else
5199 # See if makeinfo has been installed and is modern enough
5200 # that we can use it.
5201 # Extract the first word of "makeinfo", so it can be a program name with args.
5202 set dummy makeinfo; ac_word=$2
5203 echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 if test -n "$MAKEINFO"; then
5209 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_MAKEINFO="makeinfo"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5227 MAKEINFO=$ac_cv_prog_MAKEINFO
5228 if test -n "$MAKEINFO"; then
5229 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5230 echo "${ECHO_T}$MAKEINFO" >&6
5231 else
5232 echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5236 if test -n "$MAKEINFO"; then
5237 # Found it, now check the version.
5238 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5239 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5240 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 ac_prog_version=`$MAKEINFO --version 2>&1 |
5244 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5245 echo "configure:5245: version of makeinfo is $ac_prog_version" >&5
5246 case $ac_prog_version in
5247 '') gcc_cv_prog_makeinfo_modern=no;;
5248 4.[2-9]*)
5249 gcc_cv_prog_makeinfo_modern=yes;;
5250 *) gcc_cv_prog_makeinfo_modern=no;;
5251 esac
5254 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5255 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5256 else
5257 gcc_cv_prog_makeinfo_modern=no
5262 if test $gcc_cv_prog_makeinfo_modern = no; then
5263 { echo "$as_me:$LINENO: WARNING:
5264 *** Makeinfo is missing or too old.
5265 *** Info documentation will not be built." >&5
5266 echo "$as_me: WARNING:
5267 *** Makeinfo is missing or too old.
5268 *** Info documentation will not be built." >&2;}
5269 BUILD_INFO=
5270 else
5271 BUILD_INFO=info
5274 # Is pod2man recent enough to regenerate manpages?
5275 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5276 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5277 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5278 echo "$as_me:$LINENO: result: yes" >&5
5279 echo "${ECHO_T}yes" >&6
5280 GENERATED_MANPAGES=generated-manpages
5281 else
5282 echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5284 GENERATED_MANPAGES=
5287 # How about lex?
5288 if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
5289 FLEX='$(objdir)/../flex/flex'
5290 else
5291 # Extract the first word of "flex", so it can be a program name with args.
5292 set dummy flex; ac_word=$2
5293 echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5295 if test "${ac_cv_prog_FLEX+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298 if test -n "$FLEX"; then
5299 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_FLEX="flex"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5312 done
5313 done
5315 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5318 FLEX=$ac_cv_prog_FLEX
5319 if test -n "$FLEX"; then
5320 echo "$as_me:$LINENO: result: $FLEX" >&5
5321 echo "${ECHO_T}$FLEX" >&6
5322 else
5323 echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6
5329 # Bison?
5330 # The -L switch is so bison can find its skeleton file.
5331 if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
5332 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5333 else
5334 # Extract the first word of "bison", so it can be a program name with args.
5335 set dummy bison; ac_word=$2
5336 echo "$as_me:$LINENO: checking for $ac_word" >&5
5337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5338 if test "${ac_cv_prog_BISON+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341 if test -n "$BISON"; then
5342 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_BISON="bison"
5352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5355 done
5356 done
5358 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5361 BISON=$ac_cv_prog_BISON
5362 if test -n "$BISON"; then
5363 echo "$as_me:$LINENO: result: $BISON" >&5
5364 echo "${ECHO_T}$BISON" >&6
5365 else
5366 echo "$as_me:$LINENO: result: no" >&5
5367 echo "${ECHO_T}no" >&6
5372 # --------------------
5373 # Checks for C headers
5374 # --------------------
5376 echo "$as_me:$LINENO: checking for GNU C library" >&5
5377 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5378 if test "${gcc_cv_glibc+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #include <features.h>
5389 main ()
5392 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5393 #error Not a GNU C library system
5394 #endif
5396 return 0;
5398 _ACEOF
5399 rm -f conftest.$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401 (eval $ac_compile) 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try='test -z "$ac_c_werror_flag"
5409 || test ! -s conftest.err'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 (eval $ac_try) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; } &&
5415 { ac_try='test -s conftest.$ac_objext'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 (eval $ac_try) 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 gcc_cv_glibc=yes
5422 else
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 gcc_cv_glibc=no
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5432 echo "${ECHO_T}$gcc_cv_glibc" >&6
5433 if test $gcc_cv_glibc = yes; then
5435 cat >>confdefs.h <<\_ACEOF
5436 #define _GNU_SOURCE 1
5437 _ACEOF
5441 # Need to reject headers which give warnings, so that the -Werror bootstrap
5442 # works later. *sigh* This needs to come before all header checks.
5444 ac_c_preproc_warn_flag=yes
5446 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5447 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5448 if test "${ac_cv_header_stdc+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h. */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 #include <stdlib.h>
5458 #include <stdarg.h>
5459 #include <string.h>
5460 #include <float.h>
5463 main ()
5467 return 0;
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472 (eval $ac_compile) 2>conftest.er1
5473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } &&
5479 { ac_try='test -z "$ac_c_werror_flag"
5480 || test ! -s conftest.err'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; } &&
5486 { ac_try='test -s conftest.$ac_objext'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 (eval $ac_try) 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_cv_header_stdc=yes
5493 else
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 ac_cv_header_stdc=no
5499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501 if test $ac_cv_header_stdc = yes; then
5502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5503 cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h. */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 #include <string.h>
5511 _ACEOF
5512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513 $EGREP "memchr" >/dev/null 2>&1; then
5515 else
5516 ac_cv_header_stdc=no
5518 rm -f conftest*
5522 if test $ac_cv_header_stdc = yes; then
5523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h. */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 #include <stdlib.h>
5532 _ACEOF
5533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5534 $EGREP "free" >/dev/null 2>&1; then
5536 else
5537 ac_cv_header_stdc=no
5539 rm -f conftest*
5543 if test $ac_cv_header_stdc = yes; then
5544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5545 if test "$cross_compiling" = yes; then
5547 else
5548 cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h. */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 #include <ctype.h>
5555 #if ((' ' & 0x0FF) == 0x020)
5556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5558 #else
5559 # define ISLOWER(c) \
5560 (('a' <= (c) && (c) <= 'i') \
5561 || ('j' <= (c) && (c) <= 'r') \
5562 || ('s' <= (c) && (c) <= 'z'))
5563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5564 #endif
5566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5568 main ()
5570 int i;
5571 for (i = 0; i < 256; i++)
5572 if (XOR (islower (i), ISLOWER (i))
5573 || toupper (i) != TOUPPER (i))
5574 exit(2);
5575 exit (0);
5577 _ACEOF
5578 rm -f conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5590 else
5591 echo "$as_me: program exited with status $ac_status" >&5
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5595 ( exit $ac_status )
5596 ac_cv_header_stdc=no
5598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5602 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5603 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5604 if test $ac_cv_header_stdc = yes; then
5606 cat >>confdefs.h <<\_ACEOF
5607 #define STDC_HEADERS 1
5608 _ACEOF
5612 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5613 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5614 if test "${ac_cv_header_time+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 #include <sys/time.h>
5625 #include <time.h>
5628 main ()
5630 if ((struct tm *) 0)
5631 return 0;
5633 return 0;
5635 _ACEOF
5636 rm -f conftest.$ac_objext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5638 (eval $ac_compile) 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -z "$ac_c_werror_flag"
5646 || test ! -s conftest.err'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest.$ac_objext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 ac_cv_header_time=yes
5659 else
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 ac_cv_header_time=no
5665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5667 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5668 echo "${ECHO_T}$ac_cv_header_time" >&6
5669 if test $ac_cv_header_time = yes; then
5671 cat >>confdefs.h <<\_ACEOF
5672 #define TIME_WITH_SYS_TIME 1
5673 _ACEOF
5677 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5678 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5679 if test "${gcc_cv_header_string+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h. */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 #include <string.h>
5689 #include <strings.h>
5691 main ()
5695 return 0;
5697 _ACEOF
5698 rm -f conftest.$ac_objext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700 (eval $ac_compile) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag"
5708 || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest.$ac_objext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 gcc_cv_header_string=yes
5721 else
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 gcc_cv_header_string=no
5727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5729 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5730 echo "${ECHO_T}$gcc_cv_header_string" >&6
5731 if test $gcc_cv_header_string = yes; then
5733 cat >>confdefs.h <<\_ACEOF
5734 #define STRING_WITH_STRINGS 1
5735 _ACEOF
5739 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5740 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5741 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744 cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h. */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5751 #include <sys/wait.h>
5752 #ifndef WEXITSTATUS
5753 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5754 #endif
5755 #ifndef WIFEXITED
5756 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5757 #endif
5760 main ()
5762 int s;
5763 wait (&s);
5764 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5766 return 0;
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>conftest.er1
5772 ac_status=$?
5773 grep -v '^ *+' conftest.er1 >conftest.err
5774 rm -f conftest.er1
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -z "$ac_c_werror_flag"
5779 || test ! -s conftest.err'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 (eval $ac_try) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try='test -s conftest.$ac_objext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_cv_header_sys_wait_h=yes
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 ac_cv_header_sys_wait_h=no
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5800 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5801 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5802 if test $ac_cv_header_sys_wait_h = yes; then
5804 cat >>confdefs.h <<\_ACEOF
5805 #define HAVE_SYS_WAIT_H 1
5806 _ACEOF
5831 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5832 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5833 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5834 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5837 echo "$as_me:$LINENO: checking for $ac_header" >&5
5838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <$ac_header>
5849 _ACEOF
5850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } >/dev/null; then
5858 if test -s conftest.err; then
5859 ac_cpp_err=$ac_c_preproc_warn_flag
5860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5861 else
5862 ac_cpp_err=
5864 else
5865 ac_cpp_err=yes
5867 if test -z "$ac_cpp_err"; then
5868 eval "$as_ac_Header=yes"
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5873 eval "$as_ac_Header=no"
5875 rm -f conftest.err conftest.$ac_ext
5877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5880 cat >>confdefs.h <<_ACEOF
5881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5882 _ACEOF
5885 done
5888 # Check for thread headers.
5889 echo "$as_me:$LINENO: checking for thread.h" >&5
5890 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5891 if test "${ac_cv_header_thread_h+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 #include <thread.h>
5901 _ACEOF
5902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5904 ac_status=$?
5905 grep -v '^ *+' conftest.er1 >conftest.err
5906 rm -f conftest.er1
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } >/dev/null; then
5910 if test -s conftest.err; then
5911 ac_cpp_err=$ac_c_preproc_warn_flag
5912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5913 else
5914 ac_cpp_err=
5916 else
5917 ac_cpp_err=yes
5919 if test -z "$ac_cpp_err"; then
5920 ac_cv_header_thread_h=yes
5921 else
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_cv_header_thread_h=no
5927 rm -f conftest.err conftest.$ac_ext
5929 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5930 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5931 if test $ac_cv_header_thread_h = yes; then
5932 have_thread_h=yes
5933 else
5934 have_thread_h=
5937 echo "$as_me:$LINENO: checking for pthread.h" >&5
5938 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5939 if test "${ac_cv_header_pthread_h+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942 cat >conftest.$ac_ext <<_ACEOF
5943 /* confdefs.h. */
5944 _ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5948 #include <pthread.h>
5949 _ACEOF
5950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } >/dev/null; then
5958 if test -s conftest.err; then
5959 ac_cpp_err=$ac_c_preproc_warn_flag
5960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5961 else
5962 ac_cpp_err=
5964 else
5965 ac_cpp_err=yes
5967 if test -z "$ac_cpp_err"; then
5968 ac_cv_header_pthread_h=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_cv_header_pthread_h=no
5975 rm -f conftest.err conftest.$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5978 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5979 if test $ac_cv_header_pthread_h = yes; then
5980 have_pthread_h=yes
5981 else
5982 have_pthread_h=
5986 # These tests can't be done till we know if we have limits.h.
5987 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5988 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5989 if test "${gcc_cv_decl_char_bit+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h. */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #ifdef HAVE_LIMITS_H
5999 #include <limits.h>
6000 #endif
6001 #ifdef CHAR_BIT
6002 found
6003 #endif
6004 _ACEOF
6005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6006 $EGREP "found" >/dev/null 2>&1; then
6007 gcc_cv_decl_char_bit=yes
6008 else
6009 gcc_cv_decl_char_bit=no
6011 rm -f conftest*
6015 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6016 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6017 if test $gcc_cv_decl_char_bit = no; then
6018 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6019 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6020 if test "${gcc_cv_c_nbby+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6024 gcc_cv_c_nbby=
6025 while test $i -lt 65; do
6026 cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h. */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6034 main ()
6036 switch(0) {
6037 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6038 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6041 return 0;
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try='test -z "$ac_c_werror_flag"
6054 || test ! -s conftest.err'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try='test -s conftest.$ac_objext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 (eval $ac_try) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 gcc_cv_c_nbby=$i; break
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6073 i=`expr $i + 1`
6074 done
6075 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6078 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6079 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6080 if test $gcc_cv_c_nbby = failed; then
6081 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6082 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6083 { (exit 1); exit 1; }; }
6084 else
6086 cat >>confdefs.h <<_ACEOF
6087 #define CHAR_BIT $gcc_cv_c_nbby
6088 _ACEOF
6092 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6093 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6094 if test "${ac_cv_c_bigendian+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 ac_cv_c_bigendian=unknown
6098 # See if sys/param.h defines the BYTE_ORDER macro.
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <sys/types.h>
6106 #include <sys/param.h>
6108 main ()
6111 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6112 bogus endian macros
6113 #endif
6115 return 0;
6117 _ACEOF
6118 rm -f conftest.$ac_objext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120 (eval $ac_compile) 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag"
6128 || test ! -s conftest.err'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; } &&
6134 { ac_try='test -s conftest.$ac_objext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 # It does; now see whether it defined to BIG_ENDIAN or not.
6141 cat >conftest.$ac_ext <<_ACEOF
6142 /* confdefs.h. */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 #include <sys/types.h>
6148 #include <sys/param.h>
6150 main ()
6153 #if BYTE_ORDER != BIG_ENDIAN
6154 not big endian
6155 #endif
6157 return 0;
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_c_bigendian=yes
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 ac_cv_c_bigendian=no
6189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6190 else
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6196 if test $ac_cv_c_bigendian = unknown; then
6197 if test "$cross_compiling" = yes; then
6198 echo $ac_n "cross-compiling... " 2>&6
6199 else
6200 cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 main () {
6207 /* Are we little or big endian? From Harbison&Steele. */
6208 union
6210 long l;
6211 char c[sizeof (long)];
6212 } u;
6213 u.l = 1;
6214 exit (u.c[sizeof (long) - 1] == 1);
6216 _ACEOF
6217 rm -f conftest$ac_exeext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219 (eval $ac_link) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 (eval $ac_try) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_c_bigendian=no
6229 else
6230 echo "$as_me: program exited with status $ac_status" >&5
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 ( exit $ac_status )
6235 ac_cv_c_bigendian=yes
6237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6241 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6242 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6243 if test $ac_cv_c_bigendian = unknown; then
6244 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6245 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6247 cat >conftest.c <<EOF
6248 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6249 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6250 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6251 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6252 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6253 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6254 int main() { _ascii (); _ebcdic (); return 0; }
6256 if test -f conftest.c ; then
6257 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6258 if test `grep -l BIGenDianSyS conftest.o` ; then
6259 echo $ac_n ' big endian probe OK, ' 1>&6
6260 ac_cv_c_bigendian=yes
6262 if test `grep -l LiTTleEnDian conftest.o` ; then
6263 echo $ac_n ' little endian probe OK, ' 1>&6
6264 if test $ac_cv_c_bigendian = yes ; then
6265 ac_cv_c_bigendian=unknown;
6266 else
6267 ac_cv_c_bigendian=no
6270 echo $ac_n 'guessing bigendian ... ' >&6
6273 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6274 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6276 if test $ac_cv_c_bigendian = yes; then
6278 cat >>confdefs.h <<\_ACEOF
6279 #define WORDS_BIGENDIAN 1
6280 _ACEOF
6283 cat >>confdefs.h <<\_ACEOF
6284 #define HOST_WORDS_BIG_ENDIAN 1
6285 _ACEOF
6287 BYTEORDER=4321
6288 else
6289 BYTEORDER=1234
6292 cat >>confdefs.h <<_ACEOF
6293 #define BYTEORDER $BYTEORDER
6294 _ACEOF
6296 if test $ac_cv_c_bigendian = unknown; then
6297 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6298 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6299 { (exit 1); exit 1; }; }
6303 # --------
6304 # UNSORTED
6305 # --------
6307 # Stage specific cflags for build.
6308 stage1_cflags=
6309 case $build in
6310 vax-*-*)
6311 if test x$GCC = xyes
6312 then
6313 stage1_cflags="-Wa,-J"
6314 else
6315 stage1_cflags="-J"
6318 powerpc-*-darwin*)
6319 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6320 # sources; use -no-cpp-precomp to get to GNU cpp.
6321 # Apple's GCC has bugs in designated initializer handling, so disable
6322 # that too.
6323 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6325 esac
6328 # These libraries may be used by collect2.
6329 # We may need a special search path to get them linked.
6330 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6331 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6332 if test "${gcc_cv_collect2_libs+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 save_LIBS="$LIBS"
6336 for libs in '' -lld -lmld \
6337 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6338 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6340 LIBS="$libs"
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6348 /* Override any gcc2 internal prototype to avoid an error. */
6349 #ifdef __cplusplus
6350 extern "C"
6351 #endif
6352 /* We use char because int might match the return type of a gcc2
6353 builtin and then its argument prototype would still apply. */
6354 char ldopen ();
6356 main ()
6358 ldopen ();
6360 return 0;
6362 _ACEOF
6363 rm -f conftest.$ac_objext conftest$ac_exeext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365 (eval $ac_link) 2>conftest.er1
6366 ac_status=$?
6367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try='test -z "$ac_c_werror_flag"
6373 || test ! -s conftest.err'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; } &&
6379 { ac_try='test -s conftest$ac_exeext'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
6385 gcc_cv_collect2_libs="$libs"; break
6386 else
6387 echo "$as_me: failed program was:" >&5
6388 sed 's/^/| /' conftest.$ac_ext >&5
6391 rm -f conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext conftest.$ac_ext
6393 done
6394 LIBS="$save_LIBS"
6395 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6397 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6398 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6399 case $gcc_cv_collect2_libs in
6400 "none required") ;;
6401 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6402 esac
6405 # When building Ada code on Alpha, we need exc_resume which is usually in
6406 # -lexc. So test for it.
6407 save_LIBS="$LIBS"
6408 LIBS=
6409 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6410 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6411 if test "${ac_cv_search_exc_resume+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414 ac_func_search_save_LIBS=$LIBS
6415 ac_cv_search_exc_resume=no
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6423 /* Override any gcc2 internal prototype to avoid an error. */
6424 #ifdef __cplusplus
6425 extern "C"
6426 #endif
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429 char exc_resume ();
6431 main ()
6433 exc_resume ();
6435 return 0;
6437 _ACEOF
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_cv_search_exc_resume="none required"
6461 else
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6466 rm -f conftest.err conftest.$ac_objext \
6467 conftest$ac_exeext conftest.$ac_ext
6468 if test "$ac_cv_search_exc_resume" = no; then
6469 for ac_lib in exc; do
6470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6478 /* Override any gcc2 internal prototype to avoid an error. */
6479 #ifdef __cplusplus
6480 extern "C"
6481 #endif
6482 /* We use char because int might match the return type of a gcc2
6483 builtin and then its argument prototype would still apply. */
6484 char exc_resume ();
6486 main ()
6488 exc_resume ();
6490 return 0;
6492 _ACEOF
6493 rm -f conftest.$ac_objext conftest$ac_exeext
6494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6495 (eval $ac_link) 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try='test -z "$ac_c_werror_flag"
6503 || test ! -s conftest.err'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 ac_cv_search_exc_resume="-l$ac_lib"
6516 break
6517 else
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6522 rm -f conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524 done
6526 LIBS=$ac_func_search_save_LIBS
6528 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6529 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6530 if test "$ac_cv_search_exc_resume" != no; then
6531 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6535 GNAT_LIBEXC="$LIBS"
6536 LIBS="$save_LIBS"
6539 # Some systems put ldexp and frexp in libm instead of libc; assume
6540 # they're both in the same place. jcf-dump needs them.
6541 save_LIBS="$LIBS"
6542 LIBS=
6543 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6544 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6545 if test "${ac_cv_search_ldexp+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548 ac_func_search_save_LIBS=$LIBS
6549 ac_cv_search_ldexp=no
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 #ifdef __cplusplus
6559 extern "C"
6560 #endif
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6563 char ldexp ();
6565 main ()
6567 ldexp ();
6569 return 0;
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>conftest.er1
6575 ac_status=$?
6576 grep -v '^ *+' conftest.er1 >conftest.err
6577 rm -f conftest.er1
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try='test -z "$ac_c_werror_flag"
6582 || test ! -s conftest.err'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest$ac_exeext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_search_ldexp="none required"
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6600 rm -f conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
6602 if test "$ac_cv_search_ldexp" = no; then
6603 for ac_lib in m; do
6604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6605 cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h. */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6612 /* Override any gcc2 internal prototype to avoid an error. */
6613 #ifdef __cplusplus
6614 extern "C"
6615 #endif
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6618 char ldexp ();
6620 main ()
6622 ldexp ();
6624 return 0;
6626 _ACEOF
6627 rm -f conftest.$ac_objext conftest$ac_exeext
6628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6629 (eval $ac_link) 2>conftest.er1
6630 ac_status=$?
6631 grep -v '^ *+' conftest.er1 >conftest.err
6632 rm -f conftest.er1
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } &&
6636 { ac_try='test -z "$ac_c_werror_flag"
6637 || test ! -s conftest.err'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; } &&
6643 { ac_try='test -s conftest$ac_exeext'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 ac_cv_search_ldexp="-l$ac_lib"
6650 break
6651 else
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6656 rm -f conftest.err conftest.$ac_objext \
6657 conftest$ac_exeext conftest.$ac_ext
6658 done
6660 LIBS=$ac_func_search_save_LIBS
6662 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6663 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6664 if test "$ac_cv_search_ldexp" != no; then
6665 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6669 LDEXP_LIB="$LIBS"
6670 LIBS="$save_LIBS"
6673 # Use <inttypes.h> only if it exists,
6674 # doesn't clash with <sys/types.h>, and declares intmax_t.
6675 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6676 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6677 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #include <sys/types.h>
6687 #include <inttypes.h>
6689 main ()
6691 intmax_t i = -1;
6693 return 0;
6695 _ACEOF
6696 rm -f conftest.$ac_objext
6697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6698 (eval $ac_compile) 2>conftest.er1
6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -z "$ac_c_werror_flag"
6706 || test ! -s conftest.err'
6707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 (eval $ac_try) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; } &&
6712 { ac_try='test -s conftest.$ac_objext'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 gcc_cv_header_inttypes_h=yes
6719 else
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 gcc_cv_header_inttypes_h=no
6725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6728 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6729 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6730 if test $gcc_cv_header_inttypes_h = yes; then
6732 cat >>confdefs.h <<\_ACEOF
6733 #define HAVE_INTTYPES_H 1
6734 _ACEOF
6764 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6765 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6766 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6767 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6768 setlocale
6770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6771 echo "$as_me:$LINENO: checking for $ac_func" >&5
6772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6773 if eval "test \"\${$as_ac_var+set}\" = set"; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6784 #define $ac_func innocuous_$ac_func
6786 /* System header to define __stub macros and hopefully few prototypes,
6787 which can conflict with char $ac_func (); below.
6788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6789 <limits.h> exists even on freestanding compilers. */
6791 #ifdef __STDC__
6792 # include <limits.h>
6793 #else
6794 # include <assert.h>
6795 #endif
6797 #undef $ac_func
6799 /* Override any gcc2 internal prototype to avoid an error. */
6800 #ifdef __cplusplus
6801 extern "C"
6803 #endif
6804 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6806 char $ac_func ();
6807 /* The GNU C library defines this for functions which it implements
6808 to always fail with ENOSYS. Some functions are actually named
6809 something starting with __ and the normal name is an alias. */
6810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6811 choke me
6812 #else
6813 char (*f) () = $ac_func;
6814 #endif
6815 #ifdef __cplusplus
6817 #endif
6820 main ()
6822 return f != $ac_func;
6824 return 0;
6826 _ACEOF
6827 rm -f conftest.$ac_objext conftest$ac_exeext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>conftest.er1
6830 ac_status=$?
6831 grep -v '^ *+' conftest.er1 >conftest.err
6832 rm -f conftest.er1
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -z "$ac_c_werror_flag"
6837 || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest$ac_exeext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 eval "$as_ac_var=yes"
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 eval "$as_ac_var=no"
6856 rm -f conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6861 if test `eval echo '${'$as_ac_var'}'` = yes; then
6862 cat >>confdefs.h <<_ACEOF
6863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6864 _ACEOF
6867 done
6870 if test x$ac_cv_func_mbstowcs = xyes; then
6871 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6872 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6873 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 if test "$cross_compiling" = yes; then
6877 gcc_cv_func_mbstowcs_works=yes
6878 else
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 #include <stdlib.h>
6886 int main()
6888 mbstowcs(0, "", 0);
6889 return 0;
6891 _ACEOF
6892 rm -f conftest$ac_exeext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 gcc_cv_func_mbstowcs_works=yes
6904 else
6905 echo "$as_me: program exited with status $ac_status" >&5
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ( exit $ac_status )
6910 gcc_cv_func_mbstowcs_works=no
6912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6915 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6916 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6917 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6919 cat >>confdefs.h <<\_ACEOF
6920 #define HAVE_WORKING_MBSTOWCS 1
6921 _ACEOF
6926 echo "$as_me:$LINENO: checking for ssize_t" >&5
6927 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6928 if test "${ac_cv_type_ssize_t+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 $ac_includes_default
6939 main ()
6941 if ((ssize_t *) 0)
6942 return 0;
6943 if (sizeof (ssize_t))
6944 return 0;
6946 return 0;
6948 _ACEOF
6949 rm -f conftest.$ac_objext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag"
6959 || test ! -s conftest.err'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; } &&
6965 { ac_try='test -s conftest.$ac_objext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_type_ssize_t=yes
6972 else
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6976 ac_cv_type_ssize_t=no
6978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6981 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6982 if test $ac_cv_type_ssize_t = yes; then
6984 else
6986 cat >>confdefs.h <<_ACEOF
6987 #define ssize_t int
6988 _ACEOF
6993 # Try to determine the array type of the second argument of getgroups
6994 # for the target system (int or gid_t).
6995 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6996 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6997 if test "${ac_cv_type_uid_t+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <sys/types.h>
7008 _ACEOF
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "uid_t" >/dev/null 2>&1; then
7011 ac_cv_type_uid_t=yes
7012 else
7013 ac_cv_type_uid_t=no
7015 rm -f conftest*
7018 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7019 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7020 if test $ac_cv_type_uid_t = no; then
7022 cat >>confdefs.h <<\_ACEOF
7023 #define uid_t int
7024 _ACEOF
7027 cat >>confdefs.h <<\_ACEOF
7028 #define gid_t int
7029 _ACEOF
7033 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7034 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7035 if test "${ac_cv_type_getgroups+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 if test "$cross_compiling" = yes; then
7039 ac_cv_type_getgroups=cross
7040 else
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 /* Thanks to Mike Rendell for this test. */
7048 #include <sys/types.h>
7049 #define NGID 256
7050 #undef MAX
7051 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7054 main ()
7056 gid_t gidset[NGID];
7057 int i, n;
7058 union { gid_t gval; long lval; } val;
7060 val.lval = -1;
7061 for (i = 0; i < NGID; i++)
7062 gidset[i] = val.gval;
7063 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7064 gidset);
7065 /* Exit non-zero if getgroups seems to require an array of ints. This
7066 happens when gid_t is short but getgroups modifies an array of ints. */
7067 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7069 _ACEOF
7070 rm -f conftest$ac_exeext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072 (eval $ac_link) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
7081 ac_cv_type_getgroups=gid_t
7082 else
7083 echo "$as_me: program exited with status $ac_status" >&5
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ( exit $ac_status )
7088 ac_cv_type_getgroups=int
7090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7092 if test $ac_cv_type_getgroups = cross; then
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 #include <unistd.h>
7101 _ACEOF
7102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7104 ac_cv_type_getgroups=gid_t
7105 else
7106 ac_cv_type_getgroups=int
7108 rm -f conftest*
7112 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7113 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7115 cat >>confdefs.h <<_ACEOF
7116 #define GETGROUPS_T $ac_cv_type_getgroups
7117 _ACEOF
7120 if test "${target}" = "${build}"; then
7121 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7122 else
7123 case "${target}" in
7124 # This condition may need some tweaking. It should include all
7125 # targets where the array type of the second argument of getgroups
7126 # is int and the type of gid_t is not equivalent to int.
7127 *-*-sunos* | *-*-ultrix*)
7128 TARGET_GETGROUPS_T=int
7131 TARGET_GETGROUPS_T=gid_t
7133 esac
7137 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7138 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7139 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142 if test "$cross_compiling" = yes; then
7143 gcc_cv_func_printf_ptr=no
7144 else
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 #include <stdio.h>
7153 int main()
7155 char buf[64];
7156 char *p = buf, *q = NULL;
7157 sprintf(buf, "%p", p);
7158 sscanf(buf, "%p", &q);
7159 return (p != q);
7161 _ACEOF
7162 rm -f conftest$ac_exeext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7164 (eval $ac_link) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 gcc_cv_func_printf_ptr=yes
7174 else
7175 echo "$as_me: program exited with status $ac_status" >&5
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7179 ( exit $ac_status )
7180 gcc_cv_func_printf_ptr=no
7182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7184 rm -f core core.* *.core
7186 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7187 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7188 if test $gcc_cv_func_printf_ptr = yes ; then
7190 cat >>confdefs.h <<\_ACEOF
7191 #define HAVE_PRINTF_PTR 1
7192 _ACEOF
7196 if test $ac_cv_header_sys_mman_h != yes \
7197 || test $ac_cv_func_mmap != yes; then
7198 gcc_cv_func_mmap_file=no
7199 gcc_cv_func_mmap_dev_zero=no
7200 gcc_cv_func_mmap_anon=no
7201 else
7202 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7203 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7204 if test "${gcc_cv_func_mmap_file+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207 # Add a system to this blacklist if
7208 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7209 # memory area containing the same data that you'd get if you applied
7210 # read() to the same fd. The only system known to have a problem here
7211 # is VMS, where text files have record structure.
7212 case "$host_os" in
7213 vms* | ultrix*)
7214 gcc_cv_func_mmap_file=no ;;
7216 gcc_cv_func_mmap_file=yes;;
7217 esac
7219 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7220 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7221 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7222 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7223 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 # Add a system to this blacklist if it has mmap() but /dev/zero
7227 # does not exist, or if mmapping /dev/zero does not give anonymous
7228 # zeroed pages with both the following properties:
7229 # 1. If you map N consecutive pages in with one call, and then
7230 # unmap any subset of those pages, the pages that were not
7231 # explicitly unmapped remain accessible.
7232 # 2. If you map two adjacent blocks of memory and then unmap them
7233 # both at once, they must both go away.
7234 # Systems known to be in this category are Windows (all variants),
7235 # VMS, and Darwin.
7236 case "$host_os" in
7237 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7238 gcc_cv_func_mmap_dev_zero=no ;;
7240 gcc_cv_func_mmap_dev_zero=yes;;
7241 esac
7243 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7244 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7246 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7247 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7248 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7249 if test "${gcc_cv_decl_map_anon+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h. */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7258 #include <sys/types.h>
7259 #include <sys/mman.h>
7260 #include <unistd.h>
7262 #ifndef MAP_ANONYMOUS
7263 #define MAP_ANONYMOUS MAP_ANON
7264 #endif
7267 main ()
7269 int n = MAP_ANONYMOUS;
7271 return 0;
7273 _ACEOF
7274 rm -f conftest.$ac_objext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7276 (eval $ac_compile) 2>conftest.er1
7277 ac_status=$?
7278 grep -v '^ *+' conftest.er1 >conftest.err
7279 rm -f conftest.er1
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } &&
7283 { ac_try='test -z "$ac_c_werror_flag"
7284 || test ! -s conftest.err'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; } &&
7290 { ac_try='test -s conftest.$ac_objext'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 (eval $ac_try) 2>&5
7293 ac_status=$?
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7296 gcc_cv_decl_map_anon=yes
7297 else
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7301 gcc_cv_decl_map_anon=no
7303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7305 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7306 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7308 if test $gcc_cv_decl_map_anon = no; then
7309 gcc_cv_func_mmap_anon=no
7310 else
7311 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7312 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7313 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7317 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7318 # doesn't give anonymous zeroed pages with the same properties listed
7319 # above for use of /dev/zero.
7320 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7321 case "$host_os" in
7322 vms* | cygwin* | pe | mingw* | sco* | udk* )
7323 gcc_cv_func_mmap_anon=no ;;
7325 gcc_cv_func_mmap_anon=yes;;
7326 esac
7328 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7329 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7333 if test $gcc_cv_func_mmap_file = yes; then
7335 cat >>confdefs.h <<\_ACEOF
7336 #define HAVE_MMAP_FILE 1
7337 _ACEOF
7340 if test $gcc_cv_func_mmap_dev_zero = yes; then
7342 cat >>confdefs.h <<\_ACEOF
7343 #define HAVE_MMAP_DEV_ZERO 1
7344 _ACEOF
7347 if test $gcc_cv_func_mmap_anon = yes; then
7349 cat >>confdefs.h <<\_ACEOF
7350 #define HAVE_MMAP_ANON 1
7351 _ACEOF
7356 case "${host}" in
7357 *-*-*vms*)
7358 # Under VMS, vfork works very differently than on Unix. The standard test
7359 # won't work, and it isn't easily adaptable. It makes more sense to
7360 # just force it.
7361 ac_cv_func_vfork_works=yes
7363 esac
7364 echo "$as_me:$LINENO: checking for pid_t" >&5
7365 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7366 if test "${ac_cv_type_pid_t+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369 cat >conftest.$ac_ext <<_ACEOF
7370 /* confdefs.h. */
7371 _ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h. */
7375 $ac_includes_default
7377 main ()
7379 if ((pid_t *) 0)
7380 return 0;
7381 if (sizeof (pid_t))
7382 return 0;
7384 return 0;
7386 _ACEOF
7387 rm -f conftest.$ac_objext
7388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7389 (eval $ac_compile) 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } &&
7396 { ac_try='test -z "$ac_c_werror_flag"
7397 || test ! -s conftest.err'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; } &&
7403 { ac_try='test -s conftest.$ac_objext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 ac_cv_type_pid_t=yes
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 ac_cv_type_pid_t=no
7416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7418 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7419 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7420 if test $ac_cv_type_pid_t = yes; then
7422 else
7424 cat >>confdefs.h <<_ACEOF
7425 #define pid_t int
7426 _ACEOF
7432 for ac_header in unistd.h vfork.h
7434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7435 echo "$as_me:$LINENO: checking for $ac_header" >&5
7436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440 cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h. */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 #include <$ac_header>
7447 _ACEOF
7448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } >/dev/null; then
7456 if test -s conftest.err; then
7457 ac_cpp_err=$ac_c_preproc_warn_flag
7458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7459 else
7460 ac_cpp_err=
7462 else
7463 ac_cpp_err=yes
7465 if test -z "$ac_cpp_err"; then
7466 eval "$as_ac_Header=yes"
7467 else
7468 echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7471 eval "$as_ac_Header=no"
7473 rm -f conftest.err conftest.$ac_ext
7475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7480 _ACEOF
7483 done
7487 for ac_func in fork vfork
7489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7490 echo "$as_me:$LINENO: checking for $ac_func" >&5
7491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7492 if eval "test \"\${$as_ac_var+set}\" = set"; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7503 #define $ac_func innocuous_$ac_func
7505 /* System header to define __stub macros and hopefully few prototypes,
7506 which can conflict with char $ac_func (); below.
7507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7508 <limits.h> exists even on freestanding compilers. */
7510 #ifdef __STDC__
7511 # include <limits.h>
7512 #else
7513 # include <assert.h>
7514 #endif
7516 #undef $ac_func
7518 /* Override any gcc2 internal prototype to avoid an error. */
7519 #ifdef __cplusplus
7520 extern "C"
7522 #endif
7523 /* We use char because int might match the return type of a gcc2
7524 builtin and then its argument prototype would still apply. */
7525 char $ac_func ();
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7530 choke me
7531 #else
7532 char (*f) () = $ac_func;
7533 #endif
7534 #ifdef __cplusplus
7536 #endif
7539 main ()
7541 return f != $ac_func;
7543 return 0;
7545 _ACEOF
7546 rm -f conftest.$ac_objext conftest$ac_exeext
7547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7548 (eval $ac_link) 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -z "$ac_c_werror_flag"
7556 || test ! -s conftest.err'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; } &&
7562 { ac_try='test -s conftest$ac_exeext'
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; }; then
7568 eval "$as_ac_var=yes"
7569 else
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7573 eval "$as_ac_var=no"
7575 rm -f conftest.err conftest.$ac_objext \
7576 conftest$ac_exeext conftest.$ac_ext
7578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7580 if test `eval echo '${'$as_ac_var'}'` = yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7583 _ACEOF
7586 done
7588 if test "x$ac_cv_func_fork" = xyes; then
7589 echo "$as_me:$LINENO: checking for working fork" >&5
7590 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7591 if test "${ac_cv_func_fork_works+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 if test "$cross_compiling" = yes; then
7595 ac_cv_func_fork_works=cross
7596 else
7597 cat >conftest.$ac_ext <<_ACEOF
7598 /* By Ruediger Kuhlmann. */
7599 #include <sys/types.h>
7600 #if HAVE_UNISTD_H
7601 # include <unistd.h>
7602 #endif
7603 /* Some systems only have a dummy stub for fork() */
7604 int main ()
7606 if (fork() < 0)
7607 exit (1);
7608 exit (0);
7610 _ACEOF
7611 rm -f conftest$ac_exeext
7612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7613 (eval $ac_link) 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 ac_cv_func_fork_works=yes
7623 else
7624 echo "$as_me: program exited with status $ac_status" >&5
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 ( exit $ac_status )
7629 ac_cv_func_fork_works=no
7631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7635 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7637 else
7638 ac_cv_func_fork_works=$ac_cv_func_fork
7640 if test "x$ac_cv_func_fork_works" = xcross; then
7641 case $host in
7642 *-*-amigaos* | *-*-msdosdjgpp*)
7643 # Override, as these systems have only a dummy fork() stub
7644 ac_cv_func_fork_works=no
7647 ac_cv_func_fork_works=yes
7649 esac
7650 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7651 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7653 ac_cv_func_vfork_works=$ac_cv_func_vfork
7654 if test "x$ac_cv_func_vfork" = xyes; then
7655 echo "$as_me:$LINENO: checking for working vfork" >&5
7656 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7657 if test "${ac_cv_func_vfork_works+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660 if test "$cross_compiling" = yes; then
7661 ac_cv_func_vfork_works=cross
7662 else
7663 cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h. */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 /* Thanks to Paul Eggert for this test. */
7670 #include <stdio.h>
7671 #include <stdlib.h>
7672 #include <sys/types.h>
7673 #include <sys/stat.h>
7674 #include <sys/wait.h>
7675 #if HAVE_UNISTD_H
7676 # include <unistd.h>
7677 #endif
7678 #if HAVE_VFORK_H
7679 # include <vfork.h>
7680 #endif
7681 /* On some sparc systems, changes by the child to local and incoming
7682 argument registers are propagated back to the parent. The compiler
7683 is told about this with #include <vfork.h>, but some compilers
7684 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7685 static variable whose address is put into a register that is
7686 clobbered by the vfork. */
7687 static void
7688 #ifdef __cplusplus
7689 sparc_address_test (int arg)
7690 # else
7691 sparc_address_test (arg) int arg;
7692 #endif
7694 static pid_t child;
7695 if (!child) {
7696 child = vfork ();
7697 if (child < 0) {
7698 perror ("vfork");
7699 _exit(2);
7701 if (!child) {
7702 arg = getpid();
7703 write(-1, "", 0);
7704 _exit (arg);
7710 main ()
7712 pid_t parent = getpid ();
7713 pid_t child;
7715 sparc_address_test (0);
7717 child = vfork ();
7719 if (child == 0) {
7720 /* Here is another test for sparc vfork register problems. This
7721 test uses lots of local variables, at least as many local
7722 variables as main has allocated so far including compiler
7723 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7724 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7725 reuse the register of parent for one of the local variables,
7726 since it will think that parent can't possibly be used any more
7727 in this routine. Assigning to the local variable will thus
7728 munge parent in the parent process. */
7729 pid_t
7730 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7731 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7732 /* Convince the compiler that p..p7 are live; otherwise, it might
7733 use the same hardware register for all 8 local variables. */
7734 if (p != p1 || p != p2 || p != p3 || p != p4
7735 || p != p5 || p != p6 || p != p7)
7736 _exit(1);
7738 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7739 from child file descriptors. If the child closes a descriptor
7740 before it execs or exits, this munges the parent's descriptor
7741 as well. Test for this by closing stdout in the child. */
7742 _exit(close(fileno(stdout)) != 0);
7743 } else {
7744 int status;
7745 struct stat st;
7747 while (wait(&status) != child)
7749 exit(
7750 /* Was there some problem with vforking? */
7751 child < 0
7753 /* Did the child fail? (This shouldn't happen.) */
7754 || status
7756 /* Did the vfork/compiler bug occur? */
7757 || parent != getpid()
7759 /* Did the file descriptor bug occur? */
7760 || fstat(fileno(stdout), &st) != 0
7764 _ACEOF
7765 rm -f conftest$ac_exeext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767 (eval $ac_link) 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 (eval $ac_try) 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; }; then
7776 ac_cv_func_vfork_works=yes
7777 else
7778 echo "$as_me: program exited with status $ac_status" >&5
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 ( exit $ac_status )
7783 ac_cv_func_vfork_works=no
7785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7788 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7789 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7792 if test "x$ac_cv_func_fork_works" = xcross; then
7793 ac_cv_func_vfork_works=$ac_cv_func_vfork
7794 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7795 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7798 if test "x$ac_cv_func_vfork_works" = xyes; then
7800 cat >>confdefs.h <<\_ACEOF
7801 #define HAVE_WORKING_VFORK 1
7802 _ACEOF
7804 else
7806 cat >>confdefs.h <<\_ACEOF
7807 #define vfork fork
7808 _ACEOF
7811 if test "x$ac_cv_func_fork_works" = xyes; then
7813 cat >>confdefs.h <<\_ACEOF
7814 #define HAVE_WORKING_FORK 1
7815 _ACEOF
7822 am_cv_lib_iconv_ldpath=
7824 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7825 if test "${with_libiconv_prefix+set}" = set; then
7826 withval="$with_libiconv_prefix"
7828 for dir in `echo "$withval" | tr : ' '`; do
7829 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7830 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7831 done
7836 for ac_header in iconv.h
7838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7839 echo "$as_me:$LINENO: checking for $ac_header" >&5
7840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 #include <$ac_header>
7851 _ACEOF
7852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7854 ac_status=$?
7855 grep -v '^ *+' conftest.er1 >conftest.err
7856 rm -f conftest.er1
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } >/dev/null; then
7860 if test -s conftest.err; then
7861 ac_cpp_err=$ac_c_preproc_warn_flag
7862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7863 else
7864 ac_cpp_err=
7866 else
7867 ac_cpp_err=yes
7869 if test -z "$ac_cpp_err"; then
7870 eval "$as_ac_Header=yes"
7871 else
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7875 eval "$as_ac_Header=no"
7877 rm -f conftest.err conftest.$ac_ext
7879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7882 cat >>confdefs.h <<_ACEOF
7883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7884 _ACEOF
7887 done
7890 echo "$as_me:$LINENO: checking for iconv" >&5
7891 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7892 if test "${am_cv_func_iconv+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7896 am_cv_func_iconv="no, consider installing GNU libiconv"
7897 am_cv_lib_iconv=no
7898 cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h. */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 #include <stdlib.h>
7905 #include <iconv.h>
7907 main ()
7909 iconv_t cd = iconv_open("","");
7910 iconv(cd,NULL,NULL,NULL,NULL);
7911 iconv_close(cd);
7913 return 0;
7915 _ACEOF
7916 rm -f conftest.$ac_objext conftest$ac_exeext
7917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7918 (eval $ac_link) 2>conftest.er1
7919 ac_status=$?
7920 grep -v '^ *+' conftest.er1 >conftest.err
7921 rm -f conftest.er1
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
7925 { ac_try='test -z "$ac_c_werror_flag"
7926 || test ! -s conftest.err'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 (eval $ac_try) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; } &&
7932 { ac_try='test -s conftest$ac_exeext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 (eval $ac_try) 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 am_cv_func_iconv=yes
7939 else
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7944 rm -f conftest.err conftest.$ac_objext \
7945 conftest$ac_exeext conftest.$ac_ext
7946 if test "$am_cv_func_iconv" != yes; then
7947 am_save_LIBS="$LIBS"
7948 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7949 cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h. */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7955 #include <stdlib.h>
7956 #include <iconv.h>
7958 main ()
7960 iconv_t cd = iconv_open("","");
7961 iconv(cd,NULL,NULL,NULL,NULL);
7962 iconv_close(cd);
7964 return 0;
7966 _ACEOF
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7969 (eval $ac_link) 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } &&
7976 { ac_try='test -z "$ac_c_werror_flag"
7977 || test ! -s conftest.err'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; } &&
7983 { ac_try='test -s conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 am_cv_lib_iconv=yes
7990 am_cv_func_iconv=yes
7991 else
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7996 rm -f conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
7998 LIBS="$am_save_LIBS"
8002 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8003 echo "${ECHO_T}$am_cv_func_iconv" >&6
8004 if test "$am_cv_func_iconv" = yes; then
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_ICONV 1
8008 _ACEOF
8010 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8011 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8012 if test "${am_cv_proto_iconv+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8023 #include <stdlib.h>
8024 #include <iconv.h>
8025 extern
8026 #ifdef __cplusplus
8028 #endif
8029 #if defined(__STDC__) || defined(__cplusplus)
8030 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8031 #else
8032 size_t iconv();
8033 #endif
8036 main ()
8040 return 0;
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
8046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 am_cv_proto_iconv_arg1=""
8066 else
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 am_cv_proto_iconv_arg1="const"
8072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8073 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);"
8076 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8077 echo "$as_me:$LINENO: result: ${ac_t:-
8078 }$am_cv_proto_iconv" >&5
8079 echo "${ECHO_T}${ac_t:-
8080 }$am_cv_proto_iconv" >&6
8082 cat >>confdefs.h <<_ACEOF
8083 #define ICONV_CONST $am_cv_proto_iconv_arg1
8084 _ACEOF
8087 LIBICONV=
8088 if test "$am_cv_lib_iconv" = yes; then
8089 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8093 # Until we have in-tree GNU iconv:
8094 LIBICONV_DEP=
8098 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8099 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8100 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103 cat >conftest.$ac_ext <<_ACEOF
8104 /* confdefs.h. */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 #include <locale.h>
8111 main ()
8113 return LC_MESSAGES
8115 return 0;
8117 _ACEOF
8118 rm -f conftest.$ac_objext conftest$ac_exeext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8120 (eval $ac_link) 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -z "$ac_c_werror_flag"
8128 || test ! -s conftest.err'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest$ac_exeext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 am_cv_val_LC_MESSAGES=yes
8141 else
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 am_cv_val_LC_MESSAGES=no
8147 rm -f conftest.err conftest.$ac_objext \
8148 conftest$ac_exeext conftest.$ac_ext
8150 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8151 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8152 if test $am_cv_val_LC_MESSAGES = yes; then
8154 cat >>confdefs.h <<\_ACEOF
8155 #define HAVE_LC_MESSAGES 1
8156 _ACEOF
8161 # We will need to find libiberty.h and ansidecl.h
8162 saved_CFLAGS="$CFLAGS"
8163 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8187 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8188 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8189 fprintf_unlocked strstr errno snprintf vasprintf \
8190 malloc realloc calloc free basename getopt clock
8192 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8193 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8194 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8195 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 else
8198 cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h. */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8204 #undef $ac_tr_decl
8205 #define $ac_tr_decl 1
8207 #include "ansidecl.h"
8208 #include "system.h"
8211 main ()
8213 #ifndef $ac_func
8214 char *(*pfn) = (char *(*)) $ac_func ;
8215 #endif
8217 return 0;
8219 _ACEOF
8220 rm -f conftest.$ac_objext
8221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8222 (eval $ac_compile) 2>conftest.er1
8223 ac_status=$?
8224 grep -v '^ *+' conftest.er1 >conftest.err
8225 rm -f conftest.er1
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } &&
8229 { ac_try='test -z "$ac_c_werror_flag"
8230 || test ! -s conftest.err'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 (eval $ac_try) 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; } &&
8236 { ac_try='test -s conftest.$ac_objext'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 (eval $ac_try) 2>&5
8239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8242 eval "gcc_cv_have_decl_$ac_func=yes"
8243 else
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8247 eval "gcc_cv_have_decl_$ac_func=no"
8249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8252 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8253 echo "$as_me:$LINENO: result: yes" >&5
8254 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8255 #define $ac_tr_decl 1
8256 _ACEOF
8258 else
8259 echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8261 #define $ac_tr_decl 0
8262 _ACEOF
8266 done
8272 for ac_func in getrlimit setrlimit getrusage
8274 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8275 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8276 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8277 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 #undef $ac_tr_decl
8287 #define $ac_tr_decl 1
8289 #include "ansidecl.h"
8290 #include "system.h"
8291 #ifdef HAVE_SYS_RESOURCE_H
8292 #include <sys/resource.h>
8293 #endif
8297 main ()
8299 #ifndef $ac_func
8300 char *(*pfn) = (char *(*)) $ac_func ;
8301 #endif
8303 return 0;
8305 _ACEOF
8306 rm -f conftest.$ac_objext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8308 (eval $ac_compile) 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -z "$ac_c_werror_flag"
8316 || test ! -s conftest.err'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 (eval $ac_try) 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; } &&
8322 { ac_try='test -s conftest.$ac_objext'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8328 eval "gcc_cv_have_decl_$ac_func=yes"
8329 else
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 eval "gcc_cv_have_decl_$ac_func=no"
8335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8338 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8339 echo "$as_me:$LINENO: result: yes" >&5
8340 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8341 #define $ac_tr_decl 1
8342 _ACEOF
8344 else
8345 echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8347 #define $ac_tr_decl 0
8348 _ACEOF
8352 done
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h. */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8362 #include "ansidecl.h"
8363 #include "system.h"
8364 #ifdef HAVE_SYS_RESOURCE_H
8365 #include <sys/resource.h>
8366 #endif
8369 main ()
8371 rlim_t l = 0;
8373 return 0;
8375 _ACEOF
8376 rm -f conftest.$ac_objext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8378 (eval $ac_compile) 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -z "$ac_c_werror_flag"
8386 || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest.$ac_objext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8399 else
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8404 cat >>confdefs.h <<\_ACEOF
8405 #define rlim_t long
8406 _ACEOF
8409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8412 for ac_func in ldgetname
8414 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8415 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8416 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8417 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 else
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 #undef $ac_tr_decl
8427 #define $ac_tr_decl 1
8429 #include "ansidecl.h"
8430 #include "system.h"
8431 #ifdef HAVE_LDFCN_H
8432 #include <ldfcn.h>
8433 #endif
8437 main ()
8439 #ifndef $ac_func
8440 char *(*pfn) = (char *(*)) $ac_func ;
8441 #endif
8443 return 0;
8445 _ACEOF
8446 rm -f conftest.$ac_objext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8448 (eval $ac_compile) 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest.$ac_objext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 eval "gcc_cv_have_decl_$ac_func=yes"
8469 else
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 eval "gcc_cv_have_decl_$ac_func=no"
8475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8478 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8479 echo "$as_me:$LINENO: result: yes" >&5
8480 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8481 #define $ac_tr_decl 1
8482 _ACEOF
8484 else
8485 echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8487 #define $ac_tr_decl 0
8488 _ACEOF
8492 done
8496 for ac_func in times
8498 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8499 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8500 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8501 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h. */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 #undef $ac_tr_decl
8511 #define $ac_tr_decl 1
8513 #include "ansidecl.h"
8514 #include "system.h"
8515 #ifdef HAVE_SYS_TIMES_H
8516 #include <sys/times.h>
8517 #endif
8521 main ()
8523 #ifndef $ac_func
8524 char *(*pfn) = (char *(*)) $ac_func ;
8525 #endif
8527 return 0;
8529 _ACEOF
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>conftest.er1
8533 ac_status=$?
8534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 (eval $ac_try) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 eval "gcc_cv_have_decl_$ac_func=yes"
8553 else
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 eval "gcc_cv_have_decl_$ac_func=no"
8559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8562 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8563 echo "$as_me:$LINENO: result: yes" >&5
8564 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8565 #define $ac_tr_decl 1
8566 _ACEOF
8568 else
8569 echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8571 #define $ac_tr_decl 0
8572 _ACEOF
8576 done
8579 # More time-related stuff.
8580 echo "$as_me:$LINENO: checking for struct tms" >&5
8581 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8582 if test "${ac_cv_struct_tms+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8593 #include "ansidecl.h"
8594 #include "system.h"
8595 #ifdef HAVE_SYS_TIMES_H
8596 #include <sys/times.h>
8597 #endif
8600 main ()
8602 struct tms tms;
8604 return 0;
8606 _ACEOF
8607 rm -f conftest.$ac_objext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8609 (eval $ac_compile) 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag"
8617 || test ! -s conftest.err'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 (eval $ac_try) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try='test -s conftest.$ac_objext'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_cv_struct_tms=yes
8630 else
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8634 ac_cv_struct_tms=no
8636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8638 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8639 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8640 if test $ac_cv_struct_tms = yes; then
8642 cat >>confdefs.h <<\_ACEOF
8643 #define HAVE_STRUCT_TMS 1
8644 _ACEOF
8648 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8649 # revisit after autoconf 2.50.
8650 echo "$as_me:$LINENO: checking for clock_t" >&5
8651 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8652 if test "${gcc_cv_type_clock_t+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8663 #include "ansidecl.h"
8664 #include "system.h"
8667 main ()
8669 clock_t x;
8671 return 0;
8673 _ACEOF
8674 rm -f conftest.$ac_objext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8676 (eval $ac_compile) 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
8683 { ac_try='test -z "$ac_c_werror_flag"
8684 || test ! -s conftest.err'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; } &&
8690 { ac_try='test -s conftest.$ac_objext'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 (eval $ac_try) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; }; then
8696 gcc_cv_type_clock_t=yes
8697 else
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 gcc_cv_type_clock_t=no
8703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8705 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8706 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8707 if test $gcc_cv_type_clock_t = yes; then
8709 cat >>confdefs.h <<\_ACEOF
8710 #define HAVE_CLOCK_T 1
8711 _ACEOF
8715 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8716 CFLAGS="$saved_CFLAGS"
8718 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8719 if test "${enable_initfini_array+set}" = set; then
8720 enableval="$enable_initfini_array"
8722 else
8724 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8725 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8726 if test "${gcc_cv_initfini_array+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729 if test "$cross_compiling" = yes; then
8730 gcc_cv_initfini_array=no
8731 else
8732 cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h. */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8739 static int x = -1;
8740 int main (void) { return x; }
8741 int foo (void) { x = 0; }
8742 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8743 _ACEOF
8744 rm -f conftest$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746 (eval $ac_link) 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751 (eval $ac_try) 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 gcc_cv_initfini_array=yes
8756 else
8757 echo "$as_me: program exited with status $ac_status" >&5
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8761 ( exit $ac_status )
8762 gcc_cv_initfini_array=no
8764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8767 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8768 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8769 enable_initfini_array=$gcc_cv_initfini_array
8772 if test $enable_initfini_array = yes; then
8774 cat >>confdefs.h <<\_ACEOF
8775 #define HAVE_INITFINI_ARRAY 1
8776 _ACEOF
8780 # mkdir takes a single argument on some systems.
8781 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8782 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8783 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h. */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8793 #include <sys/types.h>
8794 #ifdef HAVE_SYS_STAT_H
8795 # include <sys/stat.h>
8796 #endif
8797 #ifdef HAVE_UNISTD_H
8798 # include <unistd.h>
8799 #endif
8800 #ifdef HAVE_DIRECT_H
8801 # include <direct.h>
8802 #endif
8804 main ()
8806 mkdir ("foo", 0);
8808 return 0;
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813 (eval $ac_compile) 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -z "$ac_c_werror_flag"
8821 || test ! -s conftest.err'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 (eval $ac_try) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest.$ac_objext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 gcc_cv_mkdir_takes_one_arg=no
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 gcc_cv_mkdir_takes_one_arg=yes
8840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8842 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8843 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8844 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8846 cat >>confdefs.h <<\_ACEOF
8847 #define MKDIR_TAKES_ONE_ARG 1
8848 _ACEOF
8853 # File extensions
8854 manext='.1'
8855 objext='.o'
8859 # With Setjmp/Longjmp based exception handling.
8860 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8861 if test "${enable_sjlj_exceptions+set}" = set; then
8862 enableval="$enable_sjlj_exceptions"
8863 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8865 cat >>confdefs.h <<_ACEOF
8866 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8867 _ACEOF
8871 if test x$host = x$target; then
8872 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8873 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8874 if test "${ac_cv_lib_unwind_main+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877 ac_check_lib_save_LIBS=$LIBS
8878 LIBS="-lunwind $LIBS"
8879 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h. */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8888 main ()
8890 main ();
8892 return 0;
8894 _ACEOF
8895 rm -f conftest.$ac_objext conftest$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -z "$ac_c_werror_flag"
8905 || test ! -s conftest.err'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try='test -s conftest$ac_exeext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_lib_unwind_main=yes
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_cv_lib_unwind_main=no
8924 rm -f conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926 LIBS=$ac_check_lib_save_LIBS
8928 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8929 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8930 if test $ac_cv_lib_unwind_main = yes; then
8931 use_libunwind_default=yes
8932 else
8933 use_libunwind_default=no
8936 else
8937 use_libunwind_default=no
8939 # Use libunwind based exception handling.
8940 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8941 if test "${enable_libunwind_exceptions+set}" = set; then
8942 enableval="$enable_libunwind_exceptions"
8943 use_libunwind_exceptions=$enableval
8944 else
8945 use_libunwind_exceptions=$use_libunwind_default
8947 if test x"$use_libunwind_exceptions" = xyes; then
8949 cat >>confdefs.h <<\_ACEOF
8950 #define USE_LIBUNWIND_EXCEPTIONS 1
8951 _ACEOF
8955 # --------------------------------------------------------
8956 # Build, host, and target specific configuration fragments
8957 # --------------------------------------------------------
8959 # Collect build-machine-specific information.
8960 . ${srcdir}/config.build
8962 # Collect host-machine-specific information.
8963 . ${srcdir}/config.host
8965 target_gtfiles=
8967 # Collect target-machine-specific information.
8968 . ${srcdir}/config.gcc
8970 extra_objs="${host_extra_objs} ${extra_objs}"
8971 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
8973 # Default the target-machine variables that were not explicitly set.
8974 if test x"$tm_file" = x
8975 then tm_file=$cpu_type/$cpu_type.h; fi
8977 if test x"$extra_headers" = x
8978 then extra_headers=; fi
8980 if test x$md_file = x
8981 then md_file=$cpu_type/$cpu_type.md; fi
8983 if test x$out_file = x
8984 then out_file=$cpu_type/$cpu_type.c; fi
8986 if test x"$tmake_file" = x
8987 then tmake_file=$cpu_type/t-$cpu_type
8990 if test x"$dwarf2" = xyes
8991 then tm_file="$tm_file tm-dwarf2.h"
8994 # Say what files are being used for the output code and MD file.
8995 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8996 echo "Using \`$srcdir/config/$md_file' as machine description file."
8998 # If any of the xm_file variables contain nonexistent files, warn
8999 # about them and drop them.
9002 for x in $build_xm_file; do
9003 if test -f $srcdir/config/$x
9004 then bx="$bx $x"
9005 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9006 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9008 done
9009 build_xm_file="$bx"
9012 for x in $host_xm_file; do
9013 if test -f $srcdir/config/$x
9014 then hx="$hx $x"
9015 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9016 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9018 done
9019 host_xm_file="$hx"
9022 for x in $xm_file; do
9023 if test -f $srcdir/config/$x
9024 then tx="$tx $x"
9025 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9026 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9028 done
9029 xm_file="$tx"
9031 count=a
9032 for f in $tm_file; do
9033 count=${count}x
9034 done
9035 if test $count = ax; then
9036 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9037 else
9038 echo "Using the following target machine macro files:"
9039 for f in $tm_file; do
9040 echo " $srcdir/config/$f"
9041 done
9044 if test x$need_64bit_hwint = xyes; then
9046 cat >>confdefs.h <<\_ACEOF
9047 #define NEED_64BIT_HOST_WIDE_INT 1
9048 _ACEOF
9052 count=a
9053 for f in $host_xm_file; do
9054 count=${count}x
9055 done
9056 if test $count = a; then
9058 elif test $count = ax; then
9059 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9060 else
9061 echo "Using the following host machine macro files:"
9062 for f in $host_xm_file; do
9063 echo " $srcdir/config/$f"
9064 done
9066 echo "Using ${out_host_hook_obj} for host machine hooks."
9068 if test "$host_xm_file" != "$build_xm_file"; then
9069 count=a
9070 for f in $build_xm_file; do
9071 count=${count}x
9072 done
9073 if test $count = a; then
9075 elif test $count = ax; then
9076 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9077 else
9078 echo "Using the following build machine macro files:"
9079 for f in $build_xm_file; do
9080 echo " $srcdir/config/$f"
9081 done
9085 # ---------
9086 # Threading
9087 # ---------
9089 # Check if a valid thread package
9090 case ${enable_threads} in
9091 "" | no)
9092 # No threads
9093 target_thread_file='single'
9095 yes)
9096 # default
9097 target_thread_file='single'
9099 aix | dce | gnat | irix | posix | rtems | \
9100 single | solaris | vxworks | win32 )
9101 target_thread_file=${enable_threads}
9104 echo "${enable_threads} is an unknown thread package" 1>&2
9105 exit 1
9107 esac
9109 if test x${thread_file} = x; then
9110 # No thread file set by target-specific clauses in config.gcc,
9111 # so use file chosen by default logic above
9112 thread_file=${target_thread_file}
9115 # Make gthr-default.h if we have a thread file.
9116 gthread_flags=
9117 if test $thread_file != single; then
9118 rm -f gthr-default.h
9119 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9120 gthread_flags=-DHAVE_GTHR_DEFAULT
9124 # --------
9125 # UNSORTED
9126 # --------
9128 if test x$enable___cxa_atexit = xyes || \
9129 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9130 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9131 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9132 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h. */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9143 #define __cxa_atexit innocuous___cxa_atexit
9145 /* System header to define __stub macros and hopefully few prototypes,
9146 which can conflict with char __cxa_atexit (); below.
9147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9148 <limits.h> exists even on freestanding compilers. */
9150 #ifdef __STDC__
9151 # include <limits.h>
9152 #else
9153 # include <assert.h>
9154 #endif
9156 #undef __cxa_atexit
9158 /* Override any gcc2 internal prototype to avoid an error. */
9159 #ifdef __cplusplus
9160 extern "C"
9162 #endif
9163 /* We use char because int might match the return type of a gcc2
9164 builtin and then its argument prototype would still apply. */
9165 char __cxa_atexit ();
9166 /* The GNU C library defines this for functions which it implements
9167 to always fail with ENOSYS. Some functions are actually named
9168 something starting with __ and the normal name is an alias. */
9169 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9170 choke me
9171 #else
9172 char (*f) () = __cxa_atexit;
9173 #endif
9174 #ifdef __cplusplus
9176 #endif
9179 main ()
9181 return f != __cxa_atexit;
9183 return 0;
9185 _ACEOF
9186 rm -f conftest.$ac_objext conftest$ac_exeext
9187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9188 (eval $ac_link) 2>conftest.er1
9189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } &&
9195 { ac_try='test -z "$ac_c_werror_flag"
9196 || test ! -s conftest.err'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 (eval $ac_try) 2>&5
9199 ac_status=$?
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; } &&
9202 { ac_try='test -s conftest$ac_exeext'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_cv_func___cxa_atexit=yes
9209 else
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 ac_cv_func___cxa_atexit=no
9215 rm -f conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9218 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9219 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9220 if test $ac_cv_func___cxa_atexit = yes; then
9222 cat >>confdefs.h <<\_ACEOF
9223 #define DEFAULT_USE_CXA_ATEXIT 1
9224 _ACEOF
9226 else
9227 echo "__cxa_atexit can't be enabled on this target"
9232 # Look for a file containing extra machine modes.
9233 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9234 extra_modes_file='$(srcdir)'/config/${extra_modes}
9237 cat >>confdefs.h <<_ACEOF
9238 #define EXTRA_MODES_FILE "config/$extra_modes"
9239 _ACEOF
9243 # auto-host.h is the file containing items generated by autoconf and is
9244 # the first file included by config.h.
9245 # If host=build, it is correct to have bconfig include auto-host.h
9246 # as well. If host!=build, we are in error and need to do more
9247 # work to find out the build config parameters.
9248 if test x$host = x$build
9249 then
9250 build_auto=auto-host.h
9251 FORBUILD=..
9252 else
9253 # We create a subdir, then run autoconf in the subdir.
9254 # To prevent recursion we set host and build for the new
9255 # invocation of configure to the build for this invocation
9256 # of configure.
9257 tempdir=build.$$
9258 rm -rf $tempdir
9259 mkdir $tempdir
9260 cd $tempdir
9261 case ${srcdir} in
9262 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9263 *) realsrcdir=../${srcdir};;
9264 esac
9265 saved_CFLAGS="${CFLAGS}"
9266 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9267 ${realsrcdir}/configure \
9268 --enable-languages=${enable_languages-all} \
9269 --target=$target_alias --host=$build_alias --build=$build_alias
9270 CFLAGS="${saved_CFLAGS}"
9272 # We just finished tests for the build machine, so rename
9273 # the file auto-build.h in the gcc directory.
9274 mv auto-host.h ../auto-build.h
9275 cd ..
9276 rm -rf $tempdir
9277 build_auto=auto-build.h
9278 FORBUILD=../${build_subdir}
9282 tm_file="${tm_file} defaults.h"
9283 tm_p_file="${tm_p_file} tm-preds.h"
9284 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9285 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9286 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9287 # put this back in temporarily.
9288 xm_file="ansidecl.h ${xm_file}"
9290 # --------
9291 # UNSORTED
9292 # --------
9294 # Get the version trigger filename from the toplevel
9295 if test "${with_gcc_version_trigger+set}" = set; then
9296 gcc_version_trigger=$with_gcc_version_trigger
9297 else
9298 gcc_version_trigger=${srcdir}/version.c
9300 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9301 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9303 # Compile in configure arguments.
9304 if test -f configargs.h ; then
9305 # Being re-configured.
9306 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9307 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9308 else
9309 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9312 # Double all backslashes and backslash all quotes to turn
9313 # gcc_config_arguments into a C string.
9314 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9315 $gcc_config_arguments
9317 gcc_config_arguments_str=`cat conftest.out`
9318 rm -f conftest.out
9320 cat > configargs.h <<EOF
9321 /* Generated automatically. */
9322 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9323 static const char thread_model[] = "$thread_file";
9325 static const struct {
9326 const char *name, *value;
9327 } configure_default_options[] = $configure_default_options;
9330 # Internationalization
9331 PACKAGE=gcc
9332 VERSION="$gcc_version"
9336 # If we haven't got the data from the intl directory,
9337 # assume NLS is disabled.
9338 USE_NLS=no
9339 LIBINTL=
9340 LIBINTL_DEP=
9341 INCINTL=
9342 XGETTEXT=
9343 GMSGFMT=
9344 POSUB=
9345 if test -f ../intl/config.intl; then
9346 . ../intl/config.intl
9348 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9349 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9350 if test x"$USE_NLS" != xyes; then
9351 echo "$as_me:$LINENO: result: no" >&5
9352 echo "${ECHO_T}no" >&6
9353 else
9354 echo "$as_me:$LINENO: result: yes" >&5
9355 echo "${ECHO_T}yes" >&6
9357 cat >>confdefs.h <<\_ACEOF
9358 #define ENABLE_NLS 1
9359 _ACEOF
9362 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9363 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9364 # Look for .po and .gmo files in the source directory.
9365 CATALOGS=
9366 XLINGUAS=
9367 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9368 # If there aren't any .gmo files the shell will give us the
9369 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9370 # weeded out.
9371 case "$cat" in *\**)
9372 continue;;
9373 esac
9374 # The quadruple backslash is collapsed to a double backslash
9375 # by the backticks, then collapsed again by the double quotes,
9376 # leaving us with one backslash in the sed expression (right
9377 # before the dot that mustn't act as a wildcard).
9378 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9379 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9380 # The user is allowed to set LINGUAS to a list of languages to
9381 # install catalogs for. If it's empty that means "all of them."
9382 if test "x$LINGUAS" = x; then
9383 CATALOGS="$CATALOGS $cat"
9384 XLINGUAS="$XLINGUAS $lang"
9385 else
9386 case "$LINGUAS" in *$lang*)
9387 CATALOGS="$CATALOGS $cat"
9388 XLINGUAS="$XLINGUAS $lang"
9390 esac
9392 done
9393 LINGUAS="$XLINGUAS"
9394 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9395 echo "${ECHO_T}$LINGUAS" >&6
9398 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9399 # -liconv on the link line twice.
9400 case "$LIBINTL" in *$LIBICONV*)
9401 LIBICONV= ;;
9402 esac
9404 # Windows32 Registry support for specifying GCC installation paths.
9405 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9406 if test "${enable_win32_registry+set}" = set; then
9407 enableval="$enable_win32_registry"
9410 case $host_os in
9411 win32 | pe | cygwin* | mingw32* | uwin*)
9412 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9413 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9414 if test "x$enable_win32_registry" != xno; then
9416 cat >>confdefs.h <<\_ACEOF
9417 #define ENABLE_WIN32_REGISTRY 1
9418 _ACEOF
9420 echo "$as_me:$LINENO: result: yes" >&5
9421 echo "${ECHO_T}yes" >&6
9422 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9423 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9424 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427 ac_func_search_save_LIBS=$LIBS
9428 ac_cv_search_RegOpenKeyExA=no
9429 cat >conftest.$ac_ext <<_ACEOF
9430 /* confdefs.h. */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9436 /* Override any gcc2 internal prototype to avoid an error. */
9437 #ifdef __cplusplus
9438 extern "C"
9439 #endif
9440 /* We use char because int might match the return type of a gcc2
9441 builtin and then its argument prototype would still apply. */
9442 char RegOpenKeyExA ();
9444 main ()
9446 RegOpenKeyExA ();
9448 return 0;
9450 _ACEOF
9451 rm -f conftest.$ac_objext conftest$ac_exeext
9452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453 (eval $ac_link) 2>conftest.er1
9454 ac_status=$?
9455 grep -v '^ *+' conftest.er1 >conftest.err
9456 rm -f conftest.er1
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } &&
9460 { ac_try='test -z "$ac_c_werror_flag"
9461 || test ! -s conftest.err'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; } &&
9467 { ac_try='test -s conftest$ac_exeext'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 (eval $ac_try) 2>&5
9470 ac_status=$?
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9473 ac_cv_search_RegOpenKeyExA="none required"
9474 else
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9479 rm -f conftest.err conftest.$ac_objext \
9480 conftest$ac_exeext conftest.$ac_ext
9481 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9482 for ac_lib in advapi32; do
9483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h. */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9491 /* Override any gcc2 internal prototype to avoid an error. */
9492 #ifdef __cplusplus
9493 extern "C"
9494 #endif
9495 /* We use char because int might match the return type of a gcc2
9496 builtin and then its argument prototype would still apply. */
9497 char RegOpenKeyExA ();
9499 main ()
9501 RegOpenKeyExA ();
9503 return 0;
9505 _ACEOF
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9508 (eval $ac_link) 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -z "$ac_c_werror_flag"
9516 || test ! -s conftest.err'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; } &&
9522 { ac_try='test -s conftest$ac_exeext'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9528 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9529 break
9530 else
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9535 rm -f conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 done
9539 LIBS=$ac_func_search_save_LIBS
9541 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9542 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9543 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9544 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550 echo "${ECHO_T}no" >&6
9553 # Check if user specified a different registry key.
9554 case "x${enable_win32_registry}" in
9555 x | xyes)
9556 # default.
9557 gcc_cv_win32_registry_key="$VERSION"
9559 xno)
9560 # no registry lookup.
9561 gcc_cv_win32_registry_key=''
9564 # user-specified key.
9565 gcc_cv_win32_registry_key="$enable_win32_registry"
9567 esac
9569 if test "x$enable_win32_registry" != xno; then
9570 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9571 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9573 cat >>confdefs.h <<_ACEOF
9574 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9575 _ACEOF
9577 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9578 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9581 esac
9583 # Get an absolute path to the GCC top-level source directory
9584 holddir=`${PWDCMD-pwd}`
9585 cd $srcdir
9586 topdir=`${PWDCMD-pwd}`
9587 cd $holddir
9589 # Conditionalize the makefile for this host machine.
9590 xmake_file=
9591 for f in ${host_xmake_file}
9593 if test -f ${srcdir}/config/$f
9594 then
9595 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9597 done
9599 # Conditionalize the makefile for this target machine.
9600 tmake_file_=
9601 for f in ${tmake_file}
9603 if test -f ${srcdir}/config/$f
9604 then
9605 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9607 done
9608 tmake_file="${tmake_file_}"
9610 symbolic_link='ln -s'
9612 # If the host doesn't support symlinks, modify CC in
9613 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9614 # Otherwise, we can use "CC=$(CC)".
9615 rm -f symtest.tem
9616 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9617 then
9618 cc_set_by_configure="\$(CC)"
9619 quoted_cc_set_by_configure="\$(CC)"
9620 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9621 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9622 else
9623 rm -f symtest.tem
9624 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9625 then
9626 symbolic_link="cp -p"
9627 else
9628 symbolic_link="cp"
9630 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9631 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9632 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9633 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9635 rm -f symtest.tem
9637 out_object_file=`basename $out_file .c`.o
9639 tm_file_list=
9640 tm_include_list=
9641 for f in $tm_file; do
9642 case $f in
9643 defaults.h )
9644 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9645 tm_include_list="${tm_include_list} $f"
9648 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9649 tm_include_list="${tm_include_list} config/$f"
9651 esac
9652 done
9654 tm_p_file_list=
9655 tm_p_include_list=
9656 for f in $tm_p_file; do
9657 case $f in
9658 tm-preds.h )
9659 tm_p_file_list="${tm_p_file_list} $f"
9660 tm_p_include_list="${tm_p_include_list} $f"
9663 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9664 tm_p_include_list="${tm_p_include_list} config/$f"
9665 esac
9666 done
9668 xm_file_list=
9669 xm_include_list=
9670 for f in $xm_file; do
9671 case $f in
9672 ansidecl.h )
9673 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9674 xm_include_list="${xm_include_list} $f"
9676 auto-host.h )
9677 xm_file_list="${xm_file_list} $f"
9678 xm_include_list="${xm_include_list} $f"
9681 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9682 xm_include_list="${xm_include_list} config/$f"
9684 esac
9685 done
9687 host_xm_file_list=
9688 host_xm_include_list=
9689 for f in $host_xm_file; do
9690 case $f in
9691 ansidecl.h )
9692 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9693 host_xm_include_list="${host_xm_include_list} $f"
9695 auto-host.h )
9696 host_xm_file_list="${host_xm_file_list} $f"
9697 host_xm_include_list="${host_xm_include_list} $f"
9700 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9701 host_xm_include_list="${host_xm_include_list} config/$f"
9703 esac
9704 done
9706 build_xm_file_list=
9707 for f in $build_xm_file; do
9708 case $f in
9709 ansidecl.h )
9710 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9711 build_xm_include_list="${build_xm_include_list} $f"
9713 auto-build.h | auto-host.h )
9714 build_xm_file_list="${build_xm_file_list} $f"
9715 build_xm_include_list="${build_xm_include_list} $f"
9718 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9719 build_xm_include_list="${build_xm_include_list} config/$f"
9721 esac
9722 done
9724 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9725 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9726 CROSS=
9727 ALL=all.internal
9728 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9729 if test x$host != x$target
9730 then
9731 CROSS="-DCROSS_COMPILE"
9732 ALL=all.cross
9733 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9734 case "$host","$target" in
9735 # Darwin crosses can use the host system's libraries and headers,
9736 # because of the fat library support. Of course, it must be the
9737 # same version of Darwin on both sides. Allow the user to
9738 # just say --target=foo-darwin without a version number to mean
9739 # "the version on this system".
9740 *-*-darwin*,*-*-darwin*)
9741 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9742 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9743 if test $hostos = $targetos -o $targetos = darwin ; then
9744 CROSS=
9745 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9746 with_headers=yes
9750 i?86-*-*,x86_64-*-* \
9751 | powerpc*-*-*,powerpc64*-*-*)
9752 CROSS="$CROSS -DNATIVE_CROSS" ;;
9753 esac
9754 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9755 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9756 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9759 # If this is a cross-compiler that does not
9760 # have its own set of headers then define
9761 # inhibit_libc
9763 # If this is using newlib, without having the headers available now,
9764 # then define inhibit_libc in LIBGCC2_CFLAGS.
9765 # This prevents libgcc2 from containing any code which requires libc
9766 # support.
9767 inhibit_libc=
9768 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9769 test x$with_newlib = xyes ; } &&
9770 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9771 inhibit_libc=-Dinhibit_libc
9775 # When building gcc with a cross-compiler, we need to adjust things so
9776 # that the generator programs are still built with the native compiler.
9777 # Also, we cannot run fixincludes or fix-header.
9779 # These are the normal (build=host) settings:
9780 BUILD_PREFIX=
9781 BUILD_PREFIX_1=ignore-
9782 CC_FOR_BUILD='$(CC)'
9783 BUILD_CFLAGS='$(ALL_CFLAGS)'
9785 STMP_FIXINC=stmp-fixinc
9787 # Possibly disable fixproto, on a per-target basis.
9788 case ${use_fixproto} in
9790 STMP_FIXPROTO=
9792 yes)
9793 STMP_FIXPROTO=stmp-fixproto
9795 esac
9798 # And these apply if build != host, or we are generating coverage data
9799 if test x$build != x$host || test "x$coverage_flags" != x
9800 then
9801 BUILD_PREFIX=build-
9802 BUILD_PREFIX_1=build-
9803 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9805 if test "x$TARGET_SYSTEM_ROOT" = x; then
9806 STMP_FIXINC=
9807 STMP_FIXPROTO=
9811 # Expand extra_headers to include complete path.
9812 # This substitutes for lots of t-* files.
9813 extra_headers_list=
9814 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9815 for file in ${extra_headers} ; do
9816 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9817 done
9819 # Define collect2 in Makefile.
9820 case $host_can_use_collect2 in
9821 no) collect2= ;;
9822 *) collect2='collect2$(exeext)' ;;
9823 esac
9826 # Add a definition of USE_COLLECT2 if system wants one.
9827 case $use_collect2 in
9828 no) use_collect2= ;;
9829 "") ;;
9831 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9832 xm_defines="${xm_defines} USE_COLLECT2"
9833 case $host_can_use_collect2 in
9835 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
9836 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
9837 { (exit 1); exit 1; }; }
9839 esac
9841 esac
9843 # ---------------------------
9844 # Assembler & linker features
9845 # ---------------------------
9847 # Identify the assembler which will work hand-in-glove with the newly
9848 # built GCC, so that we can examine its features. This is the assembler
9849 # which will be driven by the driver program.
9851 # If build != host, and we aren't building gas in-tree, we identify a
9852 # build->target assembler and hope that it will have the same features
9853 # as the host->target assembler we'll be using.
9854 echo "$as_me:$LINENO: checking what assembler to use" >&5
9855 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9856 in_tree_gas=no
9857 gcc_cv_as=
9858 gcc_cv_gas_major_version=
9859 gcc_cv_gas_minor_version=
9860 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9861 if test -x "$DEFAULT_ASSEMBLER"; then
9862 gcc_cv_as="$DEFAULT_ASSEMBLER"
9863 elif test -x as$host_exeext; then
9864 # Build using assembler in the current directory.
9865 gcc_cv_as=./as$host_exeext
9866 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9867 && test -f ../gas/Makefile \
9868 && test x$build = x$host; then
9869 # Single tree build which includes gas. We want to prefer it
9870 # over whatever linker top-level may have detected, since
9871 # we'll use what we're building after installation anyway.
9872 in_tree_gas=yes
9873 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9874 for f in $gcc_cv_as_bfd_srcdir/configure \
9875 $gcc_cv_as_gas_srcdir/configure \
9876 $gcc_cv_as_gas_srcdir/configure.in \
9877 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9878 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9879 if test x$gcc_cv_gas_version != x; then
9880 break
9882 done
9883 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9884 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9885 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9886 case $gcc_cv_gas_patch_version in
9887 "") gcc_cv_gas_patch_version="0" ;;
9888 esac
9889 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9890 + $gcc_cv_gas_minor_version \) \* 1000 \
9891 + $gcc_cv_gas_patch_version`
9893 rm -f as$host_exeext
9894 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9895 in_tree_gas_is_elf=no
9896 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9897 || (grep 'obj_format = multi' ../gas/Makefile \
9898 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9899 then
9900 in_tree_gas_is_elf=yes
9902 elif test -x "$AS_FOR_TARGET"; then
9903 gcc_cv_as="$AS_FOR_TARGET"
9904 elif test -x "$AS" && test x$host = x$target; then
9905 gcc_cv_as="$AS"
9908 if test "x$gcc_cv_as" = x; then
9909 # Search the same directories that the installed compiler will
9910 # search. Else we may find the wrong assembler and lose. If we
9911 # do not find a suitable assembler binary, then try the user's
9912 # path.
9914 # Also note we have to check MD_EXEC_PREFIX before checking the
9915 # user's path. Unfortunately, there is no good way to get at the
9916 # value of MD_EXEC_PREFIX here. So we do a brute force search
9917 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9918 # to be fixed as part of the make/configure rewrite too.
9920 if test "x$exec_prefix" = xNONE; then
9921 if test "x$prefix" = xNONE; then
9922 test_prefix=/usr/local
9923 else
9924 test_prefix=$prefix
9926 else
9927 test_prefix=$exec_prefix
9930 # If the loop below does not find an assembler, then use whatever
9931 # one we can find in the users's path.
9932 # user's path.
9933 if test "x$program_prefix" != xNONE; then
9934 gcc_cv_as=${program_prefix}as$host_exeext
9935 else
9936 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
9939 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9940 $test_prefix/libexec/gcc/$target_noncanonical \
9941 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9942 /usr/lib/gcc/$target_noncanonical \
9943 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9944 $test_prefix/$target_noncanonical/bin"
9946 if test x$host = x$target; then
9947 test_dirs="$test_dirs \
9948 /usr/libexec \
9949 /usr/ccs/gcc \
9950 /usr/ccs/bin \
9951 /udk/usr/ccs/bin \
9952 /bsd43/usr/lib/cmplrs/cc \
9953 /usr/cross64/usr/bin \
9954 /usr/lib/cmplrs/cc \
9955 /sysv/usr/lib/cmplrs/cc \
9956 /svr4/usr/lib/cmplrs/cc \
9957 /usr/bin"
9960 for dir in $test_dirs; do
9961 if test -x $dir/as$host_exeext; then
9962 gcc_cv_as=$dir/as$host_exeext
9963 break;
9965 done
9967 case $in_tree_gas in
9968 yes)
9969 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9970 echo "${ECHO_T}\"newly built gas\"" >&6
9973 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9974 echo "${ECHO_T}$gcc_cv_as" >&6
9976 esac
9978 # Identify the linker which will work hand-in-glove with the newly
9979 # built GCC, so that we can examine its features. This is the linker
9980 # which will be driven by the driver program.
9982 # If build != host, and we aren't building gas in-tree, we identify a
9983 # build->target linker and hope that it will have the same features
9984 # as the host->target linker we'll be using.
9985 echo "$as_me:$LINENO: checking what linker to use" >&5
9986 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9987 in_tree_ld=no
9988 gcc_cv_ld=
9989 gcc_cv_gld_major_version=
9990 gcc_cv_gld_minor_version=
9991 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9992 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9993 if test -x "$DEFAULT_LINKER"; then
9994 gcc_cv_ld="$DEFAULT_LINKER"
9995 elif test -x collect-ld$host_exeext; then
9996 # Build using linker in the current directory.
9997 gcc_cv_ld=./collect-ld$host_exeext
9998 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9999 && test -f ../ld/Makefile \
10000 && test x$build = x$host; then
10001 # Single tree build which includes ld. We want to prefer it
10002 # over whatever linker top-level may have detected, since
10003 # we'll use what we're building after installation anyway.
10004 in_tree_ld=yes
10005 in_tree_ld_is_elf=no
10006 if (grep 'EMUL = .*elf' ../ld/Makefile \
10007 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10008 in_tree_ld_is_elf=yes
10010 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
10012 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10013 if test x$gcc_cv_gld_version != x; then
10014 break
10016 done
10017 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10018 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10019 rm -f collect-ld$host_exeext
10020 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10021 2>/dev/null
10022 elif test -x "$LD_FOR_TARGET"; then
10023 gcc_cv_ld="$LD_FOR_TARGET"
10024 elif test -x "$LD" && test x$host = x$target; then
10025 gcc_cv_ld="$LD"
10028 if test "x$gcc_cv_ld" = x; then
10029 # Search the same directories that the installed compiler will
10030 # search. Else we may find the wrong linker and lose. If we
10031 # do not find a suitable linker binary, then try the user's
10032 # path.
10034 # Also note we have to check MD_EXEC_PREFIX before checking the
10035 # user's path. Unfortunately, there is no good way to get at the
10036 # value of MD_EXEC_PREFIX here. So we do a brute force search
10037 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10038 # to be fixed as part of the make/configure rewrite too.
10040 if test "x$exec_prefix" = xNONE; then
10041 if test "x$prefix" = xNONE; then
10042 test_prefix=/usr/local
10043 else
10044 test_prefix=$prefix
10046 else
10047 test_prefix=$exec_prefix
10050 # If the loop below does not find an linker, then use whatever
10051 # one we can find in the users's path.
10052 # user's path.
10053 if test "x$program_prefix" != xNONE; then
10054 gcc_cv_ld=${program_prefix}ld$host_exeext
10055 else
10056 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10059 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10060 $test_prefix/libexec/gcc/$target_noncanonical \
10061 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10062 /usr/lib/gcc/$target_noncanonical \
10063 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10064 $test_prefix/$target_noncanonical/bin"
10066 if test x$host = x$target; then
10067 test_dirs="$test_dirs \
10068 /usr/libexec \
10069 /usr/ccs/gcc \
10070 /usr/ccs/bin \
10071 /udk/usr/ccs/bin \
10072 /bsd43/usr/lib/cmplrs/cc \
10073 /usr/cross64/usr/bin \
10074 /usr/lib/cmplrs/cc \
10075 /sysv/usr/lib/cmplrs/cc \
10076 /svr4/usr/lib/cmplrs/cc \
10077 /usr/bin"
10080 for dir in $test_dirs; do
10081 if test -x $dir/ld$host_exeext; then
10082 gcc_cv_ld=$dir/ld$host_exeext
10083 break;
10085 done
10087 case $in_tree_ld in
10088 yes)
10089 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10090 echo "${ECHO_T}\"newly built ld\"" >&6
10093 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10094 echo "${ECHO_T}$gcc_cv_ld" >&6
10096 esac
10098 # Figure out what nm we will be using.
10099 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10100 echo "$as_me:$LINENO: checking what nm to use" >&5
10101 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10102 in_tree_nm=no
10103 if test -x nm$host_exeext; then
10104 gcc_cv_nm=./nm$host_exeext
10105 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10106 && test -f ../binutils/Makefile; then
10107 # Single tree build which includes binutils.
10108 in_tree_nm=yes
10109 gcc_cv_nm=./nm$host_exeext
10110 rm -f nm$host_exeext
10111 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10112 elif test "x$program_prefix" != xNONE; then
10113 gcc_cv_nm=${program_prefix}nm$host_exeext
10114 else
10115 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10117 case $in_tree_nm in
10118 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10119 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10120 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10121 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10122 esac
10124 # Figure out what objdump we will be using.
10125 echo "$as_me:$LINENO: checking what objdump to use" >&5
10126 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10127 in_tree_objdump=no
10128 if test -x objdump$host_exeext; then
10129 gcc_cv_objdump=./objdump$host_exeext
10130 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10131 && test -f ../binutils/Makefile; then
10132 # Single tree build which includes binutils.
10133 in_tree_objdump=yes
10134 gcc_cv_objdump=./objdump$host_exeext
10135 rm -f objdump$host_exeext
10136 $symbolic_link ../binutils/objdump$host_exeext \
10137 objdump$host_exeext 2>/dev/null
10138 elif test "x$program_prefix" != xNONE; then
10139 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10140 else
10141 gcc_cv_objdump=`echo objdump | \
10142 sed "${program_transform_name}"`$host_exeext
10144 case $in_tree_objdump in
10145 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10146 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10147 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10148 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10149 esac
10151 # Figure out what assembler alignment features are present.
10152 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10153 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10154 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 gcc_cv_as_balign_and_p2align=no
10158 if test $in_tree_gas = yes; then
10159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10160 then gcc_cv_as_balign_and_p2align=yes
10162 elif test x$gcc_cv_as != x; then
10163 echo '.balign 4
10164 .p2align 2' > conftest.s
10165 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }
10171 then
10172 gcc_cv_as_balign_and_p2align=yes
10173 else
10174 echo "configure: failed program was" >&5
10175 cat conftest.s >&5
10177 rm -f conftest.o conftest.s
10180 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10181 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10182 if test $gcc_cv_as_balign_and_p2align = yes; then
10184 cat >>confdefs.h <<\_ACEOF
10185 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10186 _ACEOF
10190 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10191 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10192 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195 gcc_cv_as_max_skip_p2align=no
10196 if test $in_tree_gas = yes; then
10197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10198 then gcc_cv_as_max_skip_p2align=yes
10200 elif test x$gcc_cv_as != x; then
10201 echo '.p2align 4,,7' > conftest.s
10202 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }
10208 then
10209 gcc_cv_as_max_skip_p2align=yes
10210 else
10211 echo "configure: failed program was" >&5
10212 cat conftest.s >&5
10214 rm -f conftest.o conftest.s
10217 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10218 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10219 if test $gcc_cv_as_max_skip_p2align = yes; then
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10223 _ACEOF
10227 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10228 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10229 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232 gcc_cv_as_subsection_m1=no
10233 if test $in_tree_gas = yes; then
10234 if test $in_tree_gas_is_elf = yes \
10235 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10236 then gcc_cv_as_subsection_m1=yes
10238 elif test x$gcc_cv_as != x; then
10239 echo 'conftest_label1: .word 0
10240 .subsection -1
10241 conftest_label2: .word 0
10242 .previous' > conftest.s
10243 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }
10249 then
10250 if test x$gcc_cv_nm != x; then
10251 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10252 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10253 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10254 then :
10255 else gcc_cv_as_subsection_m1=yes
10257 rm -f conftest.nm1 conftest.nm2
10259 else
10260 echo "configure: failed program was" >&5
10261 cat conftest.s >&5
10263 rm -f conftest.o conftest.s
10266 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10267 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10268 if test $gcc_cv_as_subsection_m1 = yes; then
10270 cat >>confdefs.h <<\_ACEOF
10271 #define HAVE_GAS_SUBSECTION_ORDERING 1
10272 _ACEOF
10276 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10277 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10278 if test "${gcc_cv_as_weak+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 gcc_cv_as_weak=no
10282 if test $in_tree_gas = yes; then
10283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10284 then gcc_cv_as_weak=yes
10286 elif test x$gcc_cv_as != x; then
10287 echo ' .weak foobar' > conftest.s
10288 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10290 (eval $ac_try) 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; }
10294 then
10295 gcc_cv_as_weak=yes
10296 else
10297 echo "configure: failed program was" >&5
10298 cat conftest.s >&5
10300 rm -f conftest.o conftest.s
10303 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10304 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10305 if test $gcc_cv_as_weak = yes; then
10307 cat >>confdefs.h <<\_ACEOF
10308 #define HAVE_GAS_WEAK 1
10309 _ACEOF
10313 # .hidden needs to be supported in both the assembler and the linker,
10314 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10315 # This is irritatingly difficult to feature test for; we have to check the
10316 # date string after the version number. If we've got an in-tree
10317 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10318 # to be safe.
10319 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10320 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10321 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10322 if test "${gcc_cv_as_hidden+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325 gcc_cv_as_hidden=no
10326 if test $in_tree_gas = yes; then
10327 if test $in_tree_gas_is_elf = yes \
10328 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10329 then gcc_cv_as_hidden=yes
10331 elif test x$gcc_cv_as != x; then
10332 echo ' .hidden foobar
10333 foobar:' > conftest.s
10334 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }
10340 then
10341 gcc_cv_as_hidden=yes
10342 else
10343 echo "configure: failed program was" >&5
10344 cat conftest.s >&5
10346 rm -f conftest.o conftest.s
10349 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10350 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10353 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10354 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10355 if test "${gcc_cv_ld_hidden+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358 if test $in_tree_ld = yes ; then
10359 gcc_cv_ld_hidden=no
10360 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 \
10361 && test $in_tree_ld_is_elf = yes; then
10362 gcc_cv_ld_hidden=yes
10364 else
10365 gcc_cv_ld_hidden=yes
10366 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10367 if echo "$ld_ver" | grep GNU > /dev/null; then
10368 ld_vers=`echo $ld_ver | sed -n \
10369 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10370 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10371 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10372 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10373 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10374 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10375 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'`
10376 if test 0"$ld_date" -lt 20020404; then
10377 if test -n "$ld_date"; then
10378 # If there was date string, but was earlier than 2002-04-04, fail
10379 gcc_cv_ld_hidden=no
10380 elif test -z "$ld_vers"; then
10381 # If there was no date string nor ld version number, something is wrong
10382 gcc_cv_ld_hidden=no
10383 else
10384 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10385 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10386 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10387 test -z "$ld_vers_patch" && ld_vers_patch=0
10388 if test "$ld_vers_major" -lt 2; then
10389 gcc_cv_ld_hidden=no
10390 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10391 gcc_cv_ld_hidden="no"
10392 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10393 gcc_cv_ld_hidden=no
10397 else
10398 case "${target}" in
10399 hppa64*-*-hpux* | ia64*-*-hpux*)
10400 gcc_cv_ld_hidden=yes
10403 gcc_cv_ld_hidden=no
10405 esac
10409 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10410 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10411 libgcc_visibility=no
10413 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10414 libgcc_visibility=yes
10416 cat >>confdefs.h <<\_ACEOF
10417 #define HAVE_GAS_HIDDEN 1
10418 _ACEOF
10422 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10423 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10424 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10425 if test "${gcc_cv_as_leb128+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428 gcc_cv_as_leb128=no
10429 if test $in_tree_gas = yes; then
10430 if test $in_tree_gas_is_elf = yes \
10431 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10432 then gcc_cv_as_leb128=yes
10434 elif test x$gcc_cv_as != x; then
10435 echo ' .data
10436 .uleb128 L2 - L1
10438 .uleb128 1280
10439 .sleb128 -1010
10440 L2:' > conftest.s
10441 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }
10447 then
10448 # GAS versions before 2.11 do not support uleb128,
10449 # despite appearing to.
10450 # ??? There exists an elf-specific test that will crash
10451 # the assembler. Perhaps it's better to figure out whether
10452 # arbitrary sections are supported and try the test.
10453 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10454 if echo "$as_ver" | grep GNU > /dev/null; then
10455 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10456 as_major=`echo $as_ver | sed 's/\..*//'`
10457 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10458 if test $as_major -eq 2 && test $as_minor -lt 11
10459 then :
10460 else gcc_cv_as_leb128=yes
10463 else
10464 echo "configure: failed program was" >&5
10465 cat conftest.s >&5
10467 rm -f conftest.o conftest.s
10470 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10471 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10472 if test $gcc_cv_as_leb128 = yes; then
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_AS_LEB128 1
10476 _ACEOF
10480 # GAS versions up to and including 2.11.0 may mis-optimize
10481 # .eh_frame data.
10482 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10483 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10484 if test "${gcc_cv_as_eh_frame+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487 gcc_cv_as_eh_frame=no
10488 if test $in_tree_gas = yes; then
10489 if test $in_tree_gas_is_elf = yes \
10490 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10491 then gcc_cv_as_eh_frame=yes
10493 elif test x$gcc_cv_as != x; then
10494 echo ' .text
10495 .LFB1:
10496 .4byte 0
10497 .L1:
10498 .4byte 0
10499 .LFE1:
10500 .section .eh_frame,"aw",@progbits
10501 __FRAME_BEGIN__:
10502 .4byte .LECIE1-.LSCIE1
10503 .LSCIE1:
10504 .4byte 0x0
10505 .byte 0x1
10506 .ascii "z\0"
10507 .byte 0x1
10508 .byte 0x78
10509 .byte 0x1a
10510 .byte 0x0
10511 .byte 0x4
10512 .4byte 1
10513 .p2align 1
10514 .LECIE1:
10515 .LSFDE1:
10516 .4byte .LEFDE1-.LASFDE1
10517 .LASFDE1:
10518 .4byte .LASFDE1-__FRAME_BEGIN__
10519 .4byte .LFB1
10520 .4byte .LFE1-.LFB1
10521 .byte 0x4
10522 .4byte .LFE1-.LFB1
10523 .byte 0x4
10524 .4byte .L1-.LFB1
10525 .LEFDE1:' > conftest.s
10526 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }
10532 then
10533 cat > conftest.lit <<EOF
10534 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10535 0010 01000000 12000000 18000000 00000000 ................
10536 0020 08000000 04080000 0044 .........D
10538 cat > conftest.big <<EOF
10539 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10540 0010 00000001 00000012 00000018 00000000 ................
10541 0020 00000008 04000000 0844 .........D
10543 # If the assembler didn't choke, and we can objdump,
10544 # and we got the correct data, then succeed.
10545 if test x$gcc_cv_objdump != x \
10546 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10547 | tail -3 > conftest.got \
10548 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10549 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10550 then
10551 gcc_cv_as_eh_frame=yes
10552 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; }; then
10558 gcc_cv_as_eh_frame=buggy
10559 else
10560 # Uh oh, what do we do now?
10561 gcc_cv_as_eh_frame=no
10563 else
10564 echo "configure: failed program was" >&5
10565 cat conftest.s >&5
10567 rm -f conftest.o conftest.s
10570 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10571 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10574 if test $gcc_cv_as_eh_frame = buggy; then
10576 cat >>confdefs.h <<\_ACEOF
10577 #define USE_AS_TRADITIONAL_FORMAT 1
10578 _ACEOF
10582 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10583 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10584 if test "${gcc_cv_as_shf_merge+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 else
10587 gcc_cv_as_shf_merge=no
10588 if test $in_tree_gas = yes; then
10589 if test $in_tree_gas_is_elf = yes \
10590 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10591 then gcc_cv_as_shf_merge=yes
10593 elif test x$gcc_cv_as != x; then
10594 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10595 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }
10601 then
10602 gcc_cv_as_shf_merge=yes
10603 else
10604 echo "configure: failed program was" >&5
10605 cat conftest.s >&5
10607 rm -f conftest.o conftest.s
10610 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10611 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10614 cat >>confdefs.h <<_ACEOF
10615 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10616 _ACEOF
10619 # Thread-local storage - the check is heavily parametrized.
10620 conftest_s=
10621 tls_first_major=
10622 tls_first_minor=
10623 tls_as_opt=
10624 case "$target" in
10625 alpha*-*-*)
10626 conftest_s='
10627 .section ".tdata","awT",@progbits
10628 foo: .long 25
10629 .text
10630 ldq $27,__tls_get_addr($29) !literal!1
10631 lda $16,foo($29) !tlsgd!1
10632 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10633 ldq $27,__tls_get_addr($29) !literal!2
10634 lda $16,foo($29) !tlsldm!2
10635 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10636 ldq $1,foo($29) !gotdtprel
10637 ldah $2,foo($29) !dtprelhi
10638 lda $3,foo($2) !dtprello
10639 lda $4,foo($29) !dtprel
10640 ldq $1,foo($29) !gottprel
10641 ldah $2,foo($29) !tprelhi
10642 lda $3,foo($2) !tprello
10643 lda $4,foo($29) !tprel'
10644 tls_first_major=2
10645 tls_first_minor=13
10646 tls_as_opt=--fatal-warnings
10648 i[34567]86-*-*)
10649 conftest_s='
10650 .section ".tdata","awT",@progbits
10651 foo: .long 25
10652 .text
10653 movl %gs:0, %eax
10654 leal foo@TLSGD(,%ebx,1), %eax
10655 leal foo@TLSLDM(%ebx), %eax
10656 leal foo@DTPOFF(%eax), %edx
10657 movl foo@GOTTPOFF(%ebx), %eax
10658 subl foo@GOTTPOFF(%ebx), %eax
10659 addl foo@GOTNTPOFF(%ebx), %eax
10660 movl foo@INDNTPOFF, %eax
10661 movl $foo@TPOFF, %eax
10662 subl $foo@TPOFF, %eax
10663 leal foo@NTPOFF(%ecx), %eax'
10664 tls_first_major=2
10665 tls_first_minor=14
10666 tls_as_opt=--fatal-warnings
10668 x86_64-*-*)
10669 conftest_s='
10670 .section ".tdata","awT",@progbits
10671 foo: .long 25
10672 .text
10673 movq %fs:0, %rax
10674 leaq foo@TLSGD(%rip), %rdi
10675 leaq foo@TLSLD(%rip), %rdi
10676 leaq foo@DTPOFF(%rax), %rdx
10677 movq foo@GOTTPOFF(%rip), %rax
10678 movq $foo@TPOFF, %rax'
10679 tls_first_major=2
10680 tls_first_minor=14
10681 tls_as_opt=--fatal-warnings
10683 ia64-*-*)
10684 conftest_s='
10685 .section ".tdata","awT",@progbits
10686 foo: data8 25
10687 .text
10688 addl r16 = @ltoff(@dtpmod(foo#)), gp
10689 addl r17 = @ltoff(@dtprel(foo#)), gp
10690 addl r18 = @ltoff(@tprel(foo#)), gp
10691 addl r19 = @dtprel(foo#), gp
10692 adds r21 = @dtprel(foo#), r13
10693 movl r23 = @dtprel(foo#)
10694 addl r20 = @tprel(foo#), gp
10695 adds r22 = @tprel(foo#), r13
10696 movl r24 = @tprel(foo#)'
10697 tls_first_major=2
10698 tls_first_minor=13
10699 tls_as_opt=--fatal-warnings
10701 powerpc-*-*)
10702 conftest_s='
10703 .section ".tdata","awT",@progbits
10704 .align 2
10705 ld0: .space 4
10706 ld1: .space 4
10707 x1: .space 4
10708 x2: .space 4
10709 x3: .space 4
10710 .text
10711 addi 3,31,ld0@got@tlsgd
10712 bl __tls_get_addr
10713 addi 3,31,x1@got@tlsld
10714 bl __tls_get_addr
10715 addi 9,3,x1@dtprel
10716 addis 9,3,x2@dtprel@ha
10717 addi 9,9,x2@dtprel@l
10718 lwz 9,x3@got@tprel(31)
10719 add 9,9,x@tls
10720 addi 9,2,x1@tprel
10721 addis 9,2,x2@tprel@ha
10722 addi 9,9,x2@tprel@l'
10723 tls_first_major=2
10724 tls_first_minor=14
10725 tls_as_opt="-a32 --fatal-warnings"
10727 powerpc64-*-*)
10728 conftest_s='
10729 .section ".tdata","awT",@progbits
10730 .align 3
10731 ld0: .space 8
10732 ld1: .space 8
10733 x1: .space 8
10734 x2: .space 8
10735 x3: .space 8
10736 .text
10737 addi 3,2,ld0@got@tlsgd
10738 bl .__tls_get_addr
10740 addi 3,2,ld1@toc
10741 bl .__tls_get_addr
10743 addi 3,2,x1@got@tlsld
10744 bl .__tls_get_addr
10746 addi 9,3,x1@dtprel
10747 bl .__tls_get_addr
10749 addis 9,3,x2@dtprel@ha
10750 addi 9,9,x2@dtprel@l
10751 bl .__tls_get_addr
10753 ld 9,x3@got@dtprel(2)
10754 add 9,9,3
10755 bl .__tls_get_addr
10756 nop'
10757 tls_first_major=2
10758 tls_first_minor=14
10759 tls_as_opt="-a64 --fatal-warnings"
10761 s390-*-*)
10762 conftest_s='
10763 .section ".tdata","awT",@progbits
10764 foo: .long 25
10765 .text
10766 .long foo@TLSGD
10767 .long foo@TLSLDM
10768 .long foo@DTPOFF
10769 .long foo@NTPOFF
10770 .long foo@GOTNTPOFF
10771 .long foo@INDNTPOFF
10772 l %r1,foo@GOTNTPOFF(%r12)
10773 l %r1,0(%r1):tls_load:foo
10774 bas %r14,0(%r1,%r13):tls_gdcall:foo
10775 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10776 tls_first_major=2
10777 tls_first_minor=14
10778 tls_as_opt="-m31 --fatal-warnings"
10780 s390x-*-*)
10781 conftest_s='
10782 .section ".tdata","awT",@progbits
10783 foo: .long 25
10784 .text
10785 .quad foo@TLSGD
10786 .quad foo@TLSLDM
10787 .quad foo@DTPOFF
10788 .quad foo@NTPOFF
10789 .quad foo@GOTNTPOFF
10790 lg %r1,foo@GOTNTPOFF(%r12)
10791 larl %r1,foo@INDNTPOFF
10792 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10793 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10794 tls_first_major=2
10795 tls_first_minor=14
10796 tls_as_opt="-m64 -Aesame --fatal-warnings"
10798 sh-*-* | sh[34]-*-*)
10799 conftest_s='
10800 .section ".tdata","awT",@progbits
10801 foo: .long 25
10802 .text
10803 .long foo@TLSGD
10804 .long foo@TLSLDM
10805 .long foo@DTPOFF
10806 .long foo@GOTTPOFF
10807 .long foo@TPOFF'
10808 tls_first_major=2
10809 tls_first_minor=13
10810 tls_as_opt=--fatal-warnings
10812 sparc*-*-*)
10813 case "$target" in
10814 sparc*-sun-solaris2.*)
10815 on_solaris=yes
10818 on_solaris=no
10820 esac
10821 if test x$on_solaris = xyes && test x$gas_flag = xno; then
10822 conftest_s='
10823 .section ".tdata",#alloc,#write,#tls
10824 foo: .long 25
10825 .text
10826 sethi %tgd_hi22(foo), %o0
10827 add %o0, %tgd_lo10(foo), %o1
10828 add %l7, %o1, %o0, %tgd_add(foo)
10829 call __tls_get_addr, %tgd_call(foo)
10830 sethi %tldm_hi22(foo), %l1
10831 add %l1, %tldm_lo10(foo), %l2
10832 add %l7, %l2, %o0, %tldm_add(foo)
10833 call __tls_get_addr, %tldm_call(foo)
10834 sethi %tldo_hix22(foo), %l3
10835 xor %l3, %tldo_lox10(foo), %l4
10836 add %o0, %l4, %l5, %tldo_add(foo)
10837 sethi %tie_hi22(foo), %o3
10838 add %o3, %tie_lo10(foo), %o3
10839 ld [%l7 + %o3], %o2, %tie_ld(foo)
10840 add %g7, %o2, %o4, %tie_add(foo)
10841 sethi %tle_hix22(foo), %l1
10842 xor %l1, %tle_lox10(foo), %o5
10843 ld [%g7 + %o5], %o1'
10844 tls_first_major=0
10845 tls_first_minor=0
10846 else
10847 conftest_s='
10848 .section ".tdata","awT",@progbits
10849 foo: .long 25
10850 .text
10851 sethi %tgd_hi22(foo), %o0
10852 add %o0, %tgd_lo10(foo), %o1
10853 add %l7, %o1, %o0, %tgd_add(foo)
10854 call __tls_get_addr, %tgd_call(foo)
10855 sethi %tldm_hi22(foo), %l1
10856 add %l1, %tldm_lo10(foo), %l2
10857 add %l7, %l2, %o0, %tldm_add(foo)
10858 call __tls_get_addr, %tldm_call(foo)
10859 sethi %tldo_hix22(foo), %l3
10860 xor %l3, %tldo_lox10(foo), %l4
10861 add %o0, %l4, %l5, %tldo_add(foo)
10862 sethi %tie_hi22(foo), %o3
10863 add %o3, %tie_lo10(foo), %o3
10864 ld [%l7 + %o3], %o2, %tie_ld(foo)
10865 add %g7, %o2, %o4, %tie_add(foo)
10866 sethi %tle_hix22(foo), %l1
10867 xor %l1, %tle_lox10(foo), %o5
10868 ld [%g7 + %o5], %o1'
10869 tls_first_major=2
10870 tls_first_minor=14
10871 tls_as_opt="-32 --fatal-warnings"
10874 esac
10875 if test -z "$tls_first_major"; then
10876 : # If we don't have a check, assume no support.
10877 else
10878 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10879 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10880 if test "${gcc_cv_as_tls+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883 gcc_cv_as_tls=no
10884 if test $in_tree_gas = yes; then
10885 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10886 then gcc_cv_as_tls=yes
10888 elif test x$gcc_cv_as != x; then
10889 echo "$conftest_s" > conftest.s
10890 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }
10896 then
10897 gcc_cv_as_tls=yes
10898 else
10899 echo "configure: failed program was" >&5
10900 cat conftest.s >&5
10902 rm -f conftest.o conftest.s
10905 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10906 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10907 if test $gcc_cv_as_tls = yes; then
10909 cat >>confdefs.h <<\_ACEOF
10910 #define HAVE_AS_TLS 1
10911 _ACEOF
10916 # Target-specific assembler checks.
10918 case "$target" in
10919 # All TARGET_ABI_OSF targets.
10920 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10921 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10922 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10923 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926 gcc_cv_as_alpha_explicit_relocs=no
10927 if test $in_tree_gas = yes; then
10928 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10929 then gcc_cv_as_alpha_explicit_relocs=yes
10931 elif test x$gcc_cv_as != x; then
10932 echo ' .set nomacro
10933 .text
10934 extbl $3, $2, $3 !lituse_bytoff!1
10935 ldq $2, a($29) !literal!1
10936 ldq $4, b($29) !literal!2
10937 ldq_u $3, 0($2) !lituse_base!1
10938 ldq $27, f($29) !literal!5
10939 jsr $26, ($27), f !lituse_jsr!5
10940 ldah $29, 0($26) !gpdisp!3
10941 lda $0, c($29) !gprel
10942 ldah $1, d($29) !gprelhigh
10943 lda $1, d($1) !gprellow
10944 lda $29, 0($29) !gpdisp!3' > conftest.s
10945 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }
10951 then
10952 gcc_cv_as_alpha_explicit_relocs=yes
10953 else
10954 echo "configure: failed program was" >&5
10955 cat conftest.s >&5
10957 rm -f conftest.o conftest.s
10960 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10961 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10962 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10964 cat >>confdefs.h <<\_ACEOF
10965 #define HAVE_AS_EXPLICIT_RELOCS 1
10966 _ACEOF
10971 cris-*-*)
10972 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
10973 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
10974 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977 gcc_cv_as_cris_no_mul_bug=no
10978 if test $in_tree_gas = yes; then
10979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
10980 then gcc_cv_as_cris_no_mul_bug=yes
10982 elif test x$gcc_cv_as != x; then
10983 echo '.text' > conftest.s
10984 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }
10990 then
10991 gcc_cv_as_cris_no_mul_bug=yes
10992 else
10993 echo "configure: failed program was" >&5
10994 cat conftest.s >&5
10996 rm -f conftest.o conftest.s
10999 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11000 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11001 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11003 cat >>confdefs.h <<\_ACEOF
11004 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11005 _ACEOF
11010 sparc*-*-*)
11011 echo "$as_me:$LINENO: checking assembler for .register" >&5
11012 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11013 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 else
11016 gcc_cv_as_sparc_register_op=no
11017 if test x$gcc_cv_as != x; then
11018 echo '.register %g2, #scratch' > conftest.s
11019 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }
11025 then
11026 gcc_cv_as_sparc_register_op=yes
11027 else
11028 echo "configure: failed program was" >&5
11029 cat conftest.s >&5
11031 rm -f conftest.o conftest.s
11034 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11035 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11036 if test $gcc_cv_as_sparc_register_op = yes; then
11038 cat >>confdefs.h <<\_ACEOF
11039 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11040 _ACEOF
11044 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11045 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11046 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049 gcc_cv_as_sparc_relax=no
11050 if test x$gcc_cv_as != x; then
11051 echo '.text' > conftest.s
11052 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; }
11058 then
11059 gcc_cv_as_sparc_relax=yes
11060 else
11061 echo "configure: failed program was" >&5
11062 cat conftest.s >&5
11064 rm -f conftest.o conftest.s
11067 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11068 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11069 if test $gcc_cv_as_sparc_relax = yes; then
11071 cat >>confdefs.h <<\_ACEOF
11072 #define HAVE_AS_RELAX_OPTION 1
11073 _ACEOF
11077 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11078 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11079 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 else
11082 gcc_cv_as_sparc_ua_pcrel=no
11083 if test x$gcc_cv_as != x; then
11084 echo '.text
11085 foo:
11087 .data
11088 .align 4
11089 .byte 0
11090 .uaword %r_disp32(foo)' > conftest.s
11091 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }
11097 then
11098 if test x$gcc_cv_ld != x \
11099 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11100 gcc_cv_as_sparc_ua_pcrel=yes
11102 rm -f conftest
11103 else
11104 echo "configure: failed program was" >&5
11105 cat conftest.s >&5
11107 rm -f conftest.o conftest.s
11110 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11111 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11112 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_AS_SPARC_UA_PCREL 1
11116 _ACEOF
11119 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11120 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11121 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124 gcc_cv_as_sparc_ua_pcrel_hidden=no
11125 if test x$gcc_cv_as != x; then
11126 echo '.data
11127 .align 4
11128 .byte 0x31
11129 .uaword %r_disp32(foo)
11130 .byte 0x32, 0x33, 0x34
11131 .global foo
11132 .hidden foo
11133 foo:
11134 .skip 4' > conftest.s
11135 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }
11141 then
11142 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11143 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11144 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11145 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11146 if $gcc_cv_objdump -R conftest 2> /dev/null \
11147 | grep 'DISP32' > /dev/null 2>&1; then
11149 else
11150 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11153 rm -f conftest
11154 else
11155 echo "configure: failed program was" >&5
11156 cat conftest.s >&5
11158 rm -f conftest.o conftest.s
11161 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11162 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11163 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11165 cat >>confdefs.h <<\_ACEOF
11166 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11167 _ACEOF
11171 fi # unaligned pcrel relocs
11173 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11174 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11175 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 gcc_cv_as_sparc_offsetable_lo10=no
11179 if test x$gcc_cv_as != x; then
11180 echo '.text
11181 or %g1, %lo(ab) + 12, %g1
11182 or %g1, %lo(ab + 12), %g1' > conftest.s
11183 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }
11189 then
11190 if test x$gcc_cv_objdump != x \
11191 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11192 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11193 gcc_cv_as_offsetable_lo10=yes
11195 else
11196 echo "configure: failed program was" >&5
11197 cat conftest.s >&5
11199 rm -f conftest.o conftest.s
11202 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11203 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11204 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11206 cat >>confdefs.h <<\_ACEOF
11207 #define HAVE_AS_OFFSETABLE_LO10 1
11208 _ACEOF
11213 i[34567]86-*-* | x86_64-*-*)
11214 case $target_os in
11215 cygwin* | pe | mingw32*)
11216 # Used for DWARF 2 in PE
11217 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11218 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11219 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222 gcc_cv_as_ix86_pe_secrel32=no
11223 if test $in_tree_gas = yes; then
11224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11225 then gcc_cv_as_ix86_pe_secrel32=yes
11227 elif test x$gcc_cv_as != x; then
11228 echo '.text
11229 foo: nop
11230 .data
11231 .secrel32 foo' > conftest.s
11232 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }
11238 then
11239 if test x$gcc_cv_ld != x \
11240 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11241 gcc_cv_as_ix86_pe_secrel32=yes
11243 rm -f conftest
11244 else
11245 echo "configure: failed program was" >&5
11246 cat conftest.s >&5
11248 rm -f conftest.o conftest.s
11251 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11252 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11253 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11255 cat >>confdefs.h <<\_ACEOF
11256 #define HAVE_GAS_PE_SECREL32_RELOC 1
11257 _ACEOF
11261 esac
11263 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11264 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11265 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268 gcc_cv_as_ix86_filds_fists=no
11269 if test $in_tree_gas = yes; then
11270 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11271 then gcc_cv_as_ix86_filds_fists=yes
11273 elif test x$gcc_cv_as != x; then
11274 echo 'filds mem; fists mem' > conftest.s
11275 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }
11281 then
11282 gcc_cv_as_ix86_filds_fists=yes
11283 else
11284 echo "configure: failed program was" >&5
11285 cat conftest.s >&5
11287 rm -f conftest.o conftest.s
11290 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11291 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11292 if test $gcc_cv_as_ix86_filds_fists = yes; then
11294 cat >>confdefs.h <<\_ACEOF
11295 #define HAVE_GAS_FILDS_FISTS 1
11296 _ACEOF
11300 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11301 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11302 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305 gcc_cv_as_ix86_cmov_sun_syntax=no
11306 if test x$gcc_cv_as != x; then
11307 echo 'cmovl.l %edx, %eax' > conftest.s
11308 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }
11314 then
11315 gcc_cv_as_ix86_cmov_sun_syntax=yes
11316 else
11317 echo "configure: failed program was" >&5
11318 cat conftest.s >&5
11320 rm -f conftest.o conftest.s
11323 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11324 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11325 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11327 cat >>confdefs.h <<\_ACEOF
11328 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11329 _ACEOF
11333 # This one is used unconditionally by i386.[ch]; it is to be defined
11334 # to 1 if the feature is present, 0 otherwise.
11335 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11336 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11337 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340 gcc_cv_as_ix86_gotoff_in_data=no
11341 if test $in_tree_gas = yes; then
11342 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11343 then gcc_cv_as_ix86_gotoff_in_data=yes
11345 elif test x$gcc_cv_as != x; then
11346 echo ' .text
11347 .L0:
11349 .data
11350 .long .L0@GOTOFF' > conftest.s
11351 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }
11357 then
11358 gcc_cv_as_ix86_gotoff_in_data=yes
11359 else
11360 echo "configure: failed program was" >&5
11361 cat conftest.s >&5
11363 rm -f conftest.o conftest.s
11366 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11367 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11370 cat >>confdefs.h <<_ACEOF
11371 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11372 _ACEOF
11376 ia64*-*-*)
11377 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11378 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11379 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11383 if test $in_tree_gas = yes; then
11384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11385 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11387 elif test x$gcc_cv_as != x; then
11388 echo ' .text
11389 addl r15 = @ltoffx(x#), gp
11391 ld8.mov r16 = [r15], x#' > conftest.s
11392 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; }
11398 then
11399 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11400 else
11401 echo "configure: failed program was" >&5
11402 cat conftest.s >&5
11404 rm -f conftest.o conftest.s
11407 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11408 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11409 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11411 cat >>confdefs.h <<\_ACEOF
11412 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11413 _ACEOF
11419 powerpc*-*-*)
11420 case $target in
11421 *-*-aix*) conftest_s=' .csect .text[PR]
11422 mfcr 3,128';;
11423 *-*-darwin*) conftest_s=' .text
11424 mfcr r3,128';;
11425 *) conftest_s=' .text
11426 mfcr 3,128';;
11427 esac
11429 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11430 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11431 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434 gcc_cv_as_powerpc_mfcrf=no
11435 if test $in_tree_gas = yes; then
11436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11437 then gcc_cv_as_powerpc_mfcrf=yes
11439 elif test x$gcc_cv_as != x; then
11440 echo "$conftest_s" > conftest.s
11441 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }
11447 then
11448 gcc_cv_as_powerpc_mfcrf=yes
11449 else
11450 echo "configure: failed program was" >&5
11451 cat conftest.s >&5
11453 rm -f conftest.o conftest.s
11456 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11457 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11458 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11460 cat >>confdefs.h <<\_ACEOF
11461 #define HAVE_AS_MFCRF 1
11462 _ACEOF
11467 mips*-*-*)
11468 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11469 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11470 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473 gcc_cv_as_mips_explicit_relocs=no
11474 if test $in_tree_gas = yes; then
11475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11476 then gcc_cv_as_mips_explicit_relocs=yes
11478 elif test x$gcc_cv_as != x; then
11479 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11480 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }
11486 then
11487 gcc_cv_as_mips_explicit_relocs=yes
11488 else
11489 echo "configure: failed program was" >&5
11490 cat conftest.s >&5
11492 rm -f conftest.o conftest.s
11495 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11496 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11497 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11498 if test x$target_cpu_default = x
11499 then target_cpu_default=MASK_EXPLICIT_RELOCS
11500 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11505 esac
11506 # ??? Not all targets support dwarf2 debug_line, even within a version
11507 # of gas. Moreover, we need to emit a valid instruction to trigger any
11508 # info to the output file. So, as supported targets are added to gas 2.11,
11509 # add some instruction here to (also) show we expect this might work.
11510 # ??? Once 2.11 is released, probably need to add first known working
11511 # version to the per-target configury.
11512 case "$target" in
11513 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11514 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11515 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11516 insn="nop"
11518 ia64*-*-* | s390*-*-*)
11519 insn="nop 0"
11521 mmix-*-*)
11522 insn="swym 0"
11524 esac
11525 if test x"$insn" != x; then
11526 conftest_s="\
11527 .file 1 \"conftest.s\"
11528 .loc 1 3 0
11529 $insn"
11530 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11531 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11532 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535 gcc_cv_as_dwarf2_debug_line=no
11536 if test $in_tree_gas = yes; then
11537 if test $in_tree_gas_is_elf = yes \
11538 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11539 then gcc_cv_as_dwarf2_debug_line=yes
11541 elif test x$gcc_cv_as != x; then
11542 echo "$conftest_s" > conftest.s
11543 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }
11549 then
11550 # ??? This fails with non-gnu grep. Maybe use objdump?
11551 if grep debug_line conftest.o > /dev/null 2>&1; then
11552 gcc_cv_as_dwarf2_debug_line=yes
11554 else
11555 echo "configure: failed program was" >&5
11556 cat conftest.s >&5
11558 rm -f conftest.o conftest.s
11561 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11562 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11565 # The .debug_line file table must be in the exact order that
11566 # we specified the files, since these indices are also used
11567 # by DW_AT_decl_file. Approximate this test by testing if
11568 # the assembler bitches if the same index is assigned twice.
11569 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11570 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11571 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574 gcc_cv_as_dwarf2_file_buggy=no
11575 if test x$gcc_cv_as != x; then
11576 echo ' .file 1 "foo.s"
11577 .file 1 "bar.s"' > conftest.s
11578 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11581 ac_status=$?
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }
11584 then
11585 gcc_cv_as_dwarf2_file_buggy=yes
11586 else
11587 echo "configure: failed program was" >&5
11588 cat conftest.s >&5
11590 rm -f conftest.o conftest.s
11593 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11594 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11597 if test $gcc_cv_as_dwarf2_debug_line = yes \
11598 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11600 cat >>confdefs.h <<\_ACEOF
11601 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11602 _ACEOF
11606 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11607 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11608 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611 gcc_cv_as_gdwarf2_flag=no
11612 if test $in_tree_gas = yes; then
11613 if test $in_tree_gas_is_elf = yes \
11614 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11615 then gcc_cv_as_gdwarf2_flag=yes
11617 elif test x$gcc_cv_as != x; then
11618 echo "$insn" > conftest.s
11619 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }
11625 then
11626 gcc_cv_as_gdwarf2_flag=yes
11627 else
11628 echo "configure: failed program was" >&5
11629 cat conftest.s >&5
11631 rm -f conftest.o conftest.s
11634 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11635 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11636 if test $gcc_cv_as_gdwarf2_flag = yes; then
11638 cat >>confdefs.h <<\_ACEOF
11639 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11640 _ACEOF
11644 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11645 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11646 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649 gcc_cv_as_gstabs_flag=no
11650 if test $in_tree_gas = yes; then
11651 if test $in_tree_gas_is_elf = yes \
11652 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11653 then gcc_cv_as_gstabs_flag=yes
11655 elif test x$gcc_cv_as != x; then
11656 echo "$insn" > conftest.s
11657 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }
11663 then
11664 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11665 # and warns about it, but still exits successfully. So check for
11666 # this.
11667 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }
11673 then :
11674 else gcc_cv_as_gstabs_flag=yes
11676 else
11677 echo "configure: failed program was" >&5
11678 cat conftest.s >&5
11680 rm -f conftest.o conftest.s
11683 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11684 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11685 if test $gcc_cv_as_gstabs_flag = yes; then
11687 cat >>confdefs.h <<\_ACEOF
11688 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11689 _ACEOF
11694 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11695 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11696 gcc_cv_ld_ro_rw_mix=unknown
11697 if test $in_tree_ld = yes ; then
11698 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 \
11699 && test $in_tree_ld_is_elf = yes; then
11700 gcc_cv_ld_ro_rw_mix=read-write
11702 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11703 echo '.section myfoosect, "a"' > conftest1.s
11704 echo '.section myfoosect, "aw"' > conftest2.s
11705 echo '.byte 1' >> conftest2.s
11706 echo '.section myfoosect, "a"' > conftest3.s
11707 echo '.byte 0' >> conftest3.s
11708 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11709 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11710 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11711 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11712 conftest2.o conftest3.o > /dev/null 2>&1; then
11713 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11714 | sed -e '/myfoosect/!d' -e N`
11715 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11716 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11717 gcc_cv_ld_ro_rw_mix=read-only
11718 else
11719 gcc_cv_ld_ro_rw_mix=read-write
11723 rm -f conftest.* conftest[123].*
11725 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11727 cat >>confdefs.h <<\_ACEOF
11728 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11729 _ACEOF
11732 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11733 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11735 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11736 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11737 gcc_cv_ld_eh_frame_hdr=no
11738 if test $in_tree_ld = yes ; then
11739 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 \
11740 && test $in_tree_ld_is_elf = yes; then
11741 gcc_cv_ld_eh_frame_hdr=yes
11743 elif test x$gcc_cv_ld != x; then
11744 # Check if linker supports --eh-frame-hdr option
11745 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11746 gcc_cv_ld_eh_frame_hdr=yes
11749 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11751 cat >>confdefs.h <<\_ACEOF
11752 #define HAVE_LD_EH_FRAME_HDR 1
11753 _ACEOF
11756 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11757 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11759 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11760 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11761 gcc_cv_ld_pie=no
11762 if test $in_tree_ld = yes ; then
11763 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 \
11764 && test $in_tree_ld_is_elf = yes; then
11765 gcc_cv_ld_pie=yes
11767 elif test x$gcc_cv_ld != x; then
11768 # Check if linker supports -pie option
11769 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11770 gcc_cv_ld_pie=yes
11773 if test x"$gcc_cv_ld_pie" = xyes; then
11775 cat >>confdefs.h <<\_ACEOF
11776 #define HAVE_LD_PIE 1
11777 _ACEOF
11780 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11781 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11783 # --------
11784 # UNSORTED
11785 # --------
11787 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11788 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11789 if test "${gcc_cv_ld_as_needed+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792 gcc_cv_ld_as_needed=no
11793 if test $in_tree_ld = yes ; then
11794 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 \
11795 && test $in_tree_ld_is_elf = yes; then
11796 gcc_cv_ld_as_needed=yes
11798 elif test x$gcc_cv_ld != x; then
11799 # Check if linker supports --as-needed and --no-as-needed options
11800 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11801 gcc_cv_ld_as_needed=yes
11806 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11807 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11808 if test x"$gcc_cv_ld_as_needed" = xyes; then
11810 cat >>confdefs.h <<\_ACEOF
11811 #define HAVE_LD_AS_NEEDED 1
11812 _ACEOF
11816 if test x$with_sysroot = x && test x$host = x$target \
11817 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11819 cat >>confdefs.h <<_ACEOF
11820 #define PREFIX_INCLUDE_DIR "$prefix/include"
11821 _ACEOF
11825 # Find out what GC implementation we want, or may, use.
11827 # Check whether --with-gc or --without-gc was given.
11828 if test "${with_gc+set}" = set; then
11829 withval="$with_gc"
11830 case "$withval" in
11831 page | zone)
11832 GGC=ggc-$withval
11835 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11836 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11837 { (exit 1); exit 1; }; }
11839 esac
11840 else
11841 GGC=ggc-page
11844 echo "Using $GGC for garbage collection."
11846 # Use the system's zlib library.
11847 zlibdir=-L../zlib
11848 zlibinc="-I\$(srcdir)/../zlib"
11850 # Check whether --with-system-zlib or --without-system-zlib was given.
11851 if test "${with_system_zlib+set}" = set; then
11852 withval="$with_system_zlib"
11853 zlibdir=
11854 zlibinc=
11861 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11862 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11863 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11864 if test "${enable_maintainer_mode+set}" = set; then
11865 enableval="$enable_maintainer_mode"
11866 maintainer_mode=$enableval
11867 else
11868 maintainer_mode=no
11871 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11872 echo "${ECHO_T}$maintainer_mode" >&6
11874 if test "$maintainer_mode" = "yes"; then
11875 MAINT=''
11876 else
11877 MAINT='#'
11880 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
11881 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
11883 # Check whether --with-libbanshee or --without-libbanshee was given.
11884 if test "${with_libbanshee+set}" = set; then
11885 withval="$with_libbanshee"
11886 libbanshee="$with_libbanshee"
11887 else
11888 libbanshee=no
11891 if test x"$libbanshee" = xyes; then
11892 BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
11893 BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
11894 ANDER="tree-alias-ander.o"
11896 cat >>confdefs.h <<\_ACEOF
11897 #define HAVE_BANSHEE 1
11898 _ACEOF
11900 else
11901 BANSHEELIB=""
11902 BANSHEEINC=""
11903 ANDER=""
11905 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
11906 echo "${ECHO_T}$with_libbanshee" >&6
11912 # --------------
11913 # Language hooks
11914 # --------------
11916 # Make empty files to contain the specs and options for each language.
11917 # Then add #include lines to for a compiler that has specs and/or options.
11919 lang_opt_files=
11920 lang_specs_files=
11921 lang_tree_files=
11922 for subdir in . $subdirs
11924 if test -f $srcdir/$subdir/lang.opt; then
11925 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11927 if test -f $srcdir/$subdir/lang-specs.h; then
11928 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11930 if test -f $srcdir/$subdir/$subdir-tree.def; then
11931 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11933 done
11935 # These (without "all_") are set in each config-lang.in.
11936 # `language' must be a single word so is spelled singularly.
11937 all_languages=
11938 all_boot_languages=
11939 all_compilers=
11940 all_stagestuff=
11941 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
11942 # List of language makefile fragments.
11943 all_lang_makefrags=
11944 # List of language subdirectory makefiles. Deprecated.
11945 all_lang_makefiles=
11946 # Files for gengtype
11947 all_gtfiles="$target_gtfiles"
11948 # Files for gengtype with language
11949 all_gtfiles_files_langs=
11950 all_gtfiles_files_files=
11952 # Add the language fragments.
11953 # Languages are added via two mechanisms. Some information must be
11954 # recorded in makefile variables, these are defined in config-lang.in.
11955 # We accumulate them and plug them into the main Makefile.
11956 # The other mechanism is a set of hooks for each of the main targets
11957 # like `clean', `install', etc.
11959 language_hooks="Make-hooks"
11961 for s in $subdirs
11963 language=
11964 boot_language=
11965 compilers=
11966 stagestuff=
11967 outputs=
11968 gtfiles=
11969 . ${srcdir}/$s/config-lang.in
11970 if test "x$language" = x
11971 then
11972 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11973 exit 1
11975 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11976 if test -f ${srcdir}/$s/Makefile.in
11977 then all_lang_makefiles="$s/Makefile"
11979 all_languages="$all_languages $language"
11980 if test "x$boot_language" = xyes
11981 then
11982 all_boot_languages="$all_boot_languages $language"
11984 all_compilers="$all_compilers $compilers"
11985 all_stagestuff="$all_stagestuff $stagestuff"
11986 all_outputs="$all_outputs $outputs"
11987 all_gtfiles="$all_gtfiles $gtfiles"
11988 for f in $gtfiles
11990 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11991 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11992 done
11993 done
11995 # Pick up gtfiles for c
11996 gtfiles=
11997 s="c"
11998 . ${srcdir}/c-config-lang.in
11999 all_gtfiles="$all_gtfiles $gtfiles"
12000 for f in $gtfiles
12002 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12003 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12004 done
12006 check_languages=
12007 for language in $all_languages
12009 check_languages="$check_languages check-$language"
12010 done
12012 # We link each language in with a set of hooks, reached indirectly via
12013 # lang.${target}.
12015 rm -f Make-hooks
12016 touch Make-hooks
12017 target_list="all.build all.cross start.encap rest.encap tags \
12018 install-normal install-common install-man \
12019 uninstall info man srcextra srcman srcinfo \
12020 mostlyclean clean distclean maintainer-clean \
12021 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12022 for t in $target_list
12025 for lang in $all_languages
12027 x="$x $lang.$t"
12028 done
12029 echo "lang.$t: $x" >> Make-hooks
12030 done
12032 # --------
12033 # UNSORTED
12034 # --------
12036 # Create .gdbinit.
12038 echo "dir ." > .gdbinit
12039 echo "dir ${srcdir}" >> .gdbinit
12040 if test x$gdb_needs_out_file_path = xyes
12041 then
12042 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12044 if test "x$subdirs" != x; then
12045 for s in $subdirs
12047 echo "dir ${srcdir}/$s" >> .gdbinit
12048 done
12050 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12052 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12053 # absolute path for gcc_tooldir based on inserting the number of up-directory
12054 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12055 # $(libsubdir)/@(unlibsubdir) based path.
12056 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12057 # make and thus we'd get different behavior depending on where we built the
12058 # sources.
12059 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12060 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12061 else
12062 # An explanation of the sed strings:
12063 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12064 # -e 's|/$||' match a trailing forward slash and eliminates it
12065 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12066 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12068 # (*) Note this pattern overwrites the first character of the string
12069 # with a forward slash if one is not already present. This is not a
12070 # problem because the exact names of the sub-directories concerned is
12071 # unimportant, just the number of them matters.
12073 # The practical upshot of these patterns is like this:
12075 # prefix exec_prefix result
12076 # ------ ----------- ------
12077 # /foo /foo/bar ../
12078 # /foo/ /foo/bar ../
12079 # /foo /foo/bar/ ../
12080 # /foo/ /foo/bar/ ../
12081 # /foo /foo/bar/ugg ../../
12083 dollar='$$'
12084 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12089 # Find a directory in which to install a shared libgcc.
12091 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12092 if test "${enable_version_specific_runtime_libs+set}" = set; then
12093 enableval="$enable_version_specific_runtime_libs"
12098 # Check whether --with-slibdir or --without-slibdir was given.
12099 if test "${with_slibdir+set}" = set; then
12100 withval="$with_slibdir"
12101 slibdir="$with_slibdir"
12102 else
12103 if test "${enable_version_specific_runtime_libs+set}" = set; then
12104 slibdir='$(libsubdir)'
12105 elif test "$host" != "$target"; then
12106 slibdir='$(build_tooldir)/lib'
12107 else
12108 slibdir='$(libdir)'
12113 objdir=`${PWDCMD-pwd}`
12116 # Substitute configuration variables
12185 # If it doesn't already exist, create document directory
12186 echo "checking for the document directory." 1>&2
12187 if test -d doc ; then
12188 true
12189 else
12190 mkdir doc
12193 # Echo link setup.
12194 if test x${build} = x${host} ; then
12195 if test x${host} = x${target} ; then
12196 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12197 else
12198 echo "Links are now set up to build a cross-compiler" 1>&2
12199 echo " from ${host} to ${target}." 1>&2
12201 else
12202 if test x${host} = x${target} ; then
12203 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12204 echo " for ${target}." 1>&2
12205 else
12206 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12207 echo " from ${host} to ${target}." 1>&2
12214 # Configure the subdirectories
12215 # AC_CONFIG_SUBDIRS($subdirs)
12217 # Create the Makefile
12218 # and configure language subdirectories
12219 ac_config_files="$ac_config_files $all_outputs"
12222 ac_config_commands="$ac_config_commands default"
12224 cat >confcache <<\_ACEOF
12225 # This file is a shell script that caches the results of configure
12226 # tests run on this system so they can be shared between configure
12227 # scripts and configure runs, see configure's option --config-cache.
12228 # It is not useful on other systems. If it contains results you don't
12229 # want to keep, you may remove or edit it.
12231 # config.status only pays attention to the cache file if you give it
12232 # the --recheck option to rerun configure.
12234 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12235 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12236 # following values.
12238 _ACEOF
12240 # The following way of writing the cache mishandles newlines in values,
12241 # but we know of no workaround that is simple, portable, and efficient.
12242 # So, don't put newlines in cache variables' values.
12243 # Ultrix sh set writes to stderr and can't be redirected directly,
12244 # and sets the high bit in the cache file unless we assign to the vars.
12246 (set) 2>&1 |
12247 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12248 *ac_space=\ *)
12249 # `set' does not quote correctly, so add quotes (double-quote
12250 # substitution turns \\\\ into \\, and sed turns \\ into \).
12251 sed -n \
12252 "s/'/'\\\\''/g;
12253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12256 # `set' quotes correctly as required by POSIX, so do not add quotes.
12257 sed -n \
12258 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12260 esac;
12262 sed '
12263 t clear
12264 : clear
12265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12266 t end
12267 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12268 : end' >>confcache
12269 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12270 if test -w $cache_file; then
12271 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12272 cat confcache >$cache_file
12273 else
12274 echo "not updating unwritable cache $cache_file"
12277 rm -f confcache
12279 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12280 # Let make expand exec_prefix.
12281 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12283 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12284 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12285 # trailing colons and then remove the whole line if VPATH becomes empty
12286 # (actually we leave an empty line to preserve line numbers).
12287 if test "x$srcdir" = x.; then
12288 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12289 s/:*\$(srcdir):*/:/;
12290 s/:*\${srcdir}:*/:/;
12291 s/:*@srcdir@:*/:/;
12292 s/^\([^=]*=[ ]*\):*/\1/;
12293 s/:*$//;
12294 s/^[^=]*=[ ]*$//;
12298 DEFS=-DHAVE_CONFIG_H
12300 ac_libobjs=
12301 ac_ltlibobjs=
12302 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12303 # 1. Remove the extension, and $U if already installed.
12304 ac_i=`echo "$ac_i" |
12305 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12306 # 2. Add them.
12307 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12308 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12309 done
12310 LIBOBJS=$ac_libobjs
12312 LTLIBOBJS=$ac_ltlibobjs
12316 : ${CONFIG_STATUS=./config.status}
12317 ac_clean_files_save=$ac_clean_files
12318 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12319 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12320 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12321 cat >$CONFIG_STATUS <<_ACEOF
12322 #! $SHELL
12323 # Generated by $as_me.
12324 # Run this file to recreate the current configuration.
12325 # Compiler output produced by configure, useful for debugging
12326 # configure, is in config.log if it exists.
12328 debug=false
12329 ac_cs_recheck=false
12330 ac_cs_silent=false
12331 SHELL=\${CONFIG_SHELL-$SHELL}
12332 _ACEOF
12334 cat >>$CONFIG_STATUS <<\_ACEOF
12335 ## --------------------- ##
12336 ## M4sh Initialization. ##
12337 ## --------------------- ##
12339 # Be Bourne compatible
12340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12341 emulate sh
12342 NULLCMD=:
12343 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12344 # is contrary to our usage. Disable this feature.
12345 alias -g '${1+"$@"}'='"$@"'
12346 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12347 set -o posix
12349 DUALCASE=1; export DUALCASE # for MKS sh
12351 # Support unset when possible.
12352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12353 as_unset=unset
12354 else
12355 as_unset=false
12359 # Work around bugs in pre-3.0 UWIN ksh.
12360 $as_unset ENV MAIL MAILPATH
12361 PS1='$ '
12362 PS2='> '
12363 PS4='+ '
12365 # NLS nuisances.
12366 for as_var in \
12367 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12368 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12369 LC_TELEPHONE LC_TIME
12371 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12372 eval $as_var=C; export $as_var
12373 else
12374 $as_unset $as_var
12376 done
12378 # Required to use basename.
12379 if expr a : '\(a\)' >/dev/null 2>&1; then
12380 as_expr=expr
12381 else
12382 as_expr=false
12385 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12386 as_basename=basename
12387 else
12388 as_basename=false
12392 # Name of the executable.
12393 as_me=`$as_basename "$0" ||
12394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12395 X"$0" : 'X\(//\)$' \| \
12396 X"$0" : 'X\(/\)$' \| \
12397 . : '\(.\)' 2>/dev/null ||
12398 echo X/"$0" |
12399 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12400 /^X\/\(\/\/\)$/{ s//\1/; q; }
12401 /^X\/\(\/\).*/{ s//\1/; q; }
12402 s/.*/./; q'`
12405 # PATH needs CR, and LINENO needs CR and PATH.
12406 # Avoid depending upon Character Ranges.
12407 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12408 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12409 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12410 as_cr_digits='0123456789'
12411 as_cr_alnum=$as_cr_Letters$as_cr_digits
12413 # The user is always right.
12414 if test "${PATH_SEPARATOR+set}" != set; then
12415 echo "#! /bin/sh" >conf$$.sh
12416 echo "exit 0" >>conf$$.sh
12417 chmod +x conf$$.sh
12418 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12419 PATH_SEPARATOR=';'
12420 else
12421 PATH_SEPARATOR=:
12423 rm -f conf$$.sh
12427 as_lineno_1=$LINENO
12428 as_lineno_2=$LINENO
12429 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12430 test "x$as_lineno_1" != "x$as_lineno_2" &&
12431 test "x$as_lineno_3" = "x$as_lineno_2" || {
12432 # Find who we are. Look in the path if we contain no path at all
12433 # relative or not.
12434 case $0 in
12435 *[\\/]* ) as_myself=$0 ;;
12436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12442 done
12445 esac
12446 # We did not find ourselves, most probably we were run as `sh COMMAND'
12447 # in which case we are not to be found in the path.
12448 if test "x$as_myself" = x; then
12449 as_myself=$0
12451 if test ! -f "$as_myself"; then
12452 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12453 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12454 { (exit 1); exit 1; }; }
12456 case $CONFIG_SHELL in
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12461 IFS=$as_save_IFS
12462 test -z "$as_dir" && as_dir=.
12463 for as_base in sh bash ksh sh5; do
12464 case $as_dir in
12466 if ("$as_dir/$as_base" -c '
12467 as_lineno_1=$LINENO
12468 as_lineno_2=$LINENO
12469 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12470 test "x$as_lineno_1" != "x$as_lineno_2" &&
12471 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12472 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12473 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12474 CONFIG_SHELL=$as_dir/$as_base
12475 export CONFIG_SHELL
12476 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12477 fi;;
12478 esac
12479 done
12480 done
12482 esac
12484 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12485 # uniformly replaced by the line number. The first 'sed' inserts a
12486 # line-number line before each line; the second 'sed' does the real
12487 # work. The second script uses 'N' to pair each line-number line
12488 # with the numbered line, and appends trailing '-' during
12489 # substitution so that $LINENO is not a special case at line end.
12490 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12491 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12492 sed '=' <$as_myself |
12493 sed '
12495 s,$,-,
12496 : loop
12497 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12498 t loop
12499 s,-$,,
12500 s,^['$as_cr_digits']*\n,,
12501 ' >$as_me.lineno &&
12502 chmod +x $as_me.lineno ||
12503 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12504 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12505 { (exit 1); exit 1; }; }
12507 # Don't try to exec as it changes $[0], causing all sort of problems
12508 # (the dirname of $[0] is not the place where we might find the
12509 # original and so on. Autoconf is especially sensible to this).
12510 . ./$as_me.lineno
12511 # Exit status is that of the last command.
12512 exit
12516 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12517 *c*,-n*) ECHO_N= ECHO_C='
12518 ' ECHO_T=' ' ;;
12519 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12520 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12521 esac
12523 if expr a : '\(a\)' >/dev/null 2>&1; then
12524 as_expr=expr
12525 else
12526 as_expr=false
12529 rm -f conf$$ conf$$.exe conf$$.file
12530 echo >conf$$.file
12531 if ln -s conf$$.file conf$$ 2>/dev/null; then
12532 # We could just check for DJGPP; but this test a) works b) is more generic
12533 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12534 if test -f conf$$.exe; then
12535 # Don't use ln at all; we don't have any links
12536 as_ln_s='cp -p'
12537 else
12538 as_ln_s='ln -s'
12540 elif ln conf$$.file conf$$ 2>/dev/null; then
12541 as_ln_s=ln
12542 else
12543 as_ln_s='cp -p'
12545 rm -f conf$$ conf$$.exe conf$$.file
12547 if mkdir -p . 2>/dev/null; then
12548 as_mkdir_p=:
12549 else
12550 test -d ./-p && rmdir ./-p
12551 as_mkdir_p=false
12554 as_executable_p="test -f"
12556 # Sed expression to map a string onto a valid CPP name.
12557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12559 # Sed expression to map a string onto a valid variable name.
12560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12563 # IFS
12564 # We need space, tab and new line, in precisely that order.
12565 as_nl='
12567 IFS=" $as_nl"
12569 # CDPATH.
12570 $as_unset CDPATH
12572 exec 6>&1
12574 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12575 # report actual input values of CONFIG_FILES etc. instead of their
12576 # values after options handling. Logging --version etc. is OK.
12577 exec 5>>config.log
12579 echo
12580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12581 ## Running $as_me. ##
12582 _ASBOX
12583 } >&5
12584 cat >&5 <<_CSEOF
12586 This file was extended by $as_me, which was
12587 generated by GNU Autoconf 2.59. Invocation command line was
12589 CONFIG_FILES = $CONFIG_FILES
12590 CONFIG_HEADERS = $CONFIG_HEADERS
12591 CONFIG_LINKS = $CONFIG_LINKS
12592 CONFIG_COMMANDS = $CONFIG_COMMANDS
12593 $ $0 $@
12595 _CSEOF
12596 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12597 echo >&5
12598 _ACEOF
12600 # Files that config.status was made for.
12601 if test -n "$ac_config_files"; then
12602 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12605 if test -n "$ac_config_headers"; then
12606 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12609 if test -n "$ac_config_links"; then
12610 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12613 if test -n "$ac_config_commands"; then
12614 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12617 cat >>$CONFIG_STATUS <<\_ACEOF
12619 ac_cs_usage="\
12620 \`$as_me' instantiates files from templates according to the
12621 current configuration.
12623 Usage: $0 [OPTIONS] [FILE]...
12625 -h, --help print this help, then exit
12626 -V, --version print version number, then exit
12627 -q, --quiet do not print progress messages
12628 -d, --debug don't remove temporary files
12629 --recheck update $as_me by reconfiguring in the same conditions
12630 --file=FILE[:TEMPLATE]
12631 instantiate the configuration file FILE
12632 --header=FILE[:TEMPLATE]
12633 instantiate the configuration header FILE
12635 Configuration files:
12636 $config_files
12638 Configuration headers:
12639 $config_headers
12641 Configuration commands:
12642 $config_commands
12644 Report bugs to <bug-autoconf@gnu.org>."
12645 _ACEOF
12647 cat >>$CONFIG_STATUS <<_ACEOF
12648 ac_cs_version="\\
12649 config.status
12650 configured by $0, generated by GNU Autoconf 2.59,
12651 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12653 Copyright (C) 2003 Free Software Foundation, Inc.
12654 This config.status script is free software; the Free Software Foundation
12655 gives unlimited permission to copy, distribute and modify it."
12656 srcdir=$srcdir
12657 _ACEOF
12659 cat >>$CONFIG_STATUS <<\_ACEOF
12660 # If no file are specified by the user, then we need to provide default
12661 # value. By we need to know if files were specified by the user.
12662 ac_need_defaults=:
12663 while test $# != 0
12665 case $1 in
12666 --*=*)
12667 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12668 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12669 ac_shift=:
12672 ac_option=$1
12673 ac_optarg=$2
12674 ac_shift=shift
12676 *) # This is not an option, so the user has probably given explicit
12677 # arguments.
12678 ac_option=$1
12679 ac_need_defaults=false;;
12680 esac
12682 case $ac_option in
12683 # Handling of the options.
12684 _ACEOF
12685 cat >>$CONFIG_STATUS <<\_ACEOF
12686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12687 ac_cs_recheck=: ;;
12688 --version | --vers* | -V )
12689 echo "$ac_cs_version"; exit 0 ;;
12690 --he | --h)
12691 # Conflict between --help and --header
12692 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12693 Try \`$0 --help' for more information." >&5
12694 echo "$as_me: error: ambiguous option: $1
12695 Try \`$0 --help' for more information." >&2;}
12696 { (exit 1); exit 1; }; };;
12697 --help | --hel | -h )
12698 echo "$ac_cs_usage"; exit 0 ;;
12699 --debug | --d* | -d )
12700 debug=: ;;
12701 --file | --fil | --fi | --f )
12702 $ac_shift
12703 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12704 ac_need_defaults=false;;
12705 --header | --heade | --head | --hea )
12706 $ac_shift
12707 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12708 ac_need_defaults=false;;
12709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12710 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12711 ac_cs_silent=: ;;
12713 # This is an error.
12714 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12715 Try \`$0 --help' for more information." >&5
12716 echo "$as_me: error: unrecognized option: $1
12717 Try \`$0 --help' for more information." >&2;}
12718 { (exit 1); exit 1; }; } ;;
12720 *) ac_config_targets="$ac_config_targets $1" ;;
12722 esac
12723 shift
12724 done
12726 ac_configure_extra_args=
12728 if $ac_cs_silent; then
12729 exec 6>/dev/null
12730 ac_configure_extra_args="$ac_configure_extra_args --silent"
12733 _ACEOF
12734 cat >>$CONFIG_STATUS <<_ACEOF
12735 if \$ac_cs_recheck; then
12736 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12737 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12740 _ACEOF
12742 cat >>$CONFIG_STATUS <<_ACEOF
12744 # INIT-COMMANDS section.
12747 subdirs='$subdirs'
12748 symbolic_link='$symbolic_link'
12751 _ACEOF
12755 cat >>$CONFIG_STATUS <<\_ACEOF
12756 for ac_config_target in $ac_config_targets
12758 case "$ac_config_target" in
12759 # Handling of arguments.
12760 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12761 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12762 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12763 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12764 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12765 { (exit 1); exit 1; }; };;
12766 esac
12767 done
12769 # If the user did not use the arguments to specify the items to instantiate,
12770 # then the envvar interface is used. Set only those that are not.
12771 # We use the long form for the default assignment because of an extremely
12772 # bizarre bug on SunOS 4.1.3.
12773 if $ac_need_defaults; then
12774 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12775 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12776 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12779 # Have a temporary directory for convenience. Make it in the build tree
12780 # simply because there is no reason to put it here, and in addition,
12781 # creating and moving files from /tmp can sometimes cause problems.
12782 # Create a temporary directory, and hook for its removal unless debugging.
12783 $debug ||
12785 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12786 trap '{ (exit 1); exit 1; }' 1 2 13 15
12789 # Create a (secure) tmp directory for tmp files.
12792 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12793 test -n "$tmp" && test -d "$tmp"
12794 } ||
12796 tmp=./confstat$$-$RANDOM
12797 (umask 077 && mkdir $tmp)
12798 } ||
12800 echo "$me: cannot create a temporary directory in ." >&2
12801 { (exit 1); exit 1; }
12804 _ACEOF
12806 cat >>$CONFIG_STATUS <<_ACEOF
12809 # CONFIG_FILES section.
12812 # No need to generate the scripts if there are no CONFIG_FILES.
12813 # This happens for instance when ./config.status config.h
12814 if test -n "\$CONFIG_FILES"; then
12815 # Protect against being on the right side of a sed subst in config.status.
12816 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12817 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12818 s,@SHELL@,$SHELL,;t t
12819 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12820 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12821 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12822 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12823 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12824 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12825 s,@exec_prefix@,$exec_prefix,;t t
12826 s,@prefix@,$prefix,;t t
12827 s,@program_transform_name@,$program_transform_name,;t t
12828 s,@bindir@,$bindir,;t t
12829 s,@sbindir@,$sbindir,;t t
12830 s,@libexecdir@,$libexecdir,;t t
12831 s,@datadir@,$datadir,;t t
12832 s,@sysconfdir@,$sysconfdir,;t t
12833 s,@sharedstatedir@,$sharedstatedir,;t t
12834 s,@localstatedir@,$localstatedir,;t t
12835 s,@libdir@,$libdir,;t t
12836 s,@includedir@,$includedir,;t t
12837 s,@oldincludedir@,$oldincludedir,;t t
12838 s,@infodir@,$infodir,;t t
12839 s,@mandir@,$mandir,;t t
12840 s,@build_alias@,$build_alias,;t t
12841 s,@host_alias@,$host_alias,;t t
12842 s,@target_alias@,$target_alias,;t t
12843 s,@DEFS@,$DEFS,;t t
12844 s,@ECHO_C@,$ECHO_C,;t t
12845 s,@ECHO_N@,$ECHO_N,;t t
12846 s,@ECHO_T@,$ECHO_T,;t t
12847 s,@LIBS@,$LIBS,;t t
12848 s,@build@,$build,;t t
12849 s,@build_cpu@,$build_cpu,;t t
12850 s,@build_vendor@,$build_vendor,;t t
12851 s,@build_os@,$build_os,;t t
12852 s,@host@,$host,;t t
12853 s,@host_cpu@,$host_cpu,;t t
12854 s,@host_vendor@,$host_vendor,;t t
12855 s,@host_os@,$host_os,;t t
12856 s,@target@,$target,;t t
12857 s,@target_cpu@,$target_cpu,;t t
12858 s,@target_vendor@,$target_vendor,;t t
12859 s,@target_os@,$target_os,;t t
12860 s,@build_subdir@,$build_subdir,;t t
12861 s,@host_subdir@,$host_subdir,;t t
12862 s,@target_subdir@,$target_subdir,;t t
12863 s,@GENINSRC@,$GENINSRC,;t t
12864 s,@CC@,$CC,;t t
12865 s,@CFLAGS@,$CFLAGS,;t t
12866 s,@LDFLAGS@,$LDFLAGS,;t t
12867 s,@CPPFLAGS@,$CPPFLAGS,;t t
12868 s,@ac_ct_CC@,$ac_ct_CC,;t t
12869 s,@EXEEXT@,$EXEEXT,;t t
12870 s,@OBJEXT@,$OBJEXT,;t t
12871 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12872 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12873 s,@CPP@,$CPP,;t t
12874 s,@strict1_warn@,$strict1_warn,;t t
12875 s,@warn_cflags@,$warn_cflags,;t t
12876 s,@WERROR@,$WERROR,;t t
12877 s,@nocommon_flag@,$nocommon_flag,;t t
12878 s,@TREEBROWSER@,$TREEBROWSER,;t t
12879 s,@EGREP@,$EGREP,;t t
12880 s,@valgrind_path@,$valgrind_path,;t t
12881 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12882 s,@valgrind_command@,$valgrind_command,;t t
12883 s,@coverage_flags@,$coverage_flags,;t t
12884 s,@enable_multilib@,$enable_multilib,;t t
12885 s,@enable_shared@,$enable_shared,;t t
12886 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12887 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12888 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12889 s,@onestep@,$onestep,;t t
12890 s,@SET_MAKE@,$SET_MAKE,;t t
12891 s,@AWK@,$AWK,;t t
12892 s,@LN_S@,$LN_S,;t t
12893 s,@LN@,$LN,;t t
12894 s,@RANLIB@,$RANLIB,;t t
12895 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12896 s,@INSTALL@,$INSTALL,;t t
12897 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12898 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12899 s,@make_compare_target@,$make_compare_target,;t t
12900 s,@have_mktemp_command@,$have_mktemp_command,;t t
12901 s,@MAKEINFO@,$MAKEINFO,;t t
12902 s,@BUILD_INFO@,$BUILD_INFO,;t t
12903 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12904 s,@FLEX@,$FLEX,;t t
12905 s,@BISON@,$BISON,;t t
12906 s,@stage1_cflags@,$stage1_cflags,;t t
12907 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12908 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12909 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12910 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12911 s,@LIBICONV@,$LIBICONV,;t t
12912 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12913 s,@manext@,$manext,;t t
12914 s,@objext@,$objext,;t t
12915 s,@gthread_flags@,$gthread_flags,;t t
12916 s,@extra_modes_file@,$extra_modes_file,;t t
12917 s,@FORBUILD@,$FORBUILD,;t t
12918 s,@PACKAGE@,$PACKAGE,;t t
12919 s,@VERSION@,$VERSION,;t t
12920 s,@USE_NLS@,$USE_NLS,;t t
12921 s,@LIBINTL@,$LIBINTL,;t t
12922 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12923 s,@INCINTL@,$INCINTL,;t t
12924 s,@XGETTEXT@,$XGETTEXT,;t t
12925 s,@GMSGFMT@,$GMSGFMT,;t t
12926 s,@POSUB@,$POSUB,;t t
12927 s,@CATALOGS@,$CATALOGS,;t t
12928 s,@CROSS@,$CROSS,;t t
12929 s,@ALL@,$ALL,;t t
12930 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12931 s,@inhibit_libc@,$inhibit_libc,;t t
12932 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12933 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12934 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12935 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12936 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12937 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12938 s,@collect2@,$collect2,;t t
12939 s,@libgcc_visibility@,$libgcc_visibility,;t t
12940 s,@GGC@,$GGC,;t t
12941 s,@zlibdir@,$zlibdir,;t t
12942 s,@zlibinc@,$zlibinc,;t t
12943 s,@MAINT@,$MAINT,;t t
12944 s,@ANDER@,$ANDER,;t t
12945 s,@BANSHEEINC@,$BANSHEEINC,;t t
12946 s,@BANSHEELIB@,$BANSHEELIB,;t t
12947 s,@gcc_tooldir@,$gcc_tooldir,;t t
12948 s,@dollar@,$dollar,;t t
12949 s,@slibdir@,$slibdir,;t t
12950 s,@objdir@,$objdir,;t t
12951 s,@subdirs@,$subdirs,;t t
12952 s,@srcdir@,$srcdir,;t t
12953 s,@all_boot_languages@,$all_boot_languages,;t t
12954 s,@all_compilers@,$all_compilers,;t t
12955 s,@all_gtfiles@,$all_gtfiles,;t t
12956 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12957 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12958 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12959 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12960 s,@all_languages@,$all_languages,;t t
12961 s,@all_stagestuff@,$all_stagestuff,;t t
12962 s,@build_exeext@,$build_exeext,;t t
12963 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12964 s,@build_xm_file_list@,$build_xm_file_list,;t t
12965 s,@build_xm_include_list@,$build_xm_include_list,;t t
12966 s,@build_xm_defines@,$build_xm_defines,;t t
12967 s,@check_languages@,$check_languages,;t t
12968 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12969 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12970 s,@cpp_install_dir@,$cpp_install_dir,;t t
12971 s,@xmake_file@,$xmake_file,;t t
12972 s,@tmake_file@,$tmake_file,;t t
12973 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12974 s,@extra_headers_list@,$extra_headers_list,;t t
12975 s,@extra_objs@,$extra_objs,;t t
12976 s,@extra_parts@,$extra_parts,;t t
12977 s,@extra_passes@,$extra_passes,;t t
12978 s,@extra_programs@,$extra_programs,;t t
12979 s,@float_h_file@,$float_h_file,;t t
12980 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12981 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12982 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12983 s,@gcc_version@,$gcc_version,;t t
12984 s,@gcc_version_full@,$gcc_version_full,;t t
12985 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12986 s,@host_exeext@,$host_exeext,;t t
12987 s,@host_xm_file_list@,$host_xm_file_list,;t t
12988 s,@host_xm_include_list@,$host_xm_include_list,;t t
12989 s,@host_xm_defines@,$host_xm_defines,;t t
12990 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12991 s,@install@,$install,;t t
12992 s,@lang_opt_files@,$lang_opt_files,;t t
12993 s,@lang_specs_files@,$lang_specs_files,;t t
12994 s,@lang_tree_files@,$lang_tree_files,;t t
12995 s,@local_prefix@,$local_prefix,;t t
12996 s,@md_file@,$md_file,;t t
12997 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12998 s,@out_file@,$out_file,;t t
12999 s,@out_object_file@,$out_object_file,;t t
13000 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13001 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13002 s,@symbolic_link@,$symbolic_link,;t t
13003 s,@thread_file@,$thread_file,;t t
13004 s,@tm_file_list@,$tm_file_list,;t t
13005 s,@tm_include_list@,$tm_include_list,;t t
13006 s,@tm_defines@,$tm_defines,;t t
13007 s,@tm_p_file_list@,$tm_p_file_list,;t t
13008 s,@tm_p_include_list@,$tm_p_include_list,;t t
13009 s,@xm_file_list@,$xm_file_list,;t t
13010 s,@xm_include_list@,$xm_include_list,;t t
13011 s,@xm_defines@,$xm_defines,;t t
13012 s,@target_noncanonical@,$target_noncanonical,;t t
13013 s,@c_target_objs@,$c_target_objs,;t t
13014 s,@cxx_target_objs@,$cxx_target_objs,;t t
13015 s,@target_cpu_default@,$target_cpu_default,;t t
13016 s,@GMPLIBS@,$GMPLIBS,;t t
13017 s,@GMPINC@,$GMPINC,;t t
13018 s,@LIBOBJS@,$LIBOBJS,;t t
13019 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13020 /@language_hooks@/r $language_hooks
13021 s,@language_hooks@,,;t t
13022 CEOF
13024 _ACEOF
13026 cat >>$CONFIG_STATUS <<\_ACEOF
13027 # Split the substitutions into bite-sized pieces for seds with
13028 # small command number limits, like on Digital OSF/1 and HP-UX.
13029 ac_max_sed_lines=48
13030 ac_sed_frag=1 # Number of current file.
13031 ac_beg=1 # First line for current file.
13032 ac_end=$ac_max_sed_lines # Line after last line for current file.
13033 ac_more_lines=:
13034 ac_sed_cmds=
13035 while $ac_more_lines; do
13036 if test $ac_beg -gt 1; then
13037 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13038 else
13039 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13041 if test ! -s $tmp/subs.frag; then
13042 ac_more_lines=false
13043 else
13044 # The purpose of the label and of the branching condition is to
13045 # speed up the sed processing (if there are no `@' at all, there
13046 # is no need to browse any of the substitutions).
13047 # These are the two extra sed commands mentioned above.
13048 (echo ':t
13049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13050 if test -z "$ac_sed_cmds"; then
13051 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13052 else
13053 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13055 ac_sed_frag=`expr $ac_sed_frag + 1`
13056 ac_beg=$ac_end
13057 ac_end=`expr $ac_end + $ac_max_sed_lines`
13059 done
13060 if test -z "$ac_sed_cmds"; then
13061 ac_sed_cmds=cat
13063 fi # test -n "$CONFIG_FILES"
13065 _ACEOF
13066 cat >>$CONFIG_STATUS <<\_ACEOF
13067 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13068 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13069 case $ac_file in
13070 - | *:- | *:-:* ) # input from stdin
13071 cat >$tmp/stdin
13072 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13073 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13074 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13075 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13076 * ) ac_file_in=$ac_file.in ;;
13077 esac
13079 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13080 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13082 X"$ac_file" : 'X\(//\)[^/]' \| \
13083 X"$ac_file" : 'X\(//\)$' \| \
13084 X"$ac_file" : 'X\(/\)' \| \
13085 . : '\(.\)' 2>/dev/null ||
13086 echo X"$ac_file" |
13087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13088 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13089 /^X\(\/\/\)$/{ s//\1/; q; }
13090 /^X\(\/\).*/{ s//\1/; q; }
13091 s/.*/./; q'`
13092 { if $as_mkdir_p; then
13093 mkdir -p "$ac_dir"
13094 else
13095 as_dir="$ac_dir"
13096 as_dirs=
13097 while test ! -d "$as_dir"; do
13098 as_dirs="$as_dir $as_dirs"
13099 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13101 X"$as_dir" : 'X\(//\)[^/]' \| \
13102 X"$as_dir" : 'X\(//\)$' \| \
13103 X"$as_dir" : 'X\(/\)' \| \
13104 . : '\(.\)' 2>/dev/null ||
13105 echo X"$as_dir" |
13106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13108 /^X\(\/\/\)$/{ s//\1/; q; }
13109 /^X\(\/\).*/{ s//\1/; q; }
13110 s/.*/./; q'`
13111 done
13112 test ! -n "$as_dirs" || mkdir $as_dirs
13113 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13114 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13115 { (exit 1); exit 1; }; }; }
13117 ac_builddir=.
13119 if test "$ac_dir" != .; then
13120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13121 # A "../" for each directory in $ac_dir_suffix.
13122 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13123 else
13124 ac_dir_suffix= ac_top_builddir=
13127 case $srcdir in
13128 .) # No --srcdir option. We are building in place.
13129 ac_srcdir=.
13130 if test -z "$ac_top_builddir"; then
13131 ac_top_srcdir=.
13132 else
13133 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13134 fi ;;
13135 [\\/]* | ?:[\\/]* ) # Absolute path.
13136 ac_srcdir=$srcdir$ac_dir_suffix;
13137 ac_top_srcdir=$srcdir ;;
13138 *) # Relative path.
13139 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13140 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13141 esac
13143 # Do not use `cd foo && pwd` to compute absolute paths, because
13144 # the directories may not exist.
13145 case `pwd` in
13146 .) ac_abs_builddir="$ac_dir";;
13148 case "$ac_dir" in
13149 .) ac_abs_builddir=`pwd`;;
13150 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13151 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13152 esac;;
13153 esac
13154 case $ac_abs_builddir in
13155 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13157 case ${ac_top_builddir}. in
13158 .) ac_abs_top_builddir=$ac_abs_builddir;;
13159 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13160 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13161 esac;;
13162 esac
13163 case $ac_abs_builddir in
13164 .) ac_abs_srcdir=$ac_srcdir;;
13166 case $ac_srcdir in
13167 .) ac_abs_srcdir=$ac_abs_builddir;;
13168 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13169 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13170 esac;;
13171 esac
13172 case $ac_abs_builddir in
13173 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13175 case $ac_top_srcdir in
13176 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13177 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13178 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13179 esac;;
13180 esac
13184 if test x"$ac_file" != x-; then
13185 { echo "$as_me:$LINENO: creating $ac_file" >&5
13186 echo "$as_me: creating $ac_file" >&6;}
13187 rm -f "$ac_file"
13189 # Let's still pretend it is `configure' which instantiates (i.e., don't
13190 # use $as_me), people would be surprised to read:
13191 # /* config.h. Generated by config.status. */
13192 if test x"$ac_file" = x-; then
13193 configure_input=
13194 else
13195 configure_input="$ac_file. "
13197 configure_input=$configure_input"Generated from `echo $ac_file_in |
13198 sed 's,.*/,,'` by configure."
13200 # First look for the input files in the build tree, otherwise in the
13201 # src tree.
13202 ac_file_inputs=`IFS=:
13203 for f in $ac_file_in; do
13204 case $f in
13205 -) echo $tmp/stdin ;;
13206 [\\/$]*)
13207 # Absolute (can't be DOS-style, as IFS=:)
13208 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13209 echo "$as_me: error: cannot find input file: $f" >&2;}
13210 { (exit 1); exit 1; }; }
13211 echo "$f";;
13212 *) # Relative
13213 if test -f "$f"; then
13214 # Build tree
13215 echo "$f"
13216 elif test -f "$srcdir/$f"; then
13217 # Source tree
13218 echo "$srcdir/$f"
13219 else
13220 # /dev/null tree
13221 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13222 echo "$as_me: error: cannot find input file: $f" >&2;}
13223 { (exit 1); exit 1; }; }
13224 fi;;
13225 esac
13226 done` || { (exit 1); exit 1; }
13227 _ACEOF
13228 cat >>$CONFIG_STATUS <<_ACEOF
13229 sed "$ac_vpsub
13230 $extrasub
13231 _ACEOF
13232 cat >>$CONFIG_STATUS <<\_ACEOF
13234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13235 s,@configure_input@,$configure_input,;t t
13236 s,@srcdir@,$ac_srcdir,;t t
13237 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13238 s,@top_srcdir@,$ac_top_srcdir,;t t
13239 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13240 s,@builddir@,$ac_builddir,;t t
13241 s,@abs_builddir@,$ac_abs_builddir,;t t
13242 s,@top_builddir@,$ac_top_builddir,;t t
13243 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13244 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13245 rm -f $tmp/stdin
13246 if test x"$ac_file" != x-; then
13247 mv $tmp/out $ac_file
13248 else
13249 cat $tmp/out
13250 rm -f $tmp/out
13253 done
13254 _ACEOF
13255 cat >>$CONFIG_STATUS <<\_ACEOF
13258 # CONFIG_HEADER section.
13261 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13262 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13264 # ac_d sets the value in "#define NAME VALUE" lines.
13265 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13266 ac_dB='[ ].*$,\1#\2'
13267 ac_dC=' '
13268 ac_dD=',;t'
13269 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13270 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13271 ac_uB='$,\1#\2define\3'
13272 ac_uC=' '
13273 ac_uD=',;t'
13275 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13277 case $ac_file in
13278 - | *:- | *:-:* ) # input from stdin
13279 cat >$tmp/stdin
13280 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13281 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13282 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13284 * ) ac_file_in=$ac_file.in ;;
13285 esac
13287 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13288 echo "$as_me: creating $ac_file" >&6;}
13290 # First look for the input files in the build tree, otherwise in the
13291 # src tree.
13292 ac_file_inputs=`IFS=:
13293 for f in $ac_file_in; do
13294 case $f in
13295 -) echo $tmp/stdin ;;
13296 [\\/$]*)
13297 # Absolute (can't be DOS-style, as IFS=:)
13298 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13299 echo "$as_me: error: cannot find input file: $f" >&2;}
13300 { (exit 1); exit 1; }; }
13301 # Do quote $f, to prevent DOS paths from being IFS'd.
13302 echo "$f";;
13303 *) # Relative
13304 if test -f "$f"; then
13305 # Build tree
13306 echo "$f"
13307 elif test -f "$srcdir/$f"; then
13308 # Source tree
13309 echo "$srcdir/$f"
13310 else
13311 # /dev/null tree
13312 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13313 echo "$as_me: error: cannot find input file: $f" >&2;}
13314 { (exit 1); exit 1; }; }
13315 fi;;
13316 esac
13317 done` || { (exit 1); exit 1; }
13318 # Remove the trailing spaces.
13319 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13321 _ACEOF
13323 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13324 # `conftest.undefs', that substitutes the proper values into
13325 # config.h.in to produce config.h. The first handles `#define'
13326 # templates, and the second `#undef' templates.
13327 # And first: Protect against being on the right side of a sed subst in
13328 # config.status. Protect against being in an unquoted here document
13329 # in config.status.
13330 rm -f conftest.defines conftest.undefs
13331 # Using a here document instead of a string reduces the quoting nightmare.
13332 # Putting comments in sed scripts is not portable.
13334 # `end' is used to avoid that the second main sed command (meant for
13335 # 0-ary CPP macros) applies to n-ary macro definitions.
13336 # See the Autoconf documentation for `clear'.
13337 cat >confdef2sed.sed <<\_ACEOF
13338 s/[\\&,]/\\&/g
13339 s,[\\$`],\\&,g
13340 t clear
13341 : clear
13342 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13343 t end
13344 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13345 : end
13346 _ACEOF
13347 # If some macros were called several times there might be several times
13348 # the same #defines, which is useless. Nevertheless, we may not want to
13349 # sort them, since we want the *last* AC-DEFINE to be honored.
13350 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13351 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13352 rm -f confdef2sed.sed
13354 # This sed command replaces #undef with comments. This is necessary, for
13355 # example, in the case of _POSIX_SOURCE, which is predefined and required
13356 # on some systems where configure will not decide to define it.
13357 cat >>conftest.undefs <<\_ACEOF
13358 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13359 _ACEOF
13361 # Break up conftest.defines because some shells have a limit on the size
13362 # of here documents, and old seds have small limits too (100 cmds).
13363 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13364 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13365 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13366 echo ' :' >>$CONFIG_STATUS
13367 rm -f conftest.tail
13368 while grep . conftest.defines >/dev/null
13370 # Write a limited-size here document to $tmp/defines.sed.
13371 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13372 # Speed up: don't consider the non `#define' lines.
13373 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13374 # Work around the forget-to-reset-the-flag bug.
13375 echo 't clr' >>$CONFIG_STATUS
13376 echo ': clr' >>$CONFIG_STATUS
13377 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13378 echo 'CEOF
13379 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13380 rm -f $tmp/in
13381 mv $tmp/out $tmp/in
13382 ' >>$CONFIG_STATUS
13383 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13384 rm -f conftest.defines
13385 mv conftest.tail conftest.defines
13386 done
13387 rm -f conftest.defines
13388 echo ' fi # grep' >>$CONFIG_STATUS
13389 echo >>$CONFIG_STATUS
13391 # Break up conftest.undefs because some shells have a limit on the size
13392 # of here documents, and old seds have small limits too (100 cmds).
13393 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13394 rm -f conftest.tail
13395 while grep . conftest.undefs >/dev/null
13397 # Write a limited-size here document to $tmp/undefs.sed.
13398 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13399 # Speed up: don't consider the non `#undef'
13400 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13401 # Work around the forget-to-reset-the-flag bug.
13402 echo 't clr' >>$CONFIG_STATUS
13403 echo ': clr' >>$CONFIG_STATUS
13404 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13405 echo 'CEOF
13406 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13407 rm -f $tmp/in
13408 mv $tmp/out $tmp/in
13409 ' >>$CONFIG_STATUS
13410 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13411 rm -f conftest.undefs
13412 mv conftest.tail conftest.undefs
13413 done
13414 rm -f conftest.undefs
13416 cat >>$CONFIG_STATUS <<\_ACEOF
13417 # Let's still pretend it is `configure' which instantiates (i.e., don't
13418 # use $as_me), people would be surprised to read:
13419 # /* config.h. Generated by config.status. */
13420 if test x"$ac_file" = x-; then
13421 echo "/* Generated by configure. */" >$tmp/config.h
13422 else
13423 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13425 cat $tmp/in >>$tmp/config.h
13426 rm -f $tmp/in
13427 if test x"$ac_file" != x-; then
13428 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13429 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13430 echo "$as_me: $ac_file is unchanged" >&6;}
13431 else
13432 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13434 X"$ac_file" : 'X\(//\)[^/]' \| \
13435 X"$ac_file" : 'X\(//\)$' \| \
13436 X"$ac_file" : 'X\(/\)' \| \
13437 . : '\(.\)' 2>/dev/null ||
13438 echo X"$ac_file" |
13439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13441 /^X\(\/\/\)$/{ s//\1/; q; }
13442 /^X\(\/\).*/{ s//\1/; q; }
13443 s/.*/./; q'`
13444 { if $as_mkdir_p; then
13445 mkdir -p "$ac_dir"
13446 else
13447 as_dir="$ac_dir"
13448 as_dirs=
13449 while test ! -d "$as_dir"; do
13450 as_dirs="$as_dir $as_dirs"
13451 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13452 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13453 X"$as_dir" : 'X\(//\)[^/]' \| \
13454 X"$as_dir" : 'X\(//\)$' \| \
13455 X"$as_dir" : 'X\(/\)' \| \
13456 . : '\(.\)' 2>/dev/null ||
13457 echo X"$as_dir" |
13458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13460 /^X\(\/\/\)$/{ s//\1/; q; }
13461 /^X\(\/\).*/{ s//\1/; q; }
13462 s/.*/./; q'`
13463 done
13464 test ! -n "$as_dirs" || mkdir $as_dirs
13465 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13466 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13467 { (exit 1); exit 1; }; }; }
13469 rm -f $ac_file
13470 mv $tmp/config.h $ac_file
13472 else
13473 cat $tmp/config.h
13474 rm -f $tmp/config.h
13476 done
13477 _ACEOF
13478 cat >>$CONFIG_STATUS <<\_ACEOF
13481 # CONFIG_COMMANDS section.
13483 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13484 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13485 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13486 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13487 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13488 X"$ac_dest" : 'X\(//\)[^/]' \| \
13489 X"$ac_dest" : 'X\(//\)$' \| \
13490 X"$ac_dest" : 'X\(/\)' \| \
13491 . : '\(.\)' 2>/dev/null ||
13492 echo X"$ac_dest" |
13493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13495 /^X\(\/\/\)$/{ s//\1/; q; }
13496 /^X\(\/\).*/{ s//\1/; q; }
13497 s/.*/./; q'`
13498 { if $as_mkdir_p; then
13499 mkdir -p "$ac_dir"
13500 else
13501 as_dir="$ac_dir"
13502 as_dirs=
13503 while test ! -d "$as_dir"; do
13504 as_dirs="$as_dir $as_dirs"
13505 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13507 X"$as_dir" : 'X\(//\)[^/]' \| \
13508 X"$as_dir" : 'X\(//\)$' \| \
13509 X"$as_dir" : 'X\(/\)' \| \
13510 . : '\(.\)' 2>/dev/null ||
13511 echo X"$as_dir" |
13512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13514 /^X\(\/\/\)$/{ s//\1/; q; }
13515 /^X\(\/\).*/{ s//\1/; q; }
13516 s/.*/./; q'`
13517 done
13518 test ! -n "$as_dirs" || mkdir $as_dirs
13519 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13520 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13521 { (exit 1); exit 1; }; }; }
13523 ac_builddir=.
13525 if test "$ac_dir" != .; then
13526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13527 # A "../" for each directory in $ac_dir_suffix.
13528 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13529 else
13530 ac_dir_suffix= ac_top_builddir=
13533 case $srcdir in
13534 .) # No --srcdir option. We are building in place.
13535 ac_srcdir=.
13536 if test -z "$ac_top_builddir"; then
13537 ac_top_srcdir=.
13538 else
13539 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13540 fi ;;
13541 [\\/]* | ?:[\\/]* ) # Absolute path.
13542 ac_srcdir=$srcdir$ac_dir_suffix;
13543 ac_top_srcdir=$srcdir ;;
13544 *) # Relative path.
13545 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13546 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13547 esac
13549 # Do not use `cd foo && pwd` to compute absolute paths, because
13550 # the directories may not exist.
13551 case `pwd` in
13552 .) ac_abs_builddir="$ac_dir";;
13554 case "$ac_dir" in
13555 .) ac_abs_builddir=`pwd`;;
13556 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13557 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13558 esac;;
13559 esac
13560 case $ac_abs_builddir in
13561 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13563 case ${ac_top_builddir}. in
13564 .) ac_abs_top_builddir=$ac_abs_builddir;;
13565 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13566 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13567 esac;;
13568 esac
13569 case $ac_abs_builddir in
13570 .) ac_abs_srcdir=$ac_srcdir;;
13572 case $ac_srcdir in
13573 .) ac_abs_srcdir=$ac_abs_builddir;;
13574 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13575 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13576 esac;;
13577 esac
13578 case $ac_abs_builddir in
13579 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13581 case $ac_top_srcdir in
13582 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13583 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13584 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13585 esac;;
13586 esac
13589 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13590 echo "$as_me: executing $ac_dest commands" >&6;}
13591 case $ac_dest in
13592 default )
13593 case ${CONFIG_HEADERS} in
13594 *auto-host.h:config.in*)
13595 echo > cstamp-h ;;
13596 esac
13597 # Make sure all the subdirs exist.
13598 for d in $subdirs
13600 test -d $d || mkdir $d
13601 done
13602 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13603 # bootstrapping and the installation procedure can still use
13604 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13605 # FLAGS_TO_PASS has been modified to solve the problem there.
13606 # This is virtually a duplicate of what happens in configure.lang; we do
13607 # an extra check to make sure this only happens if ln -s can be used.
13608 if test "$symbolic_link" = "ln -s"; then
13609 for d in ${subdirs} fixinc ; do
13610 STARTDIR=`${PWDCMD-pwd}`
13611 cd $d
13612 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13614 rm -f $t
13615 $symbolic_link ../$t $t 2>/dev/null
13616 done
13617 cd $STARTDIR
13618 done
13619 else true ; fi
13621 esac
13622 done
13623 _ACEOF
13625 cat >>$CONFIG_STATUS <<\_ACEOF
13627 { (exit 0); exit 0; }
13628 _ACEOF
13629 chmod +x $CONFIG_STATUS
13630 ac_clean_files=$ac_clean_files_save
13633 # configure is writing to config.log, and then calls config.status.
13634 # config.status does its own redirection, appending to config.log.
13635 # Unfortunately, on DOS this fails, as config.log is still kept open
13636 # by configure, so config.status won't be able to write to it; its
13637 # output is simply discarded. So we exec the FD to /dev/null,
13638 # effectively closing config.log, so it can be properly (re)opened and
13639 # appended to by config.status. When coming back to configure, we
13640 # need to make the FD available again.
13641 if test "$no_create" != yes; then
13642 ac_cs_success=:
13643 ac_config_status_args=
13644 test "$silent" = yes &&
13645 ac_config_status_args="$ac_config_status_args --quiet"
13646 exec 5>/dev/null
13647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13648 exec 5>>config.log
13649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13650 # would make configure fail if this is the last instruction.
13651 $ac_cs_success || { (exit 1); exit 1; }