(gcc)
[official-gcc.git] / gcc / configure
blobdb55887e227a01f6f0ae210a001a75965bcd7e1c
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 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 LN_S 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 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir 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 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
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-generated-files-in-srcdir
854 put copies of generated files in source dir
855 intended for creating source tarballs for users
856 without texinfo bison or flex.
857 --enable-werror-always enable -Werror always
858 --enable-werror enable -Werror in bootstrap stage2 and later
859 --enable-checking=LIST
860 enable expensive run-time checks. With LIST,
861 enable only specific categories of checks.
862 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
863 default is misc,tree,gc,rtlflag
864 --enable-coverage=LEVEL
865 enable compiler\'s code coverage collection.
866 Use to measure compiler performance and locate
867 unused parts of the compiler. With LEVEL, specify
868 optimization. Values are opt, noopt,
869 default is noopt
870 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
871 --enable-multilib enable library support for multiple ABIs
872 --enable-__cxa_atexit enable __cxa_atexit for C++
873 --enable-threads enable thread usage for target GCC
874 --enable-threads=LIB use LIB thread package for target GCC
875 --enable-objc-gc enable the use of Boehm's garbage collector with
876 the GNU Objective-C runtime
877 --disable-shared don't provide a shared libgcc
878 --enable-intermodule build the compiler in one step
879 --enable-languages=LIST specify which front-ends to build
880 --enable-initfini-array use .init_array/.fini_array sections
881 --enable-sjlj-exceptions
882 arrange to use setjmp/longjmp exception handling
883 --enable-libunwind-exceptions force use libunwind for exceptions
884 --disable-win32-registry
885 disable lookup of installation paths in the
886 Registry on Windows hosts
887 --enable-win32-registry enable registry lookup (default)
888 --enable-win32-registry=KEY
889 use KEY instead of GCC version as the last portion
890 of the registry key
891 --enable-maintainer-mode
892 enable make rules and dependencies not useful
893 (and sometimes confusing) to the casual installer
894 --enable-version-specific-runtime-libs
895 specify that runtime libraries should be
896 installed in a compiler-specific directory
898 Optional Packages:
899 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
900 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
901 --with-local-prefix=DIR specifies directory to put local include
902 --with-gxx-include-dir=DIR
903 specifies directory to put g++ header files
904 --with-cpp-install-dir=DIR
905 install the user visible C preprocessor in DIR
906 (relative to PREFIX) as well as PREFIX/bin
907 --with-gnu-ld arrange to work with GNU ld.
908 --with-ld arrange to use the specified ld (full pathname)
909 --with-gnu-as arrange to work with GNU as
910 --with-as arrange to use the specified as (full pathname)
911 --with-stabs arrange to use stabs instead of host debug format
912 --with-dwarf2 force the default debug format to be DWARF 2
913 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
914 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
915 --with-gc={page,zone} choose the garbage collection mechanism to use
916 with the compiler
917 --with-system-zlib use installed libz
918 --with-slibdir=DIR shared libraries in DIR LIBDIR
920 Some influential environment variables:
921 CC C compiler command
922 CFLAGS C compiler flags
923 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
924 nonstandard directory <lib dir>
925 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
926 headers in a nonstandard directory <include dir>
927 CPP C preprocessor
929 Use these variables to override the choices made by `configure' or to help
930 it to find libraries and programs with nonstandard names/locations.
932 _ACEOF
935 if test "$ac_init_help" = "recursive"; then
936 # If there are subdirs, report their specific --help.
937 ac_popdir=`pwd`
938 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
939 test -d $ac_dir || continue
940 ac_builddir=.
942 if test "$ac_dir" != .; then
943 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
944 # A "../" for each directory in $ac_dir_suffix.
945 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
946 else
947 ac_dir_suffix= ac_top_builddir=
950 case $srcdir in
951 .) # No --srcdir option. We are building in place.
952 ac_srcdir=.
953 if test -z "$ac_top_builddir"; then
954 ac_top_srcdir=.
955 else
956 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
957 fi ;;
958 [\\/]* | ?:[\\/]* ) # Absolute path.
959 ac_srcdir=$srcdir$ac_dir_suffix;
960 ac_top_srcdir=$srcdir ;;
961 *) # Relative path.
962 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
963 ac_top_srcdir=$ac_top_builddir$srcdir ;;
964 esac
966 # Do not use `cd foo && pwd` to compute absolute paths, because
967 # the directories may not exist.
968 case `pwd` in
969 .) ac_abs_builddir="$ac_dir";;
971 case "$ac_dir" in
972 .) ac_abs_builddir=`pwd`;;
973 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
974 *) ac_abs_builddir=`pwd`/"$ac_dir";;
975 esac;;
976 esac
977 case $ac_abs_builddir in
978 .) ac_abs_top_builddir=${ac_top_builddir}.;;
980 case ${ac_top_builddir}. in
981 .) ac_abs_top_builddir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
983 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
984 esac;;
985 esac
986 case $ac_abs_builddir in
987 .) ac_abs_srcdir=$ac_srcdir;;
989 case $ac_srcdir in
990 .) ac_abs_srcdir=$ac_abs_builddir;;
991 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
992 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
993 esac;;
994 esac
995 case $ac_abs_builddir in
996 .) ac_abs_top_srcdir=$ac_top_srcdir;;
998 case $ac_top_srcdir in
999 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1001 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1002 esac;;
1003 esac
1005 cd $ac_dir
1006 # Check for guested configure; otherwise get Cygnus style configure.
1007 if test -f $ac_srcdir/configure.gnu; then
1008 echo
1009 $SHELL $ac_srcdir/configure.gnu --help=recursive
1010 elif test -f $ac_srcdir/configure; then
1011 echo
1012 $SHELL $ac_srcdir/configure --help=recursive
1013 elif test -f $ac_srcdir/configure.ac ||
1014 test -f $ac_srcdir/configure.in; then
1015 echo
1016 $ac_configure --help
1017 else
1018 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1020 cd "$ac_popdir"
1021 done
1024 test -n "$ac_init_help" && exit 0
1025 if $ac_init_version; then
1026 cat <<\_ACEOF
1028 Copyright (C) 2003 Free Software Foundation, Inc.
1029 This configure script is free software; the Free Software Foundation
1030 gives unlimited permission to copy, distribute and modify it.
1031 _ACEOF
1032 exit 0
1034 exec 5>config.log
1035 cat >&5 <<_ACEOF
1036 This file contains any messages produced by compilers while
1037 running configure, to aid debugging if configure makes a mistake.
1039 It was created by $as_me, which was
1040 generated by GNU Autoconf 2.59. Invocation command line was
1042 $ $0 $@
1044 _ACEOF
1046 cat <<_ASUNAME
1047 ## --------- ##
1048 ## Platform. ##
1049 ## --------- ##
1051 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1052 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1053 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1054 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1055 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1057 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1058 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1060 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1061 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1062 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1063 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1064 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1065 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1066 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1068 _ASUNAME
1070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1071 for as_dir in $PATH
1073 IFS=$as_save_IFS
1074 test -z "$as_dir" && as_dir=.
1075 echo "PATH: $as_dir"
1076 done
1078 } >&5
1080 cat >&5 <<_ACEOF
1083 ## ----------- ##
1084 ## Core tests. ##
1085 ## ----------- ##
1087 _ACEOF
1090 # Keep a trace of the command line.
1091 # Strip out --no-create and --no-recursion so they do not pile up.
1092 # Strip out --silent because we don't want to record it for future runs.
1093 # Also quote any args containing shell meta-characters.
1094 # Make two passes to allow for proper duplicate-argument suppression.
1095 ac_configure_args=
1096 ac_configure_args0=
1097 ac_configure_args1=
1098 ac_sep=
1099 ac_must_keep_next=false
1100 for ac_pass in 1 2
1102 for ac_arg
1104 case $ac_arg in
1105 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 continue ;;
1109 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1110 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1111 esac
1112 case $ac_pass in
1113 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1115 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1116 if test $ac_must_keep_next = true; then
1117 ac_must_keep_next=false # Got value, back to normal.
1118 else
1119 case $ac_arg in
1120 *=* | --config-cache | -C | -disable-* | --disable-* \
1121 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1122 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1123 | -with-* | --with-* | -without-* | --without-* | --x)
1124 case "$ac_configure_args0 " in
1125 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1126 esac
1128 -* ) ac_must_keep_next=true ;;
1129 esac
1131 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1132 # Get rid of the leading space.
1133 ac_sep=" "
1135 esac
1136 done
1137 done
1138 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1139 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1141 # When interrupted or exit'd, cleanup temporary files, and complete
1142 # config.log. We remove comments because anyway the quotes in there
1143 # would cause problems or look ugly.
1144 # WARNING: Be sure not to use single quotes in there, as some shells,
1145 # such as our DU 5.0 friend, will then `close' the trap.
1146 trap 'exit_status=$?
1147 # Save into config.log some information that might help in debugging.
1149 echo
1151 cat <<\_ASBOX
1152 ## ---------------- ##
1153 ## Cache variables. ##
1154 ## ---------------- ##
1155 _ASBOX
1156 echo
1157 # The following way of writing the cache mishandles newlines in values,
1159 (set) 2>&1 |
1160 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1161 *ac_space=\ *)
1162 sed -n \
1163 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1167 sed -n \
1168 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1170 esac;
1172 echo
1174 cat <<\_ASBOX
1175 ## ----------------- ##
1176 ## Output variables. ##
1177 ## ----------------- ##
1178 _ASBOX
1179 echo
1180 for ac_var in $ac_subst_vars
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1184 done | sort
1185 echo
1187 if test -n "$ac_subst_files"; then
1188 cat <<\_ASBOX
1189 ## ------------- ##
1190 ## Output files. ##
1191 ## ------------- ##
1192 _ASBOX
1193 echo
1194 for ac_var in $ac_subst_files
1196 eval ac_val=$`echo $ac_var`
1197 echo "$ac_var='"'"'$ac_val'"'"'"
1198 done | sort
1199 echo
1202 if test -s confdefs.h; then
1203 cat <<\_ASBOX
1204 ## ----------- ##
1205 ## confdefs.h. ##
1206 ## ----------- ##
1207 _ASBOX
1208 echo
1209 sed "/^$/d" confdefs.h | sort
1210 echo
1212 test "$ac_signal" != 0 &&
1213 echo "$as_me: caught signal $ac_signal"
1214 echo "$as_me: exit $exit_status"
1215 } >&5
1216 rm -f core *.core &&
1217 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1218 exit $exit_status
1220 for ac_signal in 1 2 13 15; do
1221 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1222 done
1223 ac_signal=0
1225 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1226 rm -rf conftest* confdefs.h
1227 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1228 echo >confdefs.h
1230 # Predefined preprocessor variables.
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_NAME "$PACKAGE_NAME"
1234 _ACEOF
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1239 _ACEOF
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1244 _ACEOF
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_STRING "$PACKAGE_STRING"
1249 _ACEOF
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1254 _ACEOF
1257 # Let the site file select an alternate cache file if it wants to.
1258 # Prefer explicitly selected file to automatically selected ones.
1259 if test -z "$CONFIG_SITE"; then
1260 if test "x$prefix" != xNONE; then
1261 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1262 else
1263 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1266 for ac_site_file in $CONFIG_SITE; do
1267 if test -r "$ac_site_file"; then
1268 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1269 echo "$as_me: loading site script $ac_site_file" >&6;}
1270 sed 's/^/| /' "$ac_site_file" >&5
1271 . "$ac_site_file"
1273 done
1275 if test -r "$cache_file"; then
1276 # Some versions of bash will fail to source /dev/null (special
1277 # files actually), so we avoid doing that.
1278 if test -f "$cache_file"; then
1279 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1280 echo "$as_me: loading cache $cache_file" >&6;}
1281 case $cache_file in
1282 [\\/]* | ?:[\\/]* ) . $cache_file;;
1283 *) . ./$cache_file;;
1284 esac
1286 else
1287 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1288 echo "$as_me: creating cache $cache_file" >&6;}
1289 >$cache_file
1292 # Check that the precious variables saved in the cache have kept the same
1293 # value.
1294 ac_cache_corrupted=false
1295 for ac_var in `(set) 2>&1 |
1296 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1297 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1298 eval ac_new_set=\$ac_env_${ac_var}_set
1299 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1300 eval ac_new_val="\$ac_env_${ac_var}_value"
1301 case $ac_old_set,$ac_new_set in
1302 set,)
1303 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1304 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1305 ac_cache_corrupted=: ;;
1306 ,set)
1307 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1308 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1309 ac_cache_corrupted=: ;;
1310 ,);;
1312 if test "x$ac_old_val" != "x$ac_new_val"; then
1313 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1314 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1315 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1316 echo "$as_me: former value: $ac_old_val" >&2;}
1317 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1318 echo "$as_me: current value: $ac_new_val" >&2;}
1319 ac_cache_corrupted=:
1320 fi;;
1321 esac
1322 # Pass precious variables to config.status.
1323 if test "$ac_new_set" = set; then
1324 case $ac_new_val in
1325 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1327 *) ac_arg=$ac_var=$ac_new_val ;;
1328 esac
1329 case " $ac_configure_args " in
1330 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1331 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1332 esac
1334 done
1335 if $ac_cache_corrupted; then
1336 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1337 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1338 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1339 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1340 { (exit 1); exit 1; }; }
1343 ac_ext=c
1344 ac_cpp='$CPP $CPPFLAGS'
1345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1371 # Determine the host, build, and target systems
1372 ac_aux_dir=
1373 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1374 if test -f $ac_dir/install-sh; then
1375 ac_aux_dir=$ac_dir
1376 ac_install_sh="$ac_aux_dir/install-sh -c"
1377 break
1378 elif test -f $ac_dir/install.sh; then
1379 ac_aux_dir=$ac_dir
1380 ac_install_sh="$ac_aux_dir/install.sh -c"
1381 break
1382 elif test -f $ac_dir/shtool; then
1383 ac_aux_dir=$ac_dir
1384 ac_install_sh="$ac_aux_dir/shtool install -c"
1385 break
1387 done
1388 if test -z "$ac_aux_dir"; then
1389 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1390 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1391 { (exit 1); exit 1; }; }
1393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1395 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1397 # Make sure we can run config.sub.
1398 $ac_config_sub sun4 >/dev/null 2>&1 ||
1399 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1400 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1401 { (exit 1); exit 1; }; }
1403 echo "$as_me:$LINENO: checking build system type" >&5
1404 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1405 if test "${ac_cv_build+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408 ac_cv_build_alias=$build_alias
1409 test -z "$ac_cv_build_alias" &&
1410 ac_cv_build_alias=`$ac_config_guess`
1411 test -z "$ac_cv_build_alias" &&
1412 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1413 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1414 { (exit 1); exit 1; }; }
1415 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1417 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1422 echo "${ECHO_T}$ac_cv_build" >&6
1423 build=$ac_cv_build
1424 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 echo "$as_me:$LINENO: checking host system type" >&5
1430 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1431 if test "${ac_cv_host+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 else
1434 ac_cv_host_alias=$host_alias
1435 test -z "$ac_cv_host_alias" &&
1436 ac_cv_host_alias=$ac_cv_build_alias
1437 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1438 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1439 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1440 { (exit 1); exit 1; }; }
1443 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1444 echo "${ECHO_T}$ac_cv_host" >&6
1445 host=$ac_cv_host
1446 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1447 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1448 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451 echo "$as_me:$LINENO: checking target system type" >&5
1452 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1453 if test "${ac_cv_target+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456 ac_cv_target_alias=$target_alias
1457 test "x$ac_cv_target_alias" = "x" &&
1458 ac_cv_target_alias=$ac_cv_host_alias
1459 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1460 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1461 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1462 { (exit 1); exit 1; }; }
1465 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1466 echo "${ECHO_T}$ac_cv_target" >&6
1467 target=$ac_cv_target
1468 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1469 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1470 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1473 # The aliases save the names the user supplied, while $host etc.
1474 # will get canonicalized.
1475 test -n "$target_alias" &&
1476 test "$program_prefix$program_suffix$program_transform_name" = \
1477 NONENONEs,x,x, &&
1478 program_prefix=${target_alias}-
1480 # Determine the noncanonical target name, for directory use.
1481 case ${build_alias} in
1482 "") build_noncanonical=${build} ;;
1483 *) build_noncanonical=${build_alias} ;;
1484 esac
1486 case ${host_alias} in
1487 "") host_noncanonical=${build_noncanonical} ;;
1488 *) host_noncanonical=${host_alias} ;;
1489 esac
1491 case ${target_alias} in
1492 "") target_noncanonical=${host_noncanonical} ;;
1493 *) target_noncanonical=${target_alias} ;;
1494 esac
1497 # Determine the target- and build-specific subdirectories
1498 # Prefix 'build-' so this never conflicts with target_subdir.
1499 build_subdir="build-${build_noncanonical}"
1500 # Not really a subdirectory, but here for completeness.
1501 host_subdir=.
1502 # No prefix.
1503 target_subdir=${target_noncanonical}
1506 # Set program_transform_name
1507 test "$program_prefix" != NONE &&
1508 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1509 # Use a double $ so make ignores it.
1510 test "$program_suffix" != NONE &&
1511 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1512 # Double any \ or $. echo might interpret backslashes.
1513 # By default was `s,x,x', remove it if useless.
1514 cat <<\_ACEOF >conftest.sed
1515 s/[\\$]/&&/g;s/;s,x,x,$//
1516 _ACEOF
1517 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1518 rm conftest.sed
1521 # Check for bogus environment variables.
1522 # Test if LIBRARY_PATH contains the notation for the current directory
1523 # since this would lead to problems installing/building glibc.
1524 # LIBRARY_PATH contains the current directory if one of the following
1525 # is true:
1526 # - one of the terminals (":" and ";") is the first or last sign
1527 # - two terminals occur directly after each other
1528 # - the path contains an element with a dot in it
1529 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1530 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1531 case ${LIBRARY_PATH} in
1532 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1533 library_path_setting="contains current directory"
1536 library_path_setting="ok"
1538 esac
1539 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1540 echo "${ECHO_T}$library_path_setting" >&6
1541 if test "$library_path_setting" != "ok"; then
1542 { { echo "$as_me:$LINENO: error:
1543 *** LIBRARY_PATH shouldn't contain the current directory when
1544 *** building gcc. Please change the environment variable
1545 *** and run configure again." >&5
1546 echo "$as_me: error:
1547 *** LIBRARY_PATH shouldn't contain the current directory when
1548 *** building gcc. Please change the environment variable
1549 *** and run configure again." >&2;}
1550 { (exit 1); exit 1; }; }
1553 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1554 # since this would lead to problems installing/building glibc.
1555 # GCC_EXEC_PREFIX contains the current directory if one of the following
1556 # is true:
1557 # - one of the terminals (":" and ";") is the first or last sign
1558 # - two terminals occur directly after each other
1559 # - the path contains an element with a dot in it
1560 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1561 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1562 case ${GCC_EXEC_PREFIX} in
1563 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1564 gcc_exec_prefix_setting="contains current directory"
1567 gcc_exec_prefix_setting="ok"
1569 esac
1570 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1571 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1572 if test "$gcc_exec_prefix_setting" != "ok"; then
1573 { { echo "$as_me:$LINENO: error:
1574 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1575 *** building gcc. Please change the environment variable
1576 *** and run configure again." >&5
1577 echo "$as_me: error:
1578 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&2;}
1581 { (exit 1); exit 1; }; }
1584 # -----------
1585 # Directories
1586 # -----------
1588 # Specify the local prefix
1589 local_prefix=
1591 # Check whether --with-local-prefix or --without-local-prefix was given.
1592 if test "${with_local_prefix+set}" = set; then
1593 withval="$with_local_prefix"
1594 case "${withval}" in
1595 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1596 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1597 { (exit 1); exit 1; }; } ;;
1598 no) ;;
1599 *) local_prefix=$with_local_prefix ;;
1600 esac
1603 # Default local prefix if it is empty
1604 if test x$local_prefix = x; then
1605 local_prefix=/usr/local
1608 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1609 # passed in by the toplevel make and thus we'd get different behavior
1610 # depending on where we built the sources.
1611 gcc_gxx_include_dir=
1612 # Specify the g++ header file directory
1614 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1615 if test "${with_gxx_include_dir+set}" = set; then
1616 withval="$with_gxx_include_dir"
1617 case "${withval}" in
1618 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1619 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1620 { (exit 1); exit 1; }; } ;;
1621 no) ;;
1622 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1623 esac
1626 if test x${gcc_gxx_include_dir} = x; then
1627 if test x${enable_version_specific_runtime_libs} = xyes; then
1628 gcc_gxx_include_dir='${libsubdir}/include/c++'
1629 else
1630 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1631 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1636 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1637 if test "${with_cpp_install_dir+set}" = set; then
1638 withval="$with_cpp_install_dir"
1639 if test x$withval = xyes; then
1640 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1641 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1642 { (exit 1); exit 1; }; }
1643 elif test x$withval != xno; then
1644 cpp_install_dir=$withval
1648 # We would like to our source tree to be readonly. However when releases or
1649 # pre-releases are generated, the flex/bison generated files as well as the
1650 # various formats of manuals need to be included along with the rest of the
1651 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1652 # just that.
1654 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1655 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1656 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1657 if test "${enable_generated_files_in_srcdir+set}" = set; then
1658 enableval="$enable_generated_files_in_srcdir"
1659 generated_files_in_srcdir=$enableval
1660 else
1661 generated_files_in_srcdir=no
1664 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1665 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1667 if test "$generated_files_in_srcdir" = "yes"; then
1668 GENINSRC=''
1669 else
1670 GENINSRC='#'
1674 # -------------------
1675 # Find default linker
1676 # -------------------
1678 # With GNU ld
1680 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1681 if test "${with_gnu_ld+set}" = set; then
1682 withval="$with_gnu_ld"
1683 gnu_ld_flag="$with_gnu_ld"
1684 else
1685 gnu_ld_flag=no
1688 # With pre-defined ld
1690 # Check whether --with-ld or --without-ld was given.
1691 if test "${with_ld+set}" = set; then
1692 withval="$with_ld"
1693 DEFAULT_LINKER="$with_ld"
1695 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1696 if test ! -x "$DEFAULT_LINKER"; then
1697 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1698 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1699 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1700 gnu_ld_flag=yes
1703 cat >>confdefs.h <<_ACEOF
1704 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1705 _ACEOF
1709 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1710 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1711 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1712 if test x"$gnu_ld_flag" = x"no"; then
1713 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1714 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1715 else
1716 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1717 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1724 # ----------------------
1725 # Find default assembler
1726 # ----------------------
1728 # With GNU as
1730 # Check whether --with-gnu-as or --without-gnu-as was given.
1731 if test "${with_gnu_as+set}" = set; then
1732 withval="$with_gnu_as"
1733 gas_flag="$with_gnu_as"
1734 else
1735 gas_flag=no
1739 # Check whether --with-as or --without-as was given.
1740 if test "${with_as+set}" = set; then
1741 withval="$with_as"
1742 DEFAULT_ASSEMBLER="$with_as"
1744 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1745 if test ! -x "$DEFAULT_ASSEMBLER"; then
1746 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1747 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1748 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1749 gas_flag=yes
1752 cat >>confdefs.h <<_ACEOF
1753 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1754 _ACEOF
1758 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1759 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1760 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1761 if test x"$gas_flag" = x"no"; then
1762 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1763 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1764 else
1765 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1766 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1768 else
1769 echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1773 # ---------------
1774 # Find C compiler
1775 # ---------------
1777 # If a non-executable a.out is present (e.g. created by GNU as above even if
1778 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1779 # file, even when creating an executable, so an execution test fails.
1780 # Remove possible default executable files to avoid this.
1782 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1783 # Autoconf includes it.
1784 rm -f a.out a.exe b.out
1786 # Find the native compiler
1787 ac_ext=c
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1792 if test -n "$ac_tool_prefix"; then
1793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 else
1803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 for as_dir in $PATH
1806 IFS=$as_save_IFS
1807 test -z "$as_dir" && as_dir=.
1808 for ac_exec_ext in '' $ac_executable_extensions; do
1809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 break 2
1814 done
1815 done
1819 CC=$ac_cv_prog_CC
1820 if test -n "$CC"; then
1821 echo "$as_me:$LINENO: result: $CC" >&5
1822 echo "${ECHO_T}$CC" >&6
1823 else
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1829 if test -z "$ac_cv_prog_CC"; then
1830 ac_ct_CC=$CC
1831 # Extract the first word of "gcc", so it can be a program name with args.
1832 set dummy gcc; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 if test -n "$ac_ct_CC"; then
1839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_ac_ct_CC="gcc"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1852 done
1853 done
1857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1858 if test -n "$ac_ct_CC"; then
1859 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1860 echo "${ECHO_T}$ac_ct_CC" >&6
1861 else
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 CC=$ac_ct_CC
1867 else
1868 CC="$ac_cv_prog_CC"
1871 if test -z "$CC"; then
1872 if test -n "$ac_tool_prefix"; then
1873 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}cc; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_CC="${ac_tool_prefix}cc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1894 done
1895 done
1899 CC=$ac_cv_prog_CC
1900 if test -n "$CC"; then
1901 echo "$as_me:$LINENO: result: $CC" >&5
1902 echo "${ECHO_T}$CC" >&6
1903 else
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1909 if test -z "$ac_cv_prog_CC"; then
1910 ac_ct_CC=$CC
1911 # Extract the first word of "cc", so it can be a program name with args.
1912 set dummy cc; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 if test -n "$ac_ct_CC"; then
1919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1924 IFS=$as_save_IFS
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_ac_ct_CC="cc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 break 2
1932 done
1933 done
1937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1938 if test -n "$ac_ct_CC"; then
1939 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1940 echo "${ECHO_T}$ac_ct_CC" >&6
1941 else
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1946 CC=$ac_ct_CC
1947 else
1948 CC="$ac_cv_prog_CC"
1952 if test -z "$CC"; then
1953 # Extract the first word of "cc", so it can be a program name with args.
1954 set dummy cc; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 else
1963 ac_prog_rejected=no
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1972 ac_prog_rejected=yes
1973 continue
1975 ac_cv_prog_CC="cc"
1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 break 2
1979 done
1980 done
1982 if test $ac_prog_rejected = yes; then
1983 # We found a bogon in the path, so make sure we never use it.
1984 set dummy $ac_cv_prog_CC
1985 shift
1986 if test $# != 0; then
1987 # We chose a different compiler from the bogus one.
1988 # However, it has the same basename, so the bogon will be chosen
1989 # first if we set CC to just the basename; use the full file name.
1990 shift
1991 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1996 CC=$ac_cv_prog_CC
1997 if test -n "$CC"; then
1998 echo "$as_me:$LINENO: result: $CC" >&5
1999 echo "${ECHO_T}$CC" >&6
2000 else
2001 echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2006 if test -z "$CC"; then
2007 if test -n "$ac_tool_prefix"; then
2008 for ac_prog in cl
2010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 break 2
2031 done
2032 done
2036 CC=$ac_cv_prog_CC
2037 if test -n "$CC"; then
2038 echo "$as_me:$LINENO: result: $CC" >&5
2039 echo "${ECHO_T}$CC" >&6
2040 else
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2045 test -n "$CC" && break
2046 done
2048 if test -z "$CC"; then
2049 ac_ct_CC=$CC
2050 for ac_prog in cl
2052 # Extract the first word of "$ac_prog", so it can be a program name with args.
2053 set dummy $ac_prog; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059 if test -n "$ac_ct_CC"; then
2060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069 ac_cv_prog_ac_ct_CC="$ac_prog"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 break 2
2073 done
2074 done
2078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079 if test -n "$ac_ct_CC"; then
2080 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081 echo "${ECHO_T}$ac_ct_CC" >&6
2082 else
2083 echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2087 test -n "$ac_ct_CC" && break
2088 done
2090 CC=$ac_ct_CC
2096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&5
2098 echo "$as_me: error: no acceptable C compiler found in \$PATH
2099 See \`config.log' for more details." >&2;}
2100 { (exit 1); exit 1; }; }
2102 # Provide some information about the compiler.
2103 echo "$as_me:$LINENO:" \
2104 "checking for C compiler version" >&5
2105 ac_compiler=`set X $ac_compile; echo $2`
2106 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2107 (eval $ac_compiler --version </dev/null >&5) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
2111 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2112 (eval $ac_compiler -v </dev/null >&5) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2117 (eval $ac_compiler -V </dev/null >&5) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2122 cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h. */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2130 main ()
2134 return 0;
2136 _ACEOF
2137 ac_clean_files_save=$ac_clean_files
2138 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2139 # Try to create an executable without -o first, disregard a.out.
2140 # It will help us diagnose broken compilers, and finding out an intuition
2141 # of exeext.
2142 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2143 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2144 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2145 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2146 (eval $ac_link_default) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 # Find the output, starting from the most likely. This scheme is
2151 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2152 # resort.
2154 # Be careful to initialize this variable, since it used to be cached.
2155 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2156 ac_cv_exeext=
2157 # b.out is created by i960 compilers.
2158 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2160 test -f "$ac_file" || continue
2161 case $ac_file in
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2164 conftest.$ac_ext )
2165 # This is the source file.
2167 [ab].out )
2168 # We found the default executable, but exeext='' is most
2169 # certainly right.
2170 break;;
2171 *.* )
2172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 # FIXME: I believe we export ac_cv_exeext for Libtool,
2174 # but it would be cool to find out if it's true. Does anybody
2175 # maintain Libtool? --akim.
2176 export ac_cv_exeext
2177 break;;
2179 break;;
2180 esac
2181 done
2182 else
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: C compiler cannot create executables
2189 See \`config.log' for more details." >&2;}
2190 { (exit 77); exit 77; }; }
2193 ac_exeext=$ac_cv_exeext
2194 echo "$as_me:$LINENO: result: $ac_file" >&5
2195 echo "${ECHO_T}$ac_file" >&6
2197 # Check the compiler produces executables we can run. If not, either
2198 # the compiler is broken, or we cross compile.
2199 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2200 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2201 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2202 # If not cross compiling, check that we can run a simple program.
2203 if test "$cross_compiling" != yes; then
2204 if { ac_try='./$ac_file'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2210 cross_compiling=no
2211 else
2212 if test "$cross_compiling" = maybe; then
2213 cross_compiling=yes
2214 else
2215 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2216 If you meant to cross compile, use \`--host'.
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: cannot run C compiled programs.
2219 If you meant to cross compile, use \`--host'.
2220 See \`config.log' for more details." >&2;}
2221 { (exit 1); exit 1; }; }
2225 echo "$as_me:$LINENO: result: yes" >&5
2226 echo "${ECHO_T}yes" >&6
2228 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2229 ac_clean_files=$ac_clean_files_save
2230 # Check the compiler produces executables we can run. If not, either
2231 # the compiler is broken, or we cross compile.
2232 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2233 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2234 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2235 echo "${ECHO_T}$cross_compiling" >&6
2237 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2238 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2240 (eval $ac_link) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; then
2244 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2245 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2246 # work properly (i.e., refer to `conftest.exe'), while it won't with
2247 # `rm'.
2248 for ac_file in conftest.exe conftest conftest.*; do
2249 test -f "$ac_file" || continue
2250 case $ac_file in
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2252 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253 export ac_cv_exeext
2254 break;;
2255 * ) break;;
2256 esac
2257 done
2258 else
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2262 See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2266 rm -f conftest$ac_cv_exeext
2267 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2268 echo "${ECHO_T}$ac_cv_exeext" >&6
2270 rm -f conftest.$ac_ext
2271 EXEEXT=$ac_cv_exeext
2272 ac_exeext=$EXEEXT
2273 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2274 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2275 if test "${ac_cv_objext+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h. */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2286 main ()
2290 return 0;
2292 _ACEOF
2293 rm -f conftest.o conftest.obj
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
2299 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2300 case $ac_file in
2301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2302 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2303 break;;
2304 esac
2305 done
2306 else
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2310 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2313 See \`config.log' for more details." >&2;}
2314 { (exit 1); exit 1; }; }
2317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2319 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2320 echo "${ECHO_T}$ac_cv_objext" >&6
2321 OBJEXT=$ac_cv_objext
2322 ac_objext=$OBJEXT
2323 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 cat >conftest.$ac_ext <<_ACEOF
2329 /* confdefs.h. */
2330 _ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2336 main ()
2338 #ifndef __GNUC__
2339 choke me
2340 #endif
2343 return 0;
2345 _ACEOF
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_compiler_gnu=yes
2368 else
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2372 ac_compiler_gnu=no
2374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2378 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2379 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2380 GCC=`test $ac_compiler_gnu = yes && echo yes`
2381 ac_test_CFLAGS=${CFLAGS+set}
2382 ac_save_CFLAGS=$CFLAGS
2383 CFLAGS="-g"
2384 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2385 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2386 if test "${ac_cv_prog_cc_g+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389 cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h. */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2397 main ()
2401 return 0;
2403 _ACEOF
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>conftest.er1
2407 ac_status=$?
2408 grep -v '^ *+' conftest.er1 >conftest.err
2409 rm -f conftest.er1
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2425 ac_cv_prog_cc_g=yes
2426 else
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2430 ac_cv_prog_cc_g=no
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2434 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2435 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2436 if test "$ac_test_CFLAGS" = set; then
2437 CFLAGS=$ac_save_CFLAGS
2438 elif test $ac_cv_prog_cc_g = yes; then
2439 if test "$GCC" = yes; then
2440 CFLAGS="-g -O2"
2441 else
2442 CFLAGS="-g"
2444 else
2445 if test "$GCC" = yes; then
2446 CFLAGS="-O2"
2447 else
2448 CFLAGS=
2451 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2452 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2453 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456 ac_cv_prog_cc_stdc=no
2457 ac_save_CC=$CC
2458 cat >conftest.$ac_ext <<_ACEOF
2459 /* confdefs.h. */
2460 _ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2464 #include <stdarg.h>
2465 #include <stdio.h>
2466 #include <sys/types.h>
2467 #include <sys/stat.h>
2468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2469 struct buf { int x; };
2470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2471 static char *e (p, i)
2472 char **p;
2473 int i;
2475 return p[i];
2477 static char *f (char * (*g) (char **, int), char **p, ...)
2479 char *s;
2480 va_list v;
2481 va_start (v,p);
2482 s = g (p, va_arg (v,int));
2483 va_end (v);
2484 return s;
2487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2488 function prototypes and stuff, but not '\xHH' hex character constants.
2489 These don't provoke an error unfortunately, instead are silently treated
2490 as 'x'. The following induces an error, until -std1 is added to get
2491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2492 array size at least. It's necessary to write '\x00'==0 to get something
2493 that's true only with -std1. */
2494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2496 int test (int i, double x);
2497 struct s1 {int (*f) (int a);};
2498 struct s2 {int (*f) (double a);};
2499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2500 int argc;
2501 char **argv;
2503 main ()
2505 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2507 return 0;
2509 _ACEOF
2510 # Don't try gcc -ansi; that turns off useful extensions and
2511 # breaks some systems' header files.
2512 # AIX -qlanglvl=ansi
2513 # Ultrix and OSF/1 -std1
2514 # HP-UX 10.20 and later -Ae
2515 # HP-UX older versions -Aa -D_HPUX_SOURCE
2516 # SVR4 -Xc -D__EXTENSIONS__
2517 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2519 CC="$ac_save_CC $ac_arg"
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2523 ac_status=$?
2524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 ac_cv_prog_cc_stdc=$ac_arg
2542 break
2543 else
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2548 rm -f conftest.err conftest.$ac_objext
2549 done
2550 rm -f conftest.$ac_ext conftest.$ac_objext
2551 CC=$ac_save_CC
2555 case "x$ac_cv_prog_cc_stdc" in
2556 x|xno)
2557 echo "$as_me:$LINENO: result: none needed" >&5
2558 echo "${ECHO_T}none needed" >&6 ;;
2560 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2561 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2562 CC="$CC $ac_cv_prog_cc_stdc" ;;
2563 esac
2565 # Some people use a C++ compiler to compile C. Since we use `exit',
2566 # in C++ we need to declare it. In case someone uses the same compiler
2567 # for both compiling C and C++ we need to have the C++ compiler decide
2568 # the declaration of exit, since it's the most demanding environment.
2569 cat >conftest.$ac_ext <<_ACEOF
2570 #ifndef __cplusplus
2571 choke me
2572 #endif
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2577 ac_status=$?
2578 grep -v '^ *+' conftest.er1 >conftest.err
2579 rm -f conftest.er1
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 for ac_declaration in \
2596 '' \
2597 'extern "C" void std::exit (int) throw (); using std::exit;' \
2598 'extern "C" void std::exit (int); using std::exit;' \
2599 'extern "C" void exit (int) throw ();' \
2600 'extern "C" void exit (int);' \
2601 'void exit (int);'
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2609 $ac_declaration
2610 #include <stdlib.h>
2612 main ()
2614 exit (42);
2616 return 0;
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2641 else
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2645 continue
2647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648 cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h. */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2654 $ac_declaration
2656 main ()
2658 exit (42);
2660 return 0;
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665 (eval $ac_compile) 2>conftest.er1
2666 ac_status=$?
2667 grep -v '^ *+' conftest.er1 >conftest.err
2668 rm -f conftest.er1
2669 cat conftest.err >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2684 break
2685 else
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691 done
2692 rm -f conftest*
2693 if test -n "$ac_declaration"; then
2694 echo '#ifdef __cplusplus' >>confdefs.h
2695 echo $ac_declaration >>confdefs.h
2696 echo '#endif' >>confdefs.h
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2711 if test "x$CC" != xcc; then
2712 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2713 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2714 else
2715 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2716 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2718 set dummy $CC; ac_cc=`echo $2 |
2719 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2720 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2731 main ()
2735 return 0;
2737 _ACEOF
2738 # Make sure it works both with $CC and with simple cc.
2739 # We do the test twice because some compilers refuse to overwrite an
2740 # existing .o file with -o, though they will create one.
2741 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2742 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 (eval $ac_try) 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); };
2752 then
2753 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2754 if test "x$CC" != xcc; then
2755 # Test first that cc exists at all.
2756 if { ac_try='cc -c conftest.$ac_ext >&5'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2763 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 (eval $ac_try) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); };
2773 then
2774 # cc works too.
2776 else
2777 # cc exists but doesn't like -o.
2778 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2782 else
2783 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2785 rm -f conftest*
2788 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2789 echo "$as_me:$LINENO: result: yes" >&5
2790 echo "${ECHO_T}yes" >&6
2791 else
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2795 cat >>confdefs.h <<\_ACEOF
2796 #define NO_MINUS_C_MINUS_O 1
2797 _ACEOF
2801 # autoconf is lame and doesn't give us any substitution variable for this.
2802 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2803 NO_MINUS_C_MINUS_O=yes
2804 else
2805 OUTPUT_OPTION='-o $@'
2810 # -------------------------
2811 # Check C compiler features
2812 # -------------------------
2814 ac_ext=c
2815 ac_cpp='$CPP $CPPFLAGS'
2816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2820 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2821 # On Suns, sometimes $CPP names a directory.
2822 if test -n "$CPP" && test -d "$CPP"; then
2823 CPP=
2825 if test -z "$CPP"; then
2826 if test "${ac_cv_prog_CPP+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829 # Double quotes because CPP needs to be expanded
2830 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2832 ac_preproc_ok=false
2833 for ac_c_preproc_warn_flag in '' yes
2835 # Use a header file that comes with gcc, so configuring glibc
2836 # with a fresh cross-compiler works.
2837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2838 # <limits.h> exists even on freestanding compilers.
2839 # On the NeXT, cc -E runs the code through the compiler's parser,
2840 # not just through cpp. "Syntax error" is here to catch this case.
2841 cat >conftest.$ac_ext <<_ACEOF
2842 /* confdefs.h. */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2847 #ifdef __STDC__
2848 # include <limits.h>
2849 #else
2850 # include <assert.h>
2851 #endif
2852 Syntax error
2853 _ACEOF
2854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2856 ac_status=$?
2857 grep -v '^ *+' conftest.er1 >conftest.err
2858 rm -f conftest.er1
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } >/dev/null; then
2862 if test -s conftest.err; then
2863 ac_cpp_err=$ac_c_preproc_warn_flag
2864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2865 else
2866 ac_cpp_err=
2868 else
2869 ac_cpp_err=yes
2871 if test -z "$ac_cpp_err"; then
2873 else
2874 echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2877 # Broken: fails on valid input.
2878 continue
2880 rm -f conftest.err conftest.$ac_ext
2882 # OK, works on sane cases. Now check whether non-existent headers
2883 # can be detected and how.
2884 cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h. */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2890 #include <ac_nonexistent.h>
2891 _ACEOF
2892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } >/dev/null; then
2900 if test -s conftest.err; then
2901 ac_cpp_err=$ac_c_preproc_warn_flag
2902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2903 else
2904 ac_cpp_err=
2906 else
2907 ac_cpp_err=yes
2909 if test -z "$ac_cpp_err"; then
2910 # Broken: success on invalid input.
2911 continue
2912 else
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 # Passes both tests.
2917 ac_preproc_ok=:
2918 break
2920 rm -f conftest.err conftest.$ac_ext
2922 done
2923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2924 rm -f conftest.err conftest.$ac_ext
2925 if $ac_preproc_ok; then
2926 break
2929 done
2930 ac_cv_prog_CPP=$CPP
2933 CPP=$ac_cv_prog_CPP
2934 else
2935 ac_cv_prog_CPP=$CPP
2937 echo "$as_me:$LINENO: result: $CPP" >&5
2938 echo "${ECHO_T}$CPP" >&6
2939 ac_preproc_ok=false
2940 for ac_c_preproc_warn_flag in '' yes
2942 # Use a header file that comes with gcc, so configuring glibc
2943 # with a fresh cross-compiler works.
2944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2945 # <limits.h> exists even on freestanding compilers.
2946 # On the NeXT, cc -E runs the code through the compiler's parser,
2947 # not just through cpp. "Syntax error" is here to catch this case.
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h. */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2954 #ifdef __STDC__
2955 # include <limits.h>
2956 #else
2957 # include <assert.h>
2958 #endif
2959 Syntax error
2960 _ACEOF
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev/null; then
2969 if test -s conftest.err; then
2970 ac_cpp_err=$ac_c_preproc_warn_flag
2971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2972 else
2973 ac_cpp_err=
2975 else
2976 ac_cpp_err=yes
2978 if test -z "$ac_cpp_err"; then
2980 else
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 # Broken: fails on valid input.
2985 continue
2987 rm -f conftest.err conftest.$ac_ext
2989 # OK, works on sane cases. Now check whether non-existent headers
2990 # can be detected and how.
2991 cat >conftest.$ac_ext <<_ACEOF
2992 /* confdefs.h. */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2997 #include <ac_nonexistent.h>
2998 _ACEOF
2999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } >/dev/null; then
3007 if test -s conftest.err; then
3008 ac_cpp_err=$ac_c_preproc_warn_flag
3009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3010 else
3011 ac_cpp_err=
3013 else
3014 ac_cpp_err=yes
3016 if test -z "$ac_cpp_err"; then
3017 # Broken: success on invalid input.
3018 continue
3019 else
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 # Passes both tests.
3024 ac_preproc_ok=:
3025 break
3027 rm -f conftest.err conftest.$ac_ext
3029 done
3030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3031 rm -f conftest.err conftest.$ac_ext
3032 if $ac_preproc_ok; then
3034 else
3035 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049 echo "$as_me:$LINENO: checking for inline" >&5
3050 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3051 if test "${ac_cv_c_inline+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054 ac_cv_c_inline=no
3055 for ac_kw in inline __inline__ __inline; do
3056 cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #ifndef __cplusplus
3063 typedef int foo_t;
3064 static $ac_kw foo_t static_foo () {return 0; }
3065 $ac_kw foo_t foo () {return 0; }
3066 #endif
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3071 (eval $ac_compile) 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 (eval $ac_try) 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 ac_cv_c_inline=$ac_kw; break
3091 else
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097 done
3100 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3101 echo "${ECHO_T}$ac_cv_c_inline" >&6
3104 case $ac_cv_c_inline in
3105 inline | yes) ;;
3107 case $ac_cv_c_inline in
3108 no) ac_val=;;
3109 *) ac_val=$ac_cv_c_inline;;
3110 esac
3111 cat >>confdefs.h <<_ACEOF
3112 #ifndef __cplusplus
3113 #define inline $ac_val
3114 #endif
3115 _ACEOF
3117 esac
3120 echo "$as_me:$LINENO: checking for long long int" >&5
3121 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3122 if test "${ac_cv_c_long_long+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3133 main ()
3135 long long int i;
3137 return 0;
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_c_long_long=yes
3162 else
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 ac_cv_c_long_long=no
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3170 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3171 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3172 if test $ac_cv_c_long_long = yes; then
3174 cat >>confdefs.h <<\_ACEOF
3175 #define HAVE_LONG_LONG 1
3176 _ACEOF
3179 echo "$as_me:$LINENO: checking for __int64" >&5
3180 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3181 if test "${ac_cv_c___int64+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3192 main ()
3194 __int64 i;
3196 return 0;
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 ac_cv_c___int64=yes
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 ac_cv_c___int64=no
3227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3230 echo "${ECHO_T}$ac_cv_c___int64" >&6
3231 if test $ac_cv_c___int64 = yes; then
3233 cat >>confdefs.h <<\_ACEOF
3234 #define HAVE___INT64 1
3235 _ACEOF
3239 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3240 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3241 if test "${gcc_cv_c__bool+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3252 main ()
3254 _Bool foo;
3256 return 0;
3258 _ACEOF
3259 rm -f conftest.$ac_objext
3260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3261 (eval $ac_compile) 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } &&
3268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 (eval $ac_try) 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 gcc_cv_c__bool=yes
3281 else
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 gcc_cv_c__bool=no
3287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3291 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3292 if test $gcc_cv_c__bool = yes; then
3294 cat >>confdefs.h <<\_ACEOF
3295 #define HAVE__BOOL 1
3296 _ACEOF
3301 # sizeof(char) is 1 by definition.
3302 echo "$as_me:$LINENO: checking size of void *" >&5
3303 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3304 if test "${ac_cv_sizeof_void_p+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3308 cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h. */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3314 #include "confdefs.h"
3315 #include <sys/types.h>
3319 main ()
3321 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3323 return 0;
3325 _ACEOF
3326 rm -f conftest.$ac_objext
3327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328 (eval $ac_compile) 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 (eval $ac_try) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3347 ac_cv_sizeof_void_p=$ac_size
3348 else
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3354 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3355 done
3359 if test x$ac_cv_sizeof_void_p = x ; then
3360 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3361 echo "$as_me: error: cannot determine a size for void *" >&2;}
3362 { (exit 1); exit 1; }; }
3364 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3365 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3367 cat >>confdefs.h <<_ACEOF
3368 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3369 _ACEOF
3372 echo "$as_me:$LINENO: checking size of short" >&5
3373 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3374 if test "${ac_cv_sizeof_short+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 #include "confdefs.h"
3385 #include <sys/types.h>
3389 main ()
3391 switch (0) case 0: case (sizeof (short) == $ac_size):;
3393 return 0;
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_cv_sizeof_short=$ac_size
3418 else
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424 if test x$ac_cv_sizeof_short != x ; then break; fi
3425 done
3429 if test x$ac_cv_sizeof_short = x ; then
3430 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3431 echo "$as_me: error: cannot determine a size for short" >&2;}
3432 { (exit 1); exit 1; }; }
3434 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3435 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3437 cat >>confdefs.h <<_ACEOF
3438 #define SIZEOF_SHORT $ac_cv_sizeof_short
3439 _ACEOF
3442 echo "$as_me:$LINENO: checking size of int" >&5
3443 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3444 if test "${ac_cv_sizeof_int+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #include "confdefs.h"
3455 #include <sys/types.h>
3459 main ()
3461 switch (0) case 0: case (sizeof (int) == $ac_size):;
3463 return 0;
3465 _ACEOF
3466 rm -f conftest.$ac_objext
3467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3468 (eval $ac_compile) 2>conftest.er1
3469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest.$ac_objext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_cv_sizeof_int=$ac_size
3488 else
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 if test x$ac_cv_sizeof_int != x ; then break; fi
3495 done
3499 if test x$ac_cv_sizeof_int = x ; then
3500 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3501 echo "$as_me: error: cannot determine a size for int" >&2;}
3502 { (exit 1); exit 1; }; }
3504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3505 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3507 cat >>confdefs.h <<_ACEOF
3508 #define SIZEOF_INT $ac_cv_sizeof_int
3509 _ACEOF
3512 echo "$as_me:$LINENO: checking size of long" >&5
3513 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3514 if test "${ac_cv_sizeof_long+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include "confdefs.h"
3525 #include <sys/types.h>
3529 main ()
3531 switch (0) case 0: case (sizeof (long) == $ac_size):;
3533 return 0;
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_cv_sizeof_long=$ac_size
3558 else
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564 if test x$ac_cv_sizeof_long != x ; then break; fi
3565 done
3569 if test x$ac_cv_sizeof_long = x ; then
3570 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3571 echo "$as_me: error: cannot determine a size for long" >&2;}
3572 { (exit 1); exit 1; }; }
3574 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3575 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3577 cat >>confdefs.h <<_ACEOF
3578 #define SIZEOF_LONG $ac_cv_sizeof_long
3579 _ACEOF
3582 if test $ac_cv_c_long_long = yes; then
3583 echo "$as_me:$LINENO: checking size of long long" >&5
3584 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3585 if test "${ac_cv_sizeof_long_long+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h. */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 #include "confdefs.h"
3596 #include <sys/types.h>
3600 main ()
3602 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3604 return 0;
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; } &&
3622 { ac_try='test -s conftest.$ac_objext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_sizeof_long_long=$ac_size
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3635 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3636 done
3640 if test x$ac_cv_sizeof_long_long = x ; then
3641 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3642 echo "$as_me: error: cannot determine a size for long long" >&2;}
3643 { (exit 1); exit 1; }; }
3645 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3646 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3648 cat >>confdefs.h <<_ACEOF
3649 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3650 _ACEOF
3654 if test $ac_cv_c___int64 = yes; then
3655 echo "$as_me:$LINENO: checking size of __int64" >&5
3656 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3657 if test "${ac_cv_sizeof___int64+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h. */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #include "confdefs.h"
3668 #include <sys/types.h>
3672 main ()
3674 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3676 return 0;
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_cv_sizeof___int64=$ac_size
3701 else
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3707 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3708 done
3712 if test x$ac_cv_sizeof___int64 = x ; then
3713 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3714 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3715 { (exit 1); exit 1; }; }
3717 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3718 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3720 cat >>confdefs.h <<_ACEOF
3721 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3722 _ACEOF
3727 # ---------------------
3728 # Warnings and checking
3729 # ---------------------
3731 # Check $CC warning features (if it's GCC).
3732 # We want to use -pedantic, but we don't want warnings about
3733 # * 'long long'
3734 # * variadic macros
3735 # So, we only use -pedantic if we can disable those warnings.
3737 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3738 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3739 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 save_CFLAGS="$CFLAGS"
3743 CFLAGS="-Wno-long-long"
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3751 _ACEOF
3752 rm -f conftest.$ac_objext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3754 (eval $ac_compile) 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } &&
3761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; } &&
3767 { ac_try='test -s conftest.$ac_objext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3773 ac_cv_prog_cc_w_no_long_long=yes
3774 else
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 ac_cv_prog_cc_w_no_long_long=no
3780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 CFLAGS="$save_CFLAGS"
3784 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3785 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3787 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3788 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3789 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 save_CFLAGS="$CFLAGS"
3793 CFLAGS="-Wno-variadic-macros"
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3801 _ACEOF
3802 rm -f conftest.$ac_objext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_prog_cc_w_no_variadic_macros=yes
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 ac_cv_prog_cc_w_no_variadic_macros=no
3830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3831 CFLAGS="$save_CFLAGS"
3834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3835 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3837 strict1_warn=
3838 if test $ac_cv_prog_cc_w_no_long_long = yes \
3839 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3840 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3844 # Add -Wold-style-definition if it's accepted
3845 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3846 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3847 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 save_CFLAGS="$CFLAGS"
3851 CFLAGS="-Wold-style-definition"
3852 cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h. */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3859 _ACEOF
3860 rm -f conftest.$ac_objext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862 (eval $ac_compile) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_prog_cc_w_old_style_definition=yes
3882 else
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_cv_prog_cc_w_old_style_definition=no
3888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 CFLAGS="$save_CFLAGS"
3892 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3893 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3894 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3895 strict1_warn="${strict1_warn} -Wold-style-definition"
3898 # Enable -Werror, period.
3899 # Check whether --enable-werror_always or --disable-werror_always was given.
3900 if test "${enable_werror_always+set}" = set; then
3901 enableval="$enable_werror_always"
3903 else
3904 enable_werror_always=no
3906 if test x${enable_werror_always} = xyes ; then
3907 strict1_warn="${strict1_warn} -Werror"
3908 WERROR=-Werror
3911 # If the native compiler is GCC, we can enable warnings even in stage1.
3912 # That's useful for people building cross-compilers, or just running a
3913 # quick `make'.
3914 warn_cflags=
3915 if test "x$GCC" = "xyes"; then
3916 warn_cflags='$(GCC_WARN_CFLAGS)'
3920 # Enable -Werror in bootstrap stage2 and later.
3921 # Change the default to "no" on release branches.
3922 # Check whether --enable-werror or --disable-werror was given.
3923 if test "${enable_werror+set}" = set; then
3924 enableval="$enable_werror"
3926 else
3927 enable_werror=yes
3929 if test x$enable_werror = xyes ; then
3930 WERROR=-Werror
3934 # Enable expensive internal checks
3935 # Check whether --enable-checking or --disable-checking was given.
3936 if test "${enable_checking+set}" = set; then
3937 enableval="$enable_checking"
3938 ac_checking=
3939 ac_tree_checking=
3940 ac_rtl_checking=
3941 ac_rtlflag_checking=
3942 ac_gc_checking=
3943 ac_gc_always_collect=
3944 ac_fold_checking=
3945 case "${enableval}" in
3946 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3947 ac_rtlflag_checking=1 ;;
3948 no) ;;
3949 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3950 set fnord $enableval; shift
3951 IFS="$ac_save_IFS"
3952 for check
3954 case $check in
3955 misc) ac_checking=1 ;;
3956 tree) ac_tree_checking=1 ;;
3957 rtlflag) ac_rtlflag_checking=1 ;;
3958 rtl) ac_rtl_checking=1 ;;
3959 gc) ac_gc_checking=1 ;;
3960 gcac) ac_gc_always_collect=1 ;;
3961 fold) ac_fold_checking=1 ;;
3962 valgrind) ac_checking_valgrind=1 ;;
3963 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3964 echo "$as_me: error: unknown check category $check" >&2;}
3965 { (exit 1); exit 1; }; } ;;
3966 esac
3967 done
3969 esac
3971 else
3972 # Enable some checks by default for development versions of GCC
3973 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3975 nocommon_flag=""
3976 if test x$ac_checking != x ; then
3978 cat >>confdefs.h <<\_ACEOF
3979 #define ENABLE_CHECKING 1
3980 _ACEOF
3982 nocommon_flag=-fno-common
3985 if test x$ac_tree_checking != x ; then
3987 cat >>confdefs.h <<\_ACEOF
3988 #define ENABLE_TREE_CHECKING 1
3989 _ACEOF
3992 if test x$ac_rtl_checking != x ; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define ENABLE_RTL_CHECKING 1
3996 _ACEOF
3999 if test x$ac_rtlflag_checking != x ; then
4001 cat >>confdefs.h <<\_ACEOF
4002 #define ENABLE_RTL_FLAG_CHECKING 1
4003 _ACEOF
4006 if test x$ac_gc_checking != x ; then
4008 cat >>confdefs.h <<\_ACEOF
4009 #define ENABLE_GC_CHECKING 1
4010 _ACEOF
4013 if test x$ac_gc_always_collect != x ; then
4015 cat >>confdefs.h <<\_ACEOF
4016 #define ENABLE_GC_ALWAYS_COLLECT 1
4017 _ACEOF
4020 if test x$ac_fold_checking != x ; then
4022 cat >>confdefs.h <<\_ACEOF
4023 #define ENABLE_FOLD_CHECKING 1
4024 _ACEOF
4027 valgrind_path_defines=
4028 valgrind_command=
4031 echo "$as_me:$LINENO: checking for egrep" >&5
4032 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4033 if test "${ac_cv_prog_egrep+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4037 then ac_cv_prog_egrep='grep -E'
4038 else ac_cv_prog_egrep='egrep'
4041 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4042 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4043 EGREP=$ac_cv_prog_egrep
4046 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4047 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4048 if test "${ac_cv_header_stdc+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4057 #include <stdlib.h>
4058 #include <stdarg.h>
4059 #include <string.h>
4060 #include <float.h>
4063 main ()
4067 return 0;
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>conftest.er1
4073 ac_status=$?
4074 grep -v '^ *+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 ac_cv_header_stdc=yes
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 ac_cv_header_stdc=no
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4100 if test $ac_cv_header_stdc = yes; then
4101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <string.h>
4110 _ACEOF
4111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4112 $EGREP "memchr" >/dev/null 2>&1; then
4114 else
4115 ac_cv_header_stdc=no
4117 rm -f conftest*
4121 if test $ac_cv_header_stdc = yes; then
4122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #include <stdlib.h>
4131 _ACEOF
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "free" >/dev/null 2>&1; then
4135 else
4136 ac_cv_header_stdc=no
4138 rm -f conftest*
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then
4146 else
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <ctype.h>
4154 #if ((' ' & 0x0FF) == 0x020)
4155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4157 #else
4158 # define ISLOWER(c) \
4159 (('a' <= (c) && (c) <= 'i') \
4160 || ('j' <= (c) && (c) <= 'r') \
4161 || ('s' <= (c) && (c) <= 'z'))
4162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4163 #endif
4165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4167 main ()
4169 int i;
4170 for (i = 0; i < 256; i++)
4171 if (XOR (islower (i), ISLOWER (i))
4172 || toupper (i) != TOUPPER (i))
4173 exit(2);
4174 exit (0);
4176 _ACEOF
4177 rm -f conftest$ac_exeext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4179 (eval $ac_link) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 (eval $ac_try) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4189 else
4190 echo "$as_me: program exited with status $ac_status" >&5
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 ( exit $ac_status )
4195 ac_cv_header_stdc=no
4197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4201 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4202 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4203 if test $ac_cv_header_stdc = yes; then
4205 cat >>confdefs.h <<\_ACEOF
4206 #define STDC_HEADERS 1
4207 _ACEOF
4211 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4221 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4222 inttypes.h stdint.h unistd.h
4224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4225 echo "$as_me:$LINENO: checking for $ac_header" >&5
4226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 $ac_includes_default
4238 #include <$ac_header>
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try='test -s conftest.$ac_objext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 (eval $ac_try) 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 eval "$as_ac_Header=yes"
4262 else
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 eval "$as_ac_Header=no"
4268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4273 cat >>confdefs.h <<_ACEOF
4274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4275 _ACEOF
4279 done
4282 if test "${ac_cv_header_valgrind_h+set}" = set; then
4283 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4284 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4285 if test "${ac_cv_header_valgrind_h+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4289 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4290 else
4291 # Is the header compilable?
4292 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4293 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4294 cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h. */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 $ac_includes_default
4301 #include <valgrind.h>
4302 _ACEOF
4303 rm -f conftest.$ac_objext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305 (eval $ac_compile) 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_header_compiler=yes
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 ac_header_compiler=no
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4333 echo "${ECHO_T}$ac_header_compiler" >&6
4335 # Is the header present?
4336 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4337 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #include <valgrind.h>
4345 _ACEOF
4346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } >/dev/null; then
4354 if test -s conftest.err; then
4355 ac_cpp_err=$ac_c_preproc_warn_flag
4356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4357 else
4358 ac_cpp_err=
4360 else
4361 ac_cpp_err=yes
4363 if test -z "$ac_cpp_err"; then
4364 ac_header_preproc=yes
4365 else
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 ac_header_preproc=no
4371 rm -f conftest.err conftest.$ac_ext
4372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4373 echo "${ECHO_T}$ac_header_preproc" >&6
4375 # So? What about this header?
4376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4377 yes:no: )
4378 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4379 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4380 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4381 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4382 ac_header_preproc=yes
4384 no:yes:* )
4385 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4386 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4387 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4388 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4389 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4390 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4391 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4392 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4393 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4394 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4396 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4398 cat <<\_ASBOX
4399 ## ------------------------------------------ ##
4400 ## Report this to the AC_PACKAGE_NAME lists. ##
4401 ## ------------------------------------------ ##
4402 _ASBOX
4404 sed "s/^/$as_me: WARNING: /" >&2
4406 esac
4407 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4408 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4409 if test "${ac_cv_header_valgrind_h+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 ac_cv_header_valgrind_h=$ac_header_preproc
4414 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4415 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4418 if test $ac_cv_header_valgrind_h = yes; then
4419 have_valgrind_h=yes
4420 else
4421 have_valgrind_h=no
4426 if test x$ac_checking_valgrind != x ; then
4427 # It is certainly possible that there's valgrind but no valgrind.h.
4428 # GCC relies on making annotations so we must have both.
4429 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4430 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 #include <valgrind/memcheck.h>
4438 #ifndef VALGRIND_DISCARD
4439 #error VALGRIND_DISCARD not defined
4440 #endif
4441 _ACEOF
4442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } >/dev/null; then
4450 if test -s conftest.err; then
4451 ac_cpp_err=$ac_c_preproc_warn_flag
4452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4453 else
4454 ac_cpp_err=
4456 else
4457 ac_cpp_err=yes
4459 if test -z "$ac_cpp_err"; then
4460 gcc_cv_header_valgrind_memcheck_h=yes
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 gcc_cv_header_valgrind_memcheck_h=no
4467 rm -f conftest.err conftest.$ac_ext
4468 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4469 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4470 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4471 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4472 cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h. */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 #include <memcheck.h>
4479 #ifndef VALGRIND_DISCARD
4480 #error VALGRIND_DISCARD not defined
4481 #endif
4482 _ACEOF
4483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } >/dev/null; then
4491 if test -s conftest.err; then
4492 ac_cpp_err=$ac_c_preproc_warn_flag
4493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4494 else
4495 ac_cpp_err=
4497 else
4498 ac_cpp_err=yes
4500 if test -z "$ac_cpp_err"; then
4501 gcc_cv_header_memcheck_h=yes
4502 else
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 gcc_cv_header_memcheck_h=no
4508 rm -f conftest.err conftest.$ac_ext
4509 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4510 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4512 # Prepare PATH_SEPARATOR.
4513 # The user is always right.
4514 if test "${PATH_SEPARATOR+set}" != set; then
4515 echo "#! /bin/sh" >conf$$.sh
4516 echo "exit 0" >>conf$$.sh
4517 chmod +x conf$$.sh
4518 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4519 PATH_SEPARATOR=';'
4520 else
4521 PATH_SEPARATOR=:
4523 rm -f conf$$.sh
4526 # Find out how to test for executable files. Don't use a zero-byte file,
4527 # as systems may use methods other than mode bits to determine executability.
4528 cat >conf$$.file <<_ASEOF
4529 #! /bin/sh
4530 exit 0
4531 _ASEOF
4532 chmod +x conf$$.file
4533 if test -x conf$$.file >/dev/null 2>&1; then
4534 ac_executable_p="test -x"
4535 else
4536 ac_executable_p="test -f"
4538 rm -f conf$$.file
4540 # Extract the first word of "valgrind", so it can be a program name with args.
4541 set dummy valgrind; ac_word=$2
4542 echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_path_valgrind_path+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 case "$valgrind_path" in
4548 [\\/]* | ?:[\\/]*)
4549 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4552 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4553 for ac_dir in $PATH; do
4554 IFS="$ac_save_IFS"
4555 test -z "$ac_dir" && ac_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4558 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4559 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4560 break 2
4563 done
4564 done
4565 IFS="$ac_save_IFS"
4567 esac
4569 valgrind_path="$ac_cv_path_valgrind_path"
4570 if test -n "$valgrind_path"; then
4571 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4572 echo "${ECHO_T}$valgrind_path" >&6
4573 else
4574 echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4578 if test "x$valgrind_path" = "x" \
4579 || (test $have_valgrind_h = no \
4580 && test $gcc_cv_header_memcheck_h = no \
4581 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4582 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4583 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4584 { (exit 1); exit 1; }; }
4586 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4587 valgrind_command="$valgrind_path -q"
4589 cat >>confdefs.h <<\_ACEOF
4590 #define ENABLE_VALGRIND_CHECKING 1
4591 _ACEOF
4593 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4595 cat >>confdefs.h <<\_ACEOF
4596 #define HAVE_VALGRIND_MEMCHECK_H 1
4597 _ACEOF
4600 if test $gcc_cv_header_memcheck_h = yes; then
4602 cat >>confdefs.h <<\_ACEOF
4603 #define HAVE_MEMCHECK_H 1
4604 _ACEOF
4611 # Enable code coverage collection
4612 # Check whether --enable-coverage or --disable-coverage was given.
4613 if test "${enable_coverage+set}" = set; then
4614 enableval="$enable_coverage"
4615 case "${enableval}" in
4616 yes|noopt)
4617 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4619 opt)
4620 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4623 # a.k.a. --disable-coverage
4624 coverage_flags=""
4627 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4628 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4629 { (exit 1); exit 1; }; }
4631 esac
4632 else
4633 coverage_flags=""
4637 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4638 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4639 enableval="$enable_gather_detailed_mem_stats"
4641 else
4642 enable_gather_detailed_mem_stats=no
4644 if test x$enable_gather_detailed_mem_stats = xyes ; then
4646 cat >>confdefs.h <<\_ACEOF
4647 #define GATHER_STATISTICS 1
4648 _ACEOF
4652 # -------------------------------
4653 # Miscenalleous configure options
4654 # -------------------------------
4656 # With stabs
4658 # Check whether --with-stabs or --without-stabs was given.
4659 if test "${with_stabs+set}" = set; then
4660 withval="$with_stabs"
4661 stabs="$with_stabs"
4662 else
4663 stabs=no
4666 # Determine whether or not multilibs are enabled.
4667 # Check whether --enable-multilib or --disable-multilib was given.
4668 if test "${enable_multilib+set}" = set; then
4669 enableval="$enable_multilib"
4671 else
4672 enable_multilib=yes
4676 # Enable __cxa_atexit for C++.
4677 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4678 if test "${enable___cxa_atexit+set}" = set; then
4679 enableval="$enable___cxa_atexit"
4683 # Enable threads
4684 # Pass with no value to take the default
4685 # Pass with a value to specify a thread package
4686 # Check whether --enable-threads or --disable-threads was given.
4687 if test "${enable_threads+set}" = set; then
4688 enableval="$enable_threads"
4690 else
4691 enable_threads=''
4693 # Save in case it gets overwritten in config.gcc
4694 enable_threads_flag=$enable_threads
4696 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4697 if test "${enable_objc_gc+set}" = set; then
4698 enableval="$enable_objc_gc"
4699 if test x$enable_objc_gc = xno; then
4700 objc_boehm_gc=''
4701 else
4702 objc_boehm_gc=1
4704 else
4705 objc_boehm_gc=''
4709 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4710 if test "${with_dwarf2+set}" = set; then
4711 withval="$with_dwarf2"
4712 dwarf2="$with_dwarf2"
4713 else
4714 dwarf2=no
4717 # Check whether --enable-shared or --disable-shared was given.
4718 if test "${enable_shared+set}" = set; then
4719 enableval="$enable_shared"
4721 case $enable_shared in
4722 yes | no) ;;
4724 enable_shared=no
4725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4726 for pkg in $enableval; do
4727 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4728 enable_shared=yes
4730 done
4731 IFS="$ac_save_ifs"
4733 esac
4735 else
4736 enable_shared=yes
4741 # Check whether --with-sysroot or --without-sysroot was given.
4742 if test "${with_sysroot+set}" = set; then
4743 withval="$with_sysroot"
4745 case ${with_sysroot} in
4746 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4747 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4748 esac
4750 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4751 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4753 if test "x$exec_prefix" = xNONE; then
4754 if test "x$prefix" = xNONE; then
4755 test_prefix=/usr/local
4756 else
4757 test_prefix=$prefix
4759 else
4760 test_prefix=$exec_prefix
4762 case ${TARGET_SYSTEM_ROOT} in
4763 "${test_prefix}"|"${test_prefix}/"*|\
4764 '${exec_prefix}'|'${exec_prefix}/'*)
4765 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4766 TARGET_SYSTEM_ROOT_DEFINE="$t"
4768 esac
4770 else
4772 TARGET_SYSTEM_ROOT=
4773 TARGET_SYSTEM_ROOT_DEFINE=
4774 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4781 # Build with intermodule optimisations
4782 # Check whether --enable-intermodule or --disable-intermodule was given.
4783 if test "${enable_intermodule+set}" = set; then
4784 enableval="$enable_intermodule"
4785 case ${enable_intermodule} in
4786 yes) onestep="-onestep";;
4787 *) onestep="";;
4788 esac
4789 else
4790 onestep=""
4794 # Sanity check enable_languages in case someone does not run the toplevel
4795 # configure # script.
4796 # Check whether --enable-languages or --disable-languages was given.
4797 if test "${enable_languages+set}" = set; then
4798 enableval="$enable_languages"
4799 case ,${enable_languages}, in
4800 ,,|,yes,)
4801 # go safe -- we cannot be much sure without the toplevel
4802 # configure's
4803 # analysis of which target libs are present and usable
4804 enable_languages=c
4806 *,all,*)
4807 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4808 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4809 { (exit 1); exit 1; }; }
4811 *,c,*)
4814 enable_languages=c,${enable_languages}
4816 esac
4817 else
4818 enable_languages=c
4821 subdirs=
4822 for lang in ${srcdir}/*/config-lang.in
4824 case $lang in
4825 # The odd quoting in the next line works around
4826 # an apparent bug in bash 1.12 on linux.
4827 ${srcdir}/[*]/config-lang.in) ;;
4829 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4830 if test "x$lang_alias" = x
4831 then
4832 echo "$lang doesn't set \$language." 1>&2
4833 exit 1
4835 case ",$enable_languages," in
4836 *,$lang_alias,*)
4837 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4838 esac
4840 esac
4841 done
4844 # -------------------------
4845 # Checks for other programs
4846 # -------------------------
4848 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4849 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4851 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854 cat >conftest.make <<\_ACEOF
4855 all:
4856 @echo 'ac_maketemp="$(MAKE)"'
4857 _ACEOF
4858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4859 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4860 if test -n "$ac_maketemp"; then
4861 eval ac_cv_prog_make_${ac_make}_set=yes
4862 else
4863 eval ac_cv_prog_make_${ac_make}_set=no
4865 rm -f conftest.make
4867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4868 echo "$as_me:$LINENO: result: yes" >&5
4869 echo "${ECHO_T}yes" >&6
4870 SET_MAKE=
4871 else
4872 echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4874 SET_MAKE="MAKE=${MAKE-make}"
4878 # Find some useful tools
4879 for ac_prog in gawk mawk nawk awk
4881 # Extract the first word of "$ac_prog", so it can be a program name with args.
4882 set dummy $ac_prog; ac_word=$2
4883 echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885 if test "${ac_cv_prog_AWK+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888 if test -n "$AWK"; then
4889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_AWK="$ac_prog"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4902 done
4903 done
4907 AWK=$ac_cv_prog_AWK
4908 if test -n "$AWK"; then
4909 echo "$as_me:$LINENO: result: $AWK" >&5
4910 echo "${ECHO_T}$AWK" >&6
4911 else
4912 echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6
4916 test -n "$AWK" && break
4917 done
4919 # We need awk to run opts.sh (to create options.c and options.h).
4920 # Bail out if it's missing.
4921 case ${AWK} in
4922 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4923 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4924 { (exit 1); exit 1; }; } ;;
4925 esac
4927 echo "$as_me:$LINENO: checking whether ln works" >&5
4928 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4929 if test "${gcc_cv_prog_LN+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932 rm -f conftestdata_t
4933 echo >conftestdata_f
4934 if ln conftestdata_f conftestdata_t 2>/dev/null
4935 then
4936 gcc_cv_prog_LN="ln"
4937 else
4938 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4939 then
4940 gcc_cv_prog_LN="ln -s"
4941 else
4942 gcc_cv_prog_LN=cp
4945 rm -f conftestdata_f conftestdata_t
4948 LN="$gcc_cv_prog_LN"
4949 if test "$gcc_cv_prog_LN" = "ln"; then
4950 echo "$as_me:$LINENO: result: yes" >&5
4951 echo "${ECHO_T}yes" >&6
4952 else
4953 if test "$gcc_cv_prog_LN" = "ln -s"; then
4954 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4955 echo "${ECHO_T}no, using ln -s" >&6
4956 else
4957 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4958 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4962 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4963 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4964 if test "${gcc_cv_prog_LN_S+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967 rm -f conftestdata_t
4968 echo >conftestdata_f
4969 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4970 then
4971 gcc_cv_prog_LN_S="ln -s"
4972 else
4973 if ln conftestdata_f conftestdata_t 2>/dev/null
4974 then
4975 gcc_cv_prog_LN_S=ln
4976 else
4977 gcc_cv_prog_LN_S=cp
4980 rm -f conftestdata_f conftestdata_t
4983 LN_S="$gcc_cv_prog_LN_S"
4984 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4985 echo "$as_me:$LINENO: result: yes" >&5
4986 echo "${ECHO_T}yes" >&6
4987 else
4988 if test "$gcc_cv_prog_LN_S" = "ln"; then
4989 echo "$as_me:$LINENO: result: no, using ln" >&5
4990 echo "${ECHO_T}no, using ln" >&6
4991 else
4992 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4993 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5000 echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5024 RANLIB=$ac_cv_prog_RANLIB
5025 if test -n "$RANLIB"; then
5026 echo "$as_me:$LINENO: result: $RANLIB" >&5
5027 echo "${ECHO_T}$RANLIB" >&6
5028 else
5029 echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6
5034 if test -z "$ac_cv_prog_RANLIB"; then
5035 ac_ct_RANLIB=$RANLIB
5036 # Extract the first word of "ranlib", so it can be a program name with args.
5037 set dummy ranlib; ac_word=$2
5038 echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 if test -n "$ac_ct_RANLIB"; then
5044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_ac_ct_RANLIB="ranlib"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5060 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5064 if test -n "$ac_ct_RANLIB"; then
5065 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5072 RANLIB=$ac_ct_RANLIB
5073 else
5074 RANLIB="$ac_cv_prog_RANLIB"
5077 # Find a good install program. We prefer a C program (faster),
5078 # so one script is as good as another. But avoid the broken or
5079 # incompatible versions:
5080 # SysV /etc/install, /usr/sbin/install
5081 # SunOS /usr/etc/install
5082 # IRIX /sbin/install
5083 # AIX /bin/install
5084 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5085 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5086 # ./install, which can be erroneously created by make from ./install.sh.
5087 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5088 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5089 if test -z "$INSTALL"; then
5090 if test "${ac_cv_path_install+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5094 for ac_dir in $PATH; do
5095 # Account for people who put trailing slashes in PATH elements.
5096 case "$ac_dir/" in
5097 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5099 # OSF1 and SCO ODT 3.0 have their own names for install.
5100 for ac_prog in ginstall scoinst install; do
5101 if test -f $ac_dir/$ac_prog; then
5102 if test $ac_prog = install &&
5103 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5104 # AIX install. It has an incompatible calling convention.
5105 # OSF/1 installbsd also uses dspmsg, but is usable.
5107 else
5108 ac_cv_path_install="$ac_dir/$ac_prog -c"
5109 break 2
5112 done
5114 esac
5115 done
5116 IFS="$ac_save_IFS"
5119 if test "${ac_cv_path_install+set}" = set; then
5120 INSTALL="$ac_cv_path_install"
5121 else
5122 # As a last resort, use the slow shell script. We don't cache a
5123 # path for INSTALL within a source directory, because that will
5124 # break other packages using the cache if that directory is
5125 # removed, or if the path is relative.
5126 INSTALL="$ac_install_sh"
5129 echo "$as_me:$LINENO: result: $INSTALL" >&5
5130 echo "${ECHO_T}$INSTALL" >&6
5132 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5133 # It thinks the first close brace ends the variable substitution.
5134 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5139 # See if cmp has --ignore-initial.
5140 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5141 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5142 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 echo abfoo >t1
5146 echo cdfoo >t2
5147 gcc_cv_prog_cmp_skip=slowcompare
5148 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5149 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5151 else
5152 gcc_cv_prog_cmp_skip=gnucompare
5155 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5156 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5157 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5159 else
5160 gcc_cv_prog_cmp_skip=fastcompare
5164 rm t1 t2
5167 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5168 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5169 make_compare_target=$gcc_cv_prog_cmp_skip
5173 # See if we have the mktemp command.
5174 # Extract the first word of "mktemp", so it can be a program name with args.
5175 set dummy mktemp; ac_word=$2
5176 echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5178 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 if test -n "$have_mktemp_command"; then
5182 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191 ac_cv_prog_have_mktemp_command="yes"
5192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5195 done
5196 done
5198 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5201 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5202 if test -n "$have_mktemp_command"; then
5203 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5204 echo "${ECHO_T}$have_mktemp_command" >&6
5205 else
5206 echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5211 # Do we have a single-tree copy of texinfo?
5212 if test -f $srcdir/../texinfo/Makefile.in; then
5213 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5214 gcc_cv_prog_makeinfo_modern=yes
5215 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5216 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5217 else
5218 # See if makeinfo has been installed and is modern enough
5219 # that we can use it.
5220 # Extract the first word of "makeinfo", so it can be a program name with args.
5221 set dummy makeinfo; ac_word=$2
5222 echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 if test -n "$MAKEINFO"; then
5228 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_MAKEINFO="makeinfo"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5246 MAKEINFO=$ac_cv_prog_MAKEINFO
5247 if test -n "$MAKEINFO"; then
5248 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5249 echo "${ECHO_T}$MAKEINFO" >&6
5250 else
5251 echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5255 if test -n "$MAKEINFO"; then
5256 # Found it, now check the version.
5257 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5258 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5259 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 ac_prog_version=`$MAKEINFO --version 2>&1 |
5263 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5264 echo "configure:5264: version of makeinfo is $ac_prog_version" >&5
5265 case $ac_prog_version in
5266 '') gcc_cv_prog_makeinfo_modern=no;;
5267 4.[2-9]*)
5268 gcc_cv_prog_makeinfo_modern=yes;;
5269 *) gcc_cv_prog_makeinfo_modern=no;;
5270 esac
5273 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5274 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5275 else
5276 gcc_cv_prog_makeinfo_modern=no
5281 if test $gcc_cv_prog_makeinfo_modern = no; then
5282 { echo "$as_me:$LINENO: WARNING:
5283 *** Makeinfo is missing or too old.
5284 *** Info documentation will not be built." >&5
5285 echo "$as_me: WARNING:
5286 *** Makeinfo is missing or too old.
5287 *** Info documentation will not be built." >&2;}
5288 BUILD_INFO=
5289 else
5290 BUILD_INFO=info
5293 # Is pod2man recent enough to regenerate manpages?
5294 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5295 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5296 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5297 echo "$as_me:$LINENO: result: yes" >&5
5298 echo "${ECHO_T}yes" >&6
5299 GENERATED_MANPAGES=generated-manpages
5300 else
5301 echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5303 GENERATED_MANPAGES=
5306 # How about lex?
5307 if test -f $srcdir/../flex/skel.c; then
5308 FLEX='$(objdir)/../flex/flex'
5309 else
5310 # Extract the first word of "flex", so it can be a program name with args.
5311 set dummy flex; ac_word=$2
5312 echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314 if test "${ac_cv_prog_FLEX+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 if test -n "$FLEX"; then
5318 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_FLEX="flex"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5334 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5337 FLEX=$ac_cv_prog_FLEX
5338 if test -n "$FLEX"; then
5339 echo "$as_me:$LINENO: result: $FLEX" >&5
5340 echo "${ECHO_T}$FLEX" >&6
5341 else
5342 echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6
5348 # Bison?
5349 # The -L switch is so bison can find its skeleton file.
5350 if test -f $srcdir/../bison/bison.simple; then
5351 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5352 else
5353 # Extract the first word of "bison", so it can be a program name with args.
5354 set dummy bison; ac_word=$2
5355 echo "$as_me:$LINENO: checking for $ac_word" >&5
5356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5357 if test "${ac_cv_prog_BISON+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360 if test -n "$BISON"; then
5361 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_prog_BISON="bison"
5371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5374 done
5375 done
5377 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5380 BISON=$ac_cv_prog_BISON
5381 if test -n "$BISON"; then
5382 echo "$as_me:$LINENO: result: $BISON" >&5
5383 echo "${ECHO_T}$BISON" >&6
5384 else
5385 echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6
5391 # --------------------
5392 # Checks for C headers
5393 # --------------------
5395 echo "$as_me:$LINENO: checking for GNU C library" >&5
5396 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5397 if test "${gcc_cv_glibc+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400 cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h. */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5406 #include <features.h>
5408 main ()
5411 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5412 #error Not a GNU C library system
5413 #endif
5415 return 0;
5417 _ACEOF
5418 rm -f conftest.$ac_objext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 (eval $ac_try) 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 gcc_cv_glibc=yes
5440 else
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5444 gcc_cv_glibc=no
5446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5449 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5450 echo "${ECHO_T}$gcc_cv_glibc" >&6
5451 if test $gcc_cv_glibc = yes; then
5453 cat >>confdefs.h <<\_ACEOF
5454 #define _GNU_SOURCE 1
5455 _ACEOF
5459 # Need to reject headers which give warnings, so that the -Werror bootstrap
5460 # works later. *sigh* This needs to come before all header checks.
5462 ac_c_preproc_warn_flag=yes
5464 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5465 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5466 if test "${ac_cv_header_stdc+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <stdlib.h>
5476 #include <stdarg.h>
5477 #include <string.h>
5478 #include <float.h>
5481 main ()
5485 return 0;
5487 _ACEOF
5488 rm -f conftest.$ac_objext
5489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490 (eval $ac_compile) 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } &&
5497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; } &&
5503 { ac_try='test -s conftest.$ac_objext'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 (eval $ac_try) 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; }; then
5509 ac_cv_header_stdc=yes
5510 else
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5514 ac_cv_header_stdc=no
5516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5518 if test $ac_cv_header_stdc = yes; then
5519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 #include <string.h>
5528 _ACEOF
5529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5530 $EGREP "memchr" >/dev/null 2>&1; then
5532 else
5533 ac_cv_header_stdc=no
5535 rm -f conftest*
5539 if test $ac_cv_header_stdc = yes; then
5540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5541 cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h. */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547 #include <stdlib.h>
5549 _ACEOF
5550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5551 $EGREP "free" >/dev/null 2>&1; then
5553 else
5554 ac_cv_header_stdc=no
5556 rm -f conftest*
5560 if test $ac_cv_header_stdc = yes; then
5561 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5562 if test "$cross_compiling" = yes; then
5564 else
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #include <ctype.h>
5572 #if ((' ' & 0x0FF) == 0x020)
5573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5575 #else
5576 # define ISLOWER(c) \
5577 (('a' <= (c) && (c) <= 'i') \
5578 || ('j' <= (c) && (c) <= 'r') \
5579 || ('s' <= (c) && (c) <= 'z'))
5580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5581 #endif
5583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5585 main ()
5587 int i;
5588 for (i = 0; i < 256; i++)
5589 if (XOR (islower (i), ISLOWER (i))
5590 || toupper (i) != TOUPPER (i))
5591 exit(2);
5592 exit (0);
5594 _ACEOF
5595 rm -f conftest$ac_exeext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597 (eval $ac_link) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5607 else
5608 echo "$as_me: program exited with status $ac_status" >&5
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5612 ( exit $ac_status )
5613 ac_cv_header_stdc=no
5615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5619 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5620 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5621 if test $ac_cv_header_stdc = yes; then
5623 cat >>confdefs.h <<\_ACEOF
5624 #define STDC_HEADERS 1
5625 _ACEOF
5629 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5630 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5631 if test "${ac_cv_header_time+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 #include <sys/types.h>
5641 #include <sys/time.h>
5642 #include <time.h>
5645 main ()
5647 if ((struct tm *) 0)
5648 return 0;
5650 return 0;
5652 _ACEOF
5653 rm -f conftest.$ac_objext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655 (eval $ac_compile) 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_header_time=yes
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 ac_cv_header_time=no
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5684 echo "${ECHO_T}$ac_cv_header_time" >&6
5685 if test $ac_cv_header_time = yes; then
5687 cat >>confdefs.h <<\_ACEOF
5688 #define TIME_WITH_SYS_TIME 1
5689 _ACEOF
5693 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5694 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5695 if test "${ac_cv_header_stdbool_h+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <stdbool.h>
5706 main ()
5708 bool foo = false;
5710 return 0;
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715 (eval $ac_compile) 2>conftest.er1
5716 ac_status=$?
5717 grep -v '^ *+' conftest.er1 >conftest.err
5718 rm -f conftest.er1
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } &&
5722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 (eval $ac_try) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest.$ac_objext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_cv_header_stdbool_h=yes
5735 else
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_cv_header_stdbool_h=no
5741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5743 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5744 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5745 if test $ac_cv_header_stdbool_h = yes; then
5747 cat >>confdefs.h <<\_ACEOF
5748 #define HAVE_STDBOOL_H 1
5749 _ACEOF
5753 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5754 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5755 if test "${gcc_cv_header_string+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h. */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #include <string.h>
5765 #include <strings.h>
5767 main ()
5771 return 0;
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; } &&
5789 { ac_try='test -s conftest.$ac_objext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 gcc_cv_header_string=yes
5796 else
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 gcc_cv_header_string=no
5802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5804 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5805 echo "${ECHO_T}$gcc_cv_header_string" >&6
5806 if test $gcc_cv_header_string = yes; then
5808 cat >>confdefs.h <<\_ACEOF
5809 #define STRING_WITH_STRINGS 1
5810 _ACEOF
5814 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5815 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5816 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819 cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h. */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #include <sys/types.h>
5826 #include <sys/wait.h>
5827 #ifndef WEXITSTATUS
5828 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5829 #endif
5830 #ifndef WIFEXITED
5831 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5832 #endif
5835 main ()
5837 int s;
5838 wait (&s);
5839 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5841 return 0;
5843 _ACEOF
5844 rm -f conftest.$ac_objext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5846 (eval $ac_compile) 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } &&
5853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 (eval $ac_try) 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest.$ac_objext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 (eval $ac_try) 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 ac_cv_header_sys_wait_h=yes
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 ac_cv_header_sys_wait_h=no
5872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5874 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5875 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5876 if test $ac_cv_header_sys_wait_h = yes; then
5878 cat >>confdefs.h <<\_ACEOF
5879 #define HAVE_SYS_WAIT_H 1
5880 _ACEOF
5905 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5906 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5907 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5908 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5911 echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 #include <$ac_header>
5923 _ACEOF
5924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } >/dev/null; then
5932 if test -s conftest.err; then
5933 ac_cpp_err=$ac_c_preproc_warn_flag
5934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5935 else
5936 ac_cpp_err=
5938 else
5939 ac_cpp_err=yes
5941 if test -z "$ac_cpp_err"; then
5942 eval "$as_ac_Header=yes"
5943 else
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 eval "$as_ac_Header=no"
5949 rm -f conftest.err conftest.$ac_ext
5951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5954 cat >>confdefs.h <<_ACEOF
5955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5956 _ACEOF
5959 done
5962 # Check for thread headers.
5963 echo "$as_me:$LINENO: checking for thread.h" >&5
5964 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5965 if test "${ac_cv_header_thread_h+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #include <thread.h>
5975 _ACEOF
5976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev/null; then
5984 if test -s conftest.err; then
5985 ac_cpp_err=$ac_c_preproc_warn_flag
5986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5987 else
5988 ac_cpp_err=
5990 else
5991 ac_cpp_err=yes
5993 if test -z "$ac_cpp_err"; then
5994 ac_cv_header_thread_h=yes
5995 else
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 ac_cv_header_thread_h=no
6001 rm -f conftest.err conftest.$ac_ext
6003 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6004 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6005 if test $ac_cv_header_thread_h = yes; then
6006 have_thread_h=yes
6007 else
6008 have_thread_h=
6011 echo "$as_me:$LINENO: checking for pthread.h" >&5
6012 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6013 if test "${ac_cv_header_pthread_h+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #include <pthread.h>
6023 _ACEOF
6024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } >/dev/null; then
6032 if test -s conftest.err; then
6033 ac_cpp_err=$ac_c_preproc_warn_flag
6034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6035 else
6036 ac_cpp_err=
6038 else
6039 ac_cpp_err=yes
6041 if test -z "$ac_cpp_err"; then
6042 ac_cv_header_pthread_h=yes
6043 else
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6047 ac_cv_header_pthread_h=no
6049 rm -f conftest.err conftest.$ac_ext
6051 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6052 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6053 if test $ac_cv_header_pthread_h = yes; then
6054 have_pthread_h=yes
6055 else
6056 have_pthread_h=
6060 # These tests can't be done till we know if we have limits.h.
6061 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6062 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6063 if test "${gcc_cv_decl_char_bit+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 #ifdef HAVE_LIMITS_H
6073 #include <limits.h>
6074 #endif
6075 #ifdef CHAR_BIT
6076 found
6077 #endif
6078 _ACEOF
6079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6080 $EGREP "found" >/dev/null 2>&1; then
6081 gcc_cv_decl_char_bit=yes
6082 else
6083 gcc_cv_decl_char_bit=no
6085 rm -f conftest*
6089 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6090 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6091 if test $gcc_cv_decl_char_bit = no; then
6092 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6093 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6094 if test "${gcc_cv_c_nbby+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6098 gcc_cv_c_nbby=
6099 while test $i -lt 65; do
6100 cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h. */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6108 main ()
6110 switch(0) {
6111 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6112 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
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" || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 gcc_cv_c_nbby=$i; break
6140 else
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6146 i=`expr $i + 1`
6147 done
6148 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6151 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6152 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6153 if test $gcc_cv_c_nbby = failed; then
6154 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6155 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6156 { (exit 1); exit 1; }; }
6157 else
6159 cat >>confdefs.h <<_ACEOF
6160 #define CHAR_BIT $gcc_cv_c_nbby
6161 _ACEOF
6165 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6166 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6167 if test "${ac_cv_c_bigendian+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170 ac_cv_c_bigendian=unknown
6171 # See if sys/param.h defines the BYTE_ORDER macro.
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 #include <sys/types.h>
6179 #include <sys/param.h>
6181 main ()
6184 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6185 bogus endian macros
6186 #endif
6188 return 0;
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193 (eval $ac_compile) 2>conftest.er1
6194 ac_status=$?
6195 grep -v '^ *+' conftest.er1 >conftest.err
6196 rm -f conftest.er1
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; } &&
6206 { ac_try='test -s conftest.$ac_objext'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; }; then
6212 # It does; now see whether it defined to BIG_ENDIAN or not.
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 #include <sys/types.h>
6220 #include <sys/param.h>
6222 main ()
6225 #if BYTE_ORDER != BIG_ENDIAN
6226 not big endian
6227 #endif
6229 return 0;
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234 (eval $ac_compile) 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_c_bigendian=yes
6254 else
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ac_cv_c_bigendian=no
6260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6267 if test $ac_cv_c_bigendian = unknown; then
6268 if test "$cross_compiling" = yes; then
6269 echo $ac_n "cross-compiling... " 2>&6
6270 else
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 main () {
6278 /* Are we little or big endian? From Harbison&Steele. */
6279 union
6281 long l;
6282 char c[sizeof (long)];
6283 } u;
6284 u.l = 1;
6285 exit (u.c[sizeof (long) - 1] == 1);
6287 _ACEOF
6288 rm -f conftest$ac_exeext
6289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6290 (eval $ac_link) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_c_bigendian=no
6300 else
6301 echo "$as_me: program exited with status $ac_status" >&5
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 ( exit $ac_status )
6306 ac_cv_c_bigendian=yes
6308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6313 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6314 if test $ac_cv_c_bigendian = unknown; then
6315 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6316 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6318 cat >conftest.c <<EOF
6319 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6320 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6321 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6322 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6323 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6324 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6325 int main() { _ascii (); _ebcdic (); return 0; }
6327 if test -f conftest.c ; then
6328 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6329 if test `grep -l BIGenDianSyS conftest.o` ; then
6330 echo $ac_n ' big endian probe OK, ' 1>&6
6331 ac_cv_c_bigendian=yes
6333 if test `grep -l LiTTleEnDian conftest.o` ; then
6334 echo $ac_n ' little endian probe OK, ' 1>&6
6335 if test $ac_cv_c_bigendian = yes ; then
6336 ac_cv_c_bigendian=unknown;
6337 else
6338 ac_cv_c_bigendian=no
6341 echo $ac_n 'guessing bigendian ... ' >&6
6344 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6345 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6347 if test $ac_cv_c_bigendian = yes; then
6349 cat >>confdefs.h <<\_ACEOF
6350 #define WORDS_BIGENDIAN 1
6351 _ACEOF
6354 cat >>confdefs.h <<\_ACEOF
6355 #define HOST_WORDS_BIG_ENDIAN 1
6356 _ACEOF
6358 BYTEORDER=4321
6359 else
6360 BYTEORDER=1234
6363 cat >>confdefs.h <<_ACEOF
6364 #define BYTEORDER $BYTEORDER
6365 _ACEOF
6367 if test $ac_cv_c_bigendian = unknown; then
6368 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6369 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6370 { (exit 1); exit 1; }; }
6374 # --------
6375 # UNSORTED
6376 # --------
6378 # Stage specific cflags for build.
6379 stage1_cflags=
6380 case $build in
6381 vax-*-*)
6382 if test x$GCC = xyes
6383 then
6384 stage1_cflags="-Wa,-J"
6385 else
6386 stage1_cflags="-J"
6389 powerpc-*-darwin*)
6390 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6391 # sources; use -no-cpp-precomp to get to GNU cpp.
6392 # Apple's GCC has bugs in designated initializer handling, so disable
6393 # that too.
6394 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6396 esac
6399 # These libraries may be used by collect2.
6400 # We may need a special search path to get them linked.
6401 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6402 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6403 if test "${gcc_cv_collect2_libs+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 save_LIBS="$LIBS"
6407 for libs in '' -lld -lmld \
6408 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6409 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6411 LIBS="$libs"
6412 cat >conftest.$ac_ext <<_ACEOF
6413 /* confdefs.h. */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6419 /* Override any gcc2 internal prototype to avoid an error. */
6420 #ifdef __cplusplus
6421 extern "C"
6422 #endif
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
6425 char ldopen ();
6427 main ()
6429 ldopen ();
6431 return 0;
6433 _ACEOF
6434 rm -f conftest.$ac_objext conftest$ac_exeext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
6449 { ac_try='test -s conftest$ac_exeext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 gcc_cv_collect2_libs="$libs"; break
6456 else
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6461 rm -f conftest.err conftest.$ac_objext \
6462 conftest$ac_exeext conftest.$ac_ext
6463 done
6464 LIBS="$save_LIBS"
6465 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6467 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6468 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6469 case $gcc_cv_collect2_libs in
6470 "none required") ;;
6471 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6472 esac
6475 # When building Ada code on Alpha, we need exc_resume which is usually in
6476 # -lexc. So test for it.
6477 save_LIBS="$LIBS"
6478 LIBS=
6479 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6480 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6481 if test "${ac_cv_search_exc_resume+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 ac_func_search_save_LIBS=$LIBS
6485 ac_cv_search_exc_resume=no
6486 cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h. */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6493 /* Override any gcc2 internal prototype to avoid an error. */
6494 #ifdef __cplusplus
6495 extern "C"
6496 #endif
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6499 char exc_resume ();
6501 main ()
6503 exc_resume ();
6505 return 0;
6507 _ACEOF
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510 (eval $ac_link) 2>conftest.er1
6511 ac_status=$?
6512 grep -v '^ *+' conftest.er1 >conftest.err
6513 rm -f conftest.er1
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 (eval $ac_try) 2>&5
6520 ac_status=$?
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; } &&
6523 { ac_try='test -s conftest$ac_exeext'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 (eval $ac_try) 2>&5
6526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 ac_cv_search_exc_resume="none required"
6530 else
6531 echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6535 rm -f conftest.err conftest.$ac_objext \
6536 conftest$ac_exeext conftest.$ac_ext
6537 if test "$ac_cv_search_exc_resume" = no; then
6538 for ac_lib in exc; do
6539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6547 /* Override any gcc2 internal prototype to avoid an error. */
6548 #ifdef __cplusplus
6549 extern "C"
6550 #endif
6551 /* We use char because int might match the return type of a gcc2
6552 builtin and then its argument prototype would still apply. */
6553 char exc_resume ();
6555 main ()
6557 exc_resume ();
6559 return 0;
6561 _ACEOF
6562 rm -f conftest.$ac_objext conftest$ac_exeext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6564 (eval $ac_link) 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 (eval $ac_try) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; } &&
6577 { ac_try='test -s conftest$ac_exeext'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 (eval $ac_try) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 ac_cv_search_exc_resume="-l$ac_lib"
6584 break
6585 else
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6590 rm -f conftest.err conftest.$ac_objext \
6591 conftest$ac_exeext conftest.$ac_ext
6592 done
6594 LIBS=$ac_func_search_save_LIBS
6596 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6597 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6598 if test "$ac_cv_search_exc_resume" != no; then
6599 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6603 GNAT_LIBEXC="$LIBS"
6604 LIBS="$save_LIBS"
6607 # Some systems put ldexp and frexp in libm instead of libc; assume
6608 # they're both in the same place. jcf-dump needs them.
6609 save_LIBS="$LIBS"
6610 LIBS=
6611 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6612 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6613 if test "${ac_cv_search_ldexp+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616 ac_func_search_save_LIBS=$LIBS
6617 ac_cv_search_ldexp=no
6618 cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h. */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6625 /* Override any gcc2 internal prototype to avoid an error. */
6626 #ifdef __cplusplus
6627 extern "C"
6628 #endif
6629 /* We use char because int might match the return type of a gcc2
6630 builtin and then its argument prototype would still apply. */
6631 char ldexp ();
6633 main ()
6635 ldexp ();
6637 return 0;
6639 _ACEOF
6640 rm -f conftest.$ac_objext conftest$ac_exeext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642 (eval $ac_link) 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; } &&
6655 { ac_try='test -s conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 ac_cv_search_ldexp="none required"
6662 else
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6667 rm -f conftest.err conftest.$ac_objext \
6668 conftest$ac_exeext conftest.$ac_ext
6669 if test "$ac_cv_search_ldexp" = no; then
6670 for ac_lib in m; do
6671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6679 /* Override any gcc2 internal prototype to avoid an error. */
6680 #ifdef __cplusplus
6681 extern "C"
6682 #endif
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6685 char ldexp ();
6687 main ()
6689 ldexp ();
6691 return 0;
6693 _ACEOF
6694 rm -f conftest.$ac_objext conftest$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_search_ldexp="-l$ac_lib"
6716 break
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6722 rm -f conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
6724 done
6726 LIBS=$ac_func_search_save_LIBS
6728 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6729 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6730 if test "$ac_cv_search_ldexp" != no; then
6731 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6735 LDEXP_LIB="$LIBS"
6736 LIBS="$save_LIBS"
6739 # Use <inttypes.h> only if it exists,
6740 # doesn't clash with <sys/types.h>, and declares intmax_t.
6741 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6742 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6743 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 #include <sys/types.h>
6753 #include <inttypes.h>
6755 main ()
6757 intmax_t i = -1;
6759 return 0;
6761 _ACEOF
6762 rm -f conftest.$ac_objext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6764 (eval $ac_compile) 2>conftest.er1
6765 ac_status=$?
6766 grep -v '^ *+' conftest.er1 >conftest.err
6767 rm -f conftest.er1
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } &&
6771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 (eval $ac_try) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; } &&
6777 { ac_try='test -s conftest.$ac_objext'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6783 gcc_cv_header_inttypes_h=yes
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6788 gcc_cv_header_inttypes_h=no
6790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6793 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6794 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6795 if test $gcc_cv_header_inttypes_h = yes; then
6797 cat >>confdefs.h <<\_ACEOF
6798 #define HAVE_INTTYPES_H 1
6799 _ACEOF
6829 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6830 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6831 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6832 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6833 setlocale
6835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6836 echo "$as_me:$LINENO: checking for $ac_func" >&5
6837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6838 if eval "test \"\${$as_ac_var+set}\" = set"; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h. */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6849 #define $ac_func innocuous_$ac_func
6851 /* System header to define __stub macros and hopefully few prototypes,
6852 which can conflict with char $ac_func (); below.
6853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6854 <limits.h> exists even on freestanding compilers. */
6856 #ifdef __STDC__
6857 # include <limits.h>
6858 #else
6859 # include <assert.h>
6860 #endif
6862 #undef $ac_func
6864 /* Override any gcc2 internal prototype to avoid an error. */
6865 #ifdef __cplusplus
6866 extern "C"
6868 #endif
6869 /* We use char because int might match the return type of a gcc2
6870 builtin and then its argument prototype would still apply. */
6871 char $ac_func ();
6872 /* The GNU C library defines this for functions which it implements
6873 to always fail with ENOSYS. Some functions are actually named
6874 something starting with __ and the normal name is an alias. */
6875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6876 choke me
6877 #else
6878 char (*f) () = $ac_func;
6879 #endif
6880 #ifdef __cplusplus
6882 #endif
6885 main ()
6887 return f != $ac_func;
6889 return 0;
6891 _ACEOF
6892 rm -f conftest.$ac_objext conftest$ac_exeext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
6901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 (eval $ac_try) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try='test -s conftest$ac_exeext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 eval "$as_ac_var=yes"
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 eval "$as_ac_var=no"
6920 rm -f conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6925 if test `eval echo '${'$as_ac_var'}'` = yes; then
6926 cat >>confdefs.h <<_ACEOF
6927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6928 _ACEOF
6931 done
6934 if test x$ac_cv_func_mbstowcs = xyes; then
6935 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6936 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6937 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940 if test "$cross_compiling" = yes; then
6941 gcc_cv_func_mbstowcs_works=yes
6942 else
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 #include <stdlib.h>
6950 int main()
6952 mbstowcs(0, "", 0);
6953 return 0;
6955 _ACEOF
6956 rm -f conftest$ac_exeext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 gcc_cv_func_mbstowcs_works=yes
6968 else
6969 echo "$as_me: program exited with status $ac_status" >&5
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6973 ( exit $ac_status )
6974 gcc_cv_func_mbstowcs_works=no
6976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6979 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6980 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6981 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6983 cat >>confdefs.h <<\_ACEOF
6984 #define HAVE_WORKING_MBSTOWCS 1
6985 _ACEOF
6990 echo "$as_me:$LINENO: checking for ssize_t" >&5
6991 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6992 if test "${ac_cv_type_ssize_t+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 cat >conftest.$ac_ext <<_ACEOF
6996 /* confdefs.h. */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 $ac_includes_default
7003 main ()
7005 if ((ssize_t *) 0)
7006 return 0;
7007 if (sizeof (ssize_t))
7008 return 0;
7010 return 0;
7012 _ACEOF
7013 rm -f conftest.$ac_objext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015 (eval $ac_compile) 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest.$ac_objext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_cv_type_ssize_t=yes
7035 else
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7039 ac_cv_type_ssize_t=no
7041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7044 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7045 if test $ac_cv_type_ssize_t = yes; then
7047 else
7049 cat >>confdefs.h <<_ACEOF
7050 #define ssize_t int
7051 _ACEOF
7056 # Try to determine the array type of the second argument of getgroups
7057 # for the target system (int or gid_t).
7058 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7059 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7060 if test "${ac_cv_type_uid_t+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063 cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h. */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 #include <sys/types.h>
7071 _ACEOF
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "uid_t" >/dev/null 2>&1; then
7074 ac_cv_type_uid_t=yes
7075 else
7076 ac_cv_type_uid_t=no
7078 rm -f conftest*
7081 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7082 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7083 if test $ac_cv_type_uid_t = no; then
7085 cat >>confdefs.h <<\_ACEOF
7086 #define uid_t int
7087 _ACEOF
7090 cat >>confdefs.h <<\_ACEOF
7091 #define gid_t int
7092 _ACEOF
7096 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7097 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7098 if test "${ac_cv_type_getgroups+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101 if test "$cross_compiling" = yes; then
7102 ac_cv_type_getgroups=cross
7103 else
7104 cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h. */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 /* Thanks to Mike Rendell for this test. */
7111 #include <sys/types.h>
7112 #define NGID 256
7113 #undef MAX
7114 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7117 main ()
7119 gid_t gidset[NGID];
7120 int i, n;
7121 union { gid_t gval; long lval; } val;
7123 val.lval = -1;
7124 for (i = 0; i < NGID; i++)
7125 gidset[i] = val.gval;
7126 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7127 gidset);
7128 /* Exit non-zero if getgroups seems to require an array of ints. This
7129 happens when gid_t is short but getgroups modifies an array of ints. */
7130 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7132 _ACEOF
7133 rm -f conftest$ac_exeext
7134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7135 (eval $ac_link) 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_cv_type_getgroups=gid_t
7145 else
7146 echo "$as_me: program exited with status $ac_status" >&5
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 ( exit $ac_status )
7151 ac_cv_type_getgroups=int
7153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7155 if test $ac_cv_type_getgroups = cross; then
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <unistd.h>
7164 _ACEOF
7165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7166 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7167 ac_cv_type_getgroups=gid_t
7168 else
7169 ac_cv_type_getgroups=int
7171 rm -f conftest*
7175 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7176 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7178 cat >>confdefs.h <<_ACEOF
7179 #define GETGROUPS_T $ac_cv_type_getgroups
7180 _ACEOF
7183 if test "${target}" = "${build}"; then
7184 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7185 else
7186 case "${target}" in
7187 # This condition may need some tweaking. It should include all
7188 # targets where the array type of the second argument of getgroups
7189 # is int and the type of gid_t is not equivalent to int.
7190 *-*-sunos* | *-*-ultrix*)
7191 TARGET_GETGROUPS_T=int
7194 TARGET_GETGROUPS_T=gid_t
7196 esac
7200 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7201 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7202 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205 if test "$cross_compiling" = yes; then
7206 gcc_cv_func_printf_ptr=no
7207 else
7208 cat >conftest.$ac_ext <<_ACEOF
7209 /* confdefs.h. */
7210 _ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7214 #include <stdio.h>
7216 int main()
7218 char buf[64];
7219 char *p = buf, *q = NULL;
7220 sprintf(buf, "%p", p);
7221 sscanf(buf, "%p", &q);
7222 return (p != q);
7224 _ACEOF
7225 rm -f conftest$ac_exeext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227 (eval $ac_link) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 (eval $ac_try) 2>&5
7233 ac_status=$?
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; }; then
7236 gcc_cv_func_printf_ptr=yes
7237 else
7238 echo "$as_me: program exited with status $ac_status" >&5
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7242 ( exit $ac_status )
7243 gcc_cv_func_printf_ptr=no
7245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7247 rm -f core core.* *.core
7249 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7250 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7251 if test $gcc_cv_func_printf_ptr = yes ; then
7253 cat >>confdefs.h <<\_ACEOF
7254 #define HAVE_PRINTF_PTR 1
7255 _ACEOF
7259 if test $ac_cv_header_sys_mman_h != yes \
7260 || test $ac_cv_func_mmap != yes; then
7261 gcc_cv_func_mmap_file=no
7262 gcc_cv_func_mmap_dev_zero=no
7263 gcc_cv_func_mmap_anon=no
7264 else
7265 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7266 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7267 if test "${gcc_cv_func_mmap_file+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270 # Add a system to this blacklist if
7271 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7272 # memory area containing the same data that you'd get if you applied
7273 # read() to the same fd. The only system known to have a problem here
7274 # is VMS, where text files have record structure.
7275 case "$host_os" in
7276 vms* | ultrix*)
7277 gcc_cv_func_mmap_file=no ;;
7279 gcc_cv_func_mmap_file=yes;;
7280 esac
7282 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7283 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7284 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7285 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7286 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 # Add a system to this blacklist if it has mmap() but /dev/zero
7290 # does not exist, or if mmapping /dev/zero does not give anonymous
7291 # zeroed pages with both the following properties:
7292 # 1. If you map N consecutive pages in with one call, and then
7293 # unmap any subset of those pages, the pages that were not
7294 # explicitly unmapped remain accessible.
7295 # 2. If you map two adjacent blocks of memory and then unmap them
7296 # both at once, they must both go away.
7297 # Systems known to be in this category are Windows (all variants),
7298 # VMS, and Darwin.
7299 case "$host_os" in
7300 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7301 gcc_cv_func_mmap_dev_zero=no ;;
7303 gcc_cv_func_mmap_dev_zero=yes;;
7304 esac
7306 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7307 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7309 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7310 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7311 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7312 if test "${gcc_cv_decl_map_anon+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 #include <sys/types.h>
7322 #include <sys/mman.h>
7323 #include <unistd.h>
7325 #ifndef MAP_ANONYMOUS
7326 #define MAP_ANONYMOUS MAP_ANON
7327 #endif
7330 main ()
7332 int n = MAP_ANONYMOUS;
7334 return 0;
7336 _ACEOF
7337 rm -f conftest.$ac_objext
7338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7339 (eval $ac_compile) 2>conftest.er1
7340 ac_status=$?
7341 grep -v '^ *+' conftest.er1 >conftest.err
7342 rm -f conftest.er1
7343 cat conftest.err >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } &&
7346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 (eval $ac_try) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; } &&
7352 { ac_try='test -s conftest.$ac_objext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 (eval $ac_try) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 gcc_cv_decl_map_anon=yes
7359 else
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7363 gcc_cv_decl_map_anon=no
7365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7367 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7368 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7370 if test $gcc_cv_decl_map_anon = no; then
7371 gcc_cv_func_mmap_anon=no
7372 else
7373 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7374 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7375 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7379 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7380 # doesn't give anonymous zeroed pages with the same properties listed
7381 # above for use of /dev/zero.
7382 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7383 case "$host_os" in
7384 vms* | cygwin* | pe | mingw* | sco* | udk* )
7385 gcc_cv_func_mmap_anon=no ;;
7387 gcc_cv_func_mmap_anon=yes;;
7388 esac
7390 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7391 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7395 if test $gcc_cv_func_mmap_file = yes; then
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_MMAP_FILE 1
7399 _ACEOF
7402 if test $gcc_cv_func_mmap_dev_zero = yes; then
7404 cat >>confdefs.h <<\_ACEOF
7405 #define HAVE_MMAP_DEV_ZERO 1
7406 _ACEOF
7409 if test $gcc_cv_func_mmap_anon = yes; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_MMAP_ANON 1
7413 _ACEOF
7418 case "${host}" in
7419 *-*-*vms*)
7420 # Under VMS, vfork works very differently than on Unix. The standard test
7421 # won't work, and it isn't easily adaptable. It makes more sense to
7422 # just force it.
7423 ac_cv_func_vfork_works=yes
7425 esac
7426 echo "$as_me:$LINENO: checking for pid_t" >&5
7427 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7428 if test "${ac_cv_type_pid_t+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431 cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h. */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 $ac_includes_default
7439 main ()
7441 if ((pid_t *) 0)
7442 return 0;
7443 if (sizeof (pid_t))
7444 return 0;
7446 return 0;
7448 _ACEOF
7449 rm -f conftest.$ac_objext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451 (eval $ac_compile) 2>conftest.er1
7452 ac_status=$?
7453 grep -v '^ *+' conftest.er1 >conftest.err
7454 rm -f conftest.er1
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } &&
7458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; } &&
7464 { ac_try='test -s conftest.$ac_objext'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; }; then
7470 ac_cv_type_pid_t=yes
7471 else
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7475 ac_cv_type_pid_t=no
7477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7479 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7480 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7481 if test $ac_cv_type_pid_t = yes; then
7483 else
7485 cat >>confdefs.h <<_ACEOF
7486 #define pid_t int
7487 _ACEOF
7493 for ac_header in unistd.h vfork.h
7495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7496 echo "$as_me:$LINENO: checking for $ac_header" >&5
7497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 #include <$ac_header>
7508 _ACEOF
7509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } >/dev/null; then
7517 if test -s conftest.err; then
7518 ac_cpp_err=$ac_c_preproc_warn_flag
7519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7520 else
7521 ac_cpp_err=
7523 else
7524 ac_cpp_err=yes
7526 if test -z "$ac_cpp_err"; then
7527 eval "$as_ac_Header=yes"
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 eval "$as_ac_Header=no"
7534 rm -f conftest.err conftest.$ac_ext
7536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7539 cat >>confdefs.h <<_ACEOF
7540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7541 _ACEOF
7544 done
7548 for ac_func in fork vfork
7550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7551 echo "$as_me:$LINENO: checking for $ac_func" >&5
7552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7553 if eval "test \"\${$as_ac_var+set}\" = set"; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556 cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h. */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7564 #define $ac_func innocuous_$ac_func
7566 /* System header to define __stub macros and hopefully few prototypes,
7567 which can conflict with char $ac_func (); below.
7568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7569 <limits.h> exists even on freestanding compilers. */
7571 #ifdef __STDC__
7572 # include <limits.h>
7573 #else
7574 # include <assert.h>
7575 #endif
7577 #undef $ac_func
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 #ifdef __cplusplus
7581 extern "C"
7583 #endif
7584 /* We use char because int might match the return type of a gcc2
7585 builtin and then its argument prototype would still apply. */
7586 char $ac_func ();
7587 /* The GNU C library defines this for functions which it implements
7588 to always fail with ENOSYS. Some functions are actually named
7589 something starting with __ and the normal name is an alias. */
7590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7591 choke me
7592 #else
7593 char (*f) () = $ac_func;
7594 #endif
7595 #ifdef __cplusplus
7597 #endif
7600 main ()
7602 return f != $ac_func;
7604 return 0;
7606 _ACEOF
7607 rm -f conftest.$ac_objext conftest$ac_exeext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609 (eval $ac_link) 2>conftest.er1
7610 ac_status=$?
7611 grep -v '^ *+' conftest.er1 >conftest.err
7612 rm -f conftest.er1
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } &&
7616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 eval "$as_ac_var=yes"
7629 else
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 eval "$as_ac_var=no"
7635 rm -f conftest.err conftest.$ac_objext \
7636 conftest$ac_exeext conftest.$ac_ext
7638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7640 if test `eval echo '${'$as_ac_var'}'` = yes; then
7641 cat >>confdefs.h <<_ACEOF
7642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7643 _ACEOF
7646 done
7648 if test "x$ac_cv_func_fork" = xyes; then
7649 echo "$as_me:$LINENO: checking for working fork" >&5
7650 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7651 if test "${ac_cv_func_fork_works+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654 if test "$cross_compiling" = yes; then
7655 ac_cv_func_fork_works=cross
7656 else
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* By Ruediger Kuhlmann. */
7659 #include <sys/types.h>
7660 #if HAVE_UNISTD_H
7661 # include <unistd.h>
7662 #endif
7663 /* Some systems only have a dummy stub for fork() */
7664 int main ()
7666 if (fork() < 0)
7667 exit (1);
7668 exit (0);
7670 _ACEOF
7671 rm -f conftest$ac_exeext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7673 (eval $ac_link) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; }; then
7682 ac_cv_func_fork_works=yes
7683 else
7684 echo "$as_me: program exited with status $ac_status" >&5
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 ( exit $ac_status )
7689 ac_cv_func_fork_works=no
7691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7694 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7695 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7697 else
7698 ac_cv_func_fork_works=$ac_cv_func_fork
7700 if test "x$ac_cv_func_fork_works" = xcross; then
7701 case $host in
7702 *-*-amigaos* | *-*-msdosdjgpp*)
7703 # Override, as these systems have only a dummy fork() stub
7704 ac_cv_func_fork_works=no
7707 ac_cv_func_fork_works=yes
7709 esac
7710 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7711 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7713 ac_cv_func_vfork_works=$ac_cv_func_vfork
7714 if test "x$ac_cv_func_vfork" = xyes; then
7715 echo "$as_me:$LINENO: checking for working vfork" >&5
7716 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7717 if test "${ac_cv_func_vfork_works+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 if test "$cross_compiling" = yes; then
7721 ac_cv_func_vfork_works=cross
7722 else
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h. */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 /* Thanks to Paul Eggert for this test. */
7730 #include <stdio.h>
7731 #include <stdlib.h>
7732 #include <sys/types.h>
7733 #include <sys/stat.h>
7734 #include <sys/wait.h>
7735 #if HAVE_UNISTD_H
7736 # include <unistd.h>
7737 #endif
7738 #if HAVE_VFORK_H
7739 # include <vfork.h>
7740 #endif
7741 /* On some sparc systems, changes by the child to local and incoming
7742 argument registers are propagated back to the parent. The compiler
7743 is told about this with #include <vfork.h>, but some compilers
7744 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7745 static variable whose address is put into a register that is
7746 clobbered by the vfork. */
7747 static void
7748 #ifdef __cplusplus
7749 sparc_address_test (int arg)
7750 # else
7751 sparc_address_test (arg) int arg;
7752 #endif
7754 static pid_t child;
7755 if (!child) {
7756 child = vfork ();
7757 if (child < 0) {
7758 perror ("vfork");
7759 _exit(2);
7761 if (!child) {
7762 arg = getpid();
7763 write(-1, "", 0);
7764 _exit (arg);
7770 main ()
7772 pid_t parent = getpid ();
7773 pid_t child;
7775 sparc_address_test (0);
7777 child = vfork ();
7779 if (child == 0) {
7780 /* Here is another test for sparc vfork register problems. This
7781 test uses lots of local variables, at least as many local
7782 variables as main has allocated so far including compiler
7783 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7784 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7785 reuse the register of parent for one of the local variables,
7786 since it will think that parent can't possibly be used any more
7787 in this routine. Assigning to the local variable will thus
7788 munge parent in the parent process. */
7789 pid_t
7790 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7791 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7792 /* Convince the compiler that p..p7 are live; otherwise, it might
7793 use the same hardware register for all 8 local variables. */
7794 if (p != p1 || p != p2 || p != p3 || p != p4
7795 || p != p5 || p != p6 || p != p7)
7796 _exit(1);
7798 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7799 from child file descriptors. If the child closes a descriptor
7800 before it execs or exits, this munges the parent's descriptor
7801 as well. Test for this by closing stdout in the child. */
7802 _exit(close(fileno(stdout)) != 0);
7803 } else {
7804 int status;
7805 struct stat st;
7807 while (wait(&status) != child)
7809 exit(
7810 /* Was there some problem with vforking? */
7811 child < 0
7813 /* Did the child fail? (This shouldn't happen.) */
7814 || status
7816 /* Did the vfork/compiler bug occur? */
7817 || parent != getpid()
7819 /* Did the file descriptor bug occur? */
7820 || fstat(fileno(stdout), &st) != 0
7824 _ACEOF
7825 rm -f conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_func_vfork_works=yes
7837 else
7838 echo "$as_me: program exited with status $ac_status" >&5
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7842 ( exit $ac_status )
7843 ac_cv_func_vfork_works=no
7845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7848 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7849 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7852 if test "x$ac_cv_func_fork_works" = xcross; then
7853 ac_cv_func_vfork_works=$ac_cv_func_vfork
7854 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7855 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7858 if test "x$ac_cv_func_vfork_works" = xyes; then
7860 cat >>confdefs.h <<\_ACEOF
7861 #define HAVE_WORKING_VFORK 1
7862 _ACEOF
7864 else
7866 cat >>confdefs.h <<\_ACEOF
7867 #define vfork fork
7868 _ACEOF
7871 if test "x$ac_cv_func_fork_works" = xyes; then
7873 cat >>confdefs.h <<\_ACEOF
7874 #define HAVE_WORKING_FORK 1
7875 _ACEOF
7882 am_cv_lib_iconv_ldpath=
7884 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7885 if test "${with_libiconv_prefix+set}" = set; then
7886 withval="$with_libiconv_prefix"
7888 for dir in `echo "$withval" | tr : ' '`; do
7889 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7890 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7891 done
7896 for ac_header in iconv.h
7898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7899 echo "$as_me:$LINENO: checking for $ac_header" >&5
7900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 #include <$ac_header>
7911 _ACEOF
7912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } >/dev/null; then
7920 if test -s conftest.err; then
7921 ac_cpp_err=$ac_c_preproc_warn_flag
7922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7923 else
7924 ac_cpp_err=
7926 else
7927 ac_cpp_err=yes
7929 if test -z "$ac_cpp_err"; then
7930 eval "$as_ac_Header=yes"
7931 else
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 eval "$as_ac_Header=no"
7937 rm -f conftest.err conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7942 cat >>confdefs.h <<_ACEOF
7943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7944 _ACEOF
7947 done
7950 echo "$as_me:$LINENO: checking for iconv" >&5
7951 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7952 if test "${am_cv_func_iconv+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7956 am_cv_func_iconv="no, consider installing GNU libiconv"
7957 am_cv_lib_iconv=no
7958 cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h. */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 #include <stdlib.h>
7965 #include <iconv.h>
7967 main ()
7969 iconv_t cd = iconv_open("","");
7970 iconv(cd,NULL,NULL,NULL,NULL);
7971 iconv_close(cd);
7973 return 0;
7975 _ACEOF
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7978 (eval $ac_link) 2>conftest.er1
7979 ac_status=$?
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try='test -s conftest$ac_exeext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 am_cv_func_iconv=yes
7998 else
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8003 rm -f conftest.err conftest.$ac_objext \
8004 conftest$ac_exeext conftest.$ac_ext
8005 if test "$am_cv_func_iconv" != yes; then
8006 am_save_LIBS="$LIBS"
8007 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8008 cat >conftest.$ac_ext <<_ACEOF
8009 /* confdefs.h. */
8010 _ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8014 #include <stdlib.h>
8015 #include <iconv.h>
8017 main ()
8019 iconv_t cd = iconv_open("","");
8020 iconv(cd,NULL,NULL,NULL,NULL);
8021 iconv_close(cd);
8023 return 0;
8025 _ACEOF
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8028 (eval $ac_link) 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; } &&
8041 { ac_try='test -s conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 am_cv_lib_iconv=yes
8048 am_cv_func_iconv=yes
8049 else
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8054 rm -f conftest.err conftest.$ac_objext \
8055 conftest$ac_exeext conftest.$ac_ext
8056 LIBS="$am_save_LIBS"
8060 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8061 echo "${ECHO_T}$am_cv_func_iconv" >&6
8062 if test "$am_cv_func_iconv" = yes; then
8064 cat >>confdefs.h <<\_ACEOF
8065 #define HAVE_ICONV 1
8066 _ACEOF
8068 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8069 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8070 if test "${am_cv_proto_iconv+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8081 #include <stdlib.h>
8082 #include <iconv.h>
8083 extern
8084 #ifdef __cplusplus
8086 #endif
8087 #if defined(__STDC__) || defined(__cplusplus)
8088 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8089 #else
8090 size_t iconv();
8091 #endif
8094 main ()
8098 return 0;
8100 _ACEOF
8101 rm -f conftest.$ac_objext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103 (eval $ac_compile) 2>conftest.er1
8104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
8110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; } &&
8116 { ac_try='test -s conftest.$ac_objext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 am_cv_proto_iconv_arg1=""
8123 else
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 am_cv_proto_iconv_arg1="const"
8129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8130 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);"
8133 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8134 echo "$as_me:$LINENO: result: ${ac_t:-
8135 }$am_cv_proto_iconv" >&5
8136 echo "${ECHO_T}${ac_t:-
8137 }$am_cv_proto_iconv" >&6
8139 cat >>confdefs.h <<_ACEOF
8140 #define ICONV_CONST $am_cv_proto_iconv_arg1
8141 _ACEOF
8144 LIBICONV=
8145 if test "$am_cv_lib_iconv" = yes; then
8146 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8150 # Until we have in-tree GNU iconv:
8151 LIBICONV_DEP=
8155 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8156 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8157 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 #include <locale.h>
8168 main ()
8170 return LC_MESSAGES
8172 return 0;
8174 _ACEOF
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177 (eval $ac_link) 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; } &&
8190 { ac_try='test -s conftest$ac_exeext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 (eval $ac_try) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 am_cv_val_LC_MESSAGES=yes
8197 else
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 am_cv_val_LC_MESSAGES=no
8203 rm -f conftest.err conftest.$ac_objext \
8204 conftest$ac_exeext conftest.$ac_ext
8206 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8207 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8208 if test $am_cv_val_LC_MESSAGES = yes; then
8210 cat >>confdefs.h <<\_ACEOF
8211 #define HAVE_LC_MESSAGES 1
8212 _ACEOF
8217 # We will need to find libiberty.h and ansidecl.h
8218 saved_CFLAGS="$CFLAGS"
8219 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8220 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8221 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8222 fprintf_unlocked strstr errno snprintf vasprintf \
8223 malloc realloc calloc free basename getopt clock
8225 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8226 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8227 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8228 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 #undef $ac_tr_decl
8238 #define $ac_tr_decl 1
8240 #include "ansidecl.h"
8241 #include "system.h"
8244 main ()
8246 #ifndef $ac_func
8247 char *(*pfn) = (char *(*)) $ac_func ;
8248 #endif
8250 return 0;
8252 _ACEOF
8253 rm -f conftest.$ac_objext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8255 (eval $ac_compile) 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; } &&
8268 { ac_try='test -s conftest.$ac_objext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 (eval $ac_try) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 eval "gcc_cv_have_decl_$ac_func=yes"
8275 else
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 eval "gcc_cv_have_decl_$ac_func=no"
8281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8285 echo "$as_me:$LINENO: result: yes" >&5
8286 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8287 #define $ac_tr_decl 1
8288 _ACEOF
8290 else
8291 echo "$as_me:$LINENO: result: no" >&5
8292 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8293 #define $ac_tr_decl 0
8294 _ACEOF
8298 done
8299 if test x = y ; then
8301 cat >>confdefs.h <<\_ACEOF
8302 #define HAVE_DECL_GETENV 1
8303 _ACEOF
8305 cat >>confdefs.h <<\_ACEOF
8306 #define HAVE_DECL_ATOL 1
8307 _ACEOF
8309 cat >>confdefs.h <<\_ACEOF
8310 #define HAVE_DECL_SBRK 1
8311 _ACEOF
8313 cat >>confdefs.h <<\_ACEOF
8314 #define HAVE_DECL_ABORT 1
8315 _ACEOF
8317 cat >>confdefs.h <<\_ACEOF
8318 #define HAVE_DECL_ATOF 1
8319 _ACEOF
8321 cat >>confdefs.h <<\_ACEOF
8322 #define HAVE_DECL_GETCWD 1
8323 _ACEOF
8325 cat >>confdefs.h <<\_ACEOF
8326 #define HAVE_DECL_GETWD 1
8327 _ACEOF
8330 cat >>confdefs.h <<\_ACEOF
8331 #define HAVE_DECL_STRSIGNAL 1
8332 _ACEOF
8334 cat >>confdefs.h <<\_ACEOF
8335 #define HAVE_DECL_PUTC_UNLOCKED 1
8336 _ACEOF
8338 cat >>confdefs.h <<\_ACEOF
8339 #define HAVE_DECL_FPUTS_UNLOCKED 1
8340 _ACEOF
8342 cat >>confdefs.h <<\_ACEOF
8343 #define HAVE_DECL_FWRITE_UNLOCKED 1
8344 _ACEOF
8347 cat >>confdefs.h <<\_ACEOF
8348 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8349 _ACEOF
8351 cat >>confdefs.h <<\_ACEOF
8352 #define HAVE_DECL_STRSTR 1
8353 _ACEOF
8355 cat >>confdefs.h <<\_ACEOF
8356 #define HAVE_DECL_ERRNO 1
8357 _ACEOF
8359 cat >>confdefs.h <<\_ACEOF
8360 #define HAVE_DECL_SNPRINTF 1
8361 _ACEOF
8363 cat >>confdefs.h <<\_ACEOF
8364 #define HAVE_DECL_VASPRINTF 1
8365 _ACEOF
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_DECL_MALLOC 1
8370 _ACEOF
8372 cat >>confdefs.h <<\_ACEOF
8373 #define HAVE_DECL_REALLOC 1
8374 _ACEOF
8376 cat >>confdefs.h <<\_ACEOF
8377 #define HAVE_DECL_CALLOC 1
8378 _ACEOF
8380 cat >>confdefs.h <<\_ACEOF
8381 #define HAVE_DECL_FREE 1
8382 _ACEOF
8384 cat >>confdefs.h <<\_ACEOF
8385 #define HAVE_DECL_BASENAME 1
8386 _ACEOF
8388 cat >>confdefs.h <<\_ACEOF
8389 #define HAVE_DECL_GETOPT 1
8390 _ACEOF
8392 cat >>confdefs.h <<\_ACEOF
8393 #define HAVE_DECL_CLOCK 1
8394 _ACEOF
8398 for ac_func in getrlimit setrlimit getrusage
8400 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8401 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8402 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8403 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 #undef $ac_tr_decl
8413 #define $ac_tr_decl 1
8415 #include "ansidecl.h"
8416 #include "system.h"
8417 #ifdef HAVE_SYS_RESOURCE_H
8418 #include <sys/resource.h>
8419 #endif
8423 main ()
8425 #ifndef $ac_func
8426 char *(*pfn) = (char *(*)) $ac_func ;
8427 #endif
8429 return 0;
8431 _ACEOF
8432 rm -f conftest.$ac_objext
8433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8434 (eval $ac_compile) 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try='test -s conftest.$ac_objext'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 eval "gcc_cv_have_decl_$ac_func=yes"
8454 else
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 eval "gcc_cv_have_decl_$ac_func=no"
8460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8463 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8464 echo "$as_me:$LINENO: result: yes" >&5
8465 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8466 #define $ac_tr_decl 1
8467 _ACEOF
8469 else
8470 echo "$as_me:$LINENO: result: no" >&5
8471 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8472 #define $ac_tr_decl 0
8473 _ACEOF
8477 done
8478 if test x = y ; then
8480 cat >>confdefs.h <<\_ACEOF
8481 #define HAVE_DECL_GETRLIMIT 1
8482 _ACEOF
8484 cat >>confdefs.h <<\_ACEOF
8485 #define HAVE_DECL_SETRLIMIT 1
8486 _ACEOF
8488 cat >>confdefs.h <<\_ACEOF
8489 #define HAVE_DECL_GETRUSAGE 1
8490 _ACEOF
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8501 #include "ansidecl.h"
8502 #include "system.h"
8503 #ifdef HAVE_SYS_RESOURCE_H
8504 #include <sys/resource.h>
8505 #endif
8508 main ()
8510 rlim_t l = 0;
8512 return 0;
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest.$ac_objext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8542 cat >>confdefs.h <<\_ACEOF
8543 #define rlim_t long
8544 _ACEOF
8547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8549 for ac_func in ldgetname
8551 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8552 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8553 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8554 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h. */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563 #undef $ac_tr_decl
8564 #define $ac_tr_decl 1
8566 #include "ansidecl.h"
8567 #include "system.h"
8568 #ifdef HAVE_LDFCN_H
8569 #include <ldfcn.h>
8570 #endif
8574 main ()
8576 #ifndef $ac_func
8577 char *(*pfn) = (char *(*)) $ac_func ;
8578 #endif
8580 return 0;
8582 _ACEOF
8583 rm -f conftest.$ac_objext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585 (eval $ac_compile) 2>conftest.er1
8586 ac_status=$?
8587 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } &&
8598 { ac_try='test -s conftest.$ac_objext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 eval "gcc_cv_have_decl_$ac_func=yes"
8605 else
8606 echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8609 eval "gcc_cv_have_decl_$ac_func=no"
8611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8614 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8615 echo "$as_me:$LINENO: result: yes" >&5
8616 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8617 #define $ac_tr_decl 1
8618 _ACEOF
8620 else
8621 echo "$as_me:$LINENO: result: no" >&5
8622 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8623 #define $ac_tr_decl 0
8624 _ACEOF
8628 done
8629 if test x = y ; then
8631 cat >>confdefs.h <<\_ACEOF
8632 #define HAVE_DECL_LDGETNAME 1
8633 _ACEOF
8637 for ac_func in times
8639 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8640 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8641 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8642 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h. */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 #undef $ac_tr_decl
8652 #define $ac_tr_decl 1
8654 #include "ansidecl.h"
8655 #include "system.h"
8656 #ifdef HAVE_SYS_TIMES_H
8657 #include <sys/times.h>
8658 #endif
8662 main ()
8664 #ifndef $ac_func
8665 char *(*pfn) = (char *(*)) $ac_func ;
8666 #endif
8668 return 0;
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8673 (eval $ac_compile) 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try='test -s conftest.$ac_objext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 eval "gcc_cv_have_decl_$ac_func=yes"
8693 else
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 eval "gcc_cv_have_decl_$ac_func=no"
8699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8702 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8703 echo "$as_me:$LINENO: result: yes" >&5
8704 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8705 #define $ac_tr_decl 1
8706 _ACEOF
8708 else
8709 echo "$as_me:$LINENO: result: no" >&5
8710 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8711 #define $ac_tr_decl 0
8712 _ACEOF
8716 done
8717 if test x = y ; then
8719 cat >>confdefs.h <<\_ACEOF
8720 #define HAVE_DECL_TIMES 1
8721 _ACEOF
8725 # More time-related stuff.
8726 echo "$as_me:$LINENO: checking for struct tms" >&5
8727 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8728 if test "${ac_cv_struct_tms+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 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 #include "ansidecl.h"
8740 #include "system.h"
8741 #ifdef HAVE_SYS_TIMES_H
8742 #include <sys/times.h>
8743 #endif
8746 main ()
8748 struct tms tms;
8750 return 0;
8752 _ACEOF
8753 rm -f conftest.$ac_objext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_cv_struct_tms=yes
8775 else
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8779 ac_cv_struct_tms=no
8781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8783 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8784 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8785 if test $ac_cv_struct_tms = yes; then
8787 cat >>confdefs.h <<\_ACEOF
8788 #define HAVE_STRUCT_TMS 1
8789 _ACEOF
8793 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8794 # revisit after autoconf 2.50.
8795 echo "$as_me:$LINENO: checking for clock_t" >&5
8796 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8797 if test "${gcc_cv_type_clock_t+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8808 #include "ansidecl.h"
8809 #include "system.h"
8812 main ()
8814 clock_t x;
8816 return 0;
8818 _ACEOF
8819 rm -f conftest.$ac_objext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8821 (eval $ac_compile) 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; } &&
8834 { ac_try='test -s conftest.$ac_objext'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 (eval $ac_try) 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
8840 gcc_cv_type_clock_t=yes
8841 else
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8845 gcc_cv_type_clock_t=no
8847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8849 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8850 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8851 if test $gcc_cv_type_clock_t = yes; then
8853 cat >>confdefs.h <<\_ACEOF
8854 #define HAVE_CLOCK_T 1
8855 _ACEOF
8859 echo "$as_me:$LINENO: checking for uchar" >&5
8860 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8861 if test "${gcc_cv_type_uchar+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8871 #include "ansidecl.h"
8872 #include "system.h"
8875 main ()
8877 if ((uchar *)0) return 0;
8878 if (sizeof(uchar)) return 0;
8880 return 0;
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885 (eval $ac_compile) 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; } &&
8898 { ac_try='test -s conftest.$ac_objext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 (eval $ac_try) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 ac_cv_type_uchar=yes
8905 else
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 ac_cv_type_uchar=no
8911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8913 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8914 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8915 if test $ac_cv_type_uchar = yes; then
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_UCHAR 1
8919 _ACEOF
8923 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8924 CFLAGS="$saved_CFLAGS"
8926 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8927 if test "${enable_initfini_array+set}" = set; then
8928 enableval="$enable_initfini_array"
8930 else
8932 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8933 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8934 if test "${gcc_cv_initfini_array+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937 if test "$cross_compiling" = yes; then
8938 gcc_cv_initfini_array=no
8939 else
8940 cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h. */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8947 static int x = -1;
8948 int main (void) { return x; }
8949 int foo (void) { x = 0; }
8950 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8951 _ACEOF
8952 rm -f conftest$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954 (eval $ac_link) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 gcc_cv_initfini_array=yes
8964 else
8965 echo "$as_me: program exited with status $ac_status" >&5
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8969 ( exit $ac_status )
8970 gcc_cv_initfini_array=no
8972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8975 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8976 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8977 enable_initfini_array=$gcc_cv_initfini_array
8980 if test $enable_initfini_array = yes; then
8982 cat >>confdefs.h <<\_ACEOF
8983 #define HAVE_INITFINI_ARRAY 1
8984 _ACEOF
8988 # mkdir takes a single argument on some systems.
8989 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8990 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8991 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994 cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h. */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9001 #include <sys/types.h>
9002 #ifdef HAVE_SYS_STAT_H
9003 # include <sys/stat.h>
9004 #endif
9005 #ifdef HAVE_UNISTD_H
9006 # include <unistd.h>
9007 #endif
9008 #ifdef HAVE_DIRECT_H
9009 # include <direct.h>
9010 #endif
9012 main ()
9014 mkdir ("foo", 0);
9016 return 0;
9018 _ACEOF
9019 rm -f conftest.$ac_objext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021 (eval $ac_compile) 2>conftest.er1
9022 ac_status=$?
9023 grep -v '^ *+' conftest.er1 >conftest.err
9024 rm -f conftest.er1
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } &&
9028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 (eval $ac_try) 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; } &&
9034 { ac_try='test -s conftest.$ac_objext'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 (eval $ac_try) 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 gcc_cv_mkdir_takes_one_arg=no
9041 else
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 gcc_cv_mkdir_takes_one_arg=yes
9047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9049 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9050 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9051 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9053 cat >>confdefs.h <<\_ACEOF
9054 #define MKDIR_TAKES_ONE_ARG 1
9055 _ACEOF
9060 # File extensions
9061 manext='.1'
9062 objext='.o'
9066 # With Setjmp/Longjmp based exception handling.
9067 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9068 if test "${enable_sjlj_exceptions+set}" = set; then
9069 enableval="$enable_sjlj_exceptions"
9070 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9072 cat >>confdefs.h <<_ACEOF
9073 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9074 _ACEOF
9078 if test x$host = x$target; then
9079 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9080 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9081 if test "${ac_cv_lib_unwind_main+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084 ac_check_lib_save_LIBS=$LIBS
9085 LIBS="-lunwind $LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9095 main ()
9097 main ();
9099 return 0;
9101 _ACEOF
9102 rm -f conftest.$ac_objext conftest$ac_exeext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 (eval $ac_try) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; } &&
9117 { ac_try='test -s conftest$ac_exeext'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 (eval $ac_try) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9123 ac_cv_lib_unwind_main=yes
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 ac_cv_lib_unwind_main=no
9130 rm -f conftest.err conftest.$ac_objext \
9131 conftest$ac_exeext conftest.$ac_ext
9132 LIBS=$ac_check_lib_save_LIBS
9134 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9135 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9136 if test $ac_cv_lib_unwind_main = yes; then
9137 use_libunwind_default=yes
9138 else
9139 use_libunwind_default=no
9142 else
9143 use_libunwind_default=no
9145 # Use libunwind based exception handling.
9146 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9147 if test "${enable_libunwind_exceptions+set}" = set; then
9148 enableval="$enable_libunwind_exceptions"
9149 use_libunwind_exceptions=$enableval
9150 else
9151 use_libunwind_exceptions=$use_libunwind_default
9153 if test x"$use_libunwind_exceptions" = xyes; then
9155 cat >>confdefs.h <<\_ACEOF
9156 #define USE_LIBUNWIND_EXCEPTIONS 1
9157 _ACEOF
9161 # --------------------------------------------------------
9162 # Build, host, and target specific configuration fragments
9163 # --------------------------------------------------------
9165 # Collect build-machine-specific information.
9166 . ${srcdir}/config.build
9168 # Collect host-machine-specific information.
9169 . ${srcdir}/config.host
9171 target_gtfiles=
9173 # Collect target-machine-specific information.
9174 . ${srcdir}/config.gcc
9176 extra_objs="${host_extra_objs} ${extra_objs}"
9177 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9179 # Default the target-machine variables that were not explicitly set.
9180 if test x"$tm_file" = x
9181 then tm_file=$cpu_type/$cpu_type.h; fi
9183 if test x"$extra_headers" = x
9184 then extra_headers=; fi
9186 if test x$md_file = x
9187 then md_file=$cpu_type/$cpu_type.md; fi
9189 if test x$out_file = x
9190 then out_file=$cpu_type/$cpu_type.c; fi
9192 if test x"$tmake_file" = x
9193 then tmake_file=$cpu_type/t-$cpu_type
9196 if test x"$dwarf2" = xyes
9197 then tm_file="$tm_file tm-dwarf2.h"
9200 # Say what files are being used for the output code and MD file.
9201 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9202 echo "Using \`$srcdir/config/$md_file' as machine description file."
9204 # If any of the xm_file variables contain nonexistent files, warn
9205 # about them and drop them.
9208 for x in $build_xm_file; do
9209 if test -f $srcdir/config/$x
9210 then bx="$bx $x"
9211 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9212 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9214 done
9215 build_xm_file="$bx"
9218 for x in $host_xm_file; do
9219 if test -f $srcdir/config/$x
9220 then hx="$hx $x"
9221 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9222 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9224 done
9225 host_xm_file="$hx"
9228 for x in $xm_file; do
9229 if test -f $srcdir/config/$x
9230 then tx="$tx $x"
9231 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9232 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9234 done
9235 xm_file="$tx"
9237 count=a
9238 for f in $tm_file; do
9239 count=${count}x
9240 done
9241 if test $count = ax; then
9242 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9243 else
9244 echo "Using the following target machine macro files:"
9245 for f in $tm_file; do
9246 echo " $srcdir/config/$f"
9247 done
9250 if test x$need_64bit_hwint = xyes; then
9252 cat >>confdefs.h <<\_ACEOF
9253 #define NEED_64BIT_HOST_WIDE_INT 1
9254 _ACEOF
9258 count=a
9259 for f in $host_xm_file; do
9260 count=${count}x
9261 done
9262 if test $count = a; then
9264 elif test $count = ax; then
9265 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9266 else
9267 echo "Using the following host machine macro files:"
9268 for f in $host_xm_file; do
9269 echo " $srcdir/config/$f"
9270 done
9272 echo "Using ${out_host_hook_obj} for host machine hooks."
9274 if test "$host_xm_file" != "$build_xm_file"; then
9275 count=a
9276 for f in $build_xm_file; do
9277 count=${count}x
9278 done
9279 if test $count = a; then
9281 elif test $count = ax; then
9282 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9283 else
9284 echo "Using the following build machine macro files:"
9285 for f in $build_xm_file; do
9286 echo " $srcdir/config/$f"
9287 done
9291 # ---------
9292 # Threading
9293 # ---------
9295 # Check if a valid thread package
9296 case ${enable_threads_flag} in
9297 "" | no)
9298 # No threads
9299 target_thread_file='single'
9301 yes)
9302 # default
9303 target_thread_file='single'
9305 aix | dce | gnat | irix | posix | rtems | \
9306 single | solaris | vxworks | win32 )
9307 target_thread_file=${enable_threads_flag}
9310 echo "${enable_threads_flag} is an unknown thread package" 1>&2
9311 exit 1
9313 esac
9315 if test x${thread_file} = x; then
9316 # No thread file set by target-specific clauses in config.gcc,
9317 # so use file chosen by default logic above
9318 thread_file=${target_thread_file}
9321 # Make gthr-default.h if we have a thread file.
9322 gthread_flags=
9323 if test $thread_file != single; then
9324 rm -f gthr-default.h
9325 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9326 gthread_flags=-DHAVE_GTHR_DEFAULT
9330 # --------
9331 # UNSORTED
9332 # --------
9334 if test x$enable___cxa_atexit = xyes || \
9335 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9336 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9337 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9338 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h. */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9349 #define __cxa_atexit innocuous___cxa_atexit
9351 /* System header to define __stub macros and hopefully few prototypes,
9352 which can conflict with char __cxa_atexit (); below.
9353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9354 <limits.h> exists even on freestanding compilers. */
9356 #ifdef __STDC__
9357 # include <limits.h>
9358 #else
9359 # include <assert.h>
9360 #endif
9362 #undef __cxa_atexit
9364 /* Override any gcc2 internal prototype to avoid an error. */
9365 #ifdef __cplusplus
9366 extern "C"
9368 #endif
9369 /* We use char because int might match the return type of a gcc2
9370 builtin and then its argument prototype would still apply. */
9371 char __cxa_atexit ();
9372 /* The GNU C library defines this for functions which it implements
9373 to always fail with ENOSYS. Some functions are actually named
9374 something starting with __ and the normal name is an alias. */
9375 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9376 choke me
9377 #else
9378 char (*f) () = __cxa_atexit;
9379 #endif
9380 #ifdef __cplusplus
9382 #endif
9385 main ()
9387 return f != __cxa_atexit;
9389 return 0;
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_cv_func___cxa_atexit=yes
9414 else
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 ac_cv_func___cxa_atexit=no
9420 rm -f conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9423 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9424 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9425 if test $ac_cv_func___cxa_atexit = yes; then
9427 cat >>confdefs.h <<\_ACEOF
9428 #define DEFAULT_USE_CXA_ATEXIT 1
9429 _ACEOF
9431 else
9432 echo "__cxa_atexit can't be enabled on this target"
9437 # Look for a file containing extra machine modes.
9438 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9439 extra_modes_file='$(srcdir)'/config/${extra_modes}
9442 cat >>confdefs.h <<_ACEOF
9443 #define EXTRA_MODES_FILE "config/$extra_modes"
9444 _ACEOF
9448 # auto-host.h is the file containing items generated by autoconf and is
9449 # the first file included by config.h.
9450 # If host=build, it is correct to have bconfig include auto-host.h
9451 # as well. If host!=build, we are in error and need to do more
9452 # work to find out the build config parameters.
9453 if test x$host = x$build
9454 then
9455 build_auto=auto-host.h
9456 FORBUILD=..
9457 else
9458 # We create a subdir, then run autoconf in the subdir.
9459 # To prevent recursion we set host and build for the new
9460 # invocation of configure to the build for this invocation
9461 # of configure.
9462 tempdir=build.$$
9463 rm -rf $tempdir
9464 mkdir $tempdir
9465 cd $tempdir
9466 case ${srcdir} in
9467 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9468 *) realsrcdir=../${srcdir};;
9469 esac
9470 saved_CFLAGS="${CFLAGS}"
9471 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9472 ${realsrcdir}/configure \
9473 --enable-languages=${enable_languages-all} \
9474 --target=$target_alias --host=$build_alias --build=$build_alias
9475 CFLAGS="${saved_CFLAGS}"
9477 # We just finished tests for the build machine, so rename
9478 # the file auto-build.h in the gcc directory.
9479 mv auto-host.h ../auto-build.h
9480 cd ..
9481 rm -rf $tempdir
9482 build_auto=auto-build.h
9483 FORBUILD=../${build_subdir}
9487 tm_file="${tm_file} defaults.h"
9488 tm_p_file="${tm_p_file} tm-preds.h"
9489 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9490 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9491 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9492 # put this back in temporarily.
9493 xm_file="ansidecl.h ${xm_file}"
9495 # --------
9496 # UNSORTED
9497 # --------
9499 # Get the version trigger filename from the toplevel
9500 if test "${with_gcc_version_trigger+set}" = set; then
9501 gcc_version_trigger=$with_gcc_version_trigger
9502 else
9503 gcc_version_trigger=${srcdir}/version.c
9505 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9506 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9508 # Compile in configure arguments.
9509 if test -f configargs.h ; then
9510 # Being re-configured.
9511 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9512 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9513 else
9514 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9517 # Double all backslashes and backslash all quotes to turn
9518 # gcc_config_arguments into a C string.
9519 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9520 $gcc_config_arguments
9522 gcc_config_arguments_str=`cat conftest.out`
9523 rm -f conftest.out
9525 cat > configargs.h <<EOF
9526 /* Generated automatically. */
9527 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9528 static const char thread_model[] = "$thread_file";
9530 static const struct {
9531 const char *name, *value;
9532 } configure_default_options[] = $configure_default_options;
9535 # Internationalization
9536 PACKAGE=gcc
9537 VERSION="$gcc_version"
9541 # If we haven't got the data from the intl directory,
9542 # assume NLS is disabled.
9543 USE_NLS=no
9544 LIBINTL=
9545 LIBINTL_DEP=
9546 INCINTL=
9547 XGETTEXT=
9548 GMSGFMT=
9549 POSUB=
9550 if test -f ../intl/config.intl; then
9551 . ../intl/config.intl
9553 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9554 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9555 if test x"$USE_NLS" != xyes; then
9556 echo "$as_me:$LINENO: result: no" >&5
9557 echo "${ECHO_T}no" >&6
9558 else
9559 echo "$as_me:$LINENO: result: yes" >&5
9560 echo "${ECHO_T}yes" >&6
9562 cat >>confdefs.h <<\_ACEOF
9563 #define ENABLE_NLS 1
9564 _ACEOF
9567 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9568 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9569 # Look for .po and .gmo files in the source directory.
9570 CATALOGS=
9571 XLINGUAS=
9572 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9573 # If there aren't any .gmo files the shell will give us the
9574 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9575 # weeded out.
9576 case "$cat" in *\**)
9577 continue;;
9578 esac
9579 # The quadruple backslash is collapsed to a double backslash
9580 # by the backticks, then collapsed again by the double quotes,
9581 # leaving us with one backslash in the sed expression (right
9582 # before the dot that mustn't act as a wildcard).
9583 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9584 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9585 # The user is allowed to set LINGUAS to a list of languages to
9586 # install catalogs for. If it's empty that means "all of them."
9587 if test "x$LINGUAS" = x; then
9588 CATALOGS="$CATALOGS $cat"
9589 XLINGUAS="$XLINGUAS $lang"
9590 else
9591 case "$LINGUAS" in *$lang*)
9592 CATALOGS="$CATALOGS $cat"
9593 XLINGUAS="$XLINGUAS $lang"
9595 esac
9597 done
9598 LINGUAS="$XLINGUAS"
9599 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9600 echo "${ECHO_T}$LINGUAS" >&6
9603 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9604 # -liconv on the link line twice.
9605 case "$LIBINTL" in *$LIBICONV*)
9606 LIBICONV= ;;
9607 esac
9609 # Windows32 Registry support for specifying GCC installation paths.
9610 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9611 if test "${enable_win32_registry+set}" = set; then
9612 enableval="$enable_win32_registry"
9615 case $host_os in
9616 win32 | pe | cygwin* | mingw32* | uwin*)
9617 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9618 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9619 if test "x$enable_win32_registry" != xno; then
9621 cat >>confdefs.h <<\_ACEOF
9622 #define ENABLE_WIN32_REGISTRY 1
9623 _ACEOF
9625 echo "$as_me:$LINENO: result: yes" >&5
9626 echo "${ECHO_T}yes" >&6
9627 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9628 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9629 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 else
9632 ac_func_search_save_LIBS=$LIBS
9633 ac_cv_search_RegOpenKeyExA=no
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9641 /* Override any gcc2 internal prototype to avoid an error. */
9642 #ifdef __cplusplus
9643 extern "C"
9644 #endif
9645 /* We use char because int might match the return type of a gcc2
9646 builtin and then its argument prototype would still apply. */
9647 char RegOpenKeyExA ();
9649 main ()
9651 RegOpenKeyExA ();
9653 return 0;
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658 (eval $ac_link) 2>conftest.er1
9659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } &&
9665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_search_RegOpenKeyExA="none required"
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9683 rm -f conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9685 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9686 for ac_lib in advapi32; do
9687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9695 /* Override any gcc2 internal prototype to avoid an error. */
9696 #ifdef __cplusplus
9697 extern "C"
9698 #endif
9699 /* We use char because int might match the return type of a gcc2
9700 builtin and then its argument prototype would still apply. */
9701 char RegOpenKeyExA ();
9703 main ()
9705 RegOpenKeyExA ();
9707 return 0;
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712 (eval $ac_link) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest$ac_exeext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9732 break
9733 else
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9738 rm -f conftest.err conftest.$ac_objext \
9739 conftest$ac_exeext conftest.$ac_ext
9740 done
9742 LIBS=$ac_func_search_save_LIBS
9744 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9745 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9746 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9747 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9751 else
9752 echo "$as_me:$LINENO: result: no" >&5
9753 echo "${ECHO_T}no" >&6
9756 # Check if user specified a different registry key.
9757 case "x${enable_win32_registry}" in
9758 x | xyes)
9759 # default.
9760 gcc_cv_win32_registry_key="$VERSION"
9762 xno)
9763 # no registry lookup.
9764 gcc_cv_win32_registry_key=''
9767 # user-specified key.
9768 gcc_cv_win32_registry_key="$enable_win32_registry"
9770 esac
9772 if test "x$enable_win32_registry" != xno; then
9773 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9774 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9776 cat >>confdefs.h <<_ACEOF
9777 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9778 _ACEOF
9780 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9781 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9784 esac
9786 # Get an absolute path to the GCC top-level source directory
9787 holddir=`${PWDCMD-pwd}`
9788 cd $srcdir
9789 topdir=`${PWDCMD-pwd}`
9790 cd $holddir
9792 # Conditionalize the makefile for this host machine.
9793 xmake_file=
9794 for f in ${host_xmake_file}
9796 if test -f ${srcdir}/config/$f
9797 then
9798 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9800 done
9802 # Conditionalize the makefile for this target machine.
9803 tmake_file_=
9804 for f in ${tmake_file}
9806 if test -f ${srcdir}/config/$f
9807 then
9808 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9810 done
9811 tmake_file="${tmake_file_}"
9813 symbolic_link='ln -s'
9815 # If the host doesn't support symlinks, modify CC in
9816 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9817 # Otherwise, we can use "CC=$(CC)".
9818 rm -f symtest.tem
9819 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9820 then
9821 cc_set_by_configure="\$(CC)"
9822 quoted_cc_set_by_configure="\$(CC)"
9823 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9824 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9825 else
9826 rm -f symtest.tem
9827 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9828 then
9829 symbolic_link="cp -p"
9830 else
9831 symbolic_link="cp"
9833 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9834 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9835 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9836 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9838 rm -f symtest.tem
9840 out_object_file=`basename $out_file .c`.o
9842 tm_file_list=
9843 tm_include_list=
9844 for f in $tm_file; do
9845 case $f in
9846 defaults.h )
9847 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9848 tm_include_list="${tm_include_list} $f"
9851 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9852 tm_include_list="${tm_include_list} config/$f"
9854 esac
9855 done
9857 tm_p_file_list=
9858 tm_p_include_list=
9859 for f in $tm_p_file; do
9860 case $f in
9861 tm-preds.h )
9862 tm_p_file_list="${tm_p_file_list} $f"
9863 tm_p_include_list="${tm_p_include_list} $f"
9866 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9867 tm_p_include_list="${tm_p_include_list} config/$f"
9868 esac
9869 done
9871 xm_file_list=
9872 xm_include_list=
9873 for f in $xm_file; do
9874 case $f in
9875 ansidecl.h )
9876 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9877 xm_include_list="${xm_include_list} $f"
9879 auto-host.h )
9880 xm_file_list="${xm_file_list} $f"
9881 xm_include_list="${xm_include_list} $f"
9884 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9885 xm_include_list="${xm_include_list} config/$f"
9887 esac
9888 done
9890 host_xm_file_list=
9891 host_xm_include_list=
9892 for f in $host_xm_file; do
9893 case $f in
9894 ansidecl.h )
9895 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9896 host_xm_include_list="${host_xm_include_list} $f"
9898 auto-host.h )
9899 host_xm_file_list="${host_xm_file_list} $f"
9900 host_xm_include_list="${host_xm_include_list} $f"
9903 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9904 host_xm_include_list="${host_xm_include_list} config/$f"
9906 esac
9907 done
9909 build_xm_file_list=
9910 for f in $build_xm_file; do
9911 case $f in
9912 ansidecl.h )
9913 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9914 build_xm_include_list="${build_xm_include_list} $f"
9916 auto-build.h | auto-host.h )
9917 build_xm_file_list="${build_xm_file_list} $f"
9918 build_xm_include_list="${build_xm_include_list} $f"
9921 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9922 build_xm_include_list="${build_xm_include_list} config/$f"
9924 esac
9925 done
9927 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9928 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9929 CROSS=
9930 ALL=all.internal
9931 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9932 if test x$host != x$target
9933 then
9934 CROSS="-DCROSS_COMPILE"
9935 ALL=all.cross
9936 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9937 case "$host","$target" in
9938 # Darwin crosses can use the host system's libraries and headers,
9939 # because of the fat library support. Of course, it must be the
9940 # same version of Darwin on both sides. Allow the user to
9941 # just say --target=foo-darwin without a version number to mean
9942 # "the version on this system".
9943 *-*-darwin*,*-*-darwin*)
9944 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9945 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9946 if test $hostos = $targetos -o $targetos = darwin ; then
9947 CROSS=
9948 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9949 with_headers=yes
9953 i?86-*-*,x86_64-*-* \
9954 | powerpc*-*-*,powerpc64*-*-*)
9955 CROSS="$CROSS -DNATIVE_CROSS" ;;
9956 esac
9957 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9958 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9959 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9962 # If this is a cross-compiler that does not
9963 # have its own set of headers then define
9964 # inhibit_libc
9966 # If this is using newlib, without having the headers available now,
9967 # then define inhibit_libc in LIBGCC2_CFLAGS.
9968 # This prevents libgcc2 from containing any code which requires libc
9969 # support.
9970 inhibit_libc=
9971 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9972 test x$with_newlib = xyes ; } &&
9973 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9974 inhibit_libc=-Dinhibit_libc
9978 # When building gcc with a cross-compiler, we need to adjust things so
9979 # that the generator programs are still built with the native compiler.
9980 # Also, we cannot run fixincludes or fix-header.
9982 # These are the normal (build=host) settings:
9983 BUILD_PREFIX=
9984 BUILD_PREFIX_1=ignore-
9985 CC_FOR_BUILD='$(CC)'
9986 BUILD_CFLAGS='$(ALL_CFLAGS)'
9988 STMP_FIXINC=stmp-fixinc
9990 # Possibly disable fixproto, on a per-target basis.
9991 case ${use_fixproto} in
9993 STMP_FIXPROTO=
9995 yes)
9996 STMP_FIXPROTO=stmp-fixproto
9998 esac
10001 # And these apply if build != host, or we are generating coverage data
10002 if test x$build != x$host || test "x$coverage_flags" != x
10003 then
10004 BUILD_PREFIX=build-
10005 BUILD_PREFIX_1=build-
10006 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10008 if test "x$TARGET_SYSTEM_ROOT" = x; then
10009 STMP_FIXINC=
10010 STMP_FIXPROTO=
10014 # Expand extra_headers to include complete path.
10015 # This substitutes for lots of t-* files.
10016 extra_headers_list=
10017 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10018 for file in ${extra_headers} ; do
10019 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10020 done
10022 # Add a definition of USE_COLLECT2 if system wants one.
10023 case $use_collect2 in
10024 no) use_collect2= ;;
10025 "") ;;
10027 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10028 xm_defines="${xm_defines} USE_COLLECT2"
10030 esac
10032 # ---------------------------
10033 # Assembler & linker features
10034 # ---------------------------
10036 # Identify the assembler which will work hand-in-glove with the newly
10037 # built GCC, so that we can examine its features. This is the assembler
10038 # which will be driven by the driver program.
10040 # If build != host, and we aren't building gas in-tree, we identify a
10041 # build->target assembler and hope that it will have the same features
10042 # as the host->target assembler we'll be using.
10043 echo "$as_me:$LINENO: checking what assembler to use" >&5
10044 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10045 in_tree_gas=no
10046 gcc_cv_as=
10047 gcc_cv_gas_major_version=
10048 gcc_cv_gas_minor_version=
10049 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10050 if test -x "$DEFAULT_ASSEMBLER"; then
10051 gcc_cv_as="$DEFAULT_ASSEMBLER"
10052 elif test -x "$AS"; then
10053 gcc_cv_as="$AS"
10054 elif test -x as$host_exeext; then
10055 # Build using assembler in the current directory.
10056 gcc_cv_as=./as$host_exeext
10057 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10058 && test -f ../gas/Makefile; then
10059 # Single tree build which includes gas.
10060 in_tree_gas=yes
10061 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10062 for f in $gcc_cv_as_bfd_srcdir/configure \
10063 $gcc_cv_as_gas_srcdir/configure \
10064 $gcc_cv_as_gas_srcdir/configure.in \
10065 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10066 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10067 if test x$gcc_cv_gas_version != x; then
10068 break
10070 done
10071 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10072 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10073 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10074 case $gcc_cv_gas_patch_version in
10075 "") gcc_cv_gas_patch_version="0" ;;
10076 esac
10077 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10078 + $gcc_cv_gas_minor_version \) \* 1000 \
10079 + $gcc_cv_gas_patch_version`
10081 rm -f as$host_exeext
10082 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10083 in_tree_gas_is_elf=no
10084 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10085 || (grep 'obj_format = multi' ../gas/Makefile \
10086 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10087 then
10088 in_tree_gas_is_elf=yes
10092 if test "x$gcc_cv_as" = x; then
10093 # Search the same directories that the installed compiler will
10094 # search. Else we may find the wrong assembler and lose. If we
10095 # do not find a suitable assembler binary, then try the user's
10096 # path.
10098 # Also note we have to check MD_EXEC_PREFIX before checking the
10099 # user's path. Unfortunately, there is no good way to get at the
10100 # value of MD_EXEC_PREFIX here. So we do a brute force search
10101 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10102 # to be fixed as part of the make/configure rewrite too.
10104 if test "x$exec_prefix" = xNONE; then
10105 if test "x$prefix" = xNONE; then
10106 test_prefix=/usr/local
10107 else
10108 test_prefix=$prefix
10110 else
10111 test_prefix=$exec_prefix
10114 # If the loop below does not find an assembler, then use whatever
10115 # one we can find in the users's path.
10116 # user's path.
10117 if test "x$program_prefix" != xNONE; then
10118 gcc_cv_as=${program_prefix}as$host_exeext
10119 else
10120 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10123 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10124 $test_prefix/libexec/gcc/$target_noncanonical \
10125 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10126 /usr/lib/gcc/$target_noncanonical \
10127 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10128 $test_prefix/$target_noncanonical/bin"
10130 if test x$host = x$target; then
10131 test_dirs="$test_dirs \
10132 /usr/libexec \
10133 /usr/ccs/gcc \
10134 /usr/ccs/bin \
10135 /udk/usr/ccs/bin \
10136 /bsd43/usr/lib/cmplrs/cc \
10137 /usr/cross64/usr/bin \
10138 /usr/lib/cmplrs/cc \
10139 /sysv/usr/lib/cmplrs/cc \
10140 /svr4/usr/lib/cmplrs/cc \
10141 /usr/bin"
10144 for dir in $test_dirs; do
10145 if test -x $dir/as$host_exeext; then
10146 gcc_cv_as=$dir/as$host_exeext
10147 break;
10149 done
10151 case $in_tree_gas in
10152 yes)
10153 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10154 echo "${ECHO_T}\"newly built gas\"" >&6
10157 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10158 echo "${ECHO_T}$gcc_cv_as" >&6
10160 esac
10162 # Identify the linker which will work hand-in-glove with the newly
10163 # built GCC, so that we can examine its features. This is the linker
10164 # which will be driven by the driver program.
10166 # If build != host, and we aren't building gas in-tree, we identify a
10167 # build->target linker and hope that it will have the same features
10168 # as the host->target linker we'll be using.
10169 echo "$as_me:$LINENO: checking what linker to use" >&5
10170 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10171 in_tree_ld=no
10172 gcc_cv_ld=
10173 gcc_cv_gld_major_version=
10174 gcc_cv_gld_minor_version=
10175 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10176 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10177 if test -x "$DEFAULT_LINKER"; then
10178 gcc_cv_ld="$DEFAULT_LINKER"
10179 elif test -x "$LD_FOR_TARGET"; then
10180 gcc_cv_ld="$LD_FOR_TARGET"
10181 elif test -x "$LD" && test x$host = x$target; then
10182 gcc_cv_ld="$LD"
10183 elif test -x collect-ld$host_exeext; then
10184 # Build using linker in the current directory.
10185 gcc_cv_ld=./collect-ld$host_exeext
10186 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10187 && test -f ../ld/Makefile; then
10188 # Single tree build which includes ld.
10189 in_tree_ld=yes
10190 in_tree_ld_is_elf=no
10191 if (grep 'EMUL = .*elf' ../ld/Makefile \
10192 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10193 in_tree_ld_is_elf=yes
10195 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
10197 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10198 if test x$gcc_cv_gld_version != x; then
10199 break
10201 done
10202 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10203 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10204 rm -f collect-ld$host_exeext
10205 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10206 2>/dev/null
10209 if test "x$gcc_cv_ld" = x; then
10210 # Search the same directories that the installed compiler will
10211 # search. Else we may find the wrong linker and lose. If we
10212 # do not find a suitable linker binary, then try the user's
10213 # path.
10215 # Also note we have to check MD_EXEC_PREFIX before checking the
10216 # user's path. Unfortunately, there is no good way to get at the
10217 # value of MD_EXEC_PREFIX here. So we do a brute force search
10218 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10219 # to be fixed as part of the make/configure rewrite too.
10221 if test "x$exec_prefix" = xNONE; then
10222 if test "x$prefix" = xNONE; then
10223 test_prefix=/usr/local
10224 else
10225 test_prefix=$prefix
10227 else
10228 test_prefix=$exec_prefix
10231 # If the loop below does not find an linker, then use whatever
10232 # one we can find in the users's path.
10233 # user's path.
10234 if test "x$program_prefix" != xNONE; then
10235 gcc_cv_ld=${program_prefix}ld$host_exeext
10236 else
10237 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10240 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10241 $test_prefix/libexec/gcc/$target_noncanonical \
10242 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10243 /usr/lib/gcc/$target_noncanonical \
10244 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10245 $test_prefix/$target_noncanonical/bin"
10247 if test x$host = x$target; then
10248 test_dirs="$test_dirs \
10249 /usr/libexec \
10250 /usr/ccs/gcc \
10251 /usr/ccs/bin \
10252 /udk/usr/ccs/bin \
10253 /bsd43/usr/lib/cmplrs/cc \
10254 /usr/cross64/usr/bin \
10255 /usr/lib/cmplrs/cc \
10256 /sysv/usr/lib/cmplrs/cc \
10257 /svr4/usr/lib/cmplrs/cc \
10258 /usr/bin"
10261 for dir in $test_dirs; do
10262 if test -x $dir/ld$host_exeext; then
10263 gcc_cv_ld=$dir/ld$host_exeext
10264 break;
10266 done
10268 case $in_tree_ld in
10269 yes)
10270 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10271 echo "${ECHO_T}\"newly built ld\"" >&6
10274 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10275 echo "${ECHO_T}$gcc_cv_ld" >&6
10277 esac
10279 # Figure out what nm we will be using.
10280 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10281 echo "$as_me:$LINENO: checking what nm to use" >&5
10282 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10283 in_tree_nm=no
10284 if test -x nm$host_exeext; then
10285 gcc_cv_nm=./nm$host_exeext
10286 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10287 && test -f ../binutils/Makefile; then
10288 # Single tree build which includes binutils.
10289 in_tree_nm=yes
10290 gcc_cv_nm=./nm$host_exeext
10291 rm -f nm$host_exeext
10292 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10293 elif test "x$program_prefix" != xNONE; then
10294 gcc_cv_nm=${program_prefix}nm$host_exeext
10295 else
10296 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10298 case $in_tree_nm in
10299 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10300 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10301 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10302 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10303 esac
10305 # Figure out what objdump we will be using.
10306 echo "$as_me:$LINENO: checking what objdump to use" >&5
10307 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10308 in_tree_objdump=no
10309 if test -x objdump$host_exeext; then
10310 gcc_cv_objdump=./objdump$host_exeext
10311 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10312 && test -f ../binutils/Makefile; then
10313 # Single tree build which includes binutils.
10314 in_tree_objdump=yes
10315 gcc_cv_objdump=./objdump$host_exeext
10316 rm -f objdump$host_exeext
10317 $symbolic_link ../binutils/objdump$host_exeext \
10318 objdump$host_exeext 2>/dev/null
10319 elif test "x$program_prefix" != xNONE; then
10320 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10321 else
10322 gcc_cv_objdump=`echo objdump | \
10323 sed "${program_transform_name}"`$host_exeext
10325 case $in_tree_objdump in
10326 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10327 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10328 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10329 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10330 esac
10332 # Figure out what assembler alignment features are present.
10333 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10334 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10335 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 gcc_cv_as_balign_and_p2align=no
10339 if test $in_tree_gas = yes; then
10340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10341 then gcc_cv_as_balign_and_p2align=yes
10343 elif test x$gcc_cv_as != x; then
10344 echo '.balign 4
10345 .p2align 2' > conftest.s
10346 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }
10352 then
10353 gcc_cv_as_balign_and_p2align=yes
10354 else
10355 echo "configure: failed program was" >&5
10356 cat conftest.s >&5
10358 rm -f conftest.o conftest.s
10361 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10362 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10363 if test $gcc_cv_as_balign_and_p2align = yes; then
10365 cat >>confdefs.h <<\_ACEOF
10366 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10367 _ACEOF
10371 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10372 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10373 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376 gcc_cv_as_max_skip_p2align=no
10377 if test $in_tree_gas = yes; then
10378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10379 then gcc_cv_as_max_skip_p2align=yes
10381 elif test x$gcc_cv_as != x; then
10382 echo '.p2align 4,,7' > conftest.s
10383 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }
10389 then
10390 gcc_cv_as_max_skip_p2align=yes
10391 else
10392 echo "configure: failed program was" >&5
10393 cat conftest.s >&5
10395 rm -f conftest.o conftest.s
10398 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10399 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10400 if test $gcc_cv_as_max_skip_p2align = yes; then
10402 cat >>confdefs.h <<\_ACEOF
10403 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10404 _ACEOF
10408 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10409 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10410 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 else
10413 gcc_cv_as_subsection_m1=no
10414 if test $in_tree_gas = yes; then
10415 if test $in_tree_gas_is_elf = yes \
10416 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10417 then gcc_cv_as_subsection_m1=yes
10419 elif test x$gcc_cv_as != x; then
10420 echo 'conftest_label1: .word 0
10421 .subsection -1
10422 conftest_label2: .word 0
10423 .previous' > conftest.s
10424 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }
10430 then
10431 if test x$gcc_cv_nm != x; then
10432 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10433 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10434 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10435 then :
10436 else gcc_cv_as_subsection_m1=yes
10438 rm -f conftest.nm1 conftest.nm2
10440 else
10441 echo "configure: failed program was" >&5
10442 cat conftest.s >&5
10444 rm -f conftest.o conftest.s
10447 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10448 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10449 if test $gcc_cv_as_subsection_m1 = yes; then
10451 cat >>confdefs.h <<\_ACEOF
10452 #define HAVE_GAS_SUBSECTION_ORDERING 1
10453 _ACEOF
10457 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10458 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10459 if test "${gcc_cv_as_weak+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462 gcc_cv_as_weak=no
10463 if test $in_tree_gas = yes; then
10464 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10465 then gcc_cv_as_weak=yes
10467 elif test x$gcc_cv_as != x; then
10468 echo ' .weak foobar' > conftest.s
10469 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; }
10475 then
10476 gcc_cv_as_weak=yes
10477 else
10478 echo "configure: failed program was" >&5
10479 cat conftest.s >&5
10481 rm -f conftest.o conftest.s
10484 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10485 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10486 if test $gcc_cv_as_weak = yes; then
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_GAS_WEAK 1
10490 _ACEOF
10494 # .hidden needs to be supported in both the assembler and the linker,
10495 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10496 # This is irritatingly difficult to feature test for; we have to check the
10497 # date string after the version number. If we've got an in-tree
10498 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10499 # to be safe.
10500 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10501 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10502 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10503 if test "${gcc_cv_as_hidden+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506 gcc_cv_as_hidden=no
10507 if test $in_tree_gas = yes; then
10508 if test $in_tree_gas_is_elf = yes \
10509 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10510 then gcc_cv_as_hidden=yes
10512 elif test x$gcc_cv_as != x; then
10513 echo ' .hidden foobar
10514 foobar:' > conftest.s
10515 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }
10521 then
10522 gcc_cv_as_hidden=yes
10523 else
10524 echo "configure: failed program was" >&5
10525 cat conftest.s >&5
10527 rm -f conftest.o conftest.s
10530 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10531 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10534 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10535 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10536 if test "${gcc_cv_ld_hidden+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 if test $in_tree_ld = yes ; then
10540 gcc_cv_ld_hidden=no
10541 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 \
10542 && test $in_tree_ld_is_elf = yes; then
10543 gcc_cv_ld_hidden=yes
10545 else
10546 gcc_cv_ld_hidden=yes
10547 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10548 if echo "$ld_ver" | grep GNU > /dev/null; then
10549 ld_vers=`echo $ld_ver | sed -n \
10550 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10551 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10552 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10553 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10554 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10555 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10556 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'`
10557 if test 0"$ld_date" -lt 20020404; then
10558 if test -n "$ld_date"; then
10559 # If there was date string, but was earlier than 2002-04-04, fail
10560 gcc_cv_ld_hidden=no
10561 elif test -z "$ld_vers"; then
10562 # If there was no date string nor ld version number, something is wrong
10563 gcc_cv_ld_hidden=no
10564 else
10565 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10566 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10567 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10568 test -z "$ld_vers_patch" && ld_vers_patch=0
10569 if test "$ld_vers_major" -lt 2; then
10570 gcc_cv_ld_hidden=no
10571 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10572 gcc_cv_ld_hidden="no"
10573 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10574 gcc_cv_ld_hidden=no
10578 else
10579 case "${target}" in
10580 hppa64*-*-hpux* | ia64*-*-hpux*)
10581 gcc_cv_ld_hidden=yes
10584 gcc_cv_ld_hidden=no
10586 esac
10590 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10591 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10592 libgcc_visibility=no
10594 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10595 libgcc_visibility=yes
10597 cat >>confdefs.h <<\_ACEOF
10598 #define HAVE_GAS_HIDDEN 1
10599 _ACEOF
10603 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10604 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10605 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10606 if test "${gcc_cv_as_leb128+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10609 gcc_cv_as_leb128=no
10610 if test $in_tree_gas = yes; then
10611 if test $in_tree_gas_is_elf = yes \
10612 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10613 then gcc_cv_as_leb128=yes
10615 elif test x$gcc_cv_as != x; then
10616 echo ' .data
10617 .uleb128 L2 - L1
10619 .uleb128 1280
10620 .sleb128 -1010
10621 L2:' > conftest.s
10622 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; }
10628 then
10629 # GAS versions before 2.11 do not support uleb128,
10630 # despite appearing to.
10631 # ??? There exists an elf-specific test that will crash
10632 # the assembler. Perhaps it's better to figure out whether
10633 # arbitrary sections are supported and try the test.
10634 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10635 if echo "$as_ver" | grep GNU > /dev/null; then
10636 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10637 as_major=`echo $as_ver | sed 's/\..*//'`
10638 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10639 if test $as_major -eq 2 && test $as_minor -lt 11
10640 then :
10641 else gcc_cv_as_leb128=yes
10644 else
10645 echo "configure: failed program was" >&5
10646 cat conftest.s >&5
10648 rm -f conftest.o conftest.s
10651 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10652 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10653 if test $gcc_cv_as_leb128 = yes; then
10655 cat >>confdefs.h <<\_ACEOF
10656 #define HAVE_AS_LEB128 1
10657 _ACEOF
10661 # GAS versions up to and including 2.11.0 may mis-optimize
10662 # .eh_frame data.
10663 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10664 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10665 if test "${gcc_cv_as_eh_frame+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 else
10668 gcc_cv_as_eh_frame=no
10669 if test $in_tree_gas = yes; then
10670 if test $in_tree_gas_is_elf = yes \
10671 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10672 then gcc_cv_as_eh_frame=yes
10674 elif test x$gcc_cv_as != x; then
10675 echo ' .text
10676 .LFB1:
10677 .4byte 0
10678 .L1:
10679 .4byte 0
10680 .LFE1:
10681 .section .eh_frame,"aw",@progbits
10682 __FRAME_BEGIN__:
10683 .4byte .LECIE1-.LSCIE1
10684 .LSCIE1:
10685 .4byte 0x0
10686 .byte 0x1
10687 .ascii "z\0"
10688 .byte 0x1
10689 .byte 0x78
10690 .byte 0x1a
10691 .byte 0x0
10692 .byte 0x4
10693 .4byte 1
10694 .p2align 1
10695 .LECIE1:
10696 .LSFDE1:
10697 .4byte .LEFDE1-.LASFDE1
10698 .LASFDE1:
10699 .4byte .LASFDE1-__FRAME_BEGIN__
10700 .4byte .LFB1
10701 .4byte .LFE1-.LFB1
10702 .byte 0x4
10703 .4byte .LFE1-.LFB1
10704 .byte 0x4
10705 .4byte .L1-.LFB1
10706 .LEFDE1:' > conftest.s
10707 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }
10713 then
10714 cat > conftest.lit <<EOF
10715 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10716 0010 01000000 12000000 18000000 00000000 ................
10717 0020 08000000 04080000 0044 .........D
10719 cat > conftest.big <<EOF
10720 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10721 0010 00000001 00000012 00000018 00000000 ................
10722 0020 00000008 04000000 0844 .........D
10724 # If the assembler didn't choke, and we can objdump,
10725 # and we got the correct data, then succeed.
10726 if test x$gcc_cv_objdump != x \
10727 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10728 | tail -3 > conftest.got \
10729 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10730 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10731 then
10732 gcc_cv_as_eh_frame=yes
10733 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
10739 gcc_cv_as_eh_frame=buggy
10740 else
10741 # Uh oh, what do we do now?
10742 gcc_cv_as_eh_frame=no
10744 else
10745 echo "configure: failed program was" >&5
10746 cat conftest.s >&5
10748 rm -f conftest.o conftest.s
10751 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10752 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10755 if test $gcc_cv_as_eh_frame = buggy; then
10757 cat >>confdefs.h <<\_ACEOF
10758 #define USE_AS_TRADITIONAL_FORMAT 1
10759 _ACEOF
10763 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10764 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10765 if test "${gcc_cv_as_shf_merge+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768 gcc_cv_as_shf_merge=no
10769 if test $in_tree_gas = yes; then
10770 if test $in_tree_gas_is_elf = yes \
10771 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10772 then gcc_cv_as_shf_merge=yes
10774 elif test x$gcc_cv_as != x; then
10775 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10776 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }
10782 then
10783 gcc_cv_as_shf_merge=yes
10784 else
10785 echo "configure: failed program was" >&5
10786 cat conftest.s >&5
10788 rm -f conftest.o conftest.s
10791 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10792 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10795 cat >>confdefs.h <<_ACEOF
10796 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10797 _ACEOF
10800 # Thread-local storage - the check is heavily parametrized.
10801 conftest_s=
10802 tls_first_major=
10803 tls_first_minor=
10804 tls_as_opt=
10805 case "$target" in
10806 alpha*-*-*)
10807 conftest_s='
10808 .section ".tdata","awT",@progbits
10809 foo: .long 25
10810 .text
10811 ldq $27,__tls_get_addr($29) !literal!1
10812 lda $16,foo($29) !tlsgd!1
10813 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10814 ldq $27,__tls_get_addr($29) !literal!2
10815 lda $16,foo($29) !tlsldm!2
10816 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10817 ldq $1,foo($29) !gotdtprel
10818 ldah $2,foo($29) !dtprelhi
10819 lda $3,foo($2) !dtprello
10820 lda $4,foo($29) !dtprel
10821 ldq $1,foo($29) !gottprel
10822 ldah $2,foo($29) !tprelhi
10823 lda $3,foo($2) !tprello
10824 lda $4,foo($29) !tprel'
10825 tls_first_major=2
10826 tls_first_minor=13
10827 tls_as_opt=--fatal-warnings
10829 i[34567]86-*-*)
10830 conftest_s='
10831 .section ".tdata","awT",@progbits
10832 foo: .long 25
10833 .text
10834 movl %gs:0, %eax
10835 leal foo@TLSGD(,%ebx,1), %eax
10836 leal foo@TLSLDM(%ebx), %eax
10837 leal foo@DTPOFF(%eax), %edx
10838 movl foo@GOTTPOFF(%ebx), %eax
10839 subl foo@GOTTPOFF(%ebx), %eax
10840 addl foo@GOTNTPOFF(%ebx), %eax
10841 movl foo@INDNTPOFF, %eax
10842 movl $foo@TPOFF, %eax
10843 subl $foo@TPOFF, %eax
10844 leal foo@NTPOFF(%ecx), %eax'
10845 tls_first_major=2
10846 tls_first_minor=14
10847 tls_as_opt=--fatal-warnings
10849 x86_64-*-*)
10850 conftest_s='
10851 .section ".tdata","awT",@progbits
10852 foo: .long 25
10853 .text
10854 movq %fs:0, %rax
10855 leaq foo@TLSGD(%rip), %rdi
10856 leaq foo@TLSLD(%rip), %rdi
10857 leaq foo@DTPOFF(%rax), %rdx
10858 movq foo@GOTTPOFF(%rip), %rax
10859 movq $foo@TPOFF, %rax'
10860 tls_first_major=2
10861 tls_first_minor=14
10862 tls_as_opt=--fatal-warnings
10864 ia64-*-*)
10865 conftest_s='
10866 .section ".tdata","awT",@progbits
10867 foo: data8 25
10868 .text
10869 addl r16 = @ltoff(@dtpmod(foo#)), gp
10870 addl r17 = @ltoff(@dtprel(foo#)), gp
10871 addl r18 = @ltoff(@tprel(foo#)), gp
10872 addl r19 = @dtprel(foo#), gp
10873 adds r21 = @dtprel(foo#), r13
10874 movl r23 = @dtprel(foo#)
10875 addl r20 = @tprel(foo#), gp
10876 adds r22 = @tprel(foo#), r13
10877 movl r24 = @tprel(foo#)'
10878 tls_first_major=2
10879 tls_first_minor=13
10880 tls_as_opt=--fatal-warnings
10882 powerpc-*-*)
10883 conftest_s='
10884 .section ".tdata","awT",@progbits
10885 .align 2
10886 ld0: .space 4
10887 ld1: .space 4
10888 x1: .space 4
10889 x2: .space 4
10890 x3: .space 4
10891 .text
10892 addi 3,31,ld0@got@tlsgd
10893 bl __tls_get_addr
10894 addi 3,31,x1@got@tlsld
10895 bl __tls_get_addr
10896 addi 9,3,x1@dtprel
10897 addis 9,3,x2@dtprel@ha
10898 addi 9,9,x2@dtprel@l
10899 lwz 9,x3@got@tprel(31)
10900 add 9,9,x@tls
10901 addi 9,2,x1@tprel
10902 addis 9,2,x2@tprel@ha
10903 addi 9,9,x2@tprel@l'
10904 tls_first_major=2
10905 tls_first_minor=14
10906 tls_as_opt="-a32 --fatal-warnings"
10908 powerpc64-*-*)
10909 conftest_s='
10910 .section ".tdata","awT",@progbits
10911 .align 3
10912 ld0: .space 8
10913 ld1: .space 8
10914 x1: .space 8
10915 x2: .space 8
10916 x3: .space 8
10917 .text
10918 addi 3,2,ld0@got@tlsgd
10919 bl .__tls_get_addr
10921 addi 3,2,ld1@toc
10922 bl .__tls_get_addr
10924 addi 3,2,x1@got@tlsld
10925 bl .__tls_get_addr
10927 addi 9,3,x1@dtprel
10928 bl .__tls_get_addr
10930 addis 9,3,x2@dtprel@ha
10931 addi 9,9,x2@dtprel@l
10932 bl .__tls_get_addr
10934 ld 9,x3@got@dtprel(2)
10935 add 9,9,3
10936 bl .__tls_get_addr
10937 nop'
10938 tls_first_major=2
10939 tls_first_minor=14
10940 tls_as_opt="-a64 --fatal-warnings"
10942 s390-*-*)
10943 conftest_s='
10944 .section ".tdata","awT",@progbits
10945 foo: .long 25
10946 .text
10947 .long foo@TLSGD
10948 .long foo@TLSLDM
10949 .long foo@DTPOFF
10950 .long foo@NTPOFF
10951 .long foo@GOTNTPOFF
10952 .long foo@INDNTPOFF
10953 l %r1,foo@GOTNTPOFF(%r12)
10954 l %r1,0(%r1):tls_load:foo
10955 bas %r14,0(%r1,%r13):tls_gdcall:foo
10956 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10957 tls_first_major=2
10958 tls_first_minor=14
10959 tls_as_opt="-m31 --fatal-warnings"
10961 s390x-*-*)
10962 conftest_s='
10963 .section ".tdata","awT",@progbits
10964 foo: .long 25
10965 .text
10966 .quad foo@TLSGD
10967 .quad foo@TLSLDM
10968 .quad foo@DTPOFF
10969 .quad foo@NTPOFF
10970 .quad foo@GOTNTPOFF
10971 lg %r1,foo@GOTNTPOFF(%r12)
10972 larl %r1,foo@INDNTPOFF
10973 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10974 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10975 tls_first_major=2
10976 tls_first_minor=14
10977 tls_as_opt="-m64 -Aesame --fatal-warnings"
10979 sh-*-* | sh[34]-*-*)
10980 conftest_s='
10981 .section ".tdata","awT",@progbits
10982 foo: .long 25
10983 .text
10984 .long foo@TLSGD
10985 .long foo@TLSLDM
10986 .long foo@DTPOFF
10987 .long foo@GOTTPOFF
10988 .long foo@TPOFF'
10989 tls_first_major=2
10990 tls_first_minor=13
10991 tls_as_opt=--fatal-warnings
10993 sparc*-*-*)
10994 case "$target" in
10995 sparc*-sun-solaris2.*)
10996 on_solaris=yes
10999 on_solaris=no
11001 esac
11002 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11003 conftest_s='
11004 .section ".tdata",#alloc,#write,#tls
11005 foo: .long 25
11006 .text
11007 sethi %tgd_hi22(foo), %o0
11008 add %o0, %tgd_lo10(foo), %o1
11009 add %l7, %o1, %o0, %tgd_add(foo)
11010 call __tls_get_addr, %tgd_call(foo)
11011 sethi %tldm_hi22(foo), %l1
11012 add %l1, %tldm_lo10(foo), %l2
11013 add %l7, %l2, %o0, %tldm_add(foo)
11014 call __tls_get_addr, %tldm_call(foo)
11015 sethi %tldo_hix22(foo), %l3
11016 xor %l3, %tldo_lox10(foo), %l4
11017 add %o0, %l4, %l5, %tldo_add(foo)
11018 sethi %tie_hi22(foo), %o3
11019 add %o3, %tie_lo10(foo), %o3
11020 ld [%l7 + %o3], %o2, %tie_ld(foo)
11021 add %g7, %o2, %o4, %tie_add(foo)
11022 sethi %tle_hix22(foo), %l1
11023 xor %l1, %tle_lox10(foo), %o5
11024 ld [%g7 + %o5], %o1'
11025 tls_first_major=0
11026 tls_first_minor=0
11027 else
11028 conftest_s='
11029 .section ".tdata","awT",@progbits
11030 foo: .long 25
11031 .text
11032 sethi %tgd_hi22(foo), %o0
11033 add %o0, %tgd_lo10(foo), %o1
11034 add %l7, %o1, %o0, %tgd_add(foo)
11035 call __tls_get_addr, %tgd_call(foo)
11036 sethi %tldm_hi22(foo), %l1
11037 add %l1, %tldm_lo10(foo), %l2
11038 add %l7, %l2, %o0, %tldm_add(foo)
11039 call __tls_get_addr, %tldm_call(foo)
11040 sethi %tldo_hix22(foo), %l3
11041 xor %l3, %tldo_lox10(foo), %l4
11042 add %o0, %l4, %l5, %tldo_add(foo)
11043 sethi %tie_hi22(foo), %o3
11044 add %o3, %tie_lo10(foo), %o3
11045 ld [%l7 + %o3], %o2, %tie_ld(foo)
11046 add %g7, %o2, %o4, %tie_add(foo)
11047 sethi %tle_hix22(foo), %l1
11048 xor %l1, %tle_lox10(foo), %o5
11049 ld [%g7 + %o5], %o1'
11050 tls_first_major=2
11051 tls_first_minor=14
11052 tls_as_opt="-32 --fatal-warnings"
11055 esac
11056 if test -z "$tls_first_major"; then
11057 : # If we don't have a check, assume no support.
11058 else
11059 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11060 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11061 if test "${gcc_cv_as_tls+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064 gcc_cv_as_tls=no
11065 if test $in_tree_gas = yes; then
11066 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11067 then gcc_cv_as_tls=yes
11069 elif test x$gcc_cv_as != x; then
11070 echo "$conftest_s" > conftest.s
11071 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }
11077 then
11078 gcc_cv_as_tls=yes
11079 else
11080 echo "configure: failed program was" >&5
11081 cat conftest.s >&5
11083 rm -f conftest.o conftest.s
11086 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11087 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11088 if test $gcc_cv_as_tls = yes; then
11090 cat >>confdefs.h <<\_ACEOF
11091 #define HAVE_AS_TLS 1
11092 _ACEOF
11097 # Target-specific assembler checks.
11099 case "$target" in
11100 # All TARGET_ABI_OSF targets.
11101 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11102 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11103 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11104 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107 gcc_cv_as_alpha_explicit_relocs=no
11108 if test $in_tree_gas = yes; then
11109 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11110 then gcc_cv_as_alpha_explicit_relocs=yes
11112 elif test x$gcc_cv_as != x; then
11113 echo ' .set nomacro
11114 .text
11115 extbl $3, $2, $3 !lituse_bytoff!1
11116 ldq $2, a($29) !literal!1
11117 ldq $4, b($29) !literal!2
11118 ldq_u $3, 0($2) !lituse_base!1
11119 ldq $27, f($29) !literal!5
11120 jsr $26, ($27), f !lituse_jsr!5
11121 ldah $29, 0($26) !gpdisp!3
11122 lda $0, c($29) !gprel
11123 ldah $1, d($29) !gprelhigh
11124 lda $1, d($1) !gprellow
11125 lda $29, 0($29) !gpdisp!3' > conftest.s
11126 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128 (eval $ac_try) 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; }
11132 then
11133 gcc_cv_as_alpha_explicit_relocs=yes
11134 else
11135 echo "configure: failed program was" >&5
11136 cat conftest.s >&5
11138 rm -f conftest.o conftest.s
11141 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11142 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11143 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11145 cat >>confdefs.h <<\_ACEOF
11146 #define HAVE_AS_EXPLICIT_RELOCS 1
11147 _ACEOF
11152 cris-*-*)
11153 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11154 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11155 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158 gcc_cv_as_cris_no_mul_bug=no
11159 if test $in_tree_gas = yes; then
11160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11161 then gcc_cv_as_cris_no_mul_bug=yes
11163 elif test x$gcc_cv_as != x; then
11164 echo '.text' > conftest.s
11165 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }
11171 then
11172 gcc_cv_as_cris_no_mul_bug=yes
11173 else
11174 echo "configure: failed program was" >&5
11175 cat conftest.s >&5
11177 rm -f conftest.o conftest.s
11180 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11181 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11182 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11184 cat >>confdefs.h <<\_ACEOF
11185 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11186 _ACEOF
11191 sparc*-*-*)
11192 echo "$as_me:$LINENO: checking assembler for .register" >&5
11193 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11194 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 gcc_cv_as_sparc_register_op=no
11198 if test x$gcc_cv_as != x; then
11199 echo '.register %g2, #scratch' > conftest.s
11200 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11203 ac_status=$?
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }
11206 then
11207 gcc_cv_as_sparc_register_op=yes
11208 else
11209 echo "configure: failed program was" >&5
11210 cat conftest.s >&5
11212 rm -f conftest.o conftest.s
11215 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11216 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11217 if test $gcc_cv_as_sparc_register_op = yes; then
11219 cat >>confdefs.h <<\_ACEOF
11220 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11221 _ACEOF
11225 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11226 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11227 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230 gcc_cv_as_sparc_relax=no
11231 if test x$gcc_cv_as != x; then
11232 echo '.text' > conftest.s
11233 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }
11239 then
11240 gcc_cv_as_sparc_relax=yes
11241 else
11242 echo "configure: failed program was" >&5
11243 cat conftest.s >&5
11245 rm -f conftest.o conftest.s
11248 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11249 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11250 if test $gcc_cv_as_sparc_relax = yes; then
11252 cat >>confdefs.h <<\_ACEOF
11253 #define HAVE_AS_RELAX_OPTION 1
11254 _ACEOF
11258 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11259 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11260 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263 gcc_cv_as_sparc_ua_pcrel=no
11264 if test x$gcc_cv_as != x; then
11265 echo '.text
11266 foo:
11268 .data
11269 .align 4
11270 .byte 0
11271 .uaword %r_disp32(foo)' > conftest.s
11272 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }
11278 then
11279 if test x$gcc_cv_ld != x \
11280 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11281 gcc_cv_as_sparc_ua_pcrel=yes
11283 rm -f conftest
11284 else
11285 echo "configure: failed program was" >&5
11286 cat conftest.s >&5
11288 rm -f conftest.o conftest.s
11291 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11292 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11293 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11295 cat >>confdefs.h <<\_ACEOF
11296 #define HAVE_AS_SPARC_UA_PCREL 1
11297 _ACEOF
11300 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11301 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11302 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305 gcc_cv_as_sparc_ua_pcrel_hidden=no
11306 if test x$gcc_cv_as != x; then
11307 echo '.data
11308 .align 4
11309 .byte 0x31
11310 .uaword %r_disp32(foo)
11311 .byte 0x32, 0x33, 0x34
11312 .global foo
11313 .hidden foo
11314 foo:
11315 .skip 4' > conftest.s
11316 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }
11322 then
11323 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11324 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11325 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11326 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11327 if $gcc_cv_objdump -R conftest 2> /dev/null \
11328 | grep 'DISP32' > /dev/null 2>&1; then
11330 else
11331 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11334 rm -f conftest
11335 else
11336 echo "configure: failed program was" >&5
11337 cat conftest.s >&5
11339 rm -f conftest.o conftest.s
11342 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11343 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11344 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11346 cat >>confdefs.h <<\_ACEOF
11347 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11348 _ACEOF
11352 fi # unaligned pcrel relocs
11354 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11355 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11356 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359 gcc_cv_as_sparc_offsetable_lo10=no
11360 if test x$gcc_cv_as != x; then
11361 echo '.text
11362 or %g1, %lo(ab) + 12, %g1
11363 or %g1, %lo(ab + 12), %g1' > conftest.s
11364 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }
11370 then
11371 if test x$gcc_cv_objdump != x \
11372 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11373 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11374 gcc_cv_as_offsetable_lo10=yes
11376 else
11377 echo "configure: failed program was" >&5
11378 cat conftest.s >&5
11380 rm -f conftest.o conftest.s
11383 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11384 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11385 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11387 cat >>confdefs.h <<\_ACEOF
11388 #define HAVE_AS_OFFSETABLE_LO10 1
11389 _ACEOF
11394 i[34567]86-*-* | x86_64-*-*)
11395 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11396 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11397 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400 gcc_cv_as_ix86_filds_fists=no
11401 if test $in_tree_gas = yes; then
11402 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11403 then gcc_cv_as_ix86_filds_fists=yes
11405 elif test x$gcc_cv_as != x; then
11406 echo 'filds mem; fists mem' > conftest.s
11407 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }
11413 then
11414 gcc_cv_as_ix86_filds_fists=yes
11415 else
11416 echo "configure: failed program was" >&5
11417 cat conftest.s >&5
11419 rm -f conftest.o conftest.s
11422 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11423 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11424 if test $gcc_cv_as_ix86_filds_fists = yes; then
11426 cat >>confdefs.h <<\_ACEOF
11427 #define HAVE_GAS_FILDS_FISTS 1
11428 _ACEOF
11432 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11433 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11434 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 gcc_cv_as_ix86_cmov_sun_syntax=no
11438 if test x$gcc_cv_as != x; then
11439 echo 'cmovl.l %edx, %eax' > conftest.s
11440 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }
11446 then
11447 gcc_cv_as_ix86_cmov_sun_syntax=yes
11448 else
11449 echo "configure: failed program was" >&5
11450 cat conftest.s >&5
11452 rm -f conftest.o conftest.s
11455 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11456 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11457 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11459 cat >>confdefs.h <<\_ACEOF
11460 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11461 _ACEOF
11465 # This one is used unconditionally by i386.[ch]; it is to be defined
11466 # to 1 if the feature is present, 0 otherwise.
11467 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11468 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11469 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472 gcc_cv_as_ix86_gotoff_in_data=no
11473 if test $in_tree_gas = yes; then
11474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11475 then gcc_cv_as_ix86_gotoff_in_data=yes
11477 elif test x$gcc_cv_as != x; then
11478 echo ' .text
11479 .L0:
11481 .data
11482 .long .L0@GOTOFF' > conftest.s
11483 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }
11489 then
11490 gcc_cv_as_ix86_gotoff_in_data=yes
11491 else
11492 echo "configure: failed program was" >&5
11493 cat conftest.s >&5
11495 rm -f conftest.o conftest.s
11498 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11499 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11502 cat >>confdefs.h <<_ACEOF
11503 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11504 _ACEOF
11508 ia64*-*-*)
11509 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11510 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11511 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 else
11514 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11515 if test $in_tree_gas = yes; then
11516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11517 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11519 elif test x$gcc_cv_as != x; then
11520 echo ' .text
11521 addl r15 = @ltoffx(x#), gp
11523 ld8.mov r16 = [r15], x#' > conftest.s
11524 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }
11530 then
11531 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11532 else
11533 echo "configure: failed program was" >&5
11534 cat conftest.s >&5
11536 rm -f conftest.o conftest.s
11539 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11540 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11541 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11543 cat >>confdefs.h <<\_ACEOF
11544 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11545 _ACEOF
11551 powerpc*-*-*)
11552 case $target in
11553 *-*-aix*) conftest_s=' .csect .text[PR]
11554 mfcr 3,128';;
11555 *-*-darwin*) conftest_s=' .text
11556 mfcr r3,128';;
11557 *) conftest_s=' .text
11558 mfcr 3,128';;
11559 esac
11561 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11562 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11563 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566 gcc_cv_as_powerpc_mfcrf=no
11567 if test $in_tree_gas = yes; then
11568 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11569 then gcc_cv_as_powerpc_mfcrf=yes
11571 elif test x$gcc_cv_as != x; then
11572 echo "$conftest_s" > conftest.s
11573 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }
11579 then
11580 gcc_cv_as_powerpc_mfcrf=yes
11581 else
11582 echo "configure: failed program was" >&5
11583 cat conftest.s >&5
11585 rm -f conftest.o conftest.s
11588 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11589 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11590 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11592 cat >>confdefs.h <<\_ACEOF
11593 #define HAVE_AS_MFCRF 1
11594 _ACEOF
11599 mips*-*-*)
11600 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11601 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11602 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605 gcc_cv_as_mips_explicit_relocs=no
11606 if test $in_tree_gas = yes; then
11607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11608 then gcc_cv_as_mips_explicit_relocs=yes
11610 elif test x$gcc_cv_as != x; then
11611 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11612 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }
11618 then
11619 gcc_cv_as_mips_explicit_relocs=yes
11620 else
11621 echo "configure: failed program was" >&5
11622 cat conftest.s >&5
11624 rm -f conftest.o conftest.s
11627 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11628 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11629 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11630 if test x$target_cpu_default = x
11631 then target_cpu_default=MASK_EXPLICIT_RELOCS
11632 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11637 esac
11638 # ??? Not all targets support dwarf2 debug_line, even within a version
11639 # of gas. Moreover, we need to emit a valid instruction to trigger any
11640 # info to the output file. So, as supported targets are added to gas 2.11,
11641 # add some instruction here to (also) show we expect this might work.
11642 # ??? Once 2.11 is released, probably need to add first known working
11643 # version to the per-target configury.
11644 case "$target" in
11645 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11646 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11647 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11648 insn="nop"
11650 ia64*-*-* | s390*-*-*)
11651 insn="nop 0"
11653 mmix-*-*)
11654 insn="swym 0"
11656 esac
11657 if test x"$insn" != x; then
11658 conftest_s="\
11659 .file 1 \"conftest.s\"
11660 .loc 1 3 0
11661 $insn"
11662 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11663 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11664 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667 gcc_cv_as_dwarf2_debug_line=no
11668 if test $in_tree_gas = yes; then
11669 if test $in_tree_gas_is_elf = yes \
11670 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11671 then gcc_cv_as_dwarf2_debug_line=yes
11673 elif test x$gcc_cv_as != x; then
11674 echo "$conftest_s" > conftest.s
11675 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }
11681 then
11682 # ??? This fails with non-gnu grep. Maybe use objdump?
11683 if grep debug_line conftest.o > /dev/null 2>&1; then
11684 gcc_cv_as_dwarf2_debug_line=yes
11686 else
11687 echo "configure: failed program was" >&5
11688 cat conftest.s >&5
11690 rm -f conftest.o conftest.s
11693 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11694 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11697 # The .debug_line file table must be in the exact order that
11698 # we specified the files, since these indices are also used
11699 # by DW_AT_decl_file. Approximate this test by testing if
11700 # the assembler bitches if the same index is assigned twice.
11701 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11702 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11703 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 else
11706 gcc_cv_as_dwarf2_file_buggy=no
11707 if test x$gcc_cv_as != x; then
11708 echo ' .file 1 "foo.s"
11709 .file 1 "bar.s"' > conftest.s
11710 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }
11716 then
11717 gcc_cv_as_dwarf2_file_buggy=yes
11718 else
11719 echo "configure: failed program was" >&5
11720 cat conftest.s >&5
11722 rm -f conftest.o conftest.s
11725 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11726 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11729 if test $gcc_cv_as_dwarf2_debug_line = yes \
11730 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11732 cat >>confdefs.h <<\_ACEOF
11733 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11734 _ACEOF
11738 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11739 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11740 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743 gcc_cv_as_gdwarf2_flag=no
11744 if test $in_tree_gas = yes; then
11745 if test $in_tree_gas_is_elf = yes \
11746 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11747 then gcc_cv_as_gdwarf2_flag=yes
11749 elif test x$gcc_cv_as != x; then
11750 echo "$insn" > conftest.s
11751 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }
11757 then
11758 gcc_cv_as_gdwarf2_flag=yes
11759 else
11760 echo "configure: failed program was" >&5
11761 cat conftest.s >&5
11763 rm -f conftest.o conftest.s
11766 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11767 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11768 if test $gcc_cv_as_gdwarf2_flag = yes; then
11770 cat >>confdefs.h <<\_ACEOF
11771 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11772 _ACEOF
11776 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11777 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11778 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781 gcc_cv_as_gstabs_flag=no
11782 if test $in_tree_gas = yes; then
11783 if test $in_tree_gas_is_elf = yes \
11784 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11785 then gcc_cv_as_gstabs_flag=yes
11787 elif test x$gcc_cv_as != x; then
11788 echo "$insn" > conftest.s
11789 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }
11795 then
11796 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11797 # and warns about it, but still exits successfully. So check for
11798 # this.
11799 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }
11805 then :
11806 else gcc_cv_as_gstabs_flag=yes
11808 else
11809 echo "configure: failed program was" >&5
11810 cat conftest.s >&5
11812 rm -f conftest.o conftest.s
11815 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11816 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11817 if test $gcc_cv_as_gstabs_flag = yes; then
11819 cat >>confdefs.h <<\_ACEOF
11820 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11821 _ACEOF
11826 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11827 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11828 gcc_cv_ld_ro_rw_mix=unknown
11829 if test $in_tree_ld = yes ; then
11830 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 \
11831 && test $in_tree_ld_is_elf = yes; then
11832 gcc_cv_ld_ro_rw_mix=read-write
11834 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11835 echo '.section myfoosect, "a"' > conftest1.s
11836 echo '.section myfoosect, "aw"' > conftest2.s
11837 echo '.byte 1' >> conftest2.s
11838 echo '.section myfoosect, "a"' > conftest3.s
11839 echo '.byte 0' >> conftest3.s
11840 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11841 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11842 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11843 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11844 conftest2.o conftest3.o > /dev/null 2>&1; then
11845 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11846 | sed -e '/myfoosect/!d' -e N`
11847 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11848 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11849 gcc_cv_ld_ro_rw_mix=read-only
11850 else
11851 gcc_cv_ld_ro_rw_mix=read-write
11855 rm -f conftest.* conftest[123].*
11857 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11859 cat >>confdefs.h <<\_ACEOF
11860 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11861 _ACEOF
11864 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11865 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11867 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11868 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11869 gcc_cv_ld_eh_frame_hdr=no
11870 if test $in_tree_ld = yes ; then
11871 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 \
11872 && test $in_tree_ld_is_elf = yes; then
11873 gcc_cv_ld_eh_frame_hdr=yes
11875 elif test x$gcc_cv_ld != x; then
11876 # Check if linker supports --eh-frame-hdr option
11877 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11878 gcc_cv_ld_eh_frame_hdr=yes
11881 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11883 cat >>confdefs.h <<\_ACEOF
11884 #define HAVE_LD_EH_FRAME_HDR 1
11885 _ACEOF
11888 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11889 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11891 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11892 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11893 gcc_cv_ld_pie=no
11894 if test $in_tree_ld = yes ; then
11895 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 \
11896 && test $in_tree_ld_is_elf = yes; then
11897 gcc_cv_ld_pie=yes
11899 elif test x$gcc_cv_ld != x; then
11900 # Check if linker supports -pie option
11901 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11902 gcc_cv_ld_pie=yes
11905 if test x"$gcc_cv_ld_pie" = xyes; then
11907 cat >>confdefs.h <<\_ACEOF
11908 #define HAVE_LD_PIE 1
11909 _ACEOF
11912 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11913 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11915 # --------
11916 # UNSORTED
11917 # --------
11919 if test x$with_sysroot = x && test x$host = x$target \
11920 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11922 cat >>confdefs.h <<_ACEOF
11923 #define PREFIX_INCLUDE_DIR "$prefix/include"
11924 _ACEOF
11928 # Find out what GC implementation we want, or may, use.
11930 # Check whether --with-gc or --without-gc was given.
11931 if test "${with_gc+set}" = set; then
11932 withval="$with_gc"
11933 case "$withval" in
11934 page | zone)
11935 GGC=ggc-$withval
11938 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11939 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11940 { (exit 1); exit 1; }; }
11942 esac
11943 else
11944 GGC=ggc-page
11947 echo "Using $GGC for garbage collection."
11949 # Use the system's zlib library.
11950 zlibdir=-L../zlib
11951 zlibinc="-I\$(srcdir)/../zlib"
11953 # Check whether --with-system-zlib or --without-system-zlib was given.
11954 if test "${with_system_zlib+set}" = set; then
11955 withval="$with_system_zlib"
11956 zlibdir=
11957 zlibinc=
11964 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11965 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11966 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11967 if test "${enable_maintainer_mode+set}" = set; then
11968 enableval="$enable_maintainer_mode"
11969 maintainer_mode=$enableval
11970 else
11971 maintainer_mode=no
11974 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11975 echo "${ECHO_T}$maintainer_mode" >&6
11977 if test "$maintainer_mode" = "yes"; then
11978 MAINT=''
11979 else
11980 MAINT='#'
11983 # --------------
11984 # Language hooks
11985 # --------------
11987 # Make empty files to contain the specs and options for each language.
11988 # Then add #include lines to for a compiler that has specs and/or options.
11990 lang_opt_files=
11991 lang_specs_files=
11992 lang_tree_files=
11993 for subdir in . $subdirs
11995 if test -f $srcdir/$subdir/lang.opt; then
11996 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11998 if test -f $srcdir/$subdir/lang-specs.h; then
11999 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12001 if test -f $srcdir/$subdir/$subdir-tree.def; then
12002 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12004 done
12006 # These (without "all_") are set in each config-lang.in.
12007 # `language' must be a single word so is spelled singularly.
12008 all_languages=
12009 all_boot_languages=
12010 all_compilers=
12011 all_stagestuff=
12012 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
12013 # List of language makefile fragments.
12014 all_lang_makefrags=
12015 # List of language subdirectory makefiles. Deprecated.
12016 all_lang_makefiles=
12017 # Files for gengtype
12018 all_gtfiles="$target_gtfiles"
12019 # Files for gengtype with language
12020 all_gtfiles_files_langs=
12021 all_gtfiles_files_files=
12023 # Add the language fragments.
12024 # Languages are added via two mechanisms. Some information must be
12025 # recorded in makefile variables, these are defined in config-lang.in.
12026 # We accumulate them and plug them into the main Makefile.
12027 # The other mechanism is a set of hooks for each of the main targets
12028 # like `clean', `install', etc.
12030 language_hooks="Make-hooks"
12032 for s in $subdirs
12034 language=
12035 boot_language=
12036 compilers=
12037 stagestuff=
12038 outputs=
12039 gtfiles=
12040 . ${srcdir}/$s/config-lang.in
12041 if test "x$language" = x
12042 then
12043 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12044 exit 1
12046 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12047 if test -f ${srcdir}/$s/Makefile.in
12048 then all_lang_makefiles="$s/Makefile"
12050 all_languages="$all_languages $language"
12051 if test "x$boot_language" = xyes
12052 then
12053 all_boot_languages="$all_boot_languages $language"
12055 all_compilers="$all_compilers $compilers"
12056 all_stagestuff="$all_stagestuff $stagestuff"
12057 all_outputs="$all_outputs $outputs"
12058 all_gtfiles="$all_gtfiles $gtfiles"
12059 for f in $gtfiles
12061 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12062 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12063 done
12064 done
12066 # Pick up gtfiles for c
12067 gtfiles=
12068 s="c"
12069 . ${srcdir}/c-config-lang.in
12070 all_gtfiles="$all_gtfiles $gtfiles"
12071 for f in $gtfiles
12073 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12074 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12075 done
12077 check_languages=
12078 for language in $all_languages
12080 check_languages="$check_languages check-$language"
12081 done
12083 # We link each language in with a set of hooks, reached indirectly via
12084 # lang.${target}.
12086 rm -f Make-hooks
12087 touch Make-hooks
12088 target_list="all.build all.cross start.encap rest.encap tags \
12089 install-normal install-common install-man \
12090 uninstall info man srcextra srcman srcinfo \
12091 mostlyclean clean distclean maintainer-clean \
12092 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12093 for t in $target_list
12096 for lang in $all_languages
12098 x="$x $lang.$t"
12099 done
12100 echo "lang.$t: $x" >> Make-hooks
12101 done
12103 # --------
12104 # UNSORTED
12105 # --------
12107 # Create .gdbinit.
12109 echo "dir ." > .gdbinit
12110 echo "dir ${srcdir}" >> .gdbinit
12111 if test x$gdb_needs_out_file_path = xyes
12112 then
12113 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12115 if test "x$subdirs" != x; then
12116 for s in $subdirs
12118 echo "dir ${srcdir}/$s" >> .gdbinit
12119 done
12121 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12123 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12124 # absolute path for gcc_tooldir based on inserting the number of up-directory
12125 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12126 # $(libsubdir)/@(unlibsubdir) based path.
12127 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12128 # make and thus we'd get different behavior depending on where we built the
12129 # sources.
12130 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12131 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12132 else
12133 # An explanation of the sed strings:
12134 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12135 # -e 's|/$||' match a trailing forward slash and eliminates it
12136 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12137 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12139 # (*) Note this pattern overwrites the first character of the string
12140 # with a forward slash if one is not already present. This is not a
12141 # problem because the exact names of the sub-directories concerned is
12142 # unimportant, just the number of them matters.
12144 # The practical upshot of these patterns is like this:
12146 # prefix exec_prefix result
12147 # ------ ----------- ------
12148 # /foo /foo/bar ../
12149 # /foo/ /foo/bar ../
12150 # /foo /foo/bar/ ../
12151 # /foo/ /foo/bar/ ../
12152 # /foo /foo/bar/ugg ../../
12154 dollar='$$'
12155 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12160 # Find a directory in which to install a shared libgcc.
12162 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12163 if test "${enable_version_specific_runtime_libs+set}" = set; then
12164 enableval="$enable_version_specific_runtime_libs"
12169 # Check whether --with-slibdir or --without-slibdir was given.
12170 if test "${with_slibdir+set}" = set; then
12171 withval="$with_slibdir"
12172 slibdir="$with_slibdir"
12173 else
12174 if test "${enable_version_specific_runtime_libs+set}" = set; then
12175 slibdir='$(libsubdir)'
12176 elif test "$host" != "$target"; then
12177 slibdir='$(build_tooldir)/lib'
12178 else
12179 slibdir='$(libdir)'
12184 objdir=`${PWDCMD-pwd}`
12187 # Substitute configuration variables
12256 # If it doesn't already exist, create document directory
12257 echo "checking for the document directory." 1>&2
12258 if test -d doc ; then
12259 true
12260 else
12261 mkdir doc
12264 # Echo link setup.
12265 if test x${build} = x${host} ; then
12266 if test x${host} = x${target} ; then
12267 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12268 else
12269 echo "Links are now set up to build a cross-compiler" 1>&2
12270 echo " from ${host} to ${target}." 1>&2
12272 else
12273 if test x${host} = x${target} ; then
12274 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12275 echo " for ${target}." 1>&2
12276 else
12277 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12278 echo " from ${host} to ${target}." 1>&2
12282 # Configure the subdirectories
12283 # AC_CONFIG_SUBDIRS($subdirs)
12285 # Create the Makefile
12286 # and configure language subdirectories
12287 ac_config_files="$ac_config_files $all_outputs"
12290 ac_config_commands="$ac_config_commands default"
12292 cat >confcache <<\_ACEOF
12293 # This file is a shell script that caches the results of configure
12294 # tests run on this system so they can be shared between configure
12295 # scripts and configure runs, see configure's option --config-cache.
12296 # It is not useful on other systems. If it contains results you don't
12297 # want to keep, you may remove or edit it.
12299 # config.status only pays attention to the cache file if you give it
12300 # the --recheck option to rerun configure.
12302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12304 # following values.
12306 _ACEOF
12308 # The following way of writing the cache mishandles newlines in values,
12309 # but we know of no workaround that is simple, portable, and efficient.
12310 # So, don't put newlines in cache variables' values.
12311 # Ultrix sh set writes to stderr and can't be redirected directly,
12312 # and sets the high bit in the cache file unless we assign to the vars.
12314 (set) 2>&1 |
12315 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12316 *ac_space=\ *)
12317 # `set' does not quote correctly, so add quotes (double-quote
12318 # substitution turns \\\\ into \\, and sed turns \\ into \).
12319 sed -n \
12320 "s/'/'\\\\''/g;
12321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12324 # `set' quotes correctly as required by POSIX, so do not add quotes.
12325 sed -n \
12326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12328 esac;
12330 sed '
12331 t clear
12332 : clear
12333 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12334 t end
12335 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12336 : end' >>confcache
12337 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12338 if test -w $cache_file; then
12339 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12340 cat confcache >$cache_file
12341 else
12342 echo "not updating unwritable cache $cache_file"
12345 rm -f confcache
12347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12348 # Let make expand exec_prefix.
12349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12351 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12352 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12353 # trailing colons and then remove the whole line if VPATH becomes empty
12354 # (actually we leave an empty line to preserve line numbers).
12355 if test "x$srcdir" = x.; then
12356 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12357 s/:*\$(srcdir):*/:/;
12358 s/:*\${srcdir}:*/:/;
12359 s/:*@srcdir@:*/:/;
12360 s/^\([^=]*=[ ]*\):*/\1/;
12361 s/:*$//;
12362 s/^[^=]*=[ ]*$//;
12366 DEFS=-DHAVE_CONFIG_H
12368 ac_libobjs=
12369 ac_ltlibobjs=
12370 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12371 # 1. Remove the extension, and $U if already installed.
12372 ac_i=`echo "$ac_i" |
12373 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12374 # 2. Add them.
12375 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12376 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12377 done
12378 LIBOBJS=$ac_libobjs
12380 LTLIBOBJS=$ac_ltlibobjs
12384 : ${CONFIG_STATUS=./config.status}
12385 ac_clean_files_save=$ac_clean_files
12386 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12387 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12388 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12389 cat >$CONFIG_STATUS <<_ACEOF
12390 #! $SHELL
12391 # Generated by $as_me.
12392 # Run this file to recreate the current configuration.
12393 # Compiler output produced by configure, useful for debugging
12394 # configure, is in config.log if it exists.
12396 debug=false
12397 ac_cs_recheck=false
12398 ac_cs_silent=false
12399 SHELL=\${CONFIG_SHELL-$SHELL}
12400 _ACEOF
12402 cat >>$CONFIG_STATUS <<\_ACEOF
12403 ## --------------------- ##
12404 ## M4sh Initialization. ##
12405 ## --------------------- ##
12407 # Be Bourne compatible
12408 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12409 emulate sh
12410 NULLCMD=:
12411 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12412 # is contrary to our usage. Disable this feature.
12413 alias -g '${1+"$@"}'='"$@"'
12414 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12415 set -o posix
12417 DUALCASE=1; export DUALCASE # for MKS sh
12419 # Support unset when possible.
12420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12421 as_unset=unset
12422 else
12423 as_unset=false
12427 # Work around bugs in pre-3.0 UWIN ksh.
12428 $as_unset ENV MAIL MAILPATH
12429 PS1='$ '
12430 PS2='> '
12431 PS4='+ '
12433 # NLS nuisances.
12434 for as_var in \
12435 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12436 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12437 LC_TELEPHONE LC_TIME
12439 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12440 eval $as_var=C; export $as_var
12441 else
12442 $as_unset $as_var
12444 done
12446 # Required to use basename.
12447 if expr a : '\(a\)' >/dev/null 2>&1; then
12448 as_expr=expr
12449 else
12450 as_expr=false
12453 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12454 as_basename=basename
12455 else
12456 as_basename=false
12460 # Name of the executable.
12461 as_me=`$as_basename "$0" ||
12462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12463 X"$0" : 'X\(//\)$' \| \
12464 X"$0" : 'X\(/\)$' \| \
12465 . : '\(.\)' 2>/dev/null ||
12466 echo X/"$0" |
12467 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12468 /^X\/\(\/\/\)$/{ s//\1/; q; }
12469 /^X\/\(\/\).*/{ s//\1/; q; }
12470 s/.*/./; q'`
12473 # PATH needs CR, and LINENO needs CR and PATH.
12474 # Avoid depending upon Character Ranges.
12475 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12476 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12477 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12478 as_cr_digits='0123456789'
12479 as_cr_alnum=$as_cr_Letters$as_cr_digits
12481 # The user is always right.
12482 if test "${PATH_SEPARATOR+set}" != set; then
12483 echo "#! /bin/sh" >conf$$.sh
12484 echo "exit 0" >>conf$$.sh
12485 chmod +x conf$$.sh
12486 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12487 PATH_SEPARATOR=';'
12488 else
12489 PATH_SEPARATOR=:
12491 rm -f conf$$.sh
12495 as_lineno_1=$LINENO
12496 as_lineno_2=$LINENO
12497 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12498 test "x$as_lineno_1" != "x$as_lineno_2" &&
12499 test "x$as_lineno_3" = "x$as_lineno_2" || {
12500 # Find who we are. Look in the path if we contain no path at all
12501 # relative or not.
12502 case $0 in
12503 *[\\/]* ) as_myself=$0 ;;
12504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12510 done
12513 esac
12514 # We did not find ourselves, most probably we were run as `sh COMMAND'
12515 # in which case we are not to be found in the path.
12516 if test "x$as_myself" = x; then
12517 as_myself=$0
12519 if test ! -f "$as_myself"; then
12520 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12521 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12522 { (exit 1); exit 1; }; }
12524 case $CONFIG_SHELL in
12526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12529 IFS=$as_save_IFS
12530 test -z "$as_dir" && as_dir=.
12531 for as_base in sh bash ksh sh5; do
12532 case $as_dir in
12534 if ("$as_dir/$as_base" -c '
12535 as_lineno_1=$LINENO
12536 as_lineno_2=$LINENO
12537 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12538 test "x$as_lineno_1" != "x$as_lineno_2" &&
12539 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12540 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12541 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12542 CONFIG_SHELL=$as_dir/$as_base
12543 export CONFIG_SHELL
12544 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12545 fi;;
12546 esac
12547 done
12548 done
12550 esac
12552 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12553 # uniformly replaced by the line number. The first 'sed' inserts a
12554 # line-number line before each line; the second 'sed' does the real
12555 # work. The second script uses 'N' to pair each line-number line
12556 # with the numbered line, and appends trailing '-' during
12557 # substitution so that $LINENO is not a special case at line end.
12558 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12559 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12560 sed '=' <$as_myself |
12561 sed '
12563 s,$,-,
12564 : loop
12565 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12566 t loop
12567 s,-$,,
12568 s,^['$as_cr_digits']*\n,,
12569 ' >$as_me.lineno &&
12570 chmod +x $as_me.lineno ||
12571 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12572 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12573 { (exit 1); exit 1; }; }
12575 # Don't try to exec as it changes $[0], causing all sort of problems
12576 # (the dirname of $[0] is not the place where we might find the
12577 # original and so on. Autoconf is especially sensible to this).
12578 . ./$as_me.lineno
12579 # Exit status is that of the last command.
12580 exit
12584 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12585 *c*,-n*) ECHO_N= ECHO_C='
12586 ' ECHO_T=' ' ;;
12587 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12588 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12589 esac
12591 if expr a : '\(a\)' >/dev/null 2>&1; then
12592 as_expr=expr
12593 else
12594 as_expr=false
12597 rm -f conf$$ conf$$.exe conf$$.file
12598 echo >conf$$.file
12599 if ln -s conf$$.file conf$$ 2>/dev/null; then
12600 # We could just check for DJGPP; but this test a) works b) is more generic
12601 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12602 if test -f conf$$.exe; then
12603 # Don't use ln at all; we don't have any links
12604 as_ln_s='cp -p'
12605 else
12606 as_ln_s='ln -s'
12608 elif ln conf$$.file conf$$ 2>/dev/null; then
12609 as_ln_s=ln
12610 else
12611 as_ln_s='cp -p'
12613 rm -f conf$$ conf$$.exe conf$$.file
12615 if mkdir -p . 2>/dev/null; then
12616 as_mkdir_p=:
12617 else
12618 test -d ./-p && rmdir ./-p
12619 as_mkdir_p=false
12622 as_executable_p="test -f"
12624 # Sed expression to map a string onto a valid CPP name.
12625 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12627 # Sed expression to map a string onto a valid variable name.
12628 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12631 # IFS
12632 # We need space, tab and new line, in precisely that order.
12633 as_nl='
12635 IFS=" $as_nl"
12637 # CDPATH.
12638 $as_unset CDPATH
12640 exec 6>&1
12642 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12643 # report actual input values of CONFIG_FILES etc. instead of their
12644 # values after options handling. Logging --version etc. is OK.
12645 exec 5>>config.log
12647 echo
12648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12649 ## Running $as_me. ##
12650 _ASBOX
12651 } >&5
12652 cat >&5 <<_CSEOF
12654 This file was extended by $as_me, which was
12655 generated by GNU Autoconf 2.59. Invocation command line was
12657 CONFIG_FILES = $CONFIG_FILES
12658 CONFIG_HEADERS = $CONFIG_HEADERS
12659 CONFIG_LINKS = $CONFIG_LINKS
12660 CONFIG_COMMANDS = $CONFIG_COMMANDS
12661 $ $0 $@
12663 _CSEOF
12664 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12665 echo >&5
12666 _ACEOF
12668 # Files that config.status was made for.
12669 if test -n "$ac_config_files"; then
12670 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12673 if test -n "$ac_config_headers"; then
12674 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12677 if test -n "$ac_config_links"; then
12678 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12681 if test -n "$ac_config_commands"; then
12682 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12685 cat >>$CONFIG_STATUS <<\_ACEOF
12687 ac_cs_usage="\
12688 \`$as_me' instantiates files from templates according to the
12689 current configuration.
12691 Usage: $0 [OPTIONS] [FILE]...
12693 -h, --help print this help, then exit
12694 -V, --version print version number, then exit
12695 -q, --quiet do not print progress messages
12696 -d, --debug don't remove temporary files
12697 --recheck update $as_me by reconfiguring in the same conditions
12698 --file=FILE[:TEMPLATE]
12699 instantiate the configuration file FILE
12700 --header=FILE[:TEMPLATE]
12701 instantiate the configuration header FILE
12703 Configuration files:
12704 $config_files
12706 Configuration headers:
12707 $config_headers
12709 Configuration commands:
12710 $config_commands
12712 Report bugs to <bug-autoconf@gnu.org>."
12713 _ACEOF
12715 cat >>$CONFIG_STATUS <<_ACEOF
12716 ac_cs_version="\\
12717 config.status
12718 configured by $0, generated by GNU Autoconf 2.59,
12719 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12721 Copyright (C) 2003 Free Software Foundation, Inc.
12722 This config.status script is free software; the Free Software Foundation
12723 gives unlimited permission to copy, distribute and modify it."
12724 srcdir=$srcdir
12725 _ACEOF
12727 cat >>$CONFIG_STATUS <<\_ACEOF
12728 # If no file are specified by the user, then we need to provide default
12729 # value. By we need to know if files were specified by the user.
12730 ac_need_defaults=:
12731 while test $# != 0
12733 case $1 in
12734 --*=*)
12735 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12736 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12737 ac_shift=:
12740 ac_option=$1
12741 ac_optarg=$2
12742 ac_shift=shift
12744 *) # This is not an option, so the user has probably given explicit
12745 # arguments.
12746 ac_option=$1
12747 ac_need_defaults=false;;
12748 esac
12750 case $ac_option in
12751 # Handling of the options.
12752 _ACEOF
12753 cat >>$CONFIG_STATUS <<\_ACEOF
12754 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12755 ac_cs_recheck=: ;;
12756 --version | --vers* | -V )
12757 echo "$ac_cs_version"; exit 0 ;;
12758 --he | --h)
12759 # Conflict between --help and --header
12760 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12761 Try \`$0 --help' for more information." >&5
12762 echo "$as_me: error: ambiguous option: $1
12763 Try \`$0 --help' for more information." >&2;}
12764 { (exit 1); exit 1; }; };;
12765 --help | --hel | -h )
12766 echo "$ac_cs_usage"; exit 0 ;;
12767 --debug | --d* | -d )
12768 debug=: ;;
12769 --file | --fil | --fi | --f )
12770 $ac_shift
12771 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12772 ac_need_defaults=false;;
12773 --header | --heade | --head | --hea )
12774 $ac_shift
12775 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12776 ac_need_defaults=false;;
12777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12778 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12779 ac_cs_silent=: ;;
12781 # This is an error.
12782 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12783 Try \`$0 --help' for more information." >&5
12784 echo "$as_me: error: unrecognized option: $1
12785 Try \`$0 --help' for more information." >&2;}
12786 { (exit 1); exit 1; }; } ;;
12788 *) ac_config_targets="$ac_config_targets $1" ;;
12790 esac
12791 shift
12792 done
12794 ac_configure_extra_args=
12796 if $ac_cs_silent; then
12797 exec 6>/dev/null
12798 ac_configure_extra_args="$ac_configure_extra_args --silent"
12801 _ACEOF
12802 cat >>$CONFIG_STATUS <<_ACEOF
12803 if \$ac_cs_recheck; then
12804 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12805 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12808 _ACEOF
12810 cat >>$CONFIG_STATUS <<_ACEOF
12812 # INIT-COMMANDS section.
12815 subdirs='$subdirs'
12816 symbolic_link='$symbolic_link'
12819 _ACEOF
12823 cat >>$CONFIG_STATUS <<\_ACEOF
12824 for ac_config_target in $ac_config_targets
12826 case "$ac_config_target" in
12827 # Handling of arguments.
12828 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12829 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12830 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12831 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12832 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12833 { (exit 1); exit 1; }; };;
12834 esac
12835 done
12837 # If the user did not use the arguments to specify the items to instantiate,
12838 # then the envvar interface is used. Set only those that are not.
12839 # We use the long form for the default assignment because of an extremely
12840 # bizarre bug on SunOS 4.1.3.
12841 if $ac_need_defaults; then
12842 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12843 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12844 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12847 # Have a temporary directory for convenience. Make it in the build tree
12848 # simply because there is no reason to put it here, and in addition,
12849 # creating and moving files from /tmp can sometimes cause problems.
12850 # Create a temporary directory, and hook for its removal unless debugging.
12851 $debug ||
12853 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12854 trap '{ (exit 1); exit 1; }' 1 2 13 15
12857 # Create a (secure) tmp directory for tmp files.
12860 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12861 test -n "$tmp" && test -d "$tmp"
12862 } ||
12864 tmp=./confstat$$-$RANDOM
12865 (umask 077 && mkdir $tmp)
12866 } ||
12868 echo "$me: cannot create a temporary directory in ." >&2
12869 { (exit 1); exit 1; }
12872 _ACEOF
12874 cat >>$CONFIG_STATUS <<_ACEOF
12877 # CONFIG_FILES section.
12880 # No need to generate the scripts if there are no CONFIG_FILES.
12881 # This happens for instance when ./config.status config.h
12882 if test -n "\$CONFIG_FILES"; then
12883 # Protect against being on the right side of a sed subst in config.status.
12884 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12885 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12886 s,@SHELL@,$SHELL,;t t
12887 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12888 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12889 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12890 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12891 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12892 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12893 s,@exec_prefix@,$exec_prefix,;t t
12894 s,@prefix@,$prefix,;t t
12895 s,@program_transform_name@,$program_transform_name,;t t
12896 s,@bindir@,$bindir,;t t
12897 s,@sbindir@,$sbindir,;t t
12898 s,@libexecdir@,$libexecdir,;t t
12899 s,@datadir@,$datadir,;t t
12900 s,@sysconfdir@,$sysconfdir,;t t
12901 s,@sharedstatedir@,$sharedstatedir,;t t
12902 s,@localstatedir@,$localstatedir,;t t
12903 s,@libdir@,$libdir,;t t
12904 s,@includedir@,$includedir,;t t
12905 s,@oldincludedir@,$oldincludedir,;t t
12906 s,@infodir@,$infodir,;t t
12907 s,@mandir@,$mandir,;t t
12908 s,@build_alias@,$build_alias,;t t
12909 s,@host_alias@,$host_alias,;t t
12910 s,@target_alias@,$target_alias,;t t
12911 s,@DEFS@,$DEFS,;t t
12912 s,@ECHO_C@,$ECHO_C,;t t
12913 s,@ECHO_N@,$ECHO_N,;t t
12914 s,@ECHO_T@,$ECHO_T,;t t
12915 s,@LIBS@,$LIBS,;t t
12916 s,@build@,$build,;t t
12917 s,@build_cpu@,$build_cpu,;t t
12918 s,@build_vendor@,$build_vendor,;t t
12919 s,@build_os@,$build_os,;t t
12920 s,@host@,$host,;t t
12921 s,@host_cpu@,$host_cpu,;t t
12922 s,@host_vendor@,$host_vendor,;t t
12923 s,@host_os@,$host_os,;t t
12924 s,@target@,$target,;t t
12925 s,@target_cpu@,$target_cpu,;t t
12926 s,@target_vendor@,$target_vendor,;t t
12927 s,@target_os@,$target_os,;t t
12928 s,@build_subdir@,$build_subdir,;t t
12929 s,@host_subdir@,$host_subdir,;t t
12930 s,@target_subdir@,$target_subdir,;t t
12931 s,@GENINSRC@,$GENINSRC,;t t
12932 s,@CC@,$CC,;t t
12933 s,@CFLAGS@,$CFLAGS,;t t
12934 s,@LDFLAGS@,$LDFLAGS,;t t
12935 s,@CPPFLAGS@,$CPPFLAGS,;t t
12936 s,@ac_ct_CC@,$ac_ct_CC,;t t
12937 s,@EXEEXT@,$EXEEXT,;t t
12938 s,@OBJEXT@,$OBJEXT,;t t
12939 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12940 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12941 s,@CPP@,$CPP,;t t
12942 s,@strict1_warn@,$strict1_warn,;t t
12943 s,@warn_cflags@,$warn_cflags,;t t
12944 s,@WERROR@,$WERROR,;t t
12945 s,@nocommon_flag@,$nocommon_flag,;t t
12946 s,@EGREP@,$EGREP,;t t
12947 s,@valgrind_path@,$valgrind_path,;t t
12948 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12949 s,@valgrind_command@,$valgrind_command,;t t
12950 s,@coverage_flags@,$coverage_flags,;t t
12951 s,@enable_multilib@,$enable_multilib,;t t
12952 s,@enable_shared@,$enable_shared,;t t
12953 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12954 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12955 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12956 s,@onestep@,$onestep,;t t
12957 s,@SET_MAKE@,$SET_MAKE,;t t
12958 s,@AWK@,$AWK,;t t
12959 s,@LN@,$LN,;t t
12960 s,@LN_S@,$LN_S,;t t
12961 s,@RANLIB@,$RANLIB,;t t
12962 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12963 s,@INSTALL@,$INSTALL,;t t
12964 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12965 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12966 s,@make_compare_target@,$make_compare_target,;t t
12967 s,@have_mktemp_command@,$have_mktemp_command,;t t
12968 s,@MAKEINFO@,$MAKEINFO,;t t
12969 s,@BUILD_INFO@,$BUILD_INFO,;t t
12970 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12971 s,@FLEX@,$FLEX,;t t
12972 s,@BISON@,$BISON,;t t
12973 s,@stage1_cflags@,$stage1_cflags,;t t
12974 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12975 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12976 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12977 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12978 s,@LIBICONV@,$LIBICONV,;t t
12979 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12980 s,@manext@,$manext,;t t
12981 s,@objext@,$objext,;t t
12982 s,@gthread_flags@,$gthread_flags,;t t
12983 s,@extra_modes_file@,$extra_modes_file,;t t
12984 s,@FORBUILD@,$FORBUILD,;t t
12985 s,@PACKAGE@,$PACKAGE,;t t
12986 s,@VERSION@,$VERSION,;t t
12987 s,@USE_NLS@,$USE_NLS,;t t
12988 s,@LIBINTL@,$LIBINTL,;t t
12989 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12990 s,@INCINTL@,$INCINTL,;t t
12991 s,@XGETTEXT@,$XGETTEXT,;t t
12992 s,@GMSGFMT@,$GMSGFMT,;t t
12993 s,@POSUB@,$POSUB,;t t
12994 s,@CATALOGS@,$CATALOGS,;t t
12995 s,@CROSS@,$CROSS,;t t
12996 s,@ALL@,$ALL,;t t
12997 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12998 s,@inhibit_libc@,$inhibit_libc,;t t
12999 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13000 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13001 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13002 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13003 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13004 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13005 s,@libgcc_visibility@,$libgcc_visibility,;t t
13006 s,@GGC@,$GGC,;t t
13007 s,@zlibdir@,$zlibdir,;t t
13008 s,@zlibinc@,$zlibinc,;t t
13009 s,@MAINT@,$MAINT,;t t
13010 s,@gcc_tooldir@,$gcc_tooldir,;t t
13011 s,@dollar@,$dollar,;t t
13012 s,@slibdir@,$slibdir,;t t
13013 s,@objdir@,$objdir,;t t
13014 s,@subdirs@,$subdirs,;t t
13015 s,@srcdir@,$srcdir,;t t
13016 s,@all_boot_languages@,$all_boot_languages,;t t
13017 s,@all_compilers@,$all_compilers,;t t
13018 s,@all_gtfiles@,$all_gtfiles,;t t
13019 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13020 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13021 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13022 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13023 s,@all_languages@,$all_languages,;t t
13024 s,@all_stagestuff@,$all_stagestuff,;t t
13025 s,@build_exeext@,$build_exeext,;t t
13026 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13027 s,@build_xm_file_list@,$build_xm_file_list,;t t
13028 s,@build_xm_include_list@,$build_xm_include_list,;t t
13029 s,@build_xm_defines@,$build_xm_defines,;t t
13030 s,@check_languages@,$check_languages,;t t
13031 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13032 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13033 s,@cpp_install_dir@,$cpp_install_dir,;t t
13034 s,@xmake_file@,$xmake_file,;t t
13035 s,@tmake_file@,$tmake_file,;t t
13036 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13037 s,@extra_headers_list@,$extra_headers_list,;t t
13038 s,@extra_objs@,$extra_objs,;t t
13039 s,@extra_parts@,$extra_parts,;t t
13040 s,@extra_passes@,$extra_passes,;t t
13041 s,@extra_programs@,$extra_programs,;t t
13042 s,@float_h_file@,$float_h_file,;t t
13043 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13044 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13045 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13046 s,@gcc_version@,$gcc_version,;t t
13047 s,@gcc_version_full@,$gcc_version_full,;t t
13048 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13049 s,@host_exeext@,$host_exeext,;t t
13050 s,@host_xm_file_list@,$host_xm_file_list,;t t
13051 s,@host_xm_include_list@,$host_xm_include_list,;t t
13052 s,@host_xm_defines@,$host_xm_defines,;t t
13053 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13054 s,@install@,$install,;t t
13055 s,@lang_opt_files@,$lang_opt_files,;t t
13056 s,@lang_specs_files@,$lang_specs_files,;t t
13057 s,@lang_tree_files@,$lang_tree_files,;t t
13058 s,@local_prefix@,$local_prefix,;t t
13059 s,@md_file@,$md_file,;t t
13060 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13061 s,@out_file@,$out_file,;t t
13062 s,@out_object_file@,$out_object_file,;t t
13063 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13064 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13065 s,@symbolic_link@,$symbolic_link,;t t
13066 s,@thread_file@,$thread_file,;t t
13067 s,@tm_file_list@,$tm_file_list,;t t
13068 s,@tm_include_list@,$tm_include_list,;t t
13069 s,@tm_defines@,$tm_defines,;t t
13070 s,@tm_p_file_list@,$tm_p_file_list,;t t
13071 s,@tm_p_include_list@,$tm_p_include_list,;t t
13072 s,@xm_file_list@,$xm_file_list,;t t
13073 s,@xm_include_list@,$xm_include_list,;t t
13074 s,@xm_defines@,$xm_defines,;t t
13075 s,@target_noncanonical@,$target_noncanonical,;t t
13076 s,@c_target_objs@,$c_target_objs,;t t
13077 s,@cxx_target_objs@,$cxx_target_objs,;t t
13078 s,@target_cpu_default@,$target_cpu_default,;t t
13079 s,@LIBOBJS@,$LIBOBJS,;t t
13080 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13081 /@language_hooks@/r $language_hooks
13082 s,@language_hooks@,,;t t
13083 CEOF
13085 _ACEOF
13087 cat >>$CONFIG_STATUS <<\_ACEOF
13088 # Split the substitutions into bite-sized pieces for seds with
13089 # small command number limits, like on Digital OSF/1 and HP-UX.
13090 ac_max_sed_lines=48
13091 ac_sed_frag=1 # Number of current file.
13092 ac_beg=1 # First line for current file.
13093 ac_end=$ac_max_sed_lines # Line after last line for current file.
13094 ac_more_lines=:
13095 ac_sed_cmds=
13096 while $ac_more_lines; do
13097 if test $ac_beg -gt 1; then
13098 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13099 else
13100 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13102 if test ! -s $tmp/subs.frag; then
13103 ac_more_lines=false
13104 else
13105 # The purpose of the label and of the branching condition is to
13106 # speed up the sed processing (if there are no `@' at all, there
13107 # is no need to browse any of the substitutions).
13108 # These are the two extra sed commands mentioned above.
13109 (echo ':t
13110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13111 if test -z "$ac_sed_cmds"; then
13112 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13113 else
13114 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13116 ac_sed_frag=`expr $ac_sed_frag + 1`
13117 ac_beg=$ac_end
13118 ac_end=`expr $ac_end + $ac_max_sed_lines`
13120 done
13121 if test -z "$ac_sed_cmds"; then
13122 ac_sed_cmds=cat
13124 fi # test -n "$CONFIG_FILES"
13126 _ACEOF
13127 cat >>$CONFIG_STATUS <<\_ACEOF
13128 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13129 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13130 case $ac_file in
13131 - | *:- | *:-:* ) # input from stdin
13132 cat >$tmp/stdin
13133 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13134 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13135 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13137 * ) ac_file_in=$ac_file.in ;;
13138 esac
13140 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13141 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13142 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13143 X"$ac_file" : 'X\(//\)[^/]' \| \
13144 X"$ac_file" : 'X\(//\)$' \| \
13145 X"$ac_file" : 'X\(/\)' \| \
13146 . : '\(.\)' 2>/dev/null ||
13147 echo X"$ac_file" |
13148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13150 /^X\(\/\/\)$/{ s//\1/; q; }
13151 /^X\(\/\).*/{ s//\1/; q; }
13152 s/.*/./; q'`
13153 { if $as_mkdir_p; then
13154 mkdir -p "$ac_dir"
13155 else
13156 as_dir="$ac_dir"
13157 as_dirs=
13158 while test ! -d "$as_dir"; do
13159 as_dirs="$as_dir $as_dirs"
13160 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13162 X"$as_dir" : 'X\(//\)[^/]' \| \
13163 X"$as_dir" : 'X\(//\)$' \| \
13164 X"$as_dir" : 'X\(/\)' \| \
13165 . : '\(.\)' 2>/dev/null ||
13166 echo X"$as_dir" |
13167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13169 /^X\(\/\/\)$/{ s//\1/; q; }
13170 /^X\(\/\).*/{ s//\1/; q; }
13171 s/.*/./; q'`
13172 done
13173 test ! -n "$as_dirs" || mkdir $as_dirs
13174 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13175 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13176 { (exit 1); exit 1; }; }; }
13178 ac_builddir=.
13180 if test "$ac_dir" != .; then
13181 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13182 # A "../" for each directory in $ac_dir_suffix.
13183 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13184 else
13185 ac_dir_suffix= ac_top_builddir=
13188 case $srcdir in
13189 .) # No --srcdir option. We are building in place.
13190 ac_srcdir=.
13191 if test -z "$ac_top_builddir"; then
13192 ac_top_srcdir=.
13193 else
13194 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13195 fi ;;
13196 [\\/]* | ?:[\\/]* ) # Absolute path.
13197 ac_srcdir=$srcdir$ac_dir_suffix;
13198 ac_top_srcdir=$srcdir ;;
13199 *) # Relative path.
13200 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13201 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13202 esac
13204 # Do not use `cd foo && pwd` to compute absolute paths, because
13205 # the directories may not exist.
13206 case `pwd` in
13207 .) ac_abs_builddir="$ac_dir";;
13209 case "$ac_dir" in
13210 .) ac_abs_builddir=`pwd`;;
13211 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13212 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13213 esac;;
13214 esac
13215 case $ac_abs_builddir in
13216 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13218 case ${ac_top_builddir}. in
13219 .) ac_abs_top_builddir=$ac_abs_builddir;;
13220 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13221 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13222 esac;;
13223 esac
13224 case $ac_abs_builddir in
13225 .) ac_abs_srcdir=$ac_srcdir;;
13227 case $ac_srcdir in
13228 .) ac_abs_srcdir=$ac_abs_builddir;;
13229 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13230 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13231 esac;;
13232 esac
13233 case $ac_abs_builddir in
13234 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13236 case $ac_top_srcdir in
13237 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13238 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13239 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13240 esac;;
13241 esac
13245 # Let's still pretend it is `configure' which instantiates (i.e., don't
13246 # use $as_me), people would be surprised to read:
13247 # /* config.h. Generated by config.status. */
13248 if test x"$ac_file" = x-; then
13249 configure_input=
13250 else
13251 configure_input="$ac_file. "
13253 configure_input=$configure_input"Generated from `echo $ac_file_in |
13254 sed 's,.*/,,'` by configure."
13256 # First look for the input files in the build tree, otherwise in the
13257 # src tree.
13258 ac_file_inputs=`IFS=:
13259 for f in $ac_file_in; do
13260 case $f in
13261 -) echo $tmp/stdin ;;
13262 [\\/$]*)
13263 # Absolute (can't be DOS-style, as IFS=:)
13264 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13265 echo "$as_me: error: cannot find input file: $f" >&2;}
13266 { (exit 1); exit 1; }; }
13267 echo "$f";;
13268 *) # Relative
13269 if test -f "$f"; then
13270 # Build tree
13271 echo "$f"
13272 elif test -f "$srcdir/$f"; then
13273 # Source tree
13274 echo "$srcdir/$f"
13275 else
13276 # /dev/null tree
13277 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13278 echo "$as_me: error: cannot find input file: $f" >&2;}
13279 { (exit 1); exit 1; }; }
13280 fi;;
13281 esac
13282 done` || { (exit 1); exit 1; }
13284 if test x"$ac_file" != x-; then
13285 { echo "$as_me:$LINENO: creating $ac_file" >&5
13286 echo "$as_me: creating $ac_file" >&6;}
13287 rm -f "$ac_file"
13289 _ACEOF
13290 cat >>$CONFIG_STATUS <<_ACEOF
13291 sed "$ac_vpsub
13292 $extrasub
13293 _ACEOF
13294 cat >>$CONFIG_STATUS <<\_ACEOF
13296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13297 s,@configure_input@,$configure_input,;t t
13298 s,@srcdir@,$ac_srcdir,;t t
13299 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13300 s,@top_srcdir@,$ac_top_srcdir,;t t
13301 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13302 s,@builddir@,$ac_builddir,;t t
13303 s,@abs_builddir@,$ac_abs_builddir,;t t
13304 s,@top_builddir@,$ac_top_builddir,;t t
13305 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13306 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13307 rm -f $tmp/stdin
13308 if test x"$ac_file" != x-; then
13309 mv $tmp/out $ac_file
13310 else
13311 cat $tmp/out
13312 rm -f $tmp/out
13315 done
13316 _ACEOF
13317 cat >>$CONFIG_STATUS <<\_ACEOF
13320 # CONFIG_HEADER section.
13323 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13324 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13326 # ac_d sets the value in "#define NAME VALUE" lines.
13327 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13328 ac_dB='[ ].*$,\1#\2'
13329 ac_dC=' '
13330 ac_dD=',;t'
13331 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13332 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13333 ac_uB='$,\1#\2define\3'
13334 ac_uC=' '
13335 ac_uD=',;t'
13337 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13338 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13339 case $ac_file in
13340 - | *:- | *:-:* ) # input from stdin
13341 cat >$tmp/stdin
13342 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13343 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13344 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13345 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13346 * ) ac_file_in=$ac_file.in ;;
13347 esac
13349 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13350 echo "$as_me: creating $ac_file" >&6;}
13352 # First look for the input files in the build tree, otherwise in the
13353 # src tree.
13354 ac_file_inputs=`IFS=:
13355 for f in $ac_file_in; do
13356 case $f in
13357 -) echo $tmp/stdin ;;
13358 [\\/$]*)
13359 # Absolute (can't be DOS-style, as IFS=:)
13360 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13361 echo "$as_me: error: cannot find input file: $f" >&2;}
13362 { (exit 1); exit 1; }; }
13363 # Do quote $f, to prevent DOS paths from being IFS'd.
13364 echo "$f";;
13365 *) # Relative
13366 if test -f "$f"; then
13367 # Build tree
13368 echo "$f"
13369 elif test -f "$srcdir/$f"; then
13370 # Source tree
13371 echo "$srcdir/$f"
13372 else
13373 # /dev/null tree
13374 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13375 echo "$as_me: error: cannot find input file: $f" >&2;}
13376 { (exit 1); exit 1; }; }
13377 fi;;
13378 esac
13379 done` || { (exit 1); exit 1; }
13380 # Remove the trailing spaces.
13381 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13383 _ACEOF
13385 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13386 # `conftest.undefs', that substitutes the proper values into
13387 # config.h.in to produce config.h. The first handles `#define'
13388 # templates, and the second `#undef' templates.
13389 # And first: Protect against being on the right side of a sed subst in
13390 # config.status. Protect against being in an unquoted here document
13391 # in config.status.
13392 rm -f conftest.defines conftest.undefs
13393 # Using a here document instead of a string reduces the quoting nightmare.
13394 # Putting comments in sed scripts is not portable.
13396 # `end' is used to avoid that the second main sed command (meant for
13397 # 0-ary CPP macros) applies to n-ary macro definitions.
13398 # See the Autoconf documentation for `clear'.
13399 cat >confdef2sed.sed <<\_ACEOF
13400 s/[\\&,]/\\&/g
13401 s,[\\$`],\\&,g
13402 t clear
13403 : clear
13404 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13405 t end
13406 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13407 : end
13408 _ACEOF
13409 # If some macros were called several times there might be several times
13410 # the same #defines, which is useless. Nevertheless, we may not want to
13411 # sort them, since we want the *last* AC-DEFINE to be honored.
13412 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13413 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13414 rm -f confdef2sed.sed
13416 # This sed command replaces #undef with comments. This is necessary, for
13417 # example, in the case of _POSIX_SOURCE, which is predefined and required
13418 # on some systems where configure will not decide to define it.
13419 cat >>conftest.undefs <<\_ACEOF
13420 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13421 _ACEOF
13423 # Break up conftest.defines because some shells have a limit on the size
13424 # of here documents, and old seds have small limits too (100 cmds).
13425 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13426 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13427 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13428 echo ' :' >>$CONFIG_STATUS
13429 rm -f conftest.tail
13430 while grep . conftest.defines >/dev/null
13432 # Write a limited-size here document to $tmp/defines.sed.
13433 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13434 # Speed up: don't consider the non `#define' lines.
13435 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13436 # Work around the forget-to-reset-the-flag bug.
13437 echo 't clr' >>$CONFIG_STATUS
13438 echo ': clr' >>$CONFIG_STATUS
13439 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13440 echo 'CEOF
13441 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13442 rm -f $tmp/in
13443 mv $tmp/out $tmp/in
13444 ' >>$CONFIG_STATUS
13445 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13446 rm -f conftest.defines
13447 mv conftest.tail conftest.defines
13448 done
13449 rm -f conftest.defines
13450 echo ' fi # grep' >>$CONFIG_STATUS
13451 echo >>$CONFIG_STATUS
13453 # Break up conftest.undefs because some shells have a limit on the size
13454 # of here documents, and old seds have small limits too (100 cmds).
13455 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13456 rm -f conftest.tail
13457 while grep . conftest.undefs >/dev/null
13459 # Write a limited-size here document to $tmp/undefs.sed.
13460 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13461 # Speed up: don't consider the non `#undef'
13462 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13463 # Work around the forget-to-reset-the-flag bug.
13464 echo 't clr' >>$CONFIG_STATUS
13465 echo ': clr' >>$CONFIG_STATUS
13466 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13467 echo 'CEOF
13468 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13469 rm -f $tmp/in
13470 mv $tmp/out $tmp/in
13471 ' >>$CONFIG_STATUS
13472 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13473 rm -f conftest.undefs
13474 mv conftest.tail conftest.undefs
13475 done
13476 rm -f conftest.undefs
13478 cat >>$CONFIG_STATUS <<\_ACEOF
13479 # Let's still pretend it is `configure' which instantiates (i.e., don't
13480 # use $as_me), people would be surprised to read:
13481 # /* config.h. Generated by config.status. */
13482 if test x"$ac_file" = x-; then
13483 echo "/* Generated by configure. */" >$tmp/config.h
13484 else
13485 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13487 cat $tmp/in >>$tmp/config.h
13488 rm -f $tmp/in
13489 if test x"$ac_file" != x-; then
13490 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13491 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13492 echo "$as_me: $ac_file is unchanged" >&6;}
13493 else
13494 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13495 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13496 X"$ac_file" : 'X\(//\)[^/]' \| \
13497 X"$ac_file" : 'X\(//\)$' \| \
13498 X"$ac_file" : 'X\(/\)' \| \
13499 . : '\(.\)' 2>/dev/null ||
13500 echo X"$ac_file" |
13501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13503 /^X\(\/\/\)$/{ s//\1/; q; }
13504 /^X\(\/\).*/{ s//\1/; q; }
13505 s/.*/./; q'`
13506 { if $as_mkdir_p; then
13507 mkdir -p "$ac_dir"
13508 else
13509 as_dir="$ac_dir"
13510 as_dirs=
13511 while test ! -d "$as_dir"; do
13512 as_dirs="$as_dir $as_dirs"
13513 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13515 X"$as_dir" : 'X\(//\)[^/]' \| \
13516 X"$as_dir" : 'X\(//\)$' \| \
13517 X"$as_dir" : 'X\(/\)' \| \
13518 . : '\(.\)' 2>/dev/null ||
13519 echo X"$as_dir" |
13520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13522 /^X\(\/\/\)$/{ s//\1/; q; }
13523 /^X\(\/\).*/{ s//\1/; q; }
13524 s/.*/./; q'`
13525 done
13526 test ! -n "$as_dirs" || mkdir $as_dirs
13527 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13528 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13529 { (exit 1); exit 1; }; }; }
13531 rm -f $ac_file
13532 mv $tmp/config.h $ac_file
13534 else
13535 cat $tmp/config.h
13536 rm -f $tmp/config.h
13538 done
13539 _ACEOF
13540 cat >>$CONFIG_STATUS <<\_ACEOF
13543 # CONFIG_COMMANDS section.
13545 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13546 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13547 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13548 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13549 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13550 X"$ac_dest" : 'X\(//\)[^/]' \| \
13551 X"$ac_dest" : 'X\(//\)$' \| \
13552 X"$ac_dest" : 'X\(/\)' \| \
13553 . : '\(.\)' 2>/dev/null ||
13554 echo X"$ac_dest" |
13555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13556 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13557 /^X\(\/\/\)$/{ s//\1/; q; }
13558 /^X\(\/\).*/{ s//\1/; q; }
13559 s/.*/./; q'`
13560 { if $as_mkdir_p; then
13561 mkdir -p "$ac_dir"
13562 else
13563 as_dir="$ac_dir"
13564 as_dirs=
13565 while test ! -d "$as_dir"; do
13566 as_dirs="$as_dir $as_dirs"
13567 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13569 X"$as_dir" : 'X\(//\)[^/]' \| \
13570 X"$as_dir" : 'X\(//\)$' \| \
13571 X"$as_dir" : 'X\(/\)' \| \
13572 . : '\(.\)' 2>/dev/null ||
13573 echo X"$as_dir" |
13574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13576 /^X\(\/\/\)$/{ s//\1/; q; }
13577 /^X\(\/\).*/{ s//\1/; q; }
13578 s/.*/./; q'`
13579 done
13580 test ! -n "$as_dirs" || mkdir $as_dirs
13581 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13582 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13583 { (exit 1); exit 1; }; }; }
13585 ac_builddir=.
13587 if test "$ac_dir" != .; then
13588 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13589 # A "../" for each directory in $ac_dir_suffix.
13590 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13591 else
13592 ac_dir_suffix= ac_top_builddir=
13595 case $srcdir in
13596 .) # No --srcdir option. We are building in place.
13597 ac_srcdir=.
13598 if test -z "$ac_top_builddir"; then
13599 ac_top_srcdir=.
13600 else
13601 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13602 fi ;;
13603 [\\/]* | ?:[\\/]* ) # Absolute path.
13604 ac_srcdir=$srcdir$ac_dir_suffix;
13605 ac_top_srcdir=$srcdir ;;
13606 *) # Relative path.
13607 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13608 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13609 esac
13611 # Do not use `cd foo && pwd` to compute absolute paths, because
13612 # the directories may not exist.
13613 case `pwd` in
13614 .) ac_abs_builddir="$ac_dir";;
13616 case "$ac_dir" in
13617 .) ac_abs_builddir=`pwd`;;
13618 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13619 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13620 esac;;
13621 esac
13622 case $ac_abs_builddir in
13623 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13625 case ${ac_top_builddir}. in
13626 .) ac_abs_top_builddir=$ac_abs_builddir;;
13627 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13628 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13629 esac;;
13630 esac
13631 case $ac_abs_builddir in
13632 .) ac_abs_srcdir=$ac_srcdir;;
13634 case $ac_srcdir in
13635 .) ac_abs_srcdir=$ac_abs_builddir;;
13636 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13637 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13638 esac;;
13639 esac
13640 case $ac_abs_builddir in
13641 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13643 case $ac_top_srcdir in
13644 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13645 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13646 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13647 esac;;
13648 esac
13651 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13652 echo "$as_me: executing $ac_dest commands" >&6;}
13653 case $ac_dest in
13654 default )
13655 case ${CONFIG_HEADERS} in
13656 *auto-host.h:config.in*)
13657 echo > cstamp-h ;;
13658 esac
13659 # Make sure all the subdirs exist.
13660 for d in $subdirs
13662 test -d $d || mkdir $d
13663 done
13664 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13665 # bootstrapping and the installation procedure can still use
13666 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13667 # FLAGS_TO_PASS has been modified to solve the problem there.
13668 # This is virtually a duplicate of what happens in configure.lang; we do
13669 # an extra check to make sure this only happens if ln -s can be used.
13670 if test "$symbolic_link" = "ln -s"; then
13671 for d in ${subdirs} fixinc ; do
13672 STARTDIR=`${PWDCMD-pwd}`
13673 cd $d
13674 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13676 rm -f $t
13677 $symbolic_link ../$t $t 2>/dev/null
13678 done
13679 cd $STARTDIR
13680 done
13681 else true ; fi
13683 esac
13684 done
13685 _ACEOF
13687 cat >>$CONFIG_STATUS <<\_ACEOF
13689 { (exit 0); exit 0; }
13690 _ACEOF
13691 chmod +x $CONFIG_STATUS
13692 ac_clean_files=$ac_clean_files_save
13695 # configure is writing to config.log, and then calls config.status.
13696 # config.status does its own redirection, appending to config.log.
13697 # Unfortunately, on DOS this fails, as config.log is still kept open
13698 # by configure, so config.status won't be able to write to it; its
13699 # output is simply discarded. So we exec the FD to /dev/null,
13700 # effectively closing config.log, so it can be properly (re)opened and
13701 # appended to by config.status. When coming back to configure, we
13702 # need to make the FD available again.
13703 if test "$no_create" != yes; then
13704 ac_cs_success=:
13705 ac_config_status_args=
13706 test "$silent" = yes &&
13707 ac_config_status_args="$ac_config_status_args --quiet"
13708 exec 5>/dev/null
13709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13710 exec 5>>config.log
13711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13712 # would make configure fail if this is the last instruction.
13713 $ac_cs_success || { (exit 1); exit 1; }