expr.h (expand_expr): Make it a macro, not a function.
[official-gcc.git] / gcc / configure
blob2a80a61c79ea63140fa8ebe7091e2c8ebeee9e46
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP GNATBIND ac_ct_GNATBIND 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 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 gthread_flags GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir docobjdir parsedir 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_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_extra_gcc_objs 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'
312 ac_subst_files='language_hooks'
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
842 _ACEOF
845 if test -n "$ac_init_help"; then
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-generated-files-in-srcdir Put generated files in source dir
853 --enable-werror enable -Werror in bootstrap stage2 and later
854 --enable-checking=LIST
855 enable expensive run-time checks. With LIST,
856 enable only specific categories of checks.
857 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
858 default is misc,tree,gc,rtlflag
859 --enable-coverage=LEVEL
860 enable compiler\'s code coverage collection.
861 Use to measure compiler performance and locate
862 unused parts of the compiler. With LEVEL, specify
863 optimization. Values are opt, noopt,
864 default is noopt
865 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
866 --enable-multilib enable library support for multiple ABIs
867 --enable-__cxa_atexit enable __cxa_atexit for C++
868 --enable-threads enable thread usage for target GCC
869 --enable-threads=LIB use LIB thread package for target GCC
870 --enable-objc-gc enable the use of Boehm's garbage collector with
871 the GNU Objective-C runtime
872 --disable-shared don't provide a shared libgcc
873 --enable-intermodule build the compiler in one step
874 --enable-initfini-array use .init_array/.fini_array sections
875 --enable-sjlj-exceptions
876 arrange to use setjmp/longjmp exception handling
877 --enable-libunwind-exceptions force use libunwind for exceptions
878 --disable-win32-registry
879 disable lookup of installation paths in the
880 Registry on Windows hosts
881 --enable-win32-registry enable registry lookup (default)
882 --enable-win32-registry=KEY
883 use KEY instead of GCC version as the last portion
884 of the registry key
885 --enable-maintainer-mode
886 enable make rules and dependencies not useful
887 (and sometimes confusing) to the casual installer
888 --enable-version-specific-runtime-libs
889 specify that runtime libraries should be
890 installed in a compiler-specific directory
892 Optional Packages:
893 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
894 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
895 --with-local-prefix=DIR specifies directory to put local include
896 --with-gxx-include-dir=DIR
897 specifies directory to put g++ header files
898 --with-cpp-install-dir=DIR
899 install the user visible C preprocessor in DIR
900 (relative to PREFIX) as well as PREFIX/bin
901 --with-gnu-ld arrange to work with GNU ld.
902 --with-ld arrange to use the specified ld (full pathname)
903 --with-gnu-as arrange to work with GNU as
904 --with-as arrange to use the specified as (full pathname)
905 --with-stabs arrange to use stabs instead of host debug format
906 --with-dwarf2 force the default debug format to be DWARF 2
907 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
908 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
909 --with-gc={simple,page,zone} choose the garbage collection mechanism to use
910 with the compiler
911 --with-system-zlib use installed libz
912 --with-slibdir=DIR shared libraries in DIR LIBDIR
914 Some influential environment variables:
915 CC C compiler command
916 CFLAGS C compiler flags
917 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
918 nonstandard directory <lib dir>
919 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
920 headers in a nonstandard directory <include dir>
921 CPP C preprocessor
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
926 _ACEOF
929 if test "$ac_init_help" = "recursive"; then
930 # If there are subdirs, report their specific --help.
931 ac_popdir=`pwd`
932 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933 test -d $ac_dir || continue
934 ac_builddir=.
936 if test "$ac_dir" != .; then
937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938 # A "../" for each directory in $ac_dir_suffix.
939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
940 else
941 ac_dir_suffix= ac_top_builddir=
944 case $srcdir in
945 .) # No --srcdir option. We are building in place.
946 ac_srcdir=.
947 if test -z "$ac_top_builddir"; then
948 ac_top_srcdir=.
949 else
950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
951 fi ;;
952 [\\/]* | ?:[\\/]* ) # Absolute path.
953 ac_srcdir=$srcdir$ac_dir_suffix;
954 ac_top_srcdir=$srcdir ;;
955 *) # Relative path.
956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
958 esac
959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
960 # absolute.
961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
962 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
966 cd $ac_dir
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
969 echo
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
972 echo
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
976 echo
977 $ac_configure --help
978 else
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981 cd $ac_popdir
982 done
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
987 cat <<\_ACEOF
989 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
990 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994 exit 0
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.57. Invocation command line was
1004 $ $0 $@
1006 _ACEOF
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030 _ASUNAME
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1035 IFS=$as_save_IFS
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1038 done
1040 } >&5
1042 cat >&5 <<_ACEOF
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1049 _ACEOF
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1064 for ac_arg
1066 case $ac_arg in
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 continue ;;
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073 esac
1074 case $ac_pass in
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
1079 ac_must_keep_next=false # Got value, back to normal.
1080 else
1081 case $ac_arg in
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088 esac
1090 -* ) ac_must_keep_next=true ;;
1091 esac
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1095 ac_sep=" "
1097 esac
1098 done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log. We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
1111 echo
1113 cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118 echo
1119 # The following way of writing the cache mishandles newlines in values,
1121 (set) 2>&1 |
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123 *ac_space=\ *)
1124 sed -n \
1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 sed -n \
1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 esac;
1134 echo
1136 cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141 echo
1142 for ac_var in $ac_subst_vars
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1149 if test -n "$ac_subst_files"; then
1150 cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155 echo
1156 for ac_var in $ac_subst_files
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1160 done | sort
1161 echo
1164 if test -s confdefs.h; then
1165 cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170 echo
1171 sed "/^$/d" confdefs.h | sort
1172 echo
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1177 } >&5
1178 rm -f core core.* *.core &&
1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180 exit $exit_status
1182 for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1192 # Predefined preprocessor variables.
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 else
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232 sed 's/^/| /' "$ac_site_file" >&5
1233 . "$ac_site_file"
1235 done
1237 if test -r "$cache_file"; then
1238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243 case $cache_file in
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1246 esac
1248 else
1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251 >$cache_file
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1264 set,)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,set)
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,);;
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1278 echo "$as_me: former value: $ac_old_val" >&2;}
1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1280 echo "$as_me: current value: $ac_new_val" >&2;}
1281 ac_cache_corrupted=:
1282 fi;;
1283 esac
1284 # Pass precious variables to config.status.
1285 if test "$ac_new_set" = set; then
1286 case $ac_new_val in
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1290 esac
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294 esac
1296 done
1297 if $ac_cache_corrupted; then
1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1333 # Determine the host, build, and target systems
1334 ac_aux_dir=
1335 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1336 if test -f $ac_dir/install-sh; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/install-sh -c"
1339 break
1340 elif test -f $ac_dir/install.sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install.sh -c"
1343 break
1344 elif test -f $ac_dir/shtool; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 break
1349 done
1350 if test -z "$ac_aux_dir"; then
1351 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1353 { (exit 1); exit 1; }; }
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359 # Make sure we can run config.sub.
1360 $ac_config_sub sun4 >/dev/null 2>&1 ||
1361 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1362 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1363 { (exit 1); exit 1; }; }
1365 echo "$as_me:$LINENO: checking build system type" >&5
1366 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1367 if test "${ac_cv_build+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 ac_cv_build_alias=$build_alias
1371 test -z "$ac_cv_build_alias" &&
1372 ac_cv_build_alias=`$ac_config_guess`
1373 test -z "$ac_cv_build_alias" &&
1374 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1375 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1376 { (exit 1); exit 1; }; }
1377 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1378 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1379 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1380 { (exit 1); exit 1; }; }
1383 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1384 echo "${ECHO_T}$ac_cv_build" >&6
1385 build=$ac_cv_build
1386 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1387 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1388 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391 echo "$as_me:$LINENO: checking host system type" >&5
1392 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1393 if test "${ac_cv_host+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 else
1396 ac_cv_host_alias=$host_alias
1397 test -z "$ac_cv_host_alias" &&
1398 ac_cv_host_alias=$ac_cv_build_alias
1399 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1400 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1401 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1402 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1406 echo "${ECHO_T}$ac_cv_host" >&6
1407 host=$ac_cv_host
1408 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413 echo "$as_me:$LINENO: checking target system type" >&5
1414 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1415 if test "${ac_cv_target+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 else
1418 ac_cv_target_alias=$target_alias
1419 test "x$ac_cv_target_alias" = "x" &&
1420 ac_cv_target_alias=$ac_cv_host_alias
1421 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1428 echo "${ECHO_T}$ac_cv_target" >&6
1429 target=$ac_cv_target
1430 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435 # The aliases save the names the user supplied, while $host etc.
1436 # will get canonicalized.
1437 test -n "$target_alias" &&
1438 test "$program_prefix$program_suffix$program_transform_name" = \
1439 NONENONEs,x,x, &&
1440 program_prefix=${target_alias}-
1442 # Determine the noncanonical target name, for directory use.
1443 case ${build_alias} in
1444 "") build_noncanonical=${build} ;;
1445 *) build_noncanonical=${build_alias} ;;
1446 esac
1448 case ${host_alias} in
1449 "") host_noncanonical=${build_noncanonical} ;;
1450 *) host_noncanonical=${host_alias} ;;
1451 esac
1453 case ${target_alias} in
1454 "") target_noncanonical=${host_noncanonical} ;;
1455 *) target_noncanonical=${target_alias} ;;
1456 esac
1459 # Determine the target- and build-specific subdirectories
1460 # Prefix 'build-' so this never conflicts with target_subdir.
1461 build_subdir="build-${build_noncanonical}"
1462 # Not really a subdirectory, but here for completeness.
1463 host_subdir=.
1464 # No prefix.
1465 target_subdir=${target_noncanonical}
1468 # Set program_transform_name
1469 test "$program_prefix" != NONE &&
1470 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1471 # Use a double $ so make ignores it.
1472 test "$program_suffix" != NONE &&
1473 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1474 # Double any \ or $. echo might interpret backslashes.
1475 # By default was `s,x,x', remove it if useless.
1476 cat <<\_ACEOF >conftest.sed
1477 s/[\\$]/&&/g;s/;s,x,x,$//
1478 _ACEOF
1479 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1480 rm conftest.sed
1483 # Check for bogus environment variables.
1484 # Test if LIBRARY_PATH contains the notation for the current directory
1485 # since this would lead to problems installing/building glibc.
1486 # LIBRARY_PATH contains the current directory if one of the following
1487 # is true:
1488 # - one of the terminals (":" and ";") is the first or last sign
1489 # - two terminals occur directly after each other
1490 # - the path contains an element with a dot in it
1491 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1492 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1493 case ${LIBRARY_PATH} in
1494 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1495 library_path_setting="contains current directory"
1498 library_path_setting="ok"
1500 esac
1501 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1502 echo "${ECHO_T}$library_path_setting" >&6
1503 if test "$library_path_setting" != "ok"; then
1504 { { echo "$as_me:$LINENO: error:
1505 *** LIBRARY_PATH shouldn't contain the current directory when
1506 *** building gcc. Please change the environment variable
1507 *** and run configure again." >&5
1508 echo "$as_me: error:
1509 *** LIBRARY_PATH shouldn't contain the current directory when
1510 *** building gcc. Please change the environment variable
1511 *** and run configure again." >&2;}
1512 { (exit 1); exit 1; }; }
1515 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1516 # since this would lead to problems installing/building glibc.
1517 # GCC_EXEC_PREFIX contains the current directory if one of the following
1518 # is true:
1519 # - one of the terminals (":" and ";") is the first or last sign
1520 # - two terminals occur directly after each other
1521 # - the path contains an element with a dot in it
1522 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1523 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1524 case ${GCC_EXEC_PREFIX} in
1525 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1526 gcc_exec_prefix_setting="contains current directory"
1529 gcc_exec_prefix_setting="ok"
1531 esac
1532 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1533 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1534 if test "$gcc_exec_prefix_setting" != "ok"; then
1535 { { echo "$as_me:$LINENO: error:
1536 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1537 *** building gcc. Please change the environment variable
1538 *** and run configure again." >&5
1539 echo "$as_me: error:
1540 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1541 *** building gcc. Please change the environment variable
1542 *** and run configure again." >&2;}
1543 { (exit 1); exit 1; }; }
1546 # -----------
1547 # Directories
1548 # -----------
1550 # Specify the local prefix
1551 local_prefix=
1553 # Check whether --with-local-prefix or --without-local-prefix was given.
1554 if test "${with_local_prefix+set}" = set; then
1555 withval="$with_local_prefix"
1556 case "${withval}" in
1557 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1558 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1559 { (exit 1); exit 1; }; } ;;
1560 no) ;;
1561 *) local_prefix=$with_local_prefix ;;
1562 esac
1565 # Default local prefix if it is empty
1566 if test x$local_prefix = x; then
1567 local_prefix=/usr/local
1570 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1571 # passed in by the toplevel make and thus we'd get different behavior
1572 # depending on where we built the sources.
1573 gcc_gxx_include_dir=
1574 # Specify the g++ header file directory
1576 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1577 if test "${with_gxx_include_dir+set}" = set; then
1578 withval="$with_gxx_include_dir"
1579 case "${withval}" in
1580 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1581 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1582 { (exit 1); exit 1; }; } ;;
1583 no) ;;
1584 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1585 esac
1588 if test x${gcc_gxx_include_dir} = x; then
1589 if test x${enable_version_specific_runtime_libs} = xyes; then
1590 gcc_gxx_include_dir='${libsubdir}/include/c++'
1591 else
1592 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1593 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1598 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1599 if test "${with_cpp_install_dir+set}" = set; then
1600 withval="$with_cpp_install_dir"
1601 if test x$withval = xyes; then
1602 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1603 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1604 { (exit 1); exit 1; }; }
1605 elif test x$withval != xno; then
1606 cpp_install_dir=$withval
1610 # We would like to our source tree to be readonly. However when releases or
1611 # pre-releases are generated, the flex/bison generated files as well as the
1612 # various formats of manuals need to be included along with the rest of the
1613 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1614 # just that.
1616 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1617 if test "${enable_generated_files_in_srcdir+set}" = set; then
1618 enableval="$enable_generated_files_in_srcdir"
1619 case ${enableval} in
1620 no) parsedir='$(objdir)'; docobjdir='$(objdir)/doc';;
1621 *) parsedir='$(srcdir)'; docobjdir='$(srcdir)/doc';;
1622 esac
1623 else
1624 parsedir='$(objdir)'; docobjdir='$(objdir)/doc';
1627 # -------------------
1628 # Find default linker
1629 # -------------------
1631 # With GNU ld
1633 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1634 if test "${with_gnu_ld+set}" = set; then
1635 withval="$with_gnu_ld"
1636 gnu_ld_flag="$with_gnu_ld"
1637 else
1638 gnu_ld_flag=no
1641 # With pre-defined ld
1643 # Check whether --with-ld or --without-ld was given.
1644 if test "${with_ld+set}" = set; then
1645 withval="$with_ld"
1646 DEFAULT_LINKER="$with_ld"
1648 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1649 if test ! -x "$DEFAULT_LINKER"; then
1650 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1651 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1652 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1653 gnu_ld_flag=yes
1656 cat >>confdefs.h <<_ACEOF
1657 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1658 _ACEOF
1662 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1663 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1664 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1665 if test x"$gnu_ld_flag" = x"no"; then
1666 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1667 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1668 else
1669 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1670 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1672 else
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1677 # ----------------------
1678 # Find default assembler
1679 # ----------------------
1681 # With GNU as
1683 # Check whether --with-gnu-as or --without-gnu-as was given.
1684 if test "${with_gnu_as+set}" = set; then
1685 withval="$with_gnu_as"
1686 gas_flag="$with_gnu_as"
1687 else
1688 gas_flag=no
1692 # Check whether --with-as or --without-as was given.
1693 if test "${with_as+set}" = set; then
1694 withval="$with_as"
1695 DEFAULT_ASSEMBLER="$with_as"
1697 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1698 if test ! -x "$DEFAULT_ASSEMBLER"; then
1699 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1700 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1701 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1702 gas_flag=yes
1705 cat >>confdefs.h <<_ACEOF
1706 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1707 _ACEOF
1711 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1712 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1713 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1714 if test x"$gas_flag" = x"no"; then
1715 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1716 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1717 else
1718 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1719 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1721 else
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 # ---------------
1727 # Find C compiler
1728 # ---------------
1730 # Find the native compiler
1731 ac_ext=c
1732 ac_cpp='$CPP $CPPFLAGS'
1733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744 if test -n "$CC"; then
1745 ac_cv_prog_CC="$CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1750 IFS=$as_save_IFS
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 break 2
1758 done
1759 done
1763 CC=$ac_cv_prog_CC
1764 if test -n "$CC"; then
1765 echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6
1767 else
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1773 if test -z "$ac_cv_prog_CC"; then
1774 ac_ct_CC=$CC
1775 # Extract the first word of "gcc", so it can be a program name with args.
1776 set dummy gcc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="gcc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1796 done
1797 done
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810 CC=$ac_ct_CC
1811 else
1812 CC="$ac_cv_prog_CC"
1815 if test -z "$CC"; then
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1818 set dummy ${ac_tool_prefix}cc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 else
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="${ac_tool_prefix}cc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1838 done
1839 done
1843 CC=$ac_cv_prog_CC
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1847 else
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$ac_cv_prog_CC"; then
1854 ac_ct_CC=$CC
1855 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="cc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1876 done
1877 done
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1885 else
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1890 CC=$ac_ct_CC
1891 else
1892 CC="$ac_cv_prog_CC"
1896 if test -z "$CC"; then
1897 # Extract the first word of "cc", so it can be a program name with args.
1898 set dummy cc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1906 else
1907 ac_prog_rejected=no
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1916 ac_prog_rejected=yes
1917 continue
1919 ac_cv_prog_CC="cc"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1923 done
1924 done
1926 if test $ac_prog_rejected = yes; then
1927 # We found a bogon in the path, so make sure we never use it.
1928 set dummy $ac_cv_prog_CC
1929 shift
1930 if test $# != 0; then
1931 # We chose a different compiler from the bogus one.
1932 # However, it has the same basename, so the bogon will be chosen
1933 # first if we set CC to just the basename; use the full file name.
1934 shift
1935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1944 else
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1952 for ac_prog in cl
1954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1963 else
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 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1975 done
1976 done
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 test -n "$CC" && break
1990 done
1992 if test -z "$CC"; then
1993 ac_ct_CC=$CC
1994 for ac_prog in cl
1996 # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$ac_ct_CC"; then
2004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_ac_ct_CC="$ac_prog"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2
2017 done
2018 done
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6
2026 else
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2031 test -n "$ac_ct_CC" && break
2032 done
2034 CC=$ac_ct_CC
2040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&5
2042 echo "$as_me: error: no acceptable C compiler found in \$PATH
2043 See \`config.log' for more details." >&2;}
2044 { (exit 1); exit 1; }; }
2046 # Provide some information about the compiler.
2047 echo "$as_me:$LINENO:" \
2048 "checking for C compiler version" >&5
2049 ac_compiler=`set X $ac_compile; echo $2`
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2051 (eval $ac_compiler --version </dev/null >&5) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2056 (eval $ac_compiler -v </dev/null >&5) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }
2060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2061 (eval $ac_compiler -V </dev/null >&5) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }
2066 cat >conftest.$ac_ext <<_ACEOF
2067 #line $LINENO "configure"
2068 /* confdefs.h. */
2069 _ACEOF
2070 cat confdefs.h >>conftest.$ac_ext
2071 cat >>conftest.$ac_ext <<_ACEOF
2072 /* end confdefs.h. */
2075 main ()
2079 return 0;
2081 _ACEOF
2082 ac_clean_files_save=$ac_clean_files
2083 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2084 # Try to create an executable without -o first, disregard a.out.
2085 # It will help us diagnose broken compilers, and finding out an intuition
2086 # of exeext.
2087 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2088 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2089 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2091 (eval $ac_link_default) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # Find the output, starting from the most likely. This scheme is
2096 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2097 # resort.
2099 # Be careful to initialize this variable, since it used to be cached.
2100 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2101 ac_cv_exeext=
2102 # b.out is created by i960 compilers.
2103 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2105 test -f "$ac_file" || continue
2106 case $ac_file in
2107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2109 conftest.$ac_ext )
2110 # This is the source file.
2112 [ab].out )
2113 # We found the default executable, but exeext='' is most
2114 # certainly right.
2115 break;;
2116 *.* )
2117 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118 # FIXME: I believe we export ac_cv_exeext for Libtool,
2119 # but it would be cool to find out if it's true. Does anybody
2120 # maintain Libtool? --akim.
2121 export ac_cv_exeext
2122 break;;
2124 break;;
2125 esac
2126 done
2127 else
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2131 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: C compiler cannot create executables
2134 See \`config.log' for more details." >&2;}
2135 { (exit 77); exit 77; }; }
2138 ac_exeext=$ac_cv_exeext
2139 echo "$as_me:$LINENO: result: $ac_file" >&5
2140 echo "${ECHO_T}$ac_file" >&6
2142 # Check the compiler produces executables we can run. If not, either
2143 # the compiler is broken, or we cross compile.
2144 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2145 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2146 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2147 # If not cross compiling, check that we can run a simple program.
2148 if test "$cross_compiling" != yes; then
2149 if { ac_try='./$ac_file'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 cross_compiling=no
2156 else
2157 if test "$cross_compiling" = maybe; then
2158 cross_compiling=yes
2159 else
2160 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2161 If you meant to cross compile, use \`--host'.
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
2170 echo "$as_me:$LINENO: result: yes" >&5
2171 echo "${ECHO_T}yes" >&6
2173 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2174 ac_clean_files=$ac_clean_files_save
2175 # Check the compiler produces executables we can run. If not, either
2176 # the compiler is broken, or we cross compile.
2177 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2178 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2179 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2180 echo "${ECHO_T}$cross_compiling" >&6
2182 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2183 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2185 (eval $ac_link) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; then
2189 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2190 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2191 # work properly (i.e., refer to `conftest.exe'), while it won't with
2192 # `rm'.
2193 for ac_file in conftest.exe conftest conftest.*; do
2194 test -f "$ac_file" || continue
2195 case $ac_file in
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 export ac_cv_exeext
2199 break;;
2200 * ) break;;
2201 esac
2202 done
2203 else
2204 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2207 See \`config.log' for more details." >&2;}
2208 { (exit 1); exit 1; }; }
2211 rm -f conftest$ac_cv_exeext
2212 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213 echo "${ECHO_T}$ac_cv_exeext" >&6
2215 rm -f conftest.$ac_ext
2216 EXEEXT=$ac_cv_exeext
2217 ac_exeext=$EXEEXT
2218 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2220 if test "${ac_cv_objext+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223 cat >conftest.$ac_ext <<_ACEOF
2224 #line $LINENO "configure"
2225 /* confdefs.h. */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2232 main ()
2236 return 0;
2238 _ACEOF
2239 rm -f conftest.o conftest.obj
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; then
2245 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2246 case $ac_file in
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2248 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2249 break;;
2250 esac
2251 done
2252 else
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2256 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2265 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2266 echo "${ECHO_T}$ac_cv_objext" >&6
2267 OBJEXT=$ac_cv_objext
2268 ac_objext=$OBJEXT
2269 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2270 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2271 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274 cat >conftest.$ac_ext <<_ACEOF
2275 #line $LINENO "configure"
2276 /* confdefs.h. */
2277 _ACEOF
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2283 main ()
2285 #ifndef __GNUC__
2286 choke me
2287 #endif
2290 return 0;
2292 _ACEOF
2293 rm -f conftest.$ac_objext
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); } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2305 ac_compiler_gnu=yes
2306 else
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2310 ac_compiler_gnu=no
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2316 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2317 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2318 GCC=`test $ac_compiler_gnu = yes && echo yes`
2319 ac_test_CFLAGS=${CFLAGS+set}
2320 ac_save_CFLAGS=$CFLAGS
2321 CFLAGS="-g"
2322 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cc_g+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 cat >conftest.$ac_ext <<_ACEOF
2328 #line $LINENO "configure"
2329 /* confdefs.h. */
2330 _ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2336 main ()
2340 return 0;
2342 _ACEOF
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -s conftest.$ac_objext'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; }; then
2355 ac_cv_prog_cc_g=yes
2356 else
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2360 ac_cv_prog_cc_g=no
2362 rm -f conftest.$ac_objext conftest.$ac_ext
2364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2365 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2366 if test "$ac_test_CFLAGS" = set; then
2367 CFLAGS=$ac_save_CFLAGS
2368 elif test $ac_cv_prog_cc_g = yes; then
2369 if test "$GCC" = yes; then
2370 CFLAGS="-g -O2"
2371 else
2372 CFLAGS="-g"
2374 else
2375 if test "$GCC" = yes; then
2376 CFLAGS="-O2"
2377 else
2378 CFLAGS=
2381 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2382 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2383 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386 ac_cv_prog_cc_stdc=no
2387 ac_save_CC=$CC
2388 cat >conftest.$ac_ext <<_ACEOF
2389 #line $LINENO "configure"
2390 /* confdefs.h. */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2395 #include <stdarg.h>
2396 #include <stdio.h>
2397 #include <sys/types.h>
2398 #include <sys/stat.h>
2399 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2400 struct buf { int x; };
2401 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2402 static char *e (p, i)
2403 char **p;
2404 int i;
2406 return p[i];
2408 static char *f (char * (*g) (char **, int), char **p, ...)
2410 char *s;
2411 va_list v;
2412 va_start (v,p);
2413 s = g (p, va_arg (v,int));
2414 va_end (v);
2415 return s;
2417 int test (int i, double x);
2418 struct s1 {int (*f) (int a);};
2419 struct s2 {int (*f) (double a);};
2420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2421 int argc;
2422 char **argv;
2424 main ()
2426 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2428 return 0;
2430 _ACEOF
2431 # Don't try gcc -ansi; that turns off useful extensions and
2432 # breaks some systems' header files.
2433 # AIX -qlanglvl=ansi
2434 # Ultrix and OSF/1 -std1
2435 # HP-UX 10.20 and later -Ae
2436 # HP-UX older versions -Aa -D_HPUX_SOURCE
2437 # SVR4 -Xc -D__EXTENSIONS__
2438 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2440 CC="$ac_save_CC $ac_arg"
2441 rm -f conftest.$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443 (eval $ac_compile) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -s conftest.$ac_objext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 ac_cv_prog_cc_stdc=$ac_arg
2454 break
2455 else
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2460 rm -f conftest.$ac_objext
2461 done
2462 rm -f conftest.$ac_ext conftest.$ac_objext
2463 CC=$ac_save_CC
2467 case "x$ac_cv_prog_cc_stdc" in
2468 x|xno)
2469 echo "$as_me:$LINENO: result: none needed" >&5
2470 echo "${ECHO_T}none needed" >&6 ;;
2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2474 CC="$CC $ac_cv_prog_cc_stdc" ;;
2475 esac
2477 # Some people use a C++ compiler to compile C. Since we use `exit',
2478 # in C++ we need to declare it. In case someone uses the same compiler
2479 # for both compiling C and C++ we need to have the C++ compiler decide
2480 # the declaration of exit, since it's the most demanding environment.
2481 cat >conftest.$ac_ext <<_ACEOF
2482 #ifndef __cplusplus
2483 choke me
2484 #endif
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 for ac_declaration in \
2500 '#include <stdlib.h>' \
2501 'extern "C" void std::exit (int) throw (); using std::exit;' \
2502 'extern "C" void std::exit (int); using std::exit;' \
2503 'extern "C" void exit (int) throw ();' \
2504 'extern "C" void exit (int);' \
2505 'void exit (int);'
2507 cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 /* confdefs.h. */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2514 #include <stdlib.h>
2515 $ac_declaration
2517 main ()
2519 exit (42);
2521 return 0;
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 continue
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2544 cat >conftest.$ac_ext <<_ACEOF
2545 #line $LINENO "configure"
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2551 $ac_declaration
2553 main ()
2555 exit (42);
2557 return 0;
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 break
2573 else
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2578 rm -f conftest.$ac_objext conftest.$ac_ext
2579 done
2580 rm -f conftest*
2581 if test -n "$ac_declaration"; then
2582 echo '#ifdef __cplusplus' >>confdefs.h
2583 echo $ac_declaration >>confdefs.h
2584 echo '#endif' >>confdefs.h
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2592 rm -f conftest.$ac_objext conftest.$ac_ext
2593 ac_ext=c
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599 if test "x$CC" != xcc; then
2600 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2601 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2602 else
2603 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2604 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2606 set dummy $CC; ac_cc=`echo $2 |
2607 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2608 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 /* confdefs.h. */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2620 main ()
2624 return 0;
2626 _ACEOF
2627 # Make sure it works both with $CC and with simple cc.
2628 # We do the test twice because some compilers refuse to overwrite an
2629 # existing .o file with -o, though they will create one.
2630 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2631 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); };
2641 then
2642 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2643 if test "x$CC" != xcc; then
2644 # Test first that cc exists at all.
2645 if { ac_try='cc -c conftest.$ac_ext >&5'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2651 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2652 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); };
2662 then
2663 # cc works too.
2665 else
2666 # cc exists but doesn't like -o.
2667 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2671 else
2672 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2674 rm -f conftest*
2677 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2678 echo "$as_me:$LINENO: result: yes" >&5
2679 echo "${ECHO_T}yes" >&6
2680 else
2681 echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6
2684 cat >>confdefs.h <<\_ACEOF
2685 #define NO_MINUS_C_MINUS_O 1
2686 _ACEOF
2690 # autoconf is lame and doesn't give us any substitution variable for this.
2691 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2692 NO_MINUS_C_MINUS_O=yes
2693 else
2694 OUTPUT_OPTION='-o $@'
2699 # -------------------------
2700 # Check C compiler features
2701 # -------------------------
2704 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2705 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2706 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 save_CFLAGS="$CFLAGS"
2710 CFLAGS="-Wno-long-long"
2711 cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2713 /* confdefs.h. */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2720 main ()
2724 return 0;
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 ac_cv_prog_cc_no_long_long=yes
2740 else
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2744 ac_cv_prog_cc_no_long_long=no
2746 rm -f conftest.$ac_objext conftest.$ac_ext
2747 CFLAGS="$save_CFLAGS"
2749 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2750 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2752 ac_ext=c
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2758 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2759 # On Suns, sometimes $CPP names a directory.
2760 if test -n "$CPP" && test -d "$CPP"; then
2761 CPP=
2763 if test -z "$CPP"; then
2764 if test "${ac_cv_prog_CPP+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 # Double quotes because CPP needs to be expanded
2768 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2770 ac_preproc_ok=false
2771 for ac_c_preproc_warn_flag in '' yes
2773 # Use a header file that comes with gcc, so configuring glibc
2774 # with a fresh cross-compiler works.
2775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2776 # <limits.h> exists even on freestanding compilers.
2777 # On the NeXT, cc -E runs the code through the compiler's parser,
2778 # not just through cpp. "Syntax error" is here to catch this case.
2779 cat >conftest.$ac_ext <<_ACEOF
2780 #line $LINENO "configure"
2781 /* confdefs.h. */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2786 #ifdef __STDC__
2787 # include <limits.h>
2788 #else
2789 # include <assert.h>
2790 #endif
2791 Syntax error
2792 _ACEOF
2793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2795 ac_status=$?
2796 grep -v '^ *+' conftest.er1 >conftest.err
2797 rm -f conftest.er1
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } >/dev/null; then
2801 if test -s conftest.err; then
2802 ac_cpp_err=$ac_c_preproc_warn_flag
2803 else
2804 ac_cpp_err=
2806 else
2807 ac_cpp_err=yes
2809 if test -z "$ac_cpp_err"; then
2811 else
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 # Broken: fails on valid input.
2816 continue
2818 rm -f conftest.err conftest.$ac_ext
2820 # OK, works on sane cases. Now check whether non-existent headers
2821 # can be detected and how.
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #line $LINENO "configure"
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2829 #include <ac_nonexistent.h>
2830 _ACEOF
2831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2833 ac_status=$?
2834 grep -v '^ *+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } >/dev/null; then
2839 if test -s conftest.err; then
2840 ac_cpp_err=$ac_c_preproc_warn_flag
2841 else
2842 ac_cpp_err=
2844 else
2845 ac_cpp_err=yes
2847 if test -z "$ac_cpp_err"; then
2848 # Broken: success on invalid input.
2849 continue
2850 else
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 # Passes both tests.
2855 ac_preproc_ok=:
2856 break
2858 rm -f conftest.err conftest.$ac_ext
2860 done
2861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2862 rm -f conftest.err conftest.$ac_ext
2863 if $ac_preproc_ok; then
2864 break
2867 done
2868 ac_cv_prog_CPP=$CPP
2871 CPP=$ac_cv_prog_CPP
2872 else
2873 ac_cv_prog_CPP=$CPP
2875 echo "$as_me:$LINENO: result: $CPP" >&5
2876 echo "${ECHO_T}$CPP" >&6
2877 ac_preproc_ok=false
2878 for ac_c_preproc_warn_flag in '' yes
2880 # Use a header file that comes with gcc, so configuring glibc
2881 # with a fresh cross-compiler works.
2882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2883 # <limits.h> exists even on freestanding compilers.
2884 # On the NeXT, cc -E runs the code through the compiler's parser,
2885 # not just through cpp. "Syntax error" is here to catch this case.
2886 cat >conftest.$ac_ext <<_ACEOF
2887 #line $LINENO "configure"
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2893 #ifdef __STDC__
2894 # include <limits.h>
2895 #else
2896 # include <assert.h>
2897 #endif
2898 Syntax error
2899 _ACEOF
2900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2902 ac_status=$?
2903 grep -v '^ *+' conftest.er1 >conftest.err
2904 rm -f conftest.er1
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } >/dev/null; then
2908 if test -s conftest.err; then
2909 ac_cpp_err=$ac_c_preproc_warn_flag
2910 else
2911 ac_cpp_err=
2913 else
2914 ac_cpp_err=yes
2916 if test -z "$ac_cpp_err"; then
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 # Broken: fails on valid input.
2923 continue
2925 rm -f conftest.err conftest.$ac_ext
2927 # OK, works on sane cases. Now check whether non-existent headers
2928 # can be detected and how.
2929 cat >conftest.$ac_ext <<_ACEOF
2930 #line $LINENO "configure"
2931 /* confdefs.h. */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2936 #include <ac_nonexistent.h>
2937 _ACEOF
2938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2940 ac_status=$?
2941 grep -v '^ *+' conftest.er1 >conftest.err
2942 rm -f conftest.er1
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } >/dev/null; then
2946 if test -s conftest.err; then
2947 ac_cpp_err=$ac_c_preproc_warn_flag
2948 else
2949 ac_cpp_err=
2951 else
2952 ac_cpp_err=yes
2954 if test -z "$ac_cpp_err"; then
2955 # Broken: success on invalid input.
2956 continue
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 # Passes both tests.
2962 ac_preproc_ok=:
2963 break
2965 rm -f conftest.err conftest.$ac_ext
2967 done
2968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2969 rm -f conftest.err conftest.$ac_ext
2970 if $ac_preproc_ok; then
2972 else
2973 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2974 See \`config.log' for more details." >&5
2975 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2976 See \`config.log' for more details." >&2;}
2977 { (exit 1); exit 1; }; }
2980 ac_ext=c
2981 ac_cpp='$CPP $CPPFLAGS'
2982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2986 echo "$as_me:$LINENO: checking for inline" >&5
2987 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2988 if test "${ac_cv_c_inline+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 ac_cv_c_inline=no
2992 for ac_kw in inline __inline__ __inline; do
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line $LINENO "configure"
2995 /* confdefs.h. */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3000 #ifndef __cplusplus
3001 typedef int foo_t;
3002 static $ac_kw foo_t static_foo () {return 0; }
3003 $ac_kw foo_t foo () {return 0; }
3004 #endif
3006 _ACEOF
3007 rm -f conftest.$ac_objext
3008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3009 (eval $ac_compile) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 ac_cv_c_inline=$ac_kw; break
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f conftest.$ac_objext conftest.$ac_ext
3026 done
3029 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3030 echo "${ECHO_T}$ac_cv_c_inline" >&6
3031 case $ac_cv_c_inline in
3032 inline | yes) ;;
3034 cat >>confdefs.h <<\_ACEOF
3035 #define inline
3036 _ACEOF
3038 *) cat >>confdefs.h <<_ACEOF
3039 #define inline $ac_cv_c_inline
3040 _ACEOF
3042 esac
3045 echo "$as_me:$LINENO: checking for long long int" >&5
3046 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3047 if test "${ac_cv_c_long_long+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 cat >conftest.$ac_ext <<_ACEOF
3051 #line $LINENO "configure"
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3059 main ()
3061 long long int i;
3063 return 0;
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } &&
3072 { ac_try='test -s conftest.$ac_objext'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 ac_cv_c_long_long=yes
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 ac_cv_c_long_long=no
3085 rm -f conftest.$ac_objext conftest.$ac_ext
3087 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3088 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3089 if test $ac_cv_c_long_long = yes; then
3091 cat >>confdefs.h <<\_ACEOF
3092 #define HAVE_LONG_LONG 1
3093 _ACEOF
3096 echo "$as_me:$LINENO: checking for __int64" >&5
3097 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3098 if test "${ac_cv_c___int64+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101 cat >conftest.$ac_ext <<_ACEOF
3102 #line $LINENO "configure"
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3110 main ()
3112 __int64 i;
3114 return 0;
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119 (eval $ac_compile) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 (eval $ac_try) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3129 ac_cv_c___int64=yes
3130 else
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 ac_cv_c___int64=no
3136 rm -f conftest.$ac_objext conftest.$ac_ext
3138 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3139 echo "${ECHO_T}$ac_cv_c___int64" >&6
3140 if test $ac_cv_c___int64 = yes; then
3142 cat >>confdefs.h <<\_ACEOF
3143 #define HAVE___INT64 1
3144 _ACEOF
3148 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3149 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3150 if test "${gcc_cv_c__bool+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 cat >conftest.$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3155 /* confdefs.h. */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3162 main ()
3164 _Bool foo;
3166 return 0;
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 gcc_cv_c__bool=yes
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 gcc_cv_c__bool=no
3188 rm -f conftest.$ac_objext conftest.$ac_ext
3191 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3192 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3193 if test $gcc_cv_c__bool = yes; then
3195 cat >>confdefs.h <<\_ACEOF
3196 #define HAVE__BOOL 1
3197 _ACEOF
3202 # sizeof(char) is 1 by definition.
3203 echo "$as_me:$LINENO: checking size of void *" >&5
3204 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3205 if test "${ac_cv_sizeof_void_p+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3209 cat >conftest.$ac_ext <<_ACEOF
3210 #line $LINENO "configure"
3211 /* confdefs.h. */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3216 #include "confdefs.h"
3217 #include <sys/types.h>
3221 main ()
3223 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3225 return 0;
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 ac_cv_sizeof_void_p=$ac_size
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3246 rm -f conftest.$ac_objext conftest.$ac_ext
3247 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3248 done
3252 if test x$ac_cv_sizeof_void_p = x ; then
3253 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3254 echo "$as_me: error: cannot determine a size for void *" >&2;}
3255 { (exit 1); exit 1; }; }
3257 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3258 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3260 cat >>confdefs.h <<_ACEOF
3261 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3262 _ACEOF
3265 echo "$as_me:$LINENO: checking size of short" >&5
3266 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3267 if test "${ac_cv_sizeof_short+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3271 cat >conftest.$ac_ext <<_ACEOF
3272 #line $LINENO "configure"
3273 /* confdefs.h. */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3278 #include "confdefs.h"
3279 #include <sys/types.h>
3283 main ()
3285 switch (0) case 0: case (sizeof (short) == $ac_size):;
3287 return 0;
3289 _ACEOF
3290 rm -f conftest.$ac_objext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -s conftest.$ac_objext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 (eval $ac_try) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 ac_cv_sizeof_short=$ac_size
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3308 rm -f conftest.$ac_objext conftest.$ac_ext
3309 if test x$ac_cv_sizeof_short != x ; then break; fi
3310 done
3314 if test x$ac_cv_sizeof_short = x ; then
3315 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3316 echo "$as_me: error: cannot determine a size for short" >&2;}
3317 { (exit 1); exit 1; }; }
3319 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3320 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3322 cat >>confdefs.h <<_ACEOF
3323 #define SIZEOF_SHORT $ac_cv_sizeof_short
3324 _ACEOF
3327 echo "$as_me:$LINENO: checking size of int" >&5
3328 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3329 if test "${ac_cv_sizeof_int+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3333 cat >conftest.$ac_ext <<_ACEOF
3334 #line $LINENO "configure"
3335 /* confdefs.h. */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 #include "confdefs.h"
3341 #include <sys/types.h>
3345 main ()
3347 switch (0) case 0: case (sizeof (int) == $ac_size):;
3349 return 0;
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 ac_cv_sizeof_int=$ac_size
3365 else
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3370 rm -f conftest.$ac_objext conftest.$ac_ext
3371 if test x$ac_cv_sizeof_int != x ; then break; fi
3372 done
3376 if test x$ac_cv_sizeof_int = x ; then
3377 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3378 echo "$as_me: error: cannot determine a size for int" >&2;}
3379 { (exit 1); exit 1; }; }
3381 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3382 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3384 cat >>confdefs.h <<_ACEOF
3385 #define SIZEOF_INT $ac_cv_sizeof_int
3386 _ACEOF
3389 echo "$as_me:$LINENO: checking size of long" >&5
3390 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3391 if test "${ac_cv_sizeof_long+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3395 cat >conftest.$ac_ext <<_ACEOF
3396 #line $LINENO "configure"
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #include "confdefs.h"
3403 #include <sys/types.h>
3407 main ()
3409 switch (0) case 0: case (sizeof (long) == $ac_size):;
3411 return 0;
3413 _ACEOF
3414 rm -f conftest.$ac_objext
3415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3416 (eval $ac_compile) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } &&
3420 { ac_try='test -s conftest.$ac_objext'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 (eval $ac_try) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3426 ac_cv_sizeof_long=$ac_size
3427 else
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3432 rm -f conftest.$ac_objext conftest.$ac_ext
3433 if test x$ac_cv_sizeof_long != x ; then break; fi
3434 done
3438 if test x$ac_cv_sizeof_long = x ; then
3439 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3440 echo "$as_me: error: cannot determine a size for long" >&2;}
3441 { (exit 1); exit 1; }; }
3443 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3444 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3446 cat >>confdefs.h <<_ACEOF
3447 #define SIZEOF_LONG $ac_cv_sizeof_long
3448 _ACEOF
3451 if test $ac_cv_c_long_long = yes; then
3452 echo "$as_me:$LINENO: checking size of long long" >&5
3453 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3454 if test "${ac_cv_sizeof_long_long+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3458 cat >conftest.$ac_ext <<_ACEOF
3459 #line $LINENO "configure"
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465 #include "confdefs.h"
3466 #include <sys/types.h>
3470 main ()
3472 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3474 return 0;
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_cv_sizeof_long_long=$ac_size
3490 else
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3495 rm -f conftest.$ac_objext conftest.$ac_ext
3496 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3497 done
3501 if test x$ac_cv_sizeof_long_long = x ; then
3502 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3503 echo "$as_me: error: cannot determine a size for long long" >&2;}
3504 { (exit 1); exit 1; }; }
3506 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3507 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3509 cat >>confdefs.h <<_ACEOF
3510 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3511 _ACEOF
3515 if test $ac_cv_c___int64 = yes; then
3516 echo "$as_me:$LINENO: checking size of __int64" >&5
3517 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3518 if test "${ac_cv_sizeof___int64+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3522 cat >conftest.$ac_ext <<_ACEOF
3523 #line $LINENO "configure"
3524 /* confdefs.h. */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 #include "confdefs.h"
3530 #include <sys/types.h>
3534 main ()
3536 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3538 return 0;
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543 (eval $ac_compile) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 ac_cv_sizeof___int64=$ac_size
3554 else
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3559 rm -f conftest.$ac_objext conftest.$ac_ext
3560 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3561 done
3565 if test x$ac_cv_sizeof___int64 = x ; then
3566 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3567 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3568 { (exit 1); exit 1; }; }
3570 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3571 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3573 cat >>confdefs.h <<_ACEOF
3574 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3575 _ACEOF
3580 # -----------------
3581 # Find Ada compiler
3582 # -----------------
3584 # See if GNAT has been installed
3588 if test -n "$ac_tool_prefix"; then
3589 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3590 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3591 echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3593 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 if test -n "$GNATBIND"; then
3597 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3610 done
3611 done
3615 GNATBIND=$ac_cv_prog_GNATBIND
3616 if test -n "$GNATBIND"; then
3617 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3618 echo "${ECHO_T}$GNATBIND" >&6
3619 else
3620 echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3625 if test -z "$ac_cv_prog_GNATBIND"; then
3626 ac_ct_GNATBIND=$GNATBIND
3627 # Extract the first word of "gnatbind", so it can be a program name with args.
3628 set dummy gnatbind; ac_word=$2
3629 echo "$as_me:$LINENO: checking for $ac_word" >&5
3630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3631 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634 if test -n "$ac_ct_GNATBIND"; then
3635 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3648 done
3649 done
3651 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3654 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3655 if test -n "$ac_ct_GNATBIND"; then
3656 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3657 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3658 else
3659 echo "$as_me:$LINENO: result: no" >&5
3660 echo "${ECHO_T}no" >&6
3663 GNATBIND=$ac_ct_GNATBIND
3664 else
3665 GNATBIND="$ac_cv_prog_GNATBIND"
3668 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3669 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3670 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 cat >conftest.adb <<EOF
3674 procedure conftest is begin null; end conftest;
3676 gcc_cv_cc_supports_ada=no
3677 # There is a bug in old released versions of GCC which causes the
3678 # driver to exit successfully when the appropriate language module
3679 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3680 # Therefore we must check for the error message as well as an
3681 # unsuccessful exit.
3682 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3683 if test x"$errors" = x; then
3684 gcc_cv_cc_supports_ada=yes
3685 break
3687 rm -f conftest.*
3689 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3690 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3692 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3693 have_gnat=yes
3694 else
3695 have_gnat=no
3699 # ---------------------
3700 # Warnings and checking
3701 # ---------------------
3703 strict1_warn=
3704 if test $ac_cv_prog_cc_no_long_long = yes ; then
3705 strict1_warn="-pedantic -Wno-long-long"
3709 # If the native compiler is GCC, we can enable warnings even in stage1.
3710 # That's useful for people building cross-compilers, or just running a
3711 # quick `make'.
3712 warn_cflags=
3713 if test "x$GCC" = "xyes"; then
3714 warn_cflags='$(GCC_WARN_CFLAGS)'
3718 # Enable -Werror in bootstrap stage2 and later.
3719 # Change the default to "no" on release branches.
3720 # Check whether --enable-werror or --disable-werror was given.
3721 if test "${enable_werror+set}" = set; then
3722 enableval="$enable_werror"
3724 else
3725 enable_werror=yes
3727 if test x$enable_werror = xyes ; then
3728 WERROR=-Werror
3732 # Enable expensive internal checks
3733 # Check whether --enable-checking or --disable-checking was given.
3734 if test "${enable_checking+set}" = set; then
3735 enableval="$enable_checking"
3736 ac_checking=
3737 ac_tree_checking=
3738 ac_rtl_checking=
3739 ac_rtlflag_checking=
3740 ac_gc_checking=
3741 ac_gc_always_collect=
3742 ac_fold_checking=
3743 case "${enableval}" in
3744 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3745 ac_rtlflag_checking=1 ;;
3746 no) ;;
3747 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3748 set fnord $enableval; shift
3749 IFS="$ac_save_IFS"
3750 for check
3752 case $check in
3753 misc) ac_checking=1 ;;
3754 tree) ac_tree_checking=1 ;;
3755 rtlflag) ac_rtlflag_checking=1 ;;
3756 rtl) ac_rtl_checking=1 ;;
3757 gc) ac_gc_checking=1 ;;
3758 gcac) ac_gc_always_collect=1 ;;
3759 fold) ac_fold_checking=1 ;;
3760 valgrind) ac_checking_valgrind=1 ;;
3761 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3762 echo "$as_me: error: unknown check category $check" >&2;}
3763 { (exit 1); exit 1; }; } ;;
3764 esac
3765 done
3767 esac
3769 else
3770 # Enable some checks by default for development versions of GCC
3771 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3773 nocommon_flag=""
3774 if test x$ac_checking != x ; then
3776 cat >>confdefs.h <<\_ACEOF
3777 #define ENABLE_CHECKING 1
3778 _ACEOF
3780 nocommon_flag=-fno-common
3783 if test x$ac_tree_checking != x ; then
3785 cat >>confdefs.h <<\_ACEOF
3786 #define ENABLE_TREE_CHECKING 1
3787 _ACEOF
3790 if test x$ac_rtl_checking != x ; then
3792 cat >>confdefs.h <<\_ACEOF
3793 #define ENABLE_RTL_CHECKING 1
3794 _ACEOF
3797 if test x$ac_rtlflag_checking != x ; then
3799 cat >>confdefs.h <<\_ACEOF
3800 #define ENABLE_RTL_FLAG_CHECKING 1
3801 _ACEOF
3804 if test x$ac_gc_checking != x ; then
3806 cat >>confdefs.h <<\_ACEOF
3807 #define ENABLE_GC_CHECKING 1
3808 _ACEOF
3811 if test x$ac_gc_always_collect != x ; then
3813 cat >>confdefs.h <<\_ACEOF
3814 #define ENABLE_GC_ALWAYS_COLLECT 1
3815 _ACEOF
3818 if test x$ac_fold_checking != x ; then
3820 cat >>confdefs.h <<\_ACEOF
3821 #define ENABLE_FOLD_CHECKING 1
3822 _ACEOF
3825 valgrind_path_defines=
3826 valgrind_command=
3829 echo "$as_me:$LINENO: checking for egrep" >&5
3830 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3831 if test "${ac_cv_prog_egrep+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3835 then ac_cv_prog_egrep='grep -E'
3836 else ac_cv_prog_egrep='egrep'
3839 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3840 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3841 EGREP=$ac_cv_prog_egrep
3844 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3845 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3846 if test "${ac_cv_header_stdc+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 cat >conftest.$ac_ext <<_ACEOF
3850 #line $LINENO "configure"
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 #include <stdlib.h>
3857 #include <stdarg.h>
3858 #include <string.h>
3859 #include <float.h>
3862 main ()
3866 return 0;
3868 _ACEOF
3869 rm -f conftest.$ac_objext
3870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3871 (eval $ac_compile) 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_header_stdc=yes
3882 else
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_cv_header_stdc=no
3888 rm -f conftest.$ac_objext conftest.$ac_ext
3890 if test $ac_cv_header_stdc = yes; then
3891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3892 cat >conftest.$ac_ext <<_ACEOF
3893 #line $LINENO "configure"
3894 /* confdefs.h. */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 #include <string.h>
3901 _ACEOF
3902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903 $EGREP "memchr" >/dev/null 2>&1; then
3905 else
3906 ac_cv_header_stdc=no
3908 rm -f conftest*
3912 if test $ac_cv_header_stdc = yes; then
3913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3914 cat >conftest.$ac_ext <<_ACEOF
3915 #line $LINENO "configure"
3916 /* confdefs.h. */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921 #include <stdlib.h>
3923 _ACEOF
3924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925 $EGREP "free" >/dev/null 2>&1; then
3927 else
3928 ac_cv_header_stdc=no
3930 rm -f conftest*
3934 if test $ac_cv_header_stdc = yes; then
3935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3936 if test "$cross_compiling" = yes; then
3938 else
3939 cat >conftest.$ac_ext <<_ACEOF
3940 #line $LINENO "configure"
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 #include <ctype.h>
3947 #if ((' ' & 0x0FF) == 0x020)
3948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3950 #else
3951 # define ISLOWER(c) \
3952 (('a' <= (c) && (c) <= 'i') \
3953 || ('j' <= (c) && (c) <= 'r') \
3954 || ('s' <= (c) && (c) <= 'z'))
3955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3956 #endif
3958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3960 main ()
3962 int i;
3963 for (i = 0; i < 256; i++)
3964 if (XOR (islower (i), ISLOWER (i))
3965 || toupper (i) != TOUPPER (i))
3966 exit(2);
3967 exit (0);
3969 _ACEOF
3970 rm -f conftest$ac_exeext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3972 (eval $ac_link) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 (eval $ac_try) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3982 else
3983 echo "$as_me: program exited with status $ac_status" >&5
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 ( exit $ac_status )
3988 ac_cv_header_stdc=no
3990 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3994 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3996 if test $ac_cv_header_stdc = yes; then
3998 cat >>confdefs.h <<\_ACEOF
3999 #define STDC_HEADERS 1
4000 _ACEOF
4004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015 inttypes.h stdint.h unistd.h
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 echo "$as_me:$LINENO: checking for $ac_header" >&5
4019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 cat >conftest.$ac_ext <<_ACEOF
4024 #line $LINENO "configure"
4025 /* confdefs.h. */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 $ac_includes_default
4032 #include <$ac_header>
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 eval "$as_ac_Header=yes"
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 eval "$as_ac_Header=no"
4053 rm -f conftest.$ac_objext conftest.$ac_ext
4055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4058 cat >>confdefs.h <<_ACEOF
4059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4060 _ACEOF
4064 done
4067 if test "${ac_cv_header_valgrind_h+set}" = set; then
4068 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4069 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4070 if test "${ac_cv_header_valgrind_h+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4074 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4075 else
4076 # Is the header compilable?
4077 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4078 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4079 cat >conftest.$ac_ext <<_ACEOF
4080 #line $LINENO "configure"
4081 /* confdefs.h. */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4086 $ac_includes_default
4087 #include <valgrind.h>
4088 _ACEOF
4089 rm -f conftest.$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_header_compiler=yes
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 ac_header_compiler=no
4108 rm -f conftest.$ac_objext conftest.$ac_ext
4109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4110 echo "${ECHO_T}$ac_header_compiler" >&6
4112 # Is the header present?
4113 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4114 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4115 cat >conftest.$ac_ext <<_ACEOF
4116 #line $LINENO "configure"
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <valgrind.h>
4123 _ACEOF
4124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4126 ac_status=$?
4127 grep -v '^ *+' conftest.er1 >conftest.err
4128 rm -f conftest.er1
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } >/dev/null; then
4132 if test -s conftest.err; then
4133 ac_cpp_err=$ac_c_preproc_warn_flag
4134 else
4135 ac_cpp_err=
4137 else
4138 ac_cpp_err=yes
4140 if test -z "$ac_cpp_err"; then
4141 ac_header_preproc=yes
4142 else
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4146 ac_header_preproc=no
4148 rm -f conftest.err conftest.$ac_ext
4149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4150 echo "${ECHO_T}$ac_header_preproc" >&6
4152 # So? What about this header?
4153 case $ac_header_compiler:$ac_header_preproc in
4154 yes:no )
4155 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4156 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4157 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4158 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4160 cat <<\_ASBOX
4161 ## ------------------------------------ ##
4162 ## Report this to bug-autoconf@gnu.org. ##
4163 ## ------------------------------------ ##
4164 _ASBOX
4166 sed "s/^/$as_me: WARNING: /" >&2
4168 no:yes )
4169 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4170 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4171 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4172 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4173 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4174 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4176 cat <<\_ASBOX
4177 ## ------------------------------------ ##
4178 ## Report this to bug-autoconf@gnu.org. ##
4179 ## ------------------------------------ ##
4180 _ASBOX
4182 sed "s/^/$as_me: WARNING: /" >&2
4184 esac
4185 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4186 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4187 if test "${ac_cv_header_valgrind_h+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 ac_cv_header_valgrind_h=$ac_header_preproc
4192 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4193 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4196 if test $ac_cv_header_valgrind_h = yes; then
4197 have_valgrind_h=yes
4198 else
4199 have_valgrind_h=no
4204 if test x$ac_checking_valgrind != x ; then
4205 # It is certainly possible that there's valgrind but no valgrind.h.
4206 # GCC relies on making annotations so we must have both.
4207 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4208 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4209 cat >conftest.$ac_ext <<_ACEOF
4210 #line $LINENO "configure"
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <valgrind/memcheck.h>
4217 #ifndef VALGRIND_DISCARD
4218 #error VALGRIND_DISCARD not defined
4219 #endif
4220 _ACEOF
4221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } >/dev/null; then
4229 if test -s conftest.err; then
4230 ac_cpp_err=$ac_c_preproc_warn_flag
4231 else
4232 ac_cpp_err=
4234 else
4235 ac_cpp_err=yes
4237 if test -z "$ac_cpp_err"; then
4238 gcc_cv_header_valgrind_memcheck_h=yes
4239 else
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4243 gcc_cv_header_valgrind_memcheck_h=no
4245 rm -f conftest.err conftest.$ac_ext
4246 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4247 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4248 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4249 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4250 cat >conftest.$ac_ext <<_ACEOF
4251 #line $LINENO "configure"
4252 /* confdefs.h. */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 #include <memcheck.h>
4258 #ifndef VALGRIND_DISCARD
4259 #error VALGRIND_DISCARD not defined
4260 #endif
4261 _ACEOF
4262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } >/dev/null; then
4270 if test -s conftest.err; then
4271 ac_cpp_err=$ac_c_preproc_warn_flag
4272 else
4273 ac_cpp_err=
4275 else
4276 ac_cpp_err=yes
4278 if test -z "$ac_cpp_err"; then
4279 gcc_cv_header_memcheck_h=yes
4280 else
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 gcc_cv_header_memcheck_h=no
4286 rm -f conftest.err conftest.$ac_ext
4287 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4288 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4290 # Prepare PATH_SEPARATOR.
4291 # The user is always right.
4292 if test "${PATH_SEPARATOR+set}" != set; then
4293 echo "#! /bin/sh" >conf$$.sh
4294 echo "exit 0" >>conf$$.sh
4295 chmod +x conf$$.sh
4296 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4297 PATH_SEPARATOR=';'
4298 else
4299 PATH_SEPARATOR=:
4301 rm -f conf$$.sh
4304 # Find out how to test for executable files. Don't use a zero-byte file,
4305 # as systems may use methods other than mode bits to determine executability.
4306 cat >conf$$.file <<_ASEOF
4307 #! /bin/sh
4308 exit 0
4309 _ASEOF
4310 chmod +x conf$$.file
4311 if test -x conf$$.file >/dev/null 2>&1; then
4312 ac_executable_p="test -x"
4313 else
4314 ac_executable_p="test -f"
4316 rm -f conf$$.file
4318 # Extract the first word of "valgrind", so it can be a program name with args.
4319 set dummy valgrind; ac_word=$2
4320 echo "$as_me:$LINENO: checking for $ac_word" >&5
4321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4322 if test "${ac_cv_path_valgrind_path+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else
4325 case "$valgrind_path" in
4326 [\\/]* | ?:[\\/]*)
4327 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4330 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4331 for ac_dir in $PATH; do
4332 IFS="$ac_save_IFS"
4333 test -z "$ac_dir" && ac_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4336 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4337 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4338 break 2
4341 done
4342 done
4343 IFS="$ac_save_IFS"
4345 esac
4347 valgrind_path="$ac_cv_path_valgrind_path"
4348 if test -n "$valgrind_path"; then
4349 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4350 echo "${ECHO_T}$valgrind_path" >&6
4351 else
4352 echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6
4356 if test "x$valgrind_path" = "x" \
4357 || (test $have_valgrind_h = no \
4358 && test $gcc_cv_header_memcheck_h = no \
4359 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4360 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4361 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4362 { (exit 1); exit 1; }; }
4364 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4365 valgrind_command="$valgrind_path -q"
4367 cat >>confdefs.h <<\_ACEOF
4368 #define ENABLE_VALGRIND_CHECKING 1
4369 _ACEOF
4371 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4373 cat >>confdefs.h <<\_ACEOF
4374 #define HAVE_VALGRIND_MEMCHECK_H 1
4375 _ACEOF
4378 if test $gcc_cv_header_memcheck_h = yes; then
4380 cat >>confdefs.h <<\_ACEOF
4381 #define HAVE_MEMCHECK_H 1
4382 _ACEOF
4389 # Enable code coverage collection
4390 # Check whether --enable-coverage or --disable-coverage was given.
4391 if test "${enable_coverage+set}" = set; then
4392 enableval="$enable_coverage"
4393 case "${enableval}" in
4394 yes|noopt)
4395 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4397 opt)
4398 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4401 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4402 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4403 { (exit 1); exit 1; }; }
4405 esac
4406 else
4407 coverage_flags=""
4411 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4412 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4413 enableval="$enable_gather_detailed_mem_stats"
4415 else
4416 enable_gather_detailed_mem_stats=no
4418 if test x$enable_gather_detailed_mem_stats = xyes ; then
4420 cat >>confdefs.h <<\_ACEOF
4421 #define GATHER_STATISTICS 1
4422 _ACEOF
4426 # -------------------------------
4427 # Miscenalleous configure options
4428 # -------------------------------
4430 # With stabs
4432 # Check whether --with-stabs or --without-stabs was given.
4433 if test "${with_stabs+set}" = set; then
4434 withval="$with_stabs"
4435 stabs="$with_stabs"
4436 else
4437 stabs=no
4440 # Determine whether or not multilibs are enabled.
4441 # Check whether --enable-multilib or --disable-multilib was given.
4442 if test "${enable_multilib+set}" = set; then
4443 enableval="$enable_multilib"
4445 else
4446 enable_multilib=yes
4450 # Enable __cxa_atexit for C++.
4451 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4452 if test "${enable___cxa_atexit+set}" = set; then
4453 enableval="$enable___cxa_atexit"
4457 # Enable threads
4458 # Pass with no value to take the default
4459 # Pass with a value to specify a thread package
4460 # Check whether --enable-threads or --disable-threads was given.
4461 if test "${enable_threads+set}" = set; then
4462 enableval="$enable_threads"
4464 else
4465 enable_threads=''
4467 # Save in case it gets overwritten in config.gcc
4468 enable_threads_flag=$enable_threads
4470 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4471 if test "${enable_objc_gc+set}" = set; then
4472 enableval="$enable_objc_gc"
4473 if test x$enable_objc_gc = xno; then
4474 objc_boehm_gc=''
4475 else
4476 objc_boehm_gc=1
4478 else
4479 objc_boehm_gc=''
4483 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4484 if test "${with_dwarf2+set}" = set; then
4485 withval="$with_dwarf2"
4486 dwarf2="$with_dwarf2"
4487 else
4488 dwarf2=no
4491 # Check whether --enable-shared or --disable-shared was given.
4492 if test "${enable_shared+set}" = set; then
4493 enableval="$enable_shared"
4495 case $enable_shared in
4496 yes | no) ;;
4498 enable_shared=no
4499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4500 for pkg in $enableval; do
4501 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4502 enable_shared=yes
4504 done
4505 IFS="$ac_save_ifs"
4507 esac
4509 else
4510 enable_shared=yes
4515 # Check whether --with-sysroot or --without-sysroot was given.
4516 if test "${with_sysroot+set}" = set; then
4517 withval="$with_sysroot"
4519 case ${with_sysroot} in
4520 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4521 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4522 esac
4524 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4525 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4527 if test "x$exec_prefix" = xNONE; then
4528 if test "x$prefix" = xNONE; then
4529 test_prefix=/usr/local
4530 else
4531 test_prefix=$prefix
4533 else
4534 test_prefix=$exec_prefix
4536 case ${TARGET_SYSTEM_ROOT} in
4537 "${test_prefix}"|"${test_prefix}/"*|\
4538 '${exec_prefix}'|'${exec_prefix}/'*)
4539 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4540 TARGET_SYSTEM_ROOT_DEFINE="$t"
4542 esac
4544 else
4546 TARGET_SYSTEM_ROOT=
4547 TARGET_SYSTEM_ROOT_DEFINE=
4548 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4555 # Build with intermodule optimisations
4556 # Check whether --enable-intermodule or --disable-intermodule was given.
4557 if test "${enable_intermodule+set}" = set; then
4558 enableval="$enable_intermodule"
4559 case ${enable_intermodule} in
4560 yes) onestep="-onestep";;
4561 *) onestep="";;
4562 esac
4563 else
4564 onestep=""
4568 # -------------------------
4569 # Checks for other programs
4570 # -------------------------
4572 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4573 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4574 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4575 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 cat >conftest.make <<\_ACEOF
4579 all:
4580 @echo 'ac_maketemp="$(MAKE)"'
4581 _ACEOF
4582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4583 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4584 if test -n "$ac_maketemp"; then
4585 eval ac_cv_prog_make_${ac_make}_set=yes
4586 else
4587 eval ac_cv_prog_make_${ac_make}_set=no
4589 rm -f conftest.make
4591 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4592 echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6
4594 SET_MAKE=
4595 else
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4598 SET_MAKE="MAKE=${MAKE-make}"
4602 # Find some useful tools
4603 for ac_prog in gawk mawk nawk awk
4605 # Extract the first word of "$ac_prog", so it can be a program name with args.
4606 set dummy $ac_prog; ac_word=$2
4607 echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4609 if test "${ac_cv_prog_AWK+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612 if test -n "$AWK"; then
4613 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 ac_cv_prog_AWK="$ac_prog"
4623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4626 done
4627 done
4631 AWK=$ac_cv_prog_AWK
4632 if test -n "$AWK"; then
4633 echo "$as_me:$LINENO: result: $AWK" >&5
4634 echo "${ECHO_T}$AWK" >&6
4635 else
4636 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4640 test -n "$AWK" && break
4641 done
4643 # We need awk to run opts.sh (to create options.c and options.h).
4644 # Bail out if it's missing.
4645 case ${AWK} in
4646 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4647 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4648 { (exit 1); exit 1; }; } ;;
4649 esac
4651 echo "$as_me:$LINENO: checking whether ln works" >&5
4652 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4653 if test "${gcc_cv_prog_LN+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656 rm -f conftestdata_t
4657 echo >conftestdata_f
4658 if ln conftestdata_f conftestdata_t 2>/dev/null
4659 then
4660 gcc_cv_prog_LN="ln"
4661 else
4662 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4663 then
4664 gcc_cv_prog_LN="ln -s"
4665 else
4666 gcc_cv_prog_LN=cp
4669 rm -f conftestdata_f conftestdata_t
4672 LN="$gcc_cv_prog_LN"
4673 if test "$gcc_cv_prog_LN" = "ln"; then
4674 echo "$as_me:$LINENO: result: yes" >&5
4675 echo "${ECHO_T}yes" >&6
4676 else
4677 if test "$gcc_cv_prog_LN" = "ln -s"; then
4678 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4679 echo "${ECHO_T}no, using ln -s" >&6
4680 else
4681 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4682 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4686 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4687 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4688 if test "${gcc_cv_prog_LN_S+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691 rm -f conftestdata_t
4692 echo >conftestdata_f
4693 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4694 then
4695 gcc_cv_prog_LN_S="ln -s"
4696 else
4697 if ln conftestdata_f conftestdata_t 2>/dev/null
4698 then
4699 gcc_cv_prog_LN_S=ln
4700 else
4701 gcc_cv_prog_LN_S=cp
4704 rm -f conftestdata_f conftestdata_t
4707 LN_S="$gcc_cv_prog_LN_S"
4708 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4709 echo "$as_me:$LINENO: result: yes" >&5
4710 echo "${ECHO_T}yes" >&6
4711 else
4712 if test "$gcc_cv_prog_LN_S" = "ln"; then
4713 echo "$as_me:$LINENO: result: no, using ln" >&5
4714 echo "${ECHO_T}no, using ln" >&6
4715 else
4716 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4717 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4721 if test -n "$ac_tool_prefix"; then
4722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4724 echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4726 if test "${ac_cv_prog_RANLIB+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729 if test -n "$RANLIB"; then
4730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4743 done
4744 done
4748 RANLIB=$ac_cv_prog_RANLIB
4749 if test -n "$RANLIB"; then
4750 echo "$as_me:$LINENO: result: $RANLIB" >&5
4751 echo "${ECHO_T}$RANLIB" >&6
4752 else
4753 echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6
4758 if test -z "$ac_cv_prog_RANLIB"; then
4759 ac_ct_RANLIB=$RANLIB
4760 # Extract the first word of "ranlib", so it can be a program name with args.
4761 set dummy ranlib; ac_word=$2
4762 echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 if test -n "$ac_ct_RANLIB"; then
4768 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777 ac_cv_prog_ac_ct_RANLIB="ranlib"
4778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4781 done
4782 done
4784 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4787 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4788 if test -n "$ac_ct_RANLIB"; then
4789 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4790 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4791 else
4792 echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6
4796 RANLIB=$ac_ct_RANLIB
4797 else
4798 RANLIB="$ac_cv_prog_RANLIB"
4801 # Find a good install program. We prefer a C program (faster),
4802 # so one script is as good as another. But avoid the broken or
4803 # incompatible versions:
4804 # SysV /etc/install, /usr/sbin/install
4805 # SunOS /usr/etc/install
4806 # IRIX /sbin/install
4807 # AIX /bin/install
4808 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4809 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4810 # ./install, which can be erroneously created by make from ./install.sh.
4811 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4812 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4813 if test -z "$INSTALL"; then
4814 if test "${ac_cv_path_install+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4818 for ac_dir in $PATH; do
4819 # Account for people who put trailing slashes in PATH elements.
4820 case "$ac_dir/" in
4821 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4823 # OSF1 and SCO ODT 3.0 have their own names for install.
4824 for ac_prog in ginstall scoinst install; do
4825 if test -f $ac_dir/$ac_prog; then
4826 if test $ac_prog = install &&
4827 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4828 # AIX install. It has an incompatible calling convention.
4829 # OSF/1 installbsd also uses dspmsg, but is usable.
4831 else
4832 ac_cv_path_install="$ac_dir/$ac_prog -c"
4833 break 2
4836 done
4838 esac
4839 done
4840 IFS="$ac_save_IFS"
4843 if test "${ac_cv_path_install+set}" = set; then
4844 INSTALL="$ac_cv_path_install"
4845 else
4846 # As a last resort, use the slow shell script. We don't cache a
4847 # path for INSTALL within a source directory, because that will
4848 # break other packages using the cache if that directory is
4849 # removed, or if the path is relative.
4850 INSTALL="$ac_install_sh"
4853 echo "$as_me:$LINENO: result: $INSTALL" >&5
4854 echo "${ECHO_T}$INSTALL" >&6
4856 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4857 # It thinks the first close brace ends the variable substitution.
4858 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4860 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4863 # See if cmp has --ignore-initial.
4864 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4865 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4866 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 echo abfoo >t1
4870 echo cdfoo >t2
4871 gcc_cv_prog_cmp_skip=slowcompare
4872 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4873 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4875 else
4876 gcc_cv_prog_cmp_skip=gnucompare
4879 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
4880 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4881 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4883 else
4884 gcc_cv_prog_cmp_skip=fastcompare
4888 rm t1 t2
4891 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4892 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4893 make_compare_target=$gcc_cv_prog_cmp_skip
4897 # See if we have the mktemp command.
4898 # Extract the first word of "mktemp", so it can be a program name with args.
4899 set dummy mktemp; ac_word=$2
4900 echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905 if test -n "$have_mktemp_command"; then
4906 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_prog_have_mktemp_command="yes"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4919 done
4920 done
4922 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4925 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4926 if test -n "$have_mktemp_command"; then
4927 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4928 echo "${ECHO_T}$have_mktemp_command" >&6
4929 else
4930 echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6
4935 # Do we have a single-tree copy of texinfo?
4936 if test -f $srcdir/../texinfo/Makefile.in; then
4937 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4938 gcc_cv_prog_makeinfo_modern=yes
4939 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4940 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4941 else
4942 # See if makeinfo has been installed and is modern enough
4943 # that we can use it.
4944 # Extract the first word of "makeinfo", so it can be a program name with args.
4945 set dummy makeinfo; ac_word=$2
4946 echo "$as_me:$LINENO: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4948 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951 if test -n "$MAKEINFO"; then
4952 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961 ac_cv_prog_MAKEINFO="makeinfo"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4965 done
4966 done
4970 MAKEINFO=$ac_cv_prog_MAKEINFO
4971 if test -n "$MAKEINFO"; then
4972 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4973 echo "${ECHO_T}$MAKEINFO" >&6
4974 else
4975 echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6
4979 if test -n "$MAKEINFO"; then
4980 # Found it, now check the version.
4981 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4982 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4983 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986 ac_prog_version=`$MAKEINFO --version 2>&1 |
4987 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4988 echo "configure:4988: version of makeinfo is $ac_prog_version" >&5
4989 case $ac_prog_version in
4990 '') gcc_cv_prog_makeinfo_modern=no;;
4991 4.[2-9]*)
4992 gcc_cv_prog_makeinfo_modern=yes;;
4993 *) gcc_cv_prog_makeinfo_modern=no;;
4994 esac
4997 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
4998 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
4999 else
5000 gcc_cv_prog_makeinfo_modern=no
5005 if test $gcc_cv_prog_makeinfo_modern = no; then
5006 { echo "$as_me:$LINENO: WARNING:
5007 *** Makeinfo is missing or too old.
5008 *** Info documentation will not be built." >&5
5009 echo "$as_me: WARNING:
5010 *** Makeinfo is missing or too old.
5011 *** Info documentation will not be built." >&2;}
5012 BUILD_INFO=
5013 else
5014 BUILD_INFO=info
5017 # Is pod2man recent enough to regenerate manpages?
5018 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5019 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5020 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5021 echo "$as_me:$LINENO: result: yes" >&5
5022 echo "${ECHO_T}yes" >&6
5023 GENERATED_MANPAGES=generated-manpages
5024 else
5025 echo "$as_me:$LINENO: result: no" >&5
5026 echo "${ECHO_T}no" >&6
5027 GENERATED_MANPAGES=
5030 # How about lex?
5031 if test -f $srcdir/../flex/skel.c; then
5032 FLEX='$(objdir)/../flex/flex'
5033 else
5034 # Extract the first word of "flex", so it can be a program name with args.
5035 set dummy flex; ac_word=$2
5036 echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5038 if test "${ac_cv_prog_FLEX+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 if test -n "$FLEX"; then
5042 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051 ac_cv_prog_FLEX="flex"
5052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5055 done
5056 done
5058 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5061 FLEX=$ac_cv_prog_FLEX
5062 if test -n "$FLEX"; then
5063 echo "$as_me:$LINENO: result: $FLEX" >&5
5064 echo "${ECHO_T}$FLEX" >&6
5065 else
5066 echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6
5072 # Bison?
5073 # The -L switch is so bison can find its skeleton file.
5074 if test -f $srcdir/../bison/bison.simple; then
5075 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5076 else
5077 # Extract the first word of "bison", so it can be a program name with args.
5078 set dummy bison; ac_word=$2
5079 echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5081 if test "${ac_cv_prog_BISON+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084 if test -n "$BISON"; then
5085 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_BISON="bison"
5095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5098 done
5099 done
5101 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5104 BISON=$ac_cv_prog_BISON
5105 if test -n "$BISON"; then
5106 echo "$as_me:$LINENO: result: $BISON" >&5
5107 echo "${ECHO_T}$BISON" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5115 # --------------------
5116 # Checks for C headers
5117 # --------------------
5119 echo "$as_me:$LINENO: checking for GNU C library" >&5
5120 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5121 if test "${gcc_cv_glibc+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 cat >conftest.$ac_ext <<_ACEOF
5125 #line $LINENO "configure"
5126 /* confdefs.h. */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 #include <features.h>
5133 main ()
5136 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5137 #error Not a GNU C library system
5138 #endif
5140 return 0;
5142 _ACEOF
5143 rm -f conftest.$ac_objext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145 (eval $ac_compile) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } &&
5149 { ac_try='test -s conftest.$ac_objext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 gcc_cv_glibc=yes
5156 else
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5160 gcc_cv_glibc=no
5162 rm -f conftest.$ac_objext conftest.$ac_ext
5165 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5166 echo "${ECHO_T}$gcc_cv_glibc" >&6
5167 if test $gcc_cv_glibc = yes; then
5169 cat >>confdefs.h <<\_ACEOF
5170 #define _GNU_SOURCE 1
5171 _ACEOF
5175 # Need to reject headers which give warnings, so that the -Werror bootstrap
5176 # works later. *sigh* This needs to come before all header checks.
5178 ac_c_preproc_warn_flag=yes
5180 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5181 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5182 if test "${ac_cv_header_stdc+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 cat >conftest.$ac_ext <<_ACEOF
5186 #line $LINENO "configure"
5187 /* confdefs.h. */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 #include <stdlib.h>
5193 #include <stdarg.h>
5194 #include <string.h>
5195 #include <float.h>
5198 main ()
5202 return 0;
5204 _ACEOF
5205 rm -f conftest.$ac_objext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5207 (eval $ac_compile) 2>&5
5208 ac_status=$?
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try='test -s conftest.$ac_objext'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5217 ac_cv_header_stdc=yes
5218 else
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 ac_cv_header_stdc=no
5224 rm -f conftest.$ac_objext conftest.$ac_ext
5226 if test $ac_cv_header_stdc = yes; then
5227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5228 cat >conftest.$ac_ext <<_ACEOF
5229 #line $LINENO "configure"
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 #include <string.h>
5237 _ACEOF
5238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5239 $EGREP "memchr" >/dev/null 2>&1; then
5241 else
5242 ac_cv_header_stdc=no
5244 rm -f conftest*
5248 if test $ac_cv_header_stdc = yes; then
5249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5250 cat >conftest.$ac_ext <<_ACEOF
5251 #line $LINENO "configure"
5252 /* confdefs.h. */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 #include <stdlib.h>
5259 _ACEOF
5260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "free" >/dev/null 2>&1; then
5263 else
5264 ac_cv_header_stdc=no
5266 rm -f conftest*
5270 if test $ac_cv_header_stdc = yes; then
5271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5272 if test "$cross_compiling" = yes; then
5274 else
5275 cat >conftest.$ac_ext <<_ACEOF
5276 #line $LINENO "configure"
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #include <ctype.h>
5283 #if ((' ' & 0x0FF) == 0x020)
5284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5286 #else
5287 # define ISLOWER(c) \
5288 (('a' <= (c) && (c) <= 'i') \
5289 || ('j' <= (c) && (c) <= 'r') \
5290 || ('s' <= (c) && (c) <= 'z'))
5291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5292 #endif
5294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5296 main ()
5298 int i;
5299 for (i = 0; i < 256; i++)
5300 if (XOR (islower (i), ISLOWER (i))
5301 || toupper (i) != TOUPPER (i))
5302 exit(2);
5303 exit (0);
5305 _ACEOF
5306 rm -f conftest$ac_exeext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5308 (eval $ac_link) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5318 else
5319 echo "$as_me: program exited with status $ac_status" >&5
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5323 ( exit $ac_status )
5324 ac_cv_header_stdc=no
5326 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5330 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5331 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5332 if test $ac_cv_header_stdc = yes; then
5334 cat >>confdefs.h <<\_ACEOF
5335 #define STDC_HEADERS 1
5336 _ACEOF
5340 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5341 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5342 if test "${ac_cv_header_time+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 cat >conftest.$ac_ext <<_ACEOF
5346 #line $LINENO "configure"
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5352 #include <sys/types.h>
5353 #include <sys/time.h>
5354 #include <time.h>
5357 main ()
5359 if ((struct tm *) 0)
5360 return 0;
5362 return 0;
5364 _ACEOF
5365 rm -f conftest.$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -s conftest.$ac_objext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 (eval $ac_try) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5377 ac_cv_header_time=yes
5378 else
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5382 ac_cv_header_time=no
5384 rm -f conftest.$ac_objext conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5387 echo "${ECHO_T}$ac_cv_header_time" >&6
5388 if test $ac_cv_header_time = yes; then
5390 cat >>confdefs.h <<\_ACEOF
5391 #define TIME_WITH_SYS_TIME 1
5392 _ACEOF
5396 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5397 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5398 if test "${ac_cv_header_stdbool_h+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 cat >conftest.$ac_ext <<_ACEOF
5402 #line $LINENO "configure"
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 #include <stdbool.h>
5410 main ()
5412 bool foo = false;
5414 return 0;
5416 _ACEOF
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419 (eval $ac_compile) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } &&
5423 { ac_try='test -s conftest.$ac_objext'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 (eval $ac_try) 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5429 ac_cv_header_stdbool_h=yes
5430 else
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 ac_cv_header_stdbool_h=no
5436 rm -f conftest.$ac_objext conftest.$ac_ext
5438 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5439 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5440 if test $ac_cv_header_stdbool_h = yes; then
5442 cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_STDBOOL_H 1
5444 _ACEOF
5448 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5449 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5450 if test "${gcc_cv_header_string+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453 cat >conftest.$ac_ext <<_ACEOF
5454 #line $LINENO "configure"
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 #include <string.h>
5461 #include <strings.h>
5463 main ()
5467 return 0;
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472 (eval $ac_compile) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 gcc_cv_header_string=yes
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5487 gcc_cv_header_string=no
5489 rm -f conftest.$ac_objext conftest.$ac_ext
5491 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5492 echo "${ECHO_T}$gcc_cv_header_string" >&6
5493 if test $gcc_cv_header_string = yes; then
5495 cat >>confdefs.h <<\_ACEOF
5496 #define STRING_WITH_STRINGS 1
5497 _ACEOF
5501 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5502 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5503 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506 cat >conftest.$ac_ext <<_ACEOF
5507 #line $LINENO "configure"
5508 /* confdefs.h. */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513 #include <sys/types.h>
5514 #include <sys/wait.h>
5515 #ifndef WEXITSTATUS
5516 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5517 #endif
5518 #ifndef WIFEXITED
5519 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5520 #endif
5523 main ()
5525 int s;
5526 wait (&s);
5527 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5529 return 0;
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5534 (eval $ac_compile) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_header_sys_wait_h=yes
5545 else
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_cv_header_sys_wait_h=no
5551 rm -f conftest.$ac_objext conftest.$ac_ext
5553 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5554 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5555 if test $ac_cv_header_sys_wait_h = yes; then
5557 cat >>confdefs.h <<\_ACEOF
5558 #define HAVE_SYS_WAIT_H 1
5559 _ACEOF
5584 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5585 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5586 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5587 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5590 echo "$as_me:$LINENO: checking for $ac_header" >&5
5591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595 cat >conftest.$ac_ext <<_ACEOF
5596 #line $LINENO "configure"
5597 /* confdefs.h. */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602 #include <$ac_header>
5603 _ACEOF
5604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } >/dev/null; then
5612 if test -s conftest.err; then
5613 ac_cpp_err=$ac_c_preproc_warn_flag
5614 else
5615 ac_cpp_err=
5617 else
5618 ac_cpp_err=yes
5620 if test -z "$ac_cpp_err"; then
5621 eval "$as_ac_Header=yes"
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 eval "$as_ac_Header=no"
5628 rm -f conftest.err conftest.$ac_ext
5630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5633 cat >>confdefs.h <<_ACEOF
5634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5635 _ACEOF
5638 done
5641 # Check for thread headers.
5642 echo "$as_me:$LINENO: checking for thread.h" >&5
5643 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5644 if test "${ac_cv_header_thread_h+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 cat >conftest.$ac_ext <<_ACEOF
5648 #line $LINENO "configure"
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <thread.h>
5655 _ACEOF
5656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } >/dev/null; then
5664 if test -s conftest.err; then
5665 ac_cpp_err=$ac_c_preproc_warn_flag
5666 else
5667 ac_cpp_err=
5669 else
5670 ac_cpp_err=yes
5672 if test -z "$ac_cpp_err"; then
5673 ac_cv_header_thread_h=yes
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ac_cv_header_thread_h=no
5680 rm -f conftest.err conftest.$ac_ext
5682 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5683 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5684 if test $ac_cv_header_thread_h = yes; then
5685 have_thread_h=yes
5686 else
5687 have_thread_h=
5690 echo "$as_me:$LINENO: checking for pthread.h" >&5
5691 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5692 if test "${ac_cv_header_pthread_h+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695 cat >conftest.$ac_ext <<_ACEOF
5696 #line $LINENO "configure"
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <pthread.h>
5703 _ACEOF
5704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } >/dev/null; then
5712 if test -s conftest.err; then
5713 ac_cpp_err=$ac_c_preproc_warn_flag
5714 else
5715 ac_cpp_err=
5717 else
5718 ac_cpp_err=yes
5720 if test -z "$ac_cpp_err"; then
5721 ac_cv_header_pthread_h=yes
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 ac_cv_header_pthread_h=no
5728 rm -f conftest.err conftest.$ac_ext
5730 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5731 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5732 if test $ac_cv_header_pthread_h = yes; then
5733 have_pthread_h=yes
5734 else
5735 have_pthread_h=
5739 # These tests can't be done till we know if we have limits.h.
5740 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5741 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5742 if test "${gcc_cv_decl_char_bit+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745 cat >conftest.$ac_ext <<_ACEOF
5746 #line $LINENO "configure"
5747 /* confdefs.h. */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #ifdef HAVE_LIMITS_H
5753 #include <limits.h>
5754 #endif
5755 #ifdef CHAR_BIT
5756 found
5757 #endif
5758 _ACEOF
5759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5760 $EGREP "found" >/dev/null 2>&1; then
5761 gcc_cv_decl_char_bit=yes
5762 else
5763 gcc_cv_decl_char_bit=no
5765 rm -f conftest*
5769 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5770 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5771 if test $gcc_cv_decl_char_bit = no; then
5772 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5773 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5774 if test "${gcc_cv_c_nbby+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5778 gcc_cv_c_nbby=
5779 while test $i -lt 65; do
5780 cat >conftest.$ac_ext <<_ACEOF
5781 #line $LINENO "configure"
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5789 main ()
5791 switch(0) {
5792 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5793 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -s conftest.$ac_objext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 (eval $ac_try) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 gcc_cv_c_nbby=$i; break
5812 else
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5817 rm -f conftest.$ac_objext conftest.$ac_ext
5818 i=`expr $i + 1`
5819 done
5820 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
5823 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5824 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
5825 if test $gcc_cv_c_nbby = failed; then
5826 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5827 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5828 { (exit 1); exit 1; }; }
5829 else
5831 cat >>confdefs.h <<_ACEOF
5832 #define CHAR_BIT $gcc_cv_c_nbby
5833 _ACEOF
5837 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5838 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5839 if test "${ac_cv_c_bigendian+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842 ac_cv_c_bigendian=unknown
5843 # See if sys/param.h defines the BYTE_ORDER macro.
5844 cat >conftest.$ac_ext <<_ACEOF
5845 #line $LINENO "configure"
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 #include <sys/types.h>
5852 #include <sys/param.h>
5854 main ()
5857 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5858 bogus endian macros
5859 #endif
5861 return 0;
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } &&
5870 { ac_try='test -s conftest.$ac_objext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 # It does; now see whether it defined to BIG_ENDIAN or not.
5877 cat >conftest.$ac_ext <<_ACEOF
5878 #line $LINENO "configure"
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <sys/types.h>
5885 #include <sys/param.h>
5887 main ()
5890 #if BYTE_ORDER != BIG_ENDIAN
5891 not big endian
5892 #endif
5894 return 0;
5896 _ACEOF
5897 rm -f conftest.$ac_objext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899 (eval $ac_compile) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -s conftest.$ac_objext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 (eval $ac_try) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5909 ac_cv_c_bigendian=yes
5910 else
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5914 ac_cv_c_bigendian=no
5916 rm -f conftest.$ac_objext conftest.$ac_ext
5917 else
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5922 rm -f conftest.$ac_objext conftest.$ac_ext
5923 if test $ac_cv_c_bigendian = unknown; then
5924 if test "$cross_compiling" = yes; then
5925 echo $ac_n "cross-compiling... " 2>&6
5926 else
5927 cat >conftest.$ac_ext <<_ACEOF
5928 #line $LINENO "configure"
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 main () {
5935 /* Are we little or big endian? From Harbison&Steele. */
5936 union
5938 long l;
5939 char c[sizeof (long)];
5940 } u;
5941 u.l = 1;
5942 exit (u.c[sizeof (long) - 1] == 1);
5944 _ACEOF
5945 rm -f conftest$ac_exeext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947 (eval $ac_link) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 ac_cv_c_bigendian=no
5957 else
5958 echo "$as_me: program exited with status $ac_status" >&5
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5962 ( exit $ac_status )
5963 ac_cv_c_bigendian=yes
5965 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5969 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5970 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5971 if test $ac_cv_c_bigendian = unknown; then
5972 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
5973 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
5975 cat >conftest.c <<EOF
5976 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5977 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5978 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
5979 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5980 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5981 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
5982 int main() { _ascii (); _ebcdic (); return 0; }
5984 if test -f conftest.c ; then
5985 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
5986 if test `grep -l BIGenDianSyS conftest.o` ; then
5987 echo $ac_n ' big endian probe OK, ' 1>&6
5988 ac_cv_c_bigendian=yes
5990 if test `grep -l LiTTleEnDian conftest.o` ; then
5991 echo $ac_n ' little endian probe OK, ' 1>&6
5992 if test $ac_cv_c_bigendian = yes ; then
5993 ac_cv_c_bigendian=unknown;
5994 else
5995 ac_cv_c_bigendian=no
5998 echo $ac_n 'guessing bigendian ... ' >&6
6001 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6002 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6004 if test $ac_cv_c_bigendian = yes; then
6006 cat >>confdefs.h <<\_ACEOF
6007 #define WORDS_BIGENDIAN 1
6008 _ACEOF
6011 cat >>confdefs.h <<\_ACEOF
6012 #define HOST_WORDS_BIG_ENDIAN 1
6013 _ACEOF
6015 BYTEORDER=4321
6016 else
6017 BYTEORDER=1234
6020 cat >>confdefs.h <<_ACEOF
6021 #define BYTEORDER $BYTEORDER
6022 _ACEOF
6024 if test $ac_cv_c_bigendian = unknown; then
6025 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6026 echo "$as_me: error: unknown endianess - sorry" >&2;}
6027 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6031 # --------
6032 # UNSORTED
6033 # --------
6035 # Stage specific cflags for build.
6036 stage1_cflags=
6037 case $build in
6038 vax-*-*)
6039 if test x$GCC = xyes
6040 then
6041 stage1_cflags="-Wa,-J"
6042 else
6043 stage1_cflags="-J"
6046 powerpc-*-darwin*)
6047 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6048 # sources; use -no-cpp-precomp to get to GNU cpp.
6049 # Apple's GCC has bugs in designated initializer handling, so disable
6050 # that too.
6051 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6053 esac
6056 # These libraries may be used by collect2.
6057 # We may need a special search path to get them linked.
6058 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6059 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6060 if test "${gcc_cv_collect2_libs+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 save_LIBS="$LIBS"
6064 for libs in '' -lld -lmld \
6065 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6066 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6068 LIBS="$libs"
6069 cat >conftest.$ac_ext <<_ACEOF
6070 #line $LINENO "configure"
6071 /* confdefs.h. */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6077 /* Override any gcc2 internal prototype to avoid an error. */
6078 #ifdef __cplusplus
6079 extern "C"
6080 #endif
6081 /* We use char because int might match the return type of a gcc2
6082 builtin and then its argument prototype would still apply. */
6083 char ldopen ();
6085 main ()
6087 ldopen ();
6089 return 0;
6091 _ACEOF
6092 rm -f conftest.$ac_objext conftest$ac_exeext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6094 (eval $ac_link) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } &&
6098 { ac_try='test -s conftest$ac_exeext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 gcc_cv_collect2_libs="$libs"; break
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6111 done
6112 LIBS="$save_LIBS"
6113 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6115 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6116 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6117 case $gcc_cv_collect2_libs in
6118 "none required") ;;
6119 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6120 esac
6123 # When building Ada code on Alpha, we need exc_resume which is usually in
6124 # -lexc. So test for it.
6125 save_LIBS="$LIBS"
6126 LIBS=
6127 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6128 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6129 if test "${ac_cv_search_exc_resume+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 ac_func_search_save_LIBS=$LIBS
6133 ac_cv_search_exc_resume=no
6134 cat >conftest.$ac_ext <<_ACEOF
6135 #line $LINENO "configure"
6136 /* confdefs.h. */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6142 /* Override any gcc2 internal prototype to avoid an error. */
6143 #ifdef __cplusplus
6144 extern "C"
6145 #endif
6146 /* We use char because int might match the return type of a gcc2
6147 builtin and then its argument prototype would still apply. */
6148 char exc_resume ();
6150 main ()
6152 exc_resume ();
6154 return 0;
6156 _ACEOF
6157 rm -f conftest.$ac_objext conftest$ac_exeext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159 (eval $ac_link) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -s conftest$ac_exeext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_search_exc_resume="none required"
6170 else
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6176 if test "$ac_cv_search_exc_resume" = no; then
6177 for ac_lib in exc; do
6178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6179 cat >conftest.$ac_ext <<_ACEOF
6180 #line $LINENO "configure"
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6187 /* Override any gcc2 internal prototype to avoid an error. */
6188 #ifdef __cplusplus
6189 extern "C"
6190 #endif
6191 /* We use char because int might match the return type of a gcc2
6192 builtin and then its argument prototype would still apply. */
6193 char exc_resume ();
6195 main ()
6197 exc_resume ();
6199 return 0;
6201 _ACEOF
6202 rm -f conftest.$ac_objext conftest$ac_exeext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204 (eval $ac_link) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -s conftest$ac_exeext'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 ac_cv_search_exc_resume="-l$ac_lib"
6215 break
6216 else
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6222 done
6224 LIBS=$ac_func_search_save_LIBS
6226 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6227 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6228 if test "$ac_cv_search_exc_resume" != no; then
6229 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6233 GNAT_LIBEXC="$LIBS"
6234 LIBS="$save_LIBS"
6237 # Some systems put ldexp and frexp in libm instead of libc; assume
6238 # they're both in the same place. jcf-dump needs them.
6239 save_LIBS="$LIBS"
6240 LIBS=
6241 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6242 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6243 if test "${ac_cv_search_ldexp+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246 ac_func_search_save_LIBS=$LIBS
6247 ac_cv_search_ldexp=no
6248 cat >conftest.$ac_ext <<_ACEOF
6249 #line $LINENO "configure"
6250 /* confdefs.h. */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6256 /* Override any gcc2 internal prototype to avoid an error. */
6257 #ifdef __cplusplus
6258 extern "C"
6259 #endif
6260 /* We use char because int might match the return type of a gcc2
6261 builtin and then its argument prototype would still apply. */
6262 char ldexp ();
6264 main ()
6266 ldexp ();
6268 return 0;
6270 _ACEOF
6271 rm -f conftest.$ac_objext conftest$ac_exeext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6273 (eval $ac_link) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -s conftest$ac_exeext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_search_ldexp="none required"
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6290 if test "$ac_cv_search_ldexp" = no; then
6291 for ac_lib in m; do
6292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6293 cat >conftest.$ac_ext <<_ACEOF
6294 #line $LINENO "configure"
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6301 /* Override any gcc2 internal prototype to avoid an error. */
6302 #ifdef __cplusplus
6303 extern "C"
6304 #endif
6305 /* We use char because int might match the return type of a gcc2
6306 builtin and then its argument prototype would still apply. */
6307 char ldexp ();
6309 main ()
6311 ldexp ();
6313 return 0;
6315 _ACEOF
6316 rm -f conftest.$ac_objext conftest$ac_exeext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6318 (eval $ac_link) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -s conftest$ac_exeext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_cv_search_ldexp="-l$ac_lib"
6329 break
6330 else
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6336 done
6338 LIBS=$ac_func_search_save_LIBS
6340 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6341 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6342 if test "$ac_cv_search_ldexp" != no; then
6343 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6347 LDEXP_LIB="$LIBS"
6348 LIBS="$save_LIBS"
6351 # Use <inttypes.h> only if it exists,
6352 # doesn't clash with <sys/types.h>, and declares intmax_t.
6353 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6354 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6355 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 cat >conftest.$ac_ext <<_ACEOF
6359 #line $LINENO "configure"
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 #include <sys/types.h>
6366 #include <inttypes.h>
6368 main ()
6370 intmax_t i = -1;
6372 return 0;
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } &&
6381 { ac_try='test -s conftest.$ac_objext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 gcc_cv_header_inttypes_h=yes
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6392 gcc_cv_header_inttypes_h=no
6394 rm -f conftest.$ac_objext conftest.$ac_ext
6397 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6398 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6399 if test $gcc_cv_header_inttypes_h = yes; then
6401 cat >>confdefs.h <<\_ACEOF
6402 #define HAVE_INTTYPES_H 1
6403 _ACEOF
6433 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6434 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6435 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6436 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6437 setlocale
6439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6440 echo "$as_me:$LINENO: checking for $ac_func" >&5
6441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6442 if eval "test \"\${$as_ac_var+set}\" = set"; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 /* confdefs.h. */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6452 /* System header to define __stub macros and hopefully few prototypes,
6453 which can conflict with char $ac_func (); below.
6454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6455 <limits.h> exists even on freestanding compilers. */
6456 #ifdef __STDC__
6457 # include <limits.h>
6458 #else
6459 # include <assert.h>
6460 #endif
6461 /* Override any gcc2 internal prototype to avoid an error. */
6462 #ifdef __cplusplus
6463 extern "C"
6465 #endif
6466 /* We use char because int might match the return type of a gcc2
6467 builtin and then its argument prototype would still apply. */
6468 char $ac_func ();
6469 /* The GNU C library defines this for functions which it implements
6470 to always fail with ENOSYS. Some functions are actually named
6471 something starting with __ and the normal name is an alias. */
6472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6473 choke me
6474 #else
6475 char (*f) () = $ac_func;
6476 #endif
6477 #ifdef __cplusplus
6479 #endif
6482 main ()
6484 return f != $ac_func;
6486 return 0;
6488 _ACEOF
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491 (eval $ac_link) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -s conftest$ac_exeext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 eval "$as_ac_var=yes"
6502 else
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6506 eval "$as_ac_var=no"
6508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6512 if test `eval echo '${'$as_ac_var'}'` = yes; then
6513 cat >>confdefs.h <<_ACEOF
6514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6515 _ACEOF
6518 done
6521 if test x$ac_cv_func_mbstowcs = xyes; then
6522 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6523 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6524 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 if test "$cross_compiling" = yes; then
6528 gcc_cv_func_mbstowcs_works=yes
6529 else
6530 cat >conftest.$ac_ext <<_ACEOF
6531 #line $LINENO "configure"
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 #include <stdlib.h>
6538 int main()
6540 mbstowcs(0, "", 0);
6541 return 0;
6543 _ACEOF
6544 rm -f conftest$ac_exeext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546 (eval $ac_link) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 (eval $ac_try) 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
6555 gcc_cv_func_mbstowcs_works=yes
6556 else
6557 echo "$as_me: program exited with status $ac_status" >&5
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ( exit $ac_status )
6562 gcc_cv_func_mbstowcs_works=no
6564 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6567 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6568 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6569 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6571 cat >>confdefs.h <<\_ACEOF
6572 #define HAVE_WORKING_MBSTOWCS 1
6573 _ACEOF
6578 echo "$as_me:$LINENO: checking for ssize_t" >&5
6579 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6580 if test "${ac_cv_type_ssize_t+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583 cat >conftest.$ac_ext <<_ACEOF
6584 #line $LINENO "configure"
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 $ac_includes_default
6592 main ()
6594 if ((ssize_t *) 0)
6595 return 0;
6596 if (sizeof (ssize_t))
6597 return 0;
6599 return 0;
6601 _ACEOF
6602 rm -f conftest.$ac_objext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6604 (eval $ac_compile) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -s conftest.$ac_objext'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
6614 ac_cv_type_ssize_t=yes
6615 else
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6619 ac_cv_type_ssize_t=no
6621 rm -f conftest.$ac_objext conftest.$ac_ext
6623 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6624 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6625 if test $ac_cv_type_ssize_t = yes; then
6627 else
6629 cat >>confdefs.h <<_ACEOF
6630 #define ssize_t int
6631 _ACEOF
6636 # Try to determine the array type of the second argument of getgroups
6637 # for the target system (int or gid_t).
6638 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6639 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6640 if test "${ac_cv_type_uid_t+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 cat >conftest.$ac_ext <<_ACEOF
6644 #line $LINENO "configure"
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 #include <sys/types.h>
6652 _ACEOF
6653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6654 $EGREP "uid_t" >/dev/null 2>&1; then
6655 ac_cv_type_uid_t=yes
6656 else
6657 ac_cv_type_uid_t=no
6659 rm -f conftest*
6662 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6663 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6664 if test $ac_cv_type_uid_t = no; then
6666 cat >>confdefs.h <<\_ACEOF
6667 #define uid_t int
6668 _ACEOF
6671 cat >>confdefs.h <<\_ACEOF
6672 #define gid_t int
6673 _ACEOF
6677 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6678 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6679 if test "${ac_cv_type_getgroups+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682 if test "$cross_compiling" = yes; then
6683 ac_cv_type_getgroups=cross
6684 else
6685 cat >conftest.$ac_ext <<_ACEOF
6686 #line $LINENO "configure"
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 /* Thanks to Mike Rendell for this test. */
6693 #include <sys/types.h>
6694 #define NGID 256
6695 #undef MAX
6696 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6699 main ()
6701 gid_t gidset[NGID];
6702 int i, n;
6703 union { gid_t gval; long lval; } val;
6705 val.lval = -1;
6706 for (i = 0; i < NGID; i++)
6707 gidset[i] = val.gval;
6708 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6709 gidset);
6710 /* Exit non-zero if getgroups seems to require an array of ints. This
6711 happens when gid_t is short but getgroups modifies an array of ints. */
6712 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6714 _ACEOF
6715 rm -f conftest$ac_exeext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6717 (eval $ac_link) 2>&5
6718 ac_status=$?
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 (eval $ac_try) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6726 ac_cv_type_getgroups=gid_t
6727 else
6728 echo "$as_me: program exited with status $ac_status" >&5
6729 echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6732 ( exit $ac_status )
6733 ac_cv_type_getgroups=int
6735 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6737 if test $ac_cv_type_getgroups = cross; then
6738 cat >conftest.$ac_ext <<_ACEOF
6739 #line $LINENO "configure"
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 #include <unistd.h>
6747 _ACEOF
6748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6750 ac_cv_type_getgroups=gid_t
6751 else
6752 ac_cv_type_getgroups=int
6754 rm -f conftest*
6758 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6759 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6761 cat >>confdefs.h <<_ACEOF
6762 #define GETGROUPS_T $ac_cv_type_getgroups
6763 _ACEOF
6766 if test "${target}" = "${build}"; then
6767 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
6768 else
6769 case "${target}" in
6770 # This condition may need some tweaking. It should include all
6771 # targets where the array type of the second argument of getgroups
6772 # is int and the type of gid_t is not equivalent to int.
6773 *-*-sunos* | *-*-ultrix*)
6774 TARGET_GETGROUPS_T=int
6777 TARGET_GETGROUPS_T=gid_t
6779 esac
6783 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
6784 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
6785 if test "${gcc_cv_func_printf_ptr+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788 if test "$cross_compiling" = yes; then
6789 gcc_cv_func_printf_ptr=no
6790 else
6791 cat >conftest.$ac_ext <<_ACEOF
6792 #line $LINENO "configure"
6793 /* confdefs.h. */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <stdio.h>
6800 int main()
6802 char buf[64];
6803 char *p = buf, *q = NULL;
6804 sprintf(buf, "%p", p);
6805 sscanf(buf, "%p", &q);
6806 return (p != q);
6808 _ACEOF
6809 rm -f conftest$ac_exeext
6810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811 (eval $ac_link) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 gcc_cv_func_printf_ptr=yes
6821 else
6822 echo "$as_me: program exited with status $ac_status" >&5
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 ( exit $ac_status )
6827 gcc_cv_func_printf_ptr=no
6829 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6831 rm -f core core.* *.core
6833 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
6834 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
6835 if test $gcc_cv_func_printf_ptr = yes ; then
6837 cat >>confdefs.h <<\_ACEOF
6838 #define HAVE_PRINTF_PTR 1
6839 _ACEOF
6843 if test $ac_cv_header_sys_mman_h != yes \
6844 || test $ac_cv_func_mmap != yes; then
6845 gcc_cv_func_mmap_file=no
6846 gcc_cv_func_mmap_dev_zero=no
6847 gcc_cv_func_mmap_anon=no
6848 else
6849 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
6850 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
6851 if test "${gcc_cv_func_mmap_file+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 # Add a system to this blacklist if
6855 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
6856 # memory area containing the same data that you'd get if you applied
6857 # read() to the same fd. The only system known to have a problem here
6858 # is VMS, where text files have record structure.
6859 case "$host_os" in
6860 vms* | ultrix*)
6861 gcc_cv_func_mmap_file=no ;;
6863 gcc_cv_func_mmap_file=yes;;
6864 esac
6866 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
6867 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
6868 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
6869 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
6870 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873 # Add a system to this blacklist if it has mmap() but /dev/zero
6874 # does not exist, or if mmapping /dev/zero does not give anonymous
6875 # zeroed pages with both the following properties:
6876 # 1. If you map N consecutive pages in with one call, and then
6877 # unmap any subset of those pages, the pages that were not
6878 # explicitly unmapped remain accessible.
6879 # 2. If you map two adjacent blocks of memory and then unmap them
6880 # both at once, they must both go away.
6881 # Systems known to be in this category are Windows (all variants),
6882 # VMS, and Darwin.
6883 case "$host_os" in
6884 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
6885 gcc_cv_func_mmap_dev_zero=no ;;
6887 gcc_cv_func_mmap_dev_zero=yes;;
6888 esac
6890 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
6891 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
6893 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
6894 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
6895 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
6896 if test "${gcc_cv_decl_map_anon+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899 cat >conftest.$ac_ext <<_ACEOF
6900 #line $LINENO "configure"
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #include <sys/types.h>
6907 #include <sys/mman.h>
6908 #include <unistd.h>
6910 #ifndef MAP_ANONYMOUS
6911 #define MAP_ANONYMOUS MAP_ANON
6912 #endif
6915 main ()
6917 int n = MAP_ANONYMOUS;
6919 return 0;
6921 _ACEOF
6922 rm -f conftest.$ac_objext
6923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6924 (eval $ac_compile) 2>&5
6925 ac_status=$?
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try='test -s conftest.$ac_objext'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 (eval $ac_try) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 gcc_cv_decl_map_anon=yes
6935 else
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 gcc_cv_decl_map_anon=no
6941 rm -f conftest.$ac_objext conftest.$ac_ext
6943 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
6944 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
6946 if test $gcc_cv_decl_map_anon = no; then
6947 gcc_cv_func_mmap_anon=no
6948 else
6949 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
6950 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
6951 if test "${gcc_cv_func_mmap_anon+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 # Add a system to this blacklist if it has mmap() and MAP_ANON or
6955 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
6956 # doesn't give anonymous zeroed pages with the same properties listed
6957 # above for use of /dev/zero.
6958 # Systems known to be in this category are Windows, VMS, and SCO Unix.
6959 case "$host_os" in
6960 vms* | cygwin* | pe | mingw* | sco* | udk* )
6961 gcc_cv_func_mmap_anon=no ;;
6963 gcc_cv_func_mmap_anon=yes;;
6964 esac
6966 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
6967 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
6971 if test $gcc_cv_func_mmap_file = yes; then
6973 cat >>confdefs.h <<\_ACEOF
6974 #define HAVE_MMAP_FILE 1
6975 _ACEOF
6978 if test $gcc_cv_func_mmap_dev_zero = yes; then
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_MMAP_DEV_ZERO 1
6982 _ACEOF
6985 if test $gcc_cv_func_mmap_anon = yes; then
6987 cat >>confdefs.h <<\_ACEOF
6988 #define HAVE_MMAP_ANON 1
6989 _ACEOF
6994 case "${host}" in
6995 *-*-*vms*)
6996 # Under VMS, vfork works very differently than on Unix. The standard test
6997 # won't work, and it isn't easily adaptable. It makes more sense to
6998 # just force it.
6999 ac_cv_func_vfork_works=yes
7001 esac
7002 echo "$as_me:$LINENO: checking for pid_t" >&5
7003 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7004 if test "${ac_cv_type_pid_t+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 cat >conftest.$ac_ext <<_ACEOF
7008 #line $LINENO "configure"
7009 /* confdefs.h. */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 $ac_includes_default
7016 main ()
7018 if ((pid_t *) 0)
7019 return 0;
7020 if (sizeof (pid_t))
7021 return 0;
7023 return 0;
7025 _ACEOF
7026 rm -f conftest.$ac_objext
7027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028 (eval $ac_compile) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try='test -s conftest.$ac_objext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_cv_type_pid_t=yes
7039 else
7040 echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7043 ac_cv_type_pid_t=no
7045 rm -f conftest.$ac_objext conftest.$ac_ext
7047 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7048 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7049 if test $ac_cv_type_pid_t = yes; then
7051 else
7053 cat >>confdefs.h <<_ACEOF
7054 #define pid_t int
7055 _ACEOF
7061 for ac_header in unistd.h vfork.h
7063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7064 echo "$as_me:$LINENO: checking for $ac_header" >&5
7065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 cat >conftest.$ac_ext <<_ACEOF
7070 #line $LINENO "configure"
7071 /* confdefs.h. */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 #include <$ac_header>
7077 _ACEOF
7078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } >/dev/null; then
7086 if test -s conftest.err; then
7087 ac_cpp_err=$ac_c_preproc_warn_flag
7088 else
7089 ac_cpp_err=
7091 else
7092 ac_cpp_err=yes
7094 if test -z "$ac_cpp_err"; then
7095 eval "$as_ac_Header=yes"
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 eval "$as_ac_Header=no"
7102 rm -f conftest.err conftest.$ac_ext
7104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7107 cat >>confdefs.h <<_ACEOF
7108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7109 _ACEOF
7112 done
7116 for ac_func in fork vfork
7118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7119 echo "$as_me:$LINENO: checking for $ac_func" >&5
7120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7121 if eval "test \"\${$as_ac_var+set}\" = set"; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 cat >conftest.$ac_ext <<_ACEOF
7125 #line $LINENO "configure"
7126 /* confdefs.h. */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7131 /* System header to define __stub macros and hopefully few prototypes,
7132 which can conflict with char $ac_func (); below.
7133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7134 <limits.h> exists even on freestanding compilers. */
7135 #ifdef __STDC__
7136 # include <limits.h>
7137 #else
7138 # include <assert.h>
7139 #endif
7140 /* Override any gcc2 internal prototype to avoid an error. */
7141 #ifdef __cplusplus
7142 extern "C"
7144 #endif
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7147 char $ac_func ();
7148 /* The GNU C library defines this for functions which it implements
7149 to always fail with ENOSYS. Some functions are actually named
7150 something starting with __ and the normal name is an alias. */
7151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7152 choke me
7153 #else
7154 char (*f) () = $ac_func;
7155 #endif
7156 #ifdef __cplusplus
7158 #endif
7161 main ()
7163 return f != $ac_func;
7165 return 0;
7167 _ACEOF
7168 rm -f conftest.$ac_objext conftest$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170 (eval $ac_link) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } &&
7174 { ac_try='test -s conftest$ac_exeext'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 (eval $ac_try) 2>&5
7177 ac_status=$?
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 eval "$as_ac_var=yes"
7181 else
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7185 eval "$as_ac_var=no"
7187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7191 if test `eval echo '${'$as_ac_var'}'` = yes; then
7192 cat >>confdefs.h <<_ACEOF
7193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7194 _ACEOF
7197 done
7199 if test "x$ac_cv_func_fork" = xyes; then
7200 echo "$as_me:$LINENO: checking for working fork" >&5
7201 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7202 if test "${ac_cv_func_fork_works+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205 if test "$cross_compiling" = yes; then
7206 ac_cv_func_fork_works=cross
7207 else
7208 cat >conftest.$ac_ext <<_ACEOF
7209 /* By Ruediger Kuhlmann. */
7210 #include <sys/types.h>
7211 #if HAVE_UNISTD_H
7212 # include <unistd.h>
7213 #endif
7214 /* Some systems only have a dummy stub for fork() */
7215 int main ()
7217 if (fork() < 0)
7218 exit (1);
7219 exit (0);
7221 _ACEOF
7222 rm -f conftest$ac_exeext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7224 (eval $ac_link) 2>&5
7225 ac_status=$?
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_cv_func_fork_works=yes
7234 else
7235 echo "$as_me: program exited with status $ac_status" >&5
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 ( exit $ac_status )
7240 ac_cv_func_fork_works=no
7242 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7245 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7246 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7248 else
7249 ac_cv_func_fork_works=$ac_cv_func_fork
7251 if test "x$ac_cv_func_fork_works" = xcross; then
7252 case $host in
7253 *-*-amigaos* | *-*-msdosdjgpp*)
7254 # Override, as these systems have only a dummy fork() stub
7255 ac_cv_func_fork_works=no
7258 ac_cv_func_fork_works=yes
7260 esac
7261 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7262 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7264 ac_cv_func_vfork_works=$ac_cv_func_vfork
7265 if test "x$ac_cv_func_vfork" = xyes; then
7266 echo "$as_me:$LINENO: checking for working vfork" >&5
7267 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7268 if test "${ac_cv_func_vfork_works+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271 if test "$cross_compiling" = yes; then
7272 ac_cv_func_vfork_works=cross
7273 else
7274 cat >conftest.$ac_ext <<_ACEOF
7275 #line $LINENO "configure"
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 /* Thanks to Paul Eggert for this test. */
7282 #include <stdio.h>
7283 #include <stdlib.h>
7284 #include <sys/types.h>
7285 #include <sys/stat.h>
7286 #include <sys/wait.h>
7287 #if HAVE_UNISTD_H
7288 # include <unistd.h>
7289 #endif
7290 #if HAVE_VFORK_H
7291 # include <vfork.h>
7292 #endif
7293 /* On some sparc systems, changes by the child to local and incoming
7294 argument registers are propagated back to the parent. The compiler
7295 is told about this with #include <vfork.h>, but some compilers
7296 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7297 static variable whose address is put into a register that is
7298 clobbered by the vfork. */
7299 static void
7300 #ifdef __cplusplus
7301 sparc_address_test (int arg)
7302 # else
7303 sparc_address_test (arg) int arg;
7304 #endif
7306 static pid_t child;
7307 if (!child) {
7308 child = vfork ();
7309 if (child < 0) {
7310 perror ("vfork");
7311 _exit(2);
7313 if (!child) {
7314 arg = getpid();
7315 write(-1, "", 0);
7316 _exit (arg);
7322 main ()
7324 pid_t parent = getpid ();
7325 pid_t child;
7327 sparc_address_test (0);
7329 child = vfork ();
7331 if (child == 0) {
7332 /* Here is another test for sparc vfork register problems. This
7333 test uses lots of local variables, at least as many local
7334 variables as main has allocated so far including compiler
7335 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7336 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7337 reuse the register of parent for one of the local variables,
7338 since it will think that parent can't possibly be used any more
7339 in this routine. Assigning to the local variable will thus
7340 munge parent in the parent process. */
7341 pid_t
7342 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7343 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7344 /* Convince the compiler that p..p7 are live; otherwise, it might
7345 use the same hardware register for all 8 local variables. */
7346 if (p != p1 || p != p2 || p != p3 || p != p4
7347 || p != p5 || p != p6 || p != p7)
7348 _exit(1);
7350 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7351 from child file descriptors. If the child closes a descriptor
7352 before it execs or exits, this munges the parent's descriptor
7353 as well. Test for this by closing stdout in the child. */
7354 _exit(close(fileno(stdout)) != 0);
7355 } else {
7356 int status;
7357 struct stat st;
7359 while (wait(&status) != child)
7361 exit(
7362 /* Was there some problem with vforking? */
7363 child < 0
7365 /* Did the child fail? (This shouldn't happen.) */
7366 || status
7368 /* Did the vfork/compiler bug occur? */
7369 || parent != getpid()
7371 /* Did the file descriptor bug occur? */
7372 || fstat(fileno(stdout), &st) != 0
7376 _ACEOF
7377 rm -f conftest$ac_exeext
7378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7379 (eval $ac_link) 2>&5
7380 ac_status=$?
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 (eval $ac_try) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; }; then
7388 ac_cv_func_vfork_works=yes
7389 else
7390 echo "$as_me: program exited with status $ac_status" >&5
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7394 ( exit $ac_status )
7395 ac_cv_func_vfork_works=no
7397 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7401 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7404 if test "x$ac_cv_func_fork_works" = xcross; then
7405 ac_cv_func_vfork_works=ac_cv_func_vfork
7406 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7407 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7410 if test "x$ac_cv_func_vfork_works" = xyes; then
7412 cat >>confdefs.h <<\_ACEOF
7413 #define HAVE_WORKING_VFORK 1
7414 _ACEOF
7416 else
7418 cat >>confdefs.h <<\_ACEOF
7419 #define vfork fork
7420 _ACEOF
7423 if test "x$ac_cv_func_fork_works" = xyes; then
7425 cat >>confdefs.h <<\_ACEOF
7426 #define HAVE_WORKING_FORK 1
7427 _ACEOF
7434 am_cv_lib_iconv_ldpath=
7436 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7437 if test "${with_libiconv_prefix+set}" = set; then
7438 withval="$with_libiconv_prefix"
7440 for dir in `echo "$withval" | tr : ' '`; do
7441 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7442 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7443 done
7448 for ac_header in iconv.h
7450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451 echo "$as_me:$LINENO: checking for $ac_header" >&5
7452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456 cat >conftest.$ac_ext <<_ACEOF
7457 #line $LINENO "configure"
7458 /* confdefs.h. */
7459 _ACEOF
7460 cat confdefs.h >>conftest.$ac_ext
7461 cat >>conftest.$ac_ext <<_ACEOF
7462 /* end confdefs.h. */
7463 #include <$ac_header>
7464 _ACEOF
7465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7467 ac_status=$?
7468 grep -v '^ *+' conftest.er1 >conftest.err
7469 rm -f conftest.er1
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } >/dev/null; then
7473 if test -s conftest.err; then
7474 ac_cpp_err=$ac_c_preproc_warn_flag
7475 else
7476 ac_cpp_err=
7478 else
7479 ac_cpp_err=yes
7481 if test -z "$ac_cpp_err"; then
7482 eval "$as_ac_Header=yes"
7483 else
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7487 eval "$as_ac_Header=no"
7489 rm -f conftest.err conftest.$ac_ext
7491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7494 cat >>confdefs.h <<_ACEOF
7495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7496 _ACEOF
7499 done
7502 echo "$as_me:$LINENO: checking for iconv" >&5
7503 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7504 if test "${am_cv_func_iconv+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7508 am_cv_func_iconv="no, consider installing GNU libiconv"
7509 am_cv_lib_iconv=no
7510 cat >conftest.$ac_ext <<_ACEOF
7511 #line $LINENO "configure"
7512 /* confdefs.h. */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 #include <stdlib.h>
7518 #include <iconv.h>
7520 main ()
7522 iconv_t cd = iconv_open("","");
7523 iconv(cd,NULL,NULL,NULL,NULL);
7524 iconv_close(cd);
7526 return 0;
7528 _ACEOF
7529 rm -f conftest.$ac_objext conftest$ac_exeext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531 (eval $ac_link) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -s conftest$ac_exeext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 am_cv_func_iconv=yes
7542 else
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7548 if test "$am_cv_func_iconv" != yes; then
7549 am_save_LIBS="$LIBS"
7550 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7551 cat >conftest.$ac_ext <<_ACEOF
7552 #line $LINENO "configure"
7553 /* confdefs.h. */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7558 #include <stdlib.h>
7559 #include <iconv.h>
7561 main ()
7563 iconv_t cd = iconv_open("","");
7564 iconv(cd,NULL,NULL,NULL,NULL);
7565 iconv_close(cd);
7567 return 0;
7569 _ACEOF
7570 rm -f conftest.$ac_objext conftest$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } &&
7576 { ac_try='test -s conftest$ac_exeext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 am_cv_lib_iconv=yes
7583 am_cv_func_iconv=yes
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7590 LIBS="$am_save_LIBS"
7594 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7595 echo "${ECHO_T}$am_cv_func_iconv" >&6
7596 if test "$am_cv_func_iconv" = yes; then
7598 cat >>confdefs.h <<\_ACEOF
7599 #define HAVE_ICONV 1
7600 _ACEOF
7602 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7603 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7604 if test "${am_cv_proto_iconv+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7608 cat >conftest.$ac_ext <<_ACEOF
7609 #line $LINENO "configure"
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7616 #include <stdlib.h>
7617 #include <iconv.h>
7618 extern
7619 #ifdef __cplusplus
7621 #endif
7622 #if defined(__STDC__) || defined(__cplusplus)
7623 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7624 #else
7625 size_t iconv();
7626 #endif
7629 main ()
7633 return 0;
7635 _ACEOF
7636 rm -f conftest.$ac_objext
7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7638 (eval $ac_compile) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -s conftest.$ac_objext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 am_cv_proto_iconv_arg1=""
7649 else
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7653 am_cv_proto_iconv_arg1="const"
7655 rm -f conftest.$ac_objext conftest.$ac_ext
7656 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);"
7659 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7660 echo "$as_me:$LINENO: result: ${ac_t:-
7661 }$am_cv_proto_iconv" >&5
7662 echo "${ECHO_T}${ac_t:-
7663 }$am_cv_proto_iconv" >&6
7665 cat >>confdefs.h <<_ACEOF
7666 #define ICONV_CONST $am_cv_proto_iconv_arg1
7667 _ACEOF
7670 LIBICONV=
7671 if test "$am_cv_lib_iconv" = yes; then
7672 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
7676 # Until we have in-tree GNU iconv:
7677 LIBICONV_DEP=
7681 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7682 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7683 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686 cat >conftest.$ac_ext <<_ACEOF
7687 #line $LINENO "configure"
7688 /* confdefs.h. */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693 #include <locale.h>
7695 main ()
7697 return LC_MESSAGES
7699 return 0;
7701 _ACEOF
7702 rm -f conftest.$ac_objext conftest$ac_exeext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7704 (eval $ac_link) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -s conftest$ac_exeext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 am_cv_val_LC_MESSAGES=yes
7715 else
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 am_cv_val_LC_MESSAGES=no
7721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7723 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7724 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7725 if test $am_cv_val_LC_MESSAGES = yes; then
7727 cat >>confdefs.h <<\_ACEOF
7728 #define HAVE_LC_MESSAGES 1
7729 _ACEOF
7734 # We will need to find libiberty.h and ansidecl.h
7735 saved_CFLAGS="$CFLAGS"
7736 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
7737 for ac_func in getenv atol sbrk abort atof getcwd getwd \
7738 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
7739 fprintf_unlocked strstr errno snprintf vasprintf \
7740 malloc realloc calloc free basename getopt clock
7742 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7743 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7744 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7745 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 cat >conftest.$ac_ext <<_ACEOF
7749 #line $LINENO "configure"
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #undef $ac_tr_decl
7756 #define $ac_tr_decl 1
7758 #include "ansidecl.h"
7759 #include "system.h"
7762 main ()
7764 #ifndef $ac_func
7765 char *(*pfn) = (char *(*)) $ac_func ;
7766 #endif
7768 return 0;
7770 _ACEOF
7771 rm -f conftest.$ac_objext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7773 (eval $ac_compile) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -s conftest.$ac_objext'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 eval "gcc_cv_have_decl_$ac_func=yes"
7784 else
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7788 eval "gcc_cv_have_decl_$ac_func=no"
7790 rm -f conftest.$ac_objext conftest.$ac_ext
7793 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7794 echo "$as_me:$LINENO: result: yes" >&5
7795 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7796 #define $ac_tr_decl 1
7797 _ACEOF
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7802 #define $ac_tr_decl 0
7803 _ACEOF
7807 done
7808 if test x = y ; then
7810 cat >>confdefs.h <<\_ACEOF
7811 #define HAVE_DECL_GETENV 1
7812 _ACEOF
7814 cat >>confdefs.h <<\_ACEOF
7815 #define HAVE_DECL_ATOL 1
7816 _ACEOF
7818 cat >>confdefs.h <<\_ACEOF
7819 #define HAVE_DECL_SBRK 1
7820 _ACEOF
7822 cat >>confdefs.h <<\_ACEOF
7823 #define HAVE_DECL_ABORT 1
7824 _ACEOF
7826 cat >>confdefs.h <<\_ACEOF
7827 #define HAVE_DECL_ATOF 1
7828 _ACEOF
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_DECL_GETCWD 1
7832 _ACEOF
7834 cat >>confdefs.h <<\_ACEOF
7835 #define HAVE_DECL_GETWD 1
7836 _ACEOF
7839 cat >>confdefs.h <<\_ACEOF
7840 #define HAVE_DECL_STRSIGNAL 1
7841 _ACEOF
7843 cat >>confdefs.h <<\_ACEOF
7844 #define HAVE_DECL_PUTC_UNLOCKED 1
7845 _ACEOF
7847 cat >>confdefs.h <<\_ACEOF
7848 #define HAVE_DECL_FPUTS_UNLOCKED 1
7849 _ACEOF
7851 cat >>confdefs.h <<\_ACEOF
7852 #define HAVE_DECL_FWRITE_UNLOCKED 1
7853 _ACEOF
7856 cat >>confdefs.h <<\_ACEOF
7857 #define HAVE_DECL_FPRINTF_UNLOCKED 1
7858 _ACEOF
7860 cat >>confdefs.h <<\_ACEOF
7861 #define HAVE_DECL_STRSTR 1
7862 _ACEOF
7864 cat >>confdefs.h <<\_ACEOF
7865 #define HAVE_DECL_ERRNO 1
7866 _ACEOF
7868 cat >>confdefs.h <<\_ACEOF
7869 #define HAVE_DECL_SNPRINTF 1
7870 _ACEOF
7872 cat >>confdefs.h <<\_ACEOF
7873 #define HAVE_DECL_VASPRINTF 1
7874 _ACEOF
7877 cat >>confdefs.h <<\_ACEOF
7878 #define HAVE_DECL_MALLOC 1
7879 _ACEOF
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_DECL_REALLOC 1
7883 _ACEOF
7885 cat >>confdefs.h <<\_ACEOF
7886 #define HAVE_DECL_CALLOC 1
7887 _ACEOF
7889 cat >>confdefs.h <<\_ACEOF
7890 #define HAVE_DECL_FREE 1
7891 _ACEOF
7893 cat >>confdefs.h <<\_ACEOF
7894 #define HAVE_DECL_BASENAME 1
7895 _ACEOF
7897 cat >>confdefs.h <<\_ACEOF
7898 #define HAVE_DECL_GETOPT 1
7899 _ACEOF
7901 cat >>confdefs.h <<\_ACEOF
7902 #define HAVE_DECL_CLOCK 1
7903 _ACEOF
7907 for ac_func in getrlimit setrlimit getrusage
7909 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7910 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7911 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7912 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915 cat >conftest.$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7917 /* confdefs.h. */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 #undef $ac_tr_decl
7923 #define $ac_tr_decl 1
7925 #include "ansidecl.h"
7926 #include "system.h"
7927 #ifdef HAVE_SYS_RESOURCE_H
7928 #include <sys/resource.h>
7929 #endif
7933 main ()
7935 #ifndef $ac_func
7936 char *(*pfn) = (char *(*)) $ac_func ;
7937 #endif
7939 return 0;
7941 _ACEOF
7942 rm -f conftest.$ac_objext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944 (eval $ac_compile) 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -s conftest.$ac_objext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 eval "gcc_cv_have_decl_$ac_func=yes"
7955 else
7956 echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 eval "gcc_cv_have_decl_$ac_func=no"
7961 rm -f conftest.$ac_objext conftest.$ac_ext
7964 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7965 echo "$as_me:$LINENO: result: yes" >&5
7966 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7967 #define $ac_tr_decl 1
7968 _ACEOF
7970 else
7971 echo "$as_me:$LINENO: result: no" >&5
7972 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7973 #define $ac_tr_decl 0
7974 _ACEOF
7978 done
7979 if test x = y ; then
7981 cat >>confdefs.h <<\_ACEOF
7982 #define HAVE_DECL_GETRLIMIT 1
7983 _ACEOF
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_DECL_SETRLIMIT 1
7987 _ACEOF
7989 cat >>confdefs.h <<\_ACEOF
7990 #define HAVE_DECL_GETRUSAGE 1
7991 _ACEOF
7995 cat >conftest.$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7997 /* confdefs.h. */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8003 #include "ansidecl.h"
8004 #include "system.h"
8005 #ifdef HAVE_SYS_RESOURCE_H
8006 #include <sys/resource.h>
8007 #endif
8010 main ()
8012 rlim_t l = 0;
8014 return 0;
8016 _ACEOF
8017 rm -f conftest.$ac_objext
8018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019 (eval $ac_compile) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } &&
8023 { ac_try='test -s conftest.$ac_objext'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 (eval $ac_try) 2>&5
8026 ac_status=$?
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; }; then
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8035 cat >>confdefs.h <<\_ACEOF
8036 #define rlim_t long
8037 _ACEOF
8040 rm -f conftest.$ac_objext conftest.$ac_ext
8042 for ac_func in ldgetname
8044 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8045 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8046 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8047 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8052 /* confdefs.h. */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 #undef $ac_tr_decl
8058 #define $ac_tr_decl 1
8060 #include "ansidecl.h"
8061 #include "system.h"
8062 #ifdef HAVE_LDFCN_H
8063 #include <ldfcn.h>
8064 #endif
8068 main ()
8070 #ifndef $ac_func
8071 char *(*pfn) = (char *(*)) $ac_func ;
8072 #endif
8074 return 0;
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 eval "gcc_cv_have_decl_$ac_func=yes"
8090 else
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 eval "gcc_cv_have_decl_$ac_func=no"
8096 rm -f conftest.$ac_objext conftest.$ac_ext
8099 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8100 echo "$as_me:$LINENO: result: yes" >&5
8101 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8102 #define $ac_tr_decl 1
8103 _ACEOF
8105 else
8106 echo "$as_me:$LINENO: result: no" >&5
8107 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8108 #define $ac_tr_decl 0
8109 _ACEOF
8113 done
8114 if test x = y ; then
8116 cat >>confdefs.h <<\_ACEOF
8117 #define HAVE_DECL_LDGETNAME 1
8118 _ACEOF
8122 for ac_func in times
8124 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8125 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8126 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8127 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130 cat >conftest.$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8132 /* confdefs.h. */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 #undef $ac_tr_decl
8138 #define $ac_tr_decl 1
8140 #include "ansidecl.h"
8141 #include "system.h"
8142 #ifdef HAVE_SYS_TIMES_H
8143 #include <sys/times.h>
8144 #endif
8148 main ()
8150 #ifndef $ac_func
8151 char *(*pfn) = (char *(*)) $ac_func ;
8152 #endif
8154 return 0;
8156 _ACEOF
8157 rm -f conftest.$ac_objext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8159 (eval $ac_compile) 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try='test -s conftest.$ac_objext'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 (eval $ac_try) 2>&5
8166 ac_status=$?
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; }; then
8169 eval "gcc_cv_have_decl_$ac_func=yes"
8170 else
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 eval "gcc_cv_have_decl_$ac_func=no"
8176 rm -f conftest.$ac_objext conftest.$ac_ext
8179 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8180 echo "$as_me:$LINENO: result: yes" >&5
8181 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8182 #define $ac_tr_decl 1
8183 _ACEOF
8185 else
8186 echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8188 #define $ac_tr_decl 0
8189 _ACEOF
8193 done
8194 if test x = y ; then
8196 cat >>confdefs.h <<\_ACEOF
8197 #define HAVE_DECL_TIMES 1
8198 _ACEOF
8202 # More time-related stuff.
8203 echo "$as_me:$LINENO: checking for struct tms" >&5
8204 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8205 if test "${ac_cv_struct_tms+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8209 cat >conftest.$ac_ext <<_ACEOF
8210 #line $LINENO "configure"
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8217 #include "ansidecl.h"
8218 #include "system.h"
8219 #ifdef HAVE_SYS_TIMES_H
8220 #include <sys/times.h>
8221 #endif
8224 main ()
8226 struct tms tms;
8228 return 0;
8230 _ACEOF
8231 rm -f conftest.$ac_objext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8233 (eval $ac_compile) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try='test -s conftest.$ac_objext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_struct_tms=yes
8244 else
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 ac_cv_struct_tms=no
8250 rm -f conftest.$ac_objext conftest.$ac_ext
8252 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8253 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8254 if test $ac_cv_struct_tms = yes; then
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_STRUCT_TMS 1
8258 _ACEOF
8262 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8263 # revisit after autoconf 2.50.
8264 echo "$as_me:$LINENO: checking for clock_t" >&5
8265 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8266 if test "${gcc_cv_type_clock_t+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8270 cat >conftest.$ac_ext <<_ACEOF
8271 #line $LINENO "configure"
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8278 #include "ansidecl.h"
8279 #include "system.h"
8282 main ()
8284 clock_t x;
8286 return 0;
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8291 (eval $ac_compile) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -s conftest.$ac_objext'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 gcc_cv_type_clock_t=yes
8302 else
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8306 gcc_cv_type_clock_t=no
8308 rm -f conftest.$ac_objext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8311 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8312 if test $gcc_cv_type_clock_t = yes; then
8314 cat >>confdefs.h <<\_ACEOF
8315 #define HAVE_CLOCK_T 1
8316 _ACEOF
8320 echo "$as_me:$LINENO: checking for uchar" >&5
8321 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8322 if test "${gcc_cv_type_uchar+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 cat >conftest.$ac_ext <<_ACEOF
8326 #line $LINENO "configure"
8327 /* confdefs.h. */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8333 #include "ansidecl.h"
8334 #include "system.h"
8337 main ()
8339 if ((uchar *)0) return 0;
8340 if (sizeof(uchar)) return 0;
8342 return 0;
8344 _ACEOF
8345 rm -f conftest.$ac_objext
8346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8347 (eval $ac_compile) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
8351 { ac_try='test -s conftest.$ac_objext'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; }; then
8357 ac_cv_type_uchar=yes
8358 else
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8362 ac_cv_type_uchar=no
8364 rm -f conftest.$ac_objext conftest.$ac_ext
8366 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8367 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8368 if test $ac_cv_type_uchar = yes; then
8370 cat >>confdefs.h <<\_ACEOF
8371 #define HAVE_UCHAR 1
8372 _ACEOF
8376 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8377 CFLAGS="$saved_CFLAGS"
8379 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8380 if test "${enable_initfini_array+set}" = set; then
8381 enableval="$enable_initfini_array"
8383 else
8385 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8386 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8387 if test "${gcc_cv_initfini_array+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390 if test "$cross_compiling" = yes; then
8391 gcc_cv_initfini_array=no
8392 else
8393 cat >conftest.$ac_ext <<_ACEOF
8394 #line $LINENO "configure"
8395 /* confdefs.h. */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8401 static int x = -1;
8402 int main (void) { return x; }
8403 int foo (void) { x = 0; }
8404 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8405 _ACEOF
8406 rm -f conftest$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408 (eval $ac_link) 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 gcc_cv_initfini_array=yes
8418 else
8419 echo "$as_me: program exited with status $ac_status" >&5
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 ( exit $ac_status )
8424 gcc_cv_initfini_array=no
8426 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8430 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8431 enable_initfini_array=$gcc_cv_initfini_array
8434 if test $enable_initfini_array = yes; then
8436 cat >>confdefs.h <<\_ACEOF
8437 #define HAVE_INITFINI_ARRAY 1
8438 _ACEOF
8442 # mkdir takes a single argument on some systems.
8443 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8444 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8445 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 cat >conftest.$ac_ext <<_ACEOF
8449 #line $LINENO "configure"
8450 /* confdefs.h. */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8456 #include <sys/types.h>
8457 #ifdef HAVE_SYS_STAT_H
8458 # include <sys/stat.h>
8459 #endif
8460 #ifdef HAVE_UNISTD_H
8461 # include <unistd.h>
8462 #endif
8463 #ifdef HAVE_DIRECT_H
8464 # include <direct.h>
8465 #endif
8467 main ()
8469 mkdir ("foo", 0);
8471 return 0;
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -s conftest.$ac_objext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 gcc_cv_mkdir_takes_one_arg=no
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 gcc_cv_mkdir_takes_one_arg=yes
8493 rm -f conftest.$ac_objext conftest.$ac_ext
8495 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8496 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8497 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8499 cat >>confdefs.h <<\_ACEOF
8500 #define MKDIR_TAKES_ONE_ARG 1
8501 _ACEOF
8506 # File extensions
8507 manext='.1'
8508 objext='.o'
8512 # With Setjmp/Longjmp based exception handling.
8513 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8514 if test "${enable_sjlj_exceptions+set}" = set; then
8515 enableval="$enable_sjlj_exceptions"
8516 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8518 cat >>confdefs.h <<_ACEOF
8519 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8520 _ACEOF
8524 if test x$host = x$target; then
8525 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8526 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8527 if test "${ac_cv_lib_unwind_main+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530 ac_check_lib_save_LIBS=$LIBS
8531 LIBS="-lunwind $LIBS"
8532 cat >conftest.$ac_ext <<_ACEOF
8533 #line $LINENO "configure"
8534 /* confdefs.h. */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8542 main ()
8544 main ();
8546 return 0;
8548 _ACEOF
8549 rm -f conftest.$ac_objext conftest$ac_exeext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8551 (eval $ac_link) 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
8555 { ac_try='test -s conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 (eval $ac_try) 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_lib_unwind_main=yes
8562 else
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 ac_cv_lib_unwind_main=no
8568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8569 LIBS=$ac_check_lib_save_LIBS
8571 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8572 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8573 if test $ac_cv_lib_unwind_main = yes; then
8574 use_libunwind_default=yes
8575 else
8576 use_libunwind_default=no
8579 else
8580 use_libunwind_default=no
8582 # Use libunwind based exception handling.
8583 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8584 if test "${enable_libunwind_exceptions+set}" = set; then
8585 enableval="$enable_libunwind_exceptions"
8586 use_libunwind_exceptions=$enableval
8587 else
8588 use_libunwind_exceptions=$use_libunwind_default
8590 if test x"$use_libunwind_exceptions" = xyes; then
8592 cat >>confdefs.h <<\_ACEOF
8593 #define USE_LIBUNWIND_EXCEPTIONS 1
8594 _ACEOF
8598 # --------------------------------------------------------
8599 # Build, host, and target specific configuration fragments
8600 # --------------------------------------------------------
8602 # Collect build-machine-specific information.
8603 . ${srcdir}/config.build
8605 # Collect host-machine-specific information.
8606 . ${srcdir}/config.host
8608 target_gtfiles=
8610 # Collect target-machine-specific information.
8611 . ${srcdir}/config.gcc
8613 extra_objs="${host_extra_objs} ${extra_objs}"
8615 # Default the target-machine variables that were not explicitly set.
8616 if test x"$tm_file" = x
8617 then tm_file=$cpu_type/$cpu_type.h; fi
8619 if test x"$extra_headers" = x
8620 then extra_headers=; fi
8622 if test x$md_file = x
8623 then md_file=$cpu_type/$cpu_type.md; fi
8625 if test x$out_file = x
8626 then out_file=$cpu_type/$cpu_type.c; fi
8628 if test x"$tmake_file" = x
8629 then tmake_file=$cpu_type/t-$cpu_type
8632 if test x"$dwarf2" = xyes
8633 then tm_file="$tm_file tm-dwarf2.h"
8636 # Say what files are being used for the output code and MD file.
8637 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8638 echo "Using \`$srcdir/config/$md_file' as machine description file."
8640 # If any of the xm_file variables contain nonexistent files, warn
8641 # about them and drop them.
8644 for x in $build_xm_file; do
8645 if test -f $srcdir/config/$x
8646 then bx="$bx $x"
8647 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8648 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8650 done
8651 build_xm_file="$bx"
8654 for x in $host_xm_file; do
8655 if test -f $srcdir/config/$x
8656 then hx="$hx $x"
8657 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8658 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8660 done
8661 host_xm_file="$hx"
8664 for x in $xm_file; do
8665 if test -f $srcdir/config/$x
8666 then tx="$tx $x"
8667 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8668 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8670 done
8671 xm_file="$tx"
8673 count=a
8674 for f in $tm_file; do
8675 count=${count}x
8676 done
8677 if test $count = ax; then
8678 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
8679 else
8680 echo "Using the following target machine macro files:"
8681 for f in $tm_file; do
8682 echo " $srcdir/config/$f"
8683 done
8686 if test x$need_64bit_hwint = xyes; then
8688 cat >>confdefs.h <<\_ACEOF
8689 #define NEED_64BIT_HOST_WIDE_INT 1
8690 _ACEOF
8694 count=a
8695 for f in $host_xm_file; do
8696 count=${count}x
8697 done
8698 if test $count = a; then
8700 elif test $count = ax; then
8701 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
8702 else
8703 echo "Using the following host machine macro files:"
8704 for f in $host_xm_file; do
8705 echo " $srcdir/config/$f"
8706 done
8708 echo "Using ${out_host_hook_obj} for host machine hooks."
8710 if test "$host_xm_file" != "$build_xm_file"; then
8711 count=a
8712 for f in $build_xm_file; do
8713 count=${count}x
8714 done
8715 if test $count = a; then
8717 elif test $count = ax; then
8718 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
8719 else
8720 echo "Using the following build machine macro files:"
8721 for f in $build_xm_file; do
8722 echo " $srcdir/config/$f"
8723 done
8727 # Check if a valid thread package
8728 case ${enable_threads_flag} in
8729 "" | no)
8730 # No threads
8731 target_thread_file='single'
8733 yes)
8734 # default
8735 target_thread_file='single'
8737 aix | dce | gnat | irix | posix | rtems | \
8738 single | solaris | vxworks | win32 )
8739 target_thread_file=${enable_threads_flag}
8742 echo "${enable_threads_flag} is an unknown thread package" 1>&2
8743 exit 1
8745 esac
8747 if test x${thread_file} = x; then
8748 # No thread file set by target-specific clauses in config.gcc,
8749 # so use file chosen by default logic above
8750 thread_file=${target_thread_file}
8753 if test x$enable___cxa_atexit = xyes || \
8754 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
8756 cat >>confdefs.h <<\_ACEOF
8757 #define DEFAULT_USE_CXA_ATEXIT 1
8758 _ACEOF
8762 # Look for a file containing extra machine modes.
8763 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
8764 extra_modes_file='$(srcdir)'/config/${extra_modes}
8767 cat >>confdefs.h <<_ACEOF
8768 #define EXTRA_MODES_FILE "config/$extra_modes"
8769 _ACEOF
8773 # auto-host.h is the file containing items generated by autoconf and is
8774 # the first file included by config.h.
8775 # If host=build, it is correct to have bconfig include auto-host.h
8776 # as well. If host!=build, we are in error and need to do more
8777 # work to find out the build config parameters.
8778 if test x$host = x$build
8779 then
8780 build_auto=auto-host.h
8781 FORBUILD=..
8782 else
8783 # We create a subdir, then run autoconf in the subdir.
8784 # To prevent recursion we set host and build for the new
8785 # invocation of configure to the build for this invocation
8786 # of configure.
8787 tempdir=build.$$
8788 rm -rf $tempdir
8789 mkdir $tempdir
8790 cd $tempdir
8791 case ${srcdir} in
8792 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
8793 *) realsrcdir=../${srcdir};;
8794 esac
8795 saved_CFLAGS="${CFLAGS}"
8796 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
8797 ${realsrcdir}/configure \
8798 --target=$target_alias --host=$build_alias --build=$build_alias
8799 CFLAGS="${saved_CFLAGS}"
8801 # We just finished tests for the build machine, so rename
8802 # the file auto-build.h in the gcc directory.
8803 mv auto-host.h ../auto-build.h
8804 cd ..
8805 rm -rf $tempdir
8806 build_auto=auto-build.h
8807 FORBUILD=../${build_subdir}
8811 tm_file="${tm_file} defaults.h"
8812 tm_p_file="${tm_p_file} tm-preds.h"
8813 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
8814 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
8815 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
8816 # put this back in temporarily.
8817 xm_file="ansidecl.h ${xm_file}"
8819 # --------
8820 # UNSORTED
8821 # --------
8823 # Get the version trigger filename from the toplevel
8824 if test "${with_gcc_version_trigger+set}" = set; then
8825 gcc_version_trigger=$with_gcc_version_trigger
8826 else
8827 gcc_version_trigger=${srcdir}/version.c
8829 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
8830 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8832 # Compile in configure arguments.
8833 if test -f configargs.h ; then
8834 # Being re-configured.
8835 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
8836 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
8837 else
8838 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
8841 # Double all backslashes and backslash all quotes to turn
8842 # gcc_config_arguments into a C string.
8843 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
8844 $gcc_config_arguments
8846 gcc_config_arguments_str=`cat conftest.out`
8847 rm -f conftest.out
8849 cat > configargs.h <<EOF
8850 /* Generated automatically. */
8851 static const char configuration_arguments[] = "$gcc_config_arguments_str";
8852 static const char thread_model[] = "$thread_file";
8854 static const struct {
8855 const char *name, *value;
8856 } configure_default_options[] = $configure_default_options;
8859 # Internationalization
8860 PACKAGE=gcc
8861 VERSION="$gcc_version"
8865 # If we haven't got the data from the intl directory,
8866 # assume NLS is disabled.
8867 USE_NLS=no
8868 LIBINTL=
8869 LIBINTL_DEP=
8870 INCINTL=
8871 XGETTEXT=
8872 GMSGFMT=
8873 POSUB=
8874 if test -f ../intl/config.intl; then
8875 . ../intl/config.intl
8877 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8878 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8879 if test x"$USE_NLS" != xyes; then
8880 echo "$as_me:$LINENO: result: no" >&5
8881 echo "${ECHO_T}no" >&6
8882 else
8883 echo "$as_me:$LINENO: result: yes" >&5
8884 echo "${ECHO_T}yes" >&6
8886 cat >>confdefs.h <<\_ACEOF
8887 #define ENABLE_NLS 1
8888 _ACEOF
8891 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8892 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8893 # Look for .po and .gmo files in the source directory.
8894 CATALOGS=
8895 XLINGUAS=
8896 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8897 # If there aren't any .gmo files the shell will give us the
8898 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8899 # weeded out.
8900 case "$cat" in *\**)
8901 continue;;
8902 esac
8903 # The quadruple backslash is collapsed to a double backslash
8904 # by the backticks, then collapsed again by the double quotes,
8905 # leaving us with one backslash in the sed expression (right
8906 # before the dot that mustn't act as a wildcard).
8907 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
8908 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
8909 # The user is allowed to set LINGUAS to a list of languages to
8910 # install catalogs for. If it's empty that means "all of them."
8911 if test "x$LINGUAS" = x; then
8912 CATALOGS="$CATALOGS $cat"
8913 XLINGUAS="$XLINGUAS $lang"
8914 else
8915 case "$LINGUAS" in *$lang*)
8916 CATALOGS="$CATALOGS $cat"
8917 XLINGUAS="$XLINGUAS $lang"
8919 esac
8921 done
8922 LINGUAS="$XLINGUAS"
8923 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8924 echo "${ECHO_T}$LINGUAS" >&6
8927 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
8928 # -liconv on the link line twice.
8929 case "$LIBINTL" in *$LIBICONV*)
8930 LIBICONV= ;;
8931 esac
8933 # Windows32 Registry support for specifying GCC installation paths.
8934 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8935 if test "${enable_win32_registry+set}" = set; then
8936 enableval="$enable_win32_registry"
8939 case $host_os in
8940 win32 | pe | cygwin* | mingw32* | uwin*)
8941 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
8942 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
8943 if test "x$enable_win32_registry" != xno; then
8945 cat >>confdefs.h <<\_ACEOF
8946 #define ENABLE_WIN32_REGISTRY 1
8947 _ACEOF
8949 echo "$as_me:$LINENO: result: yes" >&5
8950 echo "${ECHO_T}yes" >&6
8951 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
8952 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
8953 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 else
8956 ac_func_search_save_LIBS=$LIBS
8957 ac_cv_search_RegOpenKeyExA=no
8958 cat >conftest.$ac_ext <<_ACEOF
8959 #line $LINENO "configure"
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 #ifdef __cplusplus
8968 extern "C"
8969 #endif
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8972 char RegOpenKeyExA ();
8974 main ()
8976 RegOpenKeyExA ();
8978 return 0;
8980 _ACEOF
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983 (eval $ac_link) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try='test -s conftest$ac_exeext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 ac_cv_search_RegOpenKeyExA="none required"
8994 else
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9000 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9001 for ac_lib in advapi32; do
9002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9003 cat >conftest.$ac_ext <<_ACEOF
9004 #line $LINENO "configure"
9005 /* confdefs.h. */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9011 /* Override any gcc2 internal prototype to avoid an error. */
9012 #ifdef __cplusplus
9013 extern "C"
9014 #endif
9015 /* We use char because int might match the return type of a gcc2
9016 builtin and then its argument prototype would still apply. */
9017 char RegOpenKeyExA ();
9019 main ()
9021 RegOpenKeyExA ();
9023 return 0;
9025 _ACEOF
9026 rm -f conftest.$ac_objext conftest$ac_exeext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028 (eval $ac_link) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -s conftest$ac_exeext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 (eval $ac_try) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9039 break
9040 else
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9046 done
9048 LIBS=$ac_func_search_save_LIBS
9050 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9051 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9052 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9053 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9057 else
9058 echo "$as_me:$LINENO: result: no" >&5
9059 echo "${ECHO_T}no" >&6
9062 # Check if user specified a different registry key.
9063 case "x${enable_win32_registry}" in
9064 x | xyes)
9065 # default.
9066 gcc_cv_win32_registry_key="$VERSION"
9068 xno)
9069 # no registry lookup.
9070 gcc_cv_win32_registry_key=''
9073 # user-specified key.
9074 gcc_cv_win32_registry_key="$enable_win32_registry"
9076 esac
9078 if test "x$enable_win32_registry" != xno; then
9079 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9080 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9082 cat >>confdefs.h <<_ACEOF
9083 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9084 _ACEOF
9086 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9087 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9090 esac
9092 # Get an absolute path to the GCC top-level source directory
9093 holddir=`${PWDCMD-pwd}`
9094 cd $srcdir
9095 topdir=`${PWDCMD-pwd}`
9096 cd $holddir
9098 # Conditionalize the makefile for this host machine.
9099 xmake_file=
9100 for f in ${host_xmake_file}
9102 if test -f ${srcdir}/config/$f
9103 then
9104 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9106 done
9108 # Conditionalize the makefile for this target machine.
9109 tmake_file_=
9110 for f in ${tmake_file}
9112 if test -f ${srcdir}/config/$f
9113 then
9114 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9116 done
9117 tmake_file="${tmake_file_}"
9119 symbolic_link='ln -s'
9121 # If the host doesn't support symlinks, modify CC in
9122 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9123 # Otherwise, we can use "CC=$(CC)".
9124 rm -f symtest.tem
9125 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9126 then
9127 cc_set_by_configure="\$(CC)"
9128 quoted_cc_set_by_configure="\$(CC)"
9129 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9130 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9131 else
9132 rm -f symtest.tem
9133 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9134 then
9135 symbolic_link="cp -p"
9136 else
9137 symbolic_link="cp"
9139 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9140 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9141 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9142 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9144 rm -f symtest.tem
9146 out_object_file=`basename $out_file .c`.o
9148 tm_file_list=
9149 tm_include_list=
9150 for f in $tm_file; do
9151 case $f in
9152 defaults.h )
9153 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9154 tm_include_list="${tm_include_list} $f"
9157 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9158 tm_include_list="${tm_include_list} config/$f"
9160 esac
9161 done
9163 tm_p_file_list=
9164 tm_p_include_list=
9165 for f in $tm_p_file; do
9166 case $f in
9167 tm-preds.h )
9168 tm_p_file_list="${tm_p_file_list} $f"
9169 tm_p_include_list="${tm_p_include_list} $f"
9172 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9173 tm_p_include_list="${tm_p_include_list} config/$f"
9174 esac
9175 done
9177 xm_file_list=
9178 xm_include_list=
9179 for f in $xm_file; do
9180 case $f in
9181 ansidecl.h )
9182 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9183 xm_include_list="${xm_include_list} $f"
9185 auto-host.h )
9186 xm_file_list="${xm_file_list} $f"
9187 xm_include_list="${xm_include_list} $f"
9190 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9191 xm_include_list="${xm_include_list} config/$f"
9193 esac
9194 done
9196 host_xm_file_list=
9197 host_xm_include_list=
9198 for f in $host_xm_file; do
9199 case $f in
9200 ansidecl.h )
9201 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9202 host_xm_include_list="${host_xm_include_list} $f"
9204 auto-host.h )
9205 host_xm_file_list="${host_xm_file_list} $f"
9206 host_xm_include_list="${host_xm_include_list} $f"
9209 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9210 host_xm_include_list="${host_xm_include_list} config/$f"
9212 esac
9213 done
9215 build_xm_file_list=
9216 for f in $build_xm_file; do
9217 case $f in
9218 ansidecl.h )
9219 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9220 build_xm_include_list="${build_xm_include_list} $f"
9222 auto-build.h | auto-host.h )
9223 build_xm_file_list="${build_xm_file_list} $f"
9224 build_xm_include_list="${build_xm_include_list} $f"
9227 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9228 build_xm_include_list="${build_xm_include_list} config/$f"
9230 esac
9231 done
9233 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9234 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9235 CROSS=
9236 ALL=all.internal
9237 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9238 if test x$host != x$target
9239 then
9240 CROSS="-DCROSS_COMPILE"
9241 ALL=all.cross
9242 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9243 case "$host","$target" in
9244 # Darwin crosses can use the host system's libraries and headers,
9245 # because of the fat library support. Of course, it must be the
9246 # same version of Darwin on both sides. Allow the user to
9247 # just say --target=foo-darwin without a version number to mean
9248 # "the version on this system".
9249 *-*-darwin*,*-*-darwin*)
9250 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9251 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9252 if test $hostos = $targetos -o $targetos = darwin ; then
9253 CROSS=
9254 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9255 with_headers=yes
9259 i?86-*-*,x86_64-*-* \
9260 | powerpc*-*-*,powerpc64*-*-*)
9261 CROSS="$CROSS -DNATIVE_CROSS" ;;
9262 esac
9263 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9264 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9265 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9268 # If this is a cross-compiler that does not
9269 # have its own set of headers then define
9270 # inhibit_libc
9272 # If this is using newlib, without having the headers available now,
9273 # then define inhibit_libc in LIBGCC2_CFLAGS.
9274 # This prevents libgcc2 from containing any code which requires libc
9275 # support.
9276 inhibit_libc=
9277 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9278 test x$with_newlib = xyes ; } &&
9279 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9280 inhibit_libc=-Dinhibit_libc
9284 # When building gcc with a cross-compiler, we need to adjust things so
9285 # that the generator programs are still built with the native compiler.
9286 # Also, we cannot run fixincludes or fix-header.
9288 # These are the normal (build=host) settings:
9289 BUILD_PREFIX=
9290 BUILD_PREFIX_1=ignore-
9291 CC_FOR_BUILD='$(CC)'
9292 BUILD_CFLAGS='$(ALL_CFLAGS)'
9294 STMP_FIXINC=stmp-fixinc
9296 # Possibly disable fixproto, on a per-target basis.
9297 case ${use_fixproto} in
9299 STMP_FIXPROTO=
9301 yes)
9302 STMP_FIXPROTO=stmp-fixproto
9304 esac
9307 # And these apply if build != host, or we are generating coverage data
9308 if test x$build != x$host || test "x$coverage_flags" != x
9309 then
9310 BUILD_PREFIX=build-
9311 BUILD_PREFIX_1=build-
9312 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9314 if test "x$TARGET_SYSTEM_ROOT" = x; then
9315 STMP_FIXINC=
9316 STMP_FIXPROTO=
9320 # Expand extra_headers to include complete path.
9321 # This substitutes for lots of t-* files.
9322 extra_headers_list=
9323 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9324 for file in ${extra_headers} ; do
9325 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9326 done
9328 # Add a definition of USE_COLLECT2 if system wants one.
9329 case $use_collect2 in
9330 no) use_collect2= ;;
9331 "") ;;
9333 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9334 xm_defines="${xm_defines} USE_COLLECT2"
9336 esac
9338 # Identify the assembler which will work hand-in-glove with the newly
9339 # built GCC, so that we can examine its features. This is the assembler
9340 # which will be driven by the driver program.
9342 # If build != host, and we aren't building gas in-tree, we identify a
9343 # build->target assembler and hope that it will have the same features
9344 # as the host->target assembler we'll be using.
9345 echo "$as_me:$LINENO: checking what assembler to use" >&5
9346 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9347 in_tree_gas=no
9348 gcc_cv_as=
9349 gcc_cv_gas_major_version=
9350 gcc_cv_gas_minor_version=
9351 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9352 if test -x "$DEFAULT_ASSEMBLER"; then
9353 gcc_cv_as="$DEFAULT_ASSEMBLER"
9354 elif test -x "$AS"; then
9355 gcc_cv_as="$AS"
9356 elif test -x as$host_exeext; then
9357 # Build using assembler in the current directory.
9358 gcc_cv_as=./as$host_exeext
9359 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9360 && test -f ../gas/Makefile; then
9361 # Single tree build which includes gas.
9362 in_tree_gas=yes
9363 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9364 for f in $gcc_cv_as_bfd_srcdir/configure \
9365 $gcc_cv_as_gas_srcdir/configure \
9366 $gcc_cv_as_gas_srcdir/configure.in \
9367 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9368 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9369 if test x$gcc_cv_gas_version != x; then
9370 break
9372 done
9373 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9374 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9375 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9376 case $gcc_cv_gas_patch_version in
9377 "") gcc_cv_gas_patch_version="0" ;;
9378 esac
9379 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9380 + $gcc_cv_gas_minor_version \) \* 1000 \
9381 + $gcc_cv_gas_patch_version`
9383 rm -f as$host_exeext
9384 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9385 in_tree_gas_is_elf=no
9386 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9387 || (grep 'obj_format = multi' ../gas/Makefile \
9388 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9389 then
9390 in_tree_gas_is_elf=yes
9394 if test "x$gcc_cv_as" = x; then
9395 # Search the same directories that the installed compiler will
9396 # search. Else we may find the wrong assembler and lose. If we
9397 # do not find a suitable assembler binary, then try the user's
9398 # path.
9400 # Also note we have to check MD_EXEC_PREFIX before checking the
9401 # user's path. Unfortunately, there is no good way to get at the
9402 # value of MD_EXEC_PREFIX here. So we do a brute force search
9403 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9404 # to be fixed as part of the make/configure rewrite too.
9406 if test "x$exec_prefix" = xNONE; then
9407 if test "x$prefix" = xNONE; then
9408 test_prefix=/usr/local
9409 else
9410 test_prefix=$prefix
9412 else
9413 test_prefix=$exec_prefix
9416 # If the loop below does not find an assembler, then use whatever
9417 # one we can find in the users's path.
9418 # user's path.
9419 if test "x$program_prefix" != xNONE; then
9420 gcc_cv_as=${program_prefix}as$host_exeext
9421 else
9422 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
9425 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9426 $test_prefix/lib/gcc-lib/$target_noncanonical \
9427 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9428 /usr/lib/gcc/$target_noncanonical \
9429 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9430 $test_prefix/$target_noncanonical/bin"
9432 if test x$host = x$target; then
9433 test_dirs="$test_dirs \
9434 /usr/libexec \
9435 /usr/ccs/gcc \
9436 /usr/ccs/bin \
9437 /udk/usr/ccs/bin \
9438 /bsd43/usr/lib/cmplrs/cc \
9439 /usr/cross64/usr/bin \
9440 /usr/lib/cmplrs/cc \
9441 /sysv/usr/lib/cmplrs/cc \
9442 /svr4/usr/lib/cmplrs/cc \
9443 /usr/bin"
9446 for dir in $test_dirs; do
9447 if test -x $dir/as$host_exeext; then
9448 gcc_cv_as=$dir/as$host_exeext
9449 break;
9451 done
9453 case $in_tree_gas in
9454 yes)
9455 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9456 echo "${ECHO_T}\"newly built gas\"" >&6
9459 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9460 echo "${ECHO_T}$gcc_cv_as" >&6
9462 esac
9464 # Identify the linker which will work hand-in-glove with the newly
9465 # built GCC, so that we can examine its features. This is the linker
9466 # which will be driven by the driver program.
9468 # If build != host, and we aren't building gas in-tree, we identify a
9469 # build->target linker and hope that it will have the same features
9470 # as the host->target linker we'll be using.
9471 echo "$as_me:$LINENO: checking what linker to use" >&5
9472 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9473 in_tree_ld=no
9474 gcc_cv_ld=
9475 gcc_cv_gld_major_version=
9476 gcc_cv_gld_minor_version=
9477 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9478 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9479 if test -x "$DEFAULT_LINKER"; then
9480 gcc_cv_ld="$DEFAULT_LINKER"
9481 elif test -x "$LD"; then
9482 gcc_cv_ld="$LD"
9483 elif test -x collect-ld$host_exeext; then
9484 # Build using linker in the current directory.
9485 gcc_cv_ld=./collect-ld$host_exeext
9486 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9487 && test -f ../ld/Makefile; then
9488 # Single tree build which includes ld.
9489 in_tree_ld=yes
9490 in_tree_ld_is_elf=no
9491 if (grep 'EMUL = .*elf' ../ld/Makefile \
9492 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9493 in_tree_ld_is_elf=yes
9495 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
9497 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9498 if test x$gcc_cv_gld_version != x; then
9499 break
9501 done
9502 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9503 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9504 rm -f collect-ld$host_exeext
9505 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9506 2>/dev/null
9509 if test "x$gcc_cv_ld" = x; then
9510 # Search the same directories that the installed compiler will
9511 # search. Else we may find the wrong linker and lose. If we
9512 # do not find a suitable linker binary, then try the user's
9513 # path.
9515 # Also note we have to check MD_EXEC_PREFIX before checking the
9516 # user's path. Unfortunately, there is no good way to get at the
9517 # value of MD_EXEC_PREFIX here. So we do a brute force search
9518 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9519 # to be fixed as part of the make/configure rewrite too.
9521 if test "x$exec_prefix" = xNONE; then
9522 if test "x$prefix" = xNONE; then
9523 test_prefix=/usr/local
9524 else
9525 test_prefix=$prefix
9527 else
9528 test_prefix=$exec_prefix
9531 # If the loop below does not find an linker, then use whatever
9532 # one we can find in the users's path.
9533 # user's path.
9534 if test "x$program_prefix" != xNONE; then
9535 gcc_cv_ld=${program_prefix}ld$host_exeext
9536 else
9537 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
9540 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9541 $test_prefix/lib/gcc-lib/$target_noncanonical \
9542 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9543 /usr/lib/gcc/$target_noncanonical \
9544 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9545 $test_prefix/$target_noncanonical/bin"
9547 if test x$host = x$target; then
9548 test_dirs="$test_dirs \
9549 /usr/libexec \
9550 /usr/ccs/gcc \
9551 /usr/ccs/bin \
9552 /udk/usr/ccs/bin \
9553 /bsd43/usr/lib/cmplrs/cc \
9554 /usr/cross64/usr/bin \
9555 /usr/lib/cmplrs/cc \
9556 /sysv/usr/lib/cmplrs/cc \
9557 /svr4/usr/lib/cmplrs/cc \
9558 /usr/bin"
9561 for dir in $test_dirs; do
9562 if test -x $dir/ld$host_exeext; then
9563 gcc_cv_ld=$dir/ld$host_exeext
9564 break;
9566 done
9568 case $in_tree_ld in
9569 yes)
9570 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
9571 echo "${ECHO_T}\"newly built ld\"" >&6
9574 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
9575 echo "${ECHO_T}$gcc_cv_ld" >&6
9577 esac
9579 # Figure out what nm we will be using.
9580 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
9581 echo "$as_me:$LINENO: checking what nm to use" >&5
9582 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
9583 in_tree_nm=no
9584 if test -x nm$host_exeext; then
9585 gcc_cv_nm=./nm$host_exeext
9586 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9587 && test -f ../binutils/Makefile; then
9588 # Single tree build which includes binutils.
9589 in_tree_nm=yes
9590 gcc_cv_nm=./nm$host_exeext
9591 rm -f nm$host_exeext
9592 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
9593 elif test "x$program_prefix" != xNONE; then
9594 gcc_cv_nm=${program_prefix}nm$host_exeext
9595 else
9596 gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
9598 case $in_tree_nm in
9599 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
9600 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
9601 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
9602 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
9603 esac
9605 # Figure out what objdump we will be using.
9606 echo "$as_me:$LINENO: checking what objdump to use" >&5
9607 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
9608 in_tree_objdump=no
9609 if test -x objdump$host_exeext; then
9610 gcc_cv_objdump=./objdump$host_exeext
9611 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9612 && test -f ../binutils/Makefile; then
9613 # Single tree build which includes binutils.
9614 in_tree_objdump=yes
9615 gcc_cv_objdump=./objdump$host_exeext
9616 rm -f objdump$host_exeext
9617 $symbolic_link ../binutils/objdump$host_exeext \
9618 objdump$host_exeext 2>/dev/null
9619 elif test "x$program_prefix" != xNONE; then
9620 gcc_cv_objdump=${program_prefix}objdump$host_exeext
9621 else
9622 gcc_cv_objdump=`echo objdump | \
9623 sed ${program_transform_name}`$host_exeext
9625 case $in_tree_objdump in
9626 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
9627 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
9628 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
9629 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
9630 esac
9632 # Figure out what assembler alignment features are present.
9633 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
9634 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
9635 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638 gcc_cv_as_balign_and_p2align=no
9639 if test $in_tree_gas = yes; then
9640 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
9641 then gcc_cv_as_balign_and_p2align=yes
9643 elif test x$gcc_cv_as != x; then
9644 echo '.balign 4
9645 .p2align 2' > conftest.s
9646 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }
9652 then
9653 gcc_cv_as_balign_and_p2align=yes
9654 else
9655 echo "configure: failed program was" >&5
9656 cat conftest.s >&5
9658 rm -f conftest.o conftest.s
9661 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
9662 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
9663 if test $gcc_cv_as_balign_and_p2align = yes; then
9665 cat >>confdefs.h <<\_ACEOF
9666 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9667 _ACEOF
9671 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
9672 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
9673 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676 gcc_cv_as_max_skip_p2align=no
9677 if test $in_tree_gas = yes; then
9678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
9679 then gcc_cv_as_max_skip_p2align=yes
9681 elif test x$gcc_cv_as != x; then
9682 echo '.p2align 4,,7' > conftest.s
9683 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }
9689 then
9690 gcc_cv_as_max_skip_p2align=yes
9691 else
9692 echo "configure: failed program was" >&5
9693 cat conftest.s >&5
9695 rm -f conftest.o conftest.s
9698 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
9699 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
9700 if test $gcc_cv_as_max_skip_p2align = yes; then
9702 cat >>confdefs.h <<\_ACEOF
9703 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9704 _ACEOF
9708 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
9709 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
9710 if test "${gcc_cv_as_subsection_m1+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 gcc_cv_as_subsection_m1=no
9714 if test $in_tree_gas = yes; then
9715 if test $in_tree_gas_is_elf = yes \
9716 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
9717 then gcc_cv_as_subsection_m1=yes
9719 elif test x$gcc_cv_as != x; then
9720 echo 'conftest_label1: .word 0
9721 .subsection -1
9722 conftest_label2: .word 0
9723 .previous' > conftest.s
9724 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 (eval $ac_try) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }
9730 then
9731 if test x$gcc_cv_nm != x; then
9732 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
9733 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
9734 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
9735 then :
9736 else gcc_cv_as_subsection_m1=yes
9738 rm -f conftest.nm1 conftest.nm2
9740 else
9741 echo "configure: failed program was" >&5
9742 cat conftest.s >&5
9744 rm -f conftest.o conftest.s
9747 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
9748 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
9749 if test $gcc_cv_as_subsection_m1 = yes; then
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_GAS_SUBSECTION_ORDERING 1
9753 _ACEOF
9757 echo "$as_me:$LINENO: checking assembler for .weak" >&5
9758 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
9759 if test "${gcc_cv_as_weak+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762 gcc_cv_as_weak=no
9763 if test $in_tree_gas = yes; then
9764 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
9765 then gcc_cv_as_weak=yes
9767 elif test x$gcc_cv_as != x; then
9768 echo ' .weak foobar' > conftest.s
9769 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }
9775 then
9776 gcc_cv_as_weak=yes
9777 else
9778 echo "configure: failed program was" >&5
9779 cat conftest.s >&5
9781 rm -f conftest.o conftest.s
9784 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
9785 echo "${ECHO_T}$gcc_cv_as_weak" >&6
9786 if test $gcc_cv_as_weak = yes; then
9788 cat >>confdefs.h <<\_ACEOF
9789 #define HAVE_GAS_WEAK 1
9790 _ACEOF
9794 # .hidden needs to be supported in both the assembler and the linker,
9795 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
9796 # This is irritatingly difficult to feature test for; we have to check the
9797 # date string after the version number. If we've got an in-tree
9798 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
9799 # to be safe.
9800 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
9801 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
9802 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
9803 if test "${gcc_cv_as_hidden+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 gcc_cv_as_hidden=no
9807 if test $in_tree_gas = yes; then
9808 if test $in_tree_gas_is_elf = yes \
9809 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
9810 then gcc_cv_as_hidden=yes
9812 elif test x$gcc_cv_as != x; then
9813 echo ' .hidden foobar
9814 foobar:' > conftest.s
9815 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 (eval $ac_try) 2>&5
9818 ac_status=$?
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; }
9821 then
9822 gcc_cv_as_hidden=yes
9823 else
9824 echo "configure: failed program was" >&5
9825 cat conftest.s >&5
9827 rm -f conftest.o conftest.s
9830 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
9831 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
9834 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
9835 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
9836 if test "${gcc_cv_ld_hidden+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839 if test $in_tree_ld = yes ; then
9840 gcc_cv_ld_hidden=no
9841 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 \
9842 && test $in_tree_ld_is_elf = yes; then
9843 gcc_cv_ld_hidden=yes
9845 else
9846 gcc_cv_ld_hidden=yes
9847 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
9848 if echo "$ld_ver" | grep GNU > /dev/null; then
9849 ld_vers=`echo $ld_ver | sed -n \
9850 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9851 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9852 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9853 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9854 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9855 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
9856 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'`
9857 if test 0"$ld_date" -lt 20020404; then
9858 if test -n "$ld_date"; then
9859 # If there was date string, but was earlier than 2002-04-04, fail
9860 gcc_cv_ld_hidden=no
9861 elif test -z "$ld_vers"; then
9862 # If there was no date string nor ld version number, something is wrong
9863 gcc_cv_ld_hidden=no
9864 else
9865 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
9866 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
9867 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9868 test -z "$ld_vers_patch" && ld_vers_patch=0
9869 if test "$ld_vers_major" -lt 2; then
9870 gcc_cv_ld_hidden=no
9871 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
9872 gcc_cv_ld_hidden="no"
9873 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
9874 gcc_cv_ld_hidden=no
9878 else
9879 case "${target}" in
9880 hppa64*-*-hpux*)
9881 gcc_cv_ld_hidden=yes
9884 gcc_cv_ld_hidden=no
9886 esac
9890 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
9891 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
9892 libgcc_visibility=no
9894 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
9895 libgcc_visibility=yes
9897 cat >>confdefs.h <<\_ACEOF
9898 #define HAVE_GAS_HIDDEN 1
9899 _ACEOF
9903 # Check if we have .[us]leb128, and support symbol arithmetic with it.
9904 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
9905 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
9906 if test "${gcc_cv_as_leb128+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 gcc_cv_as_leb128=no
9910 if test $in_tree_gas = yes; then
9911 if test $in_tree_gas_is_elf = yes \
9912 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
9913 then gcc_cv_as_leb128=yes
9915 elif test x$gcc_cv_as != x; then
9916 echo ' .data
9917 .uleb128 L2 - L1
9919 .uleb128 1280
9920 .sleb128 -1010
9921 L2:' > conftest.s
9922 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 (eval $ac_try) 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }
9928 then
9929 # GAS versions before 2.11 do not support uleb128,
9930 # despite appearing to.
9931 # ??? There exists an elf-specific test that will crash
9932 # the assembler. Perhaps it's better to figure out whether
9933 # arbitrary sections are supported and try the test.
9934 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
9935 if echo "$as_ver" | grep GNU > /dev/null; then
9936 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
9937 as_major=`echo $as_ver | sed 's/\..*//'`
9938 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
9939 if test $as_major -eq 2 && test $as_minor -lt 11
9940 then :
9941 else gcc_cv_as_leb128=yes
9944 else
9945 echo "configure: failed program was" >&5
9946 cat conftest.s >&5
9948 rm -f conftest.o conftest.s
9951 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
9952 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
9953 if test $gcc_cv_as_leb128 = yes; then
9955 cat >>confdefs.h <<\_ACEOF
9956 #define HAVE_AS_LEB128 1
9957 _ACEOF
9961 # GAS versions up to and including 2.11.0 may mis-optimize
9962 # .eh_frame data.
9963 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
9964 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
9965 if test "${gcc_cv_as_eh_frame+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968 gcc_cv_as_eh_frame=no
9969 if test $in_tree_gas = yes; then
9970 if test $in_tree_gas_is_elf = yes \
9971 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
9972 then gcc_cv_as_eh_frame=yes
9974 elif test x$gcc_cv_as != x; then
9975 echo ' .text
9976 .LFB1:
9977 .4byte 0
9978 .L1:
9979 .4byte 0
9980 .LFE1:
9981 .section .eh_frame,"aw",@progbits
9982 __FRAME_BEGIN__:
9983 .4byte .LECIE1-.LSCIE1
9984 .LSCIE1:
9985 .4byte 0x0
9986 .byte 0x1
9987 .ascii "z\0"
9988 .byte 0x1
9989 .byte 0x78
9990 .byte 0x1a
9991 .byte 0x0
9992 .byte 0x4
9993 .4byte 1
9994 .p2align 1
9995 .LECIE1:
9996 .LSFDE1:
9997 .4byte .LEFDE1-.LASFDE1
9998 .LASFDE1:
9999 .4byte .LASFDE1-__FRAME_BEGIN__
10000 .4byte .LFB1
10001 .4byte .LFE1-.LFB1
10002 .byte 0x4
10003 .4byte .LFE1-.LFB1
10004 .byte 0x4
10005 .4byte .L1-.LFB1
10006 .LEFDE1:' > conftest.s
10007 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }
10013 then
10014 cat > conftest.lit <<EOF
10015 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10016 0010 01000000 12000000 18000000 00000000 ................
10017 0020 08000000 04080000 0044 .........D
10019 cat > conftest.big <<EOF
10020 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10021 0010 00000001 00000012 00000018 00000000 ................
10022 0020 00000008 04000000 0844 .........D
10024 # If the assembler didn't choke, and we can objdump,
10025 # and we got the correct data, then succeed.
10026 if test x$gcc_cv_objdump != x \
10027 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10028 | tail -3 > conftest.got \
10029 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10030 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10031 then
10032 gcc_cv_as_eh_frame=yes
10033 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
10039 gcc_cv_as_eh_frame=buggy
10040 else
10041 # Uh oh, what do we do now?
10042 gcc_cv_as_eh_frame=no
10044 else
10045 echo "configure: failed program was" >&5
10046 cat conftest.s >&5
10048 rm -f conftest.o conftest.s
10051 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10052 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10055 if test $gcc_cv_as_eh_frame = buggy; then
10057 cat >>confdefs.h <<\_ACEOF
10058 #define USE_AS_TRADITIONAL_FORMAT 1
10059 _ACEOF
10063 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10064 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10065 if test "${gcc_cv_as_shf_merge+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068 gcc_cv_as_shf_merge=no
10069 if test $in_tree_gas = yes; then
10070 if test $in_tree_gas_is_elf = yes \
10071 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10072 then gcc_cv_as_shf_merge=yes
10074 elif test x$gcc_cv_as != x; then
10075 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10076 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }
10082 then
10083 gcc_cv_as_shf_merge=yes
10084 else
10085 echo "configure: failed program was" >&5
10086 cat conftest.s >&5
10088 rm -f conftest.o conftest.s
10091 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10092 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10095 cat >>confdefs.h <<_ACEOF
10096 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10097 _ACEOF
10100 # Thread-local storage - the check is heavily parametrized.
10101 conftest_s=
10102 tls_first_major=
10103 tls_first_minor=
10104 tls_as_opt=
10105 case "$target" in
10106 alpha*-*-*)
10107 conftest_s='
10108 .section ".tdata","awT",@progbits
10109 foo: .long 25
10110 .text
10111 ldq $27,__tls_get_addr($29) !literal!1
10112 lda $16,foo($29) !tlsgd!1
10113 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10114 ldq $27,__tls_get_addr($29) !literal!2
10115 lda $16,foo($29) !tlsldm!2
10116 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10117 ldq $1,foo($29) !gotdtprel
10118 ldah $2,foo($29) !dtprelhi
10119 lda $3,foo($2) !dtprello
10120 lda $4,foo($29) !dtprel
10121 ldq $1,foo($29) !gottprel
10122 ldah $2,foo($29) !tprelhi
10123 lda $3,foo($2) !tprello
10124 lda $4,foo($29) !tprel'
10125 tls_first_major=2
10126 tls_first_minor=13
10128 i[34567]86-*-*)
10129 conftest_s='
10130 .section ".tdata","awT",@progbits
10131 foo: .long 25
10132 .text
10133 movl %gs:0, %eax
10134 leal foo@TLSGD(,%ebx,1), %eax
10135 leal foo@TLSLDM(%ebx), %eax
10136 leal foo@DTPOFF(%eax), %edx
10137 movl foo@GOTTPOFF(%ebx), %eax
10138 subl foo@GOTTPOFF(%ebx), %eax
10139 addl foo@GOTNTPOFF(%ebx), %eax
10140 movl foo@INDNTPOFF, %eax
10141 movl $foo@TPOFF, %eax
10142 subl $foo@TPOFF, %eax
10143 leal foo@NTPOFF(%ecx), %eax'
10144 tls_first_major=2
10145 tls_first_minor=14
10147 x86_64-*-*)
10148 conftest_s='
10149 .section ".tdata","awT",@progbits
10150 foo: .long 25
10151 .text
10152 movq %fs:0, %rax
10153 leaq foo@TLSGD(%rip), %rdi
10154 leaq foo@TLSLD(%rip), %rdi
10155 leaq foo@DTPOFF(%rax), %rdx
10156 movq foo@GOTTPOFF(%rip), %rax
10157 movq $foo@TPOFF, %rax'
10158 tls_first_major=2
10159 tls_first_minor=14
10161 ia64-*-*)
10162 conftest_s='
10163 .section ".tdata","awT",@progbits
10164 foo: data8 25
10165 .text
10166 addl r16 = @ltoff(@dtpmod(foo#)), gp
10167 addl r17 = @ltoff(@dtprel(foo#)), gp
10168 addl r18 = @ltoff(@tprel(foo#)), gp
10169 addl r19 = @dtprel(foo#), gp
10170 adds r21 = @dtprel(foo#), r13
10171 movl r23 = @dtprel(foo#)
10172 addl r20 = @tprel(foo#), gp
10173 adds r22 = @tprel(foo#), r13
10174 movl r24 = @tprel(foo#)'
10175 tls_first_major=2
10176 tls_first_minor=13
10178 powerpc-*-*)
10179 conftest_s='
10180 .section ".tdata","awT",@progbits
10181 .align 2
10182 ld0: .space 4
10183 ld1: .space 4
10184 x1: .space 4
10185 x2: .space 4
10186 x3: .space 4
10187 .text
10188 addi 3,31,ld0@got@tlsgd
10189 bl __tls_get_addr
10190 addi 3,31,x1@got@tlsld
10191 bl __tls_get_addr
10192 addi 9,3,x1@dtprel
10193 addis 9,3,x2@dtprel@ha
10194 addi 9,9,x2@dtprel@l
10195 lwz 9,x3@got@tprel(31)
10196 add 9,9,x@tls
10197 addi 9,2,x1@tprel
10198 addis 9,2,x2@tprel@ha
10199 addi 9,9,x2@tprel@l'
10200 tls_first_major=2
10201 tls_first_minor=14
10202 tls_as_opt=-a32
10204 powerpc64-*-*)
10205 conftest_s='
10206 .section ".tdata","awT",@progbits
10207 .align 3
10208 ld0: .space 8
10209 ld1: .space 8
10210 x1: .space 8
10211 x2: .space 8
10212 x3: .space 8
10213 .text
10214 addi 3,2,ld0@got@tlsgd
10215 bl .__tls_get_addr
10217 addi 3,2,ld1@toc
10218 bl .__tls_get_addr
10220 addi 3,2,x1@got@tlsld
10221 bl .__tls_get_addr
10223 addi 9,3,x1@dtprel
10224 bl .__tls_get_addr
10226 addis 9,3,x2@dtprel@ha
10227 addi 9,9,x2@dtprel@l
10228 bl .__tls_get_addr
10230 ld 9,x3@got@dtprel(2)
10231 add 9,9,3
10232 bl .__tls_get_addr
10233 nop'
10234 tls_first_major=2
10235 tls_first_minor=14
10236 tls_as_opt=-a64
10238 s390-*-*)
10239 conftest_s='
10240 .section ".tdata","awT",@progbits
10241 foo: .long 25
10242 .text
10243 .long foo@TLSGD
10244 .long foo@TLSLDM
10245 .long foo@DTPOFF
10246 .long foo@NTPOFF
10247 .long foo@GOTNTPOFF
10248 .long foo@INDNTPOFF
10249 l %r1,foo@GOTNTPOFF(%r12)
10250 l %r1,0(%r1):tls_load:foo
10251 bas %r14,0(%r1,%r13):tls_gdcall:foo
10252 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10253 tls_first_major=2
10254 tls_first_minor=14
10255 tls_as_opt=-m31
10257 s390x-*-*)
10258 conftest_s='
10259 .section ".tdata","awT",@progbits
10260 foo: .long 25
10261 .text
10262 .quad foo@TLSGD
10263 .quad foo@TLSLDM
10264 .quad foo@DTPOFF
10265 .quad foo@NTPOFF
10266 .quad foo@GOTNTPOFF
10267 lg %r1,foo@GOTNTPOFF(%r12)
10268 larl %r1,foo@INDNTPOFF
10269 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10270 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10271 tls_first_major=2
10272 tls_first_minor=14
10273 tls_as_opt="-m64 -Aesame"
10275 sh-*-* | sh[34]-*-*)
10276 conftest_s='
10277 .section ".tdata","awT",@progbits
10278 foo: .long 25
10279 .text
10280 .long foo@TLSGD
10281 .long foo@TLSLDM
10282 .long foo@DTPOFF
10283 .long foo@GOTTPOFF
10284 .long foo@TPOFF'
10285 tls_first_major=2
10286 tls_first_minor=13
10288 sparc*-*-*)
10289 conftest_s='
10290 .section ".tdata","awT",@progbits
10291 foo: .long 25
10292 .text
10293 sethi %tgd_hi22(foo), %o0
10294 add %o0, %tgd_lo10(foo), %o1
10295 add %l7, %o1, %o0, %tgd_add(foo)
10296 call __tls_get_addr, %tgd_call(foo)
10297 sethi %tldm_hi22(foo), %l1
10298 add %l1, %tldm_lo10(foo), %l2
10299 add %l7, %l2, %o0, %tldm_add(foo)
10300 call __tls_get_addr, %tldm_call(foo)
10301 sethi %tldo_hix22(foo), %l3
10302 xor %l3, %tldo_lox10(foo), %l4
10303 add %o0, %l4, %l5, %tldo_add(foo)
10304 sethi %tie_hi22(foo), %o3
10305 add %o3, %tie_lo10(foo), %o3
10306 ld [%l7 + %o3], %o2, %tie_ld(foo)
10307 add %g7, %o2, %o4, %tie_add(foo)
10308 sethi %tle_hix22(foo), %l1
10309 xor %l1, %tle_lox10(foo), %o5
10310 ld [%g7 + %o5], %o1'
10311 tls_first_major=2
10312 tls_first_minor=14
10313 tls_as_opt=-32
10315 esac
10316 if test -z "$tls_first_major"; then
10317 : # If we don't have a check, assume no support.
10318 else
10319 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10320 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10321 if test "${gcc_cv_as_tls+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324 gcc_cv_as_tls=no
10325 if test $in_tree_gas = yes; then
10326 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10327 then gcc_cv_as_tls=yes
10329 elif test x$gcc_cv_as != x; then
10330 echo "$conftest_s" > conftest.s
10331 if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }
10337 then
10338 gcc_cv_as_tls=yes
10339 else
10340 echo "configure: failed program was" >&5
10341 cat conftest.s >&5
10343 rm -f conftest.o conftest.s
10346 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10347 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10348 if test $gcc_cv_as_tls = yes; then
10350 cat >>confdefs.h <<\_ACEOF
10351 #define HAVE_AS_TLS 1
10352 _ACEOF
10357 # Target-specific assembler checks.
10359 case "$target" in
10360 # All TARGET_ABI_OSF targets.
10361 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10362 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10363 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10364 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 gcc_cv_as_alpha_explicit_relocs=no
10368 if test $in_tree_gas = yes; then
10369 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10370 then gcc_cv_as_alpha_explicit_relocs=yes
10372 elif test x$gcc_cv_as != x; then
10373 echo ' .set nomacro
10374 .text
10375 extbl $3, $2, $3 !lituse_bytoff!1
10376 ldq $2, a($29) !literal!1
10377 ldq $4, b($29) !literal!2
10378 ldq_u $3, 0($2) !lituse_base!1
10379 ldq $27, f($29) !literal!5
10380 jsr $26, ($27), f !lituse_jsr!5
10381 ldah $29, 0($26) !gpdisp!3
10382 lda $0, c($29) !gprel
10383 ldah $1, d($29) !gprelhigh
10384 lda $1, d($1) !gprellow
10385 lda $29, 0($29) !gpdisp!3' > conftest.s
10386 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }
10392 then
10393 gcc_cv_as_alpha_explicit_relocs=yes
10394 else
10395 echo "configure: failed program was" >&5
10396 cat conftest.s >&5
10398 rm -f conftest.o conftest.s
10401 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10402 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10403 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10405 cat >>confdefs.h <<\_ACEOF
10406 #define HAVE_AS_EXPLICIT_RELOCS 1
10407 _ACEOF
10412 sparc*-*-*)
10413 echo "$as_me:$LINENO: checking assembler for .register" >&5
10414 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10415 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 else
10418 gcc_cv_as_sparc_register_op=no
10419 if test x$gcc_cv_as != x; then
10420 echo '.register %g2, #scratch' > conftest.s
10421 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10424 ac_status=$?
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }
10427 then
10428 gcc_cv_as_sparc_register_op=yes
10429 else
10430 echo "configure: failed program was" >&5
10431 cat conftest.s >&5
10433 rm -f conftest.o conftest.s
10436 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10437 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10438 if test $gcc_cv_as_sparc_register_op = yes; then
10440 cat >>confdefs.h <<\_ACEOF
10441 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10442 _ACEOF
10446 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10447 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10448 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 else
10451 gcc_cv_as_sparc_relax=no
10452 if test x$gcc_cv_as != x; then
10453 echo '.text' > conftest.s
10454 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }
10460 then
10461 gcc_cv_as_sparc_relax=yes
10462 else
10463 echo "configure: failed program was" >&5
10464 cat conftest.s >&5
10466 rm -f conftest.o conftest.s
10469 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10470 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10471 if test $gcc_cv_as_sparc_relax = yes; then
10473 cat >>confdefs.h <<\_ACEOF
10474 #define HAVE_AS_RELAX_OPTION 1
10475 _ACEOF
10479 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10480 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10481 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484 gcc_cv_as_sparc_ua_pcrel=no
10485 if test x$gcc_cv_as != x; then
10486 echo '.text
10487 foo:
10489 .data
10490 .align 4
10491 .byte 0
10492 .uaword %r_disp32(foo)' > conftest.s
10493 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }
10499 then
10500 if test x$gcc_cv_ld != x \
10501 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
10502 gcc_cv_as_sparc_ua_pcrel=yes
10504 rm -f conftest
10505 else
10506 echo "configure: failed program was" >&5
10507 cat conftest.s >&5
10509 rm -f conftest.o conftest.s
10512 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10513 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10514 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define HAVE_AS_SPARC_UA_PCREL 1
10518 _ACEOF
10521 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10522 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10523 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526 gcc_cv_as_sparc_ua_pcrel_hidden=no
10527 if test x$gcc_cv_as != x; then
10528 echo '.data
10529 .align 4
10530 .byte 0x31
10531 .uaword %r_disp32(foo)
10532 .byte 0x32, 0x33, 0x34
10533 .global foo
10534 .hidden foo
10535 foo:
10536 .skip 4' > conftest.s
10537 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }
10543 then
10544 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
10545 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
10546 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
10547 | grep ' 31000000 07323334' > /dev/null 2>&1; then
10548 if $gcc_cv_objdump -R conftest 2> /dev/null \
10549 | grep 'DISP32' > /dev/null 2>&1; then
10551 else
10552 gcc_cv_as_sparc_ua_pcrel_hidden=yes
10555 rm -f conftest
10556 else
10557 echo "configure: failed program was" >&5
10558 cat conftest.s >&5
10560 rm -f conftest.o conftest.s
10563 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10564 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10565 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10567 cat >>confdefs.h <<\_ACEOF
10568 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
10569 _ACEOF
10573 fi # unaligned pcrel relocs
10575 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
10576 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
10577 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580 gcc_cv_as_sparc_offsetable_lo10=no
10581 if test x$gcc_cv_as != x; then
10582 echo '.text
10583 or %g1, %lo(ab) + 12, %g1
10584 or %g1, %lo(ab + 12), %g1' > conftest.s
10585 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }
10591 then
10592 if test x$gcc_cv_objdump != x \
10593 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
10594 | grep ' 82106000 82106000' > /dev/null 2>&1; then
10595 gcc_cv_as_offsetable_lo10=yes
10597 else
10598 echo "configure: failed program was" >&5
10599 cat conftest.s >&5
10601 rm -f conftest.o conftest.s
10604 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
10605 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
10606 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
10608 cat >>confdefs.h <<\_ACEOF
10609 #define HAVE_AS_OFFSETABLE_LO10 1
10610 _ACEOF
10615 i[34567]86-*-* | x86_64-*-*)
10616 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
10617 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
10618 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10620 else
10621 gcc_cv_as_ix86_filds_fists=no
10622 if test $in_tree_gas = yes; then
10623 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10624 then gcc_cv_as_ix86_filds_fists=yes
10626 elif test x$gcc_cv_as != x; then
10627 echo 'filds mem; fists mem' > conftest.s
10628 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }
10634 then
10635 gcc_cv_as_ix86_filds_fists=yes
10636 else
10637 echo "configure: failed program was" >&5
10638 cat conftest.s >&5
10640 rm -f conftest.o conftest.s
10643 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
10644 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
10645 if test $gcc_cv_as_ix86_filds_fists = yes; then
10647 cat >>confdefs.h <<\_ACEOF
10648 #define HAVE_GAS_FILDS_FISTS 1
10649 _ACEOF
10653 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
10654 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
10655 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658 gcc_cv_as_ix86_cmov_sun_syntax=no
10659 if test x$gcc_cv_as != x; then
10660 echo 'cmovl.l %edx, %eax' > conftest.s
10661 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }
10667 then
10668 gcc_cv_as_ix86_cmov_sun_syntax=yes
10669 else
10670 echo "configure: failed program was" >&5
10671 cat conftest.s >&5
10673 rm -f conftest.o conftest.s
10676 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
10677 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
10678 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
10680 cat >>confdefs.h <<\_ACEOF
10681 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
10682 _ACEOF
10686 # This one is used unconditionally by i386.[ch]; it is to be defined
10687 # to 1 if the feature is present, 0 otherwise.
10688 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
10689 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
10690 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693 gcc_cv_as_ix86_gotoff_in_data=no
10694 if test $in_tree_gas = yes; then
10695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10696 then gcc_cv_as_ix86_gotoff_in_data=yes
10698 elif test x$gcc_cv_as != x; then
10699 echo ' .text
10700 .L0:
10702 .data
10703 .long .L0@GOTOFF' > conftest.s
10704 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }
10710 then
10711 gcc_cv_as_ix86_gotoff_in_data=yes
10712 else
10713 echo "configure: failed program was" >&5
10714 cat conftest.s >&5
10716 rm -f conftest.o conftest.s
10719 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
10720 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
10723 cat >>confdefs.h <<_ACEOF
10724 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
10725 _ACEOF
10729 ia64*-*-*)
10730 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
10731 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
10732 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
10736 if test $in_tree_gas = yes; then
10737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10738 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10740 elif test x$gcc_cv_as != x; then
10741 echo ' .text
10742 addl r15 = @ltoffx(x#), gp
10744 ld8.mov r16 = [r15], x#' > conftest.s
10745 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }
10751 then
10752 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10753 else
10754 echo "configure: failed program was" >&5
10755 cat conftest.s >&5
10757 rm -f conftest.o conftest.s
10760 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
10761 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
10762 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
10764 cat >>confdefs.h <<\_ACEOF
10765 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
10766 _ACEOF
10772 powerpc*-*-*)
10773 case $target in
10774 *-*-aix) conftest_s=' .csect .textPR';;
10775 *) conftest_s=' .text';;
10776 esac
10777 conftest_s="$conftest_s
10778 mfcr 3,128"
10780 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
10781 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
10782 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 else
10785 gcc_cv_as_powerpc_mfcrf=no
10786 if test $in_tree_gas = yes; then
10787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10788 then gcc_cv_as_powerpc_mfcrf=yes
10790 elif test x$gcc_cv_as != x; then
10791 echo "$conftest_s" > conftest.s
10792 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }
10798 then
10799 gcc_cv_as_powerpc_mfcrf=yes
10800 else
10801 echo "configure: failed program was" >&5
10802 cat conftest.s >&5
10804 rm -f conftest.o conftest.s
10807 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
10808 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
10809 if test $gcc_cv_as_powerpc_mfcrf = yes; then
10811 cat >>confdefs.h <<\_ACEOF
10812 #define HAVE_AS_MFCRF 1
10813 _ACEOF
10818 mips*-*-*)
10819 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10820 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10821 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824 gcc_cv_as_mips_explicit_relocs=no
10825 if test $in_tree_gas = yes; then
10826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10827 then gcc_cv_as_mips_explicit_relocs=yes
10829 elif test x$gcc_cv_as != x; then
10830 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
10831 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }
10837 then
10838 gcc_cv_as_mips_explicit_relocs=yes
10839 else
10840 echo "configure: failed program was" >&5
10841 cat conftest.s >&5
10843 rm -f conftest.o conftest.s
10846 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
10847 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
10848 if test $gcc_cv_as_mips_explicit_relocs = yes; then
10849 if test x$target_cpu_default = x
10850 then target_cpu_default=MASK_EXPLICIT_RELOCS
10851 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
10856 esac
10857 # ??? Not all targets support dwarf2 debug_line, even within a version
10858 # of gas. Moreover, we need to emit a valid instruction to trigger any
10859 # info to the output file. So, as supported targets are added to gas 2.11,
10860 # add some instruction here to (also) show we expect this might work.
10861 # ??? Once 2.11 is released, probably need to add first known working
10862 # version to the per-target configury.
10863 case "$target" in
10864 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
10865 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
10866 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
10867 insn="nop"
10869 ia64*-*-*)
10870 insn="nop 0"
10872 mmix-*-*)
10873 insn="swym 0"
10875 esac
10876 if test x"$insn" != x; then
10877 conftest_s="\
10878 .file 1 \"conftest.s\"
10879 .loc 1 3 0
10880 $insn"
10881 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
10882 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
10883 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886 gcc_cv_as_dwarf2_debug_line=no
10887 if test $in_tree_gas = yes; then
10888 if test $in_tree_gas_is_elf = yes \
10889 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10890 then gcc_cv_as_dwarf2_debug_line=yes
10892 elif test x$gcc_cv_as != x; then
10893 echo "$conftest_s" > conftest.s
10894 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }
10900 then
10901 # ??? This fails with non-gnu grep. Maybe use objdump?
10902 if grep debug_line conftest.o > /dev/null 2>&1; then
10903 gcc_cv_as_dwarf2_debug_line=yes
10905 else
10906 echo "configure: failed program was" >&5
10907 cat conftest.s >&5
10909 rm -f conftest.o conftest.s
10912 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
10913 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
10916 # The .debug_line file table must be in the exact order that
10917 # we specified the files, since these indices are also used
10918 # by DW_AT_decl_file. Approximate this test by testing if
10919 # the assembler bitches if the same index is assigned twice.
10920 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
10921 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
10922 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925 gcc_cv_as_dwarf2_file_buggy=no
10926 if test x$gcc_cv_as != x; then
10927 echo ' .file 1 "foo.s"
10928 .file 1 "bar.s"' > conftest.s
10929 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }
10935 then
10936 gcc_cv_as_dwarf2_file_buggy=yes
10937 else
10938 echo "configure: failed program was" >&5
10939 cat conftest.s >&5
10941 rm -f conftest.o conftest.s
10944 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
10945 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
10948 if test $gcc_cv_as_dwarf2_debug_line = yes \
10949 && test $gcc_cv_as_dwarf2_file_buggy = no; then
10951 cat >>confdefs.h <<\_ACEOF
10952 #define HAVE_AS_DWARF2_DEBUG_LINE 1
10953 _ACEOF
10957 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
10958 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
10959 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962 gcc_cv_as_gdwarf2_flag=no
10963 if test $in_tree_gas = yes; then
10964 if test $in_tree_gas_is_elf = yes \
10965 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10966 then gcc_cv_as_gdwarf2_flag=yes
10968 elif test x$gcc_cv_as != x; then
10969 echo "$insn" > conftest.s
10970 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }
10976 then
10977 gcc_cv_as_gdwarf2_flag=yes
10978 else
10979 echo "configure: failed program was" >&5
10980 cat conftest.s >&5
10982 rm -f conftest.o conftest.s
10985 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
10986 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
10987 if test $gcc_cv_as_gdwarf2_flag = yes; then
10989 cat >>confdefs.h <<\_ACEOF
10990 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
10991 _ACEOF
10995 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
10996 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
10997 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000 gcc_cv_as_gstabs_flag=no
11001 if test $in_tree_gas = yes; then
11002 if test $in_tree_gas_is_elf = yes \
11003 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11004 then gcc_cv_as_gstabs_flag=yes
11006 elif test x$gcc_cv_as != x; then
11007 echo "$insn" > conftest.s
11008 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }
11014 then
11015 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11016 # and warns about it, but still exits successfully. So check for
11017 # this.
11018 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }
11024 then :
11025 else gcc_cv_as_gstabs_flag=yes
11027 else
11028 echo "configure: failed program was" >&5
11029 cat conftest.s >&5
11031 rm -f conftest.o conftest.s
11034 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11035 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11036 if test $gcc_cv_as_gstabs_flag = yes; then
11038 cat >>confdefs.h <<\_ACEOF
11039 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11040 _ACEOF
11045 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11046 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11047 gcc_cv_ld_ro_rw_mix=unknown
11048 if test $in_tree_ld = yes ; then
11049 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 \
11050 && test $in_tree_ld_is_elf = yes; then
11051 gcc_cv_ld_ro_rw_mix=read-write
11053 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11054 echo '.section myfoosect, "a"' > conftest1.s
11055 echo '.section myfoosect, "aw"' > conftest2.s
11056 echo '.byte 1' >> conftest2.s
11057 echo '.section myfoosect, "a"' > conftest3.s
11058 echo '.byte 0' >> conftest3.s
11059 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11060 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11061 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11062 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11063 conftest2.o conftest3.o > /dev/null 2>&1; then
11064 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11065 | sed -e '/myfoosect/!d' -e N`
11066 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11067 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11068 gcc_cv_ld_ro_rw_mix=read-only
11069 else
11070 gcc_cv_ld_ro_rw_mix=read-write
11074 rm -f conftest.* conftest[123].*
11076 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11078 cat >>confdefs.h <<\_ACEOF
11079 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11080 _ACEOF
11083 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11084 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11086 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11087 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11088 gcc_cv_ld_eh_frame_hdr=no
11089 if test $in_tree_ld = yes ; then
11090 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 \
11091 && test $in_tree_ld_is_elf = yes; then
11092 gcc_cv_ld_eh_frame_hdr=yes
11094 elif test x$gcc_cv_ld != x; then
11095 # Check if linker supports --eh-frame-hdr option
11096 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11097 gcc_cv_ld_eh_frame_hdr=yes
11100 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11102 cat >>confdefs.h <<\_ACEOF
11103 #define HAVE_LD_EH_FRAME_HDR 1
11104 _ACEOF
11107 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11108 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11110 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11111 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11112 gcc_cv_ld_pie=no
11113 if test $in_tree_ld = yes ; then
11114 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 \
11115 && test $in_tree_ld_is_elf = yes; then
11116 gcc_cv_ld_pie=yes
11118 elif test x$gcc_cv_ld != x; then
11119 # Check if linker supports -pie option
11120 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11121 gcc_cv_ld_pie=yes
11124 if test x"$gcc_cv_ld_pie" = xyes; then
11126 cat >>confdefs.h <<\_ACEOF
11127 #define HAVE_LD_PIE 1
11128 _ACEOF
11131 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11132 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11134 if test x$with_sysroot = x && test x$host = x$target \
11135 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11137 cat >>confdefs.h <<_ACEOF
11138 #define PREFIX_INCLUDE_DIR "$prefix/include"
11139 _ACEOF
11143 # Figure out what language subdirectories are present.
11144 # Look if the user specified --enable-languages="..."; if not, use
11145 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11146 # go away some day.
11147 # NB: embedded tabs in this IF block -- do not untabify
11148 if test x"${enable_languages+set}" != xset; then
11149 if test x"${LANGUAGES+set}" = xset; then
11150 enable_languages="${LANGUAGES}"
11151 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11152 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11154 else
11155 enable_languages=all
11157 else
11158 if test x"${enable_languages}" = x \
11159 || test x"${enable_languages}" = xyes;
11160 then
11161 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11162 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11163 { (exit 1); exit 1; }; }
11166 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11168 # First scan to see if an enabled language requires some other language.
11169 # We assume that a given config-lang.in will list all the language
11170 # front ends it requires, even if some are required indirectly.
11171 for lang in ${srcdir}/*/config-lang.in
11173 case $lang in
11174 # The odd quoting in the next line works around
11175 # an apparent bug in bash 1.12 on linux.
11176 ${srcdir}/[*]/config-lang.in)
11179 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11180 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11181 for other in $this_lang_requires
11183 case ,${enable_languages}, in
11184 *,$other,*)
11186 *,all,*)
11188 *,$lang_alias,*)
11189 enable_languages="$enable_languages,$other"
11191 esac
11192 done
11194 esac
11195 done
11197 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11198 found_languages=
11199 subdirs=
11200 for lang in ${srcdir}/*/config-lang.in
11202 case $lang in
11203 # The odd quoting in the next line works around
11204 # an apparent bug in bash 1.12 on linux.
11205 ${srcdir}/[*]/config-lang.in) ;;
11207 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11208 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11209 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11210 if test "x$lang_alias" = x
11211 then
11212 echo "$lang doesn't set \$language." 1>&2
11213 exit 1
11215 case ${build_by_default},${enable_languages}, in
11216 *,$lang_alias,*) add_this_lang=yes ;;
11217 no,*) add_this_lang=no ;;
11218 *,all,*) add_this_lang=yes ;;
11219 *) add_this_lang=no ;;
11220 esac
11221 found_languages="${found_languages} ${lang_alias}"
11222 if test x"${add_this_lang}" = xyes; then
11223 case $lang in
11224 ${srcdir}/ada/config-lang.in)
11225 if test x$have_gnat = xyes ; then
11226 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11230 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11232 esac
11235 esac
11236 done
11238 missing_languages=
11239 for expected_language in ${expected_languages} ..
11241 if test "${expected_language}" != ..; then
11242 missing_language="${expected_language}"
11243 if test "${expected_language}" = "c" \
11244 || test "${expected_language}" = "all"; then
11245 missing_language=
11247 for found_language in ${found_languages} ..
11249 if test "${found_language}" != ..; then
11250 if test "${expected_language}" = "${found_language}"; then
11251 missing_language=
11254 done
11255 if test "x${missing_language}" != x; then
11256 missing_languages="${missing_languages} ${missing_language}"
11259 done
11261 if test "x$missing_languages" != x; then
11262 { { echo "$as_me:$LINENO: error:
11263 The following requested languages were not found:${missing_languages}
11264 The following languages were available: c${found_languages}" >&5
11265 echo "$as_me: error:
11266 The following requested languages were not found:${missing_languages}
11267 The following languages were available: c${found_languages}" >&2;}
11268 { (exit 1); exit 1; }; }
11271 # Make gthr-default.h if we have a thread file.
11272 gthread_flags=
11273 if test $thread_file != single; then
11274 rm -f gthr-default.h
11275 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11276 gthread_flags=-DHAVE_GTHR_DEFAULT
11280 # Find out what GC implementation we want, or may, use.
11282 # Check whether --with-gc or --without-gc was given.
11283 if test "${with_gc+set}" = set; then
11284 withval="$with_gc"
11285 case "$withval" in
11286 simple | page | zone)
11287 GGC=ggc-$withval
11290 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11291 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11292 { (exit 1); exit 1; }; }
11294 esac
11295 else
11296 GGC=ggc-page
11299 echo "Using $GGC for garbage collection."
11301 # Use the system's zlib library.
11302 zlibdir=-L../zlib
11303 zlibinc="-I\$(srcdir)/../zlib"
11305 # Check whether --with-system-zlib or --without-system-zlib was given.
11306 if test "${with_system_zlib+set}" = set; then
11307 withval="$with_system_zlib"
11308 zlibdir=
11309 zlibinc=
11316 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11317 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11318 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11319 if test "${enable_maintainer_mode+set}" = set; then
11320 enableval="$enable_maintainer_mode"
11321 maintainer_mode=$enableval
11322 else
11323 maintainer_mode=no
11326 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11327 echo "${ECHO_T}$maintainer_mode" >&6
11329 if test "$maintainer_mode" = "yes"; then
11330 MAINT=''
11331 else
11332 MAINT='#'
11335 # Make empty files to contain the specs and options for each language.
11336 # Then add #include lines to for a compiler that has specs and/or options.
11338 lang_opt_files=
11339 lang_specs_files=
11340 lang_tree_files=
11341 for subdir in . $subdirs
11343 if test -f $srcdir/$subdir/lang.opt; then
11344 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11346 if test -f $srcdir/$subdir/lang-specs.h; then
11347 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11349 if test -f $srcdir/$subdir/$subdir-tree.def; then
11350 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11352 done
11354 # These (without "all_") are set in each config-lang.in.
11355 # `language' must be a single word so is spelled singularly.
11356 all_languages=
11357 all_boot_languages=
11358 all_compilers=
11359 all_stagestuff=
11360 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11361 # List of language makefile fragments.
11362 all_lang_makefrags=
11363 # List of language subdirectory makefiles. Deprecated.
11364 all_lang_makefiles=
11365 # Files for gengtype
11366 all_gtfiles="$target_gtfiles"
11367 # Files for gengtype with language
11368 all_gtfiles_files_langs=
11369 all_gtfiles_files_files=
11371 # Add the language fragments.
11372 # Languages are added via two mechanisms. Some information must be
11373 # recorded in makefile variables, these are defined in config-lang.in.
11374 # We accumulate them and plug them into the main Makefile.
11375 # The other mechanism is a set of hooks for each of the main targets
11376 # like `clean', `install', etc.
11378 language_hooks="Make-hooks"
11380 for s in $subdirs
11382 language=
11383 boot_language=
11384 compilers=
11385 stagestuff=
11386 outputs=
11387 gtfiles=
11388 . ${srcdir}/$s/config-lang.in
11389 if test "x$language" = x
11390 then
11391 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11392 exit 1
11394 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11395 if test -f ${srcdir}/$s/Makefile.in
11396 then all_lang_makefiles="$s/Makefile"
11398 all_languages="$all_languages $language"
11399 if test "x$boot_language" = xyes
11400 then
11401 all_boot_languages="$all_boot_languages $language"
11403 all_compilers="$all_compilers $compilers"
11404 all_stagestuff="$all_stagestuff $stagestuff"
11405 all_outputs="$all_outputs $outputs"
11406 all_gtfiles="$all_gtfiles $gtfiles"
11407 for f in $gtfiles
11409 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11410 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11411 done
11412 done
11414 # Pick up gtfiles for c
11415 gtfiles=
11416 s="c"
11417 . ${srcdir}/c-config-lang.in
11418 all_gtfiles="$all_gtfiles $gtfiles"
11419 for f in $gtfiles
11421 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11422 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11423 done
11425 check_languages=
11426 for language in $all_languages
11428 check_languages="$check_languages check-$language"
11429 done
11431 # We link each language in with a set of hooks, reached indirectly via
11432 # lang.${target}.
11434 rm -f Make-hooks
11435 touch Make-hooks
11436 target_list="all.build all.cross start.encap rest.encap tags \
11437 install-normal install-common install-man \
11438 uninstall \
11439 mostlyclean clean distclean maintainer-clean \
11440 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11441 for t in $target_list
11444 for lang in $all_languages
11446 x="$x $lang.$t"
11447 done
11448 echo "lang.$t: $x" >> Make-hooks
11449 done
11451 # Create .gdbinit.
11453 echo "dir ." > .gdbinit
11454 echo "dir ${srcdir}" >> .gdbinit
11455 if test x$gdb_needs_out_file_path = xyes
11456 then
11457 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11459 if test "x$subdirs" != x; then
11460 for s in $subdirs
11462 echo "dir ${srcdir}/$s" >> .gdbinit
11463 done
11465 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11467 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11468 # absolute path for gcc_tooldir based on inserting the number of up-directory
11469 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11470 # $(libsubdir)/@(unlibsubdir) based path.
11471 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11472 # make and thus we'd get different behavior depending on where we built the
11473 # sources.
11474 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
11475 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11476 else
11477 # An explanation of the sed strings:
11478 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
11479 # -e 's|/$||' match a trailing forward slash and eliminates it
11480 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
11481 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
11483 # (*) Note this pattern overwrites the first character of the string
11484 # with a forward slash if one is not already present. This is not a
11485 # problem because the exact names of the sub-directories concerned is
11486 # unimportant, just the number of them matters.
11488 # The practical upshot of these patterns is like this:
11490 # prefix exec_prefix result
11491 # ------ ----------- ------
11492 # /foo /foo/bar ../
11493 # /foo/ /foo/bar ../
11494 # /foo /foo/bar/ ../
11495 # /foo/ /foo/bar/ ../
11496 # /foo /foo/bar/ugg ../../
11498 dollar='$$'
11499 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11504 # Find a directory in which to install a shared libgcc.
11506 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11507 if test "${enable_version_specific_runtime_libs+set}" = set; then
11508 enableval="$enable_version_specific_runtime_libs"
11513 # Check whether --with-slibdir or --without-slibdir was given.
11514 if test "${with_slibdir+set}" = set; then
11515 withval="$with_slibdir"
11516 slibdir="$with_slibdir"
11517 else
11518 if test "${enable_version_specific_runtime_libs+set}" = set; then
11519 slibdir='$(libsubdir)'
11520 elif test "$host" != "$target"; then
11521 slibdir='$(build_tooldir)/lib'
11522 else
11523 slibdir='$(libdir)'
11528 objdir=`${PWDCMD-pwd}`
11531 # Substitute configuration variables
11602 # Echo link setup.
11603 if test x${build} = x${host} ; then
11604 if test x${host} = x${target} ; then
11605 echo "Links are now set up to build a native compiler for ${target}." 1>&2
11606 else
11607 echo "Links are now set up to build a cross-compiler" 1>&2
11608 echo " from ${host} to ${target}." 1>&2
11610 else
11611 if test x${host} = x${target} ; then
11612 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
11613 echo " for ${target}." 1>&2
11614 else
11615 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
11616 echo " from ${host} to ${target}." 1>&2
11620 # Configure the subdirectories
11621 # AC_CONFIG_SUBDIRS($subdirs)
11623 # Create the Makefile
11624 # and configure language subdirectories
11625 ac_config_files="$ac_config_files $all_outputs"
11628 ac_config_commands="$ac_config_commands default"
11630 cat >confcache <<\_ACEOF
11631 # This file is a shell script that caches the results of configure
11632 # tests run on this system so they can be shared between configure
11633 # scripts and configure runs, see configure's option --config-cache.
11634 # It is not useful on other systems. If it contains results you don't
11635 # want to keep, you may remove or edit it.
11637 # config.status only pays attention to the cache file if you give it
11638 # the --recheck option to rerun configure.
11640 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11641 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11642 # following values.
11644 _ACEOF
11646 # The following way of writing the cache mishandles newlines in values,
11647 # but we know of no workaround that is simple, portable, and efficient.
11648 # So, don't put newlines in cache variables' values.
11649 # Ultrix sh set writes to stderr and can't be redirected directly,
11650 # and sets the high bit in the cache file unless we assign to the vars.
11652 (set) 2>&1 |
11653 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11654 *ac_space=\ *)
11655 # `set' does not quote correctly, so add quotes (double-quote
11656 # substitution turns \\\\ into \\, and sed turns \\ into \).
11657 sed -n \
11658 "s/'/'\\\\''/g;
11659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11662 # `set' quotes correctly as required by POSIX, so do not add quotes.
11663 sed -n \
11664 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11666 esac;
11668 sed '
11669 t clear
11670 : clear
11671 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11672 t end
11673 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11674 : end' >>confcache
11675 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11676 if test -w $cache_file; then
11677 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11678 cat confcache >$cache_file
11679 else
11680 echo "not updating unwritable cache $cache_file"
11683 rm -f confcache
11685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11686 # Let make expand exec_prefix.
11687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11689 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11690 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11691 # trailing colons and then remove the whole line if VPATH becomes empty
11692 # (actually we leave an empty line to preserve line numbers).
11693 if test "x$srcdir" = x.; then
11694 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11695 s/:*\$(srcdir):*/:/;
11696 s/:*\${srcdir}:*/:/;
11697 s/:*@srcdir@:*/:/;
11698 s/^\([^=]*=[ ]*\):*/\1/;
11699 s/:*$//;
11700 s/^[^=]*=[ ]*$//;
11704 DEFS=-DHAVE_CONFIG_H
11706 ac_libobjs=
11707 ac_ltlibobjs=
11708 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11709 # 1. Remove the extension, and $U if already installed.
11710 ac_i=`echo "$ac_i" |
11711 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11712 # 2. Add them.
11713 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11714 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11715 done
11716 LIBOBJS=$ac_libobjs
11718 LTLIBOBJS=$ac_ltlibobjs
11722 : ${CONFIG_STATUS=./config.status}
11723 ac_clean_files_save=$ac_clean_files
11724 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11725 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11726 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11727 cat >$CONFIG_STATUS <<_ACEOF
11728 #! $SHELL
11729 # Generated by $as_me.
11730 # Run this file to recreate the current configuration.
11731 # Compiler output produced by configure, useful for debugging
11732 # configure, is in config.log if it exists.
11734 debug=false
11735 ac_cs_recheck=false
11736 ac_cs_silent=false
11737 SHELL=\${CONFIG_SHELL-$SHELL}
11738 _ACEOF
11740 cat >>$CONFIG_STATUS <<\_ACEOF
11741 ## --------------------- ##
11742 ## M4sh Initialization. ##
11743 ## --------------------- ##
11745 # Be Bourne compatible
11746 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11747 emulate sh
11748 NULLCMD=:
11749 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11750 # is contrary to our usage. Disable this feature.
11751 alias -g '${1+"$@"}'='"$@"'
11752 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11753 set -o posix
11756 # Support unset when possible.
11757 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11758 as_unset=unset
11759 else
11760 as_unset=false
11764 # Work around bugs in pre-3.0 UWIN ksh.
11765 $as_unset ENV MAIL MAILPATH
11766 PS1='$ '
11767 PS2='> '
11768 PS4='+ '
11770 # NLS nuisances.
11771 for as_var in \
11772 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11773 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11774 LC_TELEPHONE LC_TIME
11776 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11777 eval $as_var=C; export $as_var
11778 else
11779 $as_unset $as_var
11781 done
11783 # Required to use basename.
11784 if expr a : '\(a\)' >/dev/null 2>&1; then
11785 as_expr=expr
11786 else
11787 as_expr=false
11790 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11791 as_basename=basename
11792 else
11793 as_basename=false
11797 # Name of the executable.
11798 as_me=`$as_basename "$0" ||
11799 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11800 X"$0" : 'X\(//\)$' \| \
11801 X"$0" : 'X\(/\)$' \| \
11802 . : '\(.\)' 2>/dev/null ||
11803 echo X/"$0" |
11804 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11805 /^X\/\(\/\/\)$/{ s//\1/; q; }
11806 /^X\/\(\/\).*/{ s//\1/; q; }
11807 s/.*/./; q'`
11810 # PATH needs CR, and LINENO needs CR and PATH.
11811 # Avoid depending upon Character Ranges.
11812 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11813 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11814 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11815 as_cr_digits='0123456789'
11816 as_cr_alnum=$as_cr_Letters$as_cr_digits
11818 # The user is always right.
11819 if test "${PATH_SEPARATOR+set}" != set; then
11820 echo "#! /bin/sh" >conf$$.sh
11821 echo "exit 0" >>conf$$.sh
11822 chmod +x conf$$.sh
11823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11824 PATH_SEPARATOR=';'
11825 else
11826 PATH_SEPARATOR=:
11828 rm -f conf$$.sh
11832 as_lineno_1=$LINENO
11833 as_lineno_2=$LINENO
11834 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11835 test "x$as_lineno_1" != "x$as_lineno_2" &&
11836 test "x$as_lineno_3" = "x$as_lineno_2" || {
11837 # Find who we are. Look in the path if we contain no path at all
11838 # relative or not.
11839 case $0 in
11840 *[\\/]* ) as_myself=$0 ;;
11841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
11846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11847 done
11850 esac
11851 # We did not find ourselves, most probably we were run as `sh COMMAND'
11852 # in which case we are not to be found in the path.
11853 if test "x$as_myself" = x; then
11854 as_myself=$0
11856 if test ! -f "$as_myself"; then
11857 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11858 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11859 { (exit 1); exit 1; }; }
11861 case $CONFIG_SHELL in
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
11868 for as_base in sh bash ksh sh5; do
11869 case $as_dir in
11871 if ("$as_dir/$as_base" -c '
11872 as_lineno_1=$LINENO
11873 as_lineno_2=$LINENO
11874 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11875 test "x$as_lineno_1" != "x$as_lineno_2" &&
11876 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11877 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11878 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11879 CONFIG_SHELL=$as_dir/$as_base
11880 export CONFIG_SHELL
11881 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11882 fi;;
11883 esac
11884 done
11885 done
11887 esac
11889 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11890 # uniformly replaced by the line number. The first 'sed' inserts a
11891 # line-number line before each line; the second 'sed' does the real
11892 # work. The second script uses 'N' to pair each line-number line
11893 # with the numbered line, and appends trailing '-' during
11894 # substitution so that $LINENO is not a special case at line end.
11895 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11896 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11897 sed '=' <$as_myself |
11898 sed '
11900 s,$,-,
11901 : loop
11902 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11903 t loop
11904 s,-$,,
11905 s,^['$as_cr_digits']*\n,,
11906 ' >$as_me.lineno &&
11907 chmod +x $as_me.lineno ||
11908 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11909 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11910 { (exit 1); exit 1; }; }
11912 # Don't try to exec as it changes $[0], causing all sort of problems
11913 # (the dirname of $[0] is not the place where we might find the
11914 # original and so on. Autoconf is especially sensible to this).
11915 . ./$as_me.lineno
11916 # Exit status is that of the last command.
11917 exit
11921 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11922 *c*,-n*) ECHO_N= ECHO_C='
11923 ' ECHO_T=' ' ;;
11924 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11925 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11926 esac
11928 if expr a : '\(a\)' >/dev/null 2>&1; then
11929 as_expr=expr
11930 else
11931 as_expr=false
11934 rm -f conf$$ conf$$.exe conf$$.file
11935 echo >conf$$.file
11936 if ln -s conf$$.file conf$$ 2>/dev/null; then
11937 # We could just check for DJGPP; but this test a) works b) is more generic
11938 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11939 if test -f conf$$.exe; then
11940 # Don't use ln at all; we don't have any links
11941 as_ln_s='cp -p'
11942 else
11943 as_ln_s='ln -s'
11945 elif ln conf$$.file conf$$ 2>/dev/null; then
11946 as_ln_s=ln
11947 else
11948 as_ln_s='cp -p'
11950 rm -f conf$$ conf$$.exe conf$$.file
11952 if mkdir -p . 2>/dev/null; then
11953 as_mkdir_p=:
11954 else
11955 as_mkdir_p=false
11958 as_executable_p="test -f"
11960 # Sed expression to map a string onto a valid CPP name.
11961 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11963 # Sed expression to map a string onto a valid variable name.
11964 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11967 # IFS
11968 # We need space, tab and new line, in precisely that order.
11969 as_nl='
11971 IFS=" $as_nl"
11973 # CDPATH.
11974 $as_unset CDPATH
11976 exec 6>&1
11978 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11979 # report actual input values of CONFIG_FILES etc. instead of their
11980 # values after options handling. Logging --version etc. is OK.
11981 exec 5>>config.log
11983 echo
11984 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11985 ## Running $as_me. ##
11986 _ASBOX
11987 } >&5
11988 cat >&5 <<_CSEOF
11990 This file was extended by $as_me, which was
11991 generated by GNU Autoconf 2.57. Invocation command line was
11993 CONFIG_FILES = $CONFIG_FILES
11994 CONFIG_HEADERS = $CONFIG_HEADERS
11995 CONFIG_LINKS = $CONFIG_LINKS
11996 CONFIG_COMMANDS = $CONFIG_COMMANDS
11997 $ $0 $@
11999 _CSEOF
12000 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12001 echo >&5
12002 _ACEOF
12004 # Files that config.status was made for.
12005 if test -n "$ac_config_files"; then
12006 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12009 if test -n "$ac_config_headers"; then
12010 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12013 if test -n "$ac_config_links"; then
12014 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12017 if test -n "$ac_config_commands"; then
12018 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12021 cat >>$CONFIG_STATUS <<\_ACEOF
12023 ac_cs_usage="\
12024 \`$as_me' instantiates files from templates according to the
12025 current configuration.
12027 Usage: $0 [OPTIONS] [FILE]...
12029 -h, --help print this help, then exit
12030 -V, --version print version number, then exit
12031 -q, --quiet do not print progress messages
12032 -d, --debug don't remove temporary files
12033 --recheck update $as_me by reconfiguring in the same conditions
12034 --file=FILE[:TEMPLATE]
12035 instantiate the configuration file FILE
12036 --header=FILE[:TEMPLATE]
12037 instantiate the configuration header FILE
12039 Configuration files:
12040 $config_files
12042 Configuration headers:
12043 $config_headers
12045 Configuration commands:
12046 $config_commands
12048 Report bugs to <bug-autoconf@gnu.org>."
12049 _ACEOF
12051 cat >>$CONFIG_STATUS <<_ACEOF
12052 ac_cs_version="\\
12053 config.status
12054 configured by $0, generated by GNU Autoconf 2.57,
12055 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12057 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12058 Free Software Foundation, Inc.
12059 This config.status script is free software; the Free Software Foundation
12060 gives unlimited permission to copy, distribute and modify it."
12061 srcdir=$srcdir
12062 _ACEOF
12064 cat >>$CONFIG_STATUS <<\_ACEOF
12065 # If no file are specified by the user, then we need to provide default
12066 # value. By we need to know if files were specified by the user.
12067 ac_need_defaults=:
12068 while test $# != 0
12070 case $1 in
12071 --*=*)
12072 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12073 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12074 ac_shift=:
12077 ac_option=$1
12078 ac_optarg=$2
12079 ac_shift=shift
12081 *) # This is not an option, so the user has probably given explicit
12082 # arguments.
12083 ac_option=$1
12084 ac_need_defaults=false;;
12085 esac
12087 case $ac_option in
12088 # Handling of the options.
12089 _ACEOF
12090 cat >>$CONFIG_STATUS <<\_ACEOF
12091 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12092 ac_cs_recheck=: ;;
12093 --version | --vers* | -V )
12094 echo "$ac_cs_version"; exit 0 ;;
12095 --he | --h)
12096 # Conflict between --help and --header
12097 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12098 Try \`$0 --help' for more information." >&5
12099 echo "$as_me: error: ambiguous option: $1
12100 Try \`$0 --help' for more information." >&2;}
12101 { (exit 1); exit 1; }; };;
12102 --help | --hel | -h )
12103 echo "$ac_cs_usage"; exit 0 ;;
12104 --debug | --d* | -d )
12105 debug=: ;;
12106 --file | --fil | --fi | --f )
12107 $ac_shift
12108 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12109 ac_need_defaults=false;;
12110 --header | --heade | --head | --hea )
12111 $ac_shift
12112 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12113 ac_need_defaults=false;;
12114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12115 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12116 ac_cs_silent=: ;;
12118 # This is an error.
12119 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12120 Try \`$0 --help' for more information." >&5
12121 echo "$as_me: error: unrecognized option: $1
12122 Try \`$0 --help' for more information." >&2;}
12123 { (exit 1); exit 1; }; } ;;
12125 *) ac_config_targets="$ac_config_targets $1" ;;
12127 esac
12128 shift
12129 done
12131 ac_configure_extra_args=
12133 if $ac_cs_silent; then
12134 exec 6>/dev/null
12135 ac_configure_extra_args="$ac_configure_extra_args --silent"
12138 _ACEOF
12139 cat >>$CONFIG_STATUS <<_ACEOF
12140 if \$ac_cs_recheck; then
12141 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12142 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12145 _ACEOF
12147 cat >>$CONFIG_STATUS <<_ACEOF
12149 # INIT-COMMANDS section.
12152 subdirs='$subdirs'
12153 symbolic_link='$symbolic_link'
12156 _ACEOF
12160 cat >>$CONFIG_STATUS <<\_ACEOF
12161 for ac_config_target in $ac_config_targets
12163 case "$ac_config_target" in
12164 # Handling of arguments.
12165 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12166 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12167 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12168 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12169 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12170 { (exit 1); exit 1; }; };;
12171 esac
12172 done
12174 # If the user did not use the arguments to specify the items to instantiate,
12175 # then the envvar interface is used. Set only those that are not.
12176 # We use the long form for the default assignment because of an extremely
12177 # bizarre bug on SunOS 4.1.3.
12178 if $ac_need_defaults; then
12179 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12180 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12181 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12184 # Have a temporary directory for convenience. Make it in the build tree
12185 # simply because there is no reason to put it here, and in addition,
12186 # creating and moving files from /tmp can sometimes cause problems.
12187 # Create a temporary directory, and hook for its removal unless debugging.
12188 $debug ||
12190 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12191 trap '{ (exit 1); exit 1; }' 1 2 13 15
12194 # Create a (secure) tmp directory for tmp files.
12197 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12198 test -n "$tmp" && test -d "$tmp"
12199 } ||
12201 tmp=./confstat$$-$RANDOM
12202 (umask 077 && mkdir $tmp)
12203 } ||
12205 echo "$me: cannot create a temporary directory in ." >&2
12206 { (exit 1); exit 1; }
12209 _ACEOF
12211 cat >>$CONFIG_STATUS <<_ACEOF
12214 # CONFIG_FILES section.
12217 # No need to generate the scripts if there are no CONFIG_FILES.
12218 # This happens for instance when ./config.status config.h
12219 if test -n "\$CONFIG_FILES"; then
12220 # Protect against being on the right side of a sed subst in config.status.
12221 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12222 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12223 s,@SHELL@,$SHELL,;t t
12224 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12225 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12226 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12227 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12228 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12229 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12230 s,@exec_prefix@,$exec_prefix,;t t
12231 s,@prefix@,$prefix,;t t
12232 s,@program_transform_name@,$program_transform_name,;t t
12233 s,@bindir@,$bindir,;t t
12234 s,@sbindir@,$sbindir,;t t
12235 s,@libexecdir@,$libexecdir,;t t
12236 s,@datadir@,$datadir,;t t
12237 s,@sysconfdir@,$sysconfdir,;t t
12238 s,@sharedstatedir@,$sharedstatedir,;t t
12239 s,@localstatedir@,$localstatedir,;t t
12240 s,@libdir@,$libdir,;t t
12241 s,@includedir@,$includedir,;t t
12242 s,@oldincludedir@,$oldincludedir,;t t
12243 s,@infodir@,$infodir,;t t
12244 s,@mandir@,$mandir,;t t
12245 s,@build_alias@,$build_alias,;t t
12246 s,@host_alias@,$host_alias,;t t
12247 s,@target_alias@,$target_alias,;t t
12248 s,@DEFS@,$DEFS,;t t
12249 s,@ECHO_C@,$ECHO_C,;t t
12250 s,@ECHO_N@,$ECHO_N,;t t
12251 s,@ECHO_T@,$ECHO_T,;t t
12252 s,@LIBS@,$LIBS,;t t
12253 s,@build@,$build,;t t
12254 s,@build_cpu@,$build_cpu,;t t
12255 s,@build_vendor@,$build_vendor,;t t
12256 s,@build_os@,$build_os,;t t
12257 s,@host@,$host,;t t
12258 s,@host_cpu@,$host_cpu,;t t
12259 s,@host_vendor@,$host_vendor,;t t
12260 s,@host_os@,$host_os,;t t
12261 s,@target@,$target,;t t
12262 s,@target_cpu@,$target_cpu,;t t
12263 s,@target_vendor@,$target_vendor,;t t
12264 s,@target_os@,$target_os,;t t
12265 s,@build_subdir@,$build_subdir,;t t
12266 s,@host_subdir@,$host_subdir,;t t
12267 s,@target_subdir@,$target_subdir,;t t
12268 s,@CC@,$CC,;t t
12269 s,@CFLAGS@,$CFLAGS,;t t
12270 s,@LDFLAGS@,$LDFLAGS,;t t
12271 s,@CPPFLAGS@,$CPPFLAGS,;t t
12272 s,@ac_ct_CC@,$ac_ct_CC,;t t
12273 s,@EXEEXT@,$EXEEXT,;t t
12274 s,@OBJEXT@,$OBJEXT,;t t
12275 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12276 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12277 s,@CPP@,$CPP,;t t
12278 s,@GNATBIND@,$GNATBIND,;t t
12279 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12280 s,@strict1_warn@,$strict1_warn,;t t
12281 s,@warn_cflags@,$warn_cflags,;t t
12282 s,@WERROR@,$WERROR,;t t
12283 s,@nocommon_flag@,$nocommon_flag,;t t
12284 s,@EGREP@,$EGREP,;t t
12285 s,@valgrind_path@,$valgrind_path,;t t
12286 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12287 s,@valgrind_command@,$valgrind_command,;t t
12288 s,@coverage_flags@,$coverage_flags,;t t
12289 s,@enable_multilib@,$enable_multilib,;t t
12290 s,@enable_shared@,$enable_shared,;t t
12291 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12292 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12293 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12294 s,@onestep@,$onestep,;t t
12295 s,@SET_MAKE@,$SET_MAKE,;t t
12296 s,@AWK@,$AWK,;t t
12297 s,@LN@,$LN,;t t
12298 s,@LN_S@,$LN_S,;t t
12299 s,@RANLIB@,$RANLIB,;t t
12300 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12301 s,@INSTALL@,$INSTALL,;t t
12302 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12303 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12304 s,@make_compare_target@,$make_compare_target,;t t
12305 s,@have_mktemp_command@,$have_mktemp_command,;t t
12306 s,@MAKEINFO@,$MAKEINFO,;t t
12307 s,@BUILD_INFO@,$BUILD_INFO,;t t
12308 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12309 s,@FLEX@,$FLEX,;t t
12310 s,@BISON@,$BISON,;t t
12311 s,@stage1_cflags@,$stage1_cflags,;t t
12312 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12313 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12314 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12315 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12316 s,@LIBICONV@,$LIBICONV,;t t
12317 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12318 s,@manext@,$manext,;t t
12319 s,@objext@,$objext,;t t
12320 s,@extra_modes_file@,$extra_modes_file,;t t
12321 s,@FORBUILD@,$FORBUILD,;t t
12322 s,@PACKAGE@,$PACKAGE,;t t
12323 s,@VERSION@,$VERSION,;t t
12324 s,@USE_NLS@,$USE_NLS,;t t
12325 s,@LIBINTL@,$LIBINTL,;t t
12326 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12327 s,@INCINTL@,$INCINTL,;t t
12328 s,@XGETTEXT@,$XGETTEXT,;t t
12329 s,@GMSGFMT@,$GMSGFMT,;t t
12330 s,@POSUB@,$POSUB,;t t
12331 s,@CATALOGS@,$CATALOGS,;t t
12332 s,@CROSS@,$CROSS,;t t
12333 s,@ALL@,$ALL,;t t
12334 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12335 s,@inhibit_libc@,$inhibit_libc,;t t
12336 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12337 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12338 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12339 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12340 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12341 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12342 s,@libgcc_visibility@,$libgcc_visibility,;t t
12343 s,@gthread_flags@,$gthread_flags,;t t
12344 s,@GGC@,$GGC,;t t
12345 s,@zlibdir@,$zlibdir,;t t
12346 s,@zlibinc@,$zlibinc,;t t
12347 s,@MAINT@,$MAINT,;t t
12348 s,@gcc_tooldir@,$gcc_tooldir,;t t
12349 s,@dollar@,$dollar,;t t
12350 s,@slibdir@,$slibdir,;t t
12351 s,@objdir@,$objdir,;t t
12352 s,@subdirs@,$subdirs,;t t
12353 s,@srcdir@,$srcdir,;t t
12354 s,@docobjdir@,$docobjdir,;t t
12355 s,@parsedir@,$parsedir,;t t
12356 s,@all_boot_languages@,$all_boot_languages,;t t
12357 s,@all_compilers@,$all_compilers,;t t
12358 s,@all_gtfiles@,$all_gtfiles,;t t
12359 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12360 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12361 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12362 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12363 s,@all_languages@,$all_languages,;t t
12364 s,@all_stagestuff@,$all_stagestuff,;t t
12365 s,@build_exeext@,$build_exeext,;t t
12366 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12367 s,@build_xm_file_list@,$build_xm_file_list,;t t
12368 s,@build_xm_include_list@,$build_xm_include_list,;t t
12369 s,@build_xm_defines@,$build_xm_defines,;t t
12370 s,@check_languages@,$check_languages,;t t
12371 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12372 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12373 s,@cpp_install_dir@,$cpp_install_dir,;t t
12374 s,@xmake_file@,$xmake_file,;t t
12375 s,@tmake_file@,$tmake_file,;t t
12376 s,@extra_headers_list@,$extra_headers_list,;t t
12377 s,@extra_objs@,$extra_objs,;t t
12378 s,@extra_parts@,$extra_parts,;t t
12379 s,@extra_passes@,$extra_passes,;t t
12380 s,@extra_programs@,$extra_programs,;t t
12381 s,@float_h_file@,$float_h_file,;t t
12382 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12383 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12384 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12385 s,@gcc_version@,$gcc_version,;t t
12386 s,@gcc_version_full@,$gcc_version_full,;t t
12387 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12388 s,@host_exeext@,$host_exeext,;t t
12389 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12390 s,@host_xm_file_list@,$host_xm_file_list,;t t
12391 s,@host_xm_include_list@,$host_xm_include_list,;t t
12392 s,@host_xm_defines@,$host_xm_defines,;t t
12393 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12394 s,@install@,$install,;t t
12395 s,@lang_opt_files@,$lang_opt_files,;t t
12396 s,@lang_specs_files@,$lang_specs_files,;t t
12397 s,@lang_tree_files@,$lang_tree_files,;t t
12398 s,@local_prefix@,$local_prefix,;t t
12399 s,@md_file@,$md_file,;t t
12400 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12401 s,@out_file@,$out_file,;t t
12402 s,@out_object_file@,$out_object_file,;t t
12403 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12404 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12405 s,@symbolic_link@,$symbolic_link,;t t
12406 s,@thread_file@,$thread_file,;t t
12407 s,@tm_file_list@,$tm_file_list,;t t
12408 s,@tm_include_list@,$tm_include_list,;t t
12409 s,@tm_defines@,$tm_defines,;t t
12410 s,@tm_p_file_list@,$tm_p_file_list,;t t
12411 s,@tm_p_include_list@,$tm_p_include_list,;t t
12412 s,@xm_file_list@,$xm_file_list,;t t
12413 s,@xm_include_list@,$xm_include_list,;t t
12414 s,@xm_defines@,$xm_defines,;t t
12415 s,@target_noncanonical@,$target_noncanonical,;t t
12416 s,@c_target_objs@,$c_target_objs,;t t
12417 s,@cxx_target_objs@,$cxx_target_objs,;t t
12418 s,@target_cpu_default@,$target_cpu_default,;t t
12419 s,@LIBOBJS@,$LIBOBJS,;t t
12420 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12421 /@language_hooks@/r $language_hooks
12422 s,@language_hooks@,,;t t
12423 CEOF
12425 _ACEOF
12427 cat >>$CONFIG_STATUS <<\_ACEOF
12428 # Split the substitutions into bite-sized pieces for seds with
12429 # small command number limits, like on Digital OSF/1 and HP-UX.
12430 ac_max_sed_lines=48
12431 ac_sed_frag=1 # Number of current file.
12432 ac_beg=1 # First line for current file.
12433 ac_end=$ac_max_sed_lines # Line after last line for current file.
12434 ac_more_lines=:
12435 ac_sed_cmds=
12436 while $ac_more_lines; do
12437 if test $ac_beg -gt 1; then
12438 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12439 else
12440 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12442 if test ! -s $tmp/subs.frag; then
12443 ac_more_lines=false
12444 else
12445 # The purpose of the label and of the branching condition is to
12446 # speed up the sed processing (if there are no `@' at all, there
12447 # is no need to browse any of the substitutions).
12448 # These are the two extra sed commands mentioned above.
12449 (echo ':t
12450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12451 if test -z "$ac_sed_cmds"; then
12452 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12453 else
12454 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12456 ac_sed_frag=`expr $ac_sed_frag + 1`
12457 ac_beg=$ac_end
12458 ac_end=`expr $ac_end + $ac_max_sed_lines`
12460 done
12461 if test -z "$ac_sed_cmds"; then
12462 ac_sed_cmds=cat
12464 fi # test -n "$CONFIG_FILES"
12466 _ACEOF
12467 cat >>$CONFIG_STATUS <<\_ACEOF
12468 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12469 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12470 case $ac_file in
12471 - | *:- | *:-:* ) # input from stdin
12472 cat >$tmp/stdin
12473 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12474 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12475 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12476 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12477 * ) ac_file_in=$ac_file.in ;;
12478 esac
12480 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12481 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12483 X"$ac_file" : 'X\(//\)[^/]' \| \
12484 X"$ac_file" : 'X\(//\)$' \| \
12485 X"$ac_file" : 'X\(/\)' \| \
12486 . : '\(.\)' 2>/dev/null ||
12487 echo X"$ac_file" |
12488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12490 /^X\(\/\/\)$/{ s//\1/; q; }
12491 /^X\(\/\).*/{ s//\1/; q; }
12492 s/.*/./; q'`
12493 { if $as_mkdir_p; then
12494 mkdir -p "$ac_dir"
12495 else
12496 as_dir="$ac_dir"
12497 as_dirs=
12498 while test ! -d "$as_dir"; do
12499 as_dirs="$as_dir $as_dirs"
12500 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12502 X"$as_dir" : 'X\(//\)[^/]' \| \
12503 X"$as_dir" : 'X\(//\)$' \| \
12504 X"$as_dir" : 'X\(/\)' \| \
12505 . : '\(.\)' 2>/dev/null ||
12506 echo X"$as_dir" |
12507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12509 /^X\(\/\/\)$/{ s//\1/; q; }
12510 /^X\(\/\).*/{ s//\1/; q; }
12511 s/.*/./; q'`
12512 done
12513 test ! -n "$as_dirs" || mkdir $as_dirs
12514 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12515 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12516 { (exit 1); exit 1; }; }; }
12518 ac_builddir=.
12520 if test "$ac_dir" != .; then
12521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12522 # A "../" for each directory in $ac_dir_suffix.
12523 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12524 else
12525 ac_dir_suffix= ac_top_builddir=
12528 case $srcdir in
12529 .) # No --srcdir option. We are building in place.
12530 ac_srcdir=.
12531 if test -z "$ac_top_builddir"; then
12532 ac_top_srcdir=.
12533 else
12534 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12535 fi ;;
12536 [\\/]* | ?:[\\/]* ) # Absolute path.
12537 ac_srcdir=$srcdir$ac_dir_suffix;
12538 ac_top_srcdir=$srcdir ;;
12539 *) # Relative path.
12540 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12541 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12542 esac
12543 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12544 # absolute.
12545 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12546 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12547 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12548 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12552 if test x"$ac_file" != x-; then
12553 { echo "$as_me:$LINENO: creating $ac_file" >&5
12554 echo "$as_me: creating $ac_file" >&6;}
12555 rm -f "$ac_file"
12557 # Let's still pretend it is `configure' which instantiates (i.e., don't
12558 # use $as_me), people would be surprised to read:
12559 # /* config.h. Generated by config.status. */
12560 if test x"$ac_file" = x-; then
12561 configure_input=
12562 else
12563 configure_input="$ac_file. "
12565 configure_input=$configure_input"Generated from `echo $ac_file_in |
12566 sed 's,.*/,,'` by configure."
12568 # First look for the input files in the build tree, otherwise in the
12569 # src tree.
12570 ac_file_inputs=`IFS=:
12571 for f in $ac_file_in; do
12572 case $f in
12573 -) echo $tmp/stdin ;;
12574 [\\/$]*)
12575 # Absolute (can't be DOS-style, as IFS=:)
12576 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12577 echo "$as_me: error: cannot find input file: $f" >&2;}
12578 { (exit 1); exit 1; }; }
12579 echo $f;;
12580 *) # Relative
12581 if test -f "$f"; then
12582 # Build tree
12583 echo $f
12584 elif test -f "$srcdir/$f"; then
12585 # Source tree
12586 echo $srcdir/$f
12587 else
12588 # /dev/null tree
12589 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12590 echo "$as_me: error: cannot find input file: $f" >&2;}
12591 { (exit 1); exit 1; }; }
12592 fi;;
12593 esac
12594 done` || { (exit 1); exit 1; }
12595 _ACEOF
12596 cat >>$CONFIG_STATUS <<_ACEOF
12597 sed "$ac_vpsub
12598 $extrasub
12599 _ACEOF
12600 cat >>$CONFIG_STATUS <<\_ACEOF
12602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12603 s,@configure_input@,$configure_input,;t t
12604 s,@srcdir@,$ac_srcdir,;t t
12605 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12606 s,@top_srcdir@,$ac_top_srcdir,;t t
12607 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12608 s,@builddir@,$ac_builddir,;t t
12609 s,@abs_builddir@,$ac_abs_builddir,;t t
12610 s,@top_builddir@,$ac_top_builddir,;t t
12611 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12612 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12613 rm -f $tmp/stdin
12614 if test x"$ac_file" != x-; then
12615 mv $tmp/out $ac_file
12616 else
12617 cat $tmp/out
12618 rm -f $tmp/out
12621 done
12622 _ACEOF
12623 cat >>$CONFIG_STATUS <<\_ACEOF
12626 # CONFIG_HEADER section.
12629 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12630 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12632 # ac_d sets the value in "#define NAME VALUE" lines.
12633 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12634 ac_dB='[ ].*$,\1#\2'
12635 ac_dC=' '
12636 ac_dD=',;t'
12637 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12638 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12639 ac_uB='$,\1#\2define\3'
12640 ac_uC=' '
12641 ac_uD=',;t'
12643 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12644 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12645 case $ac_file in
12646 - | *:- | *:-:* ) # input from stdin
12647 cat >$tmp/stdin
12648 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12649 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12650 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12651 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12652 * ) ac_file_in=$ac_file.in ;;
12653 esac
12655 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12656 echo "$as_me: creating $ac_file" >&6;}
12658 # First look for the input files in the build tree, otherwise in the
12659 # src tree.
12660 ac_file_inputs=`IFS=:
12661 for f in $ac_file_in; do
12662 case $f in
12663 -) echo $tmp/stdin ;;
12664 [\\/$]*)
12665 # Absolute (can't be DOS-style, as IFS=:)
12666 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12667 echo "$as_me: error: cannot find input file: $f" >&2;}
12668 { (exit 1); exit 1; }; }
12669 echo $f;;
12670 *) # Relative
12671 if test -f "$f"; then
12672 # Build tree
12673 echo $f
12674 elif test -f "$srcdir/$f"; then
12675 # Source tree
12676 echo $srcdir/$f
12677 else
12678 # /dev/null tree
12679 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12680 echo "$as_me: error: cannot find input file: $f" >&2;}
12681 { (exit 1); exit 1; }; }
12682 fi;;
12683 esac
12684 done` || { (exit 1); exit 1; }
12685 # Remove the trailing spaces.
12686 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12688 _ACEOF
12690 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12691 # `conftest.undefs', that substitutes the proper values into
12692 # config.h.in to produce config.h. The first handles `#define'
12693 # templates, and the second `#undef' templates.
12694 # And first: Protect against being on the right side of a sed subst in
12695 # config.status. Protect against being in an unquoted here document
12696 # in config.status.
12697 rm -f conftest.defines conftest.undefs
12698 # Using a here document instead of a string reduces the quoting nightmare.
12699 # Putting comments in sed scripts is not portable.
12701 # `end' is used to avoid that the second main sed command (meant for
12702 # 0-ary CPP macros) applies to n-ary macro definitions.
12703 # See the Autoconf documentation for `clear'.
12704 cat >confdef2sed.sed <<\_ACEOF
12705 s/[\\&,]/\\&/g
12706 s,[\\$`],\\&,g
12707 t clear
12708 : clear
12709 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12710 t end
12711 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12712 : end
12713 _ACEOF
12714 # If some macros were called several times there might be several times
12715 # the same #defines, which is useless. Nevertheless, we may not want to
12716 # sort them, since we want the *last* AC-DEFINE to be honored.
12717 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12718 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12719 rm -f confdef2sed.sed
12721 # This sed command replaces #undef with comments. This is necessary, for
12722 # example, in the case of _POSIX_SOURCE, which is predefined and required
12723 # on some systems where configure will not decide to define it.
12724 cat >>conftest.undefs <<\_ACEOF
12725 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12726 _ACEOF
12728 # Break up conftest.defines because some shells have a limit on the size
12729 # of here documents, and old seds have small limits too (100 cmds).
12730 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12731 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12732 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12733 echo ' :' >>$CONFIG_STATUS
12734 rm -f conftest.tail
12735 while grep . conftest.defines >/dev/null
12737 # Write a limited-size here document to $tmp/defines.sed.
12738 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12739 # Speed up: don't consider the non `#define' lines.
12740 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12741 # Work around the forget-to-reset-the-flag bug.
12742 echo 't clr' >>$CONFIG_STATUS
12743 echo ': clr' >>$CONFIG_STATUS
12744 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12745 echo 'CEOF
12746 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12747 rm -f $tmp/in
12748 mv $tmp/out $tmp/in
12749 ' >>$CONFIG_STATUS
12750 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12751 rm -f conftest.defines
12752 mv conftest.tail conftest.defines
12753 done
12754 rm -f conftest.defines
12755 echo ' fi # grep' >>$CONFIG_STATUS
12756 echo >>$CONFIG_STATUS
12758 # Break up conftest.undefs because some shells have a limit on the size
12759 # of here documents, and old seds have small limits too (100 cmds).
12760 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12761 rm -f conftest.tail
12762 while grep . conftest.undefs >/dev/null
12764 # Write a limited-size here document to $tmp/undefs.sed.
12765 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12766 # Speed up: don't consider the non `#undef'
12767 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12768 # Work around the forget-to-reset-the-flag bug.
12769 echo 't clr' >>$CONFIG_STATUS
12770 echo ': clr' >>$CONFIG_STATUS
12771 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12772 echo 'CEOF
12773 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12774 rm -f $tmp/in
12775 mv $tmp/out $tmp/in
12776 ' >>$CONFIG_STATUS
12777 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12778 rm -f conftest.undefs
12779 mv conftest.tail conftest.undefs
12780 done
12781 rm -f conftest.undefs
12783 cat >>$CONFIG_STATUS <<\_ACEOF
12784 # Let's still pretend it is `configure' which instantiates (i.e., don't
12785 # use $as_me), people would be surprised to read:
12786 # /* config.h. Generated by config.status. */
12787 if test x"$ac_file" = x-; then
12788 echo "/* Generated by configure. */" >$tmp/config.h
12789 else
12790 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12792 cat $tmp/in >>$tmp/config.h
12793 rm -f $tmp/in
12794 if test x"$ac_file" != x-; then
12795 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12796 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12797 echo "$as_me: $ac_file is unchanged" >&6;}
12798 else
12799 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12801 X"$ac_file" : 'X\(//\)[^/]' \| \
12802 X"$ac_file" : 'X\(//\)$' \| \
12803 X"$ac_file" : 'X\(/\)' \| \
12804 . : '\(.\)' 2>/dev/null ||
12805 echo X"$ac_file" |
12806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12808 /^X\(\/\/\)$/{ s//\1/; q; }
12809 /^X\(\/\).*/{ s//\1/; q; }
12810 s/.*/./; q'`
12811 { if $as_mkdir_p; then
12812 mkdir -p "$ac_dir"
12813 else
12814 as_dir="$ac_dir"
12815 as_dirs=
12816 while test ! -d "$as_dir"; do
12817 as_dirs="$as_dir $as_dirs"
12818 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12820 X"$as_dir" : 'X\(//\)[^/]' \| \
12821 X"$as_dir" : 'X\(//\)$' \| \
12822 X"$as_dir" : 'X\(/\)' \| \
12823 . : '\(.\)' 2>/dev/null ||
12824 echo X"$as_dir" |
12825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12827 /^X\(\/\/\)$/{ s//\1/; q; }
12828 /^X\(\/\).*/{ s//\1/; q; }
12829 s/.*/./; q'`
12830 done
12831 test ! -n "$as_dirs" || mkdir $as_dirs
12832 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12833 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12834 { (exit 1); exit 1; }; }; }
12836 rm -f $ac_file
12837 mv $tmp/config.h $ac_file
12839 else
12840 cat $tmp/config.h
12841 rm -f $tmp/config.h
12843 done
12844 _ACEOF
12845 cat >>$CONFIG_STATUS <<\_ACEOF
12848 # CONFIG_COMMANDS section.
12850 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12851 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12852 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12853 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12854 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12855 X"$ac_dest" : 'X\(//\)[^/]' \| \
12856 X"$ac_dest" : 'X\(//\)$' \| \
12857 X"$ac_dest" : 'X\(/\)' \| \
12858 . : '\(.\)' 2>/dev/null ||
12859 echo X"$ac_dest" |
12860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12862 /^X\(\/\/\)$/{ s//\1/; q; }
12863 /^X\(\/\).*/{ s//\1/; q; }
12864 s/.*/./; q'`
12865 ac_builddir=.
12867 if test "$ac_dir" != .; then
12868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12869 # A "../" for each directory in $ac_dir_suffix.
12870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12871 else
12872 ac_dir_suffix= ac_top_builddir=
12875 case $srcdir in
12876 .) # No --srcdir option. We are building in place.
12877 ac_srcdir=.
12878 if test -z "$ac_top_builddir"; then
12879 ac_top_srcdir=.
12880 else
12881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12882 fi ;;
12883 [\\/]* | ?:[\\/]* ) # Absolute path.
12884 ac_srcdir=$srcdir$ac_dir_suffix;
12885 ac_top_srcdir=$srcdir ;;
12886 *) # Relative path.
12887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12889 esac
12890 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12891 # absolute.
12892 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12893 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12894 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12895 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12898 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12899 echo "$as_me: executing $ac_dest commands" >&6;}
12900 case $ac_dest in
12901 default )
12902 case ${CONFIG_HEADERS} in
12903 *auto-host.h:config.in*)
12904 echo > cstamp-h ;;
12905 esac
12906 # Make sure all the subdirs exist.
12907 for d in $subdirs
12909 test -d $d || mkdir $d
12910 done
12911 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
12912 # bootstrapping and the installation procedure can still use
12913 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
12914 # FLAGS_TO_PASS has been modified to solve the problem there.
12915 # This is virtually a duplicate of what happens in configure.lang; we do
12916 # an extra check to make sure this only happens if ln -s can be used.
12917 if test "$symbolic_link" = "ln -s"; then
12918 for d in ${subdirs} fixinc ; do
12919 STARTDIR=`${PWDCMD-pwd}`
12920 cd $d
12921 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
12923 rm -f $t
12924 $symbolic_link ../$t $t 2>/dev/null
12925 done
12926 cd $STARTDIR
12927 done
12928 else true ; fi
12930 esac
12931 done
12932 _ACEOF
12934 cat >>$CONFIG_STATUS <<\_ACEOF
12936 { (exit 0); exit 0; }
12937 _ACEOF
12938 chmod +x $CONFIG_STATUS
12939 ac_clean_files=$ac_clean_files_save
12942 # configure is writing to config.log, and then calls config.status.
12943 # config.status does its own redirection, appending to config.log.
12944 # Unfortunately, on DOS this fails, as config.log is still kept open
12945 # by configure, so config.status won't be able to write to it; its
12946 # output is simply discarded. So we exec the FD to /dev/null,
12947 # effectively closing config.log, so it can be properly (re)opened and
12948 # appended to by config.status. When coming back to configure, we
12949 # need to make the FD available again.
12950 if test "$no_create" != yes; then
12951 ac_cs_success=:
12952 ac_config_status_args=
12953 test "$silent" = yes &&
12954 ac_config_status_args="$ac_config_status_args --quiet"
12955 exec 5>/dev/null
12956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12957 exec 5>>config.log
12958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12959 # would make configure fail if this is the last instruction.
12960 $ac_cs_success || { (exit 1); exit 1; }