Add PR target/17277 to ChangeLog entry.
[official-gcc.git] / gcc / configure
blobf5d20bfd1d52913d722a1f162bfd326506740dea
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: assert,fold,gc,gcac,misc,
871 rtlflag,rtl,tree,valgrind,release,yes,all;
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --enable-initfini-array use .init_array/.fini_array sections
890 --enable-sjlj-exceptions
891 arrange to use setjmp/longjmp exception handling
892 --disable-win32-registry
893 disable lookup of installation paths in the
894 Registry on Windows hosts
895 --enable-win32-registry enable registry lookup (default)
896 --enable-win32-registry=KEY
897 use KEY instead of GCC version as the last portion
898 of the registry key
899 --enable-maintainer-mode
900 enable make rules and dependencies not useful
901 (and sometimes confusing) to the casual installer
902 --enable-version-specific-runtime-libs
903 specify that runtime libraries should be
904 installed in a compiler-specific directory
906 Optional Packages:
907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
909 --with-local-prefix=DIR specifies directory to put local include
910 --with-gxx-include-dir=DIR
911 specifies directory to put g++ header files
912 --with-cpp-install-dir=DIR
913 install the user visible C preprocessor in DIR
914 (relative to PREFIX) as well as PREFIX/bin
915 --with-gnu-ld arrange to work with GNU ld.
916 --with-ld arrange to use the specified ld (full pathname)
917 --with-demangler-in-ld try to use demangler in GNU ld.
918 --with-gnu-as arrange to work with GNU as
919 --with-as arrange to use the specified as (full pathname)
920 --with-stabs arrange to use stabs instead of host debug format
921 --with-dwarf2 force the default debug format to be DWARF 2
922 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
923 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
924 --with-system-libunwind use installed libunwind
925 --with-gc={page,zone} choose the garbage collection mechanism to use
926 with the compiler
927 --with-system-zlib use installed libz
928 --with-slibdir=DIR shared libraries in DIR LIBDIR
930 Some influential environment variables:
931 CC C compiler command
932 CFLAGS C compiler flags
933 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
934 nonstandard directory <lib dir>
935 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
936 headers in a nonstandard directory <include dir>
937 CPP C preprocessor
938 GMPLIBS How to link GMP
939 GMPINC How to find GMP include files
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
944 _ACEOF
947 if test "$ac_init_help" = "recursive"; then
948 # If there are subdirs, report their specific --help.
949 ac_popdir=`pwd`
950 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951 test -d $ac_dir || continue
952 ac_builddir=.
954 if test "$ac_dir" != .; then
955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956 # A "../" for each directory in $ac_dir_suffix.
957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 else
959 ac_dir_suffix= ac_top_builddir=
962 case $srcdir in
963 .) # No --srcdir option. We are building in place.
964 ac_srcdir=.
965 if test -z "$ac_top_builddir"; then
966 ac_top_srcdir=.
967 else
968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969 fi ;;
970 [\\/]* | ?:[\\/]* ) # Absolute path.
971 ac_srcdir=$srcdir$ac_dir_suffix;
972 ac_top_srcdir=$srcdir ;;
973 *) # Relative path.
974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 esac
978 # Do not use `cd foo && pwd` to compute absolute paths, because
979 # the directories may not exist.
980 case `pwd` in
981 .) ac_abs_builddir="$ac_dir";;
983 case "$ac_dir" in
984 .) ac_abs_builddir=`pwd`;;
985 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986 *) ac_abs_builddir=`pwd`/"$ac_dir";;
987 esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
992 case ${ac_top_builddir}. in
993 .) ac_abs_top_builddir=$ac_abs_builddir;;
994 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
996 esac;;
997 esac
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1001 case $ac_srcdir in
1002 .) ac_abs_srcdir=$ac_abs_builddir;;
1003 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1005 esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1010 case $ac_top_srcdir in
1011 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1014 esac;;
1015 esac
1017 cd $ac_dir
1018 # Check for guested configure; otherwise get Cygnus style configure.
1019 if test -f $ac_srcdir/configure.gnu; then
1020 echo
1021 $SHELL $ac_srcdir/configure.gnu --help=recursive
1022 elif test -f $ac_srcdir/configure; then
1023 echo
1024 $SHELL $ac_srcdir/configure --help=recursive
1025 elif test -f $ac_srcdir/configure.ac ||
1026 test -f $ac_srcdir/configure.in; then
1027 echo
1028 $ac_configure --help
1029 else
1030 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1032 cd $ac_popdir
1033 done
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1038 cat <<\_ACEOF
1040 Copyright (C) 2003 Free Software Foundation, Inc.
1041 This configure script is free software; the Free Software Foundation
1042 gives unlimited permission to copy, distribute and modify it.
1043 _ACEOF
1044 exit 0
1046 exec 5>config.log
1047 cat >&5 <<_ACEOF
1048 This file contains any messages produced by compilers while
1049 running configure, to aid debugging if configure makes a mistake.
1051 It was created by $as_me, which was
1052 generated by GNU Autoconf 2.59. Invocation command line was
1054 $ $0 $@
1056 _ACEOF
1058 cat <<_ASUNAME
1059 ## --------- ##
1060 ## Platform. ##
1061 ## --------- ##
1063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1070 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1072 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1073 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1075 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1076 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1077 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1078 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1080 _ASUNAME
1082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1083 for as_dir in $PATH
1085 IFS=$as_save_IFS
1086 test -z "$as_dir" && as_dir=.
1087 echo "PATH: $as_dir"
1088 done
1090 } >&5
1092 cat >&5 <<_ACEOF
1095 ## ----------- ##
1096 ## Core tests. ##
1097 ## ----------- ##
1099 _ACEOF
1102 # Keep a trace of the command line.
1103 # Strip out --no-create and --no-recursion so they do not pile up.
1104 # Strip out --silent because we don't want to record it for future runs.
1105 # Also quote any args containing shell meta-characters.
1106 # Make two passes to allow for proper duplicate-argument suppression.
1107 ac_configure_args=
1108 ac_configure_args0=
1109 ac_configure_args1=
1110 ac_sep=
1111 ac_must_keep_next=false
1112 for ac_pass in 1 2
1114 for ac_arg
1116 case $ac_arg in
1117 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 continue ;;
1121 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1123 esac
1124 case $ac_pass in
1125 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1127 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1128 if test $ac_must_keep_next = true; then
1129 ac_must_keep_next=false # Got value, back to normal.
1130 else
1131 case $ac_arg in
1132 *=* | --config-cache | -C | -disable-* | --disable-* \
1133 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1134 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1135 | -with-* | --with-* | -without-* | --without-* | --x)
1136 case "$ac_configure_args0 " in
1137 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1138 esac
1140 -* ) ac_must_keep_next=true ;;
1141 esac
1143 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1144 # Get rid of the leading space.
1145 ac_sep=" "
1147 esac
1148 done
1149 done
1150 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1151 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1153 # When interrupted or exit'd, cleanup temporary files, and complete
1154 # config.log. We remove comments because anyway the quotes in there
1155 # would cause problems or look ugly.
1156 # WARNING: Be sure not to use single quotes in there, as some shells,
1157 # such as our DU 5.0 friend, will then `close' the trap.
1158 trap 'exit_status=$?
1159 # Save into config.log some information that might help in debugging.
1161 echo
1163 cat <<\_ASBOX
1164 ## ---------------- ##
1165 ## Cache variables. ##
1166 ## ---------------- ##
1167 _ASBOX
1168 echo
1169 # The following way of writing the cache mishandles newlines in values,
1171 (set) 2>&1 |
1172 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1173 *ac_space=\ *)
1174 sed -n \
1175 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1179 sed -n \
1180 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1182 esac;
1184 echo
1186 cat <<\_ASBOX
1187 ## ----------------- ##
1188 ## Output variables. ##
1189 ## ----------------- ##
1190 _ASBOX
1191 echo
1192 for ac_var in $ac_subst_vars
1194 eval ac_val=$`echo $ac_var`
1195 echo "$ac_var='"'"'$ac_val'"'"'"
1196 done | sort
1197 echo
1199 if test -n "$ac_subst_files"; then
1200 cat <<\_ASBOX
1201 ## ------------- ##
1202 ## Output files. ##
1203 ## ------------- ##
1204 _ASBOX
1205 echo
1206 for ac_var in $ac_subst_files
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1210 done | sort
1211 echo
1214 if test -s confdefs.h; then
1215 cat <<\_ASBOX
1216 ## ----------- ##
1217 ## confdefs.h. ##
1218 ## ----------- ##
1219 _ASBOX
1220 echo
1221 sed "/^$/d" confdefs.h | sort
1222 echo
1224 test "$ac_signal" != 0 &&
1225 echo "$as_me: caught signal $ac_signal"
1226 echo "$as_me: exit $exit_status"
1227 } >&5
1228 rm -f core *.core &&
1229 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230 exit $exit_status
1232 for ac_signal in 1 2 13 15; do
1233 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 done
1235 ac_signal=0
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 echo >confdefs.h
1242 # Predefined preprocessor variables.
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 _ACEOF
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 _ACEOF
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 _ACEOF
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 _ACEOF
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 _ACEOF
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272 if test "x$prefix" != xNONE; then
1273 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274 else
1275 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278 for ac_site_file in $CONFIG_SITE; do
1279 if test -r "$ac_site_file"; then
1280 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282 sed 's/^/| /' "$ac_site_file" >&5
1283 . "$ac_site_file"
1285 done
1287 if test -r "$cache_file"; then
1288 # Some versions of bash will fail to source /dev/null (special
1289 # files actually), so we avoid doing that.
1290 if test -f "$cache_file"; then
1291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1293 case $cache_file in
1294 [\\/]* | ?:[\\/]* ) . $cache_file;;
1295 *) . ./$cache_file;;
1296 esac
1298 else
1299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1301 >$cache_file
1304 # Check that the precious variables saved in the cache have kept the same
1305 # value.
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310 eval ac_new_set=\$ac_env_${ac_var}_set
1311 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312 eval ac_new_val="\$ac_env_${ac_var}_value"
1313 case $ac_old_set,$ac_new_set in
1314 set,)
1315 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317 ac_cache_corrupted=: ;;
1318 ,set)
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1322 ,);;
1324 if test "x$ac_old_val" != "x$ac_new_val"; then
1325 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1328 echo "$as_me: former value: $ac_old_val" >&2;}
1329 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1330 echo "$as_me: current value: $ac_new_val" >&2;}
1331 ac_cache_corrupted=:
1332 fi;;
1333 esac
1334 # Pass precious variables to config.status.
1335 if test "$ac_new_set" = set; then
1336 case $ac_new_val in
1337 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339 *) ac_arg=$ac_var=$ac_new_val ;;
1340 esac
1341 case " $ac_configure_args " in
1342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344 esac
1346 done
1347 if $ac_cache_corrupted; then
1348 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352 { (exit 1); exit 1; }; }
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1380 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1383 #Set to 1 on a release branch
1384 is_release=
1386 # Determine the host, build, and target systems
1387 ac_aux_dir=
1388 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1389 if test -f $ac_dir/install-sh; then
1390 ac_aux_dir=$ac_dir
1391 ac_install_sh="$ac_aux_dir/install-sh -c"
1392 break
1393 elif test -f $ac_dir/install.sh; then
1394 ac_aux_dir=$ac_dir
1395 ac_install_sh="$ac_aux_dir/install.sh -c"
1396 break
1397 elif test -f $ac_dir/shtool; then
1398 ac_aux_dir=$ac_dir
1399 ac_install_sh="$ac_aux_dir/shtool install -c"
1400 break
1402 done
1403 if test -z "$ac_aux_dir"; then
1404 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1405 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1406 { (exit 1); exit 1; }; }
1408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1410 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412 # Make sure we can run config.sub.
1413 $ac_config_sub sun4 >/dev/null 2>&1 ||
1414 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1415 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1416 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: checking build system type" >&5
1419 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1420 if test "${ac_cv_build+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423 ac_cv_build_alias=$build_alias
1424 test -z "$ac_cv_build_alias" &&
1425 ac_cv_build_alias=`$ac_config_guess`
1426 test -z "$ac_cv_build_alias" &&
1427 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1429 { (exit 1); exit 1; }; }
1430 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1431 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1437 echo "${ECHO_T}$ac_cv_build" >&6
1438 build=$ac_cv_build
1439 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444 echo "$as_me:$LINENO: checking host system type" >&5
1445 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1446 if test "${ac_cv_host+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 ac_cv_host_alias=$host_alias
1450 test -z "$ac_cv_host_alias" &&
1451 ac_cv_host_alias=$ac_cv_build_alias
1452 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1453 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1455 { (exit 1); exit 1; }; }
1458 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1459 echo "${ECHO_T}$ac_cv_host" >&6
1460 host=$ac_cv_host
1461 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1466 echo "$as_me:$LINENO: checking target system type" >&5
1467 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1468 if test "${ac_cv_target+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471 ac_cv_target_alias=$target_alias
1472 test "x$ac_cv_target_alias" = "x" &&
1473 ac_cv_target_alias=$ac_cv_host_alias
1474 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1475 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1477 { (exit 1); exit 1; }; }
1480 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1481 echo "${ECHO_T}$ac_cv_target" >&6
1482 target=$ac_cv_target
1483 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488 # The aliases save the names the user supplied, while $host etc.
1489 # will get canonicalized.
1490 test -n "$target_alias" &&
1491 test "$program_prefix$program_suffix$program_transform_name" = \
1492 NONENONEs,x,x, &&
1493 program_prefix=${target_alias}-
1495 # Determine the noncanonical target name, for directory use.
1496 case ${build_alias} in
1497 "") build_noncanonical=${build} ;;
1498 *) build_noncanonical=${build_alias} ;;
1499 esac
1501 case ${host_alias} in
1502 "") host_noncanonical=${build_noncanonical} ;;
1503 *) host_noncanonical=${host_alias} ;;
1504 esac
1506 case ${target_alias} in
1507 "") target_noncanonical=${host_noncanonical} ;;
1508 *) target_noncanonical=${target_alias} ;;
1509 esac
1514 # Determine the target- and build-specific subdirectories
1515 # Prefix 'build-' so this never conflicts with target_subdir.
1516 build_subdir="build-${build_noncanonical}"
1517 # Not really a subdirectory, but here for completeness.
1518 host_subdir=.
1519 # No prefix.
1520 target_subdir=${target_noncanonical}
1523 # Set program_transform_name
1524 test "$program_prefix" != NONE &&
1525 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1526 # Use a double $ so make ignores it.
1527 test "$program_suffix" != NONE &&
1528 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1529 # Double any \ or $. echo might interpret backslashes.
1530 # By default was `s,x,x', remove it if useless.
1531 cat <<\_ACEOF >conftest.sed
1532 s/[\\$]/&&/g;s/;s,x,x,$//
1533 _ACEOF
1534 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1535 rm conftest.sed
1538 # Check for bogus environment variables.
1539 # Test if LIBRARY_PATH contains the notation for the current directory
1540 # since this would lead to problems installing/building glibc.
1541 # LIBRARY_PATH contains the current directory if one of the following
1542 # is true:
1543 # - one of the terminals (":" and ";") is the first or last sign
1544 # - two terminals occur directly after each other
1545 # - the path contains an element with a dot in it
1546 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1547 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1548 case ${LIBRARY_PATH} in
1549 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1550 library_path_setting="contains current directory"
1553 library_path_setting="ok"
1555 esac
1556 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1557 echo "${ECHO_T}$library_path_setting" >&6
1558 if test "$library_path_setting" != "ok"; then
1559 { { echo "$as_me:$LINENO: error:
1560 *** LIBRARY_PATH shouldn't contain the current directory when
1561 *** building gcc. Please change the environment variable
1562 *** and run configure again." >&5
1563 echo "$as_me: error:
1564 *** LIBRARY_PATH shouldn't contain the current directory when
1565 *** building gcc. Please change the environment variable
1566 *** and run configure again." >&2;}
1567 { (exit 1); exit 1; }; }
1570 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1571 # since this would lead to problems installing/building glibc.
1572 # GCC_EXEC_PREFIX contains the current directory if one of the following
1573 # is true:
1574 # - one of the terminals (":" and ";") is the first or last sign
1575 # - two terminals occur directly after each other
1576 # - the path contains an element with a dot in it
1577 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1578 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1579 case ${GCC_EXEC_PREFIX} in
1580 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1581 gcc_exec_prefix_setting="contains current directory"
1584 gcc_exec_prefix_setting="ok"
1586 esac
1587 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1588 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1589 if test "$gcc_exec_prefix_setting" != "ok"; then
1590 { { echo "$as_me:$LINENO: error:
1591 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1592 *** building gcc. Please change the environment variable
1593 *** and run configure again." >&5
1594 echo "$as_me: error:
1595 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1596 *** building gcc. Please change the environment variable
1597 *** and run configure again." >&2;}
1598 { (exit 1); exit 1; }; }
1601 # -----------
1602 # Directories
1603 # -----------
1605 # Specify the local prefix
1606 local_prefix=
1608 # Check whether --with-local-prefix or --without-local-prefix was given.
1609 if test "${with_local_prefix+set}" = set; then
1610 withval="$with_local_prefix"
1611 case "${withval}" in
1612 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1613 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1614 { (exit 1); exit 1; }; } ;;
1615 no) ;;
1616 *) local_prefix=$with_local_prefix ;;
1617 esac
1620 # Default local prefix if it is empty
1621 if test x$local_prefix = x; then
1622 local_prefix=/usr/local
1625 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1626 # passed in by the toplevel make and thus we'd get different behavior
1627 # depending on where we built the sources.
1628 gcc_gxx_include_dir=
1629 # Specify the g++ header file directory
1631 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1632 if test "${with_gxx_include_dir+set}" = set; then
1633 withval="$with_gxx_include_dir"
1634 case "${withval}" in
1635 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1636 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1637 { (exit 1); exit 1; }; } ;;
1638 no) ;;
1639 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1640 esac
1643 if test x${gcc_gxx_include_dir} = x; then
1644 if test x${enable_version_specific_runtime_libs} = xyes; then
1645 gcc_gxx_include_dir='${libsubdir}/include/c++'
1646 else
1647 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1648 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1653 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1654 if test "${with_cpp_install_dir+set}" = set; then
1655 withval="$with_cpp_install_dir"
1656 if test x$withval = xyes; then
1657 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1658 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1659 { (exit 1); exit 1; }; }
1660 elif test x$withval != xno; then
1661 cpp_install_dir=$withval
1665 # We would like to our source tree to be readonly. However when releases or
1666 # pre-releases are generated, the flex/bison generated files as well as the
1667 # various formats of manuals need to be included along with the rest of the
1668 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1669 # just that.
1671 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1672 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1673 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1674 if test "${enable_generated_files_in_srcdir+set}" = set; then
1675 enableval="$enable_generated_files_in_srcdir"
1676 generated_files_in_srcdir=$enableval
1677 else
1678 generated_files_in_srcdir=no
1681 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1682 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1684 if test "$generated_files_in_srcdir" = "yes"; then
1685 GENINSRC=''
1686 else
1687 GENINSRC='#'
1691 # -------------------
1692 # Find default linker
1693 # -------------------
1695 # With GNU ld
1697 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1698 if test "${with_gnu_ld+set}" = set; then
1699 withval="$with_gnu_ld"
1700 gnu_ld_flag="$with_gnu_ld"
1701 else
1702 gnu_ld_flag=no
1705 # With pre-defined ld
1707 # Check whether --with-ld or --without-ld was given.
1708 if test "${with_ld+set}" = set; then
1709 withval="$with_ld"
1710 DEFAULT_LINKER="$with_ld"
1712 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1713 if test ! -x "$DEFAULT_LINKER"; then
1714 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1715 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1716 { (exit 1); exit 1; }; }
1717 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1718 gnu_ld_flag=yes
1721 cat >>confdefs.h <<_ACEOF
1722 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1723 _ACEOF
1727 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1728 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1729 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1730 if test x"$gnu_ld_flag" = x"no"; then
1731 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1732 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1733 else
1734 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1735 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1737 else
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1742 # With demangler in GNU ld
1744 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1745 if test "${with_demangler_in_ld+set}" = set; then
1746 withval="$with_demangler_in_ld"
1747 demangler_in_ld="$with_demangler_in_ld"
1748 else
1749 demangler_in_ld=no
1752 # ----------------------
1753 # Find default assembler
1754 # ----------------------
1756 # With GNU as
1758 # Check whether --with-gnu-as or --without-gnu-as was given.
1759 if test "${with_gnu_as+set}" = set; then
1760 withval="$with_gnu_as"
1761 gas_flag="$with_gnu_as"
1762 else
1763 gas_flag=no
1767 # Check whether --with-as or --without-as was given.
1768 if test "${with_as+set}" = set; then
1769 withval="$with_as"
1770 DEFAULT_ASSEMBLER="$with_as"
1772 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1773 if test ! -x "$DEFAULT_ASSEMBLER"; then
1774 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1775 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1776 { (exit 1); exit 1; }; }
1777 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1778 gas_flag=yes
1781 cat >>confdefs.h <<_ACEOF
1782 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1783 _ACEOF
1787 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1788 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1789 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1790 if test x"$gas_flag" = x"no"; then
1791 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1792 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1793 else
1794 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1795 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1797 else
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1802 # ---------------
1803 # Find C compiler
1804 # ---------------
1806 # If a non-executable a.out is present (e.g. created by GNU as above even if
1807 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1808 # file, even when creating an executable, so an execution test fails.
1809 # Remove possible default executable files to avoid this.
1811 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1812 # Autoconf includes it.
1813 rm -f a.out a.exe b.out
1815 # Find the native compiler
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 if test -n "$ac_tool_prefix"; then
1822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1823 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1831 else
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1843 done
1844 done
1848 CC=$ac_cv_prog_CC
1849 if test -n "$CC"; then
1850 echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6
1852 else
1853 echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1858 if test -z "$ac_cv_prog_CC"; then
1859 ac_ct_CC=$CC
1860 # Extract the first word of "gcc", so it can be a program name with args.
1861 set dummy gcc; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 if test -n "$ac_ct_CC"; then
1868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_ac_ct_CC="gcc"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1881 done
1882 done
1886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887 if test -n "$ac_ct_CC"; then
1888 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889 echo "${ECHO_T}$ac_ct_CC" >&6
1890 else
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1895 CC=$ac_ct_CC
1896 else
1897 CC="$ac_cv_prog_CC"
1900 if test -z "$CC"; then
1901 if test -n "$ac_tool_prefix"; then
1902 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1903 set dummy ${ac_tool_prefix}cc; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_CC+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_CC="${ac_tool_prefix}cc"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1923 done
1924 done
1928 CC=$ac_cv_prog_CC
1929 if test -n "$CC"; then
1930 echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1938 if test -z "$ac_cv_prog_CC"; then
1939 ac_ct_CC=$CC
1940 # Extract the first word of "cc", so it can be a program name with args.
1941 set dummy cc; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947 if test -n "$ac_ct_CC"; then
1948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_ac_ct_CC="cc"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 break 2
1961 done
1962 done
1966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967 if test -n "$ac_ct_CC"; then
1968 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969 echo "${ECHO_T}$ac_ct_CC" >&6
1970 else
1971 echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1975 CC=$ac_ct_CC
1976 else
1977 CC="$ac_cv_prog_CC"
1981 if test -z "$CC"; then
1982 # Extract the first word of "cc", so it can be a program name with args.
1983 set dummy cc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 else
1992 ac_prog_rejected=no
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2001 ac_prog_rejected=yes
2002 continue
2004 ac_cv_prog_CC="cc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2008 done
2009 done
2011 if test $ac_prog_rejected = yes; then
2012 # We found a bogon in the path, so make sure we never use it.
2013 set dummy $ac_cv_prog_CC
2014 shift
2015 if test $# != 0; then
2016 # We chose a different compiler from the bogus one.
2017 # However, it has the same basename, so the bogon will be chosen
2018 # first if we set CC to just the basename; use the full file name.
2019 shift
2020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027 echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2029 else
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2035 if test -z "$CC"; then
2036 if test -n "$ac_tool_prefix"; then
2037 for ac_prog in cl
2039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_CC+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 break 2
2060 done
2061 done
2065 CC=$ac_cv_prog_CC
2066 if test -n "$CC"; then
2067 echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6
2069 else
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2074 test -n "$CC" && break
2075 done
2077 if test -z "$CC"; then
2078 ac_ct_CC=$CC
2079 for ac_prog in cl
2081 # Extract the first word of "$ac_prog", so it can be a program name with args.
2082 set dummy $ac_prog; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_ac_ct_CC="$ac_prog"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 break 2
2102 done
2103 done
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2111 else
2112 echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2116 test -n "$ac_ct_CC" && break
2117 done
2119 CC=$ac_ct_CC
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO:" \
2133 "checking for C compiler version" >&5
2134 ac_compiler=`set X $ac_compile; echo $2`
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2136 (eval $ac_compiler --version </dev/null >&5) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2141 (eval $ac_compiler -v </dev/null >&5) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2146 (eval $ac_compiler -V </dev/null >&5) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2151 cat >conftest.$ac_ext <<_ACEOF
2152 /* confdefs.h. */
2153 _ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2159 main ()
2163 return 0;
2165 _ACEOF
2166 ac_clean_files_save=$ac_clean_files
2167 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2168 # Try to create an executable without -o first, disregard a.out.
2169 # It will help us diagnose broken compilers, and finding out an intuition
2170 # of exeext.
2171 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2172 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2173 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2175 (eval $ac_link_default) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # Find the output, starting from the most likely. This scheme is
2180 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2181 # resort.
2183 # Be careful to initialize this variable, since it used to be cached.
2184 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2185 ac_cv_exeext=
2186 # b.out is created by i960 compilers.
2187 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2189 test -f "$ac_file" || continue
2190 case $ac_file in
2191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2193 conftest.$ac_ext )
2194 # This is the source file.
2196 [ab].out )
2197 # We found the default executable, but exeext='' is most
2198 # certainly right.
2199 break;;
2200 *.* )
2201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202 # FIXME: I believe we export ac_cv_exeext for Libtool,
2203 # but it would be cool to find out if it's true. Does anybody
2204 # maintain Libtool? --akim.
2205 export ac_cv_exeext
2206 break;;
2208 break;;
2209 esac
2210 done
2211 else
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2215 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&2;}
2219 { (exit 77); exit 77; }; }
2222 ac_exeext=$ac_cv_exeext
2223 echo "$as_me:$LINENO: result: $ac_file" >&5
2224 echo "${ECHO_T}$ac_file" >&6
2226 # Check the compiler produces executables we can run. If not, either
2227 # the compiler is broken, or we cross compile.
2228 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2229 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2230 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2231 # If not cross compiling, check that we can run a simple program.
2232 if test "$cross_compiling" != yes; then
2233 if { ac_try='./$ac_file'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 cross_compiling=no
2240 else
2241 if test "$cross_compiling" = maybe; then
2242 cross_compiling=yes
2243 else
2244 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2254 echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6
2257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258 ac_clean_files=$ac_clean_files_save
2259 # Check the compiler produces executables we can run. If not, either
2260 # the compiler is broken, or we cross compile.
2261 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2263 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264 echo "${ECHO_T}$cross_compiling" >&6
2266 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2269 (eval $ac_link) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; then
2273 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2274 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2275 # work properly (i.e., refer to `conftest.exe'), while it won't with
2276 # `rm'.
2277 for ac_file in conftest.exe conftest conftest.*; do
2278 test -f "$ac_file" || continue
2279 case $ac_file in
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 export ac_cv_exeext
2283 break;;
2284 * ) break;;
2285 esac
2286 done
2287 else
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest$ac_cv_exeext
2296 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2301 ac_exeext=$EXEEXT
2302 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2304 if test "${ac_cv_objext+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2315 main ()
2319 return 0;
2321 _ACEOF
2322 rm -f conftest.o conftest.obj
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2329 case $ac_file in
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332 break;;
2333 esac
2334 done
2335 else
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&2;}
2343 { (exit 1); exit 1; }; }
2346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349 echo "${ECHO_T}$ac_cv_objext" >&6
2350 OBJEXT=$ac_cv_objext
2351 ac_objext=$OBJEXT
2352 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2365 main ()
2367 #ifndef __GNUC__
2368 choke me
2369 #endif
2372 return 0;
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>conftest.er1
2378 ac_status=$?
2379 grep -v '^ *+' conftest.er1 >conftest.err
2380 rm -f conftest.er1
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -z "$ac_c_werror_flag"
2385 || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 ac_compiler_gnu=yes
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 ac_compiler_gnu=no
2404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2413 CFLAGS="-g"
2414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 cat >conftest.$ac_ext <<_ACEOF
2420 /* confdefs.h. */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2427 main ()
2431 return 0;
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2437 ac_status=$?
2438 grep -v '^ *+' conftest.er1 >conftest.err
2439 rm -f conftest.er1
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag"
2444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 ac_cv_prog_cc_g=yes
2457 else
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2461 ac_cv_prog_cc_g=no
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2467 if test "$ac_test_CFLAGS" = set; then
2468 CFLAGS=$ac_save_CFLAGS
2469 elif test $ac_cv_prog_cc_g = yes; then
2470 if test "$GCC" = yes; then
2471 CFLAGS="-g -O2"
2472 else
2473 CFLAGS="-g"
2475 else
2476 if test "$GCC" = yes; then
2477 CFLAGS="-O2"
2478 else
2479 CFLAGS=
2482 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2483 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2484 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 ac_cv_prog_cc_stdc=no
2488 ac_save_CC=$CC
2489 cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h. */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2495 #include <stdarg.h>
2496 #include <stdio.h>
2497 #include <sys/types.h>
2498 #include <sys/stat.h>
2499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2500 struct buf { int x; };
2501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502 static char *e (p, i)
2503 char **p;
2504 int i;
2506 return p[i];
2508 static char *f (char * (*g) (char **, int), char **p, ...)
2510 char *s;
2511 va_list v;
2512 va_start (v,p);
2513 s = g (p, va_arg (v,int));
2514 va_end (v);
2515 return s;
2518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2519 function prototypes and stuff, but not '\xHH' hex character constants.
2520 These don't provoke an error unfortunately, instead are silently treated
2521 as 'x'. The following induces an error, until -std1 is added to get
2522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2523 array size at least. It's necessary to write '\x00'==0 to get something
2524 that's true only with -std1. */
2525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2531 int argc;
2532 char **argv;
2534 main ()
2536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2538 return 0;
2540 _ACEOF
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX -qlanglvl=ansi
2544 # Ultrix and OSF/1 -std1
2545 # HP-UX 10.20 and later -Ae
2546 # HP-UX older versions -Aa -D_HPUX_SOURCE
2547 # SVR4 -Xc -D__EXTENSIONS__
2548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2550 CC="$ac_save_CC $ac_arg"
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>conftest.er1
2554 ac_status=$?
2555 grep -v '^ *+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_cv_prog_cc_stdc=$ac_arg
2574 break
2575 else
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2580 rm -f conftest.err conftest.$ac_objext
2581 done
2582 rm -f conftest.$ac_ext conftest.$ac_objext
2583 CC=$ac_save_CC
2587 case "x$ac_cv_prog_cc_stdc" in
2588 x|xno)
2589 echo "$as_me:$LINENO: result: none needed" >&5
2590 echo "${ECHO_T}none needed" >&6 ;;
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2594 CC="$CC $ac_cv_prog_cc_stdc" ;;
2595 esac
2597 # Some people use a C++ compiler to compile C. Since we use `exit',
2598 # in C++ we need to declare it. In case someone uses the same compiler
2599 # for both compiling C and C++ we need to have the C++ compiler decide
2600 # the declaration of exit, since it's the most demanding environment.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #ifndef __cplusplus
2603 choke me
2604 #endif
2605 _ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608 (eval $ac_compile) 2>conftest.er1
2609 ac_status=$?
2610 grep -v '^ *+' conftest.er1 >conftest.err
2611 rm -f conftest.er1
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag"
2616 || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 for ac_declaration in \
2629 '' \
2630 'extern "C" void std::exit (int) throw (); using std::exit;' \
2631 'extern "C" void std::exit (int); using std::exit;' \
2632 'extern "C" void exit (int) throw ();' \
2633 'extern "C" void exit (int);' \
2634 'void exit (int);'
2636 cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h. */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2642 $ac_declaration
2643 #include <stdlib.h>
2645 main ()
2647 exit (42);
2649 return 0;
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2679 continue
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2688 $ac_declaration
2690 main ()
2692 exit (42);
2694 return 0;
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -z "$ac_c_werror_flag"
2707 || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 break
2720 else
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 done
2727 rm -f conftest*
2728 if test -n "$ac_declaration"; then
2729 echo '#ifdef __cplusplus' >>confdefs.h
2730 echo $ac_declaration >>confdefs.h
2731 echo '#endif' >>confdefs.h
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_ext=c
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 if test "x$CC" != xcc; then
2747 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2748 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2749 else
2750 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2751 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2753 set dummy $CC; ac_cc=`echo $2 |
2754 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2755 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2766 main ()
2770 return 0;
2772 _ACEOF
2773 # Make sure it works both with $CC and with simple cc.
2774 # We do the test twice because some compilers refuse to overwrite an
2775 # existing .o file with -o, though they will create one.
2776 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2777 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); };
2787 then
2788 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2789 if test "x$CC" != xcc; then
2790 # Test first that cc exists at all.
2791 if { ac_try='cc -c conftest.$ac_ext >&5'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2798 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); };
2808 then
2809 # cc works too.
2811 else
2812 # cc exists but doesn't like -o.
2813 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2817 else
2818 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2820 rm -f conftest*
2823 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2824 echo "$as_me:$LINENO: result: yes" >&5
2825 echo "${ECHO_T}yes" >&6
2826 else
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2830 cat >>confdefs.h <<\_ACEOF
2831 #define NO_MINUS_C_MINUS_O 1
2832 _ACEOF
2836 # autoconf is lame and doesn't give us any substitution variable for this.
2837 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2838 NO_MINUS_C_MINUS_O=yes
2839 else
2840 OUTPUT_OPTION='-o $@'
2845 # -------------------------
2846 # Check C compiler features
2847 # -------------------------
2849 ac_ext=c
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2855 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2856 # On Suns, sometimes $CPP names a directory.
2857 if test -n "$CPP" && test -d "$CPP"; then
2858 CPP=
2860 if test -z "$CPP"; then
2861 if test "${ac_cv_prog_CPP+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864 # Double quotes because CPP needs to be expanded
2865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2867 ac_preproc_ok=false
2868 for ac_c_preproc_warn_flag in '' yes
2870 # Use a header file that comes with gcc, so configuring glibc
2871 # with a fresh cross-compiler works.
2872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873 # <limits.h> exists even on freestanding compilers.
2874 # On the NeXT, cc -E runs the code through the compiler's parser,
2875 # not just through cpp. "Syntax error" is here to catch this case.
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2882 #ifdef __STDC__
2883 # include <limits.h>
2884 #else
2885 # include <assert.h>
2886 #endif
2887 Syntax error
2888 _ACEOF
2889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } >/dev/null; then
2897 if test -s conftest.err; then
2898 ac_cpp_err=$ac_c_preproc_warn_flag
2899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2900 else
2901 ac_cpp_err=
2903 else
2904 ac_cpp_err=yes
2906 if test -z "$ac_cpp_err"; then
2908 else
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 # Broken: fails on valid input.
2913 continue
2915 rm -f conftest.err conftest.$ac_ext
2917 # OK, works on sane cases. Now check whether non-existent headers
2918 # can be detected and how.
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 #include <ac_nonexistent.h>
2926 _ACEOF
2927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } >/dev/null; then
2935 if test -s conftest.err; then
2936 ac_cpp_err=$ac_c_preproc_warn_flag
2937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2938 else
2939 ac_cpp_err=
2941 else
2942 ac_cpp_err=yes
2944 if test -z "$ac_cpp_err"; then
2945 # Broken: success on invalid input.
2946 continue
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Passes both tests.
2952 ac_preproc_ok=:
2953 break
2955 rm -f conftest.err conftest.$ac_ext
2957 done
2958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2959 rm -f conftest.err conftest.$ac_ext
2960 if $ac_preproc_ok; then
2961 break
2964 done
2965 ac_cv_prog_CPP=$CPP
2968 CPP=$ac_cv_prog_CPP
2969 else
2970 ac_cv_prog_CPP=$CPP
2972 echo "$as_me:$LINENO: result: $CPP" >&5
2973 echo "${ECHO_T}$CPP" >&6
2974 ac_preproc_ok=false
2975 for ac_c_preproc_warn_flag in '' yes
2977 # Use a header file that comes with gcc, so configuring glibc
2978 # with a fresh cross-compiler works.
2979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2980 # <limits.h> exists even on freestanding compilers.
2981 # On the NeXT, cc -E runs the code through the compiler's parser,
2982 # not just through cpp. "Syntax error" is here to catch this case.
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #ifdef __STDC__
2990 # include <limits.h>
2991 #else
2992 # include <assert.h>
2993 #endif
2994 Syntax error
2995 _ACEOF
2996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } >/dev/null; then
3004 if test -s conftest.err; then
3005 ac_cpp_err=$ac_c_preproc_warn_flag
3006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3007 else
3008 ac_cpp_err=
3010 else
3011 ac_cpp_err=yes
3013 if test -z "$ac_cpp_err"; then
3015 else
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3019 # Broken: fails on valid input.
3020 continue
3022 rm -f conftest.err conftest.$ac_ext
3024 # OK, works on sane cases. Now check whether non-existent headers
3025 # can be detected and how.
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 #include <ac_nonexistent.h>
3033 _ACEOF
3034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev/null; then
3042 if test -s conftest.err; then
3043 ac_cpp_err=$ac_c_preproc_warn_flag
3044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3045 else
3046 ac_cpp_err=
3048 else
3049 ac_cpp_err=yes
3051 if test -z "$ac_cpp_err"; then
3052 # Broken: success on invalid input.
3053 continue
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 # Passes both tests.
3059 ac_preproc_ok=:
3060 break
3062 rm -f conftest.err conftest.$ac_ext
3064 done
3065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3066 rm -f conftest.err conftest.$ac_ext
3067 if $ac_preproc_ok; then
3069 else
3070 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3071 See \`config.log' for more details." >&5
3072 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3073 See \`config.log' for more details." >&2;}
3074 { (exit 1); exit 1; }; }
3077 ac_ext=c
3078 ac_cpp='$CPP $CPPFLAGS'
3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084 echo "$as_me:$LINENO: checking for inline" >&5
3085 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3086 if test "${ac_cv_c_inline+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 ac_cv_c_inline=no
3090 for ac_kw in inline __inline__ __inline; do
3091 cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h. */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3097 #ifndef __cplusplus
3098 typedef int foo_t;
3099 static $ac_kw foo_t static_foo () {return 0; }
3100 $ac_kw foo_t foo () {return 0; }
3101 #endif
3103 _ACEOF
3104 rm -f conftest.$ac_objext
3105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106 (eval $ac_compile) 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_c_werror_flag"
3114 || test ! -s conftest.err'
3115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 (eval $ac_try) 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; } &&
3120 { ac_try='test -s conftest.$ac_objext'
3121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 (eval $ac_try) 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
3126 ac_cv_c_inline=$ac_kw; break
3127 else
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133 done
3136 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3137 echo "${ECHO_T}$ac_cv_c_inline" >&6
3140 case $ac_cv_c_inline in
3141 inline | yes) ;;
3143 case $ac_cv_c_inline in
3144 no) ac_val=;;
3145 *) ac_val=$ac_cv_c_inline;;
3146 esac
3147 cat >>confdefs.h <<_ACEOF
3148 #ifndef __cplusplus
3149 #define inline $ac_val
3150 #endif
3151 _ACEOF
3153 esac
3156 echo "$as_me:$LINENO: checking for long long int" >&5
3157 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3158 if test "${ac_cv_c_long_long+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h. */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3169 main ()
3171 long long int i;
3173 return 0;
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178 (eval $ac_compile) 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -z "$ac_c_werror_flag"
3186 || test ! -s conftest.err'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 ac_cv_c_long_long=yes
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3203 ac_cv_c_long_long=no
3205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3207 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3208 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3209 if test $ac_cv_c_long_long = yes; then
3211 cat >>confdefs.h <<\_ACEOF
3212 #define HAVE_LONG_LONG 1
3213 _ACEOF
3216 echo "$as_me:$LINENO: checking for __int64" >&5
3217 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3218 if test "${ac_cv_c___int64+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3229 main ()
3231 __int64 i;
3233 return 0;
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238 (eval $ac_compile) 2>conftest.er1
3239 ac_status=$?
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -z "$ac_c_werror_flag"
3246 || test ! -s conftest.err'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 (eval $ac_try) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 (eval $ac_try) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_c___int64=yes
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 ac_cv_c___int64=no
3265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3267 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3268 echo "${ECHO_T}$ac_cv_c___int64" >&6
3269 if test $ac_cv_c___int64 = yes; then
3271 cat >>confdefs.h <<\_ACEOF
3272 #define HAVE___INT64 1
3273 _ACEOF
3278 # sizeof(char) is 1 by definition.
3279 echo "$as_me:$LINENO: checking size of void *" >&5
3280 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3281 if test "${ac_cv_sizeof_void_p+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include "confdefs.h"
3292 #include <sys/types.h>
3296 main ()
3298 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3300 return 0;
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_cv_sizeof_void_p=$ac_size
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3332 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3333 done
3337 if test x$ac_cv_sizeof_void_p = x ; then
3338 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3339 echo "$as_me: error: cannot determine a size for void *" >&2;}
3340 { (exit 1); exit 1; }; }
3342 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3343 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3345 cat >>confdefs.h <<_ACEOF
3346 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3347 _ACEOF
3350 echo "$as_me:$LINENO: checking size of short" >&5
3351 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3352 if test "${ac_cv_sizeof_short+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3356 cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h. */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3362 #include "confdefs.h"
3363 #include <sys/types.h>
3367 main ()
3369 switch (0) case 0: case (sizeof (short) == $ac_size):;
3371 return 0;
3373 _ACEOF
3374 rm -f conftest.$ac_objext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3376 (eval $ac_compile) 2>conftest.er1
3377 ac_status=$?
3378 grep -v '^ *+' conftest.er1 >conftest.err
3379 rm -f conftest.er1
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -z "$ac_c_werror_flag"
3384 || test ! -s conftest.err'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 (eval $ac_try) 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 ac_cv_sizeof_short=$ac_size
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403 if test x$ac_cv_sizeof_short != x ; then break; fi
3404 done
3408 if test x$ac_cv_sizeof_short = x ; then
3409 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3410 echo "$as_me: error: cannot determine a size for short" >&2;}
3411 { (exit 1); exit 1; }; }
3413 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3414 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3416 cat >>confdefs.h <<_ACEOF
3417 #define SIZEOF_SHORT $ac_cv_sizeof_short
3418 _ACEOF
3421 echo "$as_me:$LINENO: checking size of int" >&5
3422 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3423 if test "${ac_cv_sizeof_int+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3427 cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h. */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3433 #include "confdefs.h"
3434 #include <sys/types.h>
3438 main ()
3440 switch (0) case 0: case (sizeof (int) == $ac_size):;
3442 return 0;
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3447 (eval $ac_compile) 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -z "$ac_c_werror_flag"
3455 || test ! -s conftest.err'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; } &&
3461 { ac_try='test -s conftest.$ac_objext'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3467 ac_cv_sizeof_int=$ac_size
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3474 if test x$ac_cv_sizeof_int != x ; then break; fi
3475 done
3479 if test x$ac_cv_sizeof_int = x ; then
3480 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3481 echo "$as_me: error: cannot determine a size for int" >&2;}
3482 { (exit 1); exit 1; }; }
3484 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3485 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3487 cat >>confdefs.h <<_ACEOF
3488 #define SIZEOF_INT $ac_cv_sizeof_int
3489 _ACEOF
3492 echo "$as_me:$LINENO: checking size of long" >&5
3493 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3494 if test "${ac_cv_sizeof_long+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h. */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 #include "confdefs.h"
3505 #include <sys/types.h>
3509 main ()
3511 switch (0) case 0: case (sizeof (long) == $ac_size):;
3513 return 0;
3515 _ACEOF
3516 rm -f conftest.$ac_objext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try='test -z "$ac_c_werror_flag"
3526 || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 ac_cv_sizeof_long=$ac_size
3539 else
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545 if test x$ac_cv_sizeof_long != x ; then break; fi
3546 done
3550 if test x$ac_cv_sizeof_long = x ; then
3551 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3552 echo "$as_me: error: cannot determine a size for long" >&2;}
3553 { (exit 1); exit 1; }; }
3555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3556 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3558 cat >>confdefs.h <<_ACEOF
3559 #define SIZEOF_LONG $ac_cv_sizeof_long
3560 _ACEOF
3563 if test $ac_cv_c_long_long = yes; then
3564 echo "$as_me:$LINENO: checking size of long long" >&5
3565 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3566 if test "${ac_cv_sizeof_long_long+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include "confdefs.h"
3577 #include <sys/types.h>
3581 main ()
3583 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3585 return 0;
3587 _ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590 (eval $ac_compile) 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 { ac_try='test -z "$ac_c_werror_flag"
3598 || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 ac_cv_sizeof_long_long=$ac_size
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3617 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3618 done
3622 if test x$ac_cv_sizeof_long_long = x ; then
3623 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3624 echo "$as_me: error: cannot determine a size for long long" >&2;}
3625 { (exit 1); exit 1; }; }
3627 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3628 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3630 cat >>confdefs.h <<_ACEOF
3631 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3632 _ACEOF
3636 if test $ac_cv_c___int64 = yes; then
3637 echo "$as_me:$LINENO: checking size of __int64" >&5
3638 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3639 if test "${ac_cv_sizeof___int64+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 #include "confdefs.h"
3650 #include <sys/types.h>
3654 main ()
3656 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3658 return 0;
3660 _ACEOF
3661 rm -f conftest.$ac_objext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663 (eval $ac_compile) 2>conftest.er1
3664 ac_status=$?
3665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_c_werror_flag"
3671 || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_cv_sizeof___int64=$ac_size
3684 else
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3690 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3691 done
3695 if test x$ac_cv_sizeof___int64 = x ; then
3696 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3697 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3698 { (exit 1); exit 1; }; }
3700 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3701 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3703 cat >>confdefs.h <<_ACEOF
3704 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3705 _ACEOF
3710 # ---------------------
3711 # Warnings and checking
3712 # ---------------------
3714 # Check $CC warning features (if it's GCC).
3715 # We want to use -pedantic, but we don't want warnings about
3716 # * 'long long'
3717 # * variadic macros
3718 # So, we only use -pedantic if we can disable those warnings.
3720 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3721 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3722 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725 save_CFLAGS="$CFLAGS"
3726 CFLAGS="-Wno-long-long"
3727 cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h. */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 (eval $ac_compile) 2>conftest.er1
3738 ac_status=$?
3739 grep -v '^ *+' conftest.er1 >conftest.err
3740 rm -f conftest.er1
3741 cat conftest.err >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
3744 { ac_try='test -z "$ac_c_werror_flag"
3745 || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 ac_cv_prog_cc_w_no_long_long=yes
3758 else
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 ac_cv_prog_cc_w_no_long_long=no
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 CFLAGS="$save_CFLAGS"
3768 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3769 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3771 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3772 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3773 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 save_CFLAGS="$CFLAGS"
3777 CFLAGS="-Wno-variadic-macros"
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 ac_cv_prog_cc_w_no_variadic_macros=yes
3809 else
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 ac_cv_prog_cc_w_no_variadic_macros=no
3815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816 CFLAGS="$save_CFLAGS"
3819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3820 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3822 strict1_warn=
3823 if test $ac_cv_prog_cc_w_no_long_long = yes \
3824 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3825 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3829 # Add -Wold-style-definition if it's accepted
3830 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3831 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3832 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 save_CFLAGS="$CFLAGS"
3836 CFLAGS="-Wold-style-definition"
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3844 _ACEOF
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_prog_cc_w_old_style_definition=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_prog_cc_w_old_style_definition=no
3874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875 CFLAGS="$save_CFLAGS"
3878 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3879 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3880 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3881 strict1_warn="${strict1_warn} -Wold-style-definition"
3884 # Enable -Werror, period.
3885 # Check whether --enable-werror_always or --disable-werror_always was given.
3886 if test "${enable_werror_always+set}" = set; then
3887 enableval="$enable_werror_always"
3889 else
3890 enable_werror_always=no
3892 if test x${enable_werror_always} = xyes ; then
3893 strict1_warn="${strict1_warn} -Werror"
3894 WERROR=-Werror
3897 # If the native compiler is GCC, we can enable warnings even in stage1.
3898 # That's useful for people building cross-compilers, or just running a
3899 # quick `make'.
3900 warn_cflags=
3901 if test "x$GCC" = "xyes"; then
3902 warn_cflags='$(GCC_WARN_CFLAGS)'
3906 # Enable -Werror in bootstrap stage2 and later.
3907 # Check whether --enable-werror or --disable-werror was given.
3908 if test "${enable_werror+set}" = set; then
3909 enableval="$enable_werror"
3911 else
3912 if test x$is_release = x ; then
3913 # Default to "yes" on development branches.
3914 enable_werror=yes
3915 else
3916 # Default to "no" on release branches.
3917 enable_werror=no
3920 if test x$enable_werror = xyes ; then
3921 WERROR=-Werror
3925 # Enable expensive internal checks
3926 # Check whether --enable-checking or --disable-checking was given.
3927 if test "${enable_checking+set}" = set; then
3928 enableval="$enable_checking"
3929 ac_checking_flags="${enableval}"
3930 else
3932 # Determine the default checks.
3933 if test x$is_release = x ; then
3934 ac_checking_flags=yes
3935 else
3936 ac_checking_flags=release
3939 ac_assert_checking=1
3940 ac_checking=
3941 ac_tree_checking=
3942 ac_rtl_checking=
3943 ac_rtlflag_checking=
3944 ac_gc_checking=
3945 ac_gc_always_collect=
3946 ac_fold_checking=
3947 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3948 for check in $ac_checking_flags
3950 case $check in
3951 yes) ac_assert_checking=1 ; ac_checking=1 ;
3952 ac_tree_checking=1 ; ac_gc_checking=1 ;
3953 ac_rtlflag_checking=1 ;;
3954 no) ac_assert_checking= ; ac_checking= ;
3955 ac_tree_checking= ; ac_rtl_checking= ;
3956 ac_rtlflag_checking= ; ac_gc_checking= ;
3957 ac_gc_always_collect= ; ac_fold_checking= ;;
3958 all) ac_assert_checking=1 ; ac_checking=1 ;
3959 ac_tree_checking=1 ; ac_rtl_checking=1 ;
3960 ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
3961 ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
3962 release) ac_assert_checking=1 ;;
3963 assert) ac_assert_checking=1 ;;
3964 fold) ac_fold_checking=1 ;;
3965 gc) ac_gc_checking=1 ;;
3966 gcac) ac_gc_always_collect=1 ;;
3967 misc) ac_checking=1 ;;
3968 rtlflag) ac_rtlflag_checking=1 ;;
3969 rtl) ac_rtl_checking=1 ;;
3970 tree) ac_tree_checking=1 ;;
3971 valgrind) ac_checking_valgrind=1 ;;
3972 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3973 echo "$as_me: error: unknown check category $check" >&2;}
3974 { (exit 1); exit 1; }; } ;;
3975 esac
3976 done
3977 IFS="$ac_save_IFS"
3979 nocommon_flag=""
3980 if test x$ac_checking != x ; then
3982 cat >>confdefs.h <<\_ACEOF
3983 #define ENABLE_CHECKING 1
3984 _ACEOF
3986 nocommon_flag=-fno-common
3989 if test x$ac_assert_checking != x ; then
3991 cat >>confdefs.h <<\_ACEOF
3992 #define ENABLE_ASSERT_CHECKING 1
3993 _ACEOF
3996 if test x$ac_tree_checking != x ; then
3998 cat >>confdefs.h <<\_ACEOF
3999 #define ENABLE_TREE_CHECKING 1
4000 _ACEOF
4002 TREEBROWSER=tree-browser.o
4005 if test x$ac_rtl_checking != x ; then
4007 cat >>confdefs.h <<\_ACEOF
4008 #define ENABLE_RTL_CHECKING 1
4009 _ACEOF
4012 if test x$ac_rtlflag_checking != x ; then
4014 cat >>confdefs.h <<\_ACEOF
4015 #define ENABLE_RTL_FLAG_CHECKING 1
4016 _ACEOF
4019 if test x$ac_gc_checking != x ; then
4021 cat >>confdefs.h <<\_ACEOF
4022 #define ENABLE_GC_CHECKING 1
4023 _ACEOF
4026 if test x$ac_gc_always_collect != x ; then
4028 cat >>confdefs.h <<\_ACEOF
4029 #define ENABLE_GC_ALWAYS_COLLECT 1
4030 _ACEOF
4033 if test x$ac_fold_checking != x ; then
4035 cat >>confdefs.h <<\_ACEOF
4036 #define ENABLE_FOLD_CHECKING 1
4037 _ACEOF
4040 valgrind_path_defines=
4041 valgrind_command=
4044 echo "$as_me:$LINENO: checking for egrep" >&5
4045 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4046 if test "${ac_cv_prog_egrep+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4050 then ac_cv_prog_egrep='grep -E'
4051 else ac_cv_prog_egrep='egrep'
4054 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4055 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4056 EGREP=$ac_cv_prog_egrep
4059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4061 if test "${ac_cv_header_stdc+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <stdlib.h>
4071 #include <stdarg.h>
4072 #include <string.h>
4073 #include <float.h>
4076 main ()
4080 return 0;
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag"
4093 || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_cv_header_stdc=yes
4106 else
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4110 ac_cv_header_stdc=no
4112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 if test $ac_cv_header_stdc = yes; then
4115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <string.h>
4124 _ACEOF
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126 $EGREP "memchr" >/dev/null 2>&1; then
4128 else
4129 ac_cv_header_stdc=no
4131 rm -f conftest*
4135 if test $ac_cv_header_stdc = yes; then
4136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <stdlib.h>
4145 _ACEOF
4146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147 $EGREP "free" >/dev/null 2>&1; then
4149 else
4150 ac_cv_header_stdc=no
4152 rm -f conftest*
4156 if test $ac_cv_header_stdc = yes; then
4157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4158 if test "$cross_compiling" = yes; then
4160 else
4161 cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h. */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4167 #include <ctype.h>
4168 #if ((' ' & 0x0FF) == 0x020)
4169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4171 #else
4172 # define ISLOWER(c) \
4173 (('a' <= (c) && (c) <= 'i') \
4174 || ('j' <= (c) && (c) <= 'r') \
4175 || ('s' <= (c) && (c) <= 'z'))
4176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4177 #endif
4179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4181 main ()
4183 int i;
4184 for (i = 0; i < 256; i++)
4185 if (XOR (islower (i), ISLOWER (i))
4186 || toupper (i) != TOUPPER (i))
4187 exit(2);
4188 exit (0);
4190 _ACEOF
4191 rm -f conftest$ac_exeext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4193 (eval $ac_link) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4203 else
4204 echo "$as_me: program exited with status $ac_status" >&5
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 ( exit $ac_status )
4209 ac_cv_header_stdc=no
4211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4217 if test $ac_cv_header_stdc = yes; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define STDC_HEADERS 1
4221 _ACEOF
4225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4236 inttypes.h stdint.h unistd.h
4238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4239 echo "$as_me:$LINENO: checking for $ac_header" >&5
4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_includes_default
4252 #include <$ac_header>
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256 (eval $ac_compile) 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag"
4264 || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest.$ac_objext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 eval "$as_ac_Header=yes"
4277 else
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 eval "$as_ac_Header=no"
4283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4288 cat >>confdefs.h <<_ACEOF
4289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4290 _ACEOF
4294 done
4297 if test "${ac_cv_header_valgrind_h+set}" = set; then
4298 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4299 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4300 if test "${ac_cv_header_valgrind_h+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4304 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4305 else
4306 # Is the header compilable?
4307 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4308 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h. */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 $ac_includes_default
4316 #include <valgrind.h>
4317 _ACEOF
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>conftest.er1
4321 ac_status=$?
4322 grep -v '^ *+' conftest.er1 >conftest.err
4323 rm -f conftest.er1
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag"
4328 || test ! -s conftest.err'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 (eval $ac_try) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_header_compiler=yes
4341 else
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_header_compiler=no
4347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4349 echo "${ECHO_T}$ac_header_compiler" >&6
4351 # Is the header present?
4352 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4353 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4354 cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h. */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 #include <valgrind.h>
4361 _ACEOF
4362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4364 ac_status=$?
4365 grep -v '^ *+' conftest.er1 >conftest.err
4366 rm -f conftest.er1
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } >/dev/null; then
4370 if test -s conftest.err; then
4371 ac_cpp_err=$ac_c_preproc_warn_flag
4372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4373 else
4374 ac_cpp_err=
4376 else
4377 ac_cpp_err=yes
4379 if test -z "$ac_cpp_err"; then
4380 ac_header_preproc=yes
4381 else
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 ac_header_preproc=no
4387 rm -f conftest.err conftest.$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4389 echo "${ECHO_T}$ac_header_preproc" >&6
4391 # So? What about this header?
4392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4393 yes:no: )
4394 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4395 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4396 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4397 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4398 ac_header_preproc=yes
4400 no:yes:* )
4401 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4402 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4404 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4405 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4406 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4408 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4410 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4412 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4414 cat <<\_ASBOX
4415 ## ------------------------------------------ ##
4416 ## Report this to the AC_PACKAGE_NAME lists. ##
4417 ## ------------------------------------------ ##
4418 _ASBOX
4420 sed "s/^/$as_me: WARNING: /" >&2
4422 esac
4423 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4424 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4425 if test "${ac_cv_header_valgrind_h+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 ac_cv_header_valgrind_h=$ac_header_preproc
4430 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4431 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4434 if test $ac_cv_header_valgrind_h = yes; then
4435 have_valgrind_h=yes
4436 else
4437 have_valgrind_h=no
4442 if test x$ac_checking_valgrind != x ; then
4443 # It is certainly possible that there's valgrind but no valgrind.h.
4444 # GCC relies on making annotations so we must have both.
4445 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4446 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <valgrind/memcheck.h>
4454 #ifndef VALGRIND_DISCARD
4455 #error VALGRIND_DISCARD not defined
4456 #endif
4457 _ACEOF
4458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null; then
4466 if test -s conftest.err; then
4467 ac_cpp_err=$ac_c_preproc_warn_flag
4468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4469 else
4470 ac_cpp_err=
4472 else
4473 ac_cpp_err=yes
4475 if test -z "$ac_cpp_err"; then
4476 gcc_cv_header_valgrind_memcheck_h=yes
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 gcc_cv_header_valgrind_memcheck_h=no
4483 rm -f conftest.err conftest.$ac_ext
4484 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4485 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4486 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4487 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 #include <memcheck.h>
4495 #ifndef VALGRIND_DISCARD
4496 #error VALGRIND_DISCARD not defined
4497 #endif
4498 _ACEOF
4499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4501 ac_status=$?
4502 grep -v '^ *+' conftest.er1 >conftest.err
4503 rm -f conftest.er1
4504 cat conftest.err >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } >/dev/null; then
4507 if test -s conftest.err; then
4508 ac_cpp_err=$ac_c_preproc_warn_flag
4509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4510 else
4511 ac_cpp_err=
4513 else
4514 ac_cpp_err=yes
4516 if test -z "$ac_cpp_err"; then
4517 gcc_cv_header_memcheck_h=yes
4518 else
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4522 gcc_cv_header_memcheck_h=no
4524 rm -f conftest.err conftest.$ac_ext
4525 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4526 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4528 # Prepare PATH_SEPARATOR.
4529 # The user is always right.
4530 if test "${PATH_SEPARATOR+set}" != set; then
4531 echo "#! /bin/sh" >conf$$.sh
4532 echo "exit 0" >>conf$$.sh
4533 chmod +x conf$$.sh
4534 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4535 PATH_SEPARATOR=';'
4536 else
4537 PATH_SEPARATOR=:
4539 rm -f conf$$.sh
4542 # Find out how to test for executable files. Don't use a zero-byte file,
4543 # as systems may use methods other than mode bits to determine executability.
4544 cat >conf$$.file <<_ASEOF
4545 #! /bin/sh
4546 exit 0
4547 _ASEOF
4548 chmod +x conf$$.file
4549 if test -x conf$$.file >/dev/null 2>&1; then
4550 ac_executable_p="test -x"
4551 else
4552 ac_executable_p="test -f"
4554 rm -f conf$$.file
4556 # Extract the first word of "valgrind", so it can be a program name with args.
4557 set dummy valgrind; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_path_valgrind_path+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 case "$valgrind_path" in
4564 [\\/]* | ?:[\\/]*)
4565 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4568 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4569 for ac_dir in $PATH; do
4570 IFS="$ac_save_IFS"
4571 test -z "$ac_dir" && ac_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4574 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4575 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4576 break 2
4579 done
4580 done
4581 IFS="$ac_save_IFS"
4583 esac
4585 valgrind_path="$ac_cv_path_valgrind_path"
4586 if test -n "$valgrind_path"; then
4587 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4588 echo "${ECHO_T}$valgrind_path" >&6
4589 else
4590 echo "$as_me:$LINENO: result: no" >&5
4591 echo "${ECHO_T}no" >&6
4594 if test "x$valgrind_path" = "x" \
4595 || (test $have_valgrind_h = no \
4596 && test $gcc_cv_header_memcheck_h = no \
4597 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4598 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4599 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4600 { (exit 1); exit 1; }; }
4602 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4603 valgrind_command="$valgrind_path -q"
4605 cat >>confdefs.h <<\_ACEOF
4606 #define ENABLE_VALGRIND_CHECKING 1
4607 _ACEOF
4609 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4611 cat >>confdefs.h <<\_ACEOF
4612 #define HAVE_VALGRIND_MEMCHECK_H 1
4613 _ACEOF
4616 if test $gcc_cv_header_memcheck_h = yes; then
4618 cat >>confdefs.h <<\_ACEOF
4619 #define HAVE_MEMCHECK_H 1
4620 _ACEOF
4627 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4628 if test "${enable_mapped_location+set}" = set; then
4629 enableval="$enable_mapped_location"
4631 else
4632 enable_mapped_location=no
4635 if test "$enable_mapped_location" = yes ; then
4637 cat >>confdefs.h <<\_ACEOF
4638 #define USE_MAPPED_LOCATION 1
4639 _ACEOF
4643 # Enable code coverage collection
4644 # Check whether --enable-coverage or --disable-coverage was given.
4645 if test "${enable_coverage+set}" = set; then
4646 enableval="$enable_coverage"
4647 case "${enableval}" in
4648 yes|noopt)
4649 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4651 opt)
4652 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4655 # a.k.a. --disable-coverage
4656 coverage_flags=""
4659 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4660 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4661 { (exit 1); exit 1; }; }
4663 esac
4664 else
4665 coverage_flags=""
4669 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4670 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4671 enableval="$enable_gather_detailed_mem_stats"
4673 else
4674 enable_gather_detailed_mem_stats=no
4676 if test x$enable_gather_detailed_mem_stats = xyes ; then
4678 cat >>confdefs.h <<\_ACEOF
4679 #define GATHER_STATISTICS 1
4680 _ACEOF
4684 # -------------------------------
4685 # Miscenalleous configure options
4686 # -------------------------------
4688 # With stabs
4690 # Check whether --with-stabs or --without-stabs was given.
4691 if test "${with_stabs+set}" = set; then
4692 withval="$with_stabs"
4693 stabs="$with_stabs"
4694 else
4695 stabs=no
4698 # Determine whether or not multilibs are enabled.
4699 # Check whether --enable-multilib or --disable-multilib was given.
4700 if test "${enable_multilib+set}" = set; then
4701 enableval="$enable_multilib"
4703 else
4704 enable_multilib=yes
4708 # Enable __cxa_atexit for C++.
4709 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4710 if test "${enable___cxa_atexit+set}" = set; then
4711 enableval="$enable___cxa_atexit"
4715 # Enable threads
4716 # Pass with no value to take the default
4717 # Pass with a value to specify a thread package
4718 # Check whether --enable-threads or --disable-threads was given.
4719 if test "${enable_threads+set}" = set; then
4720 enableval="$enable_threads"
4722 else
4723 enable_threads=''
4726 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4727 if test "${enable_objc_gc+set}" = set; then
4728 enableval="$enable_objc_gc"
4729 if test x$enable_objc_gc = xno; then
4730 objc_boehm_gc=''
4731 else
4732 objc_boehm_gc=1
4734 else
4735 objc_boehm_gc=''
4739 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4740 if test "${with_dwarf2+set}" = set; then
4741 withval="$with_dwarf2"
4742 dwarf2="$with_dwarf2"
4743 else
4744 dwarf2=no
4747 # Check whether --enable-shared or --disable-shared was given.
4748 if test "${enable_shared+set}" = set; then
4749 enableval="$enable_shared"
4751 case $enable_shared in
4752 yes | no) ;;
4754 enable_shared=no
4755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4756 for pkg in $enableval; do
4757 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4758 enable_shared=yes
4760 done
4761 IFS="$ac_save_ifs"
4763 esac
4765 else
4766 enable_shared=yes
4771 # Check whether --with-sysroot or --without-sysroot was given.
4772 if test "${with_sysroot+set}" = set; then
4773 withval="$with_sysroot"
4775 case ${with_sysroot} in
4776 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4777 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4778 esac
4780 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4781 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4783 if test "x$exec_prefix" = xNONE; then
4784 if test "x$prefix" = xNONE; then
4785 test_prefix=/usr/local
4786 else
4787 test_prefix=$prefix
4789 else
4790 test_prefix=$exec_prefix
4792 case ${TARGET_SYSTEM_ROOT} in
4793 "${test_prefix}"|"${test_prefix}/"*|\
4794 '${exec_prefix}'|'${exec_prefix}/'*)
4795 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4796 TARGET_SYSTEM_ROOT_DEFINE="$t"
4798 esac
4800 else
4802 TARGET_SYSTEM_ROOT=
4803 TARGET_SYSTEM_ROOT_DEFINE=
4804 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4811 # Build with intermodule optimisations
4812 # Check whether --enable-intermodule or --disable-intermodule was given.
4813 if test "${enable_intermodule+set}" = set; then
4814 enableval="$enable_intermodule"
4815 case ${enable_intermodule} in
4816 yes) onestep="-onestep";;
4817 *) onestep="";;
4818 esac
4819 else
4820 onestep=""
4824 # Sanity check enable_languages in case someone does not run the toplevel
4825 # configure # script.
4826 # Check whether --enable-languages or --disable-languages was given.
4827 if test "${enable_languages+set}" = set; then
4828 enableval="$enable_languages"
4829 case ,${enable_languages}, in
4830 ,,|,yes,)
4831 # go safe -- we cannot be much sure without the toplevel
4832 # configure's
4833 # analysis of which target libs are present and usable
4834 enable_languages=c
4836 *,all,*)
4837 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4838 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4839 { (exit 1); exit 1; }; }
4841 *,c,*)
4844 enable_languages=c,${enable_languages}
4846 esac
4847 else
4848 enable_languages=c
4851 subdirs=
4852 for lang in ${srcdir}/*/config-lang.in
4854 case $lang in
4855 # The odd quoting in the next line works around
4856 # an apparent bug in bash 1.12 on linux.
4857 ${srcdir}/[*]/config-lang.in) ;;
4859 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4860 if test "x$lang_alias" = x
4861 then
4862 echo "$lang doesn't set \$language." 1>&2
4863 exit 1
4865 case ",$enable_languages," in
4866 *,$lang_alias,*)
4867 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4868 esac
4870 esac
4871 done
4874 # -------------------------
4875 # Checks for other programs
4876 # -------------------------
4878 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4879 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4880 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4881 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884 cat >conftest.make <<\_ACEOF
4885 all:
4886 @echo 'ac_maketemp="$(MAKE)"'
4887 _ACEOF
4888 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4889 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4890 if test -n "$ac_maketemp"; then
4891 eval ac_cv_prog_make_${ac_make}_set=yes
4892 else
4893 eval ac_cv_prog_make_${ac_make}_set=no
4895 rm -f conftest.make
4897 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4898 echo "$as_me:$LINENO: result: yes" >&5
4899 echo "${ECHO_T}yes" >&6
4900 SET_MAKE=
4901 else
4902 echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6
4904 SET_MAKE="MAKE=${MAKE-make}"
4908 # Find some useful tools
4909 for ac_prog in gawk mawk nawk awk
4911 # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy $ac_prog; ac_word=$2
4913 echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915 if test "${ac_cv_prog_AWK+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918 if test -n "$AWK"; then
4919 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_AWK="$ac_prog"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4932 done
4933 done
4937 AWK=$ac_cv_prog_AWK
4938 if test -n "$AWK"; then
4939 echo "$as_me:$LINENO: result: $AWK" >&5
4940 echo "${ECHO_T}$AWK" >&6
4941 else
4942 echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4946 test -n "$AWK" && break
4947 done
4949 # We need awk to create options.c and options.h.
4950 # Bail out if it's missing.
4951 case ${AWK} in
4952 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4953 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4955 esac
4957 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4958 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4959 if test "${gcc_cv_prog_LN_S+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 rm -f conftestdata_t
4963 echo >conftestdata_f
4964 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4965 then
4966 gcc_cv_prog_LN_S="ln -s"
4967 else
4968 if ln conftestdata_f conftestdata_t 2>/dev/null
4969 then
4970 gcc_cv_prog_LN_S=ln
4971 else
4972 gcc_cv_prog_LN_S=cp
4975 rm -f conftestdata_f conftestdata_t
4978 LN_S="$gcc_cv_prog_LN_S"
4979 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4980 echo "$as_me:$LINENO: result: yes" >&5
4981 echo "${ECHO_T}yes" >&6
4982 else
4983 if test "$gcc_cv_prog_LN_S" = "ln"; then
4984 echo "$as_me:$LINENO: result: no, using ln" >&5
4985 echo "${ECHO_T}no, using ln" >&6
4986 else
4987 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4988 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4992 echo "$as_me:$LINENO: checking whether ln works" >&5
4993 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4994 if test "${acx_cv_prog_LN+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 rm -f conftestdata_t
4998 echo >conftestdata_f
4999 if ln conftestdata_f conftestdata_t 2>/dev/null
5000 then
5001 acx_cv_prog_LN=ln
5002 else
5003 acx_cv_prog_LN=no
5005 rm -f conftestdata_f conftestdata_t
5008 if test $acx_cv_prog_LN = no; then
5009 LN="$LN_S"
5010 echo "$as_me:$LINENO: result: no, using $LN" >&5
5011 echo "${ECHO_T}no, using $LN" >&6
5012 else
5013 LN="$acx_cv_prog_LN"
5014 echo "$as_me:$LINENO: result: yes" >&5
5015 echo "${ECHO_T}yes" >&6
5018 if test -n "$ac_tool_prefix"; then
5019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5020 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5021 echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_prog_RANLIB+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026 if test -n "$RANLIB"; then
5027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5040 done
5041 done
5045 RANLIB=$ac_cv_prog_RANLIB
5046 if test -n "$RANLIB"; then
5047 echo "$as_me:$LINENO: result: $RANLIB" >&5
5048 echo "${ECHO_T}$RANLIB" >&6
5049 else
5050 echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5055 if test -z "$ac_cv_prog_RANLIB"; then
5056 ac_ct_RANLIB=$RANLIB
5057 # Extract the first word of "ranlib", so it can be a program name with args.
5058 set dummy ranlib; ac_word=$2
5059 echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5061 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064 if test -n "$ac_ct_RANLIB"; then
5065 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_prog_ac_ct_RANLIB="ranlib"
5075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5078 done
5079 done
5081 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5084 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5085 if test -n "$ac_ct_RANLIB"; then
5086 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5087 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5088 else
5089 echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6
5093 RANLIB=$ac_ct_RANLIB
5094 else
5095 RANLIB="$ac_cv_prog_RANLIB"
5098 case "${host}" in
5099 *-*-darwin*)
5100 # By default, the Darwin ranlib will not treat common symbols as
5101 # definitions when building the archive table of contents. Other
5102 # ranlibs do that; pass an option to the Darwin ranlib that makes
5103 # it behave similarly.
5104 ranlib_flags="-c"
5107 ranlib_flags=""
5108 esac
5111 # Find a good install program. We prefer a C program (faster),
5112 # so one script is as good as another. But avoid the broken or
5113 # incompatible versions:
5114 # SysV /etc/install, /usr/sbin/install
5115 # SunOS /usr/etc/install
5116 # IRIX /sbin/install
5117 # AIX /bin/install
5118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5120 # ./install, which can be erroneously created by make from ./install.sh.
5121 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5122 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5123 if test -z "$INSTALL"; then
5124 if test "${ac_cv_path_install+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5128 for ac_dir in $PATH; do
5129 # Account for people who put trailing slashes in PATH elements.
5130 case "$ac_dir/" in
5131 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5133 # OSF1 and SCO ODT 3.0 have their own names for install.
5134 for ac_prog in ginstall scoinst install; do
5135 if test -f $ac_dir/$ac_prog; then
5136 if test $ac_prog = install &&
5137 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5138 # AIX install. It has an incompatible calling convention.
5139 # OSF/1 installbsd also uses dspmsg, but is usable.
5141 else
5142 ac_cv_path_install="$ac_dir/$ac_prog -c"
5143 break 2
5146 done
5148 esac
5149 done
5150 IFS="$ac_save_IFS"
5153 if test "${ac_cv_path_install+set}" = set; then
5154 INSTALL="$ac_cv_path_install"
5155 else
5156 # As a last resort, use the slow shell script. We don't cache a
5157 # path for INSTALL within a source directory, because that will
5158 # break other packages using the cache if that directory is
5159 # removed, or if the path is relative.
5160 INSTALL="$ac_install_sh"
5163 echo "$as_me:$LINENO: result: $INSTALL" >&5
5164 echo "${ECHO_T}$INSTALL" >&6
5166 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5167 # It thinks the first close brace ends the variable substitution.
5168 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5170 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5173 # See if cmp has --ignore-initial.
5174 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5175 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5176 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 echo abfoo >t1
5180 echo cdfoo >t2
5181 gcc_cv_prog_cmp_skip=slowcompare
5182 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5183 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5185 else
5186 gcc_cv_prog_cmp_skip=gnucompare
5189 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5190 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5191 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5193 else
5194 gcc_cv_prog_cmp_skip=fastcompare
5198 rm t1 t2
5201 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5202 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5203 make_compare_target=$gcc_cv_prog_cmp_skip
5207 # See if we have the mktemp command.
5208 # Extract the first word of "mktemp", so it can be a program name with args.
5209 set dummy mktemp; ac_word=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 if test -n "$have_mktemp_command"; then
5216 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_have_mktemp_command="yes"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5229 done
5230 done
5232 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5235 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5236 if test -n "$have_mktemp_command"; then
5237 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5238 echo "${ECHO_T}$have_mktemp_command" >&6
5239 else
5240 echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5245 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
5247 # See if makeinfo has been installed and is modern enough
5248 # that we can use it.
5249 # Extract the first word of "makeinfo", so it can be a program name with args.
5250 set dummy makeinfo; ac_word=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 if test -n "$MAKEINFO"; then
5257 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_MAKEINFO="makeinfo"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5270 done
5271 done
5275 MAKEINFO=$ac_cv_prog_MAKEINFO
5276 if test -n "$MAKEINFO"; then
5277 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5278 echo "${ECHO_T}$MAKEINFO" >&6
5279 else
5280 echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5284 if test -n "$MAKEINFO"; then
5285 # Found it, now check the version.
5286 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5287 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5288 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 ac_prog_version=`$MAKEINFO --version 2>&1 |
5292 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5293 echo "configure:5293: version of makeinfo is $ac_prog_version" >&5
5294 case $ac_prog_version in
5295 '') gcc_cv_prog_makeinfo_modern=no;;
5296 4.[2-9]*)
5297 gcc_cv_prog_makeinfo_modern=yes;;
5298 *) gcc_cv_prog_makeinfo_modern=no;;
5299 esac
5302 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5303 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5304 else
5305 gcc_cv_prog_makeinfo_modern=no
5308 if test $gcc_cv_prog_makeinfo_modern = no; then
5309 MAKEINFO="$MISSING makeinfo"
5310 { echo "$as_me:$LINENO: WARNING:
5311 *** Makeinfo is missing or too old.
5312 *** Info documentation will not be built." >&5
5313 echo "$as_me: WARNING:
5314 *** Makeinfo is missing or too old.
5315 *** Info documentation will not be built." >&2;}
5316 BUILD_INFO=
5317 else
5318 BUILD_INFO=info
5322 # Is pod2man recent enough to regenerate manpages?
5323 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5324 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5325 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5326 echo "$as_me:$LINENO: result: yes" >&5
5327 echo "${ECHO_T}yes" >&6
5328 GENERATED_MANPAGES=generated-manpages
5329 else
5330 echo "$as_me:$LINENO: result: no" >&5
5331 echo "${ECHO_T}no" >&6
5332 GENERATED_MANPAGES=
5336 # How about lex?
5337 for ac_prog in flex
5339 # Extract the first word of "$ac_prog", so it can be a program name with args.
5340 set dummy $ac_prog; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_prog_FLEX+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346 if test -n "$FLEX"; then
5347 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_FLEX="$ac_prog"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5360 done
5361 done
5365 FLEX=$ac_cv_prog_FLEX
5366 if test -n "$FLEX"; then
5367 echo "$as_me:$LINENO: result: $FLEX" >&5
5368 echo "${ECHO_T}$FLEX" >&6
5369 else
5370 echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5374 test -n "$FLEX" && break
5375 done
5376 test -n "$FLEX" || FLEX="$MISSING flex"
5379 # Bison?
5380 for ac_prog in bison
5382 # Extract the first word of "$ac_prog", so it can be a program name with args.
5383 set dummy $ac_prog; ac_word=$2
5384 echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5386 if test "${ac_cv_prog_BISON+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 if test -n "$BISON"; then
5390 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399 ac_cv_prog_BISON="$ac_prog"
5400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5403 done
5404 done
5408 BISON=$ac_cv_prog_BISON
5409 if test -n "$BISON"; then
5410 echo "$as_me:$LINENO: result: $BISON" >&5
5411 echo "${ECHO_T}$BISON" >&6
5412 else
5413 echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5417 test -n "$BISON" && break
5418 done
5419 test -n "$BISON" || BISON="$MISSING bison"
5422 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
5423 # check for build == host before using them.
5425 # NM
5426 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
5427 && test -d ../binutils ; then
5428 NM='$(objdir)/../binutils/nm-new'
5429 else
5430 # Extract the first word of "nm", so it can be a program name with args.
5431 set dummy nm; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_prog_NM+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 if test -n "$NM"; then
5438 ac_cv_prog_NM="$NM" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_prog_NM="nm"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5451 done
5452 done
5454 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5457 NM=$ac_cv_prog_NM
5458 if test -n "$NM"; then
5459 echo "$as_me:$LINENO: result: $NM" >&5
5460 echo "${ECHO_T}$NM" >&6
5461 else
5462 echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5468 # AR
5469 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
5470 && test -d ../binutils ; then
5471 AR='$(objdir)/../binutils/ar'
5472 else
5473 # Extract the first word of "ar", so it can be a program name with args.
5474 set dummy ar; ac_word=$2
5475 echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5477 if test "${ac_cv_prog_AR+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 if test -n "$AR"; then
5481 ac_cv_prog_AR="$AR" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_AR="ar"
5491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5494 done
5495 done
5497 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
5500 AR=$ac_cv_prog_AR
5501 if test -n "$AR"; then
5502 echo "$as_me:$LINENO: result: $AR" >&5
5503 echo "${ECHO_T}$AR" >&6
5504 else
5505 echo "$as_me:$LINENO: result: no" >&5
5506 echo "${ECHO_T}no" >&6
5512 # --------------------
5513 # Checks for C headers
5514 # --------------------
5516 echo "$as_me:$LINENO: checking for GNU C library" >&5
5517 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5518 if test "${gcc_cv_glibc+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521 cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h. */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #include <features.h>
5529 main ()
5532 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5533 #error Not a GNU C library system
5534 #endif
5536 return 0;
5538 _ACEOF
5539 rm -f conftest.$ac_objext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541 (eval $ac_compile) 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try='test -z "$ac_c_werror_flag"
5549 || test ! -s conftest.err'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 (eval $ac_try) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest.$ac_objext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 gcc_cv_glibc=yes
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 gcc_cv_glibc=no
5568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5571 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5572 echo "${ECHO_T}$gcc_cv_glibc" >&6
5573 if test $gcc_cv_glibc = yes; then
5575 cat >>confdefs.h <<\_ACEOF
5576 #define _GNU_SOURCE 1
5577 _ACEOF
5581 # Need to reject headers which give warnings, so that the -Werror bootstrap
5582 # works later. *sigh* This needs to come before all header checks.
5584 ac_c_preproc_warn_flag=yes
5586 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5588 if test "${ac_cv_header_stdc+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h. */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 #include <stdlib.h>
5598 #include <stdarg.h>
5599 #include <string.h>
5600 #include <float.h>
5603 main ()
5607 return 0;
5609 _ACEOF
5610 rm -f conftest.$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>conftest.er1
5613 ac_status=$?
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -z "$ac_c_werror_flag"
5620 || test ! -s conftest.err'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 (eval $ac_try) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try='test -s conftest.$ac_objext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_cv_header_stdc=yes
5633 else
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5637 ac_cv_header_stdc=no
5639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641 if test $ac_cv_header_stdc = yes; then
5642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <string.h>
5651 _ACEOF
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "memchr" >/dev/null 2>&1; then
5655 else
5656 ac_cv_header_stdc=no
5658 rm -f conftest*
5662 if test $ac_cv_header_stdc = yes; then
5663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 #include <stdlib.h>
5672 _ACEOF
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "free" >/dev/null 2>&1; then
5676 else
5677 ac_cv_header_stdc=no
5679 rm -f conftest*
5683 if test $ac_cv_header_stdc = yes; then
5684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5685 if test "$cross_compiling" = yes; then
5687 else
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 #include <ctype.h>
5695 #if ((' ' & 0x0FF) == 0x020)
5696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5698 #else
5699 # define ISLOWER(c) \
5700 (('a' <= (c) && (c) <= 'i') \
5701 || ('j' <= (c) && (c) <= 'r') \
5702 || ('s' <= (c) && (c) <= 'z'))
5703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5704 #endif
5706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5708 main ()
5710 int i;
5711 for (i = 0; i < 256; i++)
5712 if (XOR (islower (i), ISLOWER (i))
5713 || toupper (i) != TOUPPER (i))
5714 exit(2);
5715 exit (0);
5717 _ACEOF
5718 rm -f conftest$ac_exeext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720 (eval $ac_link) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 (eval $ac_try) 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5730 else
5731 echo "$as_me: program exited with status $ac_status" >&5
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5735 ( exit $ac_status )
5736 ac_cv_header_stdc=no
5738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5742 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5743 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5744 if test $ac_cv_header_stdc = yes; then
5746 cat >>confdefs.h <<\_ACEOF
5747 #define STDC_HEADERS 1
5748 _ACEOF
5752 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5753 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5754 if test "${ac_cv_header_time+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 #include <sys/types.h>
5764 #include <sys/time.h>
5765 #include <time.h>
5768 main ()
5770 if ((struct tm *) 0)
5771 return 0;
5773 return 0;
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 ac_cv_header_time=yes
5799 else
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 ac_cv_header_time=no
5805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5808 echo "${ECHO_T}$ac_cv_header_time" >&6
5809 if test $ac_cv_header_time = yes; then
5811 cat >>confdefs.h <<\_ACEOF
5812 #define TIME_WITH_SYS_TIME 1
5813 _ACEOF
5817 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5818 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5819 if test "${gcc_cv_header_string+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <string.h>
5829 #include <strings.h>
5831 main ()
5835 return 0;
5837 _ACEOF
5838 rm -f conftest.$ac_objext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } &&
5847 { ac_try='test -z "$ac_c_werror_flag"
5848 || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 gcc_cv_header_string=yes
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 gcc_cv_header_string=no
5867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5869 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5870 echo "${ECHO_T}$gcc_cv_header_string" >&6
5871 if test $gcc_cv_header_string = yes; then
5873 cat >>confdefs.h <<\_ACEOF
5874 #define STRING_WITH_STRINGS 1
5875 _ACEOF
5879 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5880 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5881 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h. */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 #include <sys/types.h>
5891 #include <sys/wait.h>
5892 #ifndef WEXITSTATUS
5893 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5894 #endif
5895 #ifndef WIFEXITED
5896 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5897 #endif
5900 main ()
5902 int s;
5903 wait (&s);
5904 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5906 return 0;
5908 _ACEOF
5909 rm -f conftest.$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_c_werror_flag"
5919 || test ! -s conftest.err'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; } &&
5925 { ac_try='test -s conftest.$ac_objext'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 ac_cv_header_sys_wait_h=yes
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 ac_cv_header_sys_wait_h=no
5938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5941 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5942 if test $ac_cv_header_sys_wait_h = yes; then
5944 cat >>confdefs.h <<\_ACEOF
5945 #define HAVE_SYS_WAIT_H 1
5946 _ACEOF
5971 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5972 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5973 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5974 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977 echo "$as_me:$LINENO: checking for $ac_header" >&5
5978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <$ac_header>
5989 _ACEOF
5990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } >/dev/null; then
5998 if test -s conftest.err; then
5999 ac_cpp_err=$ac_c_preproc_warn_flag
6000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6001 else
6002 ac_cpp_err=
6004 else
6005 ac_cpp_err=yes
6007 if test -z "$ac_cpp_err"; then
6008 eval "$as_ac_Header=yes"
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 eval "$as_ac_Header=no"
6015 rm -f conftest.err conftest.$ac_ext
6017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6020 cat >>confdefs.h <<_ACEOF
6021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6022 _ACEOF
6025 done
6028 # Check for thread headers.
6029 echo "$as_me:$LINENO: checking for thread.h" >&5
6030 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6031 if test "${ac_cv_header_thread_h+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #include <thread.h>
6041 _ACEOF
6042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6044 ac_status=$?
6045 grep -v '^ *+' conftest.er1 >conftest.err
6046 rm -f conftest.er1
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } >/dev/null; then
6050 if test -s conftest.err; then
6051 ac_cpp_err=$ac_c_preproc_warn_flag
6052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6053 else
6054 ac_cpp_err=
6056 else
6057 ac_cpp_err=yes
6059 if test -z "$ac_cpp_err"; then
6060 ac_cv_header_thread_h=yes
6061 else
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_cv_header_thread_h=no
6067 rm -f conftest.err conftest.$ac_ext
6069 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6070 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6071 if test $ac_cv_header_thread_h = yes; then
6072 have_thread_h=yes
6073 else
6074 have_thread_h=
6077 echo "$as_me:$LINENO: checking for pthread.h" >&5
6078 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6079 if test "${ac_cv_header_pthread_h+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 #include <pthread.h>
6089 _ACEOF
6090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6092 ac_status=$?
6093 grep -v '^ *+' conftest.er1 >conftest.err
6094 rm -f conftest.er1
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } >/dev/null; then
6098 if test -s conftest.err; then
6099 ac_cpp_err=$ac_c_preproc_warn_flag
6100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6101 else
6102 ac_cpp_err=
6104 else
6105 ac_cpp_err=yes
6107 if test -z "$ac_cpp_err"; then
6108 ac_cv_header_pthread_h=yes
6109 else
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_cv_header_pthread_h=no
6115 rm -f conftest.err conftest.$ac_ext
6117 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6118 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6119 if test $ac_cv_header_pthread_h = yes; then
6120 have_pthread_h=yes
6121 else
6122 have_pthread_h=
6126 # These tests can't be done till we know if we have limits.h.
6127 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6128 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6129 if test "${gcc_cv_decl_char_bit+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 #ifdef HAVE_LIMITS_H
6139 #include <limits.h>
6140 #endif
6141 #ifdef CHAR_BIT
6142 found
6143 #endif
6144 _ACEOF
6145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6146 $EGREP "found" >/dev/null 2>&1; then
6147 gcc_cv_decl_char_bit=yes
6148 else
6149 gcc_cv_decl_char_bit=no
6151 rm -f conftest*
6155 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6156 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6157 if test $gcc_cv_decl_char_bit = no; then
6158 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6159 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6160 if test "${gcc_cv_c_nbby+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6164 gcc_cv_c_nbby=
6165 while test $i -lt 65; do
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6174 main ()
6176 switch(0) {
6177 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6178 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6181 return 0;
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186 (eval $ac_compile) 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try='test -z "$ac_c_werror_flag"
6194 || test ! -s conftest.err'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; } &&
6200 { ac_try='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 gcc_cv_c_nbby=$i; break
6207 else
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 i=`expr $i + 1`
6214 done
6215 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6218 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6219 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6220 if test $gcc_cv_c_nbby = failed; then
6221 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6222 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6223 { (exit 1); exit 1; }; }
6224 else
6226 cat >>confdefs.h <<_ACEOF
6227 #define CHAR_BIT $gcc_cv_c_nbby
6228 _ACEOF
6232 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6233 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6234 if test "${ac_cv_c_bigendian+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237 ac_cv_c_bigendian=unknown
6238 # See if sys/param.h defines the BYTE_ORDER macro.
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h. */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 #include <sys/types.h>
6246 #include <sys/param.h>
6248 main ()
6251 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6252 bogus endian macros
6253 #endif
6255 return 0;
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260 (eval $ac_compile) 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -z "$ac_c_werror_flag"
6268 || test ! -s conftest.err'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try='test -s conftest.$ac_objext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 # It does; now see whether it defined to BIG_ENDIAN or not.
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h. */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 #include <sys/types.h>
6288 #include <sys/param.h>
6290 main ()
6293 #if BYTE_ORDER != BIG_ENDIAN
6294 not big endian
6295 #endif
6297 return 0;
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_c_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try='test -s conftest.$ac_objext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_c_bigendian=yes
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6327 ac_cv_c_bigendian=no
6329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6330 else
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6336 if test $ac_cv_c_bigendian = unknown; then
6337 if test "$cross_compiling" = yes; then
6338 echo $ac_n "cross-compiling... " 2>&6
6339 else
6340 cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h. */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6346 main () {
6347 /* Are we little or big endian? From Harbison&Steele. */
6348 union
6350 long l;
6351 char c[sizeof (long)];
6352 } u;
6353 u.l = 1;
6354 exit (u.c[sizeof (long) - 1] == 1);
6356 _ACEOF
6357 rm -f conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359 (eval $ac_link) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_cv_c_bigendian=no
6369 else
6370 echo "$as_me: program exited with status $ac_status" >&5
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6374 ( exit $ac_status )
6375 ac_cv_c_bigendian=yes
6377 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6381 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6382 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6383 if test $ac_cv_c_bigendian = unknown; then
6384 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6385 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6387 cat >conftest.c <<EOF
6388 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6389 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6390 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6391 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6392 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6393 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6394 int main() { _ascii (); _ebcdic (); return 0; }
6396 if test -f conftest.c ; then
6397 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6398 if test `grep -l BIGenDianSyS conftest.o` ; then
6399 echo $ac_n ' big endian probe OK, ' 1>&6
6400 ac_cv_c_bigendian=yes
6402 if test `grep -l LiTTleEnDian conftest.o` ; then
6403 echo $ac_n ' little endian probe OK, ' 1>&6
6404 if test $ac_cv_c_bigendian = yes ; then
6405 ac_cv_c_bigendian=unknown;
6406 else
6407 ac_cv_c_bigendian=no
6410 echo $ac_n 'guessing bigendian ... ' >&6
6413 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6414 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6416 if test $ac_cv_c_bigendian = yes; then
6418 cat >>confdefs.h <<\_ACEOF
6419 #define WORDS_BIGENDIAN 1
6420 _ACEOF
6423 cat >>confdefs.h <<\_ACEOF
6424 #define HOST_WORDS_BIG_ENDIAN 1
6425 _ACEOF
6427 BYTEORDER=4321
6428 else
6429 BYTEORDER=1234
6432 cat >>confdefs.h <<_ACEOF
6433 #define BYTEORDER $BYTEORDER
6434 _ACEOF
6436 if test $ac_cv_c_bigendian = unknown; then
6437 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6438 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6439 { (exit 1); exit 1; }; }
6443 # --------
6444 # UNSORTED
6445 # --------
6447 # Stage specific cflags for build.
6448 stage1_cflags=
6449 case $build in
6450 vax-*-*)
6451 if test x$GCC = xyes
6452 then
6453 stage1_cflags="-Wa,-J"
6454 else
6455 stage1_cflags="-J"
6458 powerpc-*-darwin*)
6459 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6460 # sources; use -no-cpp-precomp to get to GNU cpp.
6461 # Apple's GCC has bugs in designated initializer handling, so disable
6462 # that too.
6463 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6465 esac
6468 # These libraries may be used by collect2.
6469 # We may need a special search path to get them linked.
6470 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6471 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6472 if test "${gcc_cv_collect2_libs+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 save_LIBS="$LIBS"
6476 for libs in '' -lld -lmld \
6477 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6478 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6480 LIBS="$libs"
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6488 /* Override any gcc2 internal prototype to avoid an error. */
6489 #ifdef __cplusplus
6490 extern "C"
6491 #endif
6492 /* We use char because int might match the return type of a gcc2
6493 builtin and then its argument prototype would still apply. */
6494 char ldopen ();
6496 main ()
6498 ldopen ();
6500 return 0;
6502 _ACEOF
6503 rm -f conftest.$ac_objext conftest$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_c_werror_flag"
6513 || test ! -s conftest.err'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest$ac_exeext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 gcc_cv_collect2_libs="$libs"; break
6526 else
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6531 rm -f conftest.err conftest.$ac_objext \
6532 conftest$ac_exeext conftest.$ac_ext
6533 done
6534 LIBS="$save_LIBS"
6535 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6537 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6538 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6539 case $gcc_cv_collect2_libs in
6540 "none required") ;;
6541 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6542 esac
6545 # When building Ada code on Alpha, we need exc_resume which is usually in
6546 # -lexc. So test for it.
6547 save_LIBS="$LIBS"
6548 LIBS=
6549 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6550 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6551 if test "${ac_cv_search_exc_resume+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 ac_func_search_save_LIBS=$LIBS
6555 ac_cv_search_exc_resume=no
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h. */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6563 /* Override any gcc2 internal prototype to avoid an error. */
6564 #ifdef __cplusplus
6565 extern "C"
6566 #endif
6567 /* We use char because int might match the return type of a gcc2
6568 builtin and then its argument prototype would still apply. */
6569 char exc_resume ();
6571 main ()
6573 exc_resume ();
6575 return 0;
6577 _ACEOF
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest$ac_exeext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_search_exc_resume="none required"
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6606 rm -f conftest.err conftest.$ac_objext \
6607 conftest$ac_exeext conftest.$ac_ext
6608 if test "$ac_cv_search_exc_resume" = no; then
6609 for ac_lib in exc; do
6610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6611 cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h. */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6618 /* Override any gcc2 internal prototype to avoid an error. */
6619 #ifdef __cplusplus
6620 extern "C"
6621 #endif
6622 /* We use char because int might match the return type of a gcc2
6623 builtin and then its argument prototype would still apply. */
6624 char exc_resume ();
6626 main ()
6628 exc_resume ();
6630 return 0;
6632 _ACEOF
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635 (eval $ac_link) 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -z "$ac_c_werror_flag"
6643 || test ! -s conftest.err'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; } &&
6649 { ac_try='test -s conftest$ac_exeext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 ac_cv_search_exc_resume="-l$ac_lib"
6656 break
6657 else
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6662 rm -f conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6664 done
6666 LIBS=$ac_func_search_save_LIBS
6668 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6669 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6670 if test "$ac_cv_search_exc_resume" != no; then
6671 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6675 GNAT_LIBEXC="$LIBS"
6676 LIBS="$save_LIBS"
6679 # Some systems put ldexp and frexp in libm instead of libc; assume
6680 # they're both in the same place. jcf-dump needs them.
6681 save_LIBS="$LIBS"
6682 LIBS=
6683 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6684 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6685 if test "${ac_cv_search_ldexp+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688 ac_func_search_save_LIBS=$LIBS
6689 ac_cv_search_ldexp=no
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h. */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6697 /* Override any gcc2 internal prototype to avoid an error. */
6698 #ifdef __cplusplus
6699 extern "C"
6700 #endif
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6703 char ldexp ();
6705 main ()
6707 ldexp ();
6709 return 0;
6711 _ACEOF
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714 (eval $ac_link) 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -z "$ac_c_werror_flag"
6722 || test ! -s conftest.err'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 (eval $ac_try) 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; } &&
6728 { ac_try='test -s conftest$ac_exeext'
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 (eval $ac_try) 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }; then
6734 ac_cv_search_ldexp="none required"
6735 else
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6740 rm -f conftest.err conftest.$ac_objext \
6741 conftest$ac_exeext conftest.$ac_ext
6742 if test "$ac_cv_search_ldexp" = no; then
6743 for ac_lib in m; do
6744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6745 cat >conftest.$ac_ext <<_ACEOF
6746 /* confdefs.h. */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6752 /* Override any gcc2 internal prototype to avoid an error. */
6753 #ifdef __cplusplus
6754 extern "C"
6755 #endif
6756 /* We use char because int might match the return type of a gcc2
6757 builtin and then its argument prototype would still apply. */
6758 char ldexp ();
6760 main ()
6762 ldexp ();
6764 return 0;
6766 _ACEOF
6767 rm -f conftest.$ac_objext conftest$ac_exeext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6769 (eval $ac_link) 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try='test -z "$ac_c_werror_flag"
6777 || test ! -s conftest.err'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try='test -s conftest$ac_exeext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_cv_search_ldexp="-l$ac_lib"
6790 break
6791 else
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6796 rm -f conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
6798 done
6800 LIBS=$ac_func_search_save_LIBS
6802 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6803 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6804 if test "$ac_cv_search_ldexp" != no; then
6805 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6809 LDEXP_LIB="$LIBS"
6810 LIBS="$save_LIBS"
6813 # Use <inttypes.h> only if it exists,
6814 # doesn't clash with <sys/types.h>, and declares intmax_t.
6815 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6816 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6817 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 #include <sys/types.h>
6827 #include <inttypes.h>
6829 main ()
6831 intmax_t i = -1;
6833 return 0;
6835 _ACEOF
6836 rm -f conftest.$ac_objext
6837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838 (eval $ac_compile) 2>conftest.er1
6839 ac_status=$?
6840 grep -v '^ *+' conftest.er1 >conftest.err
6841 rm -f conftest.er1
6842 cat conftest.err >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try='test -z "$ac_c_werror_flag"
6846 || test ! -s conftest.err'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 (eval $ac_try) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; } &&
6852 { ac_try='test -s conftest.$ac_objext'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; }; then
6858 gcc_cv_header_inttypes_h=yes
6859 else
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6863 gcc_cv_header_inttypes_h=no
6865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6868 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6869 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6870 if test $gcc_cv_header_inttypes_h = yes; then
6872 cat >>confdefs.h <<\_ACEOF
6873 #define HAVE_INTTYPES_H 1
6874 _ACEOF
6904 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6905 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6906 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6907 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6908 setlocale
6910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6911 echo "$as_me:$LINENO: checking for $ac_func" >&5
6912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6913 if eval "test \"\${$as_ac_var+set}\" = set"; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h. */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6924 #define $ac_func innocuous_$ac_func
6926 /* System header to define __stub macros and hopefully few prototypes,
6927 which can conflict with char $ac_func (); below.
6928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6929 <limits.h> exists even on freestanding compilers. */
6931 #ifdef __STDC__
6932 # include <limits.h>
6933 #else
6934 # include <assert.h>
6935 #endif
6937 #undef $ac_func
6939 /* Override any gcc2 internal prototype to avoid an error. */
6940 #ifdef __cplusplus
6941 extern "C"
6943 #endif
6944 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */
6946 char $ac_func ();
6947 /* The GNU C library defines this for functions which it implements
6948 to always fail with ENOSYS. Some functions are actually named
6949 something starting with __ and the normal name is an alias. */
6950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6951 choke me
6952 #else
6953 char (*f) () = $ac_func;
6954 #endif
6955 #ifdef __cplusplus
6957 #endif
6960 main ()
6962 return f != $ac_func;
6964 return 0;
6966 _ACEOF
6967 rm -f conftest.$ac_objext conftest$ac_exeext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6969 (eval $ac_link) 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -z "$ac_c_werror_flag"
6977 || test ! -s conftest.err'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest$ac_exeext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6989 eval "$as_ac_var=yes"
6990 else
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 eval "$as_ac_var=no"
6996 rm -f conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
6999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7001 if test `eval echo '${'$as_ac_var'}'` = yes; then
7002 cat >>confdefs.h <<_ACEOF
7003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7004 _ACEOF
7007 done
7010 if test x$ac_cv_func_mbstowcs = xyes; then
7011 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
7012 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
7013 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016 if test "$cross_compiling" = yes; then
7017 gcc_cv_func_mbstowcs_works=yes
7018 else
7019 cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h. */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 #include <stdlib.h>
7026 int main()
7028 mbstowcs(0, "", 0);
7029 return 0;
7031 _ACEOF
7032 rm -f conftest$ac_exeext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7034 (eval $ac_link) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 gcc_cv_func_mbstowcs_works=yes
7044 else
7045 echo "$as_me: program exited with status $ac_status" >&5
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7049 ( exit $ac_status )
7050 gcc_cv_func_mbstowcs_works=no
7052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7055 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7056 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7057 if test x$gcc_cv_func_mbstowcs_works = xyes; then
7059 cat >>confdefs.h <<\_ACEOF
7060 #define HAVE_WORKING_MBSTOWCS 1
7061 _ACEOF
7066 echo "$as_me:$LINENO: checking for ssize_t" >&5
7067 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7068 if test "${ac_cv_type_ssize_t+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071 cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h. */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 $ac_includes_default
7079 main ()
7081 if ((ssize_t *) 0)
7082 return 0;
7083 if (sizeof (ssize_t))
7084 return 0;
7086 return 0;
7088 _ACEOF
7089 rm -f conftest.$ac_objext
7090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7091 (eval $ac_compile) 2>conftest.er1
7092 ac_status=$?
7093 grep -v '^ *+' conftest.er1 >conftest.err
7094 rm -f conftest.er1
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } &&
7098 { ac_try='test -z "$ac_c_werror_flag"
7099 || test ! -s conftest.err'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; } &&
7105 { ac_try='test -s conftest.$ac_objext'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 (eval $ac_try) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 ac_cv_type_ssize_t=yes
7112 else
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7116 ac_cv_type_ssize_t=no
7118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7120 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7121 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7122 if test $ac_cv_type_ssize_t = yes; then
7124 else
7126 cat >>confdefs.h <<_ACEOF
7127 #define ssize_t int
7128 _ACEOF
7133 # Try to determine the array type of the second argument of getgroups
7134 # for the target system (int or gid_t).
7135 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7136 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7137 if test "${ac_cv_type_uid_t+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 #include <sys/types.h>
7148 _ACEOF
7149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7150 $EGREP "uid_t" >/dev/null 2>&1; then
7151 ac_cv_type_uid_t=yes
7152 else
7153 ac_cv_type_uid_t=no
7155 rm -f conftest*
7158 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7159 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7160 if test $ac_cv_type_uid_t = no; then
7162 cat >>confdefs.h <<\_ACEOF
7163 #define uid_t int
7164 _ACEOF
7167 cat >>confdefs.h <<\_ACEOF
7168 #define gid_t int
7169 _ACEOF
7173 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7174 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7175 if test "${ac_cv_type_getgroups+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178 if test "$cross_compiling" = yes; then
7179 ac_cv_type_getgroups=cross
7180 else
7181 cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h. */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187 /* Thanks to Mike Rendell for this test. */
7188 #include <sys/types.h>
7189 #define NGID 256
7190 #undef MAX
7191 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7194 main ()
7196 gid_t gidset[NGID];
7197 int i, n;
7198 union { gid_t gval; long lval; } val;
7200 val.lval = -1;
7201 for (i = 0; i < NGID; i++)
7202 gidset[i] = val.gval;
7203 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7204 gidset);
7205 /* Exit non-zero if getgroups seems to require an array of ints. This
7206 happens when gid_t is short but getgroups modifies an array of ints. */
7207 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7209 _ACEOF
7210 rm -f conftest$ac_exeext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217 (eval $ac_try) 2>&5
7218 ac_status=$?
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; }; then
7221 ac_cv_type_getgroups=gid_t
7222 else
7223 echo "$as_me: program exited with status $ac_status" >&5
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 ( exit $ac_status )
7228 ac_cv_type_getgroups=int
7230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7232 if test $ac_cv_type_getgroups = cross; then
7233 cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 #include <unistd.h>
7241 _ACEOF
7242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7243 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7244 ac_cv_type_getgroups=gid_t
7245 else
7246 ac_cv_type_getgroups=int
7248 rm -f conftest*
7252 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7253 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7255 cat >>confdefs.h <<_ACEOF
7256 #define GETGROUPS_T $ac_cv_type_getgroups
7257 _ACEOF
7260 if test "${target}" = "${build}"; then
7261 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7262 else
7263 case "${target}" in
7264 # This condition may need some tweaking. It should include all
7265 # targets where the array type of the second argument of getgroups
7266 # is int and the type of gid_t is not equivalent to int.
7267 *-*-sunos* | *-*-ultrix*)
7268 TARGET_GETGROUPS_T=int
7271 TARGET_GETGROUPS_T=gid_t
7273 esac
7277 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7278 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7279 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282 if test "$cross_compiling" = yes; then
7283 gcc_cv_func_printf_ptr=no
7284 else
7285 cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h. */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7291 #include <stdio.h>
7293 int main()
7295 char buf[64];
7296 char *p = buf, *q = NULL;
7297 sprintf(buf, "%p", p);
7298 sscanf(buf, "%p", &q);
7299 return (p != q);
7301 _ACEOF
7302 rm -f conftest$ac_exeext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304 (eval $ac_link) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 (eval $ac_try) 2>&5
7310 ac_status=$?
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 gcc_cv_func_printf_ptr=yes
7314 else
7315 echo "$as_me: program exited with status $ac_status" >&5
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 ( exit $ac_status )
7320 gcc_cv_func_printf_ptr=no
7322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7324 rm -f core core.* *.core
7326 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7327 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7328 if test $gcc_cv_func_printf_ptr = yes ; then
7330 cat >>confdefs.h <<\_ACEOF
7331 #define HAVE_PRINTF_PTR 1
7332 _ACEOF
7337 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
7338 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
7339 if test "${ac_cv_header_sys_mman_h+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342 cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h. */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 #include <sys/mman.h>
7349 _ACEOF
7350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7352 ac_status=$?
7353 grep -v '^ *+' conftest.er1 >conftest.err
7354 rm -f conftest.er1
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } >/dev/null; then
7358 if test -s conftest.err; then
7359 ac_cpp_err=$ac_c_preproc_warn_flag
7360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7361 else
7362 ac_cpp_err=
7364 else
7365 ac_cpp_err=yes
7367 if test -z "$ac_cpp_err"; then
7368 ac_cv_header_sys_mman_h=yes
7369 else
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 ac_cv_header_sys_mman_h=no
7375 rm -f conftest.err conftest.$ac_ext
7377 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
7378 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
7379 if test $ac_cv_header_sys_mman_h = yes; then
7380 gcc_header_sys_mman_h=yes
7381 else
7382 gcc_header_sys_mman_h=no
7385 echo "$as_me:$LINENO: checking for mmap" >&5
7386 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
7387 if test "${ac_cv_func_mmap+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h. */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7396 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
7397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7398 #define mmap innocuous_mmap
7400 /* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char mmap (); below.
7402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7403 <limits.h> exists even on freestanding compilers. */
7405 #ifdef __STDC__
7406 # include <limits.h>
7407 #else
7408 # include <assert.h>
7409 #endif
7411 #undef mmap
7413 /* Override any gcc2 internal prototype to avoid an error. */
7414 #ifdef __cplusplus
7415 extern "C"
7417 #endif
7418 /* We use char because int might match the return type of a gcc2
7419 builtin and then its argument prototype would still apply. */
7420 char mmap ();
7421 /* The GNU C library defines this for functions which it implements
7422 to always fail with ENOSYS. Some functions are actually named
7423 something starting with __ and the normal name is an alias. */
7424 #if defined (__stub_mmap) || defined (__stub___mmap)
7425 choke me
7426 #else
7427 char (*f) () = mmap;
7428 #endif
7429 #ifdef __cplusplus
7431 #endif
7434 main ()
7436 return f != mmap;
7438 return 0;
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 (eval $ac_link) 2>conftest.er1
7444 ac_status=$?
7445 grep -v '^ *+' conftest.er1 >conftest.err
7446 rm -f conftest.er1
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag"
7451 || test ! -s conftest.err'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; } &&
7457 { ac_try='test -s conftest$ac_exeext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_func_mmap=yes
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_cv_func_mmap=no
7470 rm -f conftest.err conftest.$ac_objext \
7471 conftest$ac_exeext conftest.$ac_ext
7473 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
7474 echo "${ECHO_T}$ac_cv_func_mmap" >&6
7475 if test $ac_cv_func_mmap = yes; then
7476 gcc_func_mmap=yes
7477 else
7478 gcc_func_mmap=no
7481 if test "$gcc_header_sys_mman_h" != yes \
7482 || test "$gcc_func_mmap" != yes; then
7483 gcc_cv_func_mmap_file=no
7484 gcc_cv_func_mmap_dev_zero=no
7485 gcc_cv_func_mmap_anon=no
7486 else
7487 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7488 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7489 if test "${gcc_cv_func_mmap_file+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492 # Add a system to this blacklist if
7493 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7494 # memory area containing the same data that you'd get if you applied
7495 # read() to the same fd. The only system known to have a problem here
7496 # is VMS, where text files have record structure.
7497 case "$host_os" in
7498 vms* | ultrix*)
7499 gcc_cv_func_mmap_file=no ;;
7501 gcc_cv_func_mmap_file=yes;;
7502 esac
7504 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7505 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7506 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7507 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7508 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 # Add a system to this blacklist if it has mmap() but /dev/zero
7512 # does not exist, or if mmapping /dev/zero does not give anonymous
7513 # zeroed pages with both the following properties:
7514 # 1. If you map N consecutive pages in with one call, and then
7515 # unmap any subset of those pages, the pages that were not
7516 # explicitly unmapped remain accessible.
7517 # 2. If you map two adjacent blocks of memory and then unmap them
7518 # both at once, they must both go away.
7519 # Systems known to be in this category are Windows (all variants),
7520 # VMS, and Darwin.
7521 case "$host_os" in
7522 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7523 gcc_cv_func_mmap_dev_zero=no ;;
7525 gcc_cv_func_mmap_dev_zero=yes;;
7526 esac
7528 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7529 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7531 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7532 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7533 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7534 if test "${gcc_cv_decl_map_anon+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 #include <sys/types.h>
7544 #include <sys/mman.h>
7545 #include <unistd.h>
7547 #ifndef MAP_ANONYMOUS
7548 #define MAP_ANONYMOUS MAP_ANON
7549 #endif
7552 main ()
7554 int n = MAP_ANONYMOUS;
7556 return 0;
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7561 (eval $ac_compile) 2>conftest.er1
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } &&
7568 { ac_try='test -z "$ac_c_werror_flag"
7569 || test ! -s conftest.err'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; } &&
7575 { ac_try='test -s conftest.$ac_objext'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7581 gcc_cv_decl_map_anon=yes
7582 else
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 gcc_cv_decl_map_anon=no
7588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7590 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7591 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7593 if test $gcc_cv_decl_map_anon = no; then
7594 gcc_cv_func_mmap_anon=no
7595 else
7596 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7597 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7598 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7602 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7603 # doesn't give anonymous zeroed pages with the same properties listed
7604 # above for use of /dev/zero.
7605 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7606 case "$host_os" in
7607 vms* | cygwin* | pe | mingw* | sco* | udk* )
7608 gcc_cv_func_mmap_anon=no ;;
7610 gcc_cv_func_mmap_anon=yes;;
7611 esac
7613 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7614 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7618 if test $gcc_cv_func_mmap_file = yes; then
7620 cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_MMAP_FILE 1
7622 _ACEOF
7625 if test $gcc_cv_func_mmap_dev_zero = yes; then
7627 cat >>confdefs.h <<\_ACEOF
7628 #define HAVE_MMAP_DEV_ZERO 1
7629 _ACEOF
7632 if test $gcc_cv_func_mmap_anon = yes; then
7634 cat >>confdefs.h <<\_ACEOF
7635 #define HAVE_MMAP_ANON 1
7636 _ACEOF
7641 case "${host}" in
7642 *-*-*vms*)
7643 # Under VMS, vfork works very differently than on Unix. The standard test
7644 # won't work, and it isn't easily adaptable. It makes more sense to
7645 # just force it.
7646 ac_cv_func_vfork_works=yes
7648 esac
7649 echo "$as_me:$LINENO: checking for pid_t" >&5
7650 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7651 if test "${ac_cv_type_pid_t+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 $ac_includes_default
7662 main ()
7664 if ((pid_t *) 0)
7665 return 0;
7666 if (sizeof (pid_t))
7667 return 0;
7669 return 0;
7671 _ACEOF
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674 (eval $ac_compile) 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -z "$ac_c_werror_flag"
7682 || test ! -s conftest.err'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try='test -s conftest.$ac_objext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 ac_cv_type_pid_t=yes
7695 else
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 ac_cv_type_pid_t=no
7701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7703 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7704 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7705 if test $ac_cv_type_pid_t = yes; then
7707 else
7709 cat >>confdefs.h <<_ACEOF
7710 #define pid_t int
7711 _ACEOF
7717 for ac_header in unistd.h vfork.h
7719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7720 echo "$as_me:$LINENO: checking for $ac_header" >&5
7721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725 cat >conftest.$ac_ext <<_ACEOF
7726 /* confdefs.h. */
7727 _ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7731 #include <$ac_header>
7732 _ACEOF
7733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7735 ac_status=$?
7736 grep -v '^ *+' conftest.er1 >conftest.err
7737 rm -f conftest.er1
7738 cat conftest.err >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } >/dev/null; then
7741 if test -s conftest.err; then
7742 ac_cpp_err=$ac_c_preproc_warn_flag
7743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7744 else
7745 ac_cpp_err=
7747 else
7748 ac_cpp_err=yes
7750 if test -z "$ac_cpp_err"; then
7751 eval "$as_ac_Header=yes"
7752 else
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7756 eval "$as_ac_Header=no"
7758 rm -f conftest.err conftest.$ac_ext
7760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7763 cat >>confdefs.h <<_ACEOF
7764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7765 _ACEOF
7768 done
7772 for ac_func in fork vfork
7774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7775 echo "$as_me:$LINENO: checking for $ac_func" >&5
7776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7777 if eval "test \"\${$as_ac_var+set}\" = set"; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h. */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7788 #define $ac_func innocuous_$ac_func
7790 /* System header to define __stub macros and hopefully few prototypes,
7791 which can conflict with char $ac_func (); below.
7792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7793 <limits.h> exists even on freestanding compilers. */
7795 #ifdef __STDC__
7796 # include <limits.h>
7797 #else
7798 # include <assert.h>
7799 #endif
7801 #undef $ac_func
7803 /* Override any gcc2 internal prototype to avoid an error. */
7804 #ifdef __cplusplus
7805 extern "C"
7807 #endif
7808 /* We use char because int might match the return type of a gcc2
7809 builtin and then its argument prototype would still apply. */
7810 char $ac_func ();
7811 /* The GNU C library defines this for functions which it implements
7812 to always fail with ENOSYS. Some functions are actually named
7813 something starting with __ and the normal name is an alias. */
7814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7815 choke me
7816 #else
7817 char (*f) () = $ac_func;
7818 #endif
7819 #ifdef __cplusplus
7821 #endif
7824 main ()
7826 return f != $ac_func;
7828 return 0;
7830 _ACEOF
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833 (eval $ac_link) 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -z "$ac_c_werror_flag"
7841 || test ! -s conftest.err'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; } &&
7847 { ac_try='test -s conftest$ac_exeext'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 eval "$as_ac_var=yes"
7854 else
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7858 eval "$as_ac_var=no"
7860 rm -f conftest.err conftest.$ac_objext \
7861 conftest$ac_exeext conftest.$ac_ext
7863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7865 if test `eval echo '${'$as_ac_var'}'` = yes; then
7866 cat >>confdefs.h <<_ACEOF
7867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7868 _ACEOF
7871 done
7873 if test "x$ac_cv_func_fork" = xyes; then
7874 echo "$as_me:$LINENO: checking for working fork" >&5
7875 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7876 if test "${ac_cv_func_fork_works+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879 if test "$cross_compiling" = yes; then
7880 ac_cv_func_fork_works=cross
7881 else
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* By Ruediger Kuhlmann. */
7884 #include <sys/types.h>
7885 #if HAVE_UNISTD_H
7886 # include <unistd.h>
7887 #endif
7888 /* Some systems only have a dummy stub for fork() */
7889 int main ()
7891 if (fork() < 0)
7892 exit (1);
7893 exit (0);
7895 _ACEOF
7896 rm -f conftest$ac_exeext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898 (eval $ac_link) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 (eval $ac_try) 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; }; then
7907 ac_cv_func_fork_works=yes
7908 else
7909 echo "$as_me: program exited with status $ac_status" >&5
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 ( exit $ac_status )
7914 ac_cv_func_fork_works=no
7916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7919 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7920 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7922 else
7923 ac_cv_func_fork_works=$ac_cv_func_fork
7925 if test "x$ac_cv_func_fork_works" = xcross; then
7926 case $host in
7927 *-*-amigaos* | *-*-msdosdjgpp*)
7928 # Override, as these systems have only a dummy fork() stub
7929 ac_cv_func_fork_works=no
7932 ac_cv_func_fork_works=yes
7934 esac
7935 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7936 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7938 ac_cv_func_vfork_works=$ac_cv_func_vfork
7939 if test "x$ac_cv_func_vfork" = xyes; then
7940 echo "$as_me:$LINENO: checking for working vfork" >&5
7941 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7942 if test "${ac_cv_func_vfork_works+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 if test "$cross_compiling" = yes; then
7946 ac_cv_func_vfork_works=cross
7947 else
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h. */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 /* Thanks to Paul Eggert for this test. */
7955 #include <stdio.h>
7956 #include <stdlib.h>
7957 #include <sys/types.h>
7958 #include <sys/stat.h>
7959 #include <sys/wait.h>
7960 #if HAVE_UNISTD_H
7961 # include <unistd.h>
7962 #endif
7963 #if HAVE_VFORK_H
7964 # include <vfork.h>
7965 #endif
7966 /* On some sparc systems, changes by the child to local and incoming
7967 argument registers are propagated back to the parent. The compiler
7968 is told about this with #include <vfork.h>, but some compilers
7969 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7970 static variable whose address is put into a register that is
7971 clobbered by the vfork. */
7972 static void
7973 #ifdef __cplusplus
7974 sparc_address_test (int arg)
7975 # else
7976 sparc_address_test (arg) int arg;
7977 #endif
7979 static pid_t child;
7980 if (!child) {
7981 child = vfork ();
7982 if (child < 0) {
7983 perror ("vfork");
7984 _exit(2);
7986 if (!child) {
7987 arg = getpid();
7988 write(-1, "", 0);
7989 _exit (arg);
7995 main ()
7997 pid_t parent = getpid ();
7998 pid_t child;
8000 sparc_address_test (0);
8002 child = vfork ();
8004 if (child == 0) {
8005 /* Here is another test for sparc vfork register problems. This
8006 test uses lots of local variables, at least as many local
8007 variables as main has allocated so far including compiler
8008 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8009 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8010 reuse the register of parent for one of the local variables,
8011 since it will think that parent can't possibly be used any more
8012 in this routine. Assigning to the local variable will thus
8013 munge parent in the parent process. */
8014 pid_t
8015 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8016 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8017 /* Convince the compiler that p..p7 are live; otherwise, it might
8018 use the same hardware register for all 8 local variables. */
8019 if (p != p1 || p != p2 || p != p3 || p != p4
8020 || p != p5 || p != p6 || p != p7)
8021 _exit(1);
8023 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8024 from child file descriptors. If the child closes a descriptor
8025 before it execs or exits, this munges the parent's descriptor
8026 as well. Test for this by closing stdout in the child. */
8027 _exit(close(fileno(stdout)) != 0);
8028 } else {
8029 int status;
8030 struct stat st;
8032 while (wait(&status) != child)
8034 exit(
8035 /* Was there some problem with vforking? */
8036 child < 0
8038 /* Did the child fail? (This shouldn't happen.) */
8039 || status
8041 /* Did the vfork/compiler bug occur? */
8042 || parent != getpid()
8044 /* Did the file descriptor bug occur? */
8045 || fstat(fileno(stdout), &st) != 0
8049 _ACEOF
8050 rm -f conftest$ac_exeext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8052 (eval $ac_link) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_cv_func_vfork_works=yes
8062 else
8063 echo "$as_me: program exited with status $ac_status" >&5
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 ( exit $ac_status )
8068 ac_cv_func_vfork_works=no
8070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8073 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8074 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8077 if test "x$ac_cv_func_fork_works" = xcross; then
8078 ac_cv_func_vfork_works=$ac_cv_func_vfork
8079 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8080 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8083 if test "x$ac_cv_func_vfork_works" = xyes; then
8085 cat >>confdefs.h <<\_ACEOF
8086 #define HAVE_WORKING_VFORK 1
8087 _ACEOF
8089 else
8091 cat >>confdefs.h <<\_ACEOF
8092 #define vfork fork
8093 _ACEOF
8096 if test "x$ac_cv_func_fork_works" = xyes; then
8098 cat >>confdefs.h <<\_ACEOF
8099 #define HAVE_WORKING_FORK 1
8100 _ACEOF
8107 am_cv_lib_iconv_ldpath=
8109 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8110 if test "${with_libiconv_prefix+set}" = set; then
8111 withval="$with_libiconv_prefix"
8113 for dir in `echo "$withval" | tr : ' '`; do
8114 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8115 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
8116 done
8121 for ac_header in iconv.h
8123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8124 echo "$as_me:$LINENO: checking for $ac_header" >&5
8125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129 cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h. */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 #include <$ac_header>
8136 _ACEOF
8137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } >/dev/null; then
8145 if test -s conftest.err; then
8146 ac_cpp_err=$ac_c_preproc_warn_flag
8147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8148 else
8149 ac_cpp_err=
8151 else
8152 ac_cpp_err=yes
8154 if test -z "$ac_cpp_err"; then
8155 eval "$as_ac_Header=yes"
8156 else
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 eval "$as_ac_Header=no"
8162 rm -f conftest.err conftest.$ac_ext
8164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8167 cat >>confdefs.h <<_ACEOF
8168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8169 _ACEOF
8172 done
8175 echo "$as_me:$LINENO: checking for iconv" >&5
8176 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8177 if test "${am_cv_func_iconv+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8181 am_cv_func_iconv="no, consider installing GNU libiconv"
8182 am_cv_lib_iconv=no
8183 cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h. */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8189 #include <stdlib.h>
8190 #include <iconv.h>
8192 main ()
8194 iconv_t cd = iconv_open("","");
8195 iconv(cd,NULL,NULL,NULL,NULL);
8196 iconv_close(cd);
8198 return 0;
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 am_cv_func_iconv=yes
8224 else
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8229 rm -f conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8231 if test "$am_cv_func_iconv" != yes; then
8232 am_save_LIBS="$LIBS"
8233 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 #include <stdlib.h>
8241 #include <iconv.h>
8243 main ()
8245 iconv_t cd = iconv_open("","");
8246 iconv(cd,NULL,NULL,NULL,NULL);
8247 iconv_close(cd);
8249 return 0;
8251 _ACEOF
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254 (eval $ac_link) 2>conftest.er1
8255 ac_status=$?
8256 grep -v '^ *+' conftest.er1 >conftest.err
8257 rm -f conftest.er1
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
8261 { ac_try='test -z "$ac_c_werror_flag"
8262 || test ! -s conftest.err'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; } &&
8268 { ac_try='test -s conftest$ac_exeext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 (eval $ac_try) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 am_cv_lib_iconv=yes
8275 am_cv_func_iconv=yes
8276 else
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8281 rm -f conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283 LIBS="$am_save_LIBS"
8287 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8288 echo "${ECHO_T}$am_cv_func_iconv" >&6
8289 if test "$am_cv_func_iconv" = yes; then
8291 cat >>confdefs.h <<\_ACEOF
8292 #define HAVE_ICONV 1
8293 _ACEOF
8295 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8296 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8297 if test "${am_cv_proto_iconv+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8308 #include <stdlib.h>
8309 #include <iconv.h>
8310 extern
8311 #ifdef __cplusplus
8313 #endif
8314 #if defined(__STDC__) || defined(__cplusplus)
8315 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8316 #else
8317 size_t iconv();
8318 #endif
8321 main ()
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8330 (eval $ac_compile) 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag"
8338 || test ! -s conftest.err'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; } &&
8344 { ac_try='test -s conftest.$ac_objext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 am_cv_proto_iconv_arg1=""
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 am_cv_proto_iconv_arg1="const"
8357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8358 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);"
8361 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8362 echo "$as_me:$LINENO: result: ${ac_t:-
8363 }$am_cv_proto_iconv" >&5
8364 echo "${ECHO_T}${ac_t:-
8365 }$am_cv_proto_iconv" >&6
8367 cat >>confdefs.h <<_ACEOF
8368 #define ICONV_CONST $am_cv_proto_iconv_arg1
8369 _ACEOF
8372 LIBICONV=
8373 if test "$am_cv_lib_iconv" = yes; then
8374 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8378 # Until we have in-tree GNU iconv:
8379 LIBICONV_DEP=
8383 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8384 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8385 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h. */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 #include <locale.h>
8396 main ()
8398 return LC_MESSAGES
8400 return 0;
8402 _ACEOF
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8405 (eval $ac_link) 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try='test -z "$ac_c_werror_flag"
8413 || test ! -s conftest.err'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; } &&
8419 { ac_try='test -s conftest$ac_exeext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 (eval $ac_try) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 am_cv_val_LC_MESSAGES=yes
8426 else
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 am_cv_val_LC_MESSAGES=no
8432 rm -f conftest.err conftest.$ac_objext \
8433 conftest$ac_exeext conftest.$ac_ext
8435 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8436 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8437 if test $am_cv_val_LC_MESSAGES = yes; then
8439 cat >>confdefs.h <<\_ACEOF
8440 #define HAVE_LC_MESSAGES 1
8441 _ACEOF
8446 # We will need to find libiberty.h and ansidecl.h
8447 saved_CFLAGS="$CFLAGS"
8448 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8473 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8474 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8475 fprintf_unlocked strstr errno snprintf vasprintf \
8476 malloc realloc calloc free basename getopt clock getpagesize
8478 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8479 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8480 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8481 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484 cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h. */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 #undef $ac_tr_decl
8491 #define $ac_tr_decl 1
8493 #include "ansidecl.h"
8494 #include "system.h"
8497 main ()
8499 #ifndef $ac_func
8500 char *(*pfn) = (char *(*)) $ac_func ;
8501 #endif
8503 return 0;
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8508 (eval $ac_compile) 2>conftest.er1
8509 ac_status=$?
8510 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try='test -z "$ac_c_werror_flag"
8516 || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try='test -s conftest.$ac_objext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 eval "gcc_cv_have_decl_$ac_func=yes"
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 eval "gcc_cv_have_decl_$ac_func=no"
8535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8539 echo "$as_me:$LINENO: result: yes" >&5
8540 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8541 #define $ac_tr_decl 1
8542 _ACEOF
8544 else
8545 echo "$as_me:$LINENO: result: no" >&5
8546 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8547 #define $ac_tr_decl 0
8548 _ACEOF
8552 done
8558 for ac_func in getrlimit setrlimit getrusage
8560 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8561 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8562 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8563 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 else
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h. */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 #undef $ac_tr_decl
8573 #define $ac_tr_decl 1
8575 #include "ansidecl.h"
8576 #include "system.h"
8577 #ifdef HAVE_SYS_RESOURCE_H
8578 #include <sys/resource.h>
8579 #endif
8583 main ()
8585 #ifndef $ac_func
8586 char *(*pfn) = (char *(*)) $ac_func ;
8587 #endif
8589 return 0;
8591 _ACEOF
8592 rm -f conftest.$ac_objext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8594 (eval $ac_compile) 2>conftest.er1
8595 ac_status=$?
8596 grep -v '^ *+' conftest.er1 >conftest.err
8597 rm -f conftest.er1
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try='test -z "$ac_c_werror_flag"
8602 || test ! -s conftest.err'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 (eval $ac_try) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; } &&
8608 { ac_try='test -s conftest.$ac_objext'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8614 eval "gcc_cv_have_decl_$ac_func=yes"
8615 else
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 eval "gcc_cv_have_decl_$ac_func=no"
8621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8624 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8625 echo "$as_me:$LINENO: result: yes" >&5
8626 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8627 #define $ac_tr_decl 1
8628 _ACEOF
8630 else
8631 echo "$as_me:$LINENO: result: no" >&5
8632 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8633 #define $ac_tr_decl 0
8634 _ACEOF
8638 done
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8648 #include "ansidecl.h"
8649 #include "system.h"
8650 #ifdef HAVE_SYS_RESOURCE_H
8651 #include <sys/resource.h>
8652 #endif
8655 main ()
8657 rlim_t l = 0;
8659 return 0;
8661 _ACEOF
8662 rm -f conftest.$ac_objext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664 (eval $ac_compile) 2>conftest.er1
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -z "$ac_c_werror_flag"
8672 || test ! -s conftest.err'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; } &&
8678 { ac_try='test -s conftest.$ac_objext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 (eval $ac_try) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8685 else
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8690 cat >>confdefs.h <<\_ACEOF
8691 #define rlim_t long
8692 _ACEOF
8695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8698 for ac_func in ldgetname
8700 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8701 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8702 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8703 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706 cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h. */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 #undef $ac_tr_decl
8713 #define $ac_tr_decl 1
8715 #include "ansidecl.h"
8716 #include "system.h"
8717 #ifdef HAVE_LDFCN_H
8718 #include <ldfcn.h>
8719 #endif
8723 main ()
8725 #ifndef $ac_func
8726 char *(*pfn) = (char *(*)) $ac_func ;
8727 #endif
8729 return 0;
8731 _ACEOF
8732 rm -f conftest.$ac_objext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8734 (eval $ac_compile) 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } &&
8741 { ac_try='test -z "$ac_c_werror_flag"
8742 || test ! -s conftest.err'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 (eval $ac_try) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; } &&
8748 { ac_try='test -s conftest.$ac_objext'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 (eval $ac_try) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 eval "gcc_cv_have_decl_$ac_func=yes"
8755 else
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8759 eval "gcc_cv_have_decl_$ac_func=no"
8761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8764 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8765 echo "$as_me:$LINENO: result: yes" >&5
8766 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8767 #define $ac_tr_decl 1
8768 _ACEOF
8770 else
8771 echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8773 #define $ac_tr_decl 0
8774 _ACEOF
8778 done
8782 for ac_func in times
8784 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8785 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8786 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8787 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h. */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8796 #undef $ac_tr_decl
8797 #define $ac_tr_decl 1
8799 #include "ansidecl.h"
8800 #include "system.h"
8801 #ifdef HAVE_SYS_TIMES_H
8802 #include <sys/times.h>
8803 #endif
8807 main ()
8809 #ifndef $ac_func
8810 char *(*pfn) = (char *(*)) $ac_func ;
8811 #endif
8813 return 0;
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818 (eval $ac_compile) 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag"
8826 || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest.$ac_objext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 eval "gcc_cv_have_decl_$ac_func=yes"
8839 else
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 eval "gcc_cv_have_decl_$ac_func=no"
8845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8848 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8849 echo "$as_me:$LINENO: result: yes" >&5
8850 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8851 #define $ac_tr_decl 1
8852 _ACEOF
8854 else
8855 echo "$as_me:$LINENO: result: no" >&5
8856 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8857 #define $ac_tr_decl 0
8858 _ACEOF
8862 done
8865 # More time-related stuff.
8866 echo "$as_me:$LINENO: checking for struct tms" >&5
8867 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8868 if test "${ac_cv_struct_tms+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8872 cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h. */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8879 #include "ansidecl.h"
8880 #include "system.h"
8881 #ifdef HAVE_SYS_TIMES_H
8882 #include <sys/times.h>
8883 #endif
8886 main ()
8888 struct tms tms;
8890 return 0;
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -z "$ac_c_werror_flag"
8903 || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 (eval $ac_try) 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest.$ac_objext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_struct_tms=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 ac_cv_struct_tms=no
8922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8924 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8925 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8926 if test $ac_cv_struct_tms = yes; then
8928 cat >>confdefs.h <<\_ACEOF
8929 #define HAVE_STRUCT_TMS 1
8930 _ACEOF
8934 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8935 # revisit after autoconf 2.50.
8936 echo "$as_me:$LINENO: checking for clock_t" >&5
8937 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8938 if test "${gcc_cv_type_clock_t+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h. */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 #include "ansidecl.h"
8950 #include "system.h"
8953 main ()
8955 clock_t x;
8957 return 0;
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962 (eval $ac_compile) 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag"
8970 || test ! -s conftest.err'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 (eval $ac_try) 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try='test -s conftest.$ac_objext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 gcc_cv_type_clock_t=yes
8983 else
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 gcc_cv_type_clock_t=no
8989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8991 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8992 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8993 if test $gcc_cv_type_clock_t = yes; then
8995 cat >>confdefs.h <<\_ACEOF
8996 #define HAVE_CLOCK_T 1
8997 _ACEOF
9001 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9002 CFLAGS="$saved_CFLAGS"
9004 # Check whether --enable-initfini-array or --disable-initfini-array was given.
9005 if test "${enable_initfini_array+set}" = set; then
9006 enableval="$enable_initfini_array"
9008 else
9010 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
9011 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
9012 if test "${gcc_cv_initfini_array+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 if test "$cross_compiling" = yes; then
9016 gcc_cv_initfini_array=no
9017 else
9018 cat >conftest.$ac_ext <<_ACEOF
9019 /* confdefs.h. */
9020 _ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9025 static int x = -1;
9026 int main (void) { return x; }
9027 int foo (void) { x = 0; }
9028 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9029 _ACEOF
9030 rm -f conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032 (eval $ac_link) 2>&5
9033 ac_status=$?
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 gcc_cv_initfini_array=yes
9042 else
9043 echo "$as_me: program exited with status $ac_status" >&5
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 ( exit $ac_status )
9048 gcc_cv_initfini_array=no
9050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9053 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9054 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9055 enable_initfini_array=$gcc_cv_initfini_array
9058 if test $enable_initfini_array = yes; then
9060 cat >>confdefs.h <<\_ACEOF
9061 #define HAVE_INITFINI_ARRAY 1
9062 _ACEOF
9066 # mkdir takes a single argument on some systems.
9067 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9068 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9069 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h. */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9079 #include <sys/types.h>
9080 #ifdef HAVE_SYS_STAT_H
9081 # include <sys/stat.h>
9082 #endif
9083 #ifdef HAVE_UNISTD_H
9084 # include <unistd.h>
9085 #endif
9086 #ifdef HAVE_DIRECT_H
9087 # include <direct.h>
9088 #endif
9090 main ()
9092 mkdir ("foo", 0);
9094 return 0;
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>conftest.er1
9100 ac_status=$?
9101 grep -v '^ *+' conftest.er1 >conftest.err
9102 rm -f conftest.er1
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -z "$ac_c_werror_flag"
9107 || test ! -s conftest.err'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try='test -s conftest.$ac_objext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 gcc_cv_mkdir_takes_one_arg=no
9120 else
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 gcc_cv_mkdir_takes_one_arg=yes
9126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9129 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9130 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9132 cat >>confdefs.h <<\_ACEOF
9133 #define MKDIR_TAKES_ONE_ARG 1
9134 _ACEOF
9139 # File extensions
9140 manext='.1'
9141 objext='.o'
9145 # With Setjmp/Longjmp based exception handling.
9146 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9147 if test "${enable_sjlj_exceptions+set}" = set; then
9148 enableval="$enable_sjlj_exceptions"
9149 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9151 cat >>confdefs.h <<_ACEOF
9152 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9153 _ACEOF
9157 # For platforms with the unwind ABI which includes an unwind library,
9158 # libunwind, we can choose to use the system libunwind.
9160 # Check whether --with-system-libunwind or --without-system-libunwind was given.
9161 if test "${with_system_libunwind+set}" = set; then
9162 withval="$with_system_libunwind"
9166 # --------------------------------------------------------
9167 # Build, host, and target specific configuration fragments
9168 # --------------------------------------------------------
9170 # Collect build-machine-specific information.
9171 . ${srcdir}/config.build
9173 # Collect host-machine-specific information.
9174 . ${srcdir}/config.host
9176 target_gtfiles=
9178 # Collect target-machine-specific information.
9179 . ${srcdir}/config.gcc
9181 extra_objs="${host_extra_objs} ${extra_objs}"
9182 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9184 # Default the target-machine variables that were not explicitly set.
9185 if test x"$tm_file" = x
9186 then tm_file=$cpu_type/$cpu_type.h; fi
9188 if test x"$extra_headers" = x
9189 then extra_headers=; fi
9191 if test x$md_file = x
9192 then md_file=$cpu_type/$cpu_type.md; fi
9194 if test x$out_file = x
9195 then out_file=$cpu_type/$cpu_type.c; fi
9197 if test x"$tmake_file" = x
9198 then tmake_file=$cpu_type/t-$cpu_type
9201 if test x"$dwarf2" = xyes
9202 then tm_file="$tm_file tm-dwarf2.h"
9205 # Say what files are being used for the output code and MD file.
9206 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9207 echo "Using \`$srcdir/config/$md_file' as machine description file."
9209 # If any of the xm_file variables contain nonexistent files, warn
9210 # about them and drop them.
9213 for x in $build_xm_file; do
9214 if test -f $srcdir/config/$x
9215 then bx="$bx $x"
9216 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9217 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9219 done
9220 build_xm_file="$bx"
9223 for x in $host_xm_file; do
9224 if test -f $srcdir/config/$x
9225 then hx="$hx $x"
9226 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9227 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9229 done
9230 host_xm_file="$hx"
9233 for x in $xm_file; do
9234 if test -f $srcdir/config/$x
9235 then tx="$tx $x"
9236 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9237 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9239 done
9240 xm_file="$tx"
9242 count=a
9243 for f in $tm_file; do
9244 count=${count}x
9245 done
9246 if test $count = ax; then
9247 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9248 else
9249 echo "Using the following target machine macro files:"
9250 for f in $tm_file; do
9251 echo " $srcdir/config/$f"
9252 done
9255 if test x$need_64bit_hwint = xyes; then
9257 cat >>confdefs.h <<\_ACEOF
9258 #define NEED_64BIT_HOST_WIDE_INT 1
9259 _ACEOF
9263 if test x$use_long_long_for_widest_fast_int = xyes; then
9265 cat >>confdefs.h <<\_ACEOF
9266 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
9267 _ACEOF
9271 count=a
9272 for f in $host_xm_file; do
9273 count=${count}x
9274 done
9275 if test $count = a; then
9277 elif test $count = ax; then
9278 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9279 else
9280 echo "Using the following host machine macro files:"
9281 for f in $host_xm_file; do
9282 echo " $srcdir/config/$f"
9283 done
9285 echo "Using ${out_host_hook_obj} for host machine hooks."
9287 if test "$host_xm_file" != "$build_xm_file"; then
9288 count=a
9289 for f in $build_xm_file; do
9290 count=${count}x
9291 done
9292 if test $count = a; then
9294 elif test $count = ax; then
9295 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9296 else
9297 echo "Using the following build machine macro files:"
9298 for f in $build_xm_file; do
9299 echo " $srcdir/config/$f"
9300 done
9304 # ---------
9305 # Threading
9306 # ---------
9308 # Check if a valid thread package
9309 case ${enable_threads} in
9310 "" | no)
9311 # No threads
9312 target_thread_file='single'
9314 yes)
9315 # default
9316 target_thread_file='single'
9318 aix | dce | gnat | irix | posix | rtems | \
9319 single | solaris | vxworks | win32 )
9320 target_thread_file=${enable_threads}
9323 echo "${enable_threads} is an unknown thread package" 1>&2
9324 exit 1
9326 esac
9328 if test x${thread_file} = x; then
9329 # No thread file set by target-specific clauses in config.gcc,
9330 # so use file chosen by default logic above
9331 thread_file=${target_thread_file}
9334 # Make gthr-default.h if we have a thread file.
9335 gthread_flags=
9336 if test $thread_file != single; then
9337 rm -f gthr-default.h
9338 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9339 gthread_flags=-DHAVE_GTHR_DEFAULT
9343 # --------
9344 # UNSORTED
9345 # --------
9347 if test x$enable___cxa_atexit = xyes || \
9348 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9349 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9350 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9351 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9362 #define __cxa_atexit innocuous___cxa_atexit
9364 /* System header to define __stub macros and hopefully few prototypes,
9365 which can conflict with char __cxa_atexit (); below.
9366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9367 <limits.h> exists even on freestanding compilers. */
9369 #ifdef __STDC__
9370 # include <limits.h>
9371 #else
9372 # include <assert.h>
9373 #endif
9375 #undef __cxa_atexit
9377 /* Override any gcc2 internal prototype to avoid an error. */
9378 #ifdef __cplusplus
9379 extern "C"
9381 #endif
9382 /* We use char because int might match the return type of a gcc2
9383 builtin and then its argument prototype would still apply. */
9384 char __cxa_atexit ();
9385 /* The GNU C library defines this for functions which it implements
9386 to always fail with ENOSYS. Some functions are actually named
9387 something starting with __ and the normal name is an alias. */
9388 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9389 choke me
9390 #else
9391 char (*f) () = __cxa_atexit;
9392 #endif
9393 #ifdef __cplusplus
9395 #endif
9398 main ()
9400 return f != __cxa_atexit;
9402 return 0;
9404 _ACEOF
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>conftest.er1
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_func___cxa_atexit=yes
9428 else
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ac_cv_func___cxa_atexit=no
9434 rm -f conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
9437 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9438 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9439 if test $ac_cv_func___cxa_atexit = yes; then
9441 cat >>confdefs.h <<\_ACEOF
9442 #define DEFAULT_USE_CXA_ATEXIT 1
9443 _ACEOF
9445 else
9446 echo "__cxa_atexit can't be enabled on this target"
9451 # Look for a file containing extra machine modes.
9452 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9453 extra_modes_file='$(srcdir)'/config/${extra_modes}
9456 cat >>confdefs.h <<_ACEOF
9457 #define EXTRA_MODES_FILE "config/$extra_modes"
9458 _ACEOF
9462 # auto-host.h is the file containing items generated by autoconf and is
9463 # the first file included by config.h.
9464 # If host=build, it is correct to have bconfig include auto-host.h
9465 # as well. If host!=build, we are in error and need to do more
9466 # work to find out the build config parameters.
9467 if test x$host = x$build
9468 then
9469 build_auto=auto-host.h
9470 else
9471 # We create a subdir, then run autoconf in the subdir.
9472 # To prevent recursion we set host and build for the new
9473 # invocation of configure to the build for this invocation
9474 # of configure.
9475 tempdir=build.$$
9476 rm -rf $tempdir
9477 mkdir $tempdir
9478 cd $tempdir
9479 case ${srcdir} in
9480 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9481 *) realsrcdir=../${srcdir};;
9482 esac
9483 saved_CFLAGS="${CFLAGS}"
9484 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9485 ${realsrcdir}/configure \
9486 --enable-languages=${enable_languages-all} \
9487 --target=$target_alias --host=$build_alias --build=$build_alias
9488 CFLAGS="${saved_CFLAGS}"
9490 # We just finished tests for the build machine, so rename
9491 # the file auto-build.h in the gcc directory.
9492 mv auto-host.h ../auto-build.h
9493 cd ..
9494 rm -rf $tempdir
9495 build_auto=auto-build.h
9499 tm_file="${tm_file} defaults.h"
9500 tm_p_file="${tm_p_file} tm-preds.h"
9501 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9502 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9503 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9504 # put this back in temporarily.
9505 xm_file="ansidecl.h ${xm_file}"
9507 # --------
9508 # UNSORTED
9509 # --------
9511 # Get the version trigger filename from the toplevel
9512 if test "${with_gcc_version_trigger+set}" = set; then
9513 gcc_version_trigger=$with_gcc_version_trigger
9514 else
9515 gcc_version_trigger=${srcdir}/version.c
9517 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9518 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9520 # Compile in configure arguments.
9521 if test -f configargs.h ; then
9522 # Being re-configured.
9523 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9524 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9525 else
9526 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9529 # Double all backslashes and backslash all quotes to turn
9530 # gcc_config_arguments into a C string.
9531 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9532 $gcc_config_arguments
9534 gcc_config_arguments_str=`cat conftest.out`
9535 rm -f conftest.out
9537 cat > configargs.h <<EOF
9538 /* Generated automatically. */
9539 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9540 static const char thread_model[] = "$thread_file";
9542 static const struct {
9543 const char *name, *value;
9544 } configure_default_options[] = $configure_default_options;
9547 # Internationalization
9548 PACKAGE=gcc
9549 VERSION="$gcc_version"
9551 cat >>confdefs.h <<_ACEOF
9552 #define PACKAGE "$PACKAGE"
9553 _ACEOF
9558 # If we haven't got the data from the intl directory,
9559 # assume NLS is disabled.
9560 USE_NLS=no
9561 LIBINTL=
9562 LIBINTL_DEP=
9563 INCINTL=
9564 XGETTEXT=
9565 GMSGFMT=
9566 POSUB=
9567 if test -f ../intl/config.intl; then
9568 . ../intl/config.intl
9570 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9571 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9572 if test x"$USE_NLS" != xyes; then
9573 echo "$as_me:$LINENO: result: no" >&5
9574 echo "${ECHO_T}no" >&6
9575 else
9576 echo "$as_me:$LINENO: result: yes" >&5
9577 echo "${ECHO_T}yes" >&6
9579 cat >>confdefs.h <<\_ACEOF
9580 #define ENABLE_NLS 1
9581 _ACEOF
9584 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9585 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9586 # Look for .po and .gmo files in the source directory.
9587 CATALOGS=
9588 XLINGUAS=
9589 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9590 # If there aren't any .gmo files the shell will give us the
9591 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9592 # weeded out.
9593 case "$cat" in *\**)
9594 continue;;
9595 esac
9596 # The quadruple backslash is collapsed to a double backslash
9597 # by the backticks, then collapsed again by the double quotes,
9598 # leaving us with one backslash in the sed expression (right
9599 # before the dot that mustn't act as a wildcard).
9600 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9601 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9602 # The user is allowed to set LINGUAS to a list of languages to
9603 # install catalogs for. If it's empty that means "all of them."
9604 if test "x$LINGUAS" = x; then
9605 CATALOGS="$CATALOGS $cat"
9606 XLINGUAS="$XLINGUAS $lang"
9607 else
9608 case "$LINGUAS" in *$lang*)
9609 CATALOGS="$CATALOGS $cat"
9610 XLINGUAS="$XLINGUAS $lang"
9612 esac
9614 done
9615 LINGUAS="$XLINGUAS"
9616 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9617 echo "${ECHO_T}$LINGUAS" >&6
9620 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9621 # -liconv on the link line twice.
9622 case "$LIBINTL" in *$LIBICONV*)
9623 LIBICONV= ;;
9624 esac
9626 # Windows32 Registry support for specifying GCC installation paths.
9627 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9628 if test "${enable_win32_registry+set}" = set; then
9629 enableval="$enable_win32_registry"
9632 case $host_os in
9633 win32 | pe | cygwin* | mingw32* | uwin*)
9634 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9635 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9636 if test "x$enable_win32_registry" != xno; then
9638 cat >>confdefs.h <<\_ACEOF
9639 #define ENABLE_WIN32_REGISTRY 1
9640 _ACEOF
9642 echo "$as_me:$LINENO: result: yes" >&5
9643 echo "${ECHO_T}yes" >&6
9644 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9645 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9646 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 ac_func_search_save_LIBS=$LIBS
9650 ac_cv_search_RegOpenKeyExA=no
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9658 /* Override any gcc2 internal prototype to avoid an error. */
9659 #ifdef __cplusplus
9660 extern "C"
9661 #endif
9662 /* We use char because int might match the return type of a gcc2
9663 builtin and then its argument prototype would still apply. */
9664 char RegOpenKeyExA ();
9666 main ()
9668 RegOpenKeyExA ();
9670 return 0;
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675 (eval $ac_link) 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -z "$ac_c_werror_flag"
9683 || test ! -s conftest.err'
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 { ac_try='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 (eval $ac_try) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_search_RegOpenKeyExA="none required"
9696 else
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9701 rm -f conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9704 for ac_lib in advapi32; do
9705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9713 /* Override any gcc2 internal prototype to avoid an error. */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 /* We use char because int might match the return type of a gcc2
9718 builtin and then its argument prototype would still apply. */
9719 char RegOpenKeyExA ();
9721 main ()
9723 RegOpenKeyExA ();
9725 return 0;
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730 (eval $ac_link) 2>conftest.er1
9731 ac_status=$?
9732 grep -v '^ *+' conftest.er1 >conftest.err
9733 rm -f conftest.er1
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try='test -z "$ac_c_werror_flag"
9738 || test ! -s conftest.err'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9751 break
9752 else
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9757 rm -f conftest.err conftest.$ac_objext \
9758 conftest$ac_exeext conftest.$ac_ext
9759 done
9761 LIBS=$ac_func_search_save_LIBS
9763 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9764 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9765 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9766 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9770 else
9771 echo "$as_me:$LINENO: result: no" >&5
9772 echo "${ECHO_T}no" >&6
9775 # Check if user specified a different registry key.
9776 case "x${enable_win32_registry}" in
9777 x | xyes)
9778 # default.
9779 gcc_cv_win32_registry_key="$VERSION"
9781 xno)
9782 # no registry lookup.
9783 gcc_cv_win32_registry_key=''
9786 # user-specified key.
9787 gcc_cv_win32_registry_key="$enable_win32_registry"
9789 esac
9791 if test "x$enable_win32_registry" != xno; then
9792 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9793 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9795 cat >>confdefs.h <<_ACEOF
9796 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9797 _ACEOF
9799 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9800 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9803 esac
9805 # Get an absolute path to the GCC top-level source directory
9806 holddir=`${PWDCMD-pwd}`
9807 cd $srcdir
9808 topdir=`${PWDCMD-pwd}`
9809 cd $holddir
9811 # Conditionalize the makefile for this host machine.
9812 xmake_file=
9813 for f in ${host_xmake_file}
9815 if test -f ${srcdir}/config/$f
9816 then
9817 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9819 done
9821 # Conditionalize the makefile for this target machine.
9822 tmake_file_=
9823 for f in ${tmake_file}
9825 if test -f ${srcdir}/config/$f
9826 then
9827 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9829 done
9830 tmake_file="${tmake_file_}"
9832 symbolic_link='ln -s'
9834 # If the host doesn't support symlinks, modify CC in
9835 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9836 # Otherwise, we can use "CC=$(CC)".
9837 rm -f symtest.tem
9838 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9839 then
9840 cc_set_by_configure="\$(CC)"
9841 quoted_cc_set_by_configure="\$(CC)"
9842 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9843 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9844 else
9845 rm -f symtest.tem
9846 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9847 then
9848 symbolic_link="cp -p"
9849 else
9850 symbolic_link="cp"
9852 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9853 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9854 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9855 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9857 rm -f symtest.tem
9859 out_object_file=`basename $out_file .c`.o
9861 tm_file_list=
9862 tm_include_list=
9863 for f in $tm_file; do
9864 case $f in
9865 defaults.h )
9866 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9867 tm_include_list="${tm_include_list} $f"
9870 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9871 tm_include_list="${tm_include_list} config/$f"
9873 esac
9874 done
9876 tm_p_file_list=
9877 tm_p_include_list=
9878 for f in $tm_p_file; do
9879 case $f in
9880 tm-preds.h )
9881 tm_p_file_list="${tm_p_file_list} $f"
9882 tm_p_include_list="${tm_p_include_list} $f"
9885 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9886 tm_p_include_list="${tm_p_include_list} config/$f"
9887 esac
9888 done
9890 xm_file_list=
9891 xm_include_list=
9892 for f in $xm_file; do
9893 case $f in
9894 ansidecl.h )
9895 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9896 xm_include_list="${xm_include_list} $f"
9898 auto-host.h )
9899 xm_file_list="${xm_file_list} $f"
9900 xm_include_list="${xm_include_list} $f"
9903 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9904 xm_include_list="${xm_include_list} config/$f"
9906 esac
9907 done
9909 host_xm_file_list=
9910 host_xm_include_list=
9911 for f in $host_xm_file; do
9912 case $f in
9913 ansidecl.h )
9914 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9915 host_xm_include_list="${host_xm_include_list} $f"
9917 auto-host.h )
9918 host_xm_file_list="${host_xm_file_list} $f"
9919 host_xm_include_list="${host_xm_include_list} $f"
9922 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9923 host_xm_include_list="${host_xm_include_list} config/$f"
9925 esac
9926 done
9928 build_xm_file_list=
9929 for f in $build_xm_file; do
9930 case $f in
9931 ansidecl.h )
9932 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9933 build_xm_include_list="${build_xm_include_list} $f"
9935 auto-build.h | auto-host.h )
9936 build_xm_file_list="${build_xm_file_list} $f"
9937 build_xm_include_list="${build_xm_include_list} $f"
9940 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9941 build_xm_include_list="${build_xm_include_list} config/$f"
9943 esac
9944 done
9946 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9947 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9948 CROSS=
9949 ALL=all.internal
9950 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9951 if test x$host != x$target
9952 then
9953 CROSS="-DCROSS_COMPILE"
9954 ALL=all.cross
9955 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9956 case "$host","$target" in
9957 # Darwin crosses can use the host system's libraries and headers,
9958 # because of the fat library support. Of course, it must be the
9959 # same version of Darwin on both sides. Allow the user to
9960 # just say --target=foo-darwin without a version number to mean
9961 # "the version on this system".
9962 *-*-darwin*,*-*-darwin*)
9963 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9964 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9965 if test $hostos = $targetos -o $targetos = darwin ; then
9966 CROSS=
9967 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9968 with_headers=yes
9972 i?86-*-*,x86_64-*-* \
9973 | powerpc*-*-*,powerpc64*-*-*)
9974 CROSS="$CROSS -DNATIVE_CROSS" ;;
9975 esac
9976 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9977 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9978 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9981 # If this is a cross-compiler that does not
9982 # have its own set of headers then define
9983 # inhibit_libc
9985 # If this is using newlib, without having the headers available now,
9986 # then define inhibit_libc in LIBGCC2_CFLAGS.
9987 # This prevents libgcc2 from containing any code which requires libc
9988 # support.
9989 inhibit_libc=
9990 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9991 test x$with_newlib = xyes ; } &&
9992 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9993 inhibit_libc=-Dinhibit_libc
9997 # When building gcc with a cross-compiler, we need to adjust things so
9998 # that the generator programs are still built with the native compiler.
9999 # Also, we cannot run fixincludes or fix-header.
10001 # These are the normal (build=host) settings:
10002 CC_FOR_BUILD='$(CC)'
10003 BUILD_CFLAGS='$(ALL_CFLAGS)'
10004 STMP_FIXINC=stmp-fixinc
10006 # Possibly disable fixproto, on a per-target basis.
10007 case ${use_fixproto} in
10009 STMP_FIXPROTO=
10011 yes)
10012 STMP_FIXPROTO=stmp-fixproto
10014 esac
10017 # And these apply if build != host, or we are generating coverage data
10018 if test x$build != x$host || test "x$coverage_flags" != x
10019 then
10020 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10022 if test "x$TARGET_SYSTEM_ROOT" = x; then
10023 STMP_FIXINC=
10024 STMP_FIXPROTO=
10028 # When bootstrapping from the toplevel, only run fixincludes during stage1
10029 if test -d ../prev-gcc
10030 then
10031 STMP_FIXINC=
10032 cp -R ../prev-gcc/include include
10035 # Expand extra_headers to include complete path.
10036 # This substitutes for lots of t-* files.
10037 extra_headers_list=
10038 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10039 for file in ${extra_headers} ; do
10040 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10041 done
10043 # Define collect2 in Makefile.
10044 case $host_can_use_collect2 in
10045 no) collect2= ;;
10046 *) collect2='collect2$(exeext)' ;;
10047 esac
10050 # Add a definition of USE_COLLECT2 if system wants one.
10051 case $use_collect2 in
10052 no) use_collect2= ;;
10053 "") ;;
10055 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10056 xm_defines="${xm_defines} USE_COLLECT2"
10057 case $host_can_use_collect2 in
10059 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10060 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10061 { (exit 1); exit 1; }; }
10063 esac
10065 esac
10067 # ---------------------------
10068 # Assembler & linker features
10069 # ---------------------------
10071 # Identify the assembler which will work hand-in-glove with the newly
10072 # built GCC, so that we can examine its features. This is the assembler
10073 # which will be driven by the driver program.
10075 # If build != host, and we aren't building gas in-tree, we identify a
10076 # build->target assembler and hope that it will have the same features
10077 # as the host->target assembler we'll be using.
10078 echo "$as_me:$LINENO: checking what assembler to use" >&5
10079 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10080 in_tree_gas=no
10081 gcc_cv_as=
10082 gcc_cv_gas_major_version=
10083 gcc_cv_gas_minor_version=
10084 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10085 if test -x "$DEFAULT_ASSEMBLER"; then
10086 gcc_cv_as="$DEFAULT_ASSEMBLER"
10087 elif test -x as$host_exeext; then
10088 # Build using assembler in the current directory.
10089 gcc_cv_as=./as$host_exeext
10090 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10091 && test -f ../gas/Makefile \
10092 && test x$build = x$host; then
10093 # Single tree build which includes gas. We want to prefer it
10094 # over whatever linker top-level may have detected, since
10095 # we'll use what we're building after installation anyway.
10096 in_tree_gas=yes
10097 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10098 for f in $gcc_cv_as_bfd_srcdir/configure \
10099 $gcc_cv_as_gas_srcdir/configure \
10100 $gcc_cv_as_gas_srcdir/configure.in \
10101 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10102 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10103 if test x$gcc_cv_gas_version != x; then
10104 break
10106 done
10107 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10108 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10109 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10110 case $gcc_cv_gas_patch_version in
10111 "") gcc_cv_gas_patch_version="0" ;;
10112 esac
10113 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10114 + $gcc_cv_gas_minor_version \) \* 1000 \
10115 + $gcc_cv_gas_patch_version`
10117 rm -f as$host_exeext
10118 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10119 in_tree_gas_is_elf=no
10120 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10121 || (grep 'obj_format = multi' ../gas/Makefile \
10122 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10123 then
10124 in_tree_gas_is_elf=yes
10126 elif test -x "$AS_FOR_TARGET"; then
10127 gcc_cv_as="$AS_FOR_TARGET"
10128 elif test -x "$AS" && test x$host = x$target; then
10129 gcc_cv_as="$AS"
10132 if test "x$gcc_cv_as" = x; then
10133 # Search the same directories that the installed compiler will
10134 # search. Else we may find the wrong assembler and lose. If we
10135 # do not find a suitable assembler binary, then try the user's
10136 # path.
10138 # Also note we have to check MD_EXEC_PREFIX before checking the
10139 # user's path. Unfortunately, there is no good way to get at the
10140 # value of MD_EXEC_PREFIX here. So we do a brute force search
10141 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10142 # to be fixed as part of the make/configure rewrite too.
10144 if test "x$exec_prefix" = xNONE; then
10145 if test "x$prefix" = xNONE; then
10146 test_prefix=/usr/local
10147 else
10148 test_prefix=$prefix
10150 else
10151 test_prefix=$exec_prefix
10154 # If the loop below does not find an assembler, then use whatever
10155 # one we can find in the users's path.
10156 # user's path.
10157 if test "x$program_prefix" != xNONE; then
10158 gcc_cv_as=${program_prefix}as$host_exeext
10159 else
10160 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10163 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10164 $test_prefix/libexec/gcc/$target_noncanonical \
10165 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10166 /usr/lib/gcc/$target_noncanonical \
10167 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10168 $test_prefix/$target_noncanonical/bin"
10170 if test x$host = x$target; then
10171 test_dirs="$test_dirs \
10172 /usr/libexec \
10173 /usr/ccs/gcc \
10174 /usr/ccs/bin \
10175 /udk/usr/ccs/bin \
10176 /bsd43/usr/lib/cmplrs/cc \
10177 /usr/cross64/usr/bin \
10178 /usr/lib/cmplrs/cc \
10179 /sysv/usr/lib/cmplrs/cc \
10180 /svr4/usr/lib/cmplrs/cc \
10181 /usr/bin"
10184 for dir in $test_dirs; do
10185 if test -x $dir/as$host_exeext; then
10186 gcc_cv_as=$dir/as$host_exeext
10187 break;
10189 done
10191 case $in_tree_gas in
10192 yes)
10193 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10194 echo "${ECHO_T}\"newly built gas\"" >&6
10197 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10198 echo "${ECHO_T}$gcc_cv_as" >&6
10200 esac
10202 # Identify the linker which will work hand-in-glove with the newly
10203 # built GCC, so that we can examine its features. This is the linker
10204 # which will be driven by the driver program.
10206 # If build != host, and we aren't building gas in-tree, we identify a
10207 # build->target linker and hope that it will have the same features
10208 # as the host->target linker we'll be using.
10209 echo "$as_me:$LINENO: checking what linker to use" >&5
10210 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10211 in_tree_ld=no
10212 gcc_cv_ld=
10213 gcc_cv_gld_major_version=
10214 gcc_cv_gld_minor_version=
10215 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10216 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10217 if test -x "$DEFAULT_LINKER"; then
10218 gcc_cv_ld="$DEFAULT_LINKER"
10219 elif test -x collect-ld$host_exeext; then
10220 # Build using linker in the current directory.
10221 gcc_cv_ld=./collect-ld$host_exeext
10222 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10223 && test -f ../ld/Makefile \
10224 && test x$build = x$host; then
10225 # Single tree build which includes ld. We want to prefer it
10226 # over whatever linker top-level may have detected, since
10227 # we'll use what we're building after installation anyway.
10228 in_tree_ld=yes
10229 in_tree_ld_is_elf=no
10230 if (grep 'EMUL = .*elf' ../ld/Makefile \
10231 || grep 'EMUL = .*linux' ../ld/Makefile \
10232 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
10233 in_tree_ld_is_elf=yes
10235 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
10237 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10238 if test x$gcc_cv_gld_version != x; then
10239 break
10241 done
10242 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10243 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10244 rm -f collect-ld$host_exeext
10245 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10246 2>/dev/null
10247 elif test -x "$LD_FOR_TARGET"; then
10248 gcc_cv_ld="$LD_FOR_TARGET"
10249 elif test -x "$LD" && test x$host = x$target; then
10250 gcc_cv_ld="$LD"
10253 if test "x$gcc_cv_ld" = x; then
10254 # Search the same directories that the installed compiler will
10255 # search. Else we may find the wrong linker and lose. If we
10256 # do not find a suitable linker binary, then try the user's
10257 # path.
10259 # Also note we have to check MD_EXEC_PREFIX before checking the
10260 # user's path. Unfortunately, there is no good way to get at the
10261 # value of MD_EXEC_PREFIX here. So we do a brute force search
10262 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10263 # to be fixed as part of the make/configure rewrite too.
10265 if test "x$exec_prefix" = xNONE; then
10266 if test "x$prefix" = xNONE; then
10267 test_prefix=/usr/local
10268 else
10269 test_prefix=$prefix
10271 else
10272 test_prefix=$exec_prefix
10275 # If the loop below does not find an linker, then use whatever
10276 # one we can find in the users's path.
10277 # user's path.
10278 if test "x$program_prefix" != xNONE; then
10279 gcc_cv_ld=${program_prefix}ld$host_exeext
10280 else
10281 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10284 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10285 $test_prefix/libexec/gcc/$target_noncanonical \
10286 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10287 /usr/lib/gcc/$target_noncanonical \
10288 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10289 $test_prefix/$target_noncanonical/bin"
10291 if test x$host = x$target; then
10292 test_dirs="$test_dirs \
10293 /usr/libexec \
10294 /usr/ccs/gcc \
10295 /usr/ccs/bin \
10296 /udk/usr/ccs/bin \
10297 /bsd43/usr/lib/cmplrs/cc \
10298 /usr/cross64/usr/bin \
10299 /usr/lib/cmplrs/cc \
10300 /sysv/usr/lib/cmplrs/cc \
10301 /svr4/usr/lib/cmplrs/cc \
10302 /usr/bin"
10305 for dir in $test_dirs; do
10306 if test -x $dir/ld$host_exeext; then
10307 gcc_cv_ld=$dir/ld$host_exeext
10308 break;
10310 done
10312 case $in_tree_ld in
10313 yes)
10314 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10315 echo "${ECHO_T}\"newly built ld\"" >&6
10318 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10319 echo "${ECHO_T}$gcc_cv_ld" >&6
10321 esac
10323 # Figure out what nm we will be using.
10324 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10325 echo "$as_me:$LINENO: checking what nm to use" >&5
10326 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10327 in_tree_nm=no
10328 if test -x nm$host_exeext; then
10329 gcc_cv_nm=./nm$host_exeext
10330 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10331 && test -f ../binutils/Makefile; then
10332 # Single tree build which includes binutils.
10333 in_tree_nm=yes
10334 gcc_cv_nm=./nm$host_exeext
10335 rm -f nm$host_exeext
10336 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10337 elif test "x$program_prefix" != xNONE; then
10338 gcc_cv_nm=${program_prefix}nm$host_exeext
10339 else
10340 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10342 case $in_tree_nm in
10343 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10344 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10345 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10346 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10347 esac
10349 # Figure out what objdump we will be using.
10350 echo "$as_me:$LINENO: checking what objdump to use" >&5
10351 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10352 in_tree_objdump=no
10353 if test -x objdump$host_exeext; then
10354 gcc_cv_objdump=./objdump$host_exeext
10355 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10356 && test -f ../binutils/Makefile; then
10357 # Single tree build which includes binutils.
10358 in_tree_objdump=yes
10359 gcc_cv_objdump=./objdump$host_exeext
10360 rm -f objdump$host_exeext
10361 $symbolic_link ../binutils/objdump$host_exeext \
10362 objdump$host_exeext 2>/dev/null
10363 elif test "x$program_prefix" != xNONE; then
10364 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10365 else
10366 gcc_cv_objdump=`echo objdump | \
10367 sed "${program_transform_name}"`$host_exeext
10369 case $in_tree_objdump in
10370 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10371 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10372 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10373 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10374 esac
10376 # Figure out what assembler alignment features are present.
10377 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10378 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10379 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382 gcc_cv_as_balign_and_p2align=no
10383 if test $in_tree_gas = yes; then
10384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10385 then gcc_cv_as_balign_and_p2align=yes
10387 elif test x$gcc_cv_as != x; then
10388 echo '.balign 4
10389 .p2align 2' > conftest.s
10390 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }
10396 then
10397 gcc_cv_as_balign_and_p2align=yes
10398 else
10399 echo "configure: failed program was" >&5
10400 cat conftest.s >&5
10402 rm -f conftest.o conftest.s
10405 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10406 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10407 if test $gcc_cv_as_balign_and_p2align = yes; then
10409 cat >>confdefs.h <<\_ACEOF
10410 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10411 _ACEOF
10415 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10416 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10417 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420 gcc_cv_as_max_skip_p2align=no
10421 if test $in_tree_gas = yes; then
10422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10423 then gcc_cv_as_max_skip_p2align=yes
10425 elif test x$gcc_cv_as != x; then
10426 echo '.p2align 4,,7' > conftest.s
10427 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; }
10433 then
10434 gcc_cv_as_max_skip_p2align=yes
10435 else
10436 echo "configure: failed program was" >&5
10437 cat conftest.s >&5
10439 rm -f conftest.o conftest.s
10442 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10443 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10444 if test $gcc_cv_as_max_skip_p2align = yes; then
10446 cat >>confdefs.h <<\_ACEOF
10447 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10448 _ACEOF
10452 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10453 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10454 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457 gcc_cv_as_subsection_m1=no
10458 if test $in_tree_gas = yes; then
10459 if test $in_tree_gas_is_elf = yes \
10460 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10461 then gcc_cv_as_subsection_m1=yes
10463 elif test x$gcc_cv_as != x; then
10464 echo 'conftest_label1: .word 0
10465 .subsection -1
10466 conftest_label2: .word 0
10467 .previous' > conftest.s
10468 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }
10474 then
10475 if test x$gcc_cv_nm != x; then
10476 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10477 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10478 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10479 then :
10480 else gcc_cv_as_subsection_m1=yes
10482 rm -f conftest.nm1 conftest.nm2
10484 else
10485 echo "configure: failed program was" >&5
10486 cat conftest.s >&5
10488 rm -f conftest.o conftest.s
10491 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10492 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10493 if test $gcc_cv_as_subsection_m1 = yes; then
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_GAS_SUBSECTION_ORDERING 1
10497 _ACEOF
10501 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10502 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10503 if test "${gcc_cv_as_weak+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506 gcc_cv_as_weak=no
10507 if test $in_tree_gas = yes; then
10508 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10509 then gcc_cv_as_weak=yes
10511 elif test x$gcc_cv_as != x; then
10512 echo ' .weak foobar' > conftest.s
10513 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }
10519 then
10520 gcc_cv_as_weak=yes
10521 else
10522 echo "configure: failed program was" >&5
10523 cat conftest.s >&5
10525 rm -f conftest.o conftest.s
10528 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10529 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10530 if test $gcc_cv_as_weak = yes; then
10532 cat >>confdefs.h <<\_ACEOF
10533 #define HAVE_GAS_WEAK 1
10534 _ACEOF
10538 # .hidden needs to be supported in both the assembler and the linker,
10539 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10540 # This is irritatingly difficult to feature test for; we have to check the
10541 # date string after the version number. If we've got an in-tree
10542 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10543 # to be safe.
10544 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10545 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10546 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10547 if test "${gcc_cv_as_hidden+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550 gcc_cv_as_hidden=no
10551 if test $in_tree_gas = yes; then
10552 if test $in_tree_gas_is_elf = yes \
10553 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10554 then gcc_cv_as_hidden=yes
10556 elif test x$gcc_cv_as != x; then
10557 echo ' .hidden foobar
10558 foobar:' > conftest.s
10559 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }
10565 then
10566 gcc_cv_as_hidden=yes
10567 else
10568 echo "configure: failed program was" >&5
10569 cat conftest.s >&5
10571 rm -f conftest.o conftest.s
10574 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10575 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10578 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10579 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10580 if test "${gcc_cv_ld_hidden+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583 if test $in_tree_ld = yes ; then
10584 gcc_cv_ld_hidden=no
10585 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 \
10586 && test $in_tree_ld_is_elf = yes; then
10587 gcc_cv_ld_hidden=yes
10589 else
10590 gcc_cv_ld_hidden=yes
10591 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10592 if echo "$ld_ver" | grep GNU > /dev/null; then
10593 ld_vers=`echo $ld_ver | sed -n \
10594 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10595 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10596 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10597 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10598 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10599 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10600 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'`
10601 if test 0"$ld_date" -lt 20020404; then
10602 if test -n "$ld_date"; then
10603 # If there was date string, but was earlier than 2002-04-04, fail
10604 gcc_cv_ld_hidden=no
10605 elif test -z "$ld_vers"; then
10606 # If there was no date string nor ld version number, something is wrong
10607 gcc_cv_ld_hidden=no
10608 else
10609 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10610 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10611 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10612 test -z "$ld_vers_patch" && ld_vers_patch=0
10613 if test "$ld_vers_major" -lt 2; then
10614 gcc_cv_ld_hidden=no
10615 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10616 gcc_cv_ld_hidden="no"
10617 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10618 gcc_cv_ld_hidden=no
10622 else
10623 case "${target}" in
10624 hppa64*-*-hpux* | ia64*-*-hpux*)
10625 gcc_cv_ld_hidden=yes
10628 gcc_cv_ld_hidden=no
10630 esac
10634 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10635 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10636 libgcc_visibility=no
10638 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10639 libgcc_visibility=yes
10641 cat >>confdefs.h <<\_ACEOF
10642 #define HAVE_GAS_HIDDEN 1
10643 _ACEOF
10647 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10648 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10649 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10650 if test "${gcc_cv_as_leb128+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653 gcc_cv_as_leb128=no
10654 if test $in_tree_gas = yes; then
10655 if test $in_tree_gas_is_elf = yes \
10656 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10657 then gcc_cv_as_leb128=yes
10659 elif test x$gcc_cv_as != x; then
10660 echo ' .data
10661 .uleb128 L2 - L1
10663 .uleb128 1280
10664 .sleb128 -1010
10665 L2:' > conftest.s
10666 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }
10672 then
10673 # GAS versions before 2.11 do not support uleb128,
10674 # despite appearing to.
10675 # ??? There exists an elf-specific test that will crash
10676 # the assembler. Perhaps it's better to figure out whether
10677 # arbitrary sections are supported and try the test.
10678 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10679 if echo "$as_ver" | grep GNU > /dev/null; then
10680 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10681 as_major=`echo $as_ver | sed 's/\..*//'`
10682 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10683 if test $as_major -eq 2 && test $as_minor -lt 11
10684 then :
10685 else gcc_cv_as_leb128=yes
10688 else
10689 echo "configure: failed program was" >&5
10690 cat conftest.s >&5
10692 rm -f conftest.o conftest.s
10695 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10696 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10697 if test $gcc_cv_as_leb128 = yes; then
10699 cat >>confdefs.h <<\_ACEOF
10700 #define HAVE_AS_LEB128 1
10701 _ACEOF
10705 # GAS versions up to and including 2.11.0 may mis-optimize
10706 # .eh_frame data.
10707 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10708 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10709 if test "${gcc_cv_as_eh_frame+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712 gcc_cv_as_eh_frame=no
10713 if test $in_tree_gas = yes; then
10714 if test $in_tree_gas_is_elf = yes \
10715 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10716 then gcc_cv_as_eh_frame=yes
10718 elif test x$gcc_cv_as != x; then
10719 echo ' .text
10720 .LFB1:
10721 .4byte 0
10722 .L1:
10723 .4byte 0
10724 .LFE1:
10725 .section .eh_frame,"aw",@progbits
10726 __FRAME_BEGIN__:
10727 .4byte .LECIE1-.LSCIE1
10728 .LSCIE1:
10729 .4byte 0x0
10730 .byte 0x1
10731 .ascii "z\0"
10732 .byte 0x1
10733 .byte 0x78
10734 .byte 0x1a
10735 .byte 0x0
10736 .byte 0x4
10737 .4byte 1
10738 .p2align 1
10739 .LECIE1:
10740 .LSFDE1:
10741 .4byte .LEFDE1-.LASFDE1
10742 .LASFDE1:
10743 .4byte .LASFDE1-__FRAME_BEGIN__
10744 .4byte .LFB1
10745 .4byte .LFE1-.LFB1
10746 .byte 0x4
10747 .4byte .LFE1-.LFB1
10748 .byte 0x4
10749 .4byte .L1-.LFB1
10750 .LEFDE1:' > conftest.s
10751 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }
10757 then
10758 cat > conftest.lit <<EOF
10759 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10760 0010 01000000 12000000 18000000 00000000 ................
10761 0020 08000000 04080000 0044 .........D
10763 cat > conftest.big <<EOF
10764 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10765 0010 00000001 00000012 00000018 00000000 ................
10766 0020 00000008 04000000 0844 .........D
10768 # If the assembler didn't choke, and we can objdump,
10769 # and we got the correct data, then succeed.
10770 if test x$gcc_cv_objdump != x \
10771 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10772 | tail -3 > conftest.got \
10773 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10774 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10775 then
10776 gcc_cv_as_eh_frame=yes
10777 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 gcc_cv_as_eh_frame=buggy
10784 else
10785 # Uh oh, what do we do now?
10786 gcc_cv_as_eh_frame=no
10788 else
10789 echo "configure: failed program was" >&5
10790 cat conftest.s >&5
10792 rm -f conftest.o conftest.s
10795 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10796 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10799 if test $gcc_cv_as_eh_frame = buggy; then
10801 cat >>confdefs.h <<\_ACEOF
10802 #define USE_AS_TRADITIONAL_FORMAT 1
10803 _ACEOF
10807 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10808 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10809 if test "${gcc_cv_as_shf_merge+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812 gcc_cv_as_shf_merge=no
10813 if test $in_tree_gas = yes; then
10814 if test $in_tree_gas_is_elf = yes \
10815 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10816 then gcc_cv_as_shf_merge=yes
10818 elif test x$gcc_cv_as != x; then
10819 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10820 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }
10826 then
10827 gcc_cv_as_shf_merge=yes
10828 else
10829 echo "configure: failed program was" >&5
10830 cat conftest.s >&5
10832 rm -f conftest.o conftest.s
10835 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10836 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10839 cat >>confdefs.h <<_ACEOF
10840 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10841 _ACEOF
10844 # Thread-local storage - the check is heavily parametrized.
10845 conftest_s=
10846 tls_first_major=
10847 tls_first_minor=
10848 tls_as_opt=
10849 case "$target" in
10850 alpha*-*-*)
10851 conftest_s='
10852 .section ".tdata","awT",@progbits
10853 foo: .long 25
10854 .text
10855 ldq $27,__tls_get_addr($29) !literal!1
10856 lda $16,foo($29) !tlsgd!1
10857 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10858 ldq $27,__tls_get_addr($29) !literal!2
10859 lda $16,foo($29) !tlsldm!2
10860 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10861 ldq $1,foo($29) !gotdtprel
10862 ldah $2,foo($29) !dtprelhi
10863 lda $3,foo($2) !dtprello
10864 lda $4,foo($29) !dtprel
10865 ldq $1,foo($29) !gottprel
10866 ldah $2,foo($29) !tprelhi
10867 lda $3,foo($2) !tprello
10868 lda $4,foo($29) !tprel'
10869 tls_first_major=2
10870 tls_first_minor=13
10871 tls_as_opt=--fatal-warnings
10873 i[34567]86-*-*)
10874 conftest_s='
10875 .section ".tdata","awT",@progbits
10876 foo: .long 25
10877 .text
10878 movl %gs:0, %eax
10879 leal foo@TLSGD(,%ebx,1), %eax
10880 leal foo@TLSLDM(%ebx), %eax
10881 leal foo@DTPOFF(%eax), %edx
10882 movl foo@GOTTPOFF(%ebx), %eax
10883 subl foo@GOTTPOFF(%ebx), %eax
10884 addl foo@GOTNTPOFF(%ebx), %eax
10885 movl foo@INDNTPOFF, %eax
10886 movl $foo@TPOFF, %eax
10887 subl $foo@TPOFF, %eax
10888 leal foo@NTPOFF(%ecx), %eax'
10889 tls_first_major=2
10890 tls_first_minor=14
10891 tls_as_opt=--fatal-warnings
10893 x86_64-*-*)
10894 conftest_s='
10895 .section ".tdata","awT",@progbits
10896 foo: .long 25
10897 .text
10898 movq %fs:0, %rax
10899 leaq foo@TLSGD(%rip), %rdi
10900 leaq foo@TLSLD(%rip), %rdi
10901 leaq foo@DTPOFF(%rax), %rdx
10902 movq foo@GOTTPOFF(%rip), %rax
10903 movq $foo@TPOFF, %rax'
10904 tls_first_major=2
10905 tls_first_minor=14
10906 tls_as_opt=--fatal-warnings
10908 ia64-*-*)
10909 conftest_s='
10910 .section ".tdata","awT",@progbits
10911 foo: data8 25
10912 .text
10913 addl r16 = @ltoff(@dtpmod(foo#)), gp
10914 addl r17 = @ltoff(@dtprel(foo#)), gp
10915 addl r18 = @ltoff(@tprel(foo#)), gp
10916 addl r19 = @dtprel(foo#), gp
10917 adds r21 = @dtprel(foo#), r13
10918 movl r23 = @dtprel(foo#)
10919 addl r20 = @tprel(foo#), gp
10920 adds r22 = @tprel(foo#), r13
10921 movl r24 = @tprel(foo#)'
10922 tls_first_major=2
10923 tls_first_minor=13
10924 tls_as_opt=--fatal-warnings
10926 powerpc-*-*)
10927 conftest_s='
10928 .section ".tdata","awT",@progbits
10929 .align 2
10930 ld0: .space 4
10931 ld1: .space 4
10932 x1: .space 4
10933 x2: .space 4
10934 x3: .space 4
10935 .text
10936 addi 3,31,ld0@got@tlsgd
10937 bl __tls_get_addr
10938 addi 3,31,x1@got@tlsld
10939 bl __tls_get_addr
10940 addi 9,3,x1@dtprel
10941 addis 9,3,x2@dtprel@ha
10942 addi 9,9,x2@dtprel@l
10943 lwz 9,x3@got@tprel(31)
10944 add 9,9,x@tls
10945 addi 9,2,x1@tprel
10946 addis 9,2,x2@tprel@ha
10947 addi 9,9,x2@tprel@l'
10948 tls_first_major=2
10949 tls_first_minor=14
10950 tls_as_opt="-a32 --fatal-warnings"
10952 powerpc64-*-*)
10953 conftest_s='
10954 .section ".tdata","awT",@progbits
10955 .align 3
10956 ld0: .space 8
10957 ld1: .space 8
10958 x1: .space 8
10959 x2: .space 8
10960 x3: .space 8
10961 .text
10962 addi 3,2,ld0@got@tlsgd
10963 bl .__tls_get_addr
10965 addi 3,2,ld1@toc
10966 bl .__tls_get_addr
10968 addi 3,2,x1@got@tlsld
10969 bl .__tls_get_addr
10971 addi 9,3,x1@dtprel
10972 bl .__tls_get_addr
10974 addis 9,3,x2@dtprel@ha
10975 addi 9,9,x2@dtprel@l
10976 bl .__tls_get_addr
10978 ld 9,x3@got@dtprel(2)
10979 add 9,9,3
10980 bl .__tls_get_addr
10981 nop'
10982 tls_first_major=2
10983 tls_first_minor=14
10984 tls_as_opt="-a64 --fatal-warnings"
10986 s390-*-*)
10987 conftest_s='
10988 .section ".tdata","awT",@progbits
10989 foo: .long 25
10990 .text
10991 .long foo@TLSGD
10992 .long foo@TLSLDM
10993 .long foo@DTPOFF
10994 .long foo@NTPOFF
10995 .long foo@GOTNTPOFF
10996 .long foo@INDNTPOFF
10997 l %r1,foo@GOTNTPOFF(%r12)
10998 l %r1,0(%r1):tls_load:foo
10999 bas %r14,0(%r1,%r13):tls_gdcall:foo
11000 bas %r14,0(%r1,%r13):tls_ldcall:foo'
11001 tls_first_major=2
11002 tls_first_minor=14
11003 tls_as_opt="-m31 --fatal-warnings"
11005 s390x-*-*)
11006 conftest_s='
11007 .section ".tdata","awT",@progbits
11008 foo: .long 25
11009 .text
11010 .quad foo@TLSGD
11011 .quad foo@TLSLDM
11012 .quad foo@DTPOFF
11013 .quad foo@NTPOFF
11014 .quad foo@GOTNTPOFF
11015 lg %r1,foo@GOTNTPOFF(%r12)
11016 larl %r1,foo@INDNTPOFF
11017 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
11018 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11019 tls_first_major=2
11020 tls_first_minor=14
11021 tls_as_opt="-m64 -Aesame --fatal-warnings"
11023 sh-*-* | sh[34]-*-*)
11024 conftest_s='
11025 .section ".tdata","awT",@progbits
11026 foo: .long 25
11027 .text
11028 .long foo@TLSGD
11029 .long foo@TLSLDM
11030 .long foo@DTPOFF
11031 .long foo@GOTTPOFF
11032 .long foo@TPOFF'
11033 tls_first_major=2
11034 tls_first_minor=13
11035 tls_as_opt=--fatal-warnings
11037 sparc*-*-*)
11038 case "$target" in
11039 sparc*-sun-solaris2.*)
11040 on_solaris=yes
11043 on_solaris=no
11045 esac
11046 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11047 conftest_s='
11048 .section ".tdata",#alloc,#write,#tls
11049 foo: .long 25
11050 .text
11051 sethi %tgd_hi22(foo), %o0
11052 add %o0, %tgd_lo10(foo), %o1
11053 add %l7, %o1, %o0, %tgd_add(foo)
11054 call __tls_get_addr, %tgd_call(foo)
11055 sethi %tldm_hi22(foo), %l1
11056 add %l1, %tldm_lo10(foo), %l2
11057 add %l7, %l2, %o0, %tldm_add(foo)
11058 call __tls_get_addr, %tldm_call(foo)
11059 sethi %tldo_hix22(foo), %l3
11060 xor %l3, %tldo_lox10(foo), %l4
11061 add %o0, %l4, %l5, %tldo_add(foo)
11062 sethi %tie_hi22(foo), %o3
11063 add %o3, %tie_lo10(foo), %o3
11064 ld [%l7 + %o3], %o2, %tie_ld(foo)
11065 add %g7, %o2, %o4, %tie_add(foo)
11066 sethi %tle_hix22(foo), %l1
11067 xor %l1, %tle_lox10(foo), %o5
11068 ld [%g7 + %o5], %o1'
11069 tls_first_major=0
11070 tls_first_minor=0
11071 else
11072 conftest_s='
11073 .section ".tdata","awT",@progbits
11074 foo: .long 25
11075 .text
11076 sethi %tgd_hi22(foo), %o0
11077 add %o0, %tgd_lo10(foo), %o1
11078 add %l7, %o1, %o0, %tgd_add(foo)
11079 call __tls_get_addr, %tgd_call(foo)
11080 sethi %tldm_hi22(foo), %l1
11081 add %l1, %tldm_lo10(foo), %l2
11082 add %l7, %l2, %o0, %tldm_add(foo)
11083 call __tls_get_addr, %tldm_call(foo)
11084 sethi %tldo_hix22(foo), %l3
11085 xor %l3, %tldo_lox10(foo), %l4
11086 add %o0, %l4, %l5, %tldo_add(foo)
11087 sethi %tie_hi22(foo), %o3
11088 add %o3, %tie_lo10(foo), %o3
11089 ld [%l7 + %o3], %o2, %tie_ld(foo)
11090 add %g7, %o2, %o4, %tie_add(foo)
11091 sethi %tle_hix22(foo), %l1
11092 xor %l1, %tle_lox10(foo), %o5
11093 ld [%g7 + %o5], %o1'
11094 tls_first_major=2
11095 tls_first_minor=14
11096 tls_as_opt="-32 --fatal-warnings"
11099 esac
11100 if test -z "$tls_first_major"; then
11101 : # If we don't have a check, assume no support.
11102 else
11103 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11104 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11105 if test "${gcc_cv_as_tls+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108 gcc_cv_as_tls=no
11109 if test $in_tree_gas = yes; then
11110 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11111 then gcc_cv_as_tls=yes
11113 elif test x$gcc_cv_as != x; then
11114 echo "$conftest_s" > conftest.s
11115 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }
11121 then
11122 gcc_cv_as_tls=yes
11123 else
11124 echo "configure: failed program was" >&5
11125 cat conftest.s >&5
11127 rm -f conftest.o conftest.s
11130 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11131 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11132 if test $gcc_cv_as_tls = yes; then
11134 cat >>confdefs.h <<\_ACEOF
11135 #define HAVE_AS_TLS 1
11136 _ACEOF
11141 # Target-specific assembler checks.
11143 if test x"$demangler_in_ld" = xyes; then
11144 echo "$as_me:$LINENO: checking linker --demangle support" >&5
11145 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
11146 gcc_cv_ld_demangle=no
11147 if test $in_tree_ld = yes; then
11148 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
11149 gcc_cv_ld_demangle=yes
11151 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
11152 # Check if the GNU linker supports --demangle option
11153 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
11154 gcc_cv_ld_demangle=yes
11157 if test x"$gcc_cv_ld_demangle" = xyes; then
11159 cat >>confdefs.h <<\_ACEOF
11160 #define HAVE_LD_DEMANGLE 1
11161 _ACEOF
11164 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
11165 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
11168 case "$target" in
11169 # All TARGET_ABI_OSF targets.
11170 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11171 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11172 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11173 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176 gcc_cv_as_alpha_explicit_relocs=no
11177 if test $in_tree_gas = yes; then
11178 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11179 then gcc_cv_as_alpha_explicit_relocs=yes
11181 elif test x$gcc_cv_as != x; then
11182 echo ' .set nomacro
11183 .text
11184 extbl $3, $2, $3 !lituse_bytoff!1
11185 ldq $2, a($29) !literal!1
11186 ldq $4, b($29) !literal!2
11187 ldq_u $3, 0($2) !lituse_base!1
11188 ldq $27, f($29) !literal!5
11189 jsr $26, ($27), f !lituse_jsr!5
11190 ldah $29, 0($26) !gpdisp!3
11191 lda $0, c($29) !gprel
11192 ldah $1, d($29) !gprelhigh
11193 lda $1, d($1) !gprellow
11194 lda $29, 0($29) !gpdisp!3' > conftest.s
11195 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }
11201 then
11202 gcc_cv_as_alpha_explicit_relocs=yes
11203 else
11204 echo "configure: failed program was" >&5
11205 cat conftest.s >&5
11207 rm -f conftest.o conftest.s
11210 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11211 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11212 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11214 cat >>confdefs.h <<\_ACEOF
11215 #define HAVE_AS_EXPLICIT_RELOCS 1
11216 _ACEOF
11221 cris-*-*)
11222 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11223 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11224 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227 gcc_cv_as_cris_no_mul_bug=no
11228 if test $in_tree_gas = yes; then
11229 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11230 then gcc_cv_as_cris_no_mul_bug=yes
11232 elif test x$gcc_cv_as != x; then
11233 echo '.text' > conftest.s
11234 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }
11240 then
11241 gcc_cv_as_cris_no_mul_bug=yes
11242 else
11243 echo "configure: failed program was" >&5
11244 cat conftest.s >&5
11246 rm -f conftest.o conftest.s
11249 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11250 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11251 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11255 _ACEOF
11260 sparc*-*-*)
11261 echo "$as_me:$LINENO: checking assembler for .register" >&5
11262 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11263 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 gcc_cv_as_sparc_register_op=no
11267 if test x$gcc_cv_as != x; then
11268 echo '.register %g2, #scratch' > conftest.s
11269 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }
11275 then
11276 gcc_cv_as_sparc_register_op=yes
11277 else
11278 echo "configure: failed program was" >&5
11279 cat conftest.s >&5
11281 rm -f conftest.o conftest.s
11284 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11285 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11286 if test $gcc_cv_as_sparc_register_op = yes; then
11288 cat >>confdefs.h <<\_ACEOF
11289 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11290 _ACEOF
11294 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11295 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11296 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299 gcc_cv_as_sparc_relax=no
11300 if test x$gcc_cv_as != x; then
11301 echo '.text' > conftest.s
11302 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11305 ac_status=$?
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }
11308 then
11309 gcc_cv_as_sparc_relax=yes
11310 else
11311 echo "configure: failed program was" >&5
11312 cat conftest.s >&5
11314 rm -f conftest.o conftest.s
11317 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11318 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11319 if test $gcc_cv_as_sparc_relax = yes; then
11321 cat >>confdefs.h <<\_ACEOF
11322 #define HAVE_AS_RELAX_OPTION 1
11323 _ACEOF
11327 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11328 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11329 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332 gcc_cv_as_sparc_ua_pcrel=no
11333 if test x$gcc_cv_as != x; then
11334 echo '.text
11335 foo:
11337 .data
11338 .align 4
11339 .byte 0
11340 .uaword %r_disp32(foo)' > conftest.s
11341 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }
11347 then
11348 if test x$gcc_cv_ld != x \
11349 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11350 gcc_cv_as_sparc_ua_pcrel=yes
11352 rm -f conftest
11353 else
11354 echo "configure: failed program was" >&5
11355 cat conftest.s >&5
11357 rm -f conftest.o conftest.s
11360 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11361 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11362 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11364 cat >>confdefs.h <<\_ACEOF
11365 #define HAVE_AS_SPARC_UA_PCREL 1
11366 _ACEOF
11369 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11370 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11371 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374 gcc_cv_as_sparc_ua_pcrel_hidden=no
11375 if test x$gcc_cv_as != x; then
11376 echo '.data
11377 .align 4
11378 .byte 0x31
11379 .uaword %r_disp32(foo)
11380 .byte 0x32, 0x33, 0x34
11381 .global foo
11382 .hidden foo
11383 foo:
11384 .skip 4' > conftest.s
11385 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; }
11391 then
11392 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11393 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11394 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11395 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11396 if $gcc_cv_objdump -R conftest 2> /dev/null \
11397 | grep 'DISP32' > /dev/null 2>&1; then
11399 else
11400 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11403 rm -f conftest
11404 else
11405 echo "configure: failed program was" >&5
11406 cat conftest.s >&5
11408 rm -f conftest.o conftest.s
11411 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11412 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11413 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11415 cat >>confdefs.h <<\_ACEOF
11416 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11417 _ACEOF
11421 fi # unaligned pcrel relocs
11423 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11424 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11425 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428 gcc_cv_as_sparc_offsetable_lo10=no
11429 if test x$gcc_cv_as != x; then
11430 echo '.text
11431 or %g1, %lo(ab) + 12, %g1
11432 or %g1, %lo(ab + 12), %g1' > conftest.s
11433 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }
11439 then
11440 if test x$gcc_cv_objdump != x \
11441 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11442 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11443 gcc_cv_as_offsetable_lo10=yes
11445 else
11446 echo "configure: failed program was" >&5
11447 cat conftest.s >&5
11449 rm -f conftest.o conftest.s
11452 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11453 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11454 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11456 cat >>confdefs.h <<\_ACEOF
11457 #define HAVE_AS_OFFSETABLE_LO10 1
11458 _ACEOF
11463 i[34567]86-*-* | x86_64-*-*)
11464 case $target_os in
11465 cygwin* | pe | mingw32*)
11466 # Used for DWARF 2 in PE
11467 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11468 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11469 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472 gcc_cv_as_ix86_pe_secrel32=no
11473 if test $in_tree_gas = yes; then
11474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11475 then gcc_cv_as_ix86_pe_secrel32=yes
11477 elif test x$gcc_cv_as != x; then
11478 echo '.text
11479 foo: nop
11480 .data
11481 .secrel32 foo' > conftest.s
11482 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; }
11488 then
11489 if test x$gcc_cv_ld != x \
11490 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11491 gcc_cv_as_ix86_pe_secrel32=yes
11493 rm -f conftest
11494 else
11495 echo "configure: failed program was" >&5
11496 cat conftest.s >&5
11498 rm -f conftest.o conftest.s
11501 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11502 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11503 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11505 cat >>confdefs.h <<\_ACEOF
11506 #define HAVE_GAS_PE_SECREL32_RELOC 1
11507 _ACEOF
11511 esac
11513 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11514 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11515 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518 gcc_cv_as_ix86_filds_fists=no
11519 if test $in_tree_gas = yes; then
11520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11521 then gcc_cv_as_ix86_filds_fists=yes
11523 elif test x$gcc_cv_as != x; then
11524 echo 'filds mem; fists mem' > conftest.s
11525 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }
11531 then
11532 gcc_cv_as_ix86_filds_fists=yes
11533 else
11534 echo "configure: failed program was" >&5
11535 cat conftest.s >&5
11537 rm -f conftest.o conftest.s
11540 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11541 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11542 if test $gcc_cv_as_ix86_filds_fists = yes; then
11544 cat >>confdefs.h <<\_ACEOF
11545 #define HAVE_GAS_FILDS_FISTS 1
11546 _ACEOF
11550 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11551 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11552 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555 gcc_cv_as_ix86_cmov_sun_syntax=no
11556 if test x$gcc_cv_as != x; then
11557 echo 'cmovl.l %edx, %eax' > conftest.s
11558 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }
11564 then
11565 gcc_cv_as_ix86_cmov_sun_syntax=yes
11566 else
11567 echo "configure: failed program was" >&5
11568 cat conftest.s >&5
11570 rm -f conftest.o conftest.s
11573 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11574 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11575 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11577 cat >>confdefs.h <<\_ACEOF
11578 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11579 _ACEOF
11583 # This one is used unconditionally by i386.[ch]; it is to be defined
11584 # to 1 if the feature is present, 0 otherwise.
11585 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11586 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11587 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 else
11590 gcc_cv_as_ix86_gotoff_in_data=no
11591 if test $in_tree_gas = yes; then
11592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11593 then gcc_cv_as_ix86_gotoff_in_data=yes
11595 elif test x$gcc_cv_as != x; then
11596 echo ' .text
11597 .L0:
11599 .data
11600 .long .L0@GOTOFF' > conftest.s
11601 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }
11607 then
11608 gcc_cv_as_ix86_gotoff_in_data=yes
11609 else
11610 echo "configure: failed program was" >&5
11611 cat conftest.s >&5
11613 rm -f conftest.o conftest.s
11616 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11617 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11620 cat >>confdefs.h <<_ACEOF
11621 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11622 _ACEOF
11626 ia64*-*-*)
11627 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11628 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11629 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11633 if test $in_tree_gas = yes; then
11634 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11635 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11637 elif test x$gcc_cv_as != x; then
11638 echo ' .text
11639 addl r15 = @ltoffx(x#), gp
11641 ld8.mov r16 = [r15], x#' > conftest.s
11642 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }
11648 then
11649 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11650 else
11651 echo "configure: failed program was" >&5
11652 cat conftest.s >&5
11654 rm -f conftest.o conftest.s
11657 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11658 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11659 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11661 cat >>confdefs.h <<\_ACEOF
11662 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11663 _ACEOF
11669 powerpc*-*-*)
11670 case $target in
11671 *-*-aix*) conftest_s=' .csect .text[PR]
11672 mfcr 3,128';;
11673 *-*-darwin*) conftest_s=' .text
11674 mfcr r3,128';;
11675 *) conftest_s=' .text
11676 mfcr 3,128';;
11677 esac
11679 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11680 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11681 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684 gcc_cv_as_powerpc_mfcrf=no
11685 if test $in_tree_gas = yes; then
11686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11687 then gcc_cv_as_powerpc_mfcrf=yes
11689 elif test x$gcc_cv_as != x; then
11690 echo "$conftest_s" > conftest.s
11691 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }
11697 then
11698 gcc_cv_as_powerpc_mfcrf=yes
11699 else
11700 echo "configure: failed program was" >&5
11701 cat conftest.s >&5
11703 rm -f conftest.o conftest.s
11706 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11707 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11708 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11710 cat >>confdefs.h <<\_ACEOF
11711 #define HAVE_AS_MFCRF 1
11712 _ACEOF
11717 mips*-*-*)
11718 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11719 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11720 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723 gcc_cv_as_mips_explicit_relocs=no
11724 if test $in_tree_gas = yes; then
11725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11726 then gcc_cv_as_mips_explicit_relocs=yes
11728 elif test x$gcc_cv_as != x; then
11729 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11730 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }
11736 then
11737 gcc_cv_as_mips_explicit_relocs=yes
11738 else
11739 echo "configure: failed program was" >&5
11740 cat conftest.s >&5
11742 rm -f conftest.o conftest.s
11745 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11746 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11747 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11748 if test x$target_cpu_default = x
11749 then target_cpu_default=MASK_EXPLICIT_RELOCS
11750 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11754 if test x$gas_flag = xyes \
11755 || test x"$host" != x"$build" \
11756 || test ! -x "$gcc_cv_as" \
11757 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
11759 else
11760 echo "*** This configuration requires the GNU assembler" >&2
11761 exit 1
11764 esac
11765 # ??? Not all targets support dwarf2 debug_line, even within a version
11766 # of gas. Moreover, we need to emit a valid instruction to trigger any
11767 # info to the output file. So, as supported targets are added to gas 2.11,
11768 # add some instruction here to (also) show we expect this might work.
11769 # ??? Once 2.11 is released, probably need to add first known working
11770 # version to the per-target configury.
11771 case "$target" in
11772 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11773 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11774 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11775 insn="nop"
11777 ia64*-*-* | s390*-*-*)
11778 insn="nop 0"
11780 mmix-*-*)
11781 insn="swym 0"
11783 esac
11784 if test x"$insn" != x; then
11785 conftest_s="\
11786 .file 1 \"conftest.s\"
11787 .loc 1 3 0
11788 $insn"
11789 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11790 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11791 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11794 gcc_cv_as_dwarf2_debug_line=no
11795 if test $in_tree_gas = yes; then
11796 if test $in_tree_gas_is_elf = yes \
11797 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11798 then gcc_cv_as_dwarf2_debug_line=yes
11800 elif test x$gcc_cv_as != x; then
11801 echo "$conftest_s" > conftest.s
11802 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }
11808 then
11809 # ??? This fails with non-gnu grep. Maybe use objdump?
11810 if grep debug_line conftest.o > /dev/null 2>&1; then
11811 gcc_cv_as_dwarf2_debug_line=yes
11813 else
11814 echo "configure: failed program was" >&5
11815 cat conftest.s >&5
11817 rm -f conftest.o conftest.s
11820 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11821 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11824 # The .debug_line file table must be in the exact order that
11825 # we specified the files, since these indices are also used
11826 # by DW_AT_decl_file. Approximate this test by testing if
11827 # the assembler bitches if the same index is assigned twice.
11828 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11829 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11830 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833 gcc_cv_as_dwarf2_file_buggy=no
11834 if test x$gcc_cv_as != x; then
11835 echo ' .file 1 "foo.s"
11836 .file 1 "bar.s"' > conftest.s
11837 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }
11843 then
11844 gcc_cv_as_dwarf2_file_buggy=yes
11845 else
11846 echo "configure: failed program was" >&5
11847 cat conftest.s >&5
11849 rm -f conftest.o conftest.s
11852 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11853 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11856 if test $gcc_cv_as_dwarf2_debug_line = yes \
11857 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11859 cat >>confdefs.h <<\_ACEOF
11860 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11861 _ACEOF
11865 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11866 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11867 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 else
11870 gcc_cv_as_gdwarf2_flag=no
11871 if test $in_tree_gas = yes; then
11872 if test $in_tree_gas_is_elf = yes \
11873 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11874 then gcc_cv_as_gdwarf2_flag=yes
11876 elif test x$gcc_cv_as != x; then
11877 echo "$insn" > conftest.s
11878 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }
11884 then
11885 gcc_cv_as_gdwarf2_flag=yes
11886 else
11887 echo "configure: failed program was" >&5
11888 cat conftest.s >&5
11890 rm -f conftest.o conftest.s
11893 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11894 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11895 if test $gcc_cv_as_gdwarf2_flag = yes; then
11897 cat >>confdefs.h <<\_ACEOF
11898 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11899 _ACEOF
11903 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11904 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11905 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908 gcc_cv_as_gstabs_flag=no
11909 if test $in_tree_gas = yes; then
11910 if test $in_tree_gas_is_elf = yes \
11911 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11912 then gcc_cv_as_gstabs_flag=yes
11914 elif test x$gcc_cv_as != x; then
11915 echo "$insn" > conftest.s
11916 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }
11922 then
11923 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11924 # and warns about it, but still exits successfully. So check for
11925 # this.
11926 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }
11932 then :
11933 else gcc_cv_as_gstabs_flag=yes
11935 else
11936 echo "configure: failed program was" >&5
11937 cat conftest.s >&5
11939 rm -f conftest.o conftest.s
11942 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11943 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11944 if test $gcc_cv_as_gstabs_flag = yes; then
11946 cat >>confdefs.h <<\_ACEOF
11947 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11948 _ACEOF
11953 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11954 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11955 gcc_cv_ld_ro_rw_mix=unknown
11956 if test $in_tree_ld = yes ; then
11957 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 \
11958 && test $in_tree_ld_is_elf = yes; then
11959 gcc_cv_ld_ro_rw_mix=read-write
11961 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11962 echo '.section myfoosect, "a"' > conftest1.s
11963 echo '.section myfoosect, "aw"' > conftest2.s
11964 echo '.byte 1' >> conftest2.s
11965 echo '.section myfoosect, "a"' > conftest3.s
11966 echo '.byte 0' >> conftest3.s
11967 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11968 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11969 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11970 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11971 conftest2.o conftest3.o > /dev/null 2>&1; then
11972 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11973 | sed -e '/myfoosect/!d' -e N`
11974 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11975 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11976 gcc_cv_ld_ro_rw_mix=read-only
11977 else
11978 gcc_cv_ld_ro_rw_mix=read-write
11982 rm -f conftest.* conftest[123].*
11984 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11986 cat >>confdefs.h <<\_ACEOF
11987 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11988 _ACEOF
11991 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11992 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11994 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11995 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11996 gcc_cv_ld_eh_frame_hdr=no
11997 if test $in_tree_ld = yes ; then
11998 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 \
11999 && test $in_tree_ld_is_elf = yes; then
12000 gcc_cv_ld_eh_frame_hdr=yes
12002 elif test x$gcc_cv_ld != x; then
12003 # Check if linker supports --eh-frame-hdr option
12004 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
12005 gcc_cv_ld_eh_frame_hdr=yes
12008 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_LD_EH_FRAME_HDR 1
12012 _ACEOF
12015 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12016 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12018 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12019 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12020 gcc_cv_ld_pie=no
12021 if test $in_tree_ld = yes ; then
12022 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 \
12023 && test $in_tree_ld_is_elf = yes; then
12024 gcc_cv_ld_pie=yes
12026 elif test x$gcc_cv_ld != x; then
12027 # Check if linker supports -pie option
12028 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
12029 gcc_cv_ld_pie=yes
12032 if test x"$gcc_cv_ld_pie" = xyes; then
12034 cat >>confdefs.h <<\_ACEOF
12035 #define HAVE_LD_PIE 1
12036 _ACEOF
12039 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12040 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12042 # --------
12043 # UNSORTED
12044 # --------
12046 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12047 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12048 if test "${gcc_cv_ld_as_needed+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051 gcc_cv_ld_as_needed=no
12052 if test $in_tree_ld = yes ; then
12053 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
12054 && test $in_tree_ld_is_elf = yes; then
12055 gcc_cv_ld_as_needed=yes
12057 elif test x$gcc_cv_ld != x; then
12058 # Check if linker supports --as-needed and --no-as-needed options
12059 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12060 gcc_cv_ld_as_needed=yes
12065 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12066 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12067 if test x"$gcc_cv_ld_as_needed" = xyes; then
12069 cat >>confdefs.h <<\_ACEOF
12070 #define HAVE_LD_AS_NEEDED 1
12071 _ACEOF
12075 case "$target" in
12076 powerpc64*-*-linux*)
12077 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
12078 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
12079 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082 gcc_cv_ld_no_dot_syms=no
12083 if test $in_tree_ld = yes ; then
12084 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
12085 gcc_cv_ld_no_dot_syms=yes
12087 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
12088 cat > conftest1.s <<EOF
12089 .text
12090 bl .foo
12092 cat > conftest2.s <<EOF
12093 .section ".opd","aw"
12094 .align 3
12095 .globl foo
12096 .type foo,@function
12097 foo:
12098 .quad .LEfoo,.TOC.@tocbase,0
12099 .text
12100 .LEfoo:
12102 .size foo,.-.LEfoo
12104 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
12105 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
12106 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
12107 gcc_cv_ld_no_dot_syms=yes
12109 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
12113 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
12114 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
12115 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
12117 cat >>confdefs.h <<\_ACEOF
12118 #define HAVE_LD_NO_DOT_SYMS 1
12119 _ACEOF
12123 esac
12125 if test x$with_sysroot = x && test x$host = x$target \
12126 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12128 cat >>confdefs.h <<_ACEOF
12129 #define PREFIX_INCLUDE_DIR "$prefix/include"
12130 _ACEOF
12134 # Find out what GC implementation we want, or may, use.
12136 # Check whether --with-gc or --without-gc was given.
12137 if test "${with_gc+set}" = set; then
12138 withval="$with_gc"
12139 case "$withval" in
12140 page | zone)
12141 GGC=ggc-$withval
12144 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12145 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12146 { (exit 1); exit 1; }; }
12148 esac
12149 else
12150 GGC=ggc-page
12153 echo "Using $GGC for garbage collection."
12155 # Use the system's zlib library.
12156 zlibdir=-L../zlib
12157 zlibinc="-I\$(srcdir)/../zlib"
12159 # Check whether --with-system-zlib or --without-system-zlib was given.
12160 if test "${with_system_zlib+set}" = set; then
12161 withval="$with_system_zlib"
12162 zlibdir=
12163 zlibinc=
12170 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12171 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12172 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12173 if test "${enable_maintainer_mode+set}" = set; then
12174 enableval="$enable_maintainer_mode"
12175 maintainer_mode=$enableval
12176 else
12177 maintainer_mode=no
12180 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12181 echo "${ECHO_T}$maintainer_mode" >&6
12183 if test "$maintainer_mode" = "yes"; then
12184 MAINT=''
12185 else
12186 MAINT='#'
12189 # --------------
12190 # Language hooks
12191 # --------------
12193 # Make empty files to contain the specs and options for each language.
12194 # Then add #include lines to for a compiler that has specs and/or options.
12196 lang_opt_files=
12197 lang_specs_files=
12198 lang_tree_files=
12199 for subdir in . $subdirs
12201 if test -f $srcdir/$subdir/lang.opt; then
12202 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12204 if test -f $srcdir/$subdir/lang-specs.h; then
12205 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12207 if test -f $srcdir/$subdir/$subdir-tree.def; then
12208 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12210 done
12212 # These (without "all_") are set in each config-lang.in.
12213 # `language' must be a single word so is spelled singularly.
12214 all_languages=
12215 all_boot_languages=
12216 all_compilers=
12217 all_stagestuff=
12218 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
12219 # List of language makefile fragments.
12220 all_lang_makefrags=
12221 # List of language subdirectory makefiles. Deprecated.
12222 all_lang_makefiles=
12223 # Files for gengtype
12224 all_gtfiles="$target_gtfiles"
12225 # Files for gengtype with language
12226 all_gtfiles_files_langs=
12227 all_gtfiles_files_files=
12229 # Add the language fragments.
12230 # Languages are added via two mechanisms. Some information must be
12231 # recorded in makefile variables, these are defined in config-lang.in.
12232 # We accumulate them and plug them into the main Makefile.
12233 # The other mechanism is a set of hooks for each of the main targets
12234 # like `clean', `install', etc.
12236 language_hooks="Make-hooks"
12238 for s in $subdirs
12240 language=
12241 boot_language=
12242 compilers=
12243 stagestuff=
12244 outputs=
12245 gtfiles=
12246 . ${srcdir}/$s/config-lang.in
12247 if test "x$language" = x
12248 then
12249 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12250 exit 1
12252 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12253 if test -f ${srcdir}/$s/Makefile.in
12254 then all_lang_makefiles="$s/Makefile"
12256 all_languages="$all_languages $language"
12257 if test "x$boot_language" = xyes
12258 then
12259 all_boot_languages="$all_boot_languages $language"
12261 all_compilers="$all_compilers $compilers"
12262 all_stagestuff="$all_stagestuff $stagestuff"
12263 all_outputs="$all_outputs $outputs"
12264 all_gtfiles="$all_gtfiles $gtfiles"
12265 for f in $gtfiles
12267 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12268 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12269 done
12270 done
12272 # Pick up gtfiles for c
12273 gtfiles=
12274 s="c"
12275 . ${srcdir}/c-config-lang.in
12276 all_gtfiles="$all_gtfiles $gtfiles"
12277 for f in $gtfiles
12279 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12280 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12281 done
12283 check_languages=
12284 for language in $all_languages
12286 check_languages="$check_languages check-$language"
12287 done
12289 # We link each language in with a set of hooks, reached indirectly via
12290 # lang.${target}.
12292 rm -f Make-hooks
12293 touch Make-hooks
12294 target_list="all.build all.cross start.encap rest.encap tags \
12295 install-normal install-common install-man \
12296 uninstall info man srcextra srcman srcinfo \
12297 mostlyclean clean distclean maintainer-clean \
12298 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12299 for t in $target_list
12302 for lang in $all_languages
12304 x="$x $lang.$t"
12305 done
12306 echo "lang.$t: $x" >> Make-hooks
12307 done
12309 # --------
12310 # UNSORTED
12311 # --------
12313 # Create .gdbinit.
12315 echo "dir ." > .gdbinit
12316 echo "dir ${srcdir}" >> .gdbinit
12317 if test x$gdb_needs_out_file_path = xyes
12318 then
12319 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12321 if test "x$subdirs" != x; then
12322 for s in $subdirs
12324 echo "dir ${srcdir}/$s" >> .gdbinit
12325 done
12327 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12329 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12330 # absolute path for gcc_tooldir based on inserting the number of up-directory
12331 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12332 # $(libsubdir)/@(unlibsubdir) based path.
12333 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12334 # make and thus we'd get different behavior depending on where we built the
12335 # sources.
12336 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12337 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12338 else
12339 # An explanation of the sed strings:
12340 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12341 # -e 's|/$||' match a trailing forward slash and eliminates it
12342 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12343 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12345 # (*) Note this pattern overwrites the first character of the string
12346 # with a forward slash if one is not already present. This is not a
12347 # problem because the exact names of the sub-directories concerned is
12348 # unimportant, just the number of them matters.
12350 # The practical upshot of these patterns is like this:
12352 # prefix exec_prefix result
12353 # ------ ----------- ------
12354 # /foo /foo/bar ../
12355 # /foo/ /foo/bar ../
12356 # /foo /foo/bar/ ../
12357 # /foo/ /foo/bar/ ../
12358 # /foo /foo/bar/ugg ../../
12360 dollar='$$'
12361 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12366 # Find a directory in which to install a shared libgcc.
12368 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12369 if test "${enable_version_specific_runtime_libs+set}" = set; then
12370 enableval="$enable_version_specific_runtime_libs"
12375 # Check whether --with-slibdir or --without-slibdir was given.
12376 if test "${with_slibdir+set}" = set; then
12377 withval="$with_slibdir"
12378 slibdir="$with_slibdir"
12379 else
12380 if test "${enable_version_specific_runtime_libs+set}" = set; then
12381 slibdir='$(libsubdir)'
12382 elif test "$host" != "$target"; then
12383 slibdir='$(build_tooldir)/lib'
12384 else
12385 slibdir='$(libdir)'
12390 objdir=`${PWDCMD-pwd}`
12393 # Substitute configuration variables
12461 # If it doesn't already exist, create document directory
12462 echo "checking for the document directory." 1>&2
12463 if test -d doc ; then
12464 true
12465 else
12466 mkdir doc
12469 # Echo link setup.
12470 if test x${build} = x${host} ; then
12471 if test x${host} = x${target} ; then
12472 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12473 else
12474 echo "Links are now set up to build a cross-compiler" 1>&2
12475 echo " from ${host} to ${target}." 1>&2
12477 else
12478 if test x${host} = x${target} ; then
12479 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12480 echo " for ${target}." 1>&2
12481 else
12482 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12483 echo " from ${host} to ${target}." 1>&2
12490 # Configure the subdirectories
12491 # AC_CONFIG_SUBDIRS($subdirs)
12493 # Create the Makefile
12494 # and configure language subdirectories
12495 ac_config_files="$ac_config_files $all_outputs"
12498 ac_config_commands="$ac_config_commands default"
12500 cat >confcache <<\_ACEOF
12501 # This file is a shell script that caches the results of configure
12502 # tests run on this system so they can be shared between configure
12503 # scripts and configure runs, see configure's option --config-cache.
12504 # It is not useful on other systems. If it contains results you don't
12505 # want to keep, you may remove or edit it.
12507 # config.status only pays attention to the cache file if you give it
12508 # the --recheck option to rerun configure.
12510 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12511 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12512 # following values.
12514 _ACEOF
12516 # The following way of writing the cache mishandles newlines in values,
12517 # but we know of no workaround that is simple, portable, and efficient.
12518 # So, don't put newlines in cache variables' values.
12519 # Ultrix sh set writes to stderr and can't be redirected directly,
12520 # and sets the high bit in the cache file unless we assign to the vars.
12522 (set) 2>&1 |
12523 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12524 *ac_space=\ *)
12525 # `set' does not quote correctly, so add quotes (double-quote
12526 # substitution turns \\\\ into \\, and sed turns \\ into \).
12527 sed -n \
12528 "s/'/'\\\\''/g;
12529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12532 # `set' quotes correctly as required by POSIX, so do not add quotes.
12533 sed -n \
12534 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12536 esac;
12538 sed '
12539 t clear
12540 : clear
12541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12542 t end
12543 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12544 : end' >>confcache
12545 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12546 if test -w $cache_file; then
12547 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12548 cat confcache >$cache_file
12549 else
12550 echo "not updating unwritable cache $cache_file"
12553 rm -f confcache
12555 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12556 # Let make expand exec_prefix.
12557 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12559 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12560 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12561 # trailing colons and then remove the whole line if VPATH becomes empty
12562 # (actually we leave an empty line to preserve line numbers).
12563 if test "x$srcdir" = x.; then
12564 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12565 s/:*\$(srcdir):*/:/;
12566 s/:*\${srcdir}:*/:/;
12567 s/:*@srcdir@:*/:/;
12568 s/^\([^=]*=[ ]*\):*/\1/;
12569 s/:*$//;
12570 s/^[^=]*=[ ]*$//;
12574 DEFS=-DHAVE_CONFIG_H
12576 ac_libobjs=
12577 ac_ltlibobjs=
12578 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12579 # 1. Remove the extension, and $U if already installed.
12580 ac_i=`echo "$ac_i" |
12581 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12582 # 2. Add them.
12583 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12584 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12585 done
12586 LIBOBJS=$ac_libobjs
12588 LTLIBOBJS=$ac_ltlibobjs
12592 : ${CONFIG_STATUS=./config.status}
12593 ac_clean_files_save=$ac_clean_files
12594 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12595 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12596 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12597 cat >$CONFIG_STATUS <<_ACEOF
12598 #! $SHELL
12599 # Generated by $as_me.
12600 # Run this file to recreate the current configuration.
12601 # Compiler output produced by configure, useful for debugging
12602 # configure, is in config.log if it exists.
12604 debug=false
12605 ac_cs_recheck=false
12606 ac_cs_silent=false
12607 SHELL=\${CONFIG_SHELL-$SHELL}
12608 _ACEOF
12610 cat >>$CONFIG_STATUS <<\_ACEOF
12611 ## --------------------- ##
12612 ## M4sh Initialization. ##
12613 ## --------------------- ##
12615 # Be Bourne compatible
12616 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12617 emulate sh
12618 NULLCMD=:
12619 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12620 # is contrary to our usage. Disable this feature.
12621 alias -g '${1+"$@"}'='"$@"'
12622 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12623 set -o posix
12625 DUALCASE=1; export DUALCASE # for MKS sh
12627 # Support unset when possible.
12628 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12629 as_unset=unset
12630 else
12631 as_unset=false
12635 # Work around bugs in pre-3.0 UWIN ksh.
12636 $as_unset ENV MAIL MAILPATH
12637 PS1='$ '
12638 PS2='> '
12639 PS4='+ '
12641 # NLS nuisances.
12642 for as_var in \
12643 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12644 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12645 LC_TELEPHONE LC_TIME
12647 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12648 eval $as_var=C; export $as_var
12649 else
12650 $as_unset $as_var
12652 done
12654 # Required to use basename.
12655 if expr a : '\(a\)' >/dev/null 2>&1; then
12656 as_expr=expr
12657 else
12658 as_expr=false
12661 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12662 as_basename=basename
12663 else
12664 as_basename=false
12668 # Name of the executable.
12669 as_me=`$as_basename "$0" ||
12670 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12671 X"$0" : 'X\(//\)$' \| \
12672 X"$0" : 'X\(/\)$' \| \
12673 . : '\(.\)' 2>/dev/null ||
12674 echo X/"$0" |
12675 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12676 /^X\/\(\/\/\)$/{ s//\1/; q; }
12677 /^X\/\(\/\).*/{ s//\1/; q; }
12678 s/.*/./; q'`
12681 # PATH needs CR, and LINENO needs CR and PATH.
12682 # Avoid depending upon Character Ranges.
12683 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12684 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12685 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12686 as_cr_digits='0123456789'
12687 as_cr_alnum=$as_cr_Letters$as_cr_digits
12689 # The user is always right.
12690 if test "${PATH_SEPARATOR+set}" != set; then
12691 echo "#! /bin/sh" >conf$$.sh
12692 echo "exit 0" >>conf$$.sh
12693 chmod +x conf$$.sh
12694 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12695 PATH_SEPARATOR=';'
12696 else
12697 PATH_SEPARATOR=:
12699 rm -f conf$$.sh
12703 as_lineno_1=$LINENO
12704 as_lineno_2=$LINENO
12705 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12706 test "x$as_lineno_1" != "x$as_lineno_2" &&
12707 test "x$as_lineno_3" = "x$as_lineno_2" || {
12708 # Find who we are. Look in the path if we contain no path at all
12709 # relative or not.
12710 case $0 in
12711 *[\\/]* ) as_myself=$0 ;;
12712 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713 for as_dir in $PATH
12715 IFS=$as_save_IFS
12716 test -z "$as_dir" && as_dir=.
12717 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12718 done
12721 esac
12722 # We did not find ourselves, most probably we were run as `sh COMMAND'
12723 # in which case we are not to be found in the path.
12724 if test "x$as_myself" = x; then
12725 as_myself=$0
12727 if test ! -f "$as_myself"; then
12728 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12729 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12730 { (exit 1); exit 1; }; }
12732 case $CONFIG_SHELL in
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
12739 for as_base in sh bash ksh sh5; do
12740 case $as_dir in
12742 if ("$as_dir/$as_base" -c '
12743 as_lineno_1=$LINENO
12744 as_lineno_2=$LINENO
12745 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12746 test "x$as_lineno_1" != "x$as_lineno_2" &&
12747 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12748 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12749 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12750 CONFIG_SHELL=$as_dir/$as_base
12751 export CONFIG_SHELL
12752 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12753 fi;;
12754 esac
12755 done
12756 done
12758 esac
12760 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12761 # uniformly replaced by the line number. The first 'sed' inserts a
12762 # line-number line before each line; the second 'sed' does the real
12763 # work. The second script uses 'N' to pair each line-number line
12764 # with the numbered line, and appends trailing '-' during
12765 # substitution so that $LINENO is not a special case at line end.
12766 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12767 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12768 sed '=' <$as_myself |
12769 sed '
12771 s,$,-,
12772 : loop
12773 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12774 t loop
12775 s,-$,,
12776 s,^['$as_cr_digits']*\n,,
12777 ' >$as_me.lineno &&
12778 chmod +x $as_me.lineno ||
12779 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12780 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12781 { (exit 1); exit 1; }; }
12783 # Don't try to exec as it changes $[0], causing all sort of problems
12784 # (the dirname of $[0] is not the place where we might find the
12785 # original and so on. Autoconf is especially sensible to this).
12786 . ./$as_me.lineno
12787 # Exit status is that of the last command.
12788 exit
12792 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12793 *c*,-n*) ECHO_N= ECHO_C='
12794 ' ECHO_T=' ' ;;
12795 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12796 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12797 esac
12799 if expr a : '\(a\)' >/dev/null 2>&1; then
12800 as_expr=expr
12801 else
12802 as_expr=false
12805 rm -f conf$$ conf$$.exe conf$$.file
12806 echo >conf$$.file
12807 if ln -s conf$$.file conf$$ 2>/dev/null; then
12808 # We could just check for DJGPP; but this test a) works b) is more generic
12809 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12810 if test -f conf$$.exe; then
12811 # Don't use ln at all; we don't have any links
12812 as_ln_s='cp -p'
12813 else
12814 as_ln_s='ln -s'
12816 elif ln conf$$.file conf$$ 2>/dev/null; then
12817 as_ln_s=ln
12818 else
12819 as_ln_s='cp -p'
12821 rm -f conf$$ conf$$.exe conf$$.file
12823 if mkdir -p . 2>/dev/null; then
12824 as_mkdir_p=:
12825 else
12826 test -d ./-p && rmdir ./-p
12827 as_mkdir_p=false
12830 as_executable_p="test -f"
12832 # Sed expression to map a string onto a valid CPP name.
12833 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12835 # Sed expression to map a string onto a valid variable name.
12836 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12839 # IFS
12840 # We need space, tab and new line, in precisely that order.
12841 as_nl='
12843 IFS=" $as_nl"
12845 # CDPATH.
12846 $as_unset CDPATH
12848 exec 6>&1
12850 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12851 # report actual input values of CONFIG_FILES etc. instead of their
12852 # values after options handling. Logging --version etc. is OK.
12853 exec 5>>config.log
12855 echo
12856 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12857 ## Running $as_me. ##
12858 _ASBOX
12859 } >&5
12860 cat >&5 <<_CSEOF
12862 This file was extended by $as_me, which was
12863 generated by GNU Autoconf 2.59. Invocation command line was
12865 CONFIG_FILES = $CONFIG_FILES
12866 CONFIG_HEADERS = $CONFIG_HEADERS
12867 CONFIG_LINKS = $CONFIG_LINKS
12868 CONFIG_COMMANDS = $CONFIG_COMMANDS
12869 $ $0 $@
12871 _CSEOF
12872 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12873 echo >&5
12874 _ACEOF
12876 # Files that config.status was made for.
12877 if test -n "$ac_config_files"; then
12878 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12881 if test -n "$ac_config_headers"; then
12882 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12885 if test -n "$ac_config_links"; then
12886 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12889 if test -n "$ac_config_commands"; then
12890 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12893 cat >>$CONFIG_STATUS <<\_ACEOF
12895 ac_cs_usage="\
12896 \`$as_me' instantiates files from templates according to the
12897 current configuration.
12899 Usage: $0 [OPTIONS] [FILE]...
12901 -h, --help print this help, then exit
12902 -V, --version print version number, then exit
12903 -q, --quiet do not print progress messages
12904 -d, --debug don't remove temporary files
12905 --recheck update $as_me by reconfiguring in the same conditions
12906 --file=FILE[:TEMPLATE]
12907 instantiate the configuration file FILE
12908 --header=FILE[:TEMPLATE]
12909 instantiate the configuration header FILE
12911 Configuration files:
12912 $config_files
12914 Configuration headers:
12915 $config_headers
12917 Configuration commands:
12918 $config_commands
12920 Report bugs to <bug-autoconf@gnu.org>."
12921 _ACEOF
12923 cat >>$CONFIG_STATUS <<_ACEOF
12924 ac_cs_version="\\
12925 config.status
12926 configured by $0, generated by GNU Autoconf 2.59,
12927 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12929 Copyright (C) 2003 Free Software Foundation, Inc.
12930 This config.status script is free software; the Free Software Foundation
12931 gives unlimited permission to copy, distribute and modify it."
12932 srcdir=$srcdir
12933 _ACEOF
12935 cat >>$CONFIG_STATUS <<\_ACEOF
12936 # If no file are specified by the user, then we need to provide default
12937 # value. By we need to know if files were specified by the user.
12938 ac_need_defaults=:
12939 while test $# != 0
12941 case $1 in
12942 --*=*)
12943 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12944 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12945 ac_shift=:
12948 ac_option=$1
12949 ac_optarg=$2
12950 ac_shift=shift
12952 *) # This is not an option, so the user has probably given explicit
12953 # arguments.
12954 ac_option=$1
12955 ac_need_defaults=false;;
12956 esac
12958 case $ac_option in
12959 # Handling of the options.
12960 _ACEOF
12961 cat >>$CONFIG_STATUS <<\_ACEOF
12962 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12963 ac_cs_recheck=: ;;
12964 --version | --vers* | -V )
12965 echo "$ac_cs_version"; exit 0 ;;
12966 --he | --h)
12967 # Conflict between --help and --header
12968 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12969 Try \`$0 --help' for more information." >&5
12970 echo "$as_me: error: ambiguous option: $1
12971 Try \`$0 --help' for more information." >&2;}
12972 { (exit 1); exit 1; }; };;
12973 --help | --hel | -h )
12974 echo "$ac_cs_usage"; exit 0 ;;
12975 --debug | --d* | -d )
12976 debug=: ;;
12977 --file | --fil | --fi | --f )
12978 $ac_shift
12979 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12980 ac_need_defaults=false;;
12981 --header | --heade | --head | --hea )
12982 $ac_shift
12983 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12984 ac_need_defaults=false;;
12985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12986 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12987 ac_cs_silent=: ;;
12989 # This is an error.
12990 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12991 Try \`$0 --help' for more information." >&5
12992 echo "$as_me: error: unrecognized option: $1
12993 Try \`$0 --help' for more information." >&2;}
12994 { (exit 1); exit 1; }; } ;;
12996 *) ac_config_targets="$ac_config_targets $1" ;;
12998 esac
12999 shift
13000 done
13002 ac_configure_extra_args=
13004 if $ac_cs_silent; then
13005 exec 6>/dev/null
13006 ac_configure_extra_args="$ac_configure_extra_args --silent"
13009 _ACEOF
13010 cat >>$CONFIG_STATUS <<_ACEOF
13011 if \$ac_cs_recheck; then
13012 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13013 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13016 _ACEOF
13018 cat >>$CONFIG_STATUS <<_ACEOF
13020 # INIT-COMMANDS section.
13023 subdirs='$subdirs'
13024 symbolic_link='$symbolic_link'
13027 _ACEOF
13031 cat >>$CONFIG_STATUS <<\_ACEOF
13032 for ac_config_target in $ac_config_targets
13034 case "$ac_config_target" in
13035 # Handling of arguments.
13036 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13037 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13038 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13039 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13040 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13041 { (exit 1); exit 1; }; };;
13042 esac
13043 done
13045 # If the user did not use the arguments to specify the items to instantiate,
13046 # then the envvar interface is used. Set only those that are not.
13047 # We use the long form for the default assignment because of an extremely
13048 # bizarre bug on SunOS 4.1.3.
13049 if $ac_need_defaults; then
13050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13051 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13052 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13055 # Have a temporary directory for convenience. Make it in the build tree
13056 # simply because there is no reason to put it here, and in addition,
13057 # creating and moving files from /tmp can sometimes cause problems.
13058 # Create a temporary directory, and hook for its removal unless debugging.
13059 $debug ||
13061 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13062 trap '{ (exit 1); exit 1; }' 1 2 13 15
13065 # Create a (secure) tmp directory for tmp files.
13068 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13069 test -n "$tmp" && test -d "$tmp"
13070 } ||
13072 tmp=./confstat$$-$RANDOM
13073 (umask 077 && mkdir $tmp)
13074 } ||
13076 echo "$me: cannot create a temporary directory in ." >&2
13077 { (exit 1); exit 1; }
13080 _ACEOF
13082 cat >>$CONFIG_STATUS <<_ACEOF
13085 # CONFIG_FILES section.
13088 # No need to generate the scripts if there are no CONFIG_FILES.
13089 # This happens for instance when ./config.status config.h
13090 if test -n "\$CONFIG_FILES"; then
13091 # Protect against being on the right side of a sed subst in config.status.
13092 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13093 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13094 s,@SHELL@,$SHELL,;t t
13095 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13096 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13097 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13098 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13099 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13100 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13101 s,@exec_prefix@,$exec_prefix,;t t
13102 s,@prefix@,$prefix,;t t
13103 s,@program_transform_name@,$program_transform_name,;t t
13104 s,@bindir@,$bindir,;t t
13105 s,@sbindir@,$sbindir,;t t
13106 s,@libexecdir@,$libexecdir,;t t
13107 s,@datadir@,$datadir,;t t
13108 s,@sysconfdir@,$sysconfdir,;t t
13109 s,@sharedstatedir@,$sharedstatedir,;t t
13110 s,@localstatedir@,$localstatedir,;t t
13111 s,@libdir@,$libdir,;t t
13112 s,@includedir@,$includedir,;t t
13113 s,@oldincludedir@,$oldincludedir,;t t
13114 s,@infodir@,$infodir,;t t
13115 s,@mandir@,$mandir,;t t
13116 s,@build_alias@,$build_alias,;t t
13117 s,@host_alias@,$host_alias,;t t
13118 s,@target_alias@,$target_alias,;t t
13119 s,@DEFS@,$DEFS,;t t
13120 s,@ECHO_C@,$ECHO_C,;t t
13121 s,@ECHO_N@,$ECHO_N,;t t
13122 s,@ECHO_T@,$ECHO_T,;t t
13123 s,@LIBS@,$LIBS,;t t
13124 s,@build@,$build,;t t
13125 s,@build_cpu@,$build_cpu,;t t
13126 s,@build_vendor@,$build_vendor,;t t
13127 s,@build_os@,$build_os,;t t
13128 s,@host@,$host,;t t
13129 s,@host_cpu@,$host_cpu,;t t
13130 s,@host_vendor@,$host_vendor,;t t
13131 s,@host_os@,$host_os,;t t
13132 s,@target@,$target,;t t
13133 s,@target_cpu@,$target_cpu,;t t
13134 s,@target_vendor@,$target_vendor,;t t
13135 s,@target_os@,$target_os,;t t
13136 s,@target_noncanonical@,$target_noncanonical,;t t
13137 s,@build_subdir@,$build_subdir,;t t
13138 s,@host_subdir@,$host_subdir,;t t
13139 s,@target_subdir@,$target_subdir,;t t
13140 s,@GENINSRC@,$GENINSRC,;t t
13141 s,@CC@,$CC,;t t
13142 s,@CFLAGS@,$CFLAGS,;t t
13143 s,@LDFLAGS@,$LDFLAGS,;t t
13144 s,@CPPFLAGS@,$CPPFLAGS,;t t
13145 s,@ac_ct_CC@,$ac_ct_CC,;t t
13146 s,@EXEEXT@,$EXEEXT,;t t
13147 s,@OBJEXT@,$OBJEXT,;t t
13148 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13149 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13150 s,@CPP@,$CPP,;t t
13151 s,@strict1_warn@,$strict1_warn,;t t
13152 s,@warn_cflags@,$warn_cflags,;t t
13153 s,@WERROR@,$WERROR,;t t
13154 s,@nocommon_flag@,$nocommon_flag,;t t
13155 s,@TREEBROWSER@,$TREEBROWSER,;t t
13156 s,@EGREP@,$EGREP,;t t
13157 s,@valgrind_path@,$valgrind_path,;t t
13158 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13159 s,@valgrind_command@,$valgrind_command,;t t
13160 s,@coverage_flags@,$coverage_flags,;t t
13161 s,@enable_multilib@,$enable_multilib,;t t
13162 s,@enable_shared@,$enable_shared,;t t
13163 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13164 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13165 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13166 s,@onestep@,$onestep,;t t
13167 s,@SET_MAKE@,$SET_MAKE,;t t
13168 s,@AWK@,$AWK,;t t
13169 s,@LN_S@,$LN_S,;t t
13170 s,@LN@,$LN,;t t
13171 s,@RANLIB@,$RANLIB,;t t
13172 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13173 s,@ranlib_flags@,$ranlib_flags,;t t
13174 s,@INSTALL@,$INSTALL,;t t
13175 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13176 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13177 s,@make_compare_target@,$make_compare_target,;t t
13178 s,@have_mktemp_command@,$have_mktemp_command,;t t
13179 s,@MAKEINFO@,$MAKEINFO,;t t
13180 s,@BUILD_INFO@,$BUILD_INFO,;t t
13181 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13182 s,@FLEX@,$FLEX,;t t
13183 s,@BISON@,$BISON,;t t
13184 s,@NM@,$NM,;t t
13185 s,@AR@,$AR,;t t
13186 s,@stage1_cflags@,$stage1_cflags,;t t
13187 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13188 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13189 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13190 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13191 s,@LIBICONV@,$LIBICONV,;t t
13192 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13193 s,@manext@,$manext,;t t
13194 s,@objext@,$objext,;t t
13195 s,@gthread_flags@,$gthread_flags,;t t
13196 s,@extra_modes_file@,$extra_modes_file,;t t
13197 s,@PACKAGE@,$PACKAGE,;t t
13198 s,@VERSION@,$VERSION,;t t
13199 s,@USE_NLS@,$USE_NLS,;t t
13200 s,@LIBINTL@,$LIBINTL,;t t
13201 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13202 s,@INCINTL@,$INCINTL,;t t
13203 s,@XGETTEXT@,$XGETTEXT,;t t
13204 s,@GMSGFMT@,$GMSGFMT,;t t
13205 s,@POSUB@,$POSUB,;t t
13206 s,@CATALOGS@,$CATALOGS,;t t
13207 s,@CROSS@,$CROSS,;t t
13208 s,@ALL@,$ALL,;t t
13209 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13210 s,@inhibit_libc@,$inhibit_libc,;t t
13211 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13212 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13213 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13214 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13215 s,@collect2@,$collect2,;t t
13216 s,@libgcc_visibility@,$libgcc_visibility,;t t
13217 s,@GGC@,$GGC,;t t
13218 s,@zlibdir@,$zlibdir,;t t
13219 s,@zlibinc@,$zlibinc,;t t
13220 s,@MAINT@,$MAINT,;t t
13221 s,@gcc_tooldir@,$gcc_tooldir,;t t
13222 s,@dollar@,$dollar,;t t
13223 s,@slibdir@,$slibdir,;t t
13224 s,@objdir@,$objdir,;t t
13225 s,@subdirs@,$subdirs,;t t
13226 s,@srcdir@,$srcdir,;t t
13227 s,@all_boot_languages@,$all_boot_languages,;t t
13228 s,@all_compilers@,$all_compilers,;t t
13229 s,@all_gtfiles@,$all_gtfiles,;t t
13230 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13231 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13232 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13233 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13234 s,@all_languages@,$all_languages,;t t
13235 s,@all_stagestuff@,$all_stagestuff,;t t
13236 s,@build_exeext@,$build_exeext,;t t
13237 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13238 s,@build_xm_file_list@,$build_xm_file_list,;t t
13239 s,@build_xm_include_list@,$build_xm_include_list,;t t
13240 s,@build_xm_defines@,$build_xm_defines,;t t
13241 s,@check_languages@,$check_languages,;t t
13242 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13243 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13244 s,@cpp_install_dir@,$cpp_install_dir,;t t
13245 s,@xmake_file@,$xmake_file,;t t
13246 s,@tmake_file@,$tmake_file,;t t
13247 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13248 s,@extra_headers_list@,$extra_headers_list,;t t
13249 s,@extra_objs@,$extra_objs,;t t
13250 s,@extra_parts@,$extra_parts,;t t
13251 s,@extra_passes@,$extra_passes,;t t
13252 s,@extra_programs@,$extra_programs,;t t
13253 s,@float_h_file@,$float_h_file,;t t
13254 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13255 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13256 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13257 s,@gcc_version@,$gcc_version,;t t
13258 s,@gcc_version_full@,$gcc_version_full,;t t
13259 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13260 s,@host_exeext@,$host_exeext,;t t
13261 s,@host_xm_file_list@,$host_xm_file_list,;t t
13262 s,@host_xm_include_list@,$host_xm_include_list,;t t
13263 s,@host_xm_defines@,$host_xm_defines,;t t
13264 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13265 s,@install@,$install,;t t
13266 s,@lang_opt_files@,$lang_opt_files,;t t
13267 s,@lang_specs_files@,$lang_specs_files,;t t
13268 s,@lang_tree_files@,$lang_tree_files,;t t
13269 s,@local_prefix@,$local_prefix,;t t
13270 s,@md_file@,$md_file,;t t
13271 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13272 s,@out_file@,$out_file,;t t
13273 s,@out_object_file@,$out_object_file,;t t
13274 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13275 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13276 s,@symbolic_link@,$symbolic_link,;t t
13277 s,@thread_file@,$thread_file,;t t
13278 s,@tm_file_list@,$tm_file_list,;t t
13279 s,@tm_include_list@,$tm_include_list,;t t
13280 s,@tm_defines@,$tm_defines,;t t
13281 s,@tm_p_file_list@,$tm_p_file_list,;t t
13282 s,@tm_p_include_list@,$tm_p_include_list,;t t
13283 s,@xm_file_list@,$xm_file_list,;t t
13284 s,@xm_include_list@,$xm_include_list,;t t
13285 s,@xm_defines@,$xm_defines,;t t
13286 s,@c_target_objs@,$c_target_objs,;t t
13287 s,@cxx_target_objs@,$cxx_target_objs,;t t
13288 s,@target_cpu_default@,$target_cpu_default,;t t
13289 s,@GMPLIBS@,$GMPLIBS,;t t
13290 s,@GMPINC@,$GMPINC,;t t
13291 s,@LIBOBJS@,$LIBOBJS,;t t
13292 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13293 /@language_hooks@/r $language_hooks
13294 s,@language_hooks@,,;t t
13295 CEOF
13297 _ACEOF
13299 cat >>$CONFIG_STATUS <<\_ACEOF
13300 # Split the substitutions into bite-sized pieces for seds with
13301 # small command number limits, like on Digital OSF/1 and HP-UX.
13302 ac_max_sed_lines=48
13303 ac_sed_frag=1 # Number of current file.
13304 ac_beg=1 # First line for current file.
13305 ac_end=$ac_max_sed_lines # Line after last line for current file.
13306 ac_more_lines=:
13307 ac_sed_cmds=
13308 while $ac_more_lines; do
13309 if test $ac_beg -gt 1; then
13310 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13311 else
13312 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13314 if test ! -s $tmp/subs.frag; then
13315 ac_more_lines=false
13316 else
13317 # The purpose of the label and of the branching condition is to
13318 # speed up the sed processing (if there are no `@' at all, there
13319 # is no need to browse any of the substitutions).
13320 # These are the two extra sed commands mentioned above.
13321 (echo ':t
13322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13323 if test -z "$ac_sed_cmds"; then
13324 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13325 else
13326 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13328 ac_sed_frag=`expr $ac_sed_frag + 1`
13329 ac_beg=$ac_end
13330 ac_end=`expr $ac_end + $ac_max_sed_lines`
13332 done
13333 if test -z "$ac_sed_cmds"; then
13334 ac_sed_cmds=cat
13336 fi # test -n "$CONFIG_FILES"
13338 _ACEOF
13339 cat >>$CONFIG_STATUS <<\_ACEOF
13340 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13341 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13342 case $ac_file in
13343 - | *:- | *:-:* ) # input from stdin
13344 cat >$tmp/stdin
13345 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13347 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13348 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13349 * ) ac_file_in=$ac_file.in ;;
13350 esac
13352 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13353 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13355 X"$ac_file" : 'X\(//\)[^/]' \| \
13356 X"$ac_file" : 'X\(//\)$' \| \
13357 X"$ac_file" : 'X\(/\)' \| \
13358 . : '\(.\)' 2>/dev/null ||
13359 echo X"$ac_file" |
13360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13362 /^X\(\/\/\)$/{ s//\1/; q; }
13363 /^X\(\/\).*/{ s//\1/; q; }
13364 s/.*/./; q'`
13365 { if $as_mkdir_p; then
13366 mkdir -p "$ac_dir"
13367 else
13368 as_dir="$ac_dir"
13369 as_dirs=
13370 while test ! -d "$as_dir"; do
13371 as_dirs="$as_dir $as_dirs"
13372 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13374 X"$as_dir" : 'X\(//\)[^/]' \| \
13375 X"$as_dir" : 'X\(//\)$' \| \
13376 X"$as_dir" : 'X\(/\)' \| \
13377 . : '\(.\)' 2>/dev/null ||
13378 echo X"$as_dir" |
13379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13381 /^X\(\/\/\)$/{ s//\1/; q; }
13382 /^X\(\/\).*/{ s//\1/; q; }
13383 s/.*/./; q'`
13384 done
13385 test ! -n "$as_dirs" || mkdir $as_dirs
13386 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13387 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13388 { (exit 1); exit 1; }; }; }
13390 ac_builddir=.
13392 if test "$ac_dir" != .; then
13393 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13394 # A "../" for each directory in $ac_dir_suffix.
13395 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13396 else
13397 ac_dir_suffix= ac_top_builddir=
13400 case $srcdir in
13401 .) # No --srcdir option. We are building in place.
13402 ac_srcdir=.
13403 if test -z "$ac_top_builddir"; then
13404 ac_top_srcdir=.
13405 else
13406 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13407 fi ;;
13408 [\\/]* | ?:[\\/]* ) # Absolute path.
13409 ac_srcdir=$srcdir$ac_dir_suffix;
13410 ac_top_srcdir=$srcdir ;;
13411 *) # Relative path.
13412 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13413 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13414 esac
13416 # Do not use `cd foo && pwd` to compute absolute paths, because
13417 # the directories may not exist.
13418 case `pwd` in
13419 .) ac_abs_builddir="$ac_dir";;
13421 case "$ac_dir" in
13422 .) ac_abs_builddir=`pwd`;;
13423 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13424 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13425 esac;;
13426 esac
13427 case $ac_abs_builddir in
13428 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13430 case ${ac_top_builddir}. in
13431 .) ac_abs_top_builddir=$ac_abs_builddir;;
13432 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13433 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13434 esac;;
13435 esac
13436 case $ac_abs_builddir in
13437 .) ac_abs_srcdir=$ac_srcdir;;
13439 case $ac_srcdir in
13440 .) ac_abs_srcdir=$ac_abs_builddir;;
13441 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13442 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13443 esac;;
13444 esac
13445 case $ac_abs_builddir in
13446 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13448 case $ac_top_srcdir in
13449 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13450 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13451 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13452 esac;;
13453 esac
13457 if test x"$ac_file" != x-; then
13458 { echo "$as_me:$LINENO: creating $ac_file" >&5
13459 echo "$as_me: creating $ac_file" >&6;}
13460 rm -f "$ac_file"
13462 # Let's still pretend it is `configure' which instantiates (i.e., don't
13463 # use $as_me), people would be surprised to read:
13464 # /* config.h. Generated by config.status. */
13465 if test x"$ac_file" = x-; then
13466 configure_input=
13467 else
13468 configure_input="$ac_file. "
13470 configure_input=$configure_input"Generated from `echo $ac_file_in |
13471 sed 's,.*/,,'` by configure."
13473 # First look for the input files in the build tree, otherwise in the
13474 # src tree.
13475 ac_file_inputs=`IFS=:
13476 for f in $ac_file_in; do
13477 case $f in
13478 -) echo $tmp/stdin ;;
13479 [\\/$]*)
13480 # Absolute (can't be DOS-style, as IFS=:)
13481 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13482 echo "$as_me: error: cannot find input file: $f" >&2;}
13483 { (exit 1); exit 1; }; }
13484 echo "$f";;
13485 *) # Relative
13486 if test -f "$f"; then
13487 # Build tree
13488 echo "$f"
13489 elif test -f "$srcdir/$f"; then
13490 # Source tree
13491 echo "$srcdir/$f"
13492 else
13493 # /dev/null tree
13494 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13495 echo "$as_me: error: cannot find input file: $f" >&2;}
13496 { (exit 1); exit 1; }; }
13497 fi;;
13498 esac
13499 done` || { (exit 1); exit 1; }
13500 _ACEOF
13501 cat >>$CONFIG_STATUS <<_ACEOF
13502 sed "$ac_vpsub
13503 $extrasub
13504 _ACEOF
13505 cat >>$CONFIG_STATUS <<\_ACEOF
13507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13508 s,@configure_input@,$configure_input,;t t
13509 s,@srcdir@,$ac_srcdir,;t t
13510 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13511 s,@top_srcdir@,$ac_top_srcdir,;t t
13512 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13513 s,@builddir@,$ac_builddir,;t t
13514 s,@abs_builddir@,$ac_abs_builddir,;t t
13515 s,@top_builddir@,$ac_top_builddir,;t t
13516 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13517 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13518 rm -f $tmp/stdin
13519 if test x"$ac_file" != x-; then
13520 mv $tmp/out $ac_file
13521 else
13522 cat $tmp/out
13523 rm -f $tmp/out
13526 done
13527 _ACEOF
13528 cat >>$CONFIG_STATUS <<\_ACEOF
13531 # CONFIG_HEADER section.
13534 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13535 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13537 # ac_d sets the value in "#define NAME VALUE" lines.
13538 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13539 ac_dB='[ ].*$,\1#\2'
13540 ac_dC=' '
13541 ac_dD=',;t'
13542 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13543 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13544 ac_uB='$,\1#\2define\3'
13545 ac_uC=' '
13546 ac_uD=',;t'
13548 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13549 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13550 case $ac_file in
13551 - | *:- | *:-:* ) # input from stdin
13552 cat >$tmp/stdin
13553 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13554 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13555 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13556 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13557 * ) ac_file_in=$ac_file.in ;;
13558 esac
13560 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13561 echo "$as_me: creating $ac_file" >&6;}
13563 # First look for the input files in the build tree, otherwise in the
13564 # src tree.
13565 ac_file_inputs=`IFS=:
13566 for f in $ac_file_in; do
13567 case $f in
13568 -) echo $tmp/stdin ;;
13569 [\\/$]*)
13570 # Absolute (can't be DOS-style, as IFS=:)
13571 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13572 echo "$as_me: error: cannot find input file: $f" >&2;}
13573 { (exit 1); exit 1; }; }
13574 # Do quote $f, to prevent DOS paths from being IFS'd.
13575 echo "$f";;
13576 *) # Relative
13577 if test -f "$f"; then
13578 # Build tree
13579 echo "$f"
13580 elif test -f "$srcdir/$f"; then
13581 # Source tree
13582 echo "$srcdir/$f"
13583 else
13584 # /dev/null tree
13585 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13586 echo "$as_me: error: cannot find input file: $f" >&2;}
13587 { (exit 1); exit 1; }; }
13588 fi;;
13589 esac
13590 done` || { (exit 1); exit 1; }
13591 # Remove the trailing spaces.
13592 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13594 _ACEOF
13596 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13597 # `conftest.undefs', that substitutes the proper values into
13598 # config.h.in to produce config.h. The first handles `#define'
13599 # templates, and the second `#undef' templates.
13600 # And first: Protect against being on the right side of a sed subst in
13601 # config.status. Protect against being in an unquoted here document
13602 # in config.status.
13603 rm -f conftest.defines conftest.undefs
13604 # Using a here document instead of a string reduces the quoting nightmare.
13605 # Putting comments in sed scripts is not portable.
13607 # `end' is used to avoid that the second main sed command (meant for
13608 # 0-ary CPP macros) applies to n-ary macro definitions.
13609 # See the Autoconf documentation for `clear'.
13610 cat >confdef2sed.sed <<\_ACEOF
13611 s/[\\&,]/\\&/g
13612 s,[\\$`],\\&,g
13613 t clear
13614 : clear
13615 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13616 t end
13617 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13618 : end
13619 _ACEOF
13620 # If some macros were called several times there might be several times
13621 # the same #defines, which is useless. Nevertheless, we may not want to
13622 # sort them, since we want the *last* AC-DEFINE to be honored.
13623 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13624 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13625 rm -f confdef2sed.sed
13627 # This sed command replaces #undef with comments. This is necessary, for
13628 # example, in the case of _POSIX_SOURCE, which is predefined and required
13629 # on some systems where configure will not decide to define it.
13630 cat >>conftest.undefs <<\_ACEOF
13631 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13632 _ACEOF
13634 # Break up conftest.defines because some shells have a limit on the size
13635 # of here documents, and old seds have small limits too (100 cmds).
13636 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13637 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13638 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13639 echo ' :' >>$CONFIG_STATUS
13640 rm -f conftest.tail
13641 while grep . conftest.defines >/dev/null
13643 # Write a limited-size here document to $tmp/defines.sed.
13644 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13645 # Speed up: don't consider the non `#define' lines.
13646 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13647 # Work around the forget-to-reset-the-flag bug.
13648 echo 't clr' >>$CONFIG_STATUS
13649 echo ': clr' >>$CONFIG_STATUS
13650 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13651 echo 'CEOF
13652 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13653 rm -f $tmp/in
13654 mv $tmp/out $tmp/in
13655 ' >>$CONFIG_STATUS
13656 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13657 rm -f conftest.defines
13658 mv conftest.tail conftest.defines
13659 done
13660 rm -f conftest.defines
13661 echo ' fi # grep' >>$CONFIG_STATUS
13662 echo >>$CONFIG_STATUS
13664 # Break up conftest.undefs because some shells have a limit on the size
13665 # of here documents, and old seds have small limits too (100 cmds).
13666 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13667 rm -f conftest.tail
13668 while grep . conftest.undefs >/dev/null
13670 # Write a limited-size here document to $tmp/undefs.sed.
13671 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13672 # Speed up: don't consider the non `#undef'
13673 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13674 # Work around the forget-to-reset-the-flag bug.
13675 echo 't clr' >>$CONFIG_STATUS
13676 echo ': clr' >>$CONFIG_STATUS
13677 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13678 echo 'CEOF
13679 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13680 rm -f $tmp/in
13681 mv $tmp/out $tmp/in
13682 ' >>$CONFIG_STATUS
13683 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13684 rm -f conftest.undefs
13685 mv conftest.tail conftest.undefs
13686 done
13687 rm -f conftest.undefs
13689 cat >>$CONFIG_STATUS <<\_ACEOF
13690 # Let's still pretend it is `configure' which instantiates (i.e., don't
13691 # use $as_me), people would be surprised to read:
13692 # /* config.h. Generated by config.status. */
13693 if test x"$ac_file" = x-; then
13694 echo "/* Generated by configure. */" >$tmp/config.h
13695 else
13696 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13698 cat $tmp/in >>$tmp/config.h
13699 rm -f $tmp/in
13700 if test x"$ac_file" != x-; then
13701 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13702 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13703 echo "$as_me: $ac_file is unchanged" >&6;}
13704 else
13705 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13707 X"$ac_file" : 'X\(//\)[^/]' \| \
13708 X"$ac_file" : 'X\(//\)$' \| \
13709 X"$ac_file" : 'X\(/\)' \| \
13710 . : '\(.\)' 2>/dev/null ||
13711 echo X"$ac_file" |
13712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13714 /^X\(\/\/\)$/{ s//\1/; q; }
13715 /^X\(\/\).*/{ s//\1/; q; }
13716 s/.*/./; q'`
13717 { if $as_mkdir_p; then
13718 mkdir -p "$ac_dir"
13719 else
13720 as_dir="$ac_dir"
13721 as_dirs=
13722 while test ! -d "$as_dir"; do
13723 as_dirs="$as_dir $as_dirs"
13724 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13726 X"$as_dir" : 'X\(//\)[^/]' \| \
13727 X"$as_dir" : 'X\(//\)$' \| \
13728 X"$as_dir" : 'X\(/\)' \| \
13729 . : '\(.\)' 2>/dev/null ||
13730 echo X"$as_dir" |
13731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13733 /^X\(\/\/\)$/{ s//\1/; q; }
13734 /^X\(\/\).*/{ s//\1/; q; }
13735 s/.*/./; q'`
13736 done
13737 test ! -n "$as_dirs" || mkdir $as_dirs
13738 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13739 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13740 { (exit 1); exit 1; }; }; }
13742 rm -f $ac_file
13743 mv $tmp/config.h $ac_file
13745 else
13746 cat $tmp/config.h
13747 rm -f $tmp/config.h
13749 done
13750 _ACEOF
13751 cat >>$CONFIG_STATUS <<\_ACEOF
13754 # CONFIG_COMMANDS section.
13756 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13757 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13758 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13759 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13760 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13761 X"$ac_dest" : 'X\(//\)[^/]' \| \
13762 X"$ac_dest" : 'X\(//\)$' \| \
13763 X"$ac_dest" : 'X\(/\)' \| \
13764 . : '\(.\)' 2>/dev/null ||
13765 echo X"$ac_dest" |
13766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13768 /^X\(\/\/\)$/{ s//\1/; q; }
13769 /^X\(\/\).*/{ s//\1/; q; }
13770 s/.*/./; q'`
13771 { if $as_mkdir_p; then
13772 mkdir -p "$ac_dir"
13773 else
13774 as_dir="$ac_dir"
13775 as_dirs=
13776 while test ! -d "$as_dir"; do
13777 as_dirs="$as_dir $as_dirs"
13778 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13780 X"$as_dir" : 'X\(//\)[^/]' \| \
13781 X"$as_dir" : 'X\(//\)$' \| \
13782 X"$as_dir" : 'X\(/\)' \| \
13783 . : '\(.\)' 2>/dev/null ||
13784 echo X"$as_dir" |
13785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13787 /^X\(\/\/\)$/{ s//\1/; q; }
13788 /^X\(\/\).*/{ s//\1/; q; }
13789 s/.*/./; q'`
13790 done
13791 test ! -n "$as_dirs" || mkdir $as_dirs
13792 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13793 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13794 { (exit 1); exit 1; }; }; }
13796 ac_builddir=.
13798 if test "$ac_dir" != .; then
13799 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13800 # A "../" for each directory in $ac_dir_suffix.
13801 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13802 else
13803 ac_dir_suffix= ac_top_builddir=
13806 case $srcdir in
13807 .) # No --srcdir option. We are building in place.
13808 ac_srcdir=.
13809 if test -z "$ac_top_builddir"; then
13810 ac_top_srcdir=.
13811 else
13812 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13813 fi ;;
13814 [\\/]* | ?:[\\/]* ) # Absolute path.
13815 ac_srcdir=$srcdir$ac_dir_suffix;
13816 ac_top_srcdir=$srcdir ;;
13817 *) # Relative path.
13818 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13819 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13820 esac
13822 # Do not use `cd foo && pwd` to compute absolute paths, because
13823 # the directories may not exist.
13824 case `pwd` in
13825 .) ac_abs_builddir="$ac_dir";;
13827 case "$ac_dir" in
13828 .) ac_abs_builddir=`pwd`;;
13829 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13830 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13831 esac;;
13832 esac
13833 case $ac_abs_builddir in
13834 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13836 case ${ac_top_builddir}. in
13837 .) ac_abs_top_builddir=$ac_abs_builddir;;
13838 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13839 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13840 esac;;
13841 esac
13842 case $ac_abs_builddir in
13843 .) ac_abs_srcdir=$ac_srcdir;;
13845 case $ac_srcdir in
13846 .) ac_abs_srcdir=$ac_abs_builddir;;
13847 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13848 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13849 esac;;
13850 esac
13851 case $ac_abs_builddir in
13852 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13854 case $ac_top_srcdir in
13855 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13856 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13857 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13858 esac;;
13859 esac
13862 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13863 echo "$as_me: executing $ac_dest commands" >&6;}
13864 case $ac_dest in
13865 default )
13866 case ${CONFIG_HEADERS} in
13867 *auto-host.h:config.in*)
13868 echo > cstamp-h ;;
13869 esac
13870 # Make sure all the subdirs exist.
13871 for d in $subdirs
13873 test -d $d || mkdir $d
13874 done
13875 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13876 # bootstrapping and the installation procedure can still use
13877 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13878 # FLAGS_TO_PASS has been modified to solve the problem there.
13879 # This is virtually a duplicate of what happens in configure.lang; we do
13880 # an extra check to make sure this only happens if ln -s can be used.
13881 if test "$symbolic_link" = "ln -s"; then
13882 for d in ${subdirs} ; do
13883 STARTDIR=`${PWDCMD-pwd}`
13884 cd $d
13885 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13887 rm -f $t
13888 $symbolic_link ../$t $t 2>/dev/null
13889 done
13890 cd $STARTDIR
13891 done
13892 else true ; fi
13894 esac
13895 done
13896 _ACEOF
13898 cat >>$CONFIG_STATUS <<\_ACEOF
13900 { (exit 0); exit 0; }
13901 _ACEOF
13902 chmod +x $CONFIG_STATUS
13903 ac_clean_files=$ac_clean_files_save
13906 # configure is writing to config.log, and then calls config.status.
13907 # config.status does its own redirection, appending to config.log.
13908 # Unfortunately, on DOS this fails, as config.log is still kept open
13909 # by configure, so config.status won't be able to write to it; its
13910 # output is simply discarded. So we exec the FD to /dev/null,
13911 # effectively closing config.log, so it can be properly (re)opened and
13912 # appended to by config.status. When coming back to configure, we
13913 # need to make the FD available again.
13914 if test "$no_create" != yes; then
13915 ac_cs_success=:
13916 ac_config_status_args=
13917 test "$silent" = yes &&
13918 ac_config_status_args="$ac_config_status_args --quiet"
13919 exec 5>/dev/null
13920 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13921 exec 5>>config.log
13922 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13923 # would make configure fail if this is the last instruction.
13924 $ac_cs_success || { (exit 1); exit 1; }