configure.ac: Check for -Wno-variadic-macros...
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
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}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
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"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
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
334
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'
352
353 ac_prev=
354 for ac_option
355 do
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
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
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 ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
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 ;;
394
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" ;;
403
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'" ;;
416
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 ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
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 ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
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 ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
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 ;;
465
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 ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
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 ;;
491
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 ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
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 ;;
512
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 ;;
519
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 ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
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 ;;
546
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 ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
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 ;;
574
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 ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
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'" ;;
598
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" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
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 ;;
618
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 ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
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 ;;
640
641 *)
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}
647 ;;
648
649 esac
650 done
651
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; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
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
668
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
672 do
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
680
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
687
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
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
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=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
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; }; }
735 fi
736 fi
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
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-generated-files-in-srcdir
854 put copies of generated files in source dir
855 intended for creating source tarballs for users
856 without texinfo bison or flex.
857 --enable-werror enable -Werror in bootstrap stage2 and later
858 --enable-checking=LIST
859 enable expensive run-time checks. With LIST,
860 enable only specific categories of checks.
861 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
862 default is misc,tree,gc,rtlflag
863 --enable-coverage=LEVEL
864 enable compiler\'s code coverage collection.
865 Use to measure compiler performance and locate
866 unused parts of the compiler. With LEVEL, specify
867 optimization. Values are opt, noopt,
868 default is noopt
869 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
870 --enable-multilib enable library support for multiple ABIs
871 --enable-__cxa_atexit enable __cxa_atexit for C++
872 --enable-threads enable thread usage for target GCC
873 --enable-threads=LIB use LIB thread package for target GCC
874 --enable-objc-gc enable the use of Boehm's garbage collector with
875 the GNU Objective-C runtime
876 --disable-shared don't provide a shared libgcc
877 --enable-intermodule build the compiler in one step
878 --enable-languages=LIST specify which front-ends to build
879 --enable-initfini-array use .init_array/.fini_array sections
880 --enable-sjlj-exceptions
881 arrange to use setjmp/longjmp exception handling
882 --enable-libunwind-exceptions force use libunwind for exceptions
883 --disable-win32-registry
884 disable lookup of installation paths in the
885 Registry on Windows hosts
886 --enable-win32-registry enable registry lookup (default)
887 --enable-win32-registry=KEY
888 use KEY instead of GCC version as the last portion
889 of the registry key
890 --enable-maintainer-mode
891 enable make rules and dependencies not useful
892 (and sometimes confusing) to the casual installer
893 --enable-version-specific-runtime-libs
894 specify that runtime libraries should be
895 installed in a compiler-specific directory
896
897 Optional Packages:
898 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
899 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
900 --with-local-prefix=DIR specifies directory to put local include
901 --with-gxx-include-dir=DIR
902 specifies directory to put g++ header files
903 --with-cpp-install-dir=DIR
904 install the user visible C preprocessor in DIR
905 (relative to PREFIX) as well as PREFIX/bin
906 --with-gnu-ld arrange to work with GNU ld.
907 --with-ld arrange to use the specified ld (full pathname)
908 --with-gnu-as arrange to work with GNU as
909 --with-as arrange to use the specified as (full pathname)
910 --with-stabs arrange to use stabs instead of host debug format
911 --with-dwarf2 force the default debug format to be DWARF 2
912 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
913 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
914 --with-gc={page,zone} choose the garbage collection mechanism to use
915 with the compiler
916 --with-system-zlib use installed libz
917 --with-slibdir=DIR shared libraries in DIR LIBDIR
918
919 Some influential environment variables:
920 CC C compiler command
921 CFLAGS C compiler flags
922 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
923 nonstandard directory <lib dir>
924 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
925 headers in a nonstandard directory <include dir>
926 CPP C preprocessor
927
928 Use these variables to override the choices made by `configure' or to help
929 it to find libraries and programs with nonstandard names/locations.
930
931 _ACEOF
932 fi
933
934 if test "$ac_init_help" = "recursive"; then
935 # If there are subdirs, report their specific --help.
936 ac_popdir=`pwd`
937 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
938 test -d $ac_dir || continue
939 ac_builddir=.
940
941 if test "$ac_dir" != .; then
942 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
943 # A "../" for each directory in $ac_dir_suffix.
944 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 else
946 ac_dir_suffix= ac_top_builddir=
947 fi
948
949 case $srcdir in
950 .) # No --srcdir option. We are building in place.
951 ac_srcdir=.
952 if test -z "$ac_top_builddir"; then
953 ac_top_srcdir=.
954 else
955 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956 fi ;;
957 [\\/]* | ?:[\\/]* ) # Absolute path.
958 ac_srcdir=$srcdir$ac_dir_suffix;
959 ac_top_srcdir=$srcdir ;;
960 *) # Relative path.
961 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
962 ac_top_srcdir=$ac_top_builddir$srcdir ;;
963 esac
964
965 # Do not use `cd foo && pwd` to compute absolute paths, because
966 # the directories may not exist.
967 case `pwd` in
968 .) ac_abs_builddir="$ac_dir";;
969 *)
970 case "$ac_dir" in
971 .) ac_abs_builddir=`pwd`;;
972 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
973 *) ac_abs_builddir=`pwd`/"$ac_dir";;
974 esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
978 *)
979 case ${ac_top_builddir}. in
980 .) ac_abs_top_builddir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
982 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
983 esac;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_srcdir=$ac_srcdir;;
987 *)
988 case $ac_srcdir in
989 .) ac_abs_srcdir=$ac_abs_builddir;;
990 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
991 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
992 esac;;
993 esac
994 case $ac_abs_builddir in
995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
996 *)
997 case $ac_top_srcdir in
998 .) ac_abs_top_srcdir=$ac_abs_builddir;;
999 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1000 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1001 esac;;
1002 esac
1003
1004 cd $ac_dir
1005 # Check for guested configure; otherwise get Cygnus style configure.
1006 if test -f $ac_srcdir/configure.gnu; then
1007 echo
1008 $SHELL $ac_srcdir/configure.gnu --help=recursive
1009 elif test -f $ac_srcdir/configure; then
1010 echo
1011 $SHELL $ac_srcdir/configure --help=recursive
1012 elif test -f $ac_srcdir/configure.ac ||
1013 test -f $ac_srcdir/configure.in; then
1014 echo
1015 $ac_configure --help
1016 else
1017 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1018 fi
1019 cd "$ac_popdir"
1020 done
1021 fi
1022
1023 test -n "$ac_init_help" && exit 0
1024 if $ac_init_version; then
1025 cat <<\_ACEOF
1026
1027 Copyright (C) 2003 Free Software Foundation, Inc.
1028 This configure script is free software; the Free Software Foundation
1029 gives unlimited permission to copy, distribute and modify it.
1030 _ACEOF
1031 exit 0
1032 fi
1033 exec 5>config.log
1034 cat >&5 <<_ACEOF
1035 This file contains any messages produced by compilers while
1036 running configure, to aid debugging if configure makes a mistake.
1037
1038 It was created by $as_me, which was
1039 generated by GNU Autoconf 2.59. Invocation command line was
1040
1041 $ $0 $@
1042
1043 _ACEOF
1044 {
1045 cat <<_ASUNAME
1046 ## --------- ##
1047 ## Platform. ##
1048 ## --------- ##
1049
1050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1055
1056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1057 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1058
1059 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1060 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1062 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1063 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1064 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1065 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1066
1067 _ASUNAME
1068
1069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1070 for as_dir in $PATH
1071 do
1072 IFS=$as_save_IFS
1073 test -z "$as_dir" && as_dir=.
1074 echo "PATH: $as_dir"
1075 done
1076
1077 } >&5
1078
1079 cat >&5 <<_ACEOF
1080
1081
1082 ## ----------- ##
1083 ## Core tests. ##
1084 ## ----------- ##
1085
1086 _ACEOF
1087
1088
1089 # Keep a trace of the command line.
1090 # Strip out --no-create and --no-recursion so they do not pile up.
1091 # Strip out --silent because we don't want to record it for future runs.
1092 # Also quote any args containing shell meta-characters.
1093 # Make two passes to allow for proper duplicate-argument suppression.
1094 ac_configure_args=
1095 ac_configure_args0=
1096 ac_configure_args1=
1097 ac_sep=
1098 ac_must_keep_next=false
1099 for ac_pass in 1 2
1100 do
1101 for ac_arg
1102 do
1103 case $ac_arg in
1104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 continue ;;
1108 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1109 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1110 esac
1111 case $ac_pass in
1112 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1113 2)
1114 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1115 if test $ac_must_keep_next = true; then
1116 ac_must_keep_next=false # Got value, back to normal.
1117 else
1118 case $ac_arg in
1119 *=* | --config-cache | -C | -disable-* | --disable-* \
1120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1122 | -with-* | --with-* | -without-* | --without-* | --x)
1123 case "$ac_configure_args0 " in
1124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1125 esac
1126 ;;
1127 -* ) ac_must_keep_next=true ;;
1128 esac
1129 fi
1130 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1131 # Get rid of the leading space.
1132 ac_sep=" "
1133 ;;
1134 esac
1135 done
1136 done
1137 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1138 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1139
1140 # When interrupted or exit'd, cleanup temporary files, and complete
1141 # config.log. We remove comments because anyway the quotes in there
1142 # would cause problems or look ugly.
1143 # WARNING: Be sure not to use single quotes in there, as some shells,
1144 # such as our DU 5.0 friend, will then `close' the trap.
1145 trap 'exit_status=$?
1146 # Save into config.log some information that might help in debugging.
1147 {
1148 echo
1149
1150 cat <<\_ASBOX
1151 ## ---------------- ##
1152 ## Cache variables. ##
1153 ## ---------------- ##
1154 _ASBOX
1155 echo
1156 # The following way of writing the cache mishandles newlines in values,
1157 {
1158 (set) 2>&1 |
1159 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1160 *ac_space=\ *)
1161 sed -n \
1162 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1164 ;;
1165 *)
1166 sed -n \
1167 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1168 ;;
1169 esac;
1170 }
1171 echo
1172
1173 cat <<\_ASBOX
1174 ## ----------------- ##
1175 ## Output variables. ##
1176 ## ----------------- ##
1177 _ASBOX
1178 echo
1179 for ac_var in $ac_subst_vars
1180 do
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1183 done | sort
1184 echo
1185
1186 if test -n "$ac_subst_files"; then
1187 cat <<\_ASBOX
1188 ## ------------- ##
1189 ## Output files. ##
1190 ## ------------- ##
1191 _ASBOX
1192 echo
1193 for ac_var in $ac_subst_files
1194 do
1195 eval ac_val=$`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1197 done | sort
1198 echo
1199 fi
1200
1201 if test -s confdefs.h; then
1202 cat <<\_ASBOX
1203 ## ----------- ##
1204 ## confdefs.h. ##
1205 ## ----------- ##
1206 _ASBOX
1207 echo
1208 sed "/^$/d" confdefs.h | sort
1209 echo
1210 fi
1211 test "$ac_signal" != 0 &&
1212 echo "$as_me: caught signal $ac_signal"
1213 echo "$as_me: exit $exit_status"
1214 } >&5
1215 rm -f core *.core &&
1216 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1217 exit $exit_status
1218 ' 0
1219 for ac_signal in 1 2 13 15; do
1220 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1221 done
1222 ac_signal=0
1223
1224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1225 rm -rf conftest* confdefs.h
1226 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1227 echo >confdefs.h
1228
1229 # Predefined preprocessor variables.
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_NAME "$PACKAGE_NAME"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1238 _ACEOF
1239
1240
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1243 _ACEOF
1244
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_STRING "$PACKAGE_STRING"
1248 _ACEOF
1249
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1253 _ACEOF
1254
1255
1256 # Let the site file select an alternate cache file if it wants to.
1257 # Prefer explicitly selected file to automatically selected ones.
1258 if test -z "$CONFIG_SITE"; then
1259 if test "x$prefix" != xNONE; then
1260 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1261 else
1262 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1263 fi
1264 fi
1265 for ac_site_file in $CONFIG_SITE; do
1266 if test -r "$ac_site_file"; then
1267 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1268 echo "$as_me: loading site script $ac_site_file" >&6;}
1269 sed 's/^/| /' "$ac_site_file" >&5
1270 . "$ac_site_file"
1271 fi
1272 done
1273
1274 if test -r "$cache_file"; then
1275 # Some versions of bash will fail to source /dev/null (special
1276 # files actually), so we avoid doing that.
1277 if test -f "$cache_file"; then
1278 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1279 echo "$as_me: loading cache $cache_file" >&6;}
1280 case $cache_file in
1281 [\\/]* | ?:[\\/]* ) . $cache_file;;
1282 *) . ./$cache_file;;
1283 esac
1284 fi
1285 else
1286 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1287 echo "$as_me: creating cache $cache_file" >&6;}
1288 >$cache_file
1289 fi
1290
1291 # Check that the precious variables saved in the cache have kept the same
1292 # value.
1293 ac_cache_corrupted=false
1294 for ac_var in `(set) 2>&1 |
1295 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1296 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1297 eval ac_new_set=\$ac_env_${ac_var}_set
1298 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1299 eval ac_new_val="\$ac_env_${ac_var}_value"
1300 case $ac_old_set,$ac_new_set in
1301 set,)
1302 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1303 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1304 ac_cache_corrupted=: ;;
1305 ,set)
1306 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1307 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1308 ac_cache_corrupted=: ;;
1309 ,);;
1310 *)
1311 if test "x$ac_old_val" != "x$ac_new_val"; then
1312 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1313 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1314 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1315 echo "$as_me: former value: $ac_old_val" >&2;}
1316 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1317 echo "$as_me: current value: $ac_new_val" >&2;}
1318 ac_cache_corrupted=:
1319 fi;;
1320 esac
1321 # Pass precious variables to config.status.
1322 if test "$ac_new_set" = set; then
1323 case $ac_new_val in
1324 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1326 *) ac_arg=$ac_var=$ac_new_val ;;
1327 esac
1328 case " $ac_configure_args " in
1329 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1330 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1331 esac
1332 fi
1333 done
1334 if $ac_cache_corrupted; then
1335 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1336 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1337 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1338 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1339 { (exit 1); exit 1; }; }
1340 fi
1341
1342 ac_ext=c
1343 ac_cpp='$CPP $CPPFLAGS'
1344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1368
1369
1370 # Determine the host, build, and target systems
1371 ac_aux_dir=
1372 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1373 if test -f $ac_dir/install-sh; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/install-sh -c"
1376 break
1377 elif test -f $ac_dir/install.sh; then
1378 ac_aux_dir=$ac_dir
1379 ac_install_sh="$ac_aux_dir/install.sh -c"
1380 break
1381 elif test -f $ac_dir/shtool; then
1382 ac_aux_dir=$ac_dir
1383 ac_install_sh="$ac_aux_dir/shtool install -c"
1384 break
1385 fi
1386 done
1387 if test -z "$ac_aux_dir"; then
1388 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390 { (exit 1); exit 1; }; }
1391 fi
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395
1396 # Make sure we can run config.sub.
1397 $ac_config_sub sun4 >/dev/null 2>&1 ||
1398 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400 { (exit 1); exit 1; }; }
1401
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409 ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413 { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1418
1419 fi
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1422 build=$ac_cv_build
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433 ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435 ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1440
1441 fi
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1444 host=$ac_cv_host
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450 echo "$as_me:$LINENO: checking target system type" >&5
1451 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452 if test "${ac_cv_target+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455 ac_cv_target_alias=$target_alias
1456 test "x$ac_cv_target_alias" = "x" &&
1457 ac_cv_target_alias=$ac_cv_host_alias
1458 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1462
1463 fi
1464 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465 echo "${ECHO_T}$ac_cv_target" >&6
1466 target=$ac_cv_target
1467 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475 test "$program_prefix$program_suffix$program_transform_name" = \
1476 NONENONEs,x,x, &&
1477 program_prefix=${target_alias}-
1478
1479 # Determine the noncanonical target name, for directory use.
1480 case ${build_alias} in
1481 "") build_noncanonical=${build} ;;
1482 *) build_noncanonical=${build_alias} ;;
1483 esac
1484
1485 case ${host_alias} in
1486 "") host_noncanonical=${build_noncanonical} ;;
1487 *) host_noncanonical=${host_alias} ;;
1488 esac
1489
1490 case ${target_alias} in
1491 "") target_noncanonical=${host_noncanonical} ;;
1492 *) target_noncanonical=${target_alias} ;;
1493 esac
1494
1495
1496 # Determine the target- and build-specific subdirectories
1497 # Prefix 'build-' so this never conflicts with target_subdir.
1498 build_subdir="build-${build_noncanonical}"
1499 # Not really a subdirectory, but here for completeness.
1500 host_subdir=.
1501 # No prefix.
1502 target_subdir=${target_noncanonical}
1503
1504
1505 # Set program_transform_name
1506 test "$program_prefix" != NONE &&
1507 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1508 # Use a double $ so make ignores it.
1509 test "$program_suffix" != NONE &&
1510 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1511 # Double any \ or $. echo might interpret backslashes.
1512 # By default was `s,x,x', remove it if useless.
1513 cat <<\_ACEOF >conftest.sed
1514 s/[\\$]/&&/g;s/;s,x,x,$//
1515 _ACEOF
1516 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1517 rm conftest.sed
1518
1519
1520 # Check for bogus environment variables.
1521 # Test if LIBRARY_PATH contains the notation for the current directory
1522 # since this would lead to problems installing/building glibc.
1523 # LIBRARY_PATH contains the current directory if one of the following
1524 # is true:
1525 # - one of the terminals (":" and ";") is the first or last sign
1526 # - two terminals occur directly after each other
1527 # - the path contains an element with a dot in it
1528 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1529 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1530 case ${LIBRARY_PATH} in
1531 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1532 library_path_setting="contains current directory"
1533 ;;
1534 *)
1535 library_path_setting="ok"
1536 ;;
1537 esac
1538 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1539 echo "${ECHO_T}$library_path_setting" >&6
1540 if test "$library_path_setting" != "ok"; then
1541 { { echo "$as_me:$LINENO: error:
1542 *** LIBRARY_PATH shouldn't contain the current directory when
1543 *** building gcc. Please change the environment variable
1544 *** and run configure again." >&5
1545 echo "$as_me: error:
1546 *** LIBRARY_PATH shouldn't contain the current directory when
1547 *** building gcc. Please change the environment variable
1548 *** and run configure again." >&2;}
1549 { (exit 1); exit 1; }; }
1550 fi
1551
1552 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1553 # since this would lead to problems installing/building glibc.
1554 # GCC_EXEC_PREFIX contains the current directory if one of the following
1555 # is true:
1556 # - one of the terminals (":" and ";") is the first or last sign
1557 # - two terminals occur directly after each other
1558 # - the path contains an element with a dot in it
1559 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1560 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1561 case ${GCC_EXEC_PREFIX} in
1562 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1563 gcc_exec_prefix_setting="contains current directory"
1564 ;;
1565 *)
1566 gcc_exec_prefix_setting="ok"
1567 ;;
1568 esac
1569 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1570 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1571 if test "$gcc_exec_prefix_setting" != "ok"; then
1572 { { echo "$as_me:$LINENO: error:
1573 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1574 *** building gcc. Please change the environment variable
1575 *** and run configure again." >&5
1576 echo "$as_me: error:
1577 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1578 *** building gcc. Please change the environment variable
1579 *** and run configure again." >&2;}
1580 { (exit 1); exit 1; }; }
1581 fi
1582
1583 # -----------
1584 # Directories
1585 # -----------
1586
1587 # Specify the local prefix
1588 local_prefix=
1589
1590 # Check whether --with-local-prefix or --without-local-prefix was given.
1591 if test "${with_local_prefix+set}" = set; then
1592 withval="$with_local_prefix"
1593 case "${withval}" in
1594 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1595 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1596 { (exit 1); exit 1; }; } ;;
1597 no) ;;
1598 *) local_prefix=$with_local_prefix ;;
1599 esac
1600 fi;
1601
1602 # Default local prefix if it is empty
1603 if test x$local_prefix = x; then
1604 local_prefix=/usr/local
1605 fi
1606
1607 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1608 # passed in by the toplevel make and thus we'd get different behavior
1609 # depending on where we built the sources.
1610 gcc_gxx_include_dir=
1611 # Specify the g++ header file directory
1612
1613 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1614 if test "${with_gxx_include_dir+set}" = set; then
1615 withval="$with_gxx_include_dir"
1616 case "${withval}" in
1617 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1618 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1619 { (exit 1); exit 1; }; } ;;
1620 no) ;;
1621 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1622 esac
1623 fi;
1624
1625 if test x${gcc_gxx_include_dir} = x; then
1626 if test x${enable_version_specific_runtime_libs} = xyes; then
1627 gcc_gxx_include_dir='${libsubdir}/include/c++'
1628 else
1629 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1630 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1631 fi
1632 fi
1633
1634
1635 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1636 if test "${with_cpp_install_dir+set}" = set; then
1637 withval="$with_cpp_install_dir"
1638 if test x$withval = xyes; then
1639 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1640 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1641 { (exit 1); exit 1; }; }
1642 elif test x$withval != xno; then
1643 cpp_install_dir=$withval
1644 fi
1645 fi;
1646
1647 # We would like to our source tree to be readonly. However when releases or
1648 # pre-releases are generated, the flex/bison generated files as well as the
1649 # various formats of manuals need to be included along with the rest of the
1650 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1651 # just that.
1652
1653 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1654 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1655 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1656 if test "${enable_generated_files_in_srcdir+set}" = set; then
1657 enableval="$enable_generated_files_in_srcdir"
1658 generated_files_in_srcdir=$enableval
1659 else
1660 generated_files_in_srcdir=no
1661 fi;
1662
1663 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1664 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1665
1666 if test "$generated_files_in_srcdir" = "yes"; then
1667 GENINSRC=''
1668 else
1669 GENINSRC='#'
1670 fi
1671
1672
1673 # -------------------
1674 # Find default linker
1675 # -------------------
1676
1677 # With GNU ld
1678
1679 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1680 if test "${with_gnu_ld+set}" = set; then
1681 withval="$with_gnu_ld"
1682 gnu_ld_flag="$with_gnu_ld"
1683 else
1684 gnu_ld_flag=no
1685 fi;
1686
1687 # With pre-defined ld
1688
1689 # Check whether --with-ld or --without-ld was given.
1690 if test "${with_ld+set}" = set; then
1691 withval="$with_ld"
1692 DEFAULT_LINKER="$with_ld"
1693 fi;
1694 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1695 if test ! -x "$DEFAULT_LINKER"; then
1696 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1697 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1698 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1699 gnu_ld_flag=yes
1700 fi
1701
1702 cat >>confdefs.h <<_ACEOF
1703 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1704 _ACEOF
1705
1706 fi
1707
1708 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1709 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1710 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1711 if test x"$gnu_ld_flag" = x"no"; then
1712 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1713 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1714 else
1715 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1716 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1717 fi
1718 else
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723 # ----------------------
1724 # Find default assembler
1725 # ----------------------
1726
1727 # With GNU as
1728
1729 # Check whether --with-gnu-as or --without-gnu-as was given.
1730 if test "${with_gnu_as+set}" = set; then
1731 withval="$with_gnu_as"
1732 gas_flag="$with_gnu_as"
1733 else
1734 gas_flag=no
1735 fi;
1736
1737
1738 # Check whether --with-as or --without-as was given.
1739 if test "${with_as+set}" = set; then
1740 withval="$with_as"
1741 DEFAULT_ASSEMBLER="$with_as"
1742 fi;
1743 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1744 if test ! -x "$DEFAULT_ASSEMBLER"; then
1745 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1746 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1747 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1748 gas_flag=yes
1749 fi
1750
1751 cat >>confdefs.h <<_ACEOF
1752 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1753 _ACEOF
1754
1755 fi
1756
1757 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1758 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1759 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1760 if test x"$gas_flag" = x"no"; then
1761 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1762 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1763 else
1764 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1765 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1766 fi
1767 else
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772 # ---------------
1773 # Find C compiler
1774 # ---------------
1775
1776 # If a non-executable a.out is present (e.g. created by GNU as above even if
1777 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1778 # file, even when creating an executable, so an execution test fails.
1779 # Remove possible default executable files to avoid this.
1780 #
1781 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1782 # Autoconf includes it.
1783 rm -f a.out a.exe b.out
1784
1785 # Find the native compiler
1786 ac_ext=c
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791 if test -n "$ac_tool_prefix"; then
1792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_CC+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799 if test -n "$CC"; then
1800 ac_cv_prog_CC="$CC" # Let the user override the test.
1801 else
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 for as_dir in $PATH
1804 do
1805 IFS=$as_save_IFS
1806 test -z "$as_dir" && as_dir=.
1807 for ac_exec_ext in '' $ac_executable_extensions; do
1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 break 2
1812 fi
1813 done
1814 done
1815
1816 fi
1817 fi
1818 CC=$ac_cv_prog_CC
1819 if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1822 else
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 fi
1828 if test -z "$ac_cv_prog_CC"; then
1829 ac_ct_CC=$CC
1830 # Extract the first word of "gcc", so it can be a program name with args.
1831 set dummy gcc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837 if test -n "$ac_ct_CC"; then
1838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843 IFS=$as_save_IFS
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_ac_ct_CC="gcc"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849 break 2
1850 fi
1851 done
1852 done
1853
1854 fi
1855 fi
1856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857 if test -n "$ac_ct_CC"; then
1858 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859 echo "${ECHO_T}$ac_ct_CC" >&6
1860 else
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1863 fi
1864
1865 CC=$ac_ct_CC
1866 else
1867 CC="$ac_cv_prog_CC"
1868 fi
1869
1870 if test -z "$CC"; then
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}cc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_CC="${ac_tool_prefix}cc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1892 fi
1893 done
1894 done
1895
1896 fi
1897 fi
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1902 else
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907 fi
1908 if test -z "$ac_cv_prog_CC"; then
1909 ac_ct_CC=$CC
1910 # Extract the first word of "cc", so it can be a program name with args.
1911 set dummy cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_ac_ct_CC="cc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2
1930 fi
1931 done
1932 done
1933
1934 fi
1935 fi
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1940 else
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 fi
1944
1945 CC=$ac_ct_CC
1946 else
1947 CC="$ac_cv_prog_CC"
1948 fi
1949
1950 fi
1951 if test -z "$CC"; then
1952 # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else
1962 ac_prog_rejected=no
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1971 ac_prog_rejected=yes
1972 continue
1973 fi
1974 ac_cv_prog_CC="cc"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 break 2
1977 fi
1978 done
1979 done
1980
1981 if test $ac_prog_rejected = yes; then
1982 # We found a bogon in the path, so make sure we never use it.
1983 set dummy $ac_cv_prog_CC
1984 shift
1985 if test $# != 0; then
1986 # We chose a different compiler from the bogus one.
1987 # However, it has the same basename, so the bogon will be chosen
1988 # first if we set CC to just the basename; use the full file name.
1989 shift
1990 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1991 fi
1992 fi
1993 fi
1994 fi
1995 CC=$ac_cv_prog_CC
1996 if test -n "$CC"; then
1997 echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6
1999 else
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004 fi
2005 if test -z "$CC"; then
2006 if test -n "$ac_tool_prefix"; then
2007 for ac_prog in cl
2008 do
2009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 break 2
2029 fi
2030 done
2031 done
2032
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2042 fi
2043
2044 test -n "$CC" && break
2045 done
2046 fi
2047 if test -z "$CC"; then
2048 ac_ct_CC=$CC
2049 for ac_prog in cl
2050 do
2051 # Extract the first word of "$ac_prog", so it can be a program name with args.
2052 set dummy $ac_prog; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_CC="$ac_prog"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 break 2
2071 fi
2072 done
2073 done
2074
2075 fi
2076 fi
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2081 else
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086 test -n "$ac_ct_CC" && break
2087 done
2088
2089 CC=$ac_ct_CC
2090 fi
2091
2092 fi
2093
2094
2095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: no acceptable C compiler found in \$PATH
2098 See \`config.log' for more details." >&2;}
2099 { (exit 1); exit 1; }; }
2100
2101 # Provide some information about the compiler.
2102 echo "$as_me:$LINENO:" \
2103 "checking for C compiler version" >&5
2104 ac_compiler=`set X $ac_compile; echo $2`
2105 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2106 (eval $ac_compiler --version </dev/null >&5) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2111 (eval $ac_compiler -v </dev/null >&5) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2116 (eval $ac_compiler -V </dev/null >&5) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120
2121 cat >conftest.$ac_ext <<_ACEOF
2122 /* confdefs.h. */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
2127
2128 int
2129 main ()
2130 {
2131
2132 ;
2133 return 0;
2134 }
2135 _ACEOF
2136 ac_clean_files_save=$ac_clean_files
2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2140 # of exeext.
2141 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2142 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2145 (eval $ac_link_default) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # Find the output, starting from the most likely. This scheme is
2150 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2151 # resort.
2152
2153 # Be careful to initialize this variable, since it used to be cached.
2154 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2155 ac_cv_exeext=
2156 # b.out is created by i960 compilers.
2157 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2158 do
2159 test -f "$ac_file" || continue
2160 case $ac_file in
2161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2162 ;;
2163 conftest.$ac_ext )
2164 # This is the source file.
2165 ;;
2166 [ab].out )
2167 # We found the default executable, but exeext='' is most
2168 # certainly right.
2169 break;;
2170 *.* )
2171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172 # FIXME: I believe we export ac_cv_exeext for Libtool,
2173 # but it would be cool to find out if it's true. Does anybody
2174 # maintain Libtool? --akim.
2175 export ac_cv_exeext
2176 break;;
2177 * )
2178 break;;
2179 esac
2180 done
2181 else
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: C compiler cannot create executables
2188 See \`config.log' for more details." >&2;}
2189 { (exit 77); exit 77; }; }
2190 fi
2191
2192 ac_exeext=$ac_cv_exeext
2193 echo "$as_me:$LINENO: result: $ac_file" >&5
2194 echo "${ECHO_T}$ac_file" >&6
2195
2196 # Check the compiler produces executables we can run. If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2199 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2200 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2201 # If not cross compiling, check that we can run a simple program.
2202 if test "$cross_compiling" != yes; then
2203 if { ac_try='./$ac_file'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2209 cross_compiling=no
2210 else
2211 if test "$cross_compiling" = maybe; then
2212 cross_compiling=yes
2213 else
2214 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2215 If you meant to cross compile, use \`--host'.
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot run C compiled programs.
2218 If you meant to cross compile, use \`--host'.
2219 See \`config.log' for more details." >&2;}
2220 { (exit 1); exit 1; }; }
2221 fi
2222 fi
2223 fi
2224 echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6
2226
2227 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2228 ac_clean_files=$ac_clean_files_save
2229 # Check the compiler produces executables we can run. If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2232 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2233 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2234 echo "${ECHO_T}$cross_compiling" >&6
2235
2236 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2237 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239 (eval $ac_link) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; then
2243 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2244 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2245 # work properly (i.e., refer to `conftest.exe'), while it won't with
2246 # `rm'.
2247 for ac_file in conftest.exe conftest conftest.*; do
2248 test -f "$ac_file" || continue
2249 case $ac_file in
2250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2251 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252 export ac_cv_exeext
2253 break;;
2254 * ) break;;
2255 esac
2256 done
2257 else
2258 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2261 See \`config.log' for more details." >&2;}
2262 { (exit 1); exit 1; }; }
2263 fi
2264
2265 rm -f conftest$ac_cv_exeext
2266 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2267 echo "${ECHO_T}$ac_cv_exeext" >&6
2268
2269 rm -f conftest.$ac_ext
2270 EXEEXT=$ac_cv_exeext
2271 ac_exeext=$EXEEXT
2272 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2273 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2274 if test "${ac_cv_objext+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h. */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2283
2284 int
2285 main ()
2286 {
2287
2288 ;
2289 return 0;
2290 }
2291 _ACEOF
2292 rm -f conftest.o conftest.obj
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2299 case $ac_file in
2300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2302 break;;
2303 esac
2304 done
2305 else
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2314 fi
2315
2316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2317 fi
2318 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2319 echo "${ECHO_T}$ac_cv_objext" >&6
2320 OBJEXT=$ac_cv_objext
2321 ac_objext=$OBJEXT
2322 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h. */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2333
2334 int
2335 main ()
2336 {
2337 #ifndef __GNUC__
2338 choke me
2339 #endif
2340
2341 ;
2342 return 0;
2343 }
2344 _ACEOF
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2348 ac_status=$?
2349 grep -v '^ *+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 ac_compiler_gnu=yes
2367 else
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 ac_compiler_gnu=no
2372 fi
2373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2375
2376 fi
2377 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2378 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2379 GCC=`test $ac_compiler_gnu = yes && echo yes`
2380 ac_test_CFLAGS=${CFLAGS+set}
2381 ac_save_CFLAGS=$CFLAGS
2382 CFLAGS="-g"
2383 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2384 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2385 if test "${ac_cv_prog_cc_g+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388 cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h. */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2394
2395 int
2396 main ()
2397 {
2398
2399 ;
2400 return 0;
2401 }
2402 _ACEOF
2403 rm -f conftest.$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>conftest.er1
2406 ac_status=$?
2407 grep -v '^ *+' conftest.er1 >conftest.err
2408 rm -f conftest.er1
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 ac_cv_prog_cc_g=yes
2425 else
2426 echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 ac_cv_prog_cc_g=no
2430 fi
2431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2432 fi
2433 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2434 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2435 if test "$ac_test_CFLAGS" = set; then
2436 CFLAGS=$ac_save_CFLAGS
2437 elif test $ac_cv_prog_cc_g = yes; then
2438 if test "$GCC" = yes; then
2439 CFLAGS="-g -O2"
2440 else
2441 CFLAGS="-g"
2442 fi
2443 else
2444 if test "$GCC" = yes; then
2445 CFLAGS="-O2"
2446 else
2447 CFLAGS=
2448 fi
2449 fi
2450 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2451 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2452 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455 ac_cv_prog_cc_stdc=no
2456 ac_save_CC=$CC
2457 cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h. */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2463 #include <stdarg.h>
2464 #include <stdio.h>
2465 #include <sys/types.h>
2466 #include <sys/stat.h>
2467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2468 struct buf { int x; };
2469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2470 static char *e (p, i)
2471 char **p;
2472 int i;
2473 {
2474 return p[i];
2475 }
2476 static char *f (char * (*g) (char **, int), char **p, ...)
2477 {
2478 char *s;
2479 va_list v;
2480 va_start (v,p);
2481 s = g (p, va_arg (v,int));
2482 va_end (v);
2483 return s;
2484 }
2485
2486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2487 function prototypes and stuff, but not '\xHH' hex character constants.
2488 These don't provoke an error unfortunately, instead are silently treated
2489 as 'x'. The following induces an error, until -std1 is added to get
2490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2491 array size at least. It's necessary to write '\x00'==0 to get something
2492 that's true only with -std1. */
2493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2494
2495 int test (int i, double x);
2496 struct s1 {int (*f) (int a);};
2497 struct s2 {int (*f) (double a);};
2498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2499 int argc;
2500 char **argv;
2501 int
2502 main ()
2503 {
2504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2505 ;
2506 return 0;
2507 }
2508 _ACEOF
2509 # Don't try gcc -ansi; that turns off useful extensions and
2510 # breaks some systems' header files.
2511 # AIX -qlanglvl=ansi
2512 # Ultrix and OSF/1 -std1
2513 # HP-UX 10.20 and later -Ae
2514 # HP-UX older versions -Aa -D_HPUX_SOURCE
2515 # SVR4 -Xc -D__EXTENSIONS__
2516 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2517 do
2518 CC="$ac_save_CC $ac_arg"
2519 rm -f conftest.$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>conftest.er1
2522 ac_status=$?
2523 grep -v '^ *+' conftest.er1 >conftest.err
2524 rm -f conftest.er1
2525 cat conftest.err >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 ac_cv_prog_cc_stdc=$ac_arg
2541 break
2542 else
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 fi
2547 rm -f conftest.err conftest.$ac_objext
2548 done
2549 rm -f conftest.$ac_ext conftest.$ac_objext
2550 CC=$ac_save_CC
2551
2552 fi
2553
2554 case "x$ac_cv_prog_cc_stdc" in
2555 x|xno)
2556 echo "$as_me:$LINENO: result: none needed" >&5
2557 echo "${ECHO_T}none needed" >&6 ;;
2558 *)
2559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2560 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2561 CC="$CC $ac_cv_prog_cc_stdc" ;;
2562 esac
2563
2564 # Some people use a C++ compiler to compile C. Since we use `exit',
2565 # in C++ we need to declare it. In case someone uses the same compiler
2566 # for both compiling C and C++ we need to have the C++ compiler decide
2567 # the declaration of exit, since it's the most demanding environment.
2568 cat >conftest.$ac_ext <<_ACEOF
2569 #ifndef __cplusplus
2570 choke me
2571 #endif
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 for ac_declaration in \
2595 '' \
2596 'extern "C" void std::exit (int) throw (); using std::exit;' \
2597 'extern "C" void std::exit (int); using std::exit;' \
2598 'extern "C" void exit (int) throw ();' \
2599 'extern "C" void exit (int);' \
2600 'void exit (int);'
2601 do
2602 cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h. */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2608 $ac_declaration
2609 #include <stdlib.h>
2610 int
2611 main ()
2612 {
2613 exit (42);
2614 ;
2615 return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 :
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 continue
2645 fi
2646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h. */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2653 $ac_declaration
2654 int
2655 main ()
2656 {
2657 exit (42);
2658 ;
2659 return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2665 ac_status=$?
2666 grep -v '^ *+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2683 break
2684 else
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688 fi
2689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 done
2691 rm -f conftest*
2692 if test -n "$ac_declaration"; then
2693 echo '#ifdef __cplusplus' >>confdefs.h
2694 echo $ac_declaration >>confdefs.h
2695 echo '#endif' >>confdefs.h
2696 fi
2697
2698 else
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2701
2702 fi
2703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710 if test "x$CC" != xcc; then
2711 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2712 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2713 else
2714 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2715 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2716 fi
2717 set dummy $CC; ac_cc=`echo $2 |
2718 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2719 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728
2729 int
2730 main ()
2731 {
2732
2733 ;
2734 return 0;
2735 }
2736 _ACEOF
2737 # Make sure it works both with $CC and with simple cc.
2738 # We do the test twice because some compilers refuse to overwrite an
2739 # existing .o file with -o, though they will create one.
2740 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2741 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 (eval $ac_try) 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); };
2751 then
2752 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2753 if test "x$CC" != xcc; then
2754 # Test first that cc exists at all.
2755 if { ac_try='cc -c conftest.$ac_ext >&5'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2762 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); };
2772 then
2773 # cc works too.
2774 :
2775 else
2776 # cc exists but doesn't like -o.
2777 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2778 fi
2779 fi
2780 fi
2781 else
2782 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2783 fi
2784 rm -f conftest*
2785
2786 fi
2787 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2788 echo "$as_me:$LINENO: result: yes" >&5
2789 echo "${ECHO_T}yes" >&6
2790 else
2791 echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2793
2794 cat >>confdefs.h <<\_ACEOF
2795 #define NO_MINUS_C_MINUS_O 1
2796 _ACEOF
2797
2798 fi
2799
2800 # autoconf is lame and doesn't give us any substitution variable for this.
2801 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2802 NO_MINUS_C_MINUS_O=yes
2803 else
2804 OUTPUT_OPTION='-o $@'
2805 fi
2806
2807
2808
2809 # -------------------------
2810 # Check C compiler features
2811 # -------------------------
2812
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2819 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2820 # On Suns, sometimes $CPP names a directory.
2821 if test -n "$CPP" && test -d "$CPP"; then
2822 CPP=
2823 fi
2824 if test -z "$CPP"; then
2825 if test "${ac_cv_prog_CPP+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 # Double quotes because CPP needs to be expanded
2829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2830 do
2831 ac_preproc_ok=false
2832 for ac_c_preproc_warn_flag in '' yes
2833 do
2834 # Use a header file that comes with gcc, so configuring glibc
2835 # with a fresh cross-compiler works.
2836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2837 # <limits.h> exists even on freestanding compilers.
2838 # On the NeXT, cc -E runs the code through the compiler's parser,
2839 # not just through cpp. "Syntax error" is here to catch this case.
2840 cat >conftest.$ac_ext <<_ACEOF
2841 /* confdefs.h. */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2846 #ifdef __STDC__
2847 # include <limits.h>
2848 #else
2849 # include <assert.h>
2850 #endif
2851 Syntax error
2852 _ACEOF
2853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } >/dev/null; then
2861 if test -s conftest.err; then
2862 ac_cpp_err=$ac_c_preproc_warn_flag
2863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2864 else
2865 ac_cpp_err=
2866 fi
2867 else
2868 ac_cpp_err=yes
2869 fi
2870 if test -z "$ac_cpp_err"; then
2871 :
2872 else
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876 # Broken: fails on valid input.
2877 continue
2878 fi
2879 rm -f conftest.err conftest.$ac_ext
2880
2881 # OK, works on sane cases. Now check whether non-existent headers
2882 # can be detected and how.
2883 cat >conftest.$ac_ext <<_ACEOF
2884 /* confdefs.h. */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2889 #include <ac_nonexistent.h>
2890 _ACEOF
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_c_preproc_warn_flag
2901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902 else
2903 ac_cpp_err=
2904 fi
2905 else
2906 ac_cpp_err=yes
2907 fi
2908 if test -z "$ac_cpp_err"; then
2909 # Broken: success on invalid input.
2910 continue
2911 else
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 # Passes both tests.
2916 ac_preproc_ok=:
2917 break
2918 fi
2919 rm -f conftest.err conftest.$ac_ext
2920
2921 done
2922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2923 rm -f conftest.err conftest.$ac_ext
2924 if $ac_preproc_ok; then
2925 break
2926 fi
2927
2928 done
2929 ac_cv_prog_CPP=$CPP
2930
2931 fi
2932 CPP=$ac_cv_prog_CPP
2933 else
2934 ac_cv_prog_CPP=$CPP
2935 fi
2936 echo "$as_me:$LINENO: result: $CPP" >&5
2937 echo "${ECHO_T}$CPP" >&6
2938 ac_preproc_ok=false
2939 for ac_c_preproc_warn_flag in '' yes
2940 do
2941 # Use a header file that comes with gcc, so configuring glibc
2942 # with a fresh cross-compiler works.
2943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2944 # <limits.h> exists even on freestanding compilers.
2945 # On the NeXT, cc -E runs the code through the compiler's parser,
2946 # not just through cpp. "Syntax error" is here to catch this case.
2947 cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 #ifdef __STDC__
2954 # include <limits.h>
2955 #else
2956 # include <assert.h>
2957 #endif
2958 Syntax error
2959 _ACEOF
2960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2962 ac_status=$?
2963 grep -v '^ *+' conftest.er1 >conftest.err
2964 rm -f conftest.er1
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } >/dev/null; then
2968 if test -s conftest.err; then
2969 ac_cpp_err=$ac_c_preproc_warn_flag
2970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2971 else
2972 ac_cpp_err=
2973 fi
2974 else
2975 ac_cpp_err=yes
2976 fi
2977 if test -z "$ac_cpp_err"; then
2978 :
2979 else
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2982
2983 # Broken: fails on valid input.
2984 continue
2985 fi
2986 rm -f conftest.err conftest.$ac_ext
2987
2988 # OK, works on sane cases. Now check whether non-existent headers
2989 # can be detected and how.
2990 cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h. */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2996 #include <ac_nonexistent.h>
2997 _ACEOF
2998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev/null; then
3006 if test -s conftest.err; then
3007 ac_cpp_err=$ac_c_preproc_warn_flag
3008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3009 else
3010 ac_cpp_err=
3011 fi
3012 else
3013 ac_cpp_err=yes
3014 fi
3015 if test -z "$ac_cpp_err"; then
3016 # Broken: success on invalid input.
3017 continue
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 # Passes both tests.
3023 ac_preproc_ok=:
3024 break
3025 fi
3026 rm -f conftest.err conftest.$ac_ext
3027
3028 done
3029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3030 rm -f conftest.err conftest.$ac_ext
3031 if $ac_preproc_ok; then
3032 :
3033 else
3034 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3035 See \`config.log' for more details." >&5
3036 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3037 See \`config.log' for more details." >&2;}
3038 { (exit 1); exit 1; }; }
3039 fi
3040
3041 ac_ext=c
3042 ac_cpp='$CPP $CPPFLAGS'
3043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3046
3047
3048 echo "$as_me:$LINENO: checking for inline" >&5
3049 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3050 if test "${ac_cv_c_inline+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053 ac_cv_c_inline=no
3054 for ac_kw in inline __inline__ __inline; do
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h. */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3061 #ifndef __cplusplus
3062 typedef int foo_t;
3063 static $ac_kw foo_t static_foo () {return 0; }
3064 $ac_kw foo_t foo () {return 0; }
3065 #endif
3066
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3070 (eval $ac_compile) 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 (eval $ac_try) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; } &&
3083 { ac_try='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 ac_cv_c_inline=$ac_kw; break
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094 fi
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096 done
3097
3098 fi
3099 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3100 echo "${ECHO_T}$ac_cv_c_inline" >&6
3101
3102
3103 case $ac_cv_c_inline in
3104 inline | yes) ;;
3105 *)
3106 case $ac_cv_c_inline in
3107 no) ac_val=;;
3108 *) ac_val=$ac_cv_c_inline;;
3109 esac
3110 cat >>confdefs.h <<_ACEOF
3111 #ifndef __cplusplus
3112 #define inline $ac_val
3113 #endif
3114 _ACEOF
3115 ;;
3116 esac
3117
3118
3119 echo "$as_me:$LINENO: checking for long long int" >&5
3120 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3121 if test "${ac_cv_c_long_long+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130
3131 int
3132 main ()
3133 {
3134 long long int i;
3135 ;
3136 return 0;
3137 }
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 (eval $ac_try) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_c_long_long=yes
3161 else
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165 ac_cv_c_long_long=no
3166 fi
3167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3168 fi
3169 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3170 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3171 if test $ac_cv_c_long_long = yes; then
3172
3173 cat >>confdefs.h <<\_ACEOF
3174 #define HAVE_LONG_LONG 1
3175 _ACEOF
3176
3177 fi
3178 echo "$as_me:$LINENO: checking for __int64" >&5
3179 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3180 if test "${ac_cv_c___int64+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189
3190 int
3191 main ()
3192 {
3193 __int64 i;
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 (eval $ac_try) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 (eval $ac_try) 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 ac_cv_c___int64=yes
3220 else
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 ac_cv_c___int64=no
3225 fi
3226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3227 fi
3228 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3229 echo "${ECHO_T}$ac_cv_c___int64" >&6
3230 if test $ac_cv_c___int64 = yes; then
3231
3232 cat >>confdefs.h <<\_ACEOF
3233 #define HAVE___INT64 1
3234 _ACEOF
3235
3236 fi
3237
3238 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3239 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3240 if test "${gcc_cv_c__bool+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3249
3250 int
3251 main ()
3252 {
3253 _Bool foo;
3254 ;
3255 return 0;
3256 }
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>conftest.er1
3261 ac_status=$?
3262 grep -v '^ *+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 gcc_cv_c__bool=yes
3280 else
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 gcc_cv_c__bool=no
3285 fi
3286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3287
3288 fi
3289 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3290 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3291 if test $gcc_cv_c__bool = yes; then
3292
3293 cat >>confdefs.h <<\_ACEOF
3294 #define HAVE__BOOL 1
3295 _ACEOF
3296
3297 fi
3298
3299
3300 # sizeof(char) is 1 by definition.
3301 echo "$as_me:$LINENO: checking size of void *" >&5
3302 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3303 if test "${ac_cv_sizeof_void_p+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include "confdefs.h"
3314 #include <sys/types.h>
3315
3316
3317 int
3318 main ()
3319 {
3320 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>conftest.er1
3328 ac_status=$?
3329 grep -v '^ *+' conftest.er1 >conftest.err
3330 rm -f conftest.er1
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } &&
3334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 ac_cv_sizeof_void_p=$ac_size
3347 else
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3350
3351 fi
3352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3353 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3354 done
3355
3356 fi
3357
3358 if test x$ac_cv_sizeof_void_p = x ; then
3359 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3360 echo "$as_me: error: cannot determine a size for void *" >&2;}
3361 { (exit 1); exit 1; }; }
3362 fi
3363 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3364 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3365
3366 cat >>confdefs.h <<_ACEOF
3367 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3368 _ACEOF
3369
3370
3371 echo "$as_me:$LINENO: checking size of short" >&5
3372 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3373 if test "${ac_cv_sizeof_short+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h. */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 #include "confdefs.h"
3384 #include <sys/types.h>
3385
3386
3387 int
3388 main ()
3389 {
3390 switch (0) case 0: case (sizeof (short) == $ac_size):;
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 (eval $ac_try) 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 (eval $ac_try) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_sizeof_short=$ac_size
3417 else
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 fi
3422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3423 if test x$ac_cv_sizeof_short != x ; then break; fi
3424 done
3425
3426 fi
3427
3428 if test x$ac_cv_sizeof_short = x ; then
3429 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3430 echo "$as_me: error: cannot determine a size for short" >&2;}
3431 { (exit 1); exit 1; }; }
3432 fi
3433 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3434 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3435
3436 cat >>confdefs.h <<_ACEOF
3437 #define SIZEOF_SHORT $ac_cv_sizeof_short
3438 _ACEOF
3439
3440
3441 echo "$as_me:$LINENO: checking size of int" >&5
3442 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3443 if test "${ac_cv_sizeof_int+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #include "confdefs.h"
3454 #include <sys/types.h>
3455
3456
3457 int
3458 main ()
3459 {
3460 switch (0) case 0: case (sizeof (int) == $ac_size):;
3461 ;
3462 return 0;
3463 }
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
3474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_cv_sizeof_int=$ac_size
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 fi
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493 if test x$ac_cv_sizeof_int != x ; then break; fi
3494 done
3495
3496 fi
3497
3498 if test x$ac_cv_sizeof_int = x ; then
3499 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3500 echo "$as_me: error: cannot determine a size for int" >&2;}
3501 { (exit 1); exit 1; }; }
3502 fi
3503 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3504 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3505
3506 cat >>confdefs.h <<_ACEOF
3507 #define SIZEOF_INT $ac_cv_sizeof_int
3508 _ACEOF
3509
3510
3511 echo "$as_me:$LINENO: checking size of long" >&5
3512 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3513 if test "${ac_cv_sizeof_long+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include "confdefs.h"
3524 #include <sys/types.h>
3525
3526
3527 int
3528 main ()
3529 {
3530 switch (0) case 0: case (sizeof (long) == $ac_size):;
3531 ;
3532 return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; } &&
3550 { ac_try='test -s conftest.$ac_objext'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 (eval $ac_try) 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 ac_cv_sizeof_long=$ac_size
3557 else
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561 fi
3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563 if test x$ac_cv_sizeof_long != x ; then break; fi
3564 done
3565
3566 fi
3567
3568 if test x$ac_cv_sizeof_long = x ; then
3569 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3570 echo "$as_me: error: cannot determine a size for long" >&2;}
3571 { (exit 1); exit 1; }; }
3572 fi
3573 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3574 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3575
3576 cat >>confdefs.h <<_ACEOF
3577 #define SIZEOF_LONG $ac_cv_sizeof_long
3578 _ACEOF
3579
3580
3581 if test $ac_cv_c_long_long = yes; then
3582 echo "$as_me:$LINENO: checking size of long long" >&5
3583 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3584 if test "${ac_cv_sizeof_long_long+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3588 cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h. */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #include "confdefs.h"
3595 #include <sys/types.h>
3596
3597
3598 int
3599 main ()
3600 {
3601 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3602 ;
3603 return 0;
3604 }
3605 _ACEOF
3606 rm -f conftest.$ac_objext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3608 (eval $ac_compile) 2>conftest.er1
3609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } &&
3615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; } &&
3621 { ac_try='test -s conftest.$ac_objext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 (eval $ac_try) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_sizeof_long_long=$ac_size
3628 else
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 fi
3633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3634 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3635 done
3636
3637 fi
3638
3639 if test x$ac_cv_sizeof_long_long = x ; then
3640 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3641 echo "$as_me: error: cannot determine a size for long long" >&2;}
3642 { (exit 1); exit 1; }; }
3643 fi
3644 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3645 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3646
3647 cat >>confdefs.h <<_ACEOF
3648 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3649 _ACEOF
3650
3651
3652 fi
3653 if test $ac_cv_c___int64 = yes; then
3654 echo "$as_me:$LINENO: checking size of __int64" >&5
3655 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3656 if test "${ac_cv_sizeof___int64+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3660 cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h. */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3668
3669
3670 int
3671 main ()
3672 {
3673 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3674 ;
3675 return 0;
3676 }
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 (eval $ac_try) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; } &&
3693 { ac_try='test -s conftest.$ac_objext'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 (eval $ac_try) 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; }; then
3699 ac_cv_sizeof___int64=$ac_size
3700 else
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3703
3704 fi
3705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3707 done
3708
3709 fi
3710
3711 if test x$ac_cv_sizeof___int64 = x ; then
3712 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3713 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3714 { (exit 1); exit 1; }; }
3715 fi
3716 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3717 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3718
3719 cat >>confdefs.h <<_ACEOF
3720 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3721 _ACEOF
3722
3723
3724 fi
3725
3726 # ---------------------
3727 # Warnings and checking
3728 # ---------------------
3729
3730 # Check $CC warning features (if it's GCC).
3731 # We want to use -pedantic, but we don't want warnings about
3732 # * 'long long'
3733 # * variadic macros
3734 # So, we only use -pedantic if we can disable those warnings.
3735
3736 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3737 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3738 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 save_CFLAGS="$CFLAGS"
3742 CFLAGS="-Wno-long-long"
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3749
3750 _ACEOF
3751 rm -f conftest.$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>conftest.er1
3754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 (eval $ac_try) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; } &&
3766 { ac_try='test -s conftest.$ac_objext'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 (eval $ac_try) 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 ac_cv_prog_cc_w_no_long_long=yes
3773 else
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 ac_cv_prog_cc_w_no_long_long=no
3778 fi
3779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3780 CFLAGS="$save_CFLAGS"
3781
3782 fi
3783 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3784 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3785
3786 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3787 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3788 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791 save_CFLAGS="$CFLAGS"
3792 CFLAGS="-Wno-variadic-macros"
3793 cat >conftest.$ac_ext <<_ACEOF
3794 /* confdefs.h. */
3795 _ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3799
3800 _ACEOF
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; } &&
3816 { ac_try='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_cv_prog_cc_w_no_variadic_macros=yes
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 ac_cv_prog_cc_w_no_variadic_macros=no
3828 fi
3829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 CFLAGS="$save_CFLAGS"
3831
3832 fi
3833 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3834 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3835
3836 strict1_warn=
3837 if test $ac_cv_prog_cc_w_no_long_long = yes \
3838 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3839 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3840 fi
3841
3842
3843 # If the native compiler is GCC, we can enable warnings even in stage1.
3844 # That's useful for people building cross-compilers, or just running a
3845 # quick `make'.
3846 warn_cflags=
3847 if test "x$GCC" = "xyes"; then
3848 warn_cflags='$(GCC_WARN_CFLAGS)'
3849 fi
3850
3851
3852 # Enable -Werror in bootstrap stage2 and later.
3853 # Change the default to "no" on release branches.
3854 # Check whether --enable-werror or --disable-werror was given.
3855 if test "${enable_werror+set}" = set; then
3856 enableval="$enable_werror"
3857
3858 else
3859 enable_werror=yes
3860 fi;
3861 if test x$enable_werror = xyes ; then
3862 WERROR=-Werror
3863 fi
3864
3865
3866 # Enable expensive internal checks
3867 # Check whether --enable-checking or --disable-checking was given.
3868 if test "${enable_checking+set}" = set; then
3869 enableval="$enable_checking"
3870 ac_checking=
3871 ac_tree_checking=
3872 ac_rtl_checking=
3873 ac_rtlflag_checking=
3874 ac_gc_checking=
3875 ac_gc_always_collect=
3876 ac_fold_checking=
3877 case "${enableval}" in
3878 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3879 ac_rtlflag_checking=1 ;;
3880 no) ;;
3881 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3882 set fnord $enableval; shift
3883 IFS="$ac_save_IFS"
3884 for check
3885 do
3886 case $check in
3887 misc) ac_checking=1 ;;
3888 tree) ac_tree_checking=1 ;;
3889 rtlflag) ac_rtlflag_checking=1 ;;
3890 rtl) ac_rtl_checking=1 ;;
3891 gc) ac_gc_checking=1 ;;
3892 gcac) ac_gc_always_collect=1 ;;
3893 fold) ac_fold_checking=1 ;;
3894 valgrind) ac_checking_valgrind=1 ;;
3895 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3896 echo "$as_me: error: unknown check category $check" >&2;}
3897 { (exit 1); exit 1; }; } ;;
3898 esac
3899 done
3900 ;;
3901 esac
3902
3903 else
3904 # Enable some checks by default for development versions of GCC
3905 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3906 fi;
3907 nocommon_flag=""
3908 if test x$ac_checking != x ; then
3909
3910 cat >>confdefs.h <<\_ACEOF
3911 #define ENABLE_CHECKING 1
3912 _ACEOF
3913
3914 nocommon_flag=-fno-common
3915 fi
3916
3917 if test x$ac_tree_checking != x ; then
3918
3919 cat >>confdefs.h <<\_ACEOF
3920 #define ENABLE_TREE_CHECKING 1
3921 _ACEOF
3922
3923 fi
3924 if test x$ac_rtl_checking != x ; then
3925
3926 cat >>confdefs.h <<\_ACEOF
3927 #define ENABLE_RTL_CHECKING 1
3928 _ACEOF
3929
3930 fi
3931 if test x$ac_rtlflag_checking != x ; then
3932
3933 cat >>confdefs.h <<\_ACEOF
3934 #define ENABLE_RTL_FLAG_CHECKING 1
3935 _ACEOF
3936
3937 fi
3938 if test x$ac_gc_checking != x ; then
3939
3940 cat >>confdefs.h <<\_ACEOF
3941 #define ENABLE_GC_CHECKING 1
3942 _ACEOF
3943
3944 fi
3945 if test x$ac_gc_always_collect != x ; then
3946
3947 cat >>confdefs.h <<\_ACEOF
3948 #define ENABLE_GC_ALWAYS_COLLECT 1
3949 _ACEOF
3950
3951 fi
3952 if test x$ac_fold_checking != x ; then
3953
3954 cat >>confdefs.h <<\_ACEOF
3955 #define ENABLE_FOLD_CHECKING 1
3956 _ACEOF
3957
3958 fi
3959 valgrind_path_defines=
3960 valgrind_command=
3961
3962
3963 echo "$as_me:$LINENO: checking for egrep" >&5
3964 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3965 if test "${ac_cv_prog_egrep+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3969 then ac_cv_prog_egrep='grep -E'
3970 else ac_cv_prog_egrep='egrep'
3971 fi
3972 fi
3973 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3974 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3975 EGREP=$ac_cv_prog_egrep
3976
3977
3978 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3979 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3980 if test "${ac_cv_header_stdc+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h. */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 #include <stdlib.h>
3990 #include <stdarg.h>
3991 #include <string.h>
3992 #include <float.h>
3993
3994 int
3995 main ()
3996 {
3997
3998 ;
3999 return 0;
4000 }
4001 _ACEOF
4002 rm -f conftest.$ac_objext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4004 (eval $ac_compile) 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
4011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try='test -s conftest.$ac_objext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_header_stdc=yes
4024 else
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028 ac_cv_header_stdc=no
4029 fi
4030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4031
4032 if test $ac_cv_header_stdc = yes; then
4033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 #include <string.h>
4041
4042 _ACEOF
4043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4044 $EGREP "memchr" >/dev/null 2>&1; then
4045 :
4046 else
4047 ac_cv_header_stdc=no
4048 fi
4049 rm -f conftest*
4050
4051 fi
4052
4053 if test $ac_cv_header_stdc = yes; then
4054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #include <stdlib.h>
4062
4063 _ACEOF
4064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4065 $EGREP "free" >/dev/null 2>&1; then
4066 :
4067 else
4068 ac_cv_header_stdc=no
4069 fi
4070 rm -f conftest*
4071
4072 fi
4073
4074 if test $ac_cv_header_stdc = yes; then
4075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4076 if test "$cross_compiling" = yes; then
4077 :
4078 else
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 #include <ctype.h>
4086 #if ((' ' & 0x0FF) == 0x020)
4087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4089 #else
4090 # define ISLOWER(c) \
4091 (('a' <= (c) && (c) <= 'i') \
4092 || ('j' <= (c) && (c) <= 'r') \
4093 || ('s' <= (c) && (c) <= 'z'))
4094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4095 #endif
4096
4097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4098 int
4099 main ()
4100 {
4101 int i;
4102 for (i = 0; i < 256; i++)
4103 if (XOR (islower (i), ISLOWER (i))
4104 || toupper (i) != TOUPPER (i))
4105 exit(2);
4106 exit (0);
4107 }
4108 _ACEOF
4109 rm -f conftest$ac_exeext
4110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4111 (eval $ac_link) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 :
4121 else
4122 echo "$as_me: program exited with status $ac_status" >&5
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 ( exit $ac_status )
4127 ac_cv_header_stdc=no
4128 fi
4129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4130 fi
4131 fi
4132 fi
4133 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4134 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4135 if test $ac_cv_header_stdc = yes; then
4136
4137 cat >>confdefs.h <<\_ACEOF
4138 #define STDC_HEADERS 1
4139 _ACEOF
4140
4141 fi
4142
4143 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4154 inttypes.h stdint.h unistd.h
4155 do
4156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4157 echo "$as_me:$LINENO: checking for $ac_header" >&5
4158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 $ac_includes_default
4169
4170 #include <$ac_header>
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174 (eval $ac_compile) 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 eval "$as_ac_Header=yes"
4194 else
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 eval "$as_ac_Header=no"
4199 fi
4200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4201 fi
4202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4205 cat >>confdefs.h <<_ACEOF
4206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4207 _ACEOF
4208
4209 fi
4210
4211 done
4212
4213
4214 if test "${ac_cv_header_valgrind_h+set}" = set; then
4215 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4216 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4217 if test "${ac_cv_header_valgrind_h+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 fi
4220 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4221 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4222 else
4223 # Is the header compilable?
4224 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4225 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4233 #include <valgrind.h>
4234 _ACEOF
4235 rm -f conftest.$ac_objext
4236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4237 (eval $ac_compile) 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try='test -s conftest.$ac_objext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 ac_header_compiler=yes
4257 else
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 ac_header_compiler=no
4262 fi
4263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4265 echo "${ECHO_T}$ac_header_compiler" >&6
4266
4267 # Is the header present?
4268 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4269 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 #include <valgrind.h>
4277 _ACEOF
4278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } >/dev/null; then
4286 if test -s conftest.err; then
4287 ac_cpp_err=$ac_c_preproc_warn_flag
4288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4289 else
4290 ac_cpp_err=
4291 fi
4292 else
4293 ac_cpp_err=yes
4294 fi
4295 if test -z "$ac_cpp_err"; then
4296 ac_header_preproc=yes
4297 else
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 ac_header_preproc=no
4302 fi
4303 rm -f conftest.err conftest.$ac_ext
4304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4305 echo "${ECHO_T}$ac_header_preproc" >&6
4306
4307 # So? What about this header?
4308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4309 yes:no: )
4310 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4311 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4312 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4313 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4314 ac_header_preproc=yes
4315 ;;
4316 no:yes:* )
4317 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4318 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4319 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4320 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4321 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4322 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4323 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4324 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4325 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4326 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4327 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4328 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4329 (
4330 cat <<\_ASBOX
4331 ## ------------------------------------------ ##
4332 ## Report this to the AC_PACKAGE_NAME lists. ##
4333 ## ------------------------------------------ ##
4334 _ASBOX
4335 ) |
4336 sed "s/^/$as_me: WARNING: /" >&2
4337 ;;
4338 esac
4339 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4340 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4341 if test "${ac_cv_header_valgrind_h+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 ac_cv_header_valgrind_h=$ac_header_preproc
4345 fi
4346 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4347 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4348
4349 fi
4350 if test $ac_cv_header_valgrind_h = yes; then
4351 have_valgrind_h=yes
4352 else
4353 have_valgrind_h=no
4354 fi
4355
4356
4357
4358 if test x$ac_checking_valgrind != x ; then
4359 # It is certainly possible that there's valgrind but no valgrind.h.
4360 # GCC relies on making annotations so we must have both.
4361 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4362 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <valgrind/memcheck.h>
4370 #ifndef VALGRIND_DISCARD
4371 #error VALGRIND_DISCARD not defined
4372 #endif
4373 _ACEOF
4374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } >/dev/null; then
4382 if test -s conftest.err; then
4383 ac_cpp_err=$ac_c_preproc_warn_flag
4384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4385 else
4386 ac_cpp_err=
4387 fi
4388 else
4389 ac_cpp_err=yes
4390 fi
4391 if test -z "$ac_cpp_err"; then
4392 gcc_cv_header_valgrind_memcheck_h=yes
4393 else
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4396
4397 gcc_cv_header_valgrind_memcheck_h=no
4398 fi
4399 rm -f conftest.err conftest.$ac_ext
4400 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4401 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4402 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4403 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h. */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 #include <memcheck.h>
4411 #ifndef VALGRIND_DISCARD
4412 #error VALGRIND_DISCARD not defined
4413 #endif
4414 _ACEOF
4415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4417 ac_status=$?
4418 grep -v '^ *+' conftest.er1 >conftest.err
4419 rm -f conftest.er1
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } >/dev/null; then
4423 if test -s conftest.err; then
4424 ac_cpp_err=$ac_c_preproc_warn_flag
4425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4426 else
4427 ac_cpp_err=
4428 fi
4429 else
4430 ac_cpp_err=yes
4431 fi
4432 if test -z "$ac_cpp_err"; then
4433 gcc_cv_header_memcheck_h=yes
4434 else
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438 gcc_cv_header_memcheck_h=no
4439 fi
4440 rm -f conftest.err conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4442 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4443
4444 # Prepare PATH_SEPARATOR.
4445 # The user is always right.
4446 if test "${PATH_SEPARATOR+set}" != set; then
4447 echo "#! /bin/sh" >conf$$.sh
4448 echo "exit 0" >>conf$$.sh
4449 chmod +x conf$$.sh
4450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4451 PATH_SEPARATOR=';'
4452 else
4453 PATH_SEPARATOR=:
4454 fi
4455 rm -f conf$$.sh
4456 fi
4457
4458 # Find out how to test for executable files. Don't use a zero-byte file,
4459 # as systems may use methods other than mode bits to determine executability.
4460 cat >conf$$.file <<_ASEOF
4461 #! /bin/sh
4462 exit 0
4463 _ASEOF
4464 chmod +x conf$$.file
4465 if test -x conf$$.file >/dev/null 2>&1; then
4466 ac_executable_p="test -x"
4467 else
4468 ac_executable_p="test -f"
4469 fi
4470 rm -f conf$$.file
4471
4472 # Extract the first word of "valgrind", so it can be a program name with args.
4473 set dummy valgrind; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_valgrind_path+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 case "$valgrind_path" in
4480 [\\/]* | ?:[\\/]*)
4481 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4482 ;;
4483 *)
4484 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4485 for ac_dir in $PATH; do
4486 IFS="$ac_save_IFS"
4487 test -z "$ac_dir" && ac_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4490 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4491 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4492 break 2
4493 fi
4494 fi
4495 done
4496 done
4497 IFS="$ac_save_IFS"
4498 ;;
4499 esac
4500 fi
4501 valgrind_path="$ac_cv_path_valgrind_path"
4502 if test -n "$valgrind_path"; then
4503 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4504 echo "${ECHO_T}$valgrind_path" >&6
4505 else
4506 echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6
4508 fi
4509
4510 if test "x$valgrind_path" = "x" \
4511 || (test $have_valgrind_h = no \
4512 && test $gcc_cv_header_memcheck_h = no \
4513 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4514 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4515 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4516 { (exit 1); exit 1; }; }
4517 fi
4518 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4519 valgrind_command="$valgrind_path -q"
4520
4521 cat >>confdefs.h <<\_ACEOF
4522 #define ENABLE_VALGRIND_CHECKING 1
4523 _ACEOF
4524
4525 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4526
4527 cat >>confdefs.h <<\_ACEOF
4528 #define HAVE_VALGRIND_MEMCHECK_H 1
4529 _ACEOF
4530
4531 fi
4532 if test $gcc_cv_header_memcheck_h = yes; then
4533
4534 cat >>confdefs.h <<\_ACEOF
4535 #define HAVE_MEMCHECK_H 1
4536 _ACEOF
4537
4538 fi
4539 fi
4540
4541
4542
4543 # Enable code coverage collection
4544 # Check whether --enable-coverage or --disable-coverage was given.
4545 if test "${enable_coverage+set}" = set; then
4546 enableval="$enable_coverage"
4547 case "${enableval}" in
4548 yes|noopt)
4549 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4550 ;;
4551 opt)
4552 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4553 ;;
4554 no)
4555 # a.k.a. --disable-coverage
4556 coverage_flags=""
4557 ;;
4558 *)
4559 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4560 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4561 { (exit 1); exit 1; }; }
4562 ;;
4563 esac
4564 else
4565 coverage_flags=""
4566 fi;
4567
4568
4569 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4570 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4571 enableval="$enable_gather_detailed_mem_stats"
4572
4573 else
4574 enable_gather_detailed_mem_stats=no
4575 fi;
4576 if test x$enable_gather_detailed_mem_stats = xyes ; then
4577
4578 cat >>confdefs.h <<\_ACEOF
4579 #define GATHER_STATISTICS 1
4580 _ACEOF
4581
4582 fi
4583
4584 # -------------------------------
4585 # Miscenalleous configure options
4586 # -------------------------------
4587
4588 # With stabs
4589
4590 # Check whether --with-stabs or --without-stabs was given.
4591 if test "${with_stabs+set}" = set; then
4592 withval="$with_stabs"
4593 stabs="$with_stabs"
4594 else
4595 stabs=no
4596 fi;
4597
4598 # Determine whether or not multilibs are enabled.
4599 # Check whether --enable-multilib or --disable-multilib was given.
4600 if test "${enable_multilib+set}" = set; then
4601 enableval="$enable_multilib"
4602
4603 else
4604 enable_multilib=yes
4605 fi;
4606
4607
4608 # Enable __cxa_atexit for C++.
4609 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4610 if test "${enable___cxa_atexit+set}" = set; then
4611 enableval="$enable___cxa_atexit"
4612
4613 fi;
4614
4615 # Enable threads
4616 # Pass with no value to take the default
4617 # Pass with a value to specify a thread package
4618 # Check whether --enable-threads or --disable-threads was given.
4619 if test "${enable_threads+set}" = set; then
4620 enableval="$enable_threads"
4621
4622 else
4623 enable_threads=''
4624 fi;
4625 # Save in case it gets overwritten in config.gcc
4626 enable_threads_flag=$enable_threads
4627
4628 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4629 if test "${enable_objc_gc+set}" = set; then
4630 enableval="$enable_objc_gc"
4631 if test x$enable_objc_gc = xno; then
4632 objc_boehm_gc=''
4633 else
4634 objc_boehm_gc=1
4635 fi
4636 else
4637 objc_boehm_gc=''
4638 fi;
4639
4640
4641 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4642 if test "${with_dwarf2+set}" = set; then
4643 withval="$with_dwarf2"
4644 dwarf2="$with_dwarf2"
4645 else
4646 dwarf2=no
4647 fi;
4648
4649 # Check whether --enable-shared or --disable-shared was given.
4650 if test "${enable_shared+set}" = set; then
4651 enableval="$enable_shared"
4652
4653 case $enable_shared in
4654 yes | no) ;;
4655 *)
4656 enable_shared=no
4657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4658 for pkg in $enableval; do
4659 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4660 enable_shared=yes
4661 fi
4662 done
4663 IFS="$ac_save_ifs"
4664 ;;
4665 esac
4666
4667 else
4668 enable_shared=yes
4669 fi;
4670
4671
4672
4673 # Check whether --with-sysroot or --without-sysroot was given.
4674 if test "${with_sysroot+set}" = set; then
4675 withval="$with_sysroot"
4676
4677 case ${with_sysroot} in
4678 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4679 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4680 esac
4681
4682 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4683 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4684
4685 if test "x$exec_prefix" = xNONE; then
4686 if test "x$prefix" = xNONE; then
4687 test_prefix=/usr/local
4688 else
4689 test_prefix=$prefix
4690 fi
4691 else
4692 test_prefix=$exec_prefix
4693 fi
4694 case ${TARGET_SYSTEM_ROOT} in
4695 "${test_prefix}"|"${test_prefix}/"*|\
4696 '${exec_prefix}'|'${exec_prefix}/'*)
4697 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4698 TARGET_SYSTEM_ROOT_DEFINE="$t"
4699 ;;
4700 esac
4701
4702 else
4703
4704 TARGET_SYSTEM_ROOT=
4705 TARGET_SYSTEM_ROOT_DEFINE=
4706 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4707
4708 fi;
4709
4710
4711
4712
4713 # Build with intermodule optimisations
4714 # Check whether --enable-intermodule or --disable-intermodule was given.
4715 if test "${enable_intermodule+set}" = set; then
4716 enableval="$enable_intermodule"
4717 case ${enable_intermodule} in
4718 yes) onestep="-onestep";;
4719 *) onestep="";;
4720 esac
4721 else
4722 onestep=""
4723 fi;
4724
4725
4726 # Sanity check enable_languages in case someone does not run the toplevel
4727 # configure # script.
4728 # Check whether --enable-languages or --disable-languages was given.
4729 if test "${enable_languages+set}" = set; then
4730 enableval="$enable_languages"
4731 case ,${enable_languages}, in
4732 ,,|,yes,)
4733 # go safe -- we cannot be much sure without the toplevel
4734 # configure's
4735 # analysis of which target libs are present and usable
4736 enable_languages=c
4737 ;;
4738 *,all,*)
4739 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4740 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4741 { (exit 1); exit 1; }; }
4742 ;;
4743 *,c,*)
4744 ;;
4745 *)
4746 enable_languages=c,${enable_languages}
4747 ;;
4748 esac
4749 else
4750 enable_languages=c
4751 fi;
4752
4753 subdirs=
4754 for lang in ${srcdir}/*/config-lang.in
4755 do
4756 case $lang in
4757 # The odd quoting in the next line works around
4758 # an apparent bug in bash 1.12 on linux.
4759 ${srcdir}/[*]/config-lang.in) ;;
4760 *)
4761 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4762 if test "x$lang_alias" = x
4763 then
4764 echo "$lang doesn't set \$language." 1>&2
4765 exit 1
4766 fi
4767 case ",$enable_languages," in
4768 *,$lang_alias,*)
4769 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4770 esac
4771 ;;
4772 esac
4773 done
4774
4775
4776 # -------------------------
4777 # Checks for other programs
4778 # -------------------------
4779
4780 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4781 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4782 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4783 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786 cat >conftest.make <<\_ACEOF
4787 all:
4788 @echo 'ac_maketemp="$(MAKE)"'
4789 _ACEOF
4790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4791 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4792 if test -n "$ac_maketemp"; then
4793 eval ac_cv_prog_make_${ac_make}_set=yes
4794 else
4795 eval ac_cv_prog_make_${ac_make}_set=no
4796 fi
4797 rm -f conftest.make
4798 fi
4799 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4800 echo "$as_me:$LINENO: result: yes" >&5
4801 echo "${ECHO_T}yes" >&6
4802 SET_MAKE=
4803 else
4804 echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6
4806 SET_MAKE="MAKE=${MAKE-make}"
4807 fi
4808
4809
4810 # Find some useful tools
4811 for ac_prog in gawk mawk nawk awk
4812 do
4813 # Extract the first word of "$ac_prog", so it can be a program name with args.
4814 set dummy $ac_prog; ac_word=$2
4815 echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4817 if test "${ac_cv_prog_AWK+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820 if test -n "$AWK"; then
4821 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_prog_AWK="$ac_prog"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834 done
4835 done
4836
4837 fi
4838 fi
4839 AWK=$ac_cv_prog_AWK
4840 if test -n "$AWK"; then
4841 echo "$as_me:$LINENO: result: $AWK" >&5
4842 echo "${ECHO_T}$AWK" >&6
4843 else
4844 echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6
4846 fi
4847
4848 test -n "$AWK" && break
4849 done
4850
4851 # We need awk to run opts.sh (to create options.c and options.h).
4852 # Bail out if it's missing.
4853 case ${AWK} in
4854 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4855 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4856 { (exit 1); exit 1; }; } ;;
4857 esac
4858
4859 echo "$as_me:$LINENO: checking whether ln works" >&5
4860 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4861 if test "${gcc_cv_prog_LN+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 rm -f conftestdata_t
4865 echo >conftestdata_f
4866 if ln conftestdata_f conftestdata_t 2>/dev/null
4867 then
4868 gcc_cv_prog_LN="ln"
4869 else
4870 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4871 then
4872 gcc_cv_prog_LN="ln -s"
4873 else
4874 gcc_cv_prog_LN=cp
4875 fi
4876 fi
4877 rm -f conftestdata_f conftestdata_t
4878
4879 fi
4880 LN="$gcc_cv_prog_LN"
4881 if test "$gcc_cv_prog_LN" = "ln"; then
4882 echo "$as_me:$LINENO: result: yes" >&5
4883 echo "${ECHO_T}yes" >&6
4884 else
4885 if test "$gcc_cv_prog_LN" = "ln -s"; then
4886 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4887 echo "${ECHO_T}no, using ln -s" >&6
4888 else
4889 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4890 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4891 fi
4892 fi
4893
4894 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4895 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4896 if test "${gcc_cv_prog_LN_S+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899 rm -f conftestdata_t
4900 echo >conftestdata_f
4901 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4902 then
4903 gcc_cv_prog_LN_S="ln -s"
4904 else
4905 if ln conftestdata_f conftestdata_t 2>/dev/null
4906 then
4907 gcc_cv_prog_LN_S=ln
4908 else
4909 gcc_cv_prog_LN_S=cp
4910 fi
4911 fi
4912 rm -f conftestdata_f conftestdata_t
4913
4914 fi
4915 LN_S="$gcc_cv_prog_LN_S"
4916 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4917 echo "$as_me:$LINENO: result: yes" >&5
4918 echo "${ECHO_T}yes" >&6
4919 else
4920 if test "$gcc_cv_prog_LN_S" = "ln"; then
4921 echo "$as_me:$LINENO: result: no, using ln" >&5
4922 echo "${ECHO_T}no, using ln" >&6
4923 else
4924 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4925 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4926 fi
4927 fi
4928
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4932 echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934 if test "${ac_cv_prog_RANLIB+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 if test -n "$RANLIB"; then
4938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4950 fi
4951 done
4952 done
4953
4954 fi
4955 fi
4956 RANLIB=$ac_cv_prog_RANLIB
4957 if test -n "$RANLIB"; then
4958 echo "$as_me:$LINENO: result: $RANLIB" >&5
4959 echo "${ECHO_T}$RANLIB" >&6
4960 else
4961 echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4963 fi
4964
4965 fi
4966 if test -z "$ac_cv_prog_RANLIB"; then
4967 ac_ct_RANLIB=$RANLIB
4968 # Extract the first word of "ranlib", so it can be a program name with args.
4969 set dummy ranlib; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 if test -n "$ac_ct_RANLIB"; then
4976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_ac_ct_RANLIB="ranlib"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989 done
4990 done
4991
4992 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4993 fi
4994 fi
4995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4996 if test -n "$ac_ct_RANLIB"; then
4997 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4999 else
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5002 fi
5003
5004 RANLIB=$ac_ct_RANLIB
5005 else
5006 RANLIB="$ac_cv_prog_RANLIB"
5007 fi
5008
5009 # Find a good install program. We prefer a C program (faster),
5010 # so one script is as good as another. But avoid the broken or
5011 # incompatible versions:
5012 # SysV /etc/install, /usr/sbin/install
5013 # SunOS /usr/etc/install
5014 # IRIX /sbin/install
5015 # AIX /bin/install
5016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5018 # ./install, which can be erroneously created by make from ./install.sh.
5019 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5020 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5021 if test -z "$INSTALL"; then
5022 if test "${ac_cv_path_install+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5026 for ac_dir in $PATH; do
5027 # Account for people who put trailing slashes in PATH elements.
5028 case "$ac_dir/" in
5029 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5030 *)
5031 # OSF1 and SCO ODT 3.0 have their own names for install.
5032 for ac_prog in ginstall scoinst install; do
5033 if test -f $ac_dir/$ac_prog; then
5034 if test $ac_prog = install &&
5035 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5036 # AIX install. It has an incompatible calling convention.
5037 # OSF/1 installbsd also uses dspmsg, but is usable.
5038 :
5039 else
5040 ac_cv_path_install="$ac_dir/$ac_prog -c"
5041 break 2
5042 fi
5043 fi
5044 done
5045 ;;
5046 esac
5047 done
5048 IFS="$ac_save_IFS"
5049
5050 fi
5051 if test "${ac_cv_path_install+set}" = set; then
5052 INSTALL="$ac_cv_path_install"
5053 else
5054 # As a last resort, use the slow shell script. We don't cache a
5055 # path for INSTALL within a source directory, because that will
5056 # break other packages using the cache if that directory is
5057 # removed, or if the path is relative.
5058 INSTALL="$ac_install_sh"
5059 fi
5060 fi
5061 echo "$as_me:$LINENO: result: $INSTALL" >&5
5062 echo "${ECHO_T}$INSTALL" >&6
5063
5064 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5065 # It thinks the first close brace ends the variable substitution.
5066 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5067
5068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5069
5070
5071 # See if cmp has --ignore-initial.
5072 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5073 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5074 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 echo abfoo >t1
5078 echo cdfoo >t2
5079 gcc_cv_prog_cmp_skip=slowcompare
5080 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5081 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5082 :
5083 else
5084 gcc_cv_prog_cmp_skip=gnucompare
5085 fi
5086 fi
5087 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5088 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5089 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5090 :
5091 else
5092 gcc_cv_prog_cmp_skip=fastcompare
5093 fi
5094 fi
5095 fi
5096 rm t1 t2
5097
5098 fi
5099 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5100 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5101 make_compare_target=$gcc_cv_prog_cmp_skip
5102
5103
5104
5105 # See if we have the mktemp command.
5106 # Extract the first word of "mktemp", so it can be a program name with args.
5107 set dummy mktemp; ac_word=$2
5108 echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113 if test -n "$have_mktemp_command"; then
5114 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_have_mktemp_command="yes"
5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127 done
5128 done
5129
5130 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5131 fi
5132 fi
5133 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5134 if test -n "$have_mktemp_command"; then
5135 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5136 echo "${ECHO_T}$have_mktemp_command" >&6
5137 else
5138 echo "$as_me:$LINENO: result: no" >&5
5139 echo "${ECHO_T}no" >&6
5140 fi
5141
5142
5143 # Do we have a single-tree copy of texinfo?
5144 if test -f $srcdir/../texinfo/Makefile.in; then
5145 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5146 gcc_cv_prog_makeinfo_modern=yes
5147 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5148 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5149 else
5150 # See if makeinfo has been installed and is modern enough
5151 # that we can use it.
5152 # Extract the first word of "makeinfo", so it can be a program name with args.
5153 set dummy makeinfo; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 if test -n "$MAKEINFO"; then
5160 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_MAKEINFO="makeinfo"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175
5176 fi
5177 fi
5178 MAKEINFO=$ac_cv_prog_MAKEINFO
5179 if test -n "$MAKEINFO"; then
5180 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5181 echo "${ECHO_T}$MAKEINFO" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6
5185 fi
5186
5187 if test -n "$MAKEINFO"; then
5188 # Found it, now check the version.
5189 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5190 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5191 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 ac_prog_version=`$MAKEINFO --version 2>&1 |
5195 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5196 echo "configure:5196: version of makeinfo is $ac_prog_version" >&5
5197 case $ac_prog_version in
5198 '') gcc_cv_prog_makeinfo_modern=no;;
5199 4.[2-9]*)
5200 gcc_cv_prog_makeinfo_modern=yes;;
5201 *) gcc_cv_prog_makeinfo_modern=no;;
5202 esac
5203
5204 fi
5205 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5206 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5207 else
5208 gcc_cv_prog_makeinfo_modern=no
5209 fi
5210
5211 fi
5212
5213 if test $gcc_cv_prog_makeinfo_modern = no; then
5214 { echo "$as_me:$LINENO: WARNING:
5215 *** Makeinfo is missing or too old.
5216 *** Info documentation will not be built." >&5
5217 echo "$as_me: WARNING:
5218 *** Makeinfo is missing or too old.
5219 *** Info documentation will not be built." >&2;}
5220 BUILD_INFO=
5221 else
5222 BUILD_INFO=info
5223 fi
5224
5225 # Is pod2man recent enough to regenerate manpages?
5226 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5227 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5228 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5229 echo "$as_me:$LINENO: result: yes" >&5
5230 echo "${ECHO_T}yes" >&6
5231 GENERATED_MANPAGES=generated-manpages
5232 else
5233 echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6
5235 GENERATED_MANPAGES=
5236 fi
5237
5238 # How about lex?
5239 if test -f $srcdir/../flex/skel.c; then
5240 FLEX='$(objdir)/../flex/flex'
5241 else
5242 # Extract the first word of "flex", so it can be a program name with args.
5243 set dummy flex; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_FLEX+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 if test -n "$FLEX"; then
5250 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_FLEX="flex"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263 done
5264 done
5265
5266 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5267 fi
5268 fi
5269 FLEX=$ac_cv_prog_FLEX
5270 if test -n "$FLEX"; then
5271 echo "$as_me:$LINENO: result: $FLEX" >&5
5272 echo "${ECHO_T}$FLEX" >&6
5273 else
5274 echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5276 fi
5277
5278 fi
5279
5280 # Bison?
5281 # The -L switch is so bison can find its skeleton file.
5282 if test -f $srcdir/../bison/bison.simple; then
5283 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5284 else
5285 # Extract the first word of "bison", so it can be a program name with args.
5286 set dummy bison; ac_word=$2
5287 echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289 if test "${ac_cv_prog_BISON+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292 if test -n "$BISON"; then
5293 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302 ac_cv_prog_BISON="bison"
5303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5305 fi
5306 done
5307 done
5308
5309 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5310 fi
5311 fi
5312 BISON=$ac_cv_prog_BISON
5313 if test -n "$BISON"; then
5314 echo "$as_me:$LINENO: result: $BISON" >&5
5315 echo "${ECHO_T}$BISON" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5319 fi
5320
5321 fi
5322
5323 # --------------------
5324 # Checks for C headers
5325 # --------------------
5326
5327 echo "$as_me:$LINENO: checking for GNU C library" >&5
5328 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5329 if test "${gcc_cv_glibc+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <features.h>
5339 int
5340 main ()
5341 {
5342
5343 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5344 #error Not a GNU C library system
5345 #endif
5346 ;
5347 return 0;
5348 }
5349 _ACEOF
5350 rm -f conftest.$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5353 ac_status=$?
5354 grep -v '^ *+' conftest.er1 >conftest.err
5355 rm -f conftest.er1
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 gcc_cv_glibc=yes
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 gcc_cv_glibc=no
5377 fi
5378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379 fi
5380
5381 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5382 echo "${ECHO_T}$gcc_cv_glibc" >&6
5383 if test $gcc_cv_glibc = yes; then
5384
5385 cat >>confdefs.h <<\_ACEOF
5386 #define _GNU_SOURCE 1
5387 _ACEOF
5388
5389 fi
5390
5391 # Need to reject headers which give warnings, so that the -Werror bootstrap
5392 # works later. *sigh* This needs to come before all header checks.
5393
5394 ac_c_preproc_warn_flag=yes
5395
5396 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5397 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5398 if test "${ac_cv_header_stdc+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 cat >conftest.$ac_ext <<_ACEOF
5402 /* confdefs.h. */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <stdlib.h>
5408 #include <stdarg.h>
5409 #include <string.h>
5410 #include <float.h>
5411
5412 int
5413 main ()
5414 {
5415
5416 ;
5417 return 0;
5418 }
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 (eval $ac_try) 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_cv_header_stdc=yes
5442 else
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 ac_cv_header_stdc=no
5447 fi
5448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5449
5450 if test $ac_cv_header_stdc = yes; then
5451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <string.h>
5459
5460 _ACEOF
5461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5462 $EGREP "memchr" >/dev/null 2>&1; then
5463 :
5464 else
5465 ac_cv_header_stdc=no
5466 fi
5467 rm -f conftest*
5468
5469 fi
5470
5471 if test $ac_cv_header_stdc = yes; then
5472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h. */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 #include <stdlib.h>
5480
5481 _ACEOF
5482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5483 $EGREP "free" >/dev/null 2>&1; then
5484 :
5485 else
5486 ac_cv_header_stdc=no
5487 fi
5488 rm -f conftest*
5489
5490 fi
5491
5492 if test $ac_cv_header_stdc = yes; then
5493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5494 if test "$cross_compiling" = yes; then
5495 :
5496 else
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #include <ctype.h>
5504 #if ((' ' & 0x0FF) == 0x020)
5505 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5506 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5507 #else
5508 # define ISLOWER(c) \
5509 (('a' <= (c) && (c) <= 'i') \
5510 || ('j' <= (c) && (c) <= 'r') \
5511 || ('s' <= (c) && (c) <= 'z'))
5512 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5513 #endif
5514
5515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5516 int
5517 main ()
5518 {
5519 int i;
5520 for (i = 0; i < 256; i++)
5521 if (XOR (islower (i), ISLOWER (i))
5522 || toupper (i) != TOUPPER (i))
5523 exit(2);
5524 exit (0);
5525 }
5526 _ACEOF
5527 rm -f conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 :
5539 else
5540 echo "$as_me: program exited with status $ac_status" >&5
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544 ( exit $ac_status )
5545 ac_cv_header_stdc=no
5546 fi
5547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5548 fi
5549 fi
5550 fi
5551 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5552 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5553 if test $ac_cv_header_stdc = yes; then
5554
5555 cat >>confdefs.h <<\_ACEOF
5556 #define STDC_HEADERS 1
5557 _ACEOF
5558
5559 fi
5560
5561 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5562 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5563 if test "${ac_cv_header_time+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566 cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h. */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 #include <sys/types.h>
5573 #include <sys/time.h>
5574 #include <time.h>
5575
5576 int
5577 main ()
5578 {
5579 if ((struct tm *) 0)
5580 return 0;
5581 ;
5582 return 0;
5583 }
5584 _ACEOF
5585 rm -f conftest.$ac_objext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587 (eval $ac_compile) 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; } &&
5600 { ac_try='test -s conftest.$ac_objext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_header_time=yes
5607 else
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 ac_cv_header_time=no
5612 fi
5613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5614 fi
5615 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5616 echo "${ECHO_T}$ac_cv_header_time" >&6
5617 if test $ac_cv_header_time = yes; then
5618
5619 cat >>confdefs.h <<\_ACEOF
5620 #define TIME_WITH_SYS_TIME 1
5621 _ACEOF
5622
5623 fi
5624
5625 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5626 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5627 if test "${ac_cv_header_stdbool_h+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h. */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 #include <stdbool.h>
5637 int
5638 main ()
5639 {
5640 bool foo = false;
5641 ;
5642 return 0;
5643 }
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647 (eval $ac_compile) 2>conftest.er1
5648 ac_status=$?
5649 grep -v '^ *+' conftest.er1 >conftest.err
5650 rm -f conftest.er1
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 ac_cv_header_stdbool_h=yes
5667 else
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5670
5671 ac_cv_header_stdbool_h=no
5672 fi
5673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5674 fi
5675 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5676 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5677 if test $ac_cv_header_stdbool_h = yes; then
5678
5679 cat >>confdefs.h <<\_ACEOF
5680 #define HAVE_STDBOOL_H 1
5681 _ACEOF
5682
5683 fi
5684
5685 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5686 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5687 if test "${gcc_cv_header_string+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <string.h>
5697 #include <strings.h>
5698 int
5699 main ()
5700 {
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 rm -f conftest.$ac_objext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708 (eval $ac_compile) 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 gcc_cv_header_string=yes
5728 else
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 gcc_cv_header_string=no
5733 fi
5734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735 fi
5736 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5737 echo "${ECHO_T}$gcc_cv_header_string" >&6
5738 if test $gcc_cv_header_string = yes; then
5739
5740 cat >>confdefs.h <<\_ACEOF
5741 #define STRING_WITH_STRINGS 1
5742 _ACEOF
5743
5744 fi
5745
5746 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5747 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5748 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751 cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h. */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 #include <sys/types.h>
5758 #include <sys/wait.h>
5759 #ifndef WEXITSTATUS
5760 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5761 #endif
5762 #ifndef WIFEXITED
5763 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5764 #endif
5765
5766 int
5767 main ()
5768 {
5769 int s;
5770 wait (&s);
5771 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5772 ;
5773 return 0;
5774 }
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" || test ! -s conftest.err'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; } &&
5791 { ac_try='test -s conftest.$ac_objext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 ac_cv_header_sys_wait_h=yes
5798 else
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 ac_cv_header_sys_wait_h=no
5803 fi
5804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805 fi
5806 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5807 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5808 if test $ac_cv_header_sys_wait_h = yes; then
5809
5810 cat >>confdefs.h <<\_ACEOF
5811 #define HAVE_SYS_WAIT_H 1
5812 _ACEOF
5813
5814 fi
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5838 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5839 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5840 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5841 do
5842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5843 echo "$as_me:$LINENO: checking for $ac_header" >&5
5844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #include <$ac_header>
5855 _ACEOF
5856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } >/dev/null; then
5864 if test -s conftest.err; then
5865 ac_cpp_err=$ac_c_preproc_warn_flag
5866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5867 else
5868 ac_cpp_err=
5869 fi
5870 else
5871 ac_cpp_err=yes
5872 fi
5873 if test -z "$ac_cpp_err"; then
5874 eval "$as_ac_Header=yes"
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879 eval "$as_ac_Header=no"
5880 fi
5881 rm -f conftest.err conftest.$ac_ext
5882 fi
5883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5886 cat >>confdefs.h <<_ACEOF
5887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5888 _ACEOF
5889
5890 fi
5891 done
5892
5893
5894 # Check for thread headers.
5895 echo "$as_me:$LINENO: checking for thread.h" >&5
5896 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5897 if test "${ac_cv_header_thread_h+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 #include <thread.h>
5907 _ACEOF
5908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } >/dev/null; then
5916 if test -s conftest.err; then
5917 ac_cpp_err=$ac_c_preproc_warn_flag
5918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5919 else
5920 ac_cpp_err=
5921 fi
5922 else
5923 ac_cpp_err=yes
5924 fi
5925 if test -z "$ac_cpp_err"; then
5926 ac_cv_header_thread_h=yes
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5930
5931 ac_cv_header_thread_h=no
5932 fi
5933 rm -f conftest.err conftest.$ac_ext
5934 fi
5935 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5936 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5937 if test $ac_cv_header_thread_h = yes; then
5938 have_thread_h=yes
5939 else
5940 have_thread_h=
5941 fi
5942
5943 echo "$as_me:$LINENO: checking for pthread.h" >&5
5944 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5945 if test "${ac_cv_header_pthread_h+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <pthread.h>
5955 _ACEOF
5956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } >/dev/null; then
5964 if test -s conftest.err; then
5965 ac_cpp_err=$ac_c_preproc_warn_flag
5966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5967 else
5968 ac_cpp_err=
5969 fi
5970 else
5971 ac_cpp_err=yes
5972 fi
5973 if test -z "$ac_cpp_err"; then
5974 ac_cv_header_pthread_h=yes
5975 else
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 ac_cv_header_pthread_h=no
5980 fi
5981 rm -f conftest.err conftest.$ac_ext
5982 fi
5983 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5984 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5985 if test $ac_cv_header_pthread_h = yes; then
5986 have_pthread_h=yes
5987 else
5988 have_pthread_h=
5989 fi
5990
5991
5992 # These tests can't be done till we know if we have limits.h.
5993 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5994 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5995 if test "${gcc_cv_decl_char_bit+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h. */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #ifdef HAVE_LIMITS_H
6005 #include <limits.h>
6006 #endif
6007 #ifdef CHAR_BIT
6008 found
6009 #endif
6010 _ACEOF
6011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 $EGREP "found" >/dev/null 2>&1; then
6013 gcc_cv_decl_char_bit=yes
6014 else
6015 gcc_cv_decl_char_bit=no
6016 fi
6017 rm -f conftest*
6018
6019
6020 fi
6021 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6022 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6023 if test $gcc_cv_decl_char_bit = no; then
6024 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6025 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6026 if test "${gcc_cv_c_nbby+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 i=8
6030 gcc_cv_c_nbby=
6031 while test $i -lt 65; do
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038
6039 int
6040 main ()
6041 {
6042 switch(0) {
6043 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6044 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6045 ; }
6046 ;
6047 return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 (eval $ac_try) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; } &&
6065 { ac_try='test -s conftest.$ac_objext'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 (eval $ac_try) 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; }; then
6071 gcc_cv_c_nbby=$i; break
6072 else
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 fi
6077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6078 i=`expr $i + 1`
6079 done
6080 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6081
6082 fi
6083 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6084 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6085 if test $gcc_cv_c_nbby = failed; then
6086 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6087 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6088 { (exit 1); exit 1; }; }
6089 else
6090
6091 cat >>confdefs.h <<_ACEOF
6092 #define CHAR_BIT $gcc_cv_c_nbby
6093 _ACEOF
6094
6095 fi
6096 fi
6097 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6098 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6099 if test "${ac_cv_c_bigendian+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 ac_cv_c_bigendian=unknown
6103 # See if sys/param.h defines the BYTE_ORDER macro.
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 #include <sys/types.h>
6111 #include <sys/param.h>
6112 int
6113 main ()
6114 {
6115
6116 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6117 bogus endian macros
6118 #endif
6119 ;
6120 return 0;
6121 }
6122 _ACEOF
6123 rm -f conftest.$ac_objext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125 (eval $ac_compile) 2>conftest.er1
6126 ac_status=$?
6127 grep -v '^ *+' conftest.er1 >conftest.err
6128 rm -f conftest.er1
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try='test -s conftest.$ac_objext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 (eval $ac_try) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 # It does; now see whether it defined to BIG_ENDIAN or not.
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <sys/types.h>
6152 #include <sys/param.h>
6153 int
6154 main ()
6155 {
6156
6157 #if BYTE_ORDER != BIG_ENDIAN
6158 not big endian
6159 #endif
6160 ;
6161 return 0;
6162 }
6163 _ACEOF
6164 rm -f conftest.$ac_objext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>conftest.er1
6167 ac_status=$?
6168 grep -v '^ *+' conftest.er1 >conftest.err
6169 rm -f conftest.er1
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } &&
6173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; } &&
6179 { ac_try='test -s conftest.$ac_objext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_c_bigendian=yes
6186 else
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190 ac_cv_c_bigendian=no
6191 fi
6192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6196
6197 fi
6198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6199 if test $ac_cv_c_bigendian = unknown; then
6200 if test "$cross_compiling" = yes; then
6201 echo $ac_n "cross-compiling... " 2>&6
6202 else
6203 cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 main () {
6210 /* Are we little or big endian? From Harbison&Steele. */
6211 union
6212 {
6213 long l;
6214 char c[sizeof (long)];
6215 } u;
6216 u.l = 1;
6217 exit (u.c[sizeof (long) - 1] == 1);
6218 }
6219 _ACEOF
6220 rm -f conftest$ac_exeext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6222 (eval $ac_link) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_c_bigendian=no
6232 else
6233 echo "$as_me: program exited with status $ac_status" >&5
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237 ( exit $ac_status )
6238 ac_cv_c_bigendian=yes
6239 fi
6240 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6241 fi
6242 fi
6243 fi
6244 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6245 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6246 if test $ac_cv_c_bigendian = unknown; then
6247 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6248 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6249
6250 cat >conftest.c <<EOF
6251 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6252 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6253 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6254 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6255 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6256 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6257 int main() { _ascii (); _ebcdic (); return 0; }
6258 EOF
6259 if test -f conftest.c ; then
6260 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6261 if test `grep -l BIGenDianSyS conftest.o` ; then
6262 echo $ac_n ' big endian probe OK, ' 1>&6
6263 ac_cv_c_bigendian=yes
6264 fi
6265 if test `grep -l LiTTleEnDian conftest.o` ; then
6266 echo $ac_n ' little endian probe OK, ' 1>&6
6267 if test $ac_cv_c_bigendian = yes ; then
6268 ac_cv_c_bigendian=unknown;
6269 else
6270 ac_cv_c_bigendian=no
6271 fi
6272 fi
6273 echo $ac_n 'guessing bigendian ... ' >&6
6274 fi
6275 fi
6276 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6277 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6278 fi
6279 if test $ac_cv_c_bigendian = yes; then
6280
6281 cat >>confdefs.h <<\_ACEOF
6282 #define WORDS_BIGENDIAN 1
6283 _ACEOF
6284
6285
6286 cat >>confdefs.h <<\_ACEOF
6287 #define HOST_WORDS_BIG_ENDIAN 1
6288 _ACEOF
6289
6290 BYTEORDER=4321
6291 else
6292 BYTEORDER=1234
6293 fi
6294
6295 cat >>confdefs.h <<_ACEOF
6296 #define BYTEORDER $BYTEORDER
6297 _ACEOF
6298
6299 if test $ac_cv_c_bigendian = unknown; then
6300 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6301 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6302 { (exit 1); exit 1; }; }
6303 fi
6304
6305
6306 # --------
6307 # UNSORTED
6308 # --------
6309
6310 # Stage specific cflags for build.
6311 stage1_cflags=
6312 case $build in
6313 vax-*-*)
6314 if test x$GCC = xyes
6315 then
6316 stage1_cflags="-Wa,-J"
6317 else
6318 stage1_cflags="-J"
6319 fi
6320 ;;
6321 powerpc-*-darwin*)
6322 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6323 # sources; use -no-cpp-precomp to get to GNU cpp.
6324 # Apple's GCC has bugs in designated initializer handling, so disable
6325 # that too.
6326 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6327 ;;
6328 esac
6329
6330
6331 # These libraries may be used by collect2.
6332 # We may need a special search path to get them linked.
6333 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6334 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6335 if test "${gcc_cv_collect2_libs+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 save_LIBS="$LIBS"
6339 for libs in '' -lld -lmld \
6340 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6341 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6342 do
6343 LIBS="$libs"
6344 cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h. */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350
6351 /* Override any gcc2 internal prototype to avoid an error. */
6352 #ifdef __cplusplus
6353 extern "C"
6354 #endif
6355 /* We use char because int might match the return type of a gcc2
6356 builtin and then its argument prototype would still apply. */
6357 char ldopen ();
6358 int
6359 main ()
6360 {
6361 ldopen ();
6362 ;
6363 return 0;
6364 }
6365 _ACEOF
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368 (eval $ac_link) 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; } &&
6381 { ac_try='test -s conftest$ac_exeext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 gcc_cv_collect2_libs="$libs"; break
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6391
6392 fi
6393 rm -f conftest.err conftest.$ac_objext \
6394 conftest$ac_exeext conftest.$ac_ext
6395 done
6396 LIBS="$save_LIBS"
6397 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6398 fi
6399 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6400 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6401 case $gcc_cv_collect2_libs in
6402 "none required") ;;
6403 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6404 esac
6405
6406
6407 # When building Ada code on Alpha, we need exc_resume which is usually in
6408 # -lexc. So test for it.
6409 save_LIBS="$LIBS"
6410 LIBS=
6411 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6412 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6413 if test "${ac_cv_search_exc_resume+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416 ac_func_search_save_LIBS=$LIBS
6417 ac_cv_search_exc_resume=no
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424
6425 /* Override any gcc2 internal prototype to avoid an error. */
6426 #ifdef __cplusplus
6427 extern "C"
6428 #endif
6429 /* We use char because int might match the return type of a gcc2
6430 builtin and then its argument prototype would still apply. */
6431 char exc_resume ();
6432 int
6433 main ()
6434 {
6435 exc_resume ();
6436 ;
6437 return 0;
6438 }
6439 _ACEOF
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest$ac_exeext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_cv_search_exc_resume="none required"
6462 else
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 fi
6467 rm -f conftest.err conftest.$ac_objext \
6468 conftest$ac_exeext conftest.$ac_ext
6469 if test "$ac_cv_search_exc_resume" = no; then
6470 for ac_lib in exc; do
6471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6472 cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h. */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6478
6479 /* Override any gcc2 internal prototype to avoid an error. */
6480 #ifdef __cplusplus
6481 extern "C"
6482 #endif
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6485 char exc_resume ();
6486 int
6487 main ()
6488 {
6489 exc_resume ();
6490 ;
6491 return 0;
6492 }
6493 _ACEOF
6494 rm -f conftest.$ac_objext conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 ac_cv_search_exc_resume="-l$ac_lib"
6516 break
6517 else
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6520
6521 fi
6522 rm -f conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524 done
6525 fi
6526 LIBS=$ac_func_search_save_LIBS
6527 fi
6528 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6529 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6530 if test "$ac_cv_search_exc_resume" != no; then
6531 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6532
6533 fi
6534
6535 GNAT_LIBEXC="$LIBS"
6536 LIBS="$save_LIBS"
6537
6538
6539 # Some systems put ldexp and frexp in libm instead of libc; assume
6540 # they're both in the same place. jcf-dump needs them.
6541 save_LIBS="$LIBS"
6542 LIBS=
6543 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6544 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6545 if test "${ac_cv_search_ldexp+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548 ac_func_search_save_LIBS=$LIBS
6549 ac_cv_search_ldexp=no
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 #ifdef __cplusplus
6559 extern "C"
6560 #endif
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6563 char ldexp ();
6564 int
6565 main ()
6566 {
6567 ldexp ();
6568 ;
6569 return 0;
6570 }
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>conftest.er1
6575 ac_status=$?
6576 grep -v '^ *+' conftest.er1 >conftest.err
6577 rm -f conftest.er1
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; } &&
6587 { ac_try='test -s conftest$ac_exeext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 (eval $ac_try) 2>&5
6590 ac_status=$?
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
6593 ac_cv_search_ldexp="none required"
6594 else
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 fi
6599 rm -f conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601 if test "$ac_cv_search_ldexp" = no; then
6602 for ac_lib in m; do
6603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610
6611 /* Override any gcc2 internal prototype to avoid an error. */
6612 #ifdef __cplusplus
6613 extern "C"
6614 #endif
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6617 char ldexp ();
6618 int
6619 main ()
6620 {
6621 ldexp ();
6622 ;
6623 return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try='test -s conftest$ac_exeext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 (eval $ac_try) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_search_ldexp="-l$ac_lib"
6648 break
6649 else
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 fi
6654 rm -f conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext conftest.$ac_ext
6656 done
6657 fi
6658 LIBS=$ac_func_search_save_LIBS
6659 fi
6660 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6661 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6662 if test "$ac_cv_search_ldexp" != no; then
6663 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6664
6665 fi
6666
6667 LDEXP_LIB="$LIBS"
6668 LIBS="$save_LIBS"
6669
6670
6671 # Use <inttypes.h> only if it exists,
6672 # doesn't clash with <sys/types.h>, and declares intmax_t.
6673 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6674 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6675 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h. */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 #include <sys/types.h>
6685 #include <inttypes.h>
6686 int
6687 main ()
6688 {
6689 intmax_t i = -1;
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696 (eval $ac_compile) 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest.$ac_objext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 gcc_cv_header_inttypes_h=yes
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720 gcc_cv_header_inttypes_h=no
6721 fi
6722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6723 fi
6724
6725 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6726 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6727 if test $gcc_cv_header_inttypes_h = yes; then
6728
6729 cat >>confdefs.h <<\_ACEOF
6730 #define HAVE_INTTYPES_H 1
6731 _ACEOF
6732
6733 fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6762 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6763 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6764 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6765 setlocale
6766 do
6767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6768 echo "$as_me:$LINENO: checking for $ac_func" >&5
6769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6770 if eval "test \"\${$as_ac_var+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h. */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6781 #define $ac_func innocuous_$ac_func
6782
6783 /* System header to define __stub macros and hopefully few prototypes,
6784 which can conflict with char $ac_func (); below.
6785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6786 <limits.h> exists even on freestanding compilers. */
6787
6788 #ifdef __STDC__
6789 # include <limits.h>
6790 #else
6791 # include <assert.h>
6792 #endif
6793
6794 #undef $ac_func
6795
6796 /* Override any gcc2 internal prototype to avoid an error. */
6797 #ifdef __cplusplus
6798 extern "C"
6799 {
6800 #endif
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6803 char $ac_func ();
6804 /* The GNU C library defines this for functions which it implements
6805 to always fail with ENOSYS. Some functions are actually named
6806 something starting with __ and the normal name is an alias. */
6807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6808 choke me
6809 #else
6810 char (*f) () = $ac_func;
6811 #endif
6812 #ifdef __cplusplus
6813 }
6814 #endif
6815
6816 int
6817 main ()
6818 {
6819 return f != $ac_func;
6820 ;
6821 return 0;
6822 }
6823 _ACEOF
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826 (eval $ac_link) 2>conftest.er1
6827 ac_status=$?
6828 grep -v '^ *+' conftest.er1 >conftest.err
6829 rm -f conftest.er1
6830 cat conftest.err >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; } &&
6839 { ac_try='test -s conftest$ac_exeext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 eval "$as_ac_var=yes"
6846 else
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6849
6850 eval "$as_ac_var=no"
6851 fi
6852 rm -f conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6854 fi
6855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6857 if test `eval echo '${'$as_ac_var'}'` = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6860 _ACEOF
6861
6862 fi
6863 done
6864
6865
6866 if test x$ac_cv_func_mbstowcs = xyes; then
6867 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6868 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6869 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872 if test "$cross_compiling" = yes; then
6873 gcc_cv_func_mbstowcs_works=yes
6874 else
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 #include <stdlib.h>
6882 int main()
6883 {
6884 mbstowcs(0, "", 0);
6885 return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 gcc_cv_func_mbstowcs_works=yes
6900 else
6901 echo "$as_me: program exited with status $ac_status" >&5
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905 ( exit $ac_status )
6906 gcc_cv_func_mbstowcs_works=no
6907 fi
6908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6909 fi
6910 fi
6911 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6912 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6913 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6914
6915 cat >>confdefs.h <<\_ACEOF
6916 #define HAVE_WORKING_MBSTOWCS 1
6917 _ACEOF
6918
6919 fi
6920 fi
6921
6922 echo "$as_me:$LINENO: checking for ssize_t" >&5
6923 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6924 if test "${ac_cv_type_ssize_t+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 $ac_includes_default
6934 int
6935 main ()
6936 {
6937 if ((ssize_t *) 0)
6938 return 0;
6939 if (sizeof (ssize_t))
6940 return 0;
6941 ;
6942 return 0;
6943 }
6944 _ACEOF
6945 rm -f conftest.$ac_objext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; } &&
6960 { ac_try='test -s conftest.$ac_objext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 ac_cv_type_ssize_t=yes
6967 else
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 ac_cv_type_ssize_t=no
6972 fi
6973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6974 fi
6975 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6976 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6977 if test $ac_cv_type_ssize_t = yes; then
6978 :
6979 else
6980
6981 cat >>confdefs.h <<_ACEOF
6982 #define ssize_t int
6983 _ACEOF
6984
6985 fi
6986
6987
6988 # Try to determine the array type of the second argument of getgroups
6989 # for the target system (int or gid_t).
6990 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6991 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6992 if test "${ac_cv_type_uid_t+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 cat >conftest.$ac_ext <<_ACEOF
6996 /* confdefs.h. */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 #include <sys/types.h>
7002
7003 _ACEOF
7004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7005 $EGREP "uid_t" >/dev/null 2>&1; then
7006 ac_cv_type_uid_t=yes
7007 else
7008 ac_cv_type_uid_t=no
7009 fi
7010 rm -f conftest*
7011
7012 fi
7013 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7014 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7015 if test $ac_cv_type_uid_t = no; then
7016
7017 cat >>confdefs.h <<\_ACEOF
7018 #define uid_t int
7019 _ACEOF
7020
7021
7022 cat >>confdefs.h <<\_ACEOF
7023 #define gid_t int
7024 _ACEOF
7025
7026 fi
7027
7028 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7029 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7030 if test "${ac_cv_type_getgroups+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033 if test "$cross_compiling" = yes; then
7034 ac_cv_type_getgroups=cross
7035 else
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 /* Thanks to Mike Rendell for this test. */
7043 #include <sys/types.h>
7044 #define NGID 256
7045 #undef MAX
7046 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7047
7048 int
7049 main ()
7050 {
7051 gid_t gidset[NGID];
7052 int i, n;
7053 union { gid_t gval; long lval; } val;
7054
7055 val.lval = -1;
7056 for (i = 0; i < NGID; i++)
7057 gidset[i] = val.gval;
7058 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7059 gidset);
7060 /* Exit non-zero if getgroups seems to require an array of ints. This
7061 happens when gid_t is short but getgroups modifies an array of ints. */
7062 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7063 }
7064 _ACEOF
7065 rm -f conftest$ac_exeext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7067 (eval $ac_link) 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_type_getgroups=gid_t
7077 else
7078 echo "$as_me: program exited with status $ac_status" >&5
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082 ( exit $ac_status )
7083 ac_cv_type_getgroups=int
7084 fi
7085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7086 fi
7087 if test $ac_cv_type_getgroups = cross; then
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 #include <unistd.h>
7095
7096 _ACEOF
7097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7099 ac_cv_type_getgroups=gid_t
7100 else
7101 ac_cv_type_getgroups=int
7102 fi
7103 rm -f conftest*
7104
7105 fi
7106 fi
7107 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7108 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7109
7110 cat >>confdefs.h <<_ACEOF
7111 #define GETGROUPS_T $ac_cv_type_getgroups
7112 _ACEOF
7113
7114
7115 if test "${target}" = "${build}"; then
7116 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7117 else
7118 case "${target}" in
7119 # This condition may need some tweaking. It should include all
7120 # targets where the array type of the second argument of getgroups
7121 # is int and the type of gid_t is not equivalent to int.
7122 *-*-sunos* | *-*-ultrix*)
7123 TARGET_GETGROUPS_T=int
7124 ;;
7125 *)
7126 TARGET_GETGROUPS_T=gid_t
7127 ;;
7128 esac
7129 fi
7130
7131
7132 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7133 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7134 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137 if test "$cross_compiling" = yes; then
7138 gcc_cv_func_printf_ptr=no
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 <stdio.h>
7147
7148 int main()
7149 {
7150 char buf[64];
7151 char *p = buf, *q = NULL;
7152 sprintf(buf, "%p", p);
7153 sscanf(buf, "%p", &q);
7154 return (p != q);
7155 }
7156 _ACEOF
7157 rm -f conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 (eval $ac_try) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7168 gcc_cv_func_printf_ptr=yes
7169 else
7170 echo "$as_me: program exited with status $ac_status" >&5
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7173
7174 ( exit $ac_status )
7175 gcc_cv_func_printf_ptr=no
7176 fi
7177 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7178 fi
7179 rm -f core core.* *.core
7180 fi
7181 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7182 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7183 if test $gcc_cv_func_printf_ptr = yes ; then
7184
7185 cat >>confdefs.h <<\_ACEOF
7186 #define HAVE_PRINTF_PTR 1
7187 _ACEOF
7188
7189 fi
7190
7191 if test $ac_cv_header_sys_mman_h != yes \
7192 || test $ac_cv_func_mmap != yes; then
7193 gcc_cv_func_mmap_file=no
7194 gcc_cv_func_mmap_dev_zero=no
7195 gcc_cv_func_mmap_anon=no
7196 else
7197 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7198 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7199 if test "${gcc_cv_func_mmap_file+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 # Add a system to this blacklist if
7203 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7204 # memory area containing the same data that you'd get if you applied
7205 # read() to the same fd. The only system known to have a problem here
7206 # is VMS, where text files have record structure.
7207 case "$host_os" in
7208 vms* | ultrix*)
7209 gcc_cv_func_mmap_file=no ;;
7210 *)
7211 gcc_cv_func_mmap_file=yes;;
7212 esac
7213 fi
7214 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7215 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7216 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7217 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7218 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221 # Add a system to this blacklist if it has mmap() but /dev/zero
7222 # does not exist, or if mmapping /dev/zero does not give anonymous
7223 # zeroed pages with both the following properties:
7224 # 1. If you map N consecutive pages in with one call, and then
7225 # unmap any subset of those pages, the pages that were not
7226 # explicitly unmapped remain accessible.
7227 # 2. If you map two adjacent blocks of memory and then unmap them
7228 # both at once, they must both go away.
7229 # Systems known to be in this category are Windows (all variants),
7230 # VMS, and Darwin.
7231 case "$host_os" in
7232 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7233 gcc_cv_func_mmap_dev_zero=no ;;
7234 *)
7235 gcc_cv_func_mmap_dev_zero=yes;;
7236 esac
7237 fi
7238 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7239 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7240
7241 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7242 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7243 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7244 if test "${gcc_cv_decl_map_anon+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <sys/types.h>
7254 #include <sys/mman.h>
7255 #include <unistd.h>
7256
7257 #ifndef MAP_ANONYMOUS
7258 #define MAP_ANONYMOUS MAP_ANON
7259 #endif
7260
7261 int
7262 main ()
7263 {
7264 int n = MAP_ANONYMOUS;
7265 ;
7266 return 0;
7267 }
7268 _ACEOF
7269 rm -f conftest.$ac_objext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7271 (eval $ac_compile) 2>conftest.er1
7272 ac_status=$?
7273 grep -v '^ *+' conftest.er1 >conftest.err
7274 rm -f conftest.er1
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 gcc_cv_decl_map_anon=yes
7291 else
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7294
7295 gcc_cv_decl_map_anon=no
7296 fi
7297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7298 fi
7299 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7300 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7301
7302 if test $gcc_cv_decl_map_anon = no; then
7303 gcc_cv_func_mmap_anon=no
7304 else
7305 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7306 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7307 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7311 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7312 # doesn't give anonymous zeroed pages with the same properties listed
7313 # above for use of /dev/zero.
7314 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7315 case "$host_os" in
7316 vms* | cygwin* | pe | mingw* | sco* | udk* )
7317 gcc_cv_func_mmap_anon=no ;;
7318 *)
7319 gcc_cv_func_mmap_anon=yes;;
7320 esac
7321 fi
7322 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7323 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7324 fi
7325 fi
7326
7327 if test $gcc_cv_func_mmap_file = yes; then
7328
7329 cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_MMAP_FILE 1
7331 _ACEOF
7332
7333 fi
7334 if test $gcc_cv_func_mmap_dev_zero = yes; then
7335
7336 cat >>confdefs.h <<\_ACEOF
7337 #define HAVE_MMAP_DEV_ZERO 1
7338 _ACEOF
7339
7340 fi
7341 if test $gcc_cv_func_mmap_anon = yes; then
7342
7343 cat >>confdefs.h <<\_ACEOF
7344 #define HAVE_MMAP_ANON 1
7345 _ACEOF
7346
7347 fi
7348
7349
7350 case "${host}" in
7351 *-*-*vms*)
7352 # Under VMS, vfork works very differently than on Unix. The standard test
7353 # won't work, and it isn't easily adaptable. It makes more sense to
7354 # just force it.
7355 ac_cv_func_vfork_works=yes
7356 ;;
7357 esac
7358 echo "$as_me:$LINENO: checking for pid_t" >&5
7359 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7360 if test "${ac_cv_type_pid_t+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h. */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 $ac_includes_default
7370 int
7371 main ()
7372 {
7373 if ((pid_t *) 0)
7374 return 0;
7375 if (sizeof (pid_t))
7376 return 0;
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383 (eval $ac_compile) 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 (eval $ac_try) 2>&5
7393 ac_status=$?
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; } &&
7396 { ac_try='test -s conftest.$ac_objext'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 (eval $ac_try) 2>&5
7399 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; }; then
7402 ac_cv_type_pid_t=yes
7403 else
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7406
7407 ac_cv_type_pid_t=no
7408 fi
7409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7410 fi
7411 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7412 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7413 if test $ac_cv_type_pid_t = yes; then
7414 :
7415 else
7416
7417 cat >>confdefs.h <<_ACEOF
7418 #define pid_t int
7419 _ACEOF
7420
7421 fi
7422
7423
7424
7425 for ac_header in unistd.h vfork.h
7426 do
7427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7428 echo "$as_me:$LINENO: checking for $ac_header" >&5
7429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h. */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 #include <$ac_header>
7440 _ACEOF
7441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7443 ac_status=$?
7444 grep -v '^ *+' conftest.er1 >conftest.err
7445 rm -f conftest.er1
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } >/dev/null; then
7449 if test -s conftest.err; then
7450 ac_cpp_err=$ac_c_preproc_warn_flag
7451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7452 else
7453 ac_cpp_err=
7454 fi
7455 else
7456 ac_cpp_err=yes
7457 fi
7458 if test -z "$ac_cpp_err"; then
7459 eval "$as_ac_Header=yes"
7460 else
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7463
7464 eval "$as_ac_Header=no"
7465 fi
7466 rm -f conftest.err conftest.$ac_ext
7467 fi
7468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7471 cat >>confdefs.h <<_ACEOF
7472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7473 _ACEOF
7474
7475 fi
7476 done
7477
7478
7479
7480 for ac_func in fork vfork
7481 do
7482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7483 echo "$as_me:$LINENO: checking for $ac_func" >&5
7484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7485 if eval "test \"\${$as_ac_var+set}\" = set"; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7496 #define $ac_func innocuous_$ac_func
7497
7498 /* System header to define __stub macros and hopefully few prototypes,
7499 which can conflict with char $ac_func (); below.
7500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7501 <limits.h> exists even on freestanding compilers. */
7502
7503 #ifdef __STDC__
7504 # include <limits.h>
7505 #else
7506 # include <assert.h>
7507 #endif
7508
7509 #undef $ac_func
7510
7511 /* Override any gcc2 internal prototype to avoid an error. */
7512 #ifdef __cplusplus
7513 extern "C"
7514 {
7515 #endif
7516 /* We use char because int might match the return type of a gcc2
7517 builtin and then its argument prototype would still apply. */
7518 char $ac_func ();
7519 /* The GNU C library defines this for functions which it implements
7520 to always fail with ENOSYS. Some functions are actually named
7521 something starting with __ and the normal name is an alias. */
7522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7523 choke me
7524 #else
7525 char (*f) () = $ac_func;
7526 #endif
7527 #ifdef __cplusplus
7528 }
7529 #endif
7530
7531 int
7532 main ()
7533 {
7534 return f != $ac_func;
7535 ;
7536 return 0;
7537 }
7538 _ACEOF
7539 rm -f conftest.$ac_objext conftest$ac_exeext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541 (eval $ac_link) 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } &&
7548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest$ac_exeext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 eval "$as_ac_var=yes"
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7564
7565 eval "$as_ac_var=no"
7566 fi
7567 rm -f conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7569 fi
7570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7572 if test `eval echo '${'$as_ac_var'}'` = yes; then
7573 cat >>confdefs.h <<_ACEOF
7574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7575 _ACEOF
7576
7577 fi
7578 done
7579
7580 if test "x$ac_cv_func_fork" = xyes; then
7581 echo "$as_me:$LINENO: checking for working fork" >&5
7582 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7583 if test "${ac_cv_func_fork_works+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586 if test "$cross_compiling" = yes; then
7587 ac_cv_func_fork_works=cross
7588 else
7589 cat >conftest.$ac_ext <<_ACEOF
7590 /* By Ruediger Kuhlmann. */
7591 #include <sys/types.h>
7592 #if HAVE_UNISTD_H
7593 # include <unistd.h>
7594 #endif
7595 /* Some systems only have a dummy stub for fork() */
7596 int main ()
7597 {
7598 if (fork() < 0)
7599 exit (1);
7600 exit (0);
7601 }
7602 _ACEOF
7603 rm -f conftest$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 ac_cv_func_fork_works=yes
7615 else
7616 echo "$as_me: program exited with status $ac_status" >&5
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7619
7620 ( exit $ac_status )
7621 ac_cv_func_fork_works=no
7622 fi
7623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7624 fi
7625 fi
7626 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7627 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7628
7629 else
7630 ac_cv_func_fork_works=$ac_cv_func_fork
7631 fi
7632 if test "x$ac_cv_func_fork_works" = xcross; then
7633 case $host in
7634 *-*-amigaos* | *-*-msdosdjgpp*)
7635 # Override, as these systems have only a dummy fork() stub
7636 ac_cv_func_fork_works=no
7637 ;;
7638 *)
7639 ac_cv_func_fork_works=yes
7640 ;;
7641 esac
7642 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7643 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7644 fi
7645 ac_cv_func_vfork_works=$ac_cv_func_vfork
7646 if test "x$ac_cv_func_vfork" = xyes; then
7647 echo "$as_me:$LINENO: checking for working vfork" >&5
7648 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7649 if test "${ac_cv_func_vfork_works+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 if test "$cross_compiling" = yes; then
7653 ac_cv_func_vfork_works=cross
7654 else
7655 cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h. */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 /* Thanks to Paul Eggert for this test. */
7662 #include <stdio.h>
7663 #include <stdlib.h>
7664 #include <sys/types.h>
7665 #include <sys/stat.h>
7666 #include <sys/wait.h>
7667 #if HAVE_UNISTD_H
7668 # include <unistd.h>
7669 #endif
7670 #if HAVE_VFORK_H
7671 # include <vfork.h>
7672 #endif
7673 /* On some sparc systems, changes by the child to local and incoming
7674 argument registers are propagated back to the parent. The compiler
7675 is told about this with #include <vfork.h>, but some compilers
7676 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7677 static variable whose address is put into a register that is
7678 clobbered by the vfork. */
7679 static void
7680 #ifdef __cplusplus
7681 sparc_address_test (int arg)
7682 # else
7683 sparc_address_test (arg) int arg;
7684 #endif
7685 {
7686 static pid_t child;
7687 if (!child) {
7688 child = vfork ();
7689 if (child < 0) {
7690 perror ("vfork");
7691 _exit(2);
7692 }
7693 if (!child) {
7694 arg = getpid();
7695 write(-1, "", 0);
7696 _exit (arg);
7697 }
7698 }
7699 }
7700
7701 int
7702 main ()
7703 {
7704 pid_t parent = getpid ();
7705 pid_t child;
7706
7707 sparc_address_test (0);
7708
7709 child = vfork ();
7710
7711 if (child == 0) {
7712 /* Here is another test for sparc vfork register problems. This
7713 test uses lots of local variables, at least as many local
7714 variables as main has allocated so far including compiler
7715 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7716 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7717 reuse the register of parent for one of the local variables,
7718 since it will think that parent can't possibly be used any more
7719 in this routine. Assigning to the local variable will thus
7720 munge parent in the parent process. */
7721 pid_t
7722 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7723 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7724 /* Convince the compiler that p..p7 are live; otherwise, it might
7725 use the same hardware register for all 8 local variables. */
7726 if (p != p1 || p != p2 || p != p3 || p != p4
7727 || p != p5 || p != p6 || p != p7)
7728 _exit(1);
7729
7730 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7731 from child file descriptors. If the child closes a descriptor
7732 before it execs or exits, this munges the parent's descriptor
7733 as well. Test for this by closing stdout in the child. */
7734 _exit(close(fileno(stdout)) != 0);
7735 } else {
7736 int status;
7737 struct stat st;
7738
7739 while (wait(&status) != child)
7740 ;
7741 exit(
7742 /* Was there some problem with vforking? */
7743 child < 0
7744
7745 /* Did the child fail? (This shouldn't happen.) */
7746 || status
7747
7748 /* Did the vfork/compiler bug occur? */
7749 || parent != getpid()
7750
7751 /* Did the file descriptor bug occur? */
7752 || fstat(fileno(stdout), &st) != 0
7753 );
7754 }
7755 }
7756 _ACEOF
7757 rm -f conftest$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_func_vfork_works=yes
7769 else
7770 echo "$as_me: program exited with status $ac_status" >&5
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 ( exit $ac_status )
7775 ac_cv_func_vfork_works=no
7776 fi
7777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7778 fi
7779 fi
7780 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7781 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7782
7783 fi;
7784 if test "x$ac_cv_func_fork_works" = xcross; then
7785 ac_cv_func_vfork_works=$ac_cv_func_vfork
7786 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7787 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7788 fi
7789
7790 if test "x$ac_cv_func_vfork_works" = xyes; then
7791
7792 cat >>confdefs.h <<\_ACEOF
7793 #define HAVE_WORKING_VFORK 1
7794 _ACEOF
7795
7796 else
7797
7798 cat >>confdefs.h <<\_ACEOF
7799 #define vfork fork
7800 _ACEOF
7801
7802 fi
7803 if test "x$ac_cv_func_fork_works" = xyes; then
7804
7805 cat >>confdefs.h <<\_ACEOF
7806 #define HAVE_WORKING_FORK 1
7807 _ACEOF
7808
7809 fi
7810
7811
7812
7813
7814 am_cv_lib_iconv_ldpath=
7815
7816 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7817 if test "${with_libiconv_prefix+set}" = set; then
7818 withval="$with_libiconv_prefix"
7819
7820 for dir in `echo "$withval" | tr : ' '`; do
7821 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7822 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7823 done
7824
7825 fi;
7826
7827
7828 for ac_header in iconv.h
7829 do
7830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7831 echo "$as_me:$LINENO: checking for $ac_header" >&5
7832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h. */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7842 #include <$ac_header>
7843 _ACEOF
7844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } >/dev/null; then
7852 if test -s conftest.err; then
7853 ac_cpp_err=$ac_c_preproc_warn_flag
7854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7855 else
7856 ac_cpp_err=
7857 fi
7858 else
7859 ac_cpp_err=yes
7860 fi
7861 if test -z "$ac_cpp_err"; then
7862 eval "$as_ac_Header=yes"
7863 else
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 eval "$as_ac_Header=no"
7868 fi
7869 rm -f conftest.err conftest.$ac_ext
7870 fi
7871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7874 cat >>confdefs.h <<_ACEOF
7875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7876 _ACEOF
7877
7878 fi
7879 done
7880
7881
7882 echo "$as_me:$LINENO: checking for iconv" >&5
7883 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7884 if test "${am_cv_func_iconv+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887
7888 am_cv_func_iconv="no, consider installing GNU libiconv"
7889 am_cv_lib_iconv=no
7890 cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h. */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 #include <stdlib.h>
7897 #include <iconv.h>
7898 int
7899 main ()
7900 {
7901 iconv_t cd = iconv_open("","");
7902 iconv(cd,NULL,NULL,NULL,NULL);
7903 iconv_close(cd);
7904 ;
7905 return 0;
7906 }
7907 _ACEOF
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910 (eval $ac_link) 2>conftest.er1
7911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929 am_cv_func_iconv=yes
7930 else
7931 echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7933
7934 fi
7935 rm -f conftest.err conftest.$ac_objext \
7936 conftest$ac_exeext conftest.$ac_ext
7937 if test "$am_cv_func_iconv" != yes; then
7938 am_save_LIBS="$LIBS"
7939 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <stdlib.h>
7947 #include <iconv.h>
7948 int
7949 main ()
7950 {
7951 iconv_t cd = iconv_open("","");
7952 iconv(cd,NULL,NULL,NULL,NULL);
7953 iconv_close(cd);
7954 ;
7955 return 0;
7956 }
7957 _ACEOF
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 (eval $ac_try) 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; } &&
7973 { ac_try='test -s conftest$ac_exeext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 am_cv_lib_iconv=yes
7980 am_cv_func_iconv=yes
7981 else
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 fi
7986 rm -f conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7988 LIBS="$am_save_LIBS"
7989 fi
7990
7991 fi
7992 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7993 echo "${ECHO_T}$am_cv_func_iconv" >&6
7994 if test "$am_cv_func_iconv" = yes; then
7995
7996 cat >>confdefs.h <<\_ACEOF
7997 #define HAVE_ICONV 1
7998 _ACEOF
7999
8000 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8001 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8002 if test "${am_cv_proto_iconv+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012
8013 #include <stdlib.h>
8014 #include <iconv.h>
8015 extern
8016 #ifdef __cplusplus
8017 "C"
8018 #endif
8019 #if defined(__STDC__) || defined(__cplusplus)
8020 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8021 #else
8022 size_t iconv();
8023 #endif
8024
8025 int
8026 main ()
8027 {
8028
8029 ;
8030 return 0;
8031 }
8032 _ACEOF
8033 rm -f conftest.$ac_objext
8034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8035 (eval $ac_compile) 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try='test -s conftest.$ac_objext'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 (eval $ac_try) 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8054 am_cv_proto_iconv_arg1=""
8055 else
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8058
8059 am_cv_proto_iconv_arg1="const"
8060 fi
8061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8062 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);"
8063 fi
8064
8065 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8066 echo "$as_me:$LINENO: result: ${ac_t:-
8067 }$am_cv_proto_iconv" >&5
8068 echo "${ECHO_T}${ac_t:-
8069 }$am_cv_proto_iconv" >&6
8070
8071 cat >>confdefs.h <<_ACEOF
8072 #define ICONV_CONST $am_cv_proto_iconv_arg1
8073 _ACEOF
8074
8075 fi
8076 LIBICONV=
8077 if test "$am_cv_lib_iconv" = yes; then
8078 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8079 fi
8080
8081
8082 # Until we have in-tree GNU iconv:
8083 LIBICONV_DEP=
8084
8085
8086
8087 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8088 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8089 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h. */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <locale.h>
8099 int
8100 main ()
8101 {
8102 return LC_MESSAGES
8103 ;
8104 return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8109 (eval $ac_link) 2>conftest.er1
8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest$ac_exeext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 am_cv_val_LC_MESSAGES=yes
8129 else
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 am_cv_val_LC_MESSAGES=no
8134 fi
8135 rm -f conftest.err conftest.$ac_objext \
8136 conftest$ac_exeext conftest.$ac_ext
8137 fi
8138 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8139 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8140 if test $am_cv_val_LC_MESSAGES = yes; then
8141
8142 cat >>confdefs.h <<\_ACEOF
8143 #define HAVE_LC_MESSAGES 1
8144 _ACEOF
8145
8146 fi
8147
8148
8149 # We will need to find libiberty.h and ansidecl.h
8150 saved_CFLAGS="$CFLAGS"
8151 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8152 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8153 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8154 fprintf_unlocked strstr errno snprintf vasprintf \
8155 malloc realloc calloc free basename getopt clock
8156 do
8157 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8158 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8159 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8160 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163 cat >conftest.$ac_ext <<_ACEOF
8164 /* confdefs.h. */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 #undef $ac_tr_decl
8170 #define $ac_tr_decl 1
8171
8172 #include "ansidecl.h"
8173 #include "system.h"
8174
8175 int
8176 main ()
8177 {
8178 #ifndef $ac_func
8179 char *(*pfn) = (char *(*)) $ac_func ;
8180 #endif
8181 ;
8182 return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187 (eval $ac_compile) 2>conftest.er1
8188 ac_status=$?
8189 grep -v '^ *+' conftest.er1 >conftest.err
8190 rm -f conftest.er1
8191 cat conftest.err >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest.$ac_objext'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 (eval $ac_try) 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 eval "gcc_cv_have_decl_$ac_func=yes"
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211 eval "gcc_cv_have_decl_$ac_func=no"
8212 fi
8213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8214 fi
8215
8216 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8217 echo "$as_me:$LINENO: result: yes" >&5
8218 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8219 #define $ac_tr_decl 1
8220 _ACEOF
8221
8222 else
8223 echo "$as_me:$LINENO: result: no" >&5
8224 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8225 #define $ac_tr_decl 0
8226 _ACEOF
8227
8228 fi
8229
8230 done
8231 if test x = y ; then
8232
8233 cat >>confdefs.h <<\_ACEOF
8234 #define HAVE_DECL_GETENV 1
8235 _ACEOF
8236
8237 cat >>confdefs.h <<\_ACEOF
8238 #define HAVE_DECL_ATOL 1
8239 _ACEOF
8240
8241 cat >>confdefs.h <<\_ACEOF
8242 #define HAVE_DECL_SBRK 1
8243 _ACEOF
8244
8245 cat >>confdefs.h <<\_ACEOF
8246 #define HAVE_DECL_ABORT 1
8247 _ACEOF
8248
8249 cat >>confdefs.h <<\_ACEOF
8250 #define HAVE_DECL_ATOF 1
8251 _ACEOF
8252
8253 cat >>confdefs.h <<\_ACEOF
8254 #define HAVE_DECL_GETCWD 1
8255 _ACEOF
8256
8257 cat >>confdefs.h <<\_ACEOF
8258 #define HAVE_DECL_GETWD 1
8259 _ACEOF
8260 \
8261
8262 cat >>confdefs.h <<\_ACEOF
8263 #define HAVE_DECL_STRSIGNAL 1
8264 _ACEOF
8265
8266 cat >>confdefs.h <<\_ACEOF
8267 #define HAVE_DECL_PUTC_UNLOCKED 1
8268 _ACEOF
8269
8270 cat >>confdefs.h <<\_ACEOF
8271 #define HAVE_DECL_FPUTS_UNLOCKED 1
8272 _ACEOF
8273
8274 cat >>confdefs.h <<\_ACEOF
8275 #define HAVE_DECL_FWRITE_UNLOCKED 1
8276 _ACEOF
8277 \
8278
8279 cat >>confdefs.h <<\_ACEOF
8280 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8281 _ACEOF
8282
8283 cat >>confdefs.h <<\_ACEOF
8284 #define HAVE_DECL_STRSTR 1
8285 _ACEOF
8286
8287 cat >>confdefs.h <<\_ACEOF
8288 #define HAVE_DECL_ERRNO 1
8289 _ACEOF
8290
8291 cat >>confdefs.h <<\_ACEOF
8292 #define HAVE_DECL_SNPRINTF 1
8293 _ACEOF
8294
8295 cat >>confdefs.h <<\_ACEOF
8296 #define HAVE_DECL_VASPRINTF 1
8297 _ACEOF
8298 \
8299
8300 cat >>confdefs.h <<\_ACEOF
8301 #define HAVE_DECL_MALLOC 1
8302 _ACEOF
8303
8304 cat >>confdefs.h <<\_ACEOF
8305 #define HAVE_DECL_REALLOC 1
8306 _ACEOF
8307
8308 cat >>confdefs.h <<\_ACEOF
8309 #define HAVE_DECL_CALLOC 1
8310 _ACEOF
8311
8312 cat >>confdefs.h <<\_ACEOF
8313 #define HAVE_DECL_FREE 1
8314 _ACEOF
8315
8316 cat >>confdefs.h <<\_ACEOF
8317 #define HAVE_DECL_BASENAME 1
8318 _ACEOF
8319
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_DECL_GETOPT 1
8322 _ACEOF
8323
8324 cat >>confdefs.h <<\_ACEOF
8325 #define HAVE_DECL_CLOCK 1
8326 _ACEOF
8327 fi
8328
8329
8330 for ac_func in getrlimit setrlimit getrusage
8331 do
8332 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8333 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8334 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8335 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 #undef $ac_tr_decl
8345 #define $ac_tr_decl 1
8346
8347 #include "ansidecl.h"
8348 #include "system.h"
8349 #ifdef HAVE_SYS_RESOURCE_H
8350 #include <sys/resource.h>
8351 #endif
8352
8353
8354 int
8355 main ()
8356 {
8357 #ifndef $ac_func
8358 char *(*pfn) = (char *(*)) $ac_func ;
8359 #endif
8360 ;
8361 return 0;
8362 }
8363 _ACEOF
8364 rm -f conftest.$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>conftest.er1
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 (eval $ac_try) 2>&5
8376 ac_status=$?
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest.$ac_objext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 (eval $ac_try) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 eval "gcc_cv_have_decl_$ac_func=yes"
8386 else
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390 eval "gcc_cv_have_decl_$ac_func=no"
8391 fi
8392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8393 fi
8394
8395 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8396 echo "$as_me:$LINENO: result: yes" >&5
8397 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8398 #define $ac_tr_decl 1
8399 _ACEOF
8400
8401 else
8402 echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8404 #define $ac_tr_decl 0
8405 _ACEOF
8406
8407 fi
8408
8409 done
8410 if test x = y ; then
8411
8412 cat >>confdefs.h <<\_ACEOF
8413 #define HAVE_DECL_GETRLIMIT 1
8414 _ACEOF
8415
8416 cat >>confdefs.h <<\_ACEOF
8417 #define HAVE_DECL_SETRLIMIT 1
8418 _ACEOF
8419
8420 cat >>confdefs.h <<\_ACEOF
8421 #define HAVE_DECL_GETRUSAGE 1
8422 _ACEOF
8423 fi
8424
8425
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432
8433 #include "ansidecl.h"
8434 #include "system.h"
8435 #ifdef HAVE_SYS_RESOURCE_H
8436 #include <sys/resource.h>
8437 #endif
8438
8439 int
8440 main ()
8441 {
8442 rlim_t l = 0;
8443 ;
8444 return 0;
8445 }
8446 _ACEOF
8447 rm -f conftest.$ac_objext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449 (eval $ac_compile) 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest.$ac_objext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 :
8469 else
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473
8474 cat >>confdefs.h <<\_ACEOF
8475 #define rlim_t long
8476 _ACEOF
8477
8478 fi
8479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8480
8481 for ac_func in ldgetname
8482 do
8483 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8484 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8485 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8486 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #undef $ac_tr_decl
8496 #define $ac_tr_decl 1
8497
8498 #include "ansidecl.h"
8499 #include "system.h"
8500 #ifdef HAVE_LDFCN_H
8501 #include <ldfcn.h>
8502 #endif
8503
8504
8505 int
8506 main ()
8507 {
8508 #ifndef $ac_func
8509 char *(*pfn) = (char *(*)) $ac_func ;
8510 #endif
8511 ;
8512 return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest.$ac_objext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 eval "gcc_cv_have_decl_$ac_func=yes"
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 eval "gcc_cv_have_decl_$ac_func=no"
8542 fi
8543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8544 fi
8545
8546 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8547 echo "$as_me:$LINENO: result: yes" >&5
8548 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8549 #define $ac_tr_decl 1
8550 _ACEOF
8551
8552 else
8553 echo "$as_me:$LINENO: result: no" >&5
8554 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8555 #define $ac_tr_decl 0
8556 _ACEOF
8557
8558 fi
8559
8560 done
8561 if test x = y ; then
8562
8563 cat >>confdefs.h <<\_ACEOF
8564 #define HAVE_DECL_LDGETNAME 1
8565 _ACEOF
8566 fi
8567
8568
8569 for ac_func in times
8570 do
8571 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8572 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8573 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8574 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 else
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h. */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 #undef $ac_tr_decl
8584 #define $ac_tr_decl 1
8585
8586 #include "ansidecl.h"
8587 #include "system.h"
8588 #ifdef HAVE_SYS_TIMES_H
8589 #include <sys/times.h>
8590 #endif
8591
8592
8593 int
8594 main ()
8595 {
8596 #ifndef $ac_func
8597 char *(*pfn) = (char *(*)) $ac_func ;
8598 #endif
8599 ;
8600 return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 (eval $ac_try) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try='test -s conftest.$ac_objext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 eval "gcc_cv_have_decl_$ac_func=yes"
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8628
8629 eval "gcc_cv_have_decl_$ac_func=no"
8630 fi
8631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8632 fi
8633
8634 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8635 echo "$as_me:$LINENO: result: yes" >&5
8636 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8637 #define $ac_tr_decl 1
8638 _ACEOF
8639
8640 else
8641 echo "$as_me:$LINENO: result: no" >&5
8642 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8643 #define $ac_tr_decl 0
8644 _ACEOF
8645
8646 fi
8647
8648 done
8649 if test x = y ; then
8650
8651 cat >>confdefs.h <<\_ACEOF
8652 #define HAVE_DECL_TIMES 1
8653 _ACEOF
8654 fi
8655
8656
8657 # More time-related stuff.
8658 echo "$as_me:$LINENO: checking for struct tms" >&5
8659 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8660 if test "${ac_cv_struct_tms+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h. */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670
8671 #include "ansidecl.h"
8672 #include "system.h"
8673 #ifdef HAVE_SYS_TIMES_H
8674 #include <sys/times.h>
8675 #endif
8676
8677 int
8678 main ()
8679 {
8680 struct tms tms;
8681 ;
8682 return 0;
8683 }
8684 _ACEOF
8685 rm -f conftest.$ac_objext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687 (eval $ac_compile) 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest.$ac_objext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_cv_struct_tms=yes
8707 else
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 ac_cv_struct_tms=no
8712 fi
8713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8714 fi
8715 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8716 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8717 if test $ac_cv_struct_tms = yes; then
8718
8719 cat >>confdefs.h <<\_ACEOF
8720 #define HAVE_STRUCT_TMS 1
8721 _ACEOF
8722
8723 fi
8724
8725 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8726 # revisit after autoconf 2.50.
8727 echo "$as_me:$LINENO: checking for clock_t" >&5
8728 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8729 if test "${gcc_cv_type_clock_t+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739
8740 #include "ansidecl.h"
8741 #include "system.h"
8742
8743 int
8744 main ()
8745 {
8746 clock_t x;
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8753 (eval $ac_compile) 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest.$ac_objext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 gcc_cv_type_clock_t=yes
8773 else
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777 gcc_cv_type_clock_t=no
8778 fi
8779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8780 fi
8781 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8782 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8783 if test $gcc_cv_type_clock_t = yes; then
8784
8785 cat >>confdefs.h <<\_ACEOF
8786 #define HAVE_CLOCK_T 1
8787 _ACEOF
8788
8789 fi
8790
8791 echo "$as_me:$LINENO: checking for uchar" >&5
8792 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8793 if test "${gcc_cv_type_uchar+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802
8803 #include "ansidecl.h"
8804 #include "system.h"
8805
8806 int
8807 main ()
8808 {
8809 if ((uchar *)0) return 0;
8810 if (sizeof(uchar)) return 0;
8811 ;
8812 return 0;
8813 }
8814 _ACEOF
8815 rm -f conftest.$ac_objext
8816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8817 (eval $ac_compile) 2>conftest.er1
8818 ac_status=$?
8819 grep -v '^ *+' conftest.er1 >conftest.err
8820 rm -f conftest.er1
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } &&
8824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 (eval $ac_try) 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest.$ac_objext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_type_uchar=yes
8837 else
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841 ac_cv_type_uchar=no
8842 fi
8843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8844 fi
8845 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8846 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8847 if test $ac_cv_type_uchar = yes; then
8848
8849 cat >>confdefs.h <<\_ACEOF
8850 #define HAVE_UCHAR 1
8851 _ACEOF
8852
8853 fi
8854
8855 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8856 CFLAGS="$saved_CFLAGS"
8857
8858 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8859 if test "${enable_initfini_array+set}" = set; then
8860 enableval="$enable_initfini_array"
8861
8862 else
8863
8864 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8865 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8866 if test "${gcc_cv_initfini_array+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869 if test "$cross_compiling" = yes; then
8870 gcc_cv_initfini_array=no
8871 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. */
8878
8879 static int x = -1;
8880 int main (void) { return x; }
8881 int foo (void) { x = 0; }
8882 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8883 _ACEOF
8884 rm -f conftest$ac_exeext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8886 (eval $ac_link) 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 gcc_cv_initfini_array=yes
8896 else
8897 echo "$as_me: program exited with status $ac_status" >&5
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.$ac_ext >&5
8900
8901 ( exit $ac_status )
8902 gcc_cv_initfini_array=no
8903 fi
8904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8905 fi
8906 fi
8907 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8908 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8909 enable_initfini_array=$gcc_cv_initfini_array
8910
8911 fi;
8912 if test $enable_initfini_array = yes; then
8913
8914 cat >>confdefs.h <<\_ACEOF
8915 #define HAVE_INITFINI_ARRAY 1
8916 _ACEOF
8917
8918 fi
8919
8920 # mkdir takes a single argument on some systems.
8921 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8922 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8923 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h. */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8932
8933 #include <sys/types.h>
8934 #ifdef HAVE_SYS_STAT_H
8935 # include <sys/stat.h>
8936 #endif
8937 #ifdef HAVE_UNISTD_H
8938 # include <unistd.h>
8939 #endif
8940 #ifdef HAVE_DIRECT_H
8941 # include <direct.h>
8942 #endif
8943 int
8944 main ()
8945 {
8946 mkdir ("foo", 0);
8947 ;
8948 return 0;
8949 }
8950 _ACEOF
8951 rm -f conftest.$ac_objext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8953 (eval $ac_compile) 2>conftest.er1
8954 ac_status=$?
8955 grep -v '^ *+' conftest.er1 >conftest.err
8956 rm -f conftest.er1
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try='test -s conftest.$ac_objext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 gcc_cv_mkdir_takes_one_arg=no
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 gcc_cv_mkdir_takes_one_arg=yes
8978 fi
8979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8980 fi
8981 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8982 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8983 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8984
8985 cat >>confdefs.h <<\_ACEOF
8986 #define MKDIR_TAKES_ONE_ARG 1
8987 _ACEOF
8988
8989 fi
8990
8991
8992 # File extensions
8993 manext='.1'
8994 objext='.o'
8995
8996
8997
8998 # With Setjmp/Longjmp based exception handling.
8999 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9000 if test "${enable_sjlj_exceptions+set}" = set; then
9001 enableval="$enable_sjlj_exceptions"
9002 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9003
9004 cat >>confdefs.h <<_ACEOF
9005 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9006 _ACEOF
9007
9008 fi;
9009
9010 if test x$host = x$target; then
9011 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9012 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9013 if test "${ac_cv_lib_unwind_main+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016 ac_check_lib_save_LIBS=$LIBS
9017 LIBS="-lunwind $LIBS"
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. */
9024
9025
9026 int
9027 main ()
9028 {
9029 main ();
9030 ;
9031 return 0;
9032 }
9033 _ACEOF
9034 rm -f conftest.$ac_objext conftest$ac_exeext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036 (eval $ac_link) 2>conftest.er1
9037 ac_status=$?
9038 grep -v '^ *+' conftest.er1 >conftest.err
9039 rm -f conftest.er1
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 (eval $ac_try) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; } &&
9049 { ac_try='test -s conftest$ac_exeext'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 (eval $ac_try) 2>&5
9052 ac_status=$?
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
9055 ac_cv_lib_unwind_main=yes
9056 else
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9059
9060 ac_cv_lib_unwind_main=no
9061 fi
9062 rm -f conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 LIBS=$ac_check_lib_save_LIBS
9065 fi
9066 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9067 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9068 if test $ac_cv_lib_unwind_main = yes; then
9069 use_libunwind_default=yes
9070 else
9071 use_libunwind_default=no
9072 fi
9073
9074 else
9075 use_libunwind_default=no
9076 fi
9077 # Use libunwind based exception handling.
9078 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9079 if test "${enable_libunwind_exceptions+set}" = set; then
9080 enableval="$enable_libunwind_exceptions"
9081 use_libunwind_exceptions=$enableval
9082 else
9083 use_libunwind_exceptions=$use_libunwind_default
9084 fi;
9085 if test x"$use_libunwind_exceptions" = xyes; then
9086
9087 cat >>confdefs.h <<\_ACEOF
9088 #define USE_LIBUNWIND_EXCEPTIONS 1
9089 _ACEOF
9090
9091 fi
9092
9093 # --------------------------------------------------------
9094 # Build, host, and target specific configuration fragments
9095 # --------------------------------------------------------
9096
9097 # Collect build-machine-specific information.
9098 . ${srcdir}/config.build
9099
9100 # Collect host-machine-specific information.
9101 . ${srcdir}/config.host
9102
9103 target_gtfiles=
9104
9105 # Collect target-machine-specific information.
9106 . ${srcdir}/config.gcc
9107
9108 extra_objs="${host_extra_objs} ${extra_objs}"
9109 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9110
9111 # Default the target-machine variables that were not explicitly set.
9112 if test x"$tm_file" = x
9113 then tm_file=$cpu_type/$cpu_type.h; fi
9114
9115 if test x"$extra_headers" = x
9116 then extra_headers=; fi
9117
9118 if test x$md_file = x
9119 then md_file=$cpu_type/$cpu_type.md; fi
9120
9121 if test x$out_file = x
9122 then out_file=$cpu_type/$cpu_type.c; fi
9123
9124 if test x"$tmake_file" = x
9125 then tmake_file=$cpu_type/t-$cpu_type
9126 fi
9127
9128 if test x"$dwarf2" = xyes
9129 then tm_file="$tm_file tm-dwarf2.h"
9130 fi
9131
9132 # Say what files are being used for the output code and MD file.
9133 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9134 echo "Using \`$srcdir/config/$md_file' as machine description file."
9135
9136 # If any of the xm_file variables contain nonexistent files, warn
9137 # about them and drop them.
9138
9139 bx=
9140 for x in $build_xm_file; do
9141 if test -f $srcdir/config/$x
9142 then bx="$bx $x"
9143 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9144 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9145 fi
9146 done
9147 build_xm_file="$bx"
9148
9149 hx=
9150 for x in $host_xm_file; do
9151 if test -f $srcdir/config/$x
9152 then hx="$hx $x"
9153 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9154 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9155 fi
9156 done
9157 host_xm_file="$hx"
9158
9159 tx=
9160 for x in $xm_file; do
9161 if test -f $srcdir/config/$x
9162 then tx="$tx $x"
9163 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9164 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9165 fi
9166 done
9167 xm_file="$tx"
9168
9169 count=a
9170 for f in $tm_file; do
9171 count=${count}x
9172 done
9173 if test $count = ax; then
9174 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9175 else
9176 echo "Using the following target machine macro files:"
9177 for f in $tm_file; do
9178 echo " $srcdir/config/$f"
9179 done
9180 fi
9181
9182 if test x$need_64bit_hwint = xyes; then
9183
9184 cat >>confdefs.h <<\_ACEOF
9185 #define NEED_64BIT_HOST_WIDE_INT 1
9186 _ACEOF
9187
9188 fi
9189
9190 count=a
9191 for f in $host_xm_file; do
9192 count=${count}x
9193 done
9194 if test $count = a; then
9195 :
9196 elif test $count = ax; then
9197 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9198 else
9199 echo "Using the following host machine macro files:"
9200 for f in $host_xm_file; do
9201 echo " $srcdir/config/$f"
9202 done
9203 fi
9204 echo "Using ${out_host_hook_obj} for host machine hooks."
9205
9206 if test "$host_xm_file" != "$build_xm_file"; then
9207 count=a
9208 for f in $build_xm_file; do
9209 count=${count}x
9210 done
9211 if test $count = a; then
9212 :
9213 elif test $count = ax; then
9214 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9215 else
9216 echo "Using the following build machine macro files:"
9217 for f in $build_xm_file; do
9218 echo " $srcdir/config/$f"
9219 done
9220 fi
9221 fi
9222
9223 # ---------
9224 # Threading
9225 # ---------
9226
9227 # Check if a valid thread package
9228 case ${enable_threads_flag} in
9229 "" | no)
9230 # No threads
9231 target_thread_file='single'
9232 ;;
9233 yes)
9234 # default
9235 target_thread_file='single'
9236 ;;
9237 aix | dce | gnat | irix | posix | rtems | \
9238 single | solaris | vxworks | win32 )
9239 target_thread_file=${enable_threads_flag}
9240 ;;
9241 *)
9242 echo "${enable_threads_flag} is an unknown thread package" 1>&2
9243 exit 1
9244 ;;
9245 esac
9246
9247 if test x${thread_file} = x; then
9248 # No thread file set by target-specific clauses in config.gcc,
9249 # so use file chosen by default logic above
9250 thread_file=${target_thread_file}
9251 fi
9252
9253 # Make gthr-default.h if we have a thread file.
9254 gthread_flags=
9255 if test $thread_file != single; then
9256 rm -f gthr-default.h
9257 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9258 gthread_flags=-DHAVE_GTHR_DEFAULT
9259 fi
9260
9261
9262 # --------
9263 # UNSORTED
9264 # --------
9265
9266 if test x$enable___cxa_atexit = xyes || \
9267 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9268 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9269 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9270 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9281 #define __cxa_atexit innocuous___cxa_atexit
9282
9283 /* System header to define __stub macros and hopefully few prototypes,
9284 which can conflict with char __cxa_atexit (); below.
9285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286 <limits.h> exists even on freestanding compilers. */
9287
9288 #ifdef __STDC__
9289 # include <limits.h>
9290 #else
9291 # include <assert.h>
9292 #endif
9293
9294 #undef __cxa_atexit
9295
9296 /* Override any gcc2 internal prototype to avoid an error. */
9297 #ifdef __cplusplus
9298 extern "C"
9299 {
9300 #endif
9301 /* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9303 char __cxa_atexit ();
9304 /* The GNU C library defines this for functions which it implements
9305 to always fail with ENOSYS. Some functions are actually named
9306 something starting with __ and the normal name is an alias. */
9307 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9308 choke me
9309 #else
9310 char (*f) () = __cxa_atexit;
9311 #endif
9312 #ifdef __cplusplus
9313 }
9314 #endif
9315
9316 int
9317 main ()
9318 {
9319 return f != __cxa_atexit;
9320 ;
9321 return 0;
9322 }
9323 _ACEOF
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326 (eval $ac_link) 2>conftest.er1
9327 ac_status=$?
9328 grep -v '^ *+' conftest.er1 >conftest.err
9329 rm -f conftest.er1
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try='test -s conftest$ac_exeext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_cv_func___cxa_atexit=yes
9346 else
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 ac_cv_func___cxa_atexit=no
9351 fi
9352 rm -f conftest.err conftest.$ac_objext \
9353 conftest$ac_exeext conftest.$ac_ext
9354 fi
9355 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9356 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9357 if test $ac_cv_func___cxa_atexit = yes; then
9358
9359 cat >>confdefs.h <<\_ACEOF
9360 #define DEFAULT_USE_CXA_ATEXIT 1
9361 _ACEOF
9362
9363 else
9364 echo "__cxa_atexit can't be enabled on this target"
9365 fi
9366
9367 fi
9368
9369 # Look for a file containing extra machine modes.
9370 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9371 extra_modes_file='$(srcdir)'/config/${extra_modes}
9372
9373
9374 cat >>confdefs.h <<_ACEOF
9375 #define EXTRA_MODES_FILE "config/$extra_modes"
9376 _ACEOF
9377
9378 fi
9379
9380 # auto-host.h is the file containing items generated by autoconf and is
9381 # the first file included by config.h.
9382 # If host=build, it is correct to have bconfig include auto-host.h
9383 # as well. If host!=build, we are in error and need to do more
9384 # work to find out the build config parameters.
9385 if test x$host = x$build
9386 then
9387 build_auto=auto-host.h
9388 FORBUILD=..
9389 else
9390 # We create a subdir, then run autoconf in the subdir.
9391 # To prevent recursion we set host and build for the new
9392 # invocation of configure to the build for this invocation
9393 # of configure.
9394 tempdir=build.$$
9395 rm -rf $tempdir
9396 mkdir $tempdir
9397 cd $tempdir
9398 case ${srcdir} in
9399 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9400 *) realsrcdir=../${srcdir};;
9401 esac
9402 saved_CFLAGS="${CFLAGS}"
9403 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9404 ${realsrcdir}/configure \
9405 --enable-languages=${enable_languages-all} \
9406 --target=$target_alias --host=$build_alias --build=$build_alias
9407 CFLAGS="${saved_CFLAGS}"
9408
9409 # We just finished tests for the build machine, so rename
9410 # the file auto-build.h in the gcc directory.
9411 mv auto-host.h ../auto-build.h
9412 cd ..
9413 rm -rf $tempdir
9414 build_auto=auto-build.h
9415 FORBUILD=../${build_subdir}
9416 fi
9417
9418
9419 tm_file="${tm_file} defaults.h"
9420 tm_p_file="${tm_p_file} tm-preds.h"
9421 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9422 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9423 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9424 # put this back in temporarily.
9425 xm_file="ansidecl.h ${xm_file}"
9426
9427 # --------
9428 # UNSORTED
9429 # --------
9430
9431 # Get the version trigger filename from the toplevel
9432 if test "${with_gcc_version_trigger+set}" = set; then
9433 gcc_version_trigger=$with_gcc_version_trigger
9434 else
9435 gcc_version_trigger=${srcdir}/version.c
9436 fi
9437 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9438 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9439
9440 # Compile in configure arguments.
9441 if test -f configargs.h ; then
9442 # Being re-configured.
9443 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9444 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9445 else
9446 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9447 fi
9448
9449 # Double all backslashes and backslash all quotes to turn
9450 # gcc_config_arguments into a C string.
9451 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9452 $gcc_config_arguments
9453 EOF
9454 gcc_config_arguments_str=`cat conftest.out`
9455 rm -f conftest.out
9456
9457 cat > configargs.h <<EOF
9458 /* Generated automatically. */
9459 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9460 static const char thread_model[] = "$thread_file";
9461
9462 static const struct {
9463 const char *name, *value;
9464 } configure_default_options[] = $configure_default_options;
9465 EOF
9466
9467 # Internationalization
9468 PACKAGE=gcc
9469 VERSION="$gcc_version"
9470
9471
9472
9473 # If we haven't got the data from the intl directory,
9474 # assume NLS is disabled.
9475 USE_NLS=no
9476 LIBINTL=
9477 LIBINTL_DEP=
9478 INCINTL=
9479 XGETTEXT=
9480 GMSGFMT=
9481 POSUB=
9482 if test -f ../intl/config.intl; then
9483 . ../intl/config.intl
9484 fi
9485 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9486 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9487 if test x"$USE_NLS" != xyes; then
9488 echo "$as_me:$LINENO: result: no" >&5
9489 echo "${ECHO_T}no" >&6
9490 else
9491 echo "$as_me:$LINENO: result: yes" >&5
9492 echo "${ECHO_T}yes" >&6
9493
9494 cat >>confdefs.h <<\_ACEOF
9495 #define ENABLE_NLS 1
9496 _ACEOF
9497
9498
9499 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9500 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9501 # Look for .po and .gmo files in the source directory.
9502 CATALOGS=
9503 XLINGUAS=
9504 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9505 # If there aren't any .gmo files the shell will give us the
9506 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9507 # weeded out.
9508 case "$cat" in *\**)
9509 continue;;
9510 esac
9511 # The quadruple backslash is collapsed to a double backslash
9512 # by the backticks, then collapsed again by the double quotes,
9513 # leaving us with one backslash in the sed expression (right
9514 # before the dot that mustn't act as a wildcard).
9515 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9516 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9517 # The user is allowed to set LINGUAS to a list of languages to
9518 # install catalogs for. If it's empty that means "all of them."
9519 if test "x$LINGUAS" = x; then
9520 CATALOGS="$CATALOGS $cat"
9521 XLINGUAS="$XLINGUAS $lang"
9522 else
9523 case "$LINGUAS" in *$lang*)
9524 CATALOGS="$CATALOGS $cat"
9525 XLINGUAS="$XLINGUAS $lang"
9526 ;;
9527 esac
9528 fi
9529 done
9530 LINGUAS="$XLINGUAS"
9531 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9532 echo "${ECHO_T}$LINGUAS" >&6
9533 fi
9534
9535 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9536 # -liconv on the link line twice.
9537 case "$LIBINTL" in *$LIBICONV*)
9538 LIBICONV= ;;
9539 esac
9540
9541 # Windows32 Registry support for specifying GCC installation paths.
9542 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9543 if test "${enable_win32_registry+set}" = set; then
9544 enableval="$enable_win32_registry"
9545
9546 fi;
9547 case $host_os in
9548 win32 | pe | cygwin* | mingw32* | uwin*)
9549 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9550 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9551 if test "x$enable_win32_registry" != xno; then
9552
9553 cat >>confdefs.h <<\_ACEOF
9554 #define ENABLE_WIN32_REGISTRY 1
9555 _ACEOF
9556
9557 echo "$as_me:$LINENO: result: yes" >&5
9558 echo "${ECHO_T}yes" >&6
9559 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9560 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9561 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564 ac_func_search_save_LIBS=$LIBS
9565 ac_cv_search_RegOpenKeyExA=no
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572
9573 /* Override any gcc2 internal prototype to avoid an error. */
9574 #ifdef __cplusplus
9575 extern "C"
9576 #endif
9577 /* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9579 char RegOpenKeyExA ();
9580 int
9581 main ()
9582 {
9583 RegOpenKeyExA ();
9584 ;
9585 return 0;
9586 }
9587 _ACEOF
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>conftest.er1
9591 ac_status=$?
9592 grep -v '^ *+' conftest.er1 >conftest.err
9593 rm -f conftest.er1
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 (eval $ac_try) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; } &&
9603 { ac_try='test -s conftest$ac_exeext'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
9609 ac_cv_search_RegOpenKeyExA="none required"
9610 else
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9613
9614 fi
9615 rm -f conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9617 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9618 for ac_lib in advapi32; do
9619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9620 cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h. */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626
9627 /* Override any gcc2 internal prototype to avoid an error. */
9628 #ifdef __cplusplus
9629 extern "C"
9630 #endif
9631 /* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9633 char RegOpenKeyExA ();
9634 int
9635 main ()
9636 {
9637 RegOpenKeyExA ();
9638 ;
9639 return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>conftest.er1
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 (eval $ac_try) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try='test -s conftest$ac_exeext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 (eval $ac_try) 2>&5
9660 ac_status=$?
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9664 break
9665 else
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 fi
9670 rm -f conftest.err conftest.$ac_objext \
9671 conftest$ac_exeext conftest.$ac_ext
9672 done
9673 fi
9674 LIBS=$ac_func_search_save_LIBS
9675 fi
9676 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9677 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9678 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9679 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9680
9681 fi
9682
9683 else
9684 echo "$as_me:$LINENO: result: no" >&5
9685 echo "${ECHO_T}no" >&6
9686 fi
9687
9688 # Check if user specified a different registry key.
9689 case "x${enable_win32_registry}" in
9690 x | xyes)
9691 # default.
9692 gcc_cv_win32_registry_key="$VERSION"
9693 ;;
9694 xno)
9695 # no registry lookup.
9696 gcc_cv_win32_registry_key=''
9697 ;;
9698 *)
9699 # user-specified key.
9700 gcc_cv_win32_registry_key="$enable_win32_registry"
9701 ;;
9702 esac
9703
9704 if test "x$enable_win32_registry" != xno; then
9705 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9706 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9707
9708 cat >>confdefs.h <<_ACEOF
9709 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9710 _ACEOF
9711
9712 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9713 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9714 fi
9715 ;;
9716 esac
9717
9718 # Get an absolute path to the GCC top-level source directory
9719 holddir=`${PWDCMD-pwd}`
9720 cd $srcdir
9721 topdir=`${PWDCMD-pwd}`
9722 cd $holddir
9723
9724 # Conditionalize the makefile for this host machine.
9725 xmake_file=
9726 for f in ${host_xmake_file}
9727 do
9728 if test -f ${srcdir}/config/$f
9729 then
9730 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9731 fi
9732 done
9733
9734 # Conditionalize the makefile for this target machine.
9735 tmake_file_=
9736 for f in ${tmake_file}
9737 do
9738 if test -f ${srcdir}/config/$f
9739 then
9740 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9741 fi
9742 done
9743 tmake_file="${tmake_file_}"
9744
9745 symbolic_link='ln -s'
9746
9747 # If the host doesn't support symlinks, modify CC in
9748 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9749 # Otherwise, we can use "CC=$(CC)".
9750 rm -f symtest.tem
9751 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9752 then
9753 cc_set_by_configure="\$(CC)"
9754 quoted_cc_set_by_configure="\$(CC)"
9755 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9756 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9757 else
9758 rm -f symtest.tem
9759 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9760 then
9761 symbolic_link="cp -p"
9762 else
9763 symbolic_link="cp"
9764 fi
9765 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9766 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9767 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9768 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9769 fi
9770 rm -f symtest.tem
9771
9772 out_object_file=`basename $out_file .c`.o
9773
9774 tm_file_list=
9775 tm_include_list=
9776 for f in $tm_file; do
9777 case $f in
9778 defaults.h )
9779 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9780 tm_include_list="${tm_include_list} $f"
9781 ;;
9782 * )
9783 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9784 tm_include_list="${tm_include_list} config/$f"
9785 ;;
9786 esac
9787 done
9788
9789 tm_p_file_list=
9790 tm_p_include_list=
9791 for f in $tm_p_file; do
9792 case $f in
9793 tm-preds.h )
9794 tm_p_file_list="${tm_p_file_list} $f"
9795 tm_p_include_list="${tm_p_include_list} $f"
9796 ;;
9797 * )
9798 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9799 tm_p_include_list="${tm_p_include_list} config/$f"
9800 esac
9801 done
9802
9803 xm_file_list=
9804 xm_include_list=
9805 for f in $xm_file; do
9806 case $f in
9807 ansidecl.h )
9808 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9809 xm_include_list="${xm_include_list} $f"
9810 ;;
9811 auto-host.h )
9812 xm_file_list="${xm_file_list} $f"
9813 xm_include_list="${xm_include_list} $f"
9814 ;;
9815 * )
9816 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9817 xm_include_list="${xm_include_list} config/$f"
9818 ;;
9819 esac
9820 done
9821
9822 host_xm_file_list=
9823 host_xm_include_list=
9824 for f in $host_xm_file; do
9825 case $f in
9826 ansidecl.h )
9827 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9828 host_xm_include_list="${host_xm_include_list} $f"
9829 ;;
9830 auto-host.h )
9831 host_xm_file_list="${host_xm_file_list} $f"
9832 host_xm_include_list="${host_xm_include_list} $f"
9833 ;;
9834 * )
9835 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9836 host_xm_include_list="${host_xm_include_list} config/$f"
9837 ;;
9838 esac
9839 done
9840
9841 build_xm_file_list=
9842 for f in $build_xm_file; do
9843 case $f in
9844 ansidecl.h )
9845 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9846 build_xm_include_list="${build_xm_include_list} $f"
9847 ;;
9848 auto-build.h | auto-host.h )
9849 build_xm_file_list="${build_xm_file_list} $f"
9850 build_xm_include_list="${build_xm_include_list} $f"
9851 ;;
9852 * )
9853 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9854 build_xm_include_list="${build_xm_include_list} config/$f"
9855 ;;
9856 esac
9857 done
9858
9859 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9860 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9861 CROSS=
9862 ALL=all.internal
9863 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9864 if test x$host != x$target
9865 then
9866 CROSS="-DCROSS_COMPILE"
9867 ALL=all.cross
9868 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9869 case "$host","$target" in
9870 # Darwin crosses can use the host system's libraries and headers,
9871 # because of the fat library support. Of course, it must be the
9872 # same version of Darwin on both sides. Allow the user to
9873 # just say --target=foo-darwin without a version number to mean
9874 # "the version on this system".
9875 *-*-darwin*,*-*-darwin*)
9876 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9877 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9878 if test $hostos = $targetos -o $targetos = darwin ; then
9879 CROSS=
9880 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9881 with_headers=yes
9882 fi
9883 ;;
9884
9885 i?86-*-*,x86_64-*-* \
9886 | powerpc*-*-*,powerpc64*-*-*)
9887 CROSS="$CROSS -DNATIVE_CROSS" ;;
9888 esac
9889 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9890 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9891 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9892 fi
9893
9894 # If this is a cross-compiler that does not
9895 # have its own set of headers then define
9896 # inhibit_libc
9897
9898 # If this is using newlib, without having the headers available now,
9899 # then define inhibit_libc in LIBGCC2_CFLAGS.
9900 # This prevents libgcc2 from containing any code which requires libc
9901 # support.
9902 inhibit_libc=
9903 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9904 test x$with_newlib = xyes ; } &&
9905 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9906 inhibit_libc=-Dinhibit_libc
9907 fi
9908
9909
9910 # When building gcc with a cross-compiler, we need to adjust things so
9911 # that the generator programs are still built with the native compiler.
9912 # Also, we cannot run fixincludes or fix-header.
9913
9914 # These are the normal (build=host) settings:
9915 BUILD_PREFIX=
9916 BUILD_PREFIX_1=ignore-
9917 CC_FOR_BUILD='$(CC)'
9918 BUILD_CFLAGS='$(ALL_CFLAGS)'
9919
9920 STMP_FIXINC=stmp-fixinc
9921
9922 # Possibly disable fixproto, on a per-target basis.
9923 case ${use_fixproto} in
9924 no)
9925 STMP_FIXPROTO=
9926 ;;
9927 yes)
9928 STMP_FIXPROTO=stmp-fixproto
9929 ;;
9930 esac
9931
9932
9933 # And these apply if build != host, or we are generating coverage data
9934 if test x$build != x$host || test "x$coverage_flags" != x
9935 then
9936 BUILD_PREFIX=build-
9937 BUILD_PREFIX_1=build-
9938 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9939
9940 if test "x$TARGET_SYSTEM_ROOT" = x; then
9941 STMP_FIXINC=
9942 STMP_FIXPROTO=
9943 fi
9944 fi
9945
9946 # Expand extra_headers to include complete path.
9947 # This substitutes for lots of t-* files.
9948 extra_headers_list=
9949 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9950 for file in ${extra_headers} ; do
9951 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9952 done
9953
9954 # Add a definition of USE_COLLECT2 if system wants one.
9955 case $use_collect2 in
9956 no) use_collect2= ;;
9957 "") ;;
9958 *)
9959 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9960 xm_defines="${xm_defines} USE_COLLECT2"
9961 ;;
9962 esac
9963
9964 # ---------------------------
9965 # Assembler & linker features
9966 # ---------------------------
9967
9968 # Identify the assembler which will work hand-in-glove with the newly
9969 # built GCC, so that we can examine its features. This is the assembler
9970 # which will be driven by the driver program.
9971 #
9972 # If build != host, and we aren't building gas in-tree, we identify a
9973 # build->target assembler and hope that it will have the same features
9974 # as the host->target assembler we'll be using.
9975 echo "$as_me:$LINENO: checking what assembler to use" >&5
9976 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9977 in_tree_gas=no
9978 gcc_cv_as=
9979 gcc_cv_gas_major_version=
9980 gcc_cv_gas_minor_version=
9981 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9982 if test -x "$DEFAULT_ASSEMBLER"; then
9983 gcc_cv_as="$DEFAULT_ASSEMBLER"
9984 elif test -x "$AS"; then
9985 gcc_cv_as="$AS"
9986 elif test -x as$host_exeext; then
9987 # Build using assembler in the current directory.
9988 gcc_cv_as=./as$host_exeext
9989 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9990 && test -f ../gas/Makefile; then
9991 # Single tree build which includes gas.
9992 in_tree_gas=yes
9993 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9994 for f in $gcc_cv_as_bfd_srcdir/configure \
9995 $gcc_cv_as_gas_srcdir/configure \
9996 $gcc_cv_as_gas_srcdir/configure.in \
9997 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9998 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9999 if test x$gcc_cv_gas_version != x; then
10000 break
10001 fi
10002 done
10003 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10004 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10005 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10006 case $gcc_cv_gas_patch_version in
10007 "") gcc_cv_gas_patch_version="0" ;;
10008 esac
10009 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10010 + $gcc_cv_gas_minor_version \) \* 1000 \
10011 + $gcc_cv_gas_patch_version`
10012
10013 rm -f as$host_exeext
10014 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10015 in_tree_gas_is_elf=no
10016 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10017 || (grep 'obj_format = multi' ../gas/Makefile \
10018 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10019 then
10020 in_tree_gas_is_elf=yes
10021 fi
10022 fi
10023
10024 if test "x$gcc_cv_as" = x; then
10025 # Search the same directories that the installed compiler will
10026 # search. Else we may find the wrong assembler and lose. If we
10027 # do not find a suitable assembler binary, then try the user's
10028 # path.
10029 #
10030 # Also note we have to check MD_EXEC_PREFIX before checking the
10031 # user's path. Unfortunately, there is no good way to get at the
10032 # value of MD_EXEC_PREFIX here. So we do a brute force search
10033 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10034 # to be fixed as part of the make/configure rewrite too.
10035
10036 if test "x$exec_prefix" = xNONE; then
10037 if test "x$prefix" = xNONE; then
10038 test_prefix=/usr/local
10039 else
10040 test_prefix=$prefix
10041 fi
10042 else
10043 test_prefix=$exec_prefix
10044 fi
10045
10046 # If the loop below does not find an assembler, then use whatever
10047 # one we can find in the users's path.
10048 # user's path.
10049 if test "x$program_prefix" != xNONE; then
10050 gcc_cv_as=${program_prefix}as$host_exeext
10051 else
10052 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10053 fi
10054
10055 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10056 $test_prefix/libexec/gcc/$target_noncanonical \
10057 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10058 /usr/lib/gcc/$target_noncanonical \
10059 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10060 $test_prefix/$target_noncanonical/bin"
10061
10062 if test x$host = x$target; then
10063 test_dirs="$test_dirs \
10064 /usr/libexec \
10065 /usr/ccs/gcc \
10066 /usr/ccs/bin \
10067 /udk/usr/ccs/bin \
10068 /bsd43/usr/lib/cmplrs/cc \
10069 /usr/cross64/usr/bin \
10070 /usr/lib/cmplrs/cc \
10071 /sysv/usr/lib/cmplrs/cc \
10072 /svr4/usr/lib/cmplrs/cc \
10073 /usr/bin"
10074 fi
10075
10076 for dir in $test_dirs; do
10077 if test -x $dir/as$host_exeext; then
10078 gcc_cv_as=$dir/as$host_exeext
10079 break;
10080 fi
10081 done
10082 fi
10083 case $in_tree_gas in
10084 yes)
10085 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10086 echo "${ECHO_T}\"newly built gas\"" >&6
10087 ;;
10088 no)
10089 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10090 echo "${ECHO_T}$gcc_cv_as" >&6
10091 ;;
10092 esac
10093
10094 # Identify the linker which will work hand-in-glove with the newly
10095 # built GCC, so that we can examine its features. This is the linker
10096 # which will be driven by the driver program.
10097 #
10098 # If build != host, and we aren't building gas in-tree, we identify a
10099 # build->target linker and hope that it will have the same features
10100 # as the host->target linker we'll be using.
10101 echo "$as_me:$LINENO: checking what linker to use" >&5
10102 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10103 in_tree_ld=no
10104 gcc_cv_ld=
10105 gcc_cv_gld_major_version=
10106 gcc_cv_gld_minor_version=
10107 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10108 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10109 if test -x "$DEFAULT_LINKER"; then
10110 gcc_cv_ld="$DEFAULT_LINKER"
10111 elif test -x "$LD_FOR_TARGET"; then
10112 gcc_cv_ld="$LD_FOR_TARGET"
10113 elif test -x "$LD" && test x$host = x$target; then
10114 gcc_cv_ld="$LD"
10115 elif test -x collect-ld$host_exeext; then
10116 # Build using linker in the current directory.
10117 gcc_cv_ld=./collect-ld$host_exeext
10118 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10119 && test -f ../ld/Makefile; then
10120 # Single tree build which includes ld.
10121 in_tree_ld=yes
10122 in_tree_ld_is_elf=no
10123 if (grep 'EMUL = .*elf' ../ld/Makefile \
10124 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10125 in_tree_ld_is_elf=yes
10126 fi
10127 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
10128 do
10129 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10130 if test x$gcc_cv_gld_version != x; then
10131 break
10132 fi
10133 done
10134 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10135 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10136 rm -f collect-ld$host_exeext
10137 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10138 2>/dev/null
10139 fi
10140
10141 if test "x$gcc_cv_ld" = x; then
10142 # Search the same directories that the installed compiler will
10143 # search. Else we may find the wrong linker and lose. If we
10144 # do not find a suitable linker binary, then try the user's
10145 # path.
10146 #
10147 # Also note we have to check MD_EXEC_PREFIX before checking the
10148 # user's path. Unfortunately, there is no good way to get at the
10149 # value of MD_EXEC_PREFIX here. So we do a brute force search
10150 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10151 # to be fixed as part of the make/configure rewrite too.
10152
10153 if test "x$exec_prefix" = xNONE; then
10154 if test "x$prefix" = xNONE; then
10155 test_prefix=/usr/local
10156 else
10157 test_prefix=$prefix
10158 fi
10159 else
10160 test_prefix=$exec_prefix
10161 fi
10162
10163 # If the loop below does not find an linker, then use whatever
10164 # one we can find in the users's path.
10165 # user's path.
10166 if test "x$program_prefix" != xNONE; then
10167 gcc_cv_ld=${program_prefix}ld$host_exeext
10168 else
10169 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10170 fi
10171
10172 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10173 $test_prefix/libexec/gcc/$target_noncanonical \
10174 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10175 /usr/lib/gcc/$target_noncanonical \
10176 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10177 $test_prefix/$target_noncanonical/bin"
10178
10179 if test x$host = x$target; then
10180 test_dirs="$test_dirs \
10181 /usr/libexec \
10182 /usr/ccs/gcc \
10183 /usr/ccs/bin \
10184 /udk/usr/ccs/bin \
10185 /bsd43/usr/lib/cmplrs/cc \
10186 /usr/cross64/usr/bin \
10187 /usr/lib/cmplrs/cc \
10188 /sysv/usr/lib/cmplrs/cc \
10189 /svr4/usr/lib/cmplrs/cc \
10190 /usr/bin"
10191 fi
10192
10193 for dir in $test_dirs; do
10194 if test -x $dir/ld$host_exeext; then
10195 gcc_cv_ld=$dir/ld$host_exeext
10196 break;
10197 fi
10198 done
10199 fi
10200 case $in_tree_ld in
10201 yes)
10202 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10203 echo "${ECHO_T}\"newly built ld\"" >&6
10204 ;;
10205 no)
10206 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10207 echo "${ECHO_T}$gcc_cv_ld" >&6
10208 ;;
10209 esac
10210
10211 # Figure out what nm we will be using.
10212 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10213 echo "$as_me:$LINENO: checking what nm to use" >&5
10214 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10215 in_tree_nm=no
10216 if test -x nm$host_exeext; then
10217 gcc_cv_nm=./nm$host_exeext
10218 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10219 && test -f ../binutils/Makefile; then
10220 # Single tree build which includes binutils.
10221 in_tree_nm=yes
10222 gcc_cv_nm=./nm$host_exeext
10223 rm -f nm$host_exeext
10224 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10225 elif test "x$program_prefix" != xNONE; then
10226 gcc_cv_nm=${program_prefix}nm$host_exeext
10227 else
10228 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10229 fi
10230 case $in_tree_nm in
10231 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10232 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10233 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10234 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10235 esac
10236
10237 # Figure out what objdump we will be using.
10238 echo "$as_me:$LINENO: checking what objdump to use" >&5
10239 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10240 in_tree_objdump=no
10241 if test -x objdump$host_exeext; then
10242 gcc_cv_objdump=./objdump$host_exeext
10243 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10244 && test -f ../binutils/Makefile; then
10245 # Single tree build which includes binutils.
10246 in_tree_objdump=yes
10247 gcc_cv_objdump=./objdump$host_exeext
10248 rm -f objdump$host_exeext
10249 $symbolic_link ../binutils/objdump$host_exeext \
10250 objdump$host_exeext 2>/dev/null
10251 elif test "x$program_prefix" != xNONE; then
10252 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10253 else
10254 gcc_cv_objdump=`echo objdump | \
10255 sed "${program_transform_name}"`$host_exeext
10256 fi
10257 case $in_tree_objdump in
10258 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10259 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10260 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10261 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10262 esac
10263
10264 # Figure out what assembler alignment features are present.
10265 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10266 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10267 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270 gcc_cv_as_balign_and_p2align=no
10271 if test $in_tree_gas = yes; then
10272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10273 then gcc_cv_as_balign_and_p2align=yes
10274 fi
10275 elif test x$gcc_cv_as != x; then
10276 echo '.balign 4
10277 .p2align 2' > conftest.s
10278 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }
10284 then
10285 gcc_cv_as_balign_and_p2align=yes
10286 else
10287 echo "configure: failed program was" >&5
10288 cat conftest.s >&5
10289 fi
10290 rm -f conftest.o conftest.s
10291 fi
10292 fi
10293 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10294 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10295 if test $gcc_cv_as_balign_and_p2align = yes; then
10296
10297 cat >>confdefs.h <<\_ACEOF
10298 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10299 _ACEOF
10300
10301 fi
10302
10303 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10304 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10305 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308 gcc_cv_as_max_skip_p2align=no
10309 if test $in_tree_gas = yes; then
10310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10311 then gcc_cv_as_max_skip_p2align=yes
10312 fi
10313 elif test x$gcc_cv_as != x; then
10314 echo '.p2align 4,,7' > conftest.s
10315 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }
10321 then
10322 gcc_cv_as_max_skip_p2align=yes
10323 else
10324 echo "configure: failed program was" >&5
10325 cat conftest.s >&5
10326 fi
10327 rm -f conftest.o conftest.s
10328 fi
10329 fi
10330 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10331 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10332 if test $gcc_cv_as_max_skip_p2align = yes; then
10333
10334 cat >>confdefs.h <<\_ACEOF
10335 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10336 _ACEOF
10337
10338 fi
10339
10340 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10341 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10342 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 gcc_cv_as_subsection_m1=no
10346 if test $in_tree_gas = yes; then
10347 if test $in_tree_gas_is_elf = yes \
10348 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10349 then gcc_cv_as_subsection_m1=yes
10350 fi
10351 elif test x$gcc_cv_as != x; then
10352 echo 'conftest_label1: .word 0
10353 .subsection -1
10354 conftest_label2: .word 0
10355 .previous' > conftest.s
10356 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; }
10362 then
10363 if test x$gcc_cv_nm != x; then
10364 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10365 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10366 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10367 then :
10368 else gcc_cv_as_subsection_m1=yes
10369 fi
10370 rm -f conftest.nm1 conftest.nm2
10371 fi
10372 else
10373 echo "configure: failed program was" >&5
10374 cat conftest.s >&5
10375 fi
10376 rm -f conftest.o conftest.s
10377 fi
10378 fi
10379 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10380 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10381 if test $gcc_cv_as_subsection_m1 = yes; then
10382
10383 cat >>confdefs.h <<\_ACEOF
10384 #define HAVE_GAS_SUBSECTION_ORDERING 1
10385 _ACEOF
10386
10387 fi
10388
10389 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10390 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10391 if test "${gcc_cv_as_weak+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 gcc_cv_as_weak=no
10395 if test $in_tree_gas = yes; then
10396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10397 then gcc_cv_as_weak=yes
10398 fi
10399 elif test x$gcc_cv_as != x; then
10400 echo ' .weak foobar' > conftest.s
10401 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }
10407 then
10408 gcc_cv_as_weak=yes
10409 else
10410 echo "configure: failed program was" >&5
10411 cat conftest.s >&5
10412 fi
10413 rm -f conftest.o conftest.s
10414 fi
10415 fi
10416 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10417 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10418 if test $gcc_cv_as_weak = yes; then
10419
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_GAS_WEAK 1
10422 _ACEOF
10423
10424 fi
10425
10426 # .hidden needs to be supported in both the assembler and the linker,
10427 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10428 # This is irritatingly difficult to feature test for; we have to check the
10429 # date string after the version number. If we've got an in-tree
10430 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10431 # to be safe.
10432 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10433 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10434 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10435 if test "${gcc_cv_as_hidden+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438 gcc_cv_as_hidden=no
10439 if test $in_tree_gas = yes; then
10440 if test $in_tree_gas_is_elf = yes \
10441 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10442 then gcc_cv_as_hidden=yes
10443 fi
10444 elif test x$gcc_cv_as != x; then
10445 echo ' .hidden foobar
10446 foobar:' > conftest.s
10447 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }
10453 then
10454 gcc_cv_as_hidden=yes
10455 else
10456 echo "configure: failed program was" >&5
10457 cat conftest.s >&5
10458 fi
10459 rm -f conftest.o conftest.s
10460 fi
10461 fi
10462 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10463 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10464
10465
10466 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10467 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10468 if test "${gcc_cv_ld_hidden+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471 if test $in_tree_ld = yes ; then
10472 gcc_cv_ld_hidden=no
10473 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 \
10474 && test $in_tree_ld_is_elf = yes; then
10475 gcc_cv_ld_hidden=yes
10476 fi
10477 else
10478 gcc_cv_ld_hidden=yes
10479 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10480 if echo "$ld_ver" | grep GNU > /dev/null; then
10481 ld_vers=`echo $ld_ver | sed -n \
10482 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10483 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10484 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10485 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10486 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10487 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10488 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'`
10489 if test 0"$ld_date" -lt 20020404; then
10490 if test -n "$ld_date"; then
10491 # If there was date string, but was earlier than 2002-04-04, fail
10492 gcc_cv_ld_hidden=no
10493 elif test -z "$ld_vers"; then
10494 # If there was no date string nor ld version number, something is wrong
10495 gcc_cv_ld_hidden=no
10496 else
10497 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10498 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10499 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10500 test -z "$ld_vers_patch" && ld_vers_patch=0
10501 if test "$ld_vers_major" -lt 2; then
10502 gcc_cv_ld_hidden=no
10503 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10504 gcc_cv_ld_hidden="no"
10505 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10506 gcc_cv_ld_hidden=no
10507 fi
10508 fi
10509 fi
10510 else
10511 case "${target}" in
10512 hppa64*-*-hpux* | ia64*-*-hpux*)
10513 gcc_cv_ld_hidden=yes
10514 ;;
10515 *)
10516 gcc_cv_ld_hidden=no
10517 ;;
10518 esac
10519 fi
10520 fi
10521 fi
10522 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10523 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10524 libgcc_visibility=no
10525
10526 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10527 libgcc_visibility=yes
10528
10529 cat >>confdefs.h <<\_ACEOF
10530 #define HAVE_GAS_HIDDEN 1
10531 _ACEOF
10532
10533 fi
10534
10535 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10536 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10537 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10538 if test "${gcc_cv_as_leb128+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541 gcc_cv_as_leb128=no
10542 if test $in_tree_gas = yes; then
10543 if test $in_tree_gas_is_elf = yes \
10544 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10545 then gcc_cv_as_leb128=yes
10546 fi
10547 elif test x$gcc_cv_as != x; then
10548 echo ' .data
10549 .uleb128 L2 - L1
10550 L1:
10551 .uleb128 1280
10552 .sleb128 -1010
10553 L2:' > conftest.s
10554 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }
10560 then
10561 # GAS versions before 2.11 do not support uleb128,
10562 # despite appearing to.
10563 # ??? There exists an elf-specific test that will crash
10564 # the assembler. Perhaps it's better to figure out whether
10565 # arbitrary sections are supported and try the test.
10566 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10567 if echo "$as_ver" | grep GNU > /dev/null; then
10568 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10569 as_major=`echo $as_ver | sed 's/\..*//'`
10570 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10571 if test $as_major -eq 2 && test $as_minor -lt 11
10572 then :
10573 else gcc_cv_as_leb128=yes
10574 fi
10575 fi
10576 else
10577 echo "configure: failed program was" >&5
10578 cat conftest.s >&5
10579 fi
10580 rm -f conftest.o conftest.s
10581 fi
10582 fi
10583 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10584 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10585 if test $gcc_cv_as_leb128 = yes; then
10586
10587 cat >>confdefs.h <<\_ACEOF
10588 #define HAVE_AS_LEB128 1
10589 _ACEOF
10590
10591 fi
10592
10593 # GAS versions up to and including 2.11.0 may mis-optimize
10594 # .eh_frame data.
10595 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10596 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10597 if test "${gcc_cv_as_eh_frame+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600 gcc_cv_as_eh_frame=no
10601 if test $in_tree_gas = yes; then
10602 if test $in_tree_gas_is_elf = yes \
10603 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10604 then gcc_cv_as_eh_frame=yes
10605 fi
10606 elif test x$gcc_cv_as != x; then
10607 echo ' .text
10608 .LFB1:
10609 .4byte 0
10610 .L1:
10611 .4byte 0
10612 .LFE1:
10613 .section .eh_frame,"aw",@progbits
10614 __FRAME_BEGIN__:
10615 .4byte .LECIE1-.LSCIE1
10616 .LSCIE1:
10617 .4byte 0x0
10618 .byte 0x1
10619 .ascii "z\0"
10620 .byte 0x1
10621 .byte 0x78
10622 .byte 0x1a
10623 .byte 0x0
10624 .byte 0x4
10625 .4byte 1
10626 .p2align 1
10627 .LECIE1:
10628 .LSFDE1:
10629 .4byte .LEFDE1-.LASFDE1
10630 .LASFDE1:
10631 .4byte .LASFDE1-__FRAME_BEGIN__
10632 .4byte .LFB1
10633 .4byte .LFE1-.LFB1
10634 .byte 0x4
10635 .4byte .LFE1-.LFB1
10636 .byte 0x4
10637 .4byte .L1-.LFB1
10638 .LEFDE1:' > conftest.s
10639 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }
10645 then
10646 cat > conftest.lit <<EOF
10647 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10648 0010 01000000 12000000 18000000 00000000 ................
10649 0020 08000000 04080000 0044 .........D
10650 EOF
10651 cat > conftest.big <<EOF
10652 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10653 0010 00000001 00000012 00000018 00000000 ................
10654 0020 00000008 04000000 0844 .........D
10655 EOF
10656 # If the assembler didn't choke, and we can objdump,
10657 # and we got the correct data, then succeed.
10658 if test x$gcc_cv_objdump != x \
10659 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10660 | tail -3 > conftest.got \
10661 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10662 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10663 then
10664 gcc_cv_as_eh_frame=yes
10665 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 gcc_cv_as_eh_frame=buggy
10672 else
10673 # Uh oh, what do we do now?
10674 gcc_cv_as_eh_frame=no
10675 fi
10676 else
10677 echo "configure: failed program was" >&5
10678 cat conftest.s >&5
10679 fi
10680 rm -f conftest.o conftest.s
10681 fi
10682 fi
10683 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10684 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10685
10686
10687 if test $gcc_cv_as_eh_frame = buggy; then
10688
10689 cat >>confdefs.h <<\_ACEOF
10690 #define USE_AS_TRADITIONAL_FORMAT 1
10691 _ACEOF
10692
10693 fi
10694
10695 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10696 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10697 if test "${gcc_cv_as_shf_merge+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700 gcc_cv_as_shf_merge=no
10701 if test $in_tree_gas = yes; then
10702 if test $in_tree_gas_is_elf = yes \
10703 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10704 then gcc_cv_as_shf_merge=yes
10705 fi
10706 elif test x$gcc_cv_as != x; then
10707 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10708 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }
10714 then
10715 gcc_cv_as_shf_merge=yes
10716 else
10717 echo "configure: failed program was" >&5
10718 cat conftest.s >&5
10719 fi
10720 rm -f conftest.o conftest.s
10721 fi
10722 fi
10723 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10724 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10725
10726
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10729 _ACEOF
10730
10731
10732 # Thread-local storage - the check is heavily parametrized.
10733 conftest_s=
10734 tls_first_major=
10735 tls_first_minor=
10736 tls_as_opt=
10737 case "$target" in
10738 alpha*-*-*)
10739 conftest_s='
10740 .section ".tdata","awT",@progbits
10741 foo: .long 25
10742 .text
10743 ldq $27,__tls_get_addr($29) !literal!1
10744 lda $16,foo($29) !tlsgd!1
10745 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10746 ldq $27,__tls_get_addr($29) !literal!2
10747 lda $16,foo($29) !tlsldm!2
10748 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10749 ldq $1,foo($29) !gotdtprel
10750 ldah $2,foo($29) !dtprelhi
10751 lda $3,foo($2) !dtprello
10752 lda $4,foo($29) !dtprel
10753 ldq $1,foo($29) !gottprel
10754 ldah $2,foo($29) !tprelhi
10755 lda $3,foo($2) !tprello
10756 lda $4,foo($29) !tprel'
10757 tls_first_major=2
10758 tls_first_minor=13
10759 tls_as_opt=--fatal-warnings
10760 ;;
10761 i[34567]86-*-*)
10762 conftest_s='
10763 .section ".tdata","awT",@progbits
10764 foo: .long 25
10765 .text
10766 movl %gs:0, %eax
10767 leal foo@TLSGD(,%ebx,1), %eax
10768 leal foo@TLSLDM(%ebx), %eax
10769 leal foo@DTPOFF(%eax), %edx
10770 movl foo@GOTTPOFF(%ebx), %eax
10771 subl foo@GOTTPOFF(%ebx), %eax
10772 addl foo@GOTNTPOFF(%ebx), %eax
10773 movl foo@INDNTPOFF, %eax
10774 movl $foo@TPOFF, %eax
10775 subl $foo@TPOFF, %eax
10776 leal foo@NTPOFF(%ecx), %eax'
10777 tls_first_major=2
10778 tls_first_minor=14
10779 tls_as_opt=--fatal-warnings
10780 ;;
10781 x86_64-*-*)
10782 conftest_s='
10783 .section ".tdata","awT",@progbits
10784 foo: .long 25
10785 .text
10786 movq %fs:0, %rax
10787 leaq foo@TLSGD(%rip), %rdi
10788 leaq foo@TLSLD(%rip), %rdi
10789 leaq foo@DTPOFF(%rax), %rdx
10790 movq foo@GOTTPOFF(%rip), %rax
10791 movq $foo@TPOFF, %rax'
10792 tls_first_major=2
10793 tls_first_minor=14
10794 tls_as_opt=--fatal-warnings
10795 ;;
10796 ia64-*-*)
10797 conftest_s='
10798 .section ".tdata","awT",@progbits
10799 foo: data8 25
10800 .text
10801 addl r16 = @ltoff(@dtpmod(foo#)), gp
10802 addl r17 = @ltoff(@dtprel(foo#)), gp
10803 addl r18 = @ltoff(@tprel(foo#)), gp
10804 addl r19 = @dtprel(foo#), gp
10805 adds r21 = @dtprel(foo#), r13
10806 movl r23 = @dtprel(foo#)
10807 addl r20 = @tprel(foo#), gp
10808 adds r22 = @tprel(foo#), r13
10809 movl r24 = @tprel(foo#)'
10810 tls_first_major=2
10811 tls_first_minor=13
10812 tls_as_opt=--fatal-warnings
10813 ;;
10814 powerpc-*-*)
10815 conftest_s='
10816 .section ".tdata","awT",@progbits
10817 .align 2
10818 ld0: .space 4
10819 ld1: .space 4
10820 x1: .space 4
10821 x2: .space 4
10822 x3: .space 4
10823 .text
10824 addi 3,31,ld0@got@tlsgd
10825 bl __tls_get_addr
10826 addi 3,31,x1@got@tlsld
10827 bl __tls_get_addr
10828 addi 9,3,x1@dtprel
10829 addis 9,3,x2@dtprel@ha
10830 addi 9,9,x2@dtprel@l
10831 lwz 9,x3@got@tprel(31)
10832 add 9,9,x@tls
10833 addi 9,2,x1@tprel
10834 addis 9,2,x2@tprel@ha
10835 addi 9,9,x2@tprel@l'
10836 tls_first_major=2
10837 tls_first_minor=14
10838 tls_as_opt="-a32 --fatal-warnings"
10839 ;;
10840 powerpc64-*-*)
10841 conftest_s='
10842 .section ".tdata","awT",@progbits
10843 .align 3
10844 ld0: .space 8
10845 ld1: .space 8
10846 x1: .space 8
10847 x2: .space 8
10848 x3: .space 8
10849 .text
10850 addi 3,2,ld0@got@tlsgd
10851 bl .__tls_get_addr
10852 nop
10853 addi 3,2,ld1@toc
10854 bl .__tls_get_addr
10855 nop
10856 addi 3,2,x1@got@tlsld
10857 bl .__tls_get_addr
10858 nop
10859 addi 9,3,x1@dtprel
10860 bl .__tls_get_addr
10861 nop
10862 addis 9,3,x2@dtprel@ha
10863 addi 9,9,x2@dtprel@l
10864 bl .__tls_get_addr
10865 nop
10866 ld 9,x3@got@dtprel(2)
10867 add 9,9,3
10868 bl .__tls_get_addr
10869 nop'
10870 tls_first_major=2
10871 tls_first_minor=14
10872 tls_as_opt="-a64 --fatal-warnings"
10873 ;;
10874 s390-*-*)
10875 conftest_s='
10876 .section ".tdata","awT",@progbits
10877 foo: .long 25
10878 .text
10879 .long foo@TLSGD
10880 .long foo@TLSLDM
10881 .long foo@DTPOFF
10882 .long foo@NTPOFF
10883 .long foo@GOTNTPOFF
10884 .long foo@INDNTPOFF
10885 l %r1,foo@GOTNTPOFF(%r12)
10886 l %r1,0(%r1):tls_load:foo
10887 bas %r14,0(%r1,%r13):tls_gdcall:foo
10888 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10889 tls_first_major=2
10890 tls_first_minor=14
10891 tls_as_opt="-m31 --fatal-warnings"
10892 ;;
10893 s390x-*-*)
10894 conftest_s='
10895 .section ".tdata","awT",@progbits
10896 foo: .long 25
10897 .text
10898 .quad foo@TLSGD
10899 .quad foo@TLSLDM
10900 .quad foo@DTPOFF
10901 .quad foo@NTPOFF
10902 .quad foo@GOTNTPOFF
10903 lg %r1,foo@GOTNTPOFF(%r12)
10904 larl %r1,foo@INDNTPOFF
10905 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10906 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10907 tls_first_major=2
10908 tls_first_minor=14
10909 tls_as_opt="-m64 -Aesame --fatal-warnings"
10910 ;;
10911 sh-*-* | sh[34]-*-*)
10912 conftest_s='
10913 .section ".tdata","awT",@progbits
10914 foo: .long 25
10915 .text
10916 .long foo@TLSGD
10917 .long foo@TLSLDM
10918 .long foo@DTPOFF
10919 .long foo@GOTTPOFF
10920 .long foo@TPOFF'
10921 tls_first_major=2
10922 tls_first_minor=13
10923 tls_as_opt=--fatal-warnings
10924 ;;
10925 sparc*-*-*)
10926 case "$target" in
10927 sparc*-sun-solaris2.*)
10928 on_solaris=yes
10929 ;;
10930 *)
10931 on_solaris=no
10932 ;;
10933 esac
10934 if test x$on_solaris = xyes && test x$gas_flag = xno; then
10935 conftest_s='
10936 .section ".tdata",#alloc,#write,#tls
10937 foo: .long 25
10938 .text
10939 sethi %tgd_hi22(foo), %o0
10940 add %o0, %tgd_lo10(foo), %o1
10941 add %l7, %o1, %o0, %tgd_add(foo)
10942 call __tls_get_addr, %tgd_call(foo)
10943 sethi %tldm_hi22(foo), %l1
10944 add %l1, %tldm_lo10(foo), %l2
10945 add %l7, %l2, %o0, %tldm_add(foo)
10946 call __tls_get_addr, %tldm_call(foo)
10947 sethi %tldo_hix22(foo), %l3
10948 xor %l3, %tldo_lox10(foo), %l4
10949 add %o0, %l4, %l5, %tldo_add(foo)
10950 sethi %tie_hi22(foo), %o3
10951 add %o3, %tie_lo10(foo), %o3
10952 ld [%l7 + %o3], %o2, %tie_ld(foo)
10953 add %g7, %o2, %o4, %tie_add(foo)
10954 sethi %tle_hix22(foo), %l1
10955 xor %l1, %tle_lox10(foo), %o5
10956 ld [%g7 + %o5], %o1'
10957 tls_first_major=0
10958 tls_first_minor=0
10959 else
10960 conftest_s='
10961 .section ".tdata","awT",@progbits
10962 foo: .long 25
10963 .text
10964 sethi %tgd_hi22(foo), %o0
10965 add %o0, %tgd_lo10(foo), %o1
10966 add %l7, %o1, %o0, %tgd_add(foo)
10967 call __tls_get_addr, %tgd_call(foo)
10968 sethi %tldm_hi22(foo), %l1
10969 add %l1, %tldm_lo10(foo), %l2
10970 add %l7, %l2, %o0, %tldm_add(foo)
10971 call __tls_get_addr, %tldm_call(foo)
10972 sethi %tldo_hix22(foo), %l3
10973 xor %l3, %tldo_lox10(foo), %l4
10974 add %o0, %l4, %l5, %tldo_add(foo)
10975 sethi %tie_hi22(foo), %o3
10976 add %o3, %tie_lo10(foo), %o3
10977 ld [%l7 + %o3], %o2, %tie_ld(foo)
10978 add %g7, %o2, %o4, %tie_add(foo)
10979 sethi %tle_hix22(foo), %l1
10980 xor %l1, %tle_lox10(foo), %o5
10981 ld [%g7 + %o5], %o1'
10982 tls_first_major=2
10983 tls_first_minor=14
10984 tls_as_opt="-32 --fatal-warnings"
10985 fi
10986 ;;
10987 esac
10988 if test -z "$tls_first_major"; then
10989 : # If we don't have a check, assume no support.
10990 else
10991 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10992 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10993 if test "${gcc_cv_as_tls+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996 gcc_cv_as_tls=no
10997 if test $in_tree_gas = yes; then
10998 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10999 then gcc_cv_as_tls=yes
11000 fi
11001 elif test x$gcc_cv_as != x; then
11002 echo "$conftest_s" > conftest.s
11003 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }
11009 then
11010 gcc_cv_as_tls=yes
11011 else
11012 echo "configure: failed program was" >&5
11013 cat conftest.s >&5
11014 fi
11015 rm -f conftest.o conftest.s
11016 fi
11017 fi
11018 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11019 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11020 if test $gcc_cv_as_tls = yes; then
11021
11022 cat >>confdefs.h <<\_ACEOF
11023 #define HAVE_AS_TLS 1
11024 _ACEOF
11025
11026 fi
11027 fi
11028
11029 # Target-specific assembler checks.
11030
11031 case "$target" in
11032 # All TARGET_ABI_OSF targets.
11033 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11034 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11035 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11036 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039 gcc_cv_as_alpha_explicit_relocs=no
11040 if test $in_tree_gas = yes; then
11041 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11042 then gcc_cv_as_alpha_explicit_relocs=yes
11043 fi
11044 elif test x$gcc_cv_as != x; then
11045 echo ' .set nomacro
11046 .text
11047 extbl $3, $2, $3 !lituse_bytoff!1
11048 ldq $2, a($29) !literal!1
11049 ldq $4, b($29) !literal!2
11050 ldq_u $3, 0($2) !lituse_base!1
11051 ldq $27, f($29) !literal!5
11052 jsr $26, ($27), f !lituse_jsr!5
11053 ldah $29, 0($26) !gpdisp!3
11054 lda $0, c($29) !gprel
11055 ldah $1, d($29) !gprelhigh
11056 lda $1, d($1) !gprellow
11057 lda $29, 0($29) !gpdisp!3' > conftest.s
11058 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }
11064 then
11065 gcc_cv_as_alpha_explicit_relocs=yes
11066 else
11067 echo "configure: failed program was" >&5
11068 cat conftest.s >&5
11069 fi
11070 rm -f conftest.o conftest.s
11071 fi
11072 fi
11073 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11074 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11075 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11076
11077 cat >>confdefs.h <<\_ACEOF
11078 #define HAVE_AS_EXPLICIT_RELOCS 1
11079 _ACEOF
11080
11081 fi
11082 ;;
11083
11084 cris-*-*)
11085 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11086 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11087 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090 gcc_cv_as_cris_no_mul_bug=no
11091 if test $in_tree_gas = yes; then
11092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11093 then gcc_cv_as_cris_no_mul_bug=yes
11094 fi
11095 elif test x$gcc_cv_as != x; then
11096 echo '.text' > conftest.s
11097 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }
11103 then
11104 gcc_cv_as_cris_no_mul_bug=yes
11105 else
11106 echo "configure: failed program was" >&5
11107 cat conftest.s >&5
11108 fi
11109 rm -f conftest.o conftest.s
11110 fi
11111 fi
11112 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11113 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11114 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11115
11116 cat >>confdefs.h <<\_ACEOF
11117 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11118 _ACEOF
11119
11120 fi
11121 ;;
11122
11123 sparc*-*-*)
11124 echo "$as_me:$LINENO: checking assembler for .register" >&5
11125 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11126 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129 gcc_cv_as_sparc_register_op=no
11130 if test x$gcc_cv_as != x; then
11131 echo '.register %g2, #scratch' > conftest.s
11132 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }
11138 then
11139 gcc_cv_as_sparc_register_op=yes
11140 else
11141 echo "configure: failed program was" >&5
11142 cat conftest.s >&5
11143 fi
11144 rm -f conftest.o conftest.s
11145 fi
11146 fi
11147 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11148 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11149 if test $gcc_cv_as_sparc_register_op = yes; then
11150
11151 cat >>confdefs.h <<\_ACEOF
11152 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11153 _ACEOF
11154
11155 fi
11156
11157 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11158 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11159 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else
11162 gcc_cv_as_sparc_relax=no
11163 if test x$gcc_cv_as != x; then
11164 echo '.text' > conftest.s
11165 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }
11171 then
11172 gcc_cv_as_sparc_relax=yes
11173 else
11174 echo "configure: failed program was" >&5
11175 cat conftest.s >&5
11176 fi
11177 rm -f conftest.o conftest.s
11178 fi
11179 fi
11180 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11181 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11182 if test $gcc_cv_as_sparc_relax = yes; then
11183
11184 cat >>confdefs.h <<\_ACEOF
11185 #define HAVE_AS_RELAX_OPTION 1
11186 _ACEOF
11187
11188 fi
11189
11190 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11191 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11192 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195 gcc_cv_as_sparc_ua_pcrel=no
11196 if test x$gcc_cv_as != x; then
11197 echo '.text
11198 foo:
11199 nop
11200 .data
11201 .align 4
11202 .byte 0
11203 .uaword %r_disp32(foo)' > conftest.s
11204 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }
11210 then
11211 if test x$gcc_cv_ld != x \
11212 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11213 gcc_cv_as_sparc_ua_pcrel=yes
11214 fi
11215 rm -f conftest
11216 else
11217 echo "configure: failed program was" >&5
11218 cat conftest.s >&5
11219 fi
11220 rm -f conftest.o conftest.s
11221 fi
11222 fi
11223 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11224 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11225 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11226
11227 cat >>confdefs.h <<\_ACEOF
11228 #define HAVE_AS_SPARC_UA_PCREL 1
11229 _ACEOF
11230
11231
11232 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11233 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11234 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237 gcc_cv_as_sparc_ua_pcrel_hidden=no
11238 if test x$gcc_cv_as != x; then
11239 echo '.data
11240 .align 4
11241 .byte 0x31
11242 .uaword %r_disp32(foo)
11243 .byte 0x32, 0x33, 0x34
11244 .global foo
11245 .hidden foo
11246 foo:
11247 .skip 4' > conftest.s
11248 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }
11254 then
11255 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11256 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11257 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11258 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11259 if $gcc_cv_objdump -R conftest 2> /dev/null \
11260 | grep 'DISP32' > /dev/null 2>&1; then
11261 :
11262 else
11263 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11264 fi
11265 fi
11266 rm -f conftest
11267 else
11268 echo "configure: failed program was" >&5
11269 cat conftest.s >&5
11270 fi
11271 rm -f conftest.o conftest.s
11272 fi
11273 fi
11274 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11275 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11276 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11277
11278 cat >>confdefs.h <<\_ACEOF
11279 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11280 _ACEOF
11281
11282 fi
11283
11284 fi # unaligned pcrel relocs
11285
11286 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11287 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11288 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291 gcc_cv_as_sparc_offsetable_lo10=no
11292 if test x$gcc_cv_as != x; then
11293 echo '.text
11294 or %g1, %lo(ab) + 12, %g1
11295 or %g1, %lo(ab + 12), %g1' > conftest.s
11296 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }
11302 then
11303 if test x$gcc_cv_objdump != x \
11304 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11305 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11306 gcc_cv_as_offsetable_lo10=yes
11307 fi
11308 else
11309 echo "configure: failed program was" >&5
11310 cat conftest.s >&5
11311 fi
11312 rm -f conftest.o conftest.s
11313 fi
11314 fi
11315 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11316 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11317 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11318
11319 cat >>confdefs.h <<\_ACEOF
11320 #define HAVE_AS_OFFSETABLE_LO10 1
11321 _ACEOF
11322
11323 fi
11324 ;;
11325
11326 i[34567]86-*-* | x86_64-*-*)
11327 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11328 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11329 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332 gcc_cv_as_ix86_filds_fists=no
11333 if test $in_tree_gas = yes; then
11334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11335 then gcc_cv_as_ix86_filds_fists=yes
11336 fi
11337 elif test x$gcc_cv_as != x; then
11338 echo 'filds mem; fists mem' > conftest.s
11339 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }
11345 then
11346 gcc_cv_as_ix86_filds_fists=yes
11347 else
11348 echo "configure: failed program was" >&5
11349 cat conftest.s >&5
11350 fi
11351 rm -f conftest.o conftest.s
11352 fi
11353 fi
11354 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11355 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11356 if test $gcc_cv_as_ix86_filds_fists = yes; then
11357
11358 cat >>confdefs.h <<\_ACEOF
11359 #define HAVE_GAS_FILDS_FISTS 1
11360 _ACEOF
11361
11362 fi
11363
11364 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11365 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11366 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369 gcc_cv_as_ix86_cmov_sun_syntax=no
11370 if test x$gcc_cv_as != x; then
11371 echo 'cmovl.l %edx, %eax' > conftest.s
11372 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }
11378 then
11379 gcc_cv_as_ix86_cmov_sun_syntax=yes
11380 else
11381 echo "configure: failed program was" >&5
11382 cat conftest.s >&5
11383 fi
11384 rm -f conftest.o conftest.s
11385 fi
11386 fi
11387 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11388 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11389 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11390
11391 cat >>confdefs.h <<\_ACEOF
11392 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11393 _ACEOF
11394
11395 fi
11396
11397 # This one is used unconditionally by i386.[ch]; it is to be defined
11398 # to 1 if the feature is present, 0 otherwise.
11399 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11400 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11401 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404 gcc_cv_as_ix86_gotoff_in_data=no
11405 if test $in_tree_gas = yes; then
11406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11407 then gcc_cv_as_ix86_gotoff_in_data=yes
11408 fi
11409 elif test x$gcc_cv_as != x; then
11410 echo ' .text
11411 .L0:
11412 nop
11413 .data
11414 .long .L0@GOTOFF' > conftest.s
11415 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }
11421 then
11422 gcc_cv_as_ix86_gotoff_in_data=yes
11423 else
11424 echo "configure: failed program was" >&5
11425 cat conftest.s >&5
11426 fi
11427 rm -f conftest.o conftest.s
11428 fi
11429 fi
11430 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11431 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11432
11433
11434 cat >>confdefs.h <<_ACEOF
11435 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11436 _ACEOF
11437
11438 ;;
11439
11440 ia64*-*-*)
11441 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11442 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11443 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11447 if test $in_tree_gas = yes; then
11448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11449 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11450 fi
11451 elif test x$gcc_cv_as != x; then
11452 echo ' .text
11453 addl r15 = @ltoffx(x#), gp
11454 ;;
11455 ld8.mov r16 = [r15], x#' > conftest.s
11456 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }
11462 then
11463 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11464 else
11465 echo "configure: failed program was" >&5
11466 cat conftest.s >&5
11467 fi
11468 rm -f conftest.o conftest.s
11469 fi
11470 fi
11471 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11472 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11473 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11474
11475 cat >>confdefs.h <<\_ACEOF
11476 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11477 _ACEOF
11478
11479 fi
11480
11481 ;;
11482
11483 powerpc*-*-*)
11484 case $target in
11485 *-*-aix*) conftest_s=' .csect .text[PR]
11486 mfcr 3,128';;
11487 *-*-darwin*) conftest_s=' .text
11488 mfcr r3,128';;
11489 *) conftest_s=' .text
11490 mfcr 3,128';;
11491 esac
11492
11493 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11494 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11495 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498 gcc_cv_as_powerpc_mfcrf=no
11499 if test $in_tree_gas = yes; then
11500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11501 then gcc_cv_as_powerpc_mfcrf=yes
11502 fi
11503 elif test x$gcc_cv_as != x; then
11504 echo "$conftest_s" > conftest.s
11505 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }
11511 then
11512 gcc_cv_as_powerpc_mfcrf=yes
11513 else
11514 echo "configure: failed program was" >&5
11515 cat conftest.s >&5
11516 fi
11517 rm -f conftest.o conftest.s
11518 fi
11519 fi
11520 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11521 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11522 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11523
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_AS_MFCRF 1
11526 _ACEOF
11527
11528 fi
11529 ;;
11530
11531 mips*-*-*)
11532 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11533 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11534 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537 gcc_cv_as_mips_explicit_relocs=no
11538 if test $in_tree_gas = yes; then
11539 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11540 then gcc_cv_as_mips_explicit_relocs=yes
11541 fi
11542 elif test x$gcc_cv_as != x; then
11543 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11544 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; }
11550 then
11551 gcc_cv_as_mips_explicit_relocs=yes
11552 else
11553 echo "configure: failed program was" >&5
11554 cat conftest.s >&5
11555 fi
11556 rm -f conftest.o conftest.s
11557 fi
11558 fi
11559 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11560 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11561 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11562 if test x$target_cpu_default = x
11563 then target_cpu_default=MASK_EXPLICIT_RELOCS
11564 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11565 fi
11566 fi
11567
11568 ;;
11569 esac
11570 # ??? Not all targets support dwarf2 debug_line, even within a version
11571 # of gas. Moreover, we need to emit a valid instruction to trigger any
11572 # info to the output file. So, as supported targets are added to gas 2.11,
11573 # add some instruction here to (also) show we expect this might work.
11574 # ??? Once 2.11 is released, probably need to add first known working
11575 # version to the per-target configury.
11576 case "$target" in
11577 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11578 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11579 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11580 insn="nop"
11581 ;;
11582 ia64*-*-* | s390*-*-*)
11583 insn="nop 0"
11584 ;;
11585 mmix-*-*)
11586 insn="swym 0"
11587 ;;
11588 esac
11589 if test x"$insn" != x; then
11590 conftest_s="\
11591 .file 1 \"conftest.s\"
11592 .loc 1 3 0
11593 $insn"
11594 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11595 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11596 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599 gcc_cv_as_dwarf2_debug_line=no
11600 if test $in_tree_gas = yes; then
11601 if test $in_tree_gas_is_elf = yes \
11602 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11603 then gcc_cv_as_dwarf2_debug_line=yes
11604 fi
11605 elif test x$gcc_cv_as != x; then
11606 echo "$conftest_s" > conftest.s
11607 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }
11613 then
11614 # ??? This fails with non-gnu grep. Maybe use objdump?
11615 if grep debug_line conftest.o > /dev/null 2>&1; then
11616 gcc_cv_as_dwarf2_debug_line=yes
11617 fi
11618 else
11619 echo "configure: failed program was" >&5
11620 cat conftest.s >&5
11621 fi
11622 rm -f conftest.o conftest.s
11623 fi
11624 fi
11625 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11626 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11627
11628
11629 # The .debug_line file table must be in the exact order that
11630 # we specified the files, since these indices are also used
11631 # by DW_AT_decl_file. Approximate this test by testing if
11632 # the assembler bitches if the same index is assigned twice.
11633 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11634 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11635 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638 gcc_cv_as_dwarf2_file_buggy=no
11639 if test x$gcc_cv_as != x; then
11640 echo ' .file 1 "foo.s"
11641 .file 1 "bar.s"' > 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_dwarf2_file_buggy=yes
11650 else
11651 echo "configure: failed program was" >&5
11652 cat conftest.s >&5
11653 fi
11654 rm -f conftest.o conftest.s
11655 fi
11656 fi
11657 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11658 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11659
11660
11661 if test $gcc_cv_as_dwarf2_debug_line = yes \
11662 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11663
11664 cat >>confdefs.h <<\_ACEOF
11665 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11666 _ACEOF
11667
11668 fi
11669
11670 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11671 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11672 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675 gcc_cv_as_gdwarf2_flag=no
11676 if test $in_tree_gas = yes; then
11677 if test $in_tree_gas_is_elf = yes \
11678 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11679 then gcc_cv_as_gdwarf2_flag=yes
11680 fi
11681 elif test x$gcc_cv_as != x; then
11682 echo "$insn" > conftest.s
11683 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }
11689 then
11690 gcc_cv_as_gdwarf2_flag=yes
11691 else
11692 echo "configure: failed program was" >&5
11693 cat conftest.s >&5
11694 fi
11695 rm -f conftest.o conftest.s
11696 fi
11697 fi
11698 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11699 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11700 if test $gcc_cv_as_gdwarf2_flag = yes; then
11701
11702 cat >>confdefs.h <<\_ACEOF
11703 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11704 _ACEOF
11705
11706 fi
11707
11708 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11709 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11710 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 gcc_cv_as_gstabs_flag=no
11714 if test $in_tree_gas = yes; then
11715 if test $in_tree_gas_is_elf = yes \
11716 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11717 then gcc_cv_as_gstabs_flag=yes
11718 fi
11719 elif test x$gcc_cv_as != x; then
11720 echo "$insn" > conftest.s
11721 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }
11727 then
11728 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11729 # and warns about it, but still exits successfully. So check for
11730 # this.
11731 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }
11737 then :
11738 else gcc_cv_as_gstabs_flag=yes
11739 fi
11740 else
11741 echo "configure: failed program was" >&5
11742 cat conftest.s >&5
11743 fi
11744 rm -f conftest.o conftest.s
11745 fi
11746 fi
11747 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11748 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11749 if test $gcc_cv_as_gstabs_flag = yes; then
11750
11751 cat >>confdefs.h <<\_ACEOF
11752 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11753 _ACEOF
11754
11755 fi
11756 fi
11757
11758 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11759 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11760 gcc_cv_ld_ro_rw_mix=unknown
11761 if test $in_tree_ld = yes ; then
11762 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 \
11763 && test $in_tree_ld_is_elf = yes; then
11764 gcc_cv_ld_ro_rw_mix=read-write
11765 fi
11766 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11767 echo '.section myfoosect, "a"' > conftest1.s
11768 echo '.section myfoosect, "aw"' > conftest2.s
11769 echo '.byte 1' >> conftest2.s
11770 echo '.section myfoosect, "a"' > conftest3.s
11771 echo '.byte 0' >> conftest3.s
11772 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11773 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11774 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11775 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11776 conftest2.o conftest3.o > /dev/null 2>&1; then
11777 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11778 | sed -e '/myfoosect/!d' -e N`
11779 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11780 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11781 gcc_cv_ld_ro_rw_mix=read-only
11782 else
11783 gcc_cv_ld_ro_rw_mix=read-write
11784 fi
11785 fi
11786 fi
11787 rm -f conftest.* conftest[123].*
11788 fi
11789 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11790
11791 cat >>confdefs.h <<\_ACEOF
11792 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11793 _ACEOF
11794
11795 fi
11796 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11797 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11798
11799 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11800 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11801 gcc_cv_ld_eh_frame_hdr=no
11802 if test $in_tree_ld = yes ; then
11803 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 \
11804 && test $in_tree_ld_is_elf = yes; then
11805 gcc_cv_ld_eh_frame_hdr=yes
11806 fi
11807 elif test x$gcc_cv_ld != x; then
11808 # Check if linker supports --eh-frame-hdr option
11809 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11810 gcc_cv_ld_eh_frame_hdr=yes
11811 fi
11812 fi
11813 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11814
11815 cat >>confdefs.h <<\_ACEOF
11816 #define HAVE_LD_EH_FRAME_HDR 1
11817 _ACEOF
11818
11819 fi
11820 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11821 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11822
11823 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11824 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11825 gcc_cv_ld_pie=no
11826 if test $in_tree_ld = yes ; then
11827 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 \
11828 && test $in_tree_ld_is_elf = yes; then
11829 gcc_cv_ld_pie=yes
11830 fi
11831 elif test x$gcc_cv_ld != x; then
11832 # Check if linker supports -pie option
11833 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11834 gcc_cv_ld_pie=yes
11835 fi
11836 fi
11837 if test x"$gcc_cv_ld_pie" = xyes; then
11838
11839 cat >>confdefs.h <<\_ACEOF
11840 #define HAVE_LD_PIE 1
11841 _ACEOF
11842
11843 fi
11844 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11845 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11846
11847 # --------
11848 # UNSORTED
11849 # --------
11850
11851 if test x$with_sysroot = x && test x$host = x$target \
11852 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11853
11854 cat >>confdefs.h <<_ACEOF
11855 #define PREFIX_INCLUDE_DIR "$prefix/include"
11856 _ACEOF
11857
11858 fi
11859
11860 # Find out what GC implementation we want, or may, use.
11861
11862 # Check whether --with-gc or --without-gc was given.
11863 if test "${with_gc+set}" = set; then
11864 withval="$with_gc"
11865 case "$withval" in
11866 page | zone)
11867 GGC=ggc-$withval
11868 ;;
11869 *)
11870 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11871 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11872 { (exit 1); exit 1; }; }
11873 ;;
11874 esac
11875 else
11876 GGC=ggc-page
11877 fi;
11878
11879 echo "Using $GGC for garbage collection."
11880
11881 # Use the system's zlib library.
11882 zlibdir=-L../zlib
11883 zlibinc="-I\$(srcdir)/../zlib"
11884
11885 # Check whether --with-system-zlib or --without-system-zlib was given.
11886 if test "${with_system_zlib+set}" = set; then
11887 withval="$with_system_zlib"
11888 zlibdir=
11889 zlibinc=
11890
11891 fi;
11892
11893
11894
11895
11896 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11897 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11898 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11899 if test "${enable_maintainer_mode+set}" = set; then
11900 enableval="$enable_maintainer_mode"
11901 maintainer_mode=$enableval
11902 else
11903 maintainer_mode=no
11904 fi;
11905
11906 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11907 echo "${ECHO_T}$maintainer_mode" >&6
11908
11909 if test "$maintainer_mode" = "yes"; then
11910 MAINT=''
11911 else
11912 MAINT='#'
11913 fi
11914
11915 # --------------
11916 # Language hooks
11917 # --------------
11918
11919 # Make empty files to contain the specs and options for each language.
11920 # Then add #include lines to for a compiler that has specs and/or options.
11921
11922 lang_opt_files=
11923 lang_specs_files=
11924 lang_tree_files=
11925 for subdir in . $subdirs
11926 do
11927 if test -f $srcdir/$subdir/lang.opt; then
11928 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11929 fi
11930 if test -f $srcdir/$subdir/lang-specs.h; then
11931 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11932 fi
11933 if test -f $srcdir/$subdir/$subdir-tree.def; then
11934 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11935 fi
11936 done
11937
11938 # These (without "all_") are set in each config-lang.in.
11939 # `language' must be a single word so is spelled singularly.
11940 all_languages=
11941 all_boot_languages=
11942 all_compilers=
11943 all_stagestuff=
11944 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11945 # List of language makefile fragments.
11946 all_lang_makefrags=
11947 # List of language subdirectory makefiles. Deprecated.
11948 all_lang_makefiles=
11949 # Files for gengtype
11950 all_gtfiles="$target_gtfiles"
11951 # Files for gengtype with language
11952 all_gtfiles_files_langs=
11953 all_gtfiles_files_files=
11954
11955 # Add the language fragments.
11956 # Languages are added via two mechanisms. Some information must be
11957 # recorded in makefile variables, these are defined in config-lang.in.
11958 # We accumulate them and plug them into the main Makefile.
11959 # The other mechanism is a set of hooks for each of the main targets
11960 # like `clean', `install', etc.
11961
11962 language_hooks="Make-hooks"
11963
11964 for s in $subdirs
11965 do
11966 language=
11967 boot_language=
11968 compilers=
11969 stagestuff=
11970 outputs=
11971 gtfiles=
11972 . ${srcdir}/$s/config-lang.in
11973 if test "x$language" = x
11974 then
11975 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11976 exit 1
11977 fi
11978 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11979 if test -f ${srcdir}/$s/Makefile.in
11980 then all_lang_makefiles="$s/Makefile"
11981 fi
11982 all_languages="$all_languages $language"
11983 if test "x$boot_language" = xyes
11984 then
11985 all_boot_languages="$all_boot_languages $language"
11986 fi
11987 all_compilers="$all_compilers $compilers"
11988 all_stagestuff="$all_stagestuff $stagestuff"
11989 all_outputs="$all_outputs $outputs"
11990 all_gtfiles="$all_gtfiles $gtfiles"
11991 for f in $gtfiles
11992 do
11993 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11994 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11995 done
11996 done
11997
11998 # Pick up gtfiles for c
11999 gtfiles=
12000 s="c"
12001 . ${srcdir}/c-config-lang.in
12002 all_gtfiles="$all_gtfiles $gtfiles"
12003 for f in $gtfiles
12004 do
12005 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12006 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12007 done
12008
12009 check_languages=
12010 for language in $all_languages
12011 do
12012 check_languages="$check_languages check-$language"
12013 done
12014
12015 # We link each language in with a set of hooks, reached indirectly via
12016 # lang.${target}.
12017
12018 rm -f Make-hooks
12019 touch Make-hooks
12020 target_list="all.build all.cross start.encap rest.encap tags \
12021 install-normal install-common install-man \
12022 uninstall info man srcextra srcman srcinfo \
12023 mostlyclean clean distclean maintainer-clean \
12024 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12025 for t in $target_list
12026 do
12027 x=
12028 for lang in $all_languages
12029 do
12030 x="$x $lang.$t"
12031 done
12032 echo "lang.$t: $x" >> Make-hooks
12033 done
12034
12035 # --------
12036 # UNSORTED
12037 # --------
12038
12039 # Create .gdbinit.
12040
12041 echo "dir ." > .gdbinit
12042 echo "dir ${srcdir}" >> .gdbinit
12043 if test x$gdb_needs_out_file_path = xyes
12044 then
12045 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12046 fi
12047 if test "x$subdirs" != x; then
12048 for s in $subdirs
12049 do
12050 echo "dir ${srcdir}/$s" >> .gdbinit
12051 done
12052 fi
12053 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12054
12055 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12056 # absolute path for gcc_tooldir based on inserting the number of up-directory
12057 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12058 # $(libsubdir)/@(unlibsubdir) based path.
12059 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12060 # make and thus we'd get different behavior depending on where we built the
12061 # sources.
12062 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12063 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12064 else
12065 # An explanation of the sed strings:
12066 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12067 # -e 's|/$||' match a trailing forward slash and eliminates it
12068 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12069 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12070 #
12071 # (*) Note this pattern overwrites the first character of the string
12072 # with a forward slash if one is not already present. This is not a
12073 # problem because the exact names of the sub-directories concerned is
12074 # unimportant, just the number of them matters.
12075 #
12076 # The practical upshot of these patterns is like this:
12077 #
12078 # prefix exec_prefix result
12079 # ------ ----------- ------
12080 # /foo /foo/bar ../
12081 # /foo/ /foo/bar ../
12082 # /foo /foo/bar/ ../
12083 # /foo/ /foo/bar/ ../
12084 # /foo /foo/bar/ugg ../../
12085 #
12086 dollar='$$'
12087 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12088 fi
12089
12090
12091
12092 # Find a directory in which to install a shared libgcc.
12093
12094 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12095 if test "${enable_version_specific_runtime_libs+set}" = set; then
12096 enableval="$enable_version_specific_runtime_libs"
12097
12098 fi;
12099
12100
12101 # Check whether --with-slibdir or --without-slibdir was given.
12102 if test "${with_slibdir+set}" = set; then
12103 withval="$with_slibdir"
12104 slibdir="$with_slibdir"
12105 else
12106 if test "${enable_version_specific_runtime_libs+set}" = set; then
12107 slibdir='$(libsubdir)'
12108 elif test "$host" != "$target"; then
12109 slibdir='$(build_tooldir)/lib'
12110 else
12111 slibdir='$(libdir)'
12112 fi
12113 fi;
12114
12115
12116 objdir=`${PWDCMD-pwd}`
12117
12118
12119 # Substitute configuration variables
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188 # If it doesn't already exist, create document directory
12189 echo "checking for the document directory." 1>&2
12190 if test -d doc ; then
12191 true
12192 else
12193 mkdir doc
12194 fi
12195
12196 # Echo link setup.
12197 if test x${build} = x${host} ; then
12198 if test x${host} = x${target} ; then
12199 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12200 else
12201 echo "Links are now set up to build a cross-compiler" 1>&2
12202 echo " from ${host} to ${target}." 1>&2
12203 fi
12204 else
12205 if test x${host} = x${target} ; then
12206 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12207 echo " for ${target}." 1>&2
12208 else
12209 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12210 echo " from ${host} to ${target}." 1>&2
12211 fi
12212 fi
12213
12214 # Configure the subdirectories
12215 # AC_CONFIG_SUBDIRS($subdirs)
12216
12217 # Create the Makefile
12218 # and configure language subdirectories
12219 ac_config_files="$ac_config_files $all_outputs"
12220
12221
12222 ac_config_commands="$ac_config_commands default"
12223
12224 cat >confcache <<\_ACEOF
12225 # This file is a shell script that caches the results of configure
12226 # tests run on this system so they can be shared between configure
12227 # scripts and configure runs, see configure's option --config-cache.
12228 # It is not useful on other systems. If it contains results you don't
12229 # want to keep, you may remove or edit it.
12230 #
12231 # config.status only pays attention to the cache file if you give it
12232 # the --recheck option to rerun configure.
12233 #
12234 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12235 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12236 # following values.
12237
12238 _ACEOF
12239
12240 # The following way of writing the cache mishandles newlines in values,
12241 # but we know of no workaround that is simple, portable, and efficient.
12242 # So, don't put newlines in cache variables' values.
12243 # Ultrix sh set writes to stderr and can't be redirected directly,
12244 # and sets the high bit in the cache file unless we assign to the vars.
12245 {
12246 (set) 2>&1 |
12247 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12248 *ac_space=\ *)
12249 # `set' does not quote correctly, so add quotes (double-quote
12250 # substitution turns \\\\ into \\, and sed turns \\ into \).
12251 sed -n \
12252 "s/'/'\\\\''/g;
12253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12254 ;;
12255 *)
12256 # `set' quotes correctly as required by POSIX, so do not add quotes.
12257 sed -n \
12258 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12259 ;;
12260 esac;
12261 } |
12262 sed '
12263 t clear
12264 : clear
12265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12266 t end
12267 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12268 : end' >>confcache
12269 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12270 if test -w $cache_file; then
12271 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12272 cat confcache >$cache_file
12273 else
12274 echo "not updating unwritable cache $cache_file"
12275 fi
12276 fi
12277 rm -f confcache
12278
12279 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12280 # Let make expand exec_prefix.
12281 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12282
12283 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12284 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12285 # trailing colons and then remove the whole line if VPATH becomes empty
12286 # (actually we leave an empty line to preserve line numbers).
12287 if test "x$srcdir" = x.; then
12288 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12289 s/:*\$(srcdir):*/:/;
12290 s/:*\${srcdir}:*/:/;
12291 s/:*@srcdir@:*/:/;
12292 s/^\([^=]*=[ ]*\):*/\1/;
12293 s/:*$//;
12294 s/^[^=]*=[ ]*$//;
12295 }'
12296 fi
12297
12298 DEFS=-DHAVE_CONFIG_H
12299
12300 ac_libobjs=
12301 ac_ltlibobjs=
12302 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12303 # 1. Remove the extension, and $U if already installed.
12304 ac_i=`echo "$ac_i" |
12305 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12306 # 2. Add them.
12307 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12308 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12309 done
12310 LIBOBJS=$ac_libobjs
12311
12312 LTLIBOBJS=$ac_ltlibobjs
12313
12314
12315
12316 : ${CONFIG_STATUS=./config.status}
12317 ac_clean_files_save=$ac_clean_files
12318 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12319 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12320 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12321 cat >$CONFIG_STATUS <<_ACEOF
12322 #! $SHELL
12323 # Generated by $as_me.
12324 # Run this file to recreate the current configuration.
12325 # Compiler output produced by configure, useful for debugging
12326 # configure, is in config.log if it exists.
12327
12328 debug=false
12329 ac_cs_recheck=false
12330 ac_cs_silent=false
12331 SHELL=\${CONFIG_SHELL-$SHELL}
12332 _ACEOF
12333
12334 cat >>$CONFIG_STATUS <<\_ACEOF
12335 ## --------------------- ##
12336 ## M4sh Initialization. ##
12337 ## --------------------- ##
12338
12339 # Be Bourne compatible
12340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12341 emulate sh
12342 NULLCMD=:
12343 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12344 # is contrary to our usage. Disable this feature.
12345 alias -g '${1+"$@"}'='"$@"'
12346 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12347 set -o posix
12348 fi
12349 DUALCASE=1; export DUALCASE # for MKS sh
12350
12351 # Support unset when possible.
12352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12353 as_unset=unset
12354 else
12355 as_unset=false
12356 fi
12357
12358
12359 # Work around bugs in pre-3.0 UWIN ksh.
12360 $as_unset ENV MAIL MAILPATH
12361 PS1='$ '
12362 PS2='> '
12363 PS4='+ '
12364
12365 # NLS nuisances.
12366 for as_var in \
12367 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12368 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12369 LC_TELEPHONE LC_TIME
12370 do
12371 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12372 eval $as_var=C; export $as_var
12373 else
12374 $as_unset $as_var
12375 fi
12376 done
12377
12378 # Required to use basename.
12379 if expr a : '\(a\)' >/dev/null 2>&1; then
12380 as_expr=expr
12381 else
12382 as_expr=false
12383 fi
12384
12385 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12386 as_basename=basename
12387 else
12388 as_basename=false
12389 fi
12390
12391
12392 # Name of the executable.
12393 as_me=`$as_basename "$0" ||
12394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12395 X"$0" : 'X\(//\)$' \| \
12396 X"$0" : 'X\(/\)$' \| \
12397 . : '\(.\)' 2>/dev/null ||
12398 echo X/"$0" |
12399 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12400 /^X\/\(\/\/\)$/{ s//\1/; q; }
12401 /^X\/\(\/\).*/{ s//\1/; q; }
12402 s/.*/./; q'`
12403
12404
12405 # PATH needs CR, and LINENO needs CR and PATH.
12406 # Avoid depending upon Character Ranges.
12407 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12408 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12409 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12410 as_cr_digits='0123456789'
12411 as_cr_alnum=$as_cr_Letters$as_cr_digits
12412
12413 # The user is always right.
12414 if test "${PATH_SEPARATOR+set}" != set; then
12415 echo "#! /bin/sh" >conf$$.sh
12416 echo "exit 0" >>conf$$.sh
12417 chmod +x conf$$.sh
12418 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12419 PATH_SEPARATOR=';'
12420 else
12421 PATH_SEPARATOR=:
12422 fi
12423 rm -f conf$$.sh
12424 fi
12425
12426
12427 as_lineno_1=$LINENO
12428 as_lineno_2=$LINENO
12429 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12430 test "x$as_lineno_1" != "x$as_lineno_2" &&
12431 test "x$as_lineno_3" = "x$as_lineno_2" || {
12432 # Find who we are. Look in the path if we contain no path at all
12433 # relative or not.
12434 case $0 in
12435 *[\\/]* ) as_myself=$0 ;;
12436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12438 do
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12442 done
12443
12444 ;;
12445 esac
12446 # We did not find ourselves, most probably we were run as `sh COMMAND'
12447 # in which case we are not to be found in the path.
12448 if test "x$as_myself" = x; then
12449 as_myself=$0
12450 fi
12451 if test ! -f "$as_myself"; then
12452 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12453 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12454 { (exit 1); exit 1; }; }
12455 fi
12456 case $CONFIG_SHELL in
12457 '')
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12460 do
12461 IFS=$as_save_IFS
12462 test -z "$as_dir" && as_dir=.
12463 for as_base in sh bash ksh sh5; do
12464 case $as_dir in
12465 /*)
12466 if ("$as_dir/$as_base" -c '
12467 as_lineno_1=$LINENO
12468 as_lineno_2=$LINENO
12469 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12470 test "x$as_lineno_1" != "x$as_lineno_2" &&
12471 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12472 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12473 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12474 CONFIG_SHELL=$as_dir/$as_base
12475 export CONFIG_SHELL
12476 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12477 fi;;
12478 esac
12479 done
12480 done
12481 ;;
12482 esac
12483
12484 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12485 # uniformly replaced by the line number. The first 'sed' inserts a
12486 # line-number line before each line; the second 'sed' does the real
12487 # work. The second script uses 'N' to pair each line-number line
12488 # with the numbered line, and appends trailing '-' during
12489 # substitution so that $LINENO is not a special case at line end.
12490 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12491 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12492 sed '=' <$as_myself |
12493 sed '
12494 N
12495 s,$,-,
12496 : loop
12497 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12498 t loop
12499 s,-$,,
12500 s,^['$as_cr_digits']*\n,,
12501 ' >$as_me.lineno &&
12502 chmod +x $as_me.lineno ||
12503 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12504 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12505 { (exit 1); exit 1; }; }
12506
12507 # Don't try to exec as it changes $[0], causing all sort of problems
12508 # (the dirname of $[0] is not the place where we might find the
12509 # original and so on. Autoconf is especially sensible to this).
12510 . ./$as_me.lineno
12511 # Exit status is that of the last command.
12512 exit
12513 }
12514
12515
12516 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12517 *c*,-n*) ECHO_N= ECHO_C='
12518 ' ECHO_T=' ' ;;
12519 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12520 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12521 esac
12522
12523 if expr a : '\(a\)' >/dev/null 2>&1; then
12524 as_expr=expr
12525 else
12526 as_expr=false
12527 fi
12528
12529 rm -f conf$$ conf$$.exe conf$$.file
12530 echo >conf$$.file
12531 if ln -s conf$$.file conf$$ 2>/dev/null; then
12532 # We could just check for DJGPP; but this test a) works b) is more generic
12533 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12534 if test -f conf$$.exe; then
12535 # Don't use ln at all; we don't have any links
12536 as_ln_s='cp -p'
12537 else
12538 as_ln_s='ln -s'
12539 fi
12540 elif ln conf$$.file conf$$ 2>/dev/null; then
12541 as_ln_s=ln
12542 else
12543 as_ln_s='cp -p'
12544 fi
12545 rm -f conf$$ conf$$.exe conf$$.file
12546
12547 if mkdir -p . 2>/dev/null; then
12548 as_mkdir_p=:
12549 else
12550 test -d ./-p && rmdir ./-p
12551 as_mkdir_p=false
12552 fi
12553
12554 as_executable_p="test -f"
12555
12556 # Sed expression to map a string onto a valid CPP name.
12557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12558
12559 # Sed expression to map a string onto a valid variable name.
12560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12561
12562
12563 # IFS
12564 # We need space, tab and new line, in precisely that order.
12565 as_nl='
12566 '
12567 IFS=" $as_nl"
12568
12569 # CDPATH.
12570 $as_unset CDPATH
12571
12572 exec 6>&1
12573
12574 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12575 # report actual input values of CONFIG_FILES etc. instead of their
12576 # values after options handling. Logging --version etc. is OK.
12577 exec 5>>config.log
12578 {
12579 echo
12580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12581 ## Running $as_me. ##
12582 _ASBOX
12583 } >&5
12584 cat >&5 <<_CSEOF
12585
12586 This file was extended by $as_me, which was
12587 generated by GNU Autoconf 2.59. Invocation command line was
12588
12589 CONFIG_FILES = $CONFIG_FILES
12590 CONFIG_HEADERS = $CONFIG_HEADERS
12591 CONFIG_LINKS = $CONFIG_LINKS
12592 CONFIG_COMMANDS = $CONFIG_COMMANDS
12593 $ $0 $@
12594
12595 _CSEOF
12596 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12597 echo >&5
12598 _ACEOF
12599
12600 # Files that config.status was made for.
12601 if test -n "$ac_config_files"; then
12602 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12603 fi
12604
12605 if test -n "$ac_config_headers"; then
12606 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12607 fi
12608
12609 if test -n "$ac_config_links"; then
12610 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12611 fi
12612
12613 if test -n "$ac_config_commands"; then
12614 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12615 fi
12616
12617 cat >>$CONFIG_STATUS <<\_ACEOF
12618
12619 ac_cs_usage="\
12620 \`$as_me' instantiates files from templates according to the
12621 current configuration.
12622
12623 Usage: $0 [OPTIONS] [FILE]...
12624
12625 -h, --help print this help, then exit
12626 -V, --version print version number, then exit
12627 -q, --quiet do not print progress messages
12628 -d, --debug don't remove temporary files
12629 --recheck update $as_me by reconfiguring in the same conditions
12630 --file=FILE[:TEMPLATE]
12631 instantiate the configuration file FILE
12632 --header=FILE[:TEMPLATE]
12633 instantiate the configuration header FILE
12634
12635 Configuration files:
12636 $config_files
12637
12638 Configuration headers:
12639 $config_headers
12640
12641 Configuration commands:
12642 $config_commands
12643
12644 Report bugs to <bug-autoconf@gnu.org>."
12645 _ACEOF
12646
12647 cat >>$CONFIG_STATUS <<_ACEOF
12648 ac_cs_version="\\
12649 config.status
12650 configured by $0, generated by GNU Autoconf 2.59,
12651 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12652
12653 Copyright (C) 2003 Free Software Foundation, Inc.
12654 This config.status script is free software; the Free Software Foundation
12655 gives unlimited permission to copy, distribute and modify it."
12656 srcdir=$srcdir
12657 _ACEOF
12658
12659 cat >>$CONFIG_STATUS <<\_ACEOF
12660 # If no file are specified by the user, then we need to provide default
12661 # value. By we need to know if files were specified by the user.
12662 ac_need_defaults=:
12663 while test $# != 0
12664 do
12665 case $1 in
12666 --*=*)
12667 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12668 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12669 ac_shift=:
12670 ;;
12671 -*)
12672 ac_option=$1
12673 ac_optarg=$2
12674 ac_shift=shift
12675 ;;
12676 *) # This is not an option, so the user has probably given explicit
12677 # arguments.
12678 ac_option=$1
12679 ac_need_defaults=false;;
12680 esac
12681
12682 case $ac_option in
12683 # Handling of the options.
12684 _ACEOF
12685 cat >>$CONFIG_STATUS <<\_ACEOF
12686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12687 ac_cs_recheck=: ;;
12688 --version | --vers* | -V )
12689 echo "$ac_cs_version"; exit 0 ;;
12690 --he | --h)
12691 # Conflict between --help and --header
12692 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12693 Try \`$0 --help' for more information." >&5
12694 echo "$as_me: error: ambiguous option: $1
12695 Try \`$0 --help' for more information." >&2;}
12696 { (exit 1); exit 1; }; };;
12697 --help | --hel | -h )
12698 echo "$ac_cs_usage"; exit 0 ;;
12699 --debug | --d* | -d )
12700 debug=: ;;
12701 --file | --fil | --fi | --f )
12702 $ac_shift
12703 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12704 ac_need_defaults=false;;
12705 --header | --heade | --head | --hea )
12706 $ac_shift
12707 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12708 ac_need_defaults=false;;
12709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12710 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12711 ac_cs_silent=: ;;
12712
12713 # This is an error.
12714 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12715 Try \`$0 --help' for more information." >&5
12716 echo "$as_me: error: unrecognized option: $1
12717 Try \`$0 --help' for more information." >&2;}
12718 { (exit 1); exit 1; }; } ;;
12719
12720 *) ac_config_targets="$ac_config_targets $1" ;;
12721
12722 esac
12723 shift
12724 done
12725
12726 ac_configure_extra_args=
12727
12728 if $ac_cs_silent; then
12729 exec 6>/dev/null
12730 ac_configure_extra_args="$ac_configure_extra_args --silent"
12731 fi
12732
12733 _ACEOF
12734 cat >>$CONFIG_STATUS <<_ACEOF
12735 if \$ac_cs_recheck; then
12736 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12737 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12738 fi
12739
12740 _ACEOF
12741
12742 cat >>$CONFIG_STATUS <<_ACEOF
12743 #
12744 # INIT-COMMANDS section.
12745 #
12746
12747 subdirs='$subdirs'
12748 symbolic_link='$symbolic_link'
12749
12750
12751 _ACEOF
12752
12753
12754
12755 cat >>$CONFIG_STATUS <<\_ACEOF
12756 for ac_config_target in $ac_config_targets
12757 do
12758 case "$ac_config_target" in
12759 # Handling of arguments.
12760 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12761 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12762 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12763 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12764 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12765 { (exit 1); exit 1; }; };;
12766 esac
12767 done
12768
12769 # If the user did not use the arguments to specify the items to instantiate,
12770 # then the envvar interface is used. Set only those that are not.
12771 # We use the long form for the default assignment because of an extremely
12772 # bizarre bug on SunOS 4.1.3.
12773 if $ac_need_defaults; then
12774 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12775 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12776 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12777 fi
12778
12779 # Have a temporary directory for convenience. Make it in the build tree
12780 # simply because there is no reason to put it here, and in addition,
12781 # creating and moving files from /tmp can sometimes cause problems.
12782 # Create a temporary directory, and hook for its removal unless debugging.
12783 $debug ||
12784 {
12785 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12786 trap '{ (exit 1); exit 1; }' 1 2 13 15
12787 }
12788
12789 # Create a (secure) tmp directory for tmp files.
12790
12791 {
12792 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12793 test -n "$tmp" && test -d "$tmp"
12794 } ||
12795 {
12796 tmp=./confstat$$-$RANDOM
12797 (umask 077 && mkdir $tmp)
12798 } ||
12799 {
12800 echo "$me: cannot create a temporary directory in ." >&2
12801 { (exit 1); exit 1; }
12802 }
12803
12804 _ACEOF
12805
12806 cat >>$CONFIG_STATUS <<_ACEOF
12807
12808 #
12809 # CONFIG_FILES section.
12810 #
12811
12812 # No need to generate the scripts if there are no CONFIG_FILES.
12813 # This happens for instance when ./config.status config.h
12814 if test -n "\$CONFIG_FILES"; then
12815 # Protect against being on the right side of a sed subst in config.status.
12816 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12817 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12818 s,@SHELL@,$SHELL,;t t
12819 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12820 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12821 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12822 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12823 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12824 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12825 s,@exec_prefix@,$exec_prefix,;t t
12826 s,@prefix@,$prefix,;t t
12827 s,@program_transform_name@,$program_transform_name,;t t
12828 s,@bindir@,$bindir,;t t
12829 s,@sbindir@,$sbindir,;t t
12830 s,@libexecdir@,$libexecdir,;t t
12831 s,@datadir@,$datadir,;t t
12832 s,@sysconfdir@,$sysconfdir,;t t
12833 s,@sharedstatedir@,$sharedstatedir,;t t
12834 s,@localstatedir@,$localstatedir,;t t
12835 s,@libdir@,$libdir,;t t
12836 s,@includedir@,$includedir,;t t
12837 s,@oldincludedir@,$oldincludedir,;t t
12838 s,@infodir@,$infodir,;t t
12839 s,@mandir@,$mandir,;t t
12840 s,@build_alias@,$build_alias,;t t
12841 s,@host_alias@,$host_alias,;t t
12842 s,@target_alias@,$target_alias,;t t
12843 s,@DEFS@,$DEFS,;t t
12844 s,@ECHO_C@,$ECHO_C,;t t
12845 s,@ECHO_N@,$ECHO_N,;t t
12846 s,@ECHO_T@,$ECHO_T,;t t
12847 s,@LIBS@,$LIBS,;t t
12848 s,@build@,$build,;t t
12849 s,@build_cpu@,$build_cpu,;t t
12850 s,@build_vendor@,$build_vendor,;t t
12851 s,@build_os@,$build_os,;t t
12852 s,@host@,$host,;t t
12853 s,@host_cpu@,$host_cpu,;t t
12854 s,@host_vendor@,$host_vendor,;t t
12855 s,@host_os@,$host_os,;t t
12856 s,@target@,$target,;t t
12857 s,@target_cpu@,$target_cpu,;t t
12858 s,@target_vendor@,$target_vendor,;t t
12859 s,@target_os@,$target_os,;t t
12860 s,@build_subdir@,$build_subdir,;t t
12861 s,@host_subdir@,$host_subdir,;t t
12862 s,@target_subdir@,$target_subdir,;t t
12863 s,@GENINSRC@,$GENINSRC,;t t
12864 s,@CC@,$CC,;t t
12865 s,@CFLAGS@,$CFLAGS,;t t
12866 s,@LDFLAGS@,$LDFLAGS,;t t
12867 s,@CPPFLAGS@,$CPPFLAGS,;t t
12868 s,@ac_ct_CC@,$ac_ct_CC,;t t
12869 s,@EXEEXT@,$EXEEXT,;t t
12870 s,@OBJEXT@,$OBJEXT,;t t
12871 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12872 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12873 s,@CPP@,$CPP,;t t
12874 s,@strict1_warn@,$strict1_warn,;t t
12875 s,@warn_cflags@,$warn_cflags,;t t
12876 s,@WERROR@,$WERROR,;t t
12877 s,@nocommon_flag@,$nocommon_flag,;t t
12878 s,@EGREP@,$EGREP,;t t
12879 s,@valgrind_path@,$valgrind_path,;t t
12880 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12881 s,@valgrind_command@,$valgrind_command,;t t
12882 s,@coverage_flags@,$coverage_flags,;t t
12883 s,@enable_multilib@,$enable_multilib,;t t
12884 s,@enable_shared@,$enable_shared,;t t
12885 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12886 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12887 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12888 s,@onestep@,$onestep,;t t
12889 s,@SET_MAKE@,$SET_MAKE,;t t
12890 s,@AWK@,$AWK,;t t
12891 s,@LN@,$LN,;t t
12892 s,@LN_S@,$LN_S,;t t
12893 s,@RANLIB@,$RANLIB,;t t
12894 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12895 s,@INSTALL@,$INSTALL,;t t
12896 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12897 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12898 s,@make_compare_target@,$make_compare_target,;t t
12899 s,@have_mktemp_command@,$have_mktemp_command,;t t
12900 s,@MAKEINFO@,$MAKEINFO,;t t
12901 s,@BUILD_INFO@,$BUILD_INFO,;t t
12902 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12903 s,@FLEX@,$FLEX,;t t
12904 s,@BISON@,$BISON,;t t
12905 s,@stage1_cflags@,$stage1_cflags,;t t
12906 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12907 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12908 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12909 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12910 s,@LIBICONV@,$LIBICONV,;t t
12911 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12912 s,@manext@,$manext,;t t
12913 s,@objext@,$objext,;t t
12914 s,@gthread_flags@,$gthread_flags,;t t
12915 s,@extra_modes_file@,$extra_modes_file,;t t
12916 s,@FORBUILD@,$FORBUILD,;t t
12917 s,@PACKAGE@,$PACKAGE,;t t
12918 s,@VERSION@,$VERSION,;t t
12919 s,@USE_NLS@,$USE_NLS,;t t
12920 s,@LIBINTL@,$LIBINTL,;t t
12921 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12922 s,@INCINTL@,$INCINTL,;t t
12923 s,@XGETTEXT@,$XGETTEXT,;t t
12924 s,@GMSGFMT@,$GMSGFMT,;t t
12925 s,@POSUB@,$POSUB,;t t
12926 s,@CATALOGS@,$CATALOGS,;t t
12927 s,@CROSS@,$CROSS,;t t
12928 s,@ALL@,$ALL,;t t
12929 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12930 s,@inhibit_libc@,$inhibit_libc,;t t
12931 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12932 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12933 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12934 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12935 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12936 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12937 s,@libgcc_visibility@,$libgcc_visibility,;t t
12938 s,@GGC@,$GGC,;t t
12939 s,@zlibdir@,$zlibdir,;t t
12940 s,@zlibinc@,$zlibinc,;t t
12941 s,@MAINT@,$MAINT,;t t
12942 s,@gcc_tooldir@,$gcc_tooldir,;t t
12943 s,@dollar@,$dollar,;t t
12944 s,@slibdir@,$slibdir,;t t
12945 s,@objdir@,$objdir,;t t
12946 s,@subdirs@,$subdirs,;t t
12947 s,@srcdir@,$srcdir,;t t
12948 s,@all_boot_languages@,$all_boot_languages,;t t
12949 s,@all_compilers@,$all_compilers,;t t
12950 s,@all_gtfiles@,$all_gtfiles,;t t
12951 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12952 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12953 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12954 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12955 s,@all_languages@,$all_languages,;t t
12956 s,@all_stagestuff@,$all_stagestuff,;t t
12957 s,@build_exeext@,$build_exeext,;t t
12958 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12959 s,@build_xm_file_list@,$build_xm_file_list,;t t
12960 s,@build_xm_include_list@,$build_xm_include_list,;t t
12961 s,@build_xm_defines@,$build_xm_defines,;t t
12962 s,@check_languages@,$check_languages,;t t
12963 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12964 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12965 s,@cpp_install_dir@,$cpp_install_dir,;t t
12966 s,@xmake_file@,$xmake_file,;t t
12967 s,@tmake_file@,$tmake_file,;t t
12968 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12969 s,@extra_headers_list@,$extra_headers_list,;t t
12970 s,@extra_objs@,$extra_objs,;t t
12971 s,@extra_parts@,$extra_parts,;t t
12972 s,@extra_passes@,$extra_passes,;t t
12973 s,@extra_programs@,$extra_programs,;t t
12974 s,@float_h_file@,$float_h_file,;t t
12975 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12976 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12977 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12978 s,@gcc_version@,$gcc_version,;t t
12979 s,@gcc_version_full@,$gcc_version_full,;t t
12980 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12981 s,@host_exeext@,$host_exeext,;t t
12982 s,@host_xm_file_list@,$host_xm_file_list,;t t
12983 s,@host_xm_include_list@,$host_xm_include_list,;t t
12984 s,@host_xm_defines@,$host_xm_defines,;t t
12985 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12986 s,@install@,$install,;t t
12987 s,@lang_opt_files@,$lang_opt_files,;t t
12988 s,@lang_specs_files@,$lang_specs_files,;t t
12989 s,@lang_tree_files@,$lang_tree_files,;t t
12990 s,@local_prefix@,$local_prefix,;t t
12991 s,@md_file@,$md_file,;t t
12992 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12993 s,@out_file@,$out_file,;t t
12994 s,@out_object_file@,$out_object_file,;t t
12995 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12996 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12997 s,@symbolic_link@,$symbolic_link,;t t
12998 s,@thread_file@,$thread_file,;t t
12999 s,@tm_file_list@,$tm_file_list,;t t
13000 s,@tm_include_list@,$tm_include_list,;t t
13001 s,@tm_defines@,$tm_defines,;t t
13002 s,@tm_p_file_list@,$tm_p_file_list,;t t
13003 s,@tm_p_include_list@,$tm_p_include_list,;t t
13004 s,@xm_file_list@,$xm_file_list,;t t
13005 s,@xm_include_list@,$xm_include_list,;t t
13006 s,@xm_defines@,$xm_defines,;t t
13007 s,@target_noncanonical@,$target_noncanonical,;t t
13008 s,@c_target_objs@,$c_target_objs,;t t
13009 s,@cxx_target_objs@,$cxx_target_objs,;t t
13010 s,@target_cpu_default@,$target_cpu_default,;t t
13011 s,@LIBOBJS@,$LIBOBJS,;t t
13012 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13013 /@language_hooks@/r $language_hooks
13014 s,@language_hooks@,,;t t
13015 CEOF
13016
13017 _ACEOF
13018
13019 cat >>$CONFIG_STATUS <<\_ACEOF
13020 # Split the substitutions into bite-sized pieces for seds with
13021 # small command number limits, like on Digital OSF/1 and HP-UX.
13022 ac_max_sed_lines=48
13023 ac_sed_frag=1 # Number of current file.
13024 ac_beg=1 # First line for current file.
13025 ac_end=$ac_max_sed_lines # Line after last line for current file.
13026 ac_more_lines=:
13027 ac_sed_cmds=
13028 while $ac_more_lines; do
13029 if test $ac_beg -gt 1; then
13030 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13031 else
13032 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13033 fi
13034 if test ! -s $tmp/subs.frag; then
13035 ac_more_lines=false
13036 else
13037 # The purpose of the label and of the branching condition is to
13038 # speed up the sed processing (if there are no `@' at all, there
13039 # is no need to browse any of the substitutions).
13040 # These are the two extra sed commands mentioned above.
13041 (echo ':t
13042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13043 if test -z "$ac_sed_cmds"; then
13044 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13045 else
13046 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13047 fi
13048 ac_sed_frag=`expr $ac_sed_frag + 1`
13049 ac_beg=$ac_end
13050 ac_end=`expr $ac_end + $ac_max_sed_lines`
13051 fi
13052 done
13053 if test -z "$ac_sed_cmds"; then
13054 ac_sed_cmds=cat
13055 fi
13056 fi # test -n "$CONFIG_FILES"
13057
13058 _ACEOF
13059 cat >>$CONFIG_STATUS <<\_ACEOF
13060 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13061 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13062 case $ac_file in
13063 - | *:- | *:-:* ) # input from stdin
13064 cat >$tmp/stdin
13065 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13066 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13067 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13068 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13069 * ) ac_file_in=$ac_file.in ;;
13070 esac
13071
13072 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13073 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13075 X"$ac_file" : 'X\(//\)[^/]' \| \
13076 X"$ac_file" : 'X\(//\)$' \| \
13077 X"$ac_file" : 'X\(/\)' \| \
13078 . : '\(.\)' 2>/dev/null ||
13079 echo X"$ac_file" |
13080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13082 /^X\(\/\/\)$/{ s//\1/; q; }
13083 /^X\(\/\).*/{ s//\1/; q; }
13084 s/.*/./; q'`
13085 { if $as_mkdir_p; then
13086 mkdir -p "$ac_dir"
13087 else
13088 as_dir="$ac_dir"
13089 as_dirs=
13090 while test ! -d "$as_dir"; do
13091 as_dirs="$as_dir $as_dirs"
13092 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13094 X"$as_dir" : 'X\(//\)[^/]' \| \
13095 X"$as_dir" : 'X\(//\)$' \| \
13096 X"$as_dir" : 'X\(/\)' \| \
13097 . : '\(.\)' 2>/dev/null ||
13098 echo X"$as_dir" |
13099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13101 /^X\(\/\/\)$/{ s//\1/; q; }
13102 /^X\(\/\).*/{ s//\1/; q; }
13103 s/.*/./; q'`
13104 done
13105 test ! -n "$as_dirs" || mkdir $as_dirs
13106 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13107 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13108 { (exit 1); exit 1; }; }; }
13109
13110 ac_builddir=.
13111
13112 if test "$ac_dir" != .; then
13113 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13114 # A "../" for each directory in $ac_dir_suffix.
13115 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13116 else
13117 ac_dir_suffix= ac_top_builddir=
13118 fi
13119
13120 case $srcdir in
13121 .) # No --srcdir option. We are building in place.
13122 ac_srcdir=.
13123 if test -z "$ac_top_builddir"; then
13124 ac_top_srcdir=.
13125 else
13126 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13127 fi ;;
13128 [\\/]* | ?:[\\/]* ) # Absolute path.
13129 ac_srcdir=$srcdir$ac_dir_suffix;
13130 ac_top_srcdir=$srcdir ;;
13131 *) # Relative path.
13132 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13133 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13134 esac
13135
13136 # Do not use `cd foo && pwd` to compute absolute paths, because
13137 # the directories may not exist.
13138 case `pwd` in
13139 .) ac_abs_builddir="$ac_dir";;
13140 *)
13141 case "$ac_dir" in
13142 .) ac_abs_builddir=`pwd`;;
13143 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13144 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13145 esac;;
13146 esac
13147 case $ac_abs_builddir in
13148 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13149 *)
13150 case ${ac_top_builddir}. in
13151 .) ac_abs_top_builddir=$ac_abs_builddir;;
13152 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13153 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13154 esac;;
13155 esac
13156 case $ac_abs_builddir in
13157 .) ac_abs_srcdir=$ac_srcdir;;
13158 *)
13159 case $ac_srcdir in
13160 .) ac_abs_srcdir=$ac_abs_builddir;;
13161 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13162 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13163 esac;;
13164 esac
13165 case $ac_abs_builddir in
13166 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13167 *)
13168 case $ac_top_srcdir in
13169 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13170 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13171 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13172 esac;;
13173 esac
13174
13175
13176
13177 # Let's still pretend it is `configure' which instantiates (i.e., don't
13178 # use $as_me), people would be surprised to read:
13179 # /* config.h. Generated by config.status. */
13180 if test x"$ac_file" = x-; then
13181 configure_input=
13182 else
13183 configure_input="$ac_file. "
13184 fi
13185 configure_input=$configure_input"Generated from `echo $ac_file_in |
13186 sed 's,.*/,,'` by configure."
13187
13188 # First look for the input files in the build tree, otherwise in the
13189 # src tree.
13190 ac_file_inputs=`IFS=:
13191 for f in $ac_file_in; do
13192 case $f in
13193 -) echo $tmp/stdin ;;
13194 [\\/$]*)
13195 # Absolute (can't be DOS-style, as IFS=:)
13196 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13197 echo "$as_me: error: cannot find input file: $f" >&2;}
13198 { (exit 1); exit 1; }; }
13199 echo "$f";;
13200 *) # Relative
13201 if test -f "$f"; then
13202 # Build tree
13203 echo "$f"
13204 elif test -f "$srcdir/$f"; then
13205 # Source tree
13206 echo "$srcdir/$f"
13207 else
13208 # /dev/null tree
13209 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13210 echo "$as_me: error: cannot find input file: $f" >&2;}
13211 { (exit 1); exit 1; }; }
13212 fi;;
13213 esac
13214 done` || { (exit 1); exit 1; }
13215
13216 if test x"$ac_file" != x-; then
13217 { echo "$as_me:$LINENO: creating $ac_file" >&5
13218 echo "$as_me: creating $ac_file" >&6;}
13219 rm -f "$ac_file"
13220 fi
13221 _ACEOF
13222 cat >>$CONFIG_STATUS <<_ACEOF
13223 sed "$ac_vpsub
13224 $extrasub
13225 _ACEOF
13226 cat >>$CONFIG_STATUS <<\_ACEOF
13227 :t
13228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13229 s,@configure_input@,$configure_input,;t t
13230 s,@srcdir@,$ac_srcdir,;t t
13231 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13232 s,@top_srcdir@,$ac_top_srcdir,;t t
13233 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13234 s,@builddir@,$ac_builddir,;t t
13235 s,@abs_builddir@,$ac_abs_builddir,;t t
13236 s,@top_builddir@,$ac_top_builddir,;t t
13237 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13238 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13239 rm -f $tmp/stdin
13240 if test x"$ac_file" != x-; then
13241 mv $tmp/out $ac_file
13242 else
13243 cat $tmp/out
13244 rm -f $tmp/out
13245 fi
13246
13247 done
13248 _ACEOF
13249 cat >>$CONFIG_STATUS <<\_ACEOF
13250
13251 #
13252 # CONFIG_HEADER section.
13253 #
13254
13255 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13256 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13257 #
13258 # ac_d sets the value in "#define NAME VALUE" lines.
13259 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13260 ac_dB='[ ].*$,\1#\2'
13261 ac_dC=' '
13262 ac_dD=',;t'
13263 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13264 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13265 ac_uB='$,\1#\2define\3'
13266 ac_uC=' '
13267 ac_uD=',;t'
13268
13269 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13270 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13271 case $ac_file in
13272 - | *:- | *:-:* ) # input from stdin
13273 cat >$tmp/stdin
13274 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13275 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13276 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13277 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13278 * ) ac_file_in=$ac_file.in ;;
13279 esac
13280
13281 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13282 echo "$as_me: creating $ac_file" >&6;}
13283
13284 # First look for the input files in the build tree, otherwise in the
13285 # src tree.
13286 ac_file_inputs=`IFS=:
13287 for f in $ac_file_in; do
13288 case $f in
13289 -) echo $tmp/stdin ;;
13290 [\\/$]*)
13291 # Absolute (can't be DOS-style, as IFS=:)
13292 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13293 echo "$as_me: error: cannot find input file: $f" >&2;}
13294 { (exit 1); exit 1; }; }
13295 # Do quote $f, to prevent DOS paths from being IFS'd.
13296 echo "$f";;
13297 *) # Relative
13298 if test -f "$f"; then
13299 # Build tree
13300 echo "$f"
13301 elif test -f "$srcdir/$f"; then
13302 # Source tree
13303 echo "$srcdir/$f"
13304 else
13305 # /dev/null tree
13306 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13307 echo "$as_me: error: cannot find input file: $f" >&2;}
13308 { (exit 1); exit 1; }; }
13309 fi;;
13310 esac
13311 done` || { (exit 1); exit 1; }
13312 # Remove the trailing spaces.
13313 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13314
13315 _ACEOF
13316
13317 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13318 # `conftest.undefs', that substitutes the proper values into
13319 # config.h.in to produce config.h. The first handles `#define'
13320 # templates, and the second `#undef' templates.
13321 # And first: Protect against being on the right side of a sed subst in
13322 # config.status. Protect against being in an unquoted here document
13323 # in config.status.
13324 rm -f conftest.defines conftest.undefs
13325 # Using a here document instead of a string reduces the quoting nightmare.
13326 # Putting comments in sed scripts is not portable.
13327 #
13328 # `end' is used to avoid that the second main sed command (meant for
13329 # 0-ary CPP macros) applies to n-ary macro definitions.
13330 # See the Autoconf documentation for `clear'.
13331 cat >confdef2sed.sed <<\_ACEOF
13332 s/[\\&,]/\\&/g
13333 s,[\\$`],\\&,g
13334 t clear
13335 : clear
13336 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13337 t end
13338 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13339 : end
13340 _ACEOF
13341 # If some macros were called several times there might be several times
13342 # the same #defines, which is useless. Nevertheless, we may not want to
13343 # sort them, since we want the *last* AC-DEFINE to be honored.
13344 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13345 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13346 rm -f confdef2sed.sed
13347
13348 # This sed command replaces #undef with comments. This is necessary, for
13349 # example, in the case of _POSIX_SOURCE, which is predefined and required
13350 # on some systems where configure will not decide to define it.
13351 cat >>conftest.undefs <<\_ACEOF
13352 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13353 _ACEOF
13354
13355 # Break up conftest.defines because some shells have a limit on the size
13356 # of here documents, and old seds have small limits too (100 cmds).
13357 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13358 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13359 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13360 echo ' :' >>$CONFIG_STATUS
13361 rm -f conftest.tail
13362 while grep . conftest.defines >/dev/null
13363 do
13364 # Write a limited-size here document to $tmp/defines.sed.
13365 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13366 # Speed up: don't consider the non `#define' lines.
13367 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13368 # Work around the forget-to-reset-the-flag bug.
13369 echo 't clr' >>$CONFIG_STATUS
13370 echo ': clr' >>$CONFIG_STATUS
13371 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13372 echo 'CEOF
13373 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13374 rm -f $tmp/in
13375 mv $tmp/out $tmp/in
13376 ' >>$CONFIG_STATUS
13377 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13378 rm -f conftest.defines
13379 mv conftest.tail conftest.defines
13380 done
13381 rm -f conftest.defines
13382 echo ' fi # grep' >>$CONFIG_STATUS
13383 echo >>$CONFIG_STATUS
13384
13385 # Break up conftest.undefs because some shells have a limit on the size
13386 # of here documents, and old seds have small limits too (100 cmds).
13387 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13388 rm -f conftest.tail
13389 while grep . conftest.undefs >/dev/null
13390 do
13391 # Write a limited-size here document to $tmp/undefs.sed.
13392 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13393 # Speed up: don't consider the non `#undef'
13394 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13395 # Work around the forget-to-reset-the-flag bug.
13396 echo 't clr' >>$CONFIG_STATUS
13397 echo ': clr' >>$CONFIG_STATUS
13398 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13399 echo 'CEOF
13400 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13401 rm -f $tmp/in
13402 mv $tmp/out $tmp/in
13403 ' >>$CONFIG_STATUS
13404 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13405 rm -f conftest.undefs
13406 mv conftest.tail conftest.undefs
13407 done
13408 rm -f conftest.undefs
13409
13410 cat >>$CONFIG_STATUS <<\_ACEOF
13411 # Let's still pretend it is `configure' which instantiates (i.e., don't
13412 # use $as_me), people would be surprised to read:
13413 # /* config.h. Generated by config.status. */
13414 if test x"$ac_file" = x-; then
13415 echo "/* Generated by configure. */" >$tmp/config.h
13416 else
13417 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13418 fi
13419 cat $tmp/in >>$tmp/config.h
13420 rm -f $tmp/in
13421 if test x"$ac_file" != x-; then
13422 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13423 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13424 echo "$as_me: $ac_file is unchanged" >&6;}
13425 else
13426 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13428 X"$ac_file" : 'X\(//\)[^/]' \| \
13429 X"$ac_file" : 'X\(//\)$' \| \
13430 X"$ac_file" : 'X\(/\)' \| \
13431 . : '\(.\)' 2>/dev/null ||
13432 echo X"$ac_file" |
13433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13435 /^X\(\/\/\)$/{ s//\1/; q; }
13436 /^X\(\/\).*/{ s//\1/; q; }
13437 s/.*/./; q'`
13438 { if $as_mkdir_p; then
13439 mkdir -p "$ac_dir"
13440 else
13441 as_dir="$ac_dir"
13442 as_dirs=
13443 while test ! -d "$as_dir"; do
13444 as_dirs="$as_dir $as_dirs"
13445 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13447 X"$as_dir" : 'X\(//\)[^/]' \| \
13448 X"$as_dir" : 'X\(//\)$' \| \
13449 X"$as_dir" : 'X\(/\)' \| \
13450 . : '\(.\)' 2>/dev/null ||
13451 echo X"$as_dir" |
13452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13454 /^X\(\/\/\)$/{ s//\1/; q; }
13455 /^X\(\/\).*/{ s//\1/; q; }
13456 s/.*/./; q'`
13457 done
13458 test ! -n "$as_dirs" || mkdir $as_dirs
13459 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13460 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13461 { (exit 1); exit 1; }; }; }
13462
13463 rm -f $ac_file
13464 mv $tmp/config.h $ac_file
13465 fi
13466 else
13467 cat $tmp/config.h
13468 rm -f $tmp/config.h
13469 fi
13470 done
13471 _ACEOF
13472 cat >>$CONFIG_STATUS <<\_ACEOF
13473
13474 #
13475 # CONFIG_COMMANDS section.
13476 #
13477 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13478 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13479 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13480 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13481 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13482 X"$ac_dest" : 'X\(//\)[^/]' \| \
13483 X"$ac_dest" : 'X\(//\)$' \| \
13484 X"$ac_dest" : 'X\(/\)' \| \
13485 . : '\(.\)' 2>/dev/null ||
13486 echo X"$ac_dest" |
13487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13489 /^X\(\/\/\)$/{ s//\1/; q; }
13490 /^X\(\/\).*/{ s//\1/; q; }
13491 s/.*/./; q'`
13492 { if $as_mkdir_p; then
13493 mkdir -p "$ac_dir"
13494 else
13495 as_dir="$ac_dir"
13496 as_dirs=
13497 while test ! -d "$as_dir"; do
13498 as_dirs="$as_dir $as_dirs"
13499 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13501 X"$as_dir" : 'X\(//\)[^/]' \| \
13502 X"$as_dir" : 'X\(//\)$' \| \
13503 X"$as_dir" : 'X\(/\)' \| \
13504 . : '\(.\)' 2>/dev/null ||
13505 echo X"$as_dir" |
13506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13508 /^X\(\/\/\)$/{ s//\1/; q; }
13509 /^X\(\/\).*/{ s//\1/; q; }
13510 s/.*/./; q'`
13511 done
13512 test ! -n "$as_dirs" || mkdir $as_dirs
13513 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13515 { (exit 1); exit 1; }; }; }
13516
13517 ac_builddir=.
13518
13519 if test "$ac_dir" != .; then
13520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13521 # A "../" for each directory in $ac_dir_suffix.
13522 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13523 else
13524 ac_dir_suffix= ac_top_builddir=
13525 fi
13526
13527 case $srcdir in
13528 .) # No --srcdir option. We are building in place.
13529 ac_srcdir=.
13530 if test -z "$ac_top_builddir"; then
13531 ac_top_srcdir=.
13532 else
13533 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13534 fi ;;
13535 [\\/]* | ?:[\\/]* ) # Absolute path.
13536 ac_srcdir=$srcdir$ac_dir_suffix;
13537 ac_top_srcdir=$srcdir ;;
13538 *) # Relative path.
13539 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13540 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13541 esac
13542
13543 # Do not use `cd foo && pwd` to compute absolute paths, because
13544 # the directories may not exist.
13545 case `pwd` in
13546 .) ac_abs_builddir="$ac_dir";;
13547 *)
13548 case "$ac_dir" in
13549 .) ac_abs_builddir=`pwd`;;
13550 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13551 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13552 esac;;
13553 esac
13554 case $ac_abs_builddir in
13555 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13556 *)
13557 case ${ac_top_builddir}. in
13558 .) ac_abs_top_builddir=$ac_abs_builddir;;
13559 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13560 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13561 esac;;
13562 esac
13563 case $ac_abs_builddir in
13564 .) ac_abs_srcdir=$ac_srcdir;;
13565 *)
13566 case $ac_srcdir in
13567 .) ac_abs_srcdir=$ac_abs_builddir;;
13568 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13569 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13570 esac;;
13571 esac
13572 case $ac_abs_builddir in
13573 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13574 *)
13575 case $ac_top_srcdir in
13576 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13577 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13578 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13579 esac;;
13580 esac
13581
13582
13583 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13584 echo "$as_me: executing $ac_dest commands" >&6;}
13585 case $ac_dest in
13586 default )
13587 case ${CONFIG_HEADERS} in
13588 *auto-host.h:config.in*)
13589 echo > cstamp-h ;;
13590 esac
13591 # Make sure all the subdirs exist.
13592 for d in $subdirs
13593 do
13594 test -d $d || mkdir $d
13595 done
13596 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13597 # bootstrapping and the installation procedure can still use
13598 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13599 # FLAGS_TO_PASS has been modified to solve the problem there.
13600 # This is virtually a duplicate of what happens in configure.lang; we do
13601 # an extra check to make sure this only happens if ln -s can be used.
13602 if test "$symbolic_link" = "ln -s"; then
13603 for d in ${subdirs} fixinc ; do
13604 STARTDIR=`${PWDCMD-pwd}`
13605 cd $d
13606 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13607 do
13608 rm -f $t
13609 $symbolic_link ../$t $t 2>/dev/null
13610 done
13611 cd $STARTDIR
13612 done
13613 else true ; fi
13614 ;;
13615 esac
13616 done
13617 _ACEOF
13618
13619 cat >>$CONFIG_STATUS <<\_ACEOF
13620
13621 { (exit 0); exit 0; }
13622 _ACEOF
13623 chmod +x $CONFIG_STATUS
13624 ac_clean_files=$ac_clean_files_save
13625
13626
13627 # configure is writing to config.log, and then calls config.status.
13628 # config.status does its own redirection, appending to config.log.
13629 # Unfortunately, on DOS this fails, as config.log is still kept open
13630 # by configure, so config.status won't be able to write to it; its
13631 # output is simply discarded. So we exec the FD to /dev/null,
13632 # effectively closing config.log, so it can be properly (re)opened and
13633 # appended to by config.status. When coming back to configure, we
13634 # need to make the FD available again.
13635 if test "$no_create" != yes; then
13636 ac_cs_success=:
13637 ac_config_status_args=
13638 test "$silent" = yes &&
13639 ac_config_status_args="$ac_config_status_args --quiet"
13640 exec 5>/dev/null
13641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13642 exec 5>>config.log
13643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13644 # would make configure fail if this is the last instruction.
13645 $ac_cs_success || { (exit 1); exit 1; }
13646 fi
13647