* acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): When
[official-gcc.git] / gcc / configure
blob5bac01649b219a6c8b9c8b725102b914a9516dbe
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files build_subdir host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump 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_selected_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 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 thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: yes,no,all,none,release.
871 Flags are: assert,fold,gc,gcac,misc,
872 rtlflag,rtl,runtime,tree,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
879 default is noopt
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-decimal-float enable decimal float extension to C
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
898 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
904 of the registry key
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
912 Optional Packages:
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search for libiconv in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-long-double-128 Use 128-bit long double by default.
936 --with-gc={page,zone} choose the garbage collection mechanism to use
937 with the compiler
938 --with-system-zlib use installed libz
939 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
940 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
941 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
942 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
944 Some influential environment variables:
945 CC C compiler command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
948 nonstandard directory <lib dir>
949 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
950 headers in a nonstandard directory <include dir>
951 CPP C preprocessor
952 GMPLIBS How to link GMP
953 GMPINC How to find GMP include files
955 Use these variables to override the choices made by `configure' or to help
956 it to find libraries and programs with nonstandard names/locations.
958 _ACEOF
961 if test "$ac_init_help" = "recursive"; then
962 # If there are subdirs, report their specific --help.
963 ac_popdir=`pwd`
964 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
965 test -d $ac_dir || continue
966 ac_builddir=.
968 if test "$ac_dir" != .; then
969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
970 # A "../" for each directory in $ac_dir_suffix.
971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
972 else
973 ac_dir_suffix= ac_top_builddir=
976 case $srcdir in
977 .) # No --srcdir option. We are building in place.
978 ac_srcdir=.
979 if test -z "$ac_top_builddir"; then
980 ac_top_srcdir=.
981 else
982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
983 fi ;;
984 [\\/]* | ?:[\\/]* ) # Absolute path.
985 ac_srcdir=$srcdir$ac_dir_suffix;
986 ac_top_srcdir=$srcdir ;;
987 *) # Relative path.
988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
990 esac
992 # Do not use `cd foo && pwd` to compute absolute paths, because
993 # the directories may not exist.
994 case `pwd` in
995 .) ac_abs_builddir="$ac_dir";;
997 case "$ac_dir" in
998 .) ac_abs_builddir=`pwd`;;
999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1001 esac;;
1002 esac
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 case ${ac_top_builddir}. in
1007 .) ac_abs_top_builddir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1010 esac;;
1011 esac
1012 case $ac_abs_builddir in
1013 .) ac_abs_srcdir=$ac_srcdir;;
1015 case $ac_srcdir in
1016 .) ac_abs_srcdir=$ac_abs_builddir;;
1017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1019 esac;;
1020 esac
1021 case $ac_abs_builddir in
1022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 case $ac_top_srcdir in
1025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1028 esac;;
1029 esac
1031 cd $ac_dir
1032 # Check for guested configure; otherwise get Cygnus style configure.
1033 if test -f $ac_srcdir/configure.gnu; then
1034 echo
1035 $SHELL $ac_srcdir/configure.gnu --help=recursive
1036 elif test -f $ac_srcdir/configure; then
1037 echo
1038 $SHELL $ac_srcdir/configure --help=recursive
1039 elif test -f $ac_srcdir/configure.ac ||
1040 test -f $ac_srcdir/configure.in; then
1041 echo
1042 $ac_configure --help
1043 else
1044 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1046 cd $ac_popdir
1047 done
1050 test -n "$ac_init_help" && exit 0
1051 if $ac_init_version; then
1052 cat <<\_ACEOF
1054 Copyright (C) 2003 Free Software Foundation, Inc.
1055 This configure script is free software; the Free Software Foundation
1056 gives unlimited permission to copy, distribute and modify it.
1057 _ACEOF
1058 exit 0
1060 exec 5>config.log
1061 cat >&5 <<_ACEOF
1062 This file contains any messages produced by compilers while
1063 running configure, to aid debugging if configure makes a mistake.
1065 It was created by $as_me, which was
1066 generated by GNU Autoconf 2.59. Invocation command line was
1068 $ $0 $@
1070 _ACEOF
1072 cat <<_ASUNAME
1073 ## --------- ##
1074 ## Platform. ##
1075 ## --------- ##
1077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1089 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1094 _ASUNAME
1096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1097 for as_dir in $PATH
1099 IFS=$as_save_IFS
1100 test -z "$as_dir" && as_dir=.
1101 echo "PATH: $as_dir"
1102 done
1104 } >&5
1106 cat >&5 <<_ACEOF
1109 ## ----------- ##
1110 ## Core tests. ##
1111 ## ----------- ##
1113 _ACEOF
1116 # Keep a trace of the command line.
1117 # Strip out --no-create and --no-recursion so they do not pile up.
1118 # Strip out --silent because we don't want to record it for future runs.
1119 # Also quote any args containing shell meta-characters.
1120 # Make two passes to allow for proper duplicate-argument suppression.
1121 ac_configure_args=
1122 ac_configure_args0=
1123 ac_configure_args1=
1124 ac_sep=
1125 ac_must_keep_next=false
1126 for ac_pass in 1 2
1128 for ac_arg
1130 case $ac_arg in
1131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 continue ;;
1135 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1136 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1137 esac
1138 case $ac_pass in
1139 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1142 if test $ac_must_keep_next = true; then
1143 ac_must_keep_next=false # Got value, back to normal.
1144 else
1145 case $ac_arg in
1146 *=* | --config-cache | -C | -disable-* | --disable-* \
1147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1149 | -with-* | --with-* | -without-* | --without-* | --x)
1150 case "$ac_configure_args0 " in
1151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1152 esac
1154 -* ) ac_must_keep_next=true ;;
1155 esac
1157 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1158 # Get rid of the leading space.
1159 ac_sep=" "
1161 esac
1162 done
1163 done
1164 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1165 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167 # When interrupted or exit'd, cleanup temporary files, and complete
1168 # config.log. We remove comments because anyway the quotes in there
1169 # would cause problems or look ugly.
1170 # WARNING: Be sure not to use single quotes in there, as some shells,
1171 # such as our DU 5.0 friend, will then `close' the trap.
1172 trap 'exit_status=$?
1173 # Save into config.log some information that might help in debugging.
1175 echo
1177 cat <<\_ASBOX
1178 ## ---------------- ##
1179 ## Cache variables. ##
1180 ## ---------------- ##
1181 _ASBOX
1182 echo
1183 # The following way of writing the cache mishandles newlines in values,
1185 (set) 2>&1 |
1186 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1187 *ac_space=\ *)
1188 sed -n \
1189 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1193 sed -n \
1194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1196 esac;
1198 echo
1200 cat <<\_ASBOX
1201 ## ----------------- ##
1202 ## Output variables. ##
1203 ## ----------------- ##
1204 _ASBOX
1205 echo
1206 for ac_var in $ac_subst_vars
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1210 done | sort
1211 echo
1213 if test -n "$ac_subst_files"; then
1214 cat <<\_ASBOX
1215 ## ------------- ##
1216 ## Output files. ##
1217 ## ------------- ##
1218 _ASBOX
1219 echo
1220 for ac_var in $ac_subst_files
1222 eval ac_val=$`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1224 done | sort
1225 echo
1228 if test -s confdefs.h; then
1229 cat <<\_ASBOX
1230 ## ----------- ##
1231 ## confdefs.h. ##
1232 ## ----------- ##
1233 _ASBOX
1234 echo
1235 sed "/^$/d" confdefs.h | sort
1236 echo
1238 test "$ac_signal" != 0 &&
1239 echo "$as_me: caught signal $ac_signal"
1240 echo "$as_me: exit $exit_status"
1241 } >&5
1242 rm -f core *.core &&
1243 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1244 exit $exit_status
1246 for ac_signal in 1 2 13 15; do
1247 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1248 done
1249 ac_signal=0
1251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1252 rm -rf conftest* confdefs.h
1253 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1254 echo >confdefs.h
1256 # Predefined preprocessor variables.
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_NAME "$PACKAGE_NAME"
1260 _ACEOF
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1265 _ACEOF
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1270 _ACEOF
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_STRING "$PACKAGE_STRING"
1275 _ACEOF
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1280 _ACEOF
1283 # Let the site file select an alternate cache file if it wants to.
1284 # Prefer explicitly selected file to automatically selected ones.
1285 if test -z "$CONFIG_SITE"; then
1286 if test "x$prefix" != xNONE; then
1287 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1288 else
1289 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1292 for ac_site_file in $CONFIG_SITE; do
1293 if test -r "$ac_site_file"; then
1294 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295 echo "$as_me: loading site script $ac_site_file" >&6;}
1296 sed 's/^/| /' "$ac_site_file" >&5
1297 . "$ac_site_file"
1299 done
1301 if test -r "$cache_file"; then
1302 # Some versions of bash will fail to source /dev/null (special
1303 # files actually), so we avoid doing that.
1304 if test -f "$cache_file"; then
1305 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306 echo "$as_me: loading cache $cache_file" >&6;}
1307 case $cache_file in
1308 [\\/]* | ?:[\\/]* ) . $cache_file;;
1309 *) . ./$cache_file;;
1310 esac
1312 else
1313 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314 echo "$as_me: creating cache $cache_file" >&6;}
1315 >$cache_file
1318 # Check that the precious variables saved in the cache have kept the same
1319 # value.
1320 ac_cache_corrupted=false
1321 for ac_var in `(set) 2>&1 |
1322 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324 eval ac_new_set=\$ac_env_${ac_var}_set
1325 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326 eval ac_new_val="\$ac_env_${ac_var}_value"
1327 case $ac_old_set,$ac_new_set in
1328 set,)
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1331 ac_cache_corrupted=: ;;
1332 ,set)
1333 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1336 ,);;
1338 if test "x$ac_old_val" != "x$ac_new_val"; then
1339 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1340 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1341 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1342 echo "$as_me: former value: $ac_old_val" >&2;}
1343 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1344 echo "$as_me: current value: $ac_new_val" >&2;}
1345 ac_cache_corrupted=:
1346 fi;;
1347 esac
1348 # Pass precious variables to config.status.
1349 if test "$ac_new_set" = set; then
1350 case $ac_new_val in
1351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1353 *) ac_arg=$ac_var=$ac_new_val ;;
1354 esac
1355 case " $ac_configure_args " in
1356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1357 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1358 esac
1360 done
1361 if $ac_cache_corrupted; then
1362 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1365 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366 { (exit 1); exit 1; }; }
1369 ac_ext=c
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1394 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1397 gcc_version=`cat $srcdir/BASE-VER`
1399 # Determine the host, build, and target systems
1400 ac_aux_dir=
1401 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1402 if test -f $ac_dir/install-sh; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/install-sh -c"
1405 break
1406 elif test -f $ac_dir/install.sh; then
1407 ac_aux_dir=$ac_dir
1408 ac_install_sh="$ac_aux_dir/install.sh -c"
1409 break
1410 elif test -f $ac_dir/shtool; then
1411 ac_aux_dir=$ac_dir
1412 ac_install_sh="$ac_aux_dir/shtool install -c"
1413 break
1415 done
1416 if test -z "$ac_aux_dir"; then
1417 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1418 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1419 { (exit 1); exit 1; }; }
1421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1423 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425 # Make sure we can run config.sub.
1426 $ac_config_sub sun4 >/dev/null 2>&1 ||
1427 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1428 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1429 { (exit 1); exit 1; }; }
1431 echo "$as_me:$LINENO: checking build system type" >&5
1432 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1433 if test "${ac_cv_build+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 ac_cv_build_alias=$build_alias
1437 test -z "$ac_cv_build_alias" &&
1438 ac_cv_build_alias=`$ac_config_guess`
1439 test -z "$ac_cv_build_alias" &&
1440 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1442 { (exit 1); exit 1; }; }
1443 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1450 echo "${ECHO_T}$ac_cv_build" >&6
1451 build=$ac_cv_build
1452 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457 echo "$as_me:$LINENO: checking host system type" >&5
1458 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1459 if test "${ac_cv_host+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462 ac_cv_host_alias=$host_alias
1463 test -z "$ac_cv_host_alias" &&
1464 ac_cv_host_alias=$ac_cv_build_alias
1465 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1466 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1467 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1468 { (exit 1); exit 1; }; }
1471 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1472 echo "${ECHO_T}$ac_cv_host" >&6
1473 host=$ac_cv_host
1474 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1475 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1476 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1479 echo "$as_me:$LINENO: checking target system type" >&5
1480 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1481 if test "${ac_cv_target+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 ac_cv_target_alias=$target_alias
1485 test "x$ac_cv_target_alias" = "x" &&
1486 ac_cv_target_alias=$ac_cv_host_alias
1487 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1488 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1490 { (exit 1); exit 1; }; }
1493 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1494 echo "${ECHO_T}$ac_cv_target" >&6
1495 target=$ac_cv_target
1496 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1497 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1498 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1501 # The aliases save the names the user supplied, while $host etc.
1502 # will get canonicalized.
1503 test -n "$target_alias" &&
1504 test "$program_prefix$program_suffix$program_transform_name" = \
1505 NONENONEs,x,x, &&
1506 program_prefix=${target_alias}-
1508 # Determine the noncanonical target name, for directory use.
1509 ACX_NONCANONICAL_TARGET
1511 # Determine the target- and build-specific subdirectories
1512 GCC_TOPLEV_SUBDIRS
1514 # Set program_transform_name
1515 test "$program_prefix" != NONE &&
1516 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1517 # Use a double $ so make ignores it.
1518 test "$program_suffix" != NONE &&
1519 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1520 # Double any \ or $. echo might interpret backslashes.
1521 # By default was `s,x,x', remove it if useless.
1522 cat <<\_ACEOF >conftest.sed
1523 s/[\\$]/&&/g;s/;s,x,x,$//
1524 _ACEOF
1525 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1526 rm conftest.sed
1529 # Check for bogus environment variables.
1530 # Test if LIBRARY_PATH contains the notation for the current directory
1531 # since this would lead to problems installing/building glibc.
1532 # LIBRARY_PATH contains the current directory if one of the following
1533 # is true:
1534 # - one of the terminals (":" and ";") is the first or last sign
1535 # - two terminals occur directly after each other
1536 # - the path contains an element with a dot in it
1537 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1538 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1539 case ${LIBRARY_PATH} in
1540 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1541 library_path_setting="contains current directory"
1544 library_path_setting="ok"
1546 esac
1547 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1548 echo "${ECHO_T}$library_path_setting" >&6
1549 if test "$library_path_setting" != "ok"; then
1550 { { echo "$as_me:$LINENO: error:
1551 *** LIBRARY_PATH shouldn't contain the current directory when
1552 *** building gcc. Please change the environment variable
1553 *** and run configure again." >&5
1554 echo "$as_me: error:
1555 *** LIBRARY_PATH shouldn't contain the current directory when
1556 *** building gcc. Please change the environment variable
1557 *** and run configure again." >&2;}
1558 { (exit 1); exit 1; }; }
1561 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1562 # since this would lead to problems installing/building glibc.
1563 # GCC_EXEC_PREFIX contains the current directory if one of the following
1564 # is true:
1565 # - one of the terminals (":" and ";") is the first or last sign
1566 # - two terminals occur directly after each other
1567 # - the path contains an element with a dot in it
1568 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1569 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1570 case ${GCC_EXEC_PREFIX} in
1571 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1572 gcc_exec_prefix_setting="contains current directory"
1575 gcc_exec_prefix_setting="ok"
1577 esac
1578 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1579 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1580 if test "$gcc_exec_prefix_setting" != "ok"; then
1581 { { echo "$as_me:$LINENO: error:
1582 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1583 *** building gcc. Please change the environment variable
1584 *** and run configure again." >&5
1585 echo "$as_me: error:
1586 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1587 *** building gcc. Please change the environment variable
1588 *** and run configure again." >&2;}
1589 { (exit 1); exit 1; }; }
1592 # -----------
1593 # Directories
1594 # -----------
1596 # Specify the local prefix
1597 local_prefix=
1599 # Check whether --with-local-prefix or --without-local-prefix was given.
1600 if test "${with_local_prefix+set}" = set; then
1601 withval="$with_local_prefix"
1602 case "${withval}" in
1603 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1604 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1605 { (exit 1); exit 1; }; } ;;
1606 no) ;;
1607 *) local_prefix=$with_local_prefix ;;
1608 esac
1611 # Default local prefix if it is empty
1612 if test x$local_prefix = x; then
1613 local_prefix=/usr/local
1616 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1617 # passed in by the toplevel make and thus we'd get different behavior
1618 # depending on where we built the sources.
1619 gcc_gxx_include_dir=
1620 # Specify the g++ header file directory
1622 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1623 if test "${with_gxx_include_dir+set}" = set; then
1624 withval="$with_gxx_include_dir"
1625 case "${withval}" in
1626 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1627 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1628 { (exit 1); exit 1; }; } ;;
1629 no) ;;
1630 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1631 esac
1634 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1635 if test x${gcc_gxx_include_dir} = x; then
1636 if test x${enable_version_specific_runtime_libs} = xyes; then
1637 gcc_gxx_include_dir='${libsubdir}/include/c++'
1638 else
1639 libstdcxx_incdir='include/c++/$(version)'
1640 if test x$host != x$target; then
1641 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1643 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1648 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1649 if test "${with_cpp_install_dir+set}" = set; then
1650 withval="$with_cpp_install_dir"
1651 if test x$withval = xyes; then
1652 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1653 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1654 { (exit 1); exit 1; }; }
1655 elif test x$withval != xno; then
1656 cpp_install_dir=$withval
1660 # We would like to our source tree to be readonly. However when releases or
1661 # pre-releases are generated, the flex/bison generated files as well as the
1662 # various formats of manuals need to be included along with the rest of the
1663 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1664 # just that.
1666 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1667 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1668 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1669 if test "${enable_generated_files_in_srcdir+set}" = set; then
1670 enableval="$enable_generated_files_in_srcdir"
1671 generated_files_in_srcdir=$enableval
1672 else
1673 generated_files_in_srcdir=no
1676 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1677 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1679 if test "$generated_files_in_srcdir" = "yes"; then
1680 GENINSRC=''
1681 else
1682 GENINSRC='#'
1686 # -------------------
1687 # Find default linker
1688 # -------------------
1690 # With GNU ld
1692 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1693 if test "${with_gnu_ld+set}" = set; then
1694 withval="$with_gnu_ld"
1695 gnu_ld_flag="$with_gnu_ld"
1696 else
1697 gnu_ld_flag=no
1700 # With pre-defined ld
1702 # Check whether --with-ld or --without-ld was given.
1703 if test "${with_ld+set}" = set; then
1704 withval="$with_ld"
1705 DEFAULT_LINKER="$with_ld"
1707 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1708 if test ! -x "$DEFAULT_LINKER"; then
1709 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1710 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1711 { (exit 1); exit 1; }; }
1712 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1713 gnu_ld_flag=yes
1716 cat >>confdefs.h <<_ACEOF
1717 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1718 _ACEOF
1722 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1723 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1724 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1725 if test x"$gnu_ld_flag" = x"no"; then
1726 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1727 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1728 else
1729 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1730 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1737 # With demangler in GNU ld
1739 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1740 if test "${with_demangler_in_ld+set}" = set; then
1741 withval="$with_demangler_in_ld"
1742 demangler_in_ld="$with_demangler_in_ld"
1743 else
1744 demangler_in_ld=no
1747 # ----------------------
1748 # Find default assembler
1749 # ----------------------
1751 # With GNU as
1753 # Check whether --with-gnu-as or --without-gnu-as was given.
1754 if test "${with_gnu_as+set}" = set; then
1755 withval="$with_gnu_as"
1756 gas_flag="$with_gnu_as"
1757 else
1758 gas_flag=no
1762 # Check whether --with-as or --without-as was given.
1763 if test "${with_as+set}" = set; then
1764 withval="$with_as"
1765 DEFAULT_ASSEMBLER="$with_as"
1767 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1768 if test ! -x "$DEFAULT_ASSEMBLER"; then
1769 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1770 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1771 { (exit 1); exit 1; }; }
1772 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1773 gas_flag=yes
1776 cat >>confdefs.h <<_ACEOF
1777 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1778 _ACEOF
1782 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1783 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1784 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1785 if test x"$gas_flag" = x"no"; then
1786 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1787 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1788 else
1789 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1790 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1792 else
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1797 # ---------------
1798 # Find C compiler
1799 # ---------------
1801 # If a non-executable a.out is present (e.g. created by GNU as above even if
1802 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1803 # file, even when creating an executable, so an execution test fails.
1804 # Remove possible default executable files to avoid this.
1806 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1807 # Autoconf includes it.
1808 rm -f a.out a.exe b.out
1810 # Find the native compiler
1811 ac_ext=c
1812 ac_cpp='$CPP $CPPFLAGS'
1813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 else
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1838 done
1839 done
1843 CC=$ac_cv_prog_CC
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1847 else
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$ac_cv_prog_CC"; then
1854 ac_ct_CC=$CC
1855 # Extract the first word of "gcc", so it can be a program name with args.
1856 set dummy gcc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="gcc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1876 done
1877 done
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1885 else
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1890 CC=$ac_ct_CC
1891 else
1892 CC="$ac_cv_prog_CC"
1895 if test -z "$CC"; then
1896 if test -n "$ac_tool_prefix"; then
1897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1898 set dummy ${ac_tool_prefix}cc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1906 else
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_CC="${ac_tool_prefix}cc"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 break 2
1918 done
1919 done
1923 CC=$ac_cv_prog_CC
1924 if test -n "$CC"; then
1925 echo "$as_me:$LINENO: result: $CC" >&5
1926 echo "${ECHO_T}$CC" >&6
1927 else
1928 echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1933 if test -z "$ac_cv_prog_CC"; then
1934 ac_ct_CC=$CC
1935 # Extract the first word of "cc", so it can be a program name with args.
1936 set dummy cc; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942 if test -n "$ac_ct_CC"; then
1943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944 else
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_ac_ct_CC="cc"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1956 done
1957 done
1961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1962 if test -n "$ac_ct_CC"; then
1963 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964 echo "${ECHO_T}$ac_ct_CC" >&6
1965 else
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1970 CC=$ac_ct_CC
1971 else
1972 CC="$ac_cv_prog_CC"
1976 if test -z "$CC"; then
1977 # Extract the first word of "cc", so it can be a program name with args.
1978 set dummy cc; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987 ac_prog_rejected=no
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1996 ac_prog_rejected=yes
1997 continue
1999 ac_cv_prog_CC="cc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2003 done
2004 done
2006 if test $ac_prog_rejected = yes; then
2007 # We found a bogon in the path, so make sure we never use it.
2008 set dummy $ac_cv_prog_CC
2009 shift
2010 if test $# != 0; then
2011 # We chose a different compiler from the bogus one.
2012 # However, it has the same basename, so the bogon will be chosen
2013 # first if we set CC to just the basename; use the full file name.
2014 shift
2015 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2024 else
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2030 if test -z "$CC"; then
2031 if test -n "$ac_tool_prefix"; then
2032 for ac_prog in cl
2034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2055 done
2056 done
2060 CC=$ac_cv_prog_CC
2061 if test -n "$CC"; then
2062 echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6
2064 else
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2069 test -n "$CC" && break
2070 done
2072 if test -z "$CC"; then
2073 ac_ct_CC=$CC
2074 for ac_prog in cl
2076 # Extract the first word of "$ac_prog", so it can be a program name with args.
2077 set dummy $ac_prog; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093 ac_cv_prog_ac_ct_CC="$ac_prog"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2097 done
2098 done
2102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105 echo "${ECHO_T}$ac_ct_CC" >&6
2106 else
2107 echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2111 test -n "$ac_ct_CC" && break
2112 done
2114 CC=$ac_ct_CC
2120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&5
2122 echo "$as_me: error: no acceptable C compiler found in \$PATH
2123 See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2126 # Provide some information about the compiler.
2127 echo "$as_me:$LINENO:" \
2128 "checking for C compiler version" >&5
2129 ac_compiler=`set X $ac_compile; echo $2`
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2131 (eval $ac_compiler --version </dev/null >&5) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2136 (eval $ac_compiler -v </dev/null >&5) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2141 (eval $ac_compiler -V </dev/null >&5) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2146 cat >conftest.$ac_ext <<_ACEOF
2147 /* confdefs.h. */
2148 _ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2154 main ()
2158 return 0;
2160 _ACEOF
2161 ac_clean_files_save=$ac_clean_files
2162 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2163 # Try to create an executable without -o first, disregard a.out.
2164 # It will help us diagnose broken compilers, and finding out an intuition
2165 # of exeext.
2166 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2167 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2168 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2170 (eval $ac_link_default) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 # Find the output, starting from the most likely. This scheme is
2175 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2176 # resort.
2178 # Be careful to initialize this variable, since it used to be cached.
2179 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2180 ac_cv_exeext=
2181 # b.out is created by i960 compilers.
2182 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2184 test -f "$ac_file" || continue
2185 case $ac_file in
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2188 conftest.$ac_ext )
2189 # This is the source file.
2191 [ab].out )
2192 # We found the default executable, but exeext='' is most
2193 # certainly right.
2194 break;;
2195 *.* )
2196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197 # FIXME: I believe we export ac_cv_exeext for Libtool,
2198 # but it would be cool to find out if it's true. Does anybody
2199 # maintain Libtool? --akim.
2200 export ac_cv_exeext
2201 break;;
2203 break;;
2204 esac
2205 done
2206 else
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2210 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&2;}
2214 { (exit 77); exit 77; }; }
2217 ac_exeext=$ac_cv_exeext
2218 echo "$as_me:$LINENO: result: $ac_file" >&5
2219 echo "${ECHO_T}$ac_file" >&6
2221 # Check the compiler produces executables we can run. If not, either
2222 # the compiler is broken, or we cross compile.
2223 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2225 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226 # If not cross compiling, check that we can run a simple program.
2227 if test "$cross_compiling" != yes; then
2228 if { ac_try='./$ac_file'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 cross_compiling=no
2235 else
2236 if test "$cross_compiling" = maybe; then
2237 cross_compiling=yes
2238 else
2239 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&2;}
2245 { (exit 1); exit 1; }; }
2249 echo "$as_me:$LINENO: result: yes" >&5
2250 echo "${ECHO_T}yes" >&6
2252 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2253 ac_clean_files=$ac_clean_files_save
2254 # Check the compiler produces executables we can run. If not, either
2255 # the compiler is broken, or we cross compile.
2256 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2258 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259 echo "${ECHO_T}$cross_compiling" >&6
2261 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2264 (eval $ac_link) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2270 # work properly (i.e., refer to `conftest.exe'), while it won't with
2271 # `rm'.
2272 for ac_file in conftest.exe conftest conftest.*; do
2273 test -f "$ac_file" || continue
2274 case $ac_file in
2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277 export ac_cv_exeext
2278 break;;
2279 * ) break;;
2280 esac
2281 done
2282 else
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2290 rm -f conftest$ac_cv_exeext
2291 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292 echo "${ECHO_T}$ac_cv_exeext" >&6
2294 rm -f conftest.$ac_ext
2295 EXEEXT=$ac_cv_exeext
2296 ac_exeext=$EXEEXT
2297 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2299 if test "${ac_cv_objext+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h. */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2310 main ()
2314 return 0;
2316 _ACEOF
2317 rm -f conftest.o conftest.obj
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2324 case $ac_file in
2325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327 break;;
2328 esac
2329 done
2330 else
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337 See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2341 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344 echo "${ECHO_T}$ac_cv_objext" >&6
2345 OBJEXT=$ac_cv_objext
2346 ac_objext=$OBJEXT
2347 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2349 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 cat >conftest.$ac_ext <<_ACEOF
2353 /* confdefs.h. */
2354 _ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2360 main ()
2362 #ifndef __GNUC__
2363 choke me
2364 #endif
2367 return 0;
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2373 ac_status=$?
2374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 ac_compiler_gnu=yes
2393 else
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2397 ac_compiler_gnu=no
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2403 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405 GCC=`test $ac_compiler_gnu = yes && echo yes`
2406 ac_test_CFLAGS=${CFLAGS+set}
2407 ac_save_CFLAGS=$CFLAGS
2408 CFLAGS="-g"
2409 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411 if test "${ac_cv_prog_cc_g+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414 cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h. */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2422 main ()
2426 return 0;
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2432 ac_status=$?
2433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 ac_cv_prog_cc_g=yes
2452 else
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2456 ac_cv_prog_cc_g=no
2458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2460 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2461 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2462 if test "$ac_test_CFLAGS" = set; then
2463 CFLAGS=$ac_save_CFLAGS
2464 elif test $ac_cv_prog_cc_g = yes; then
2465 if test "$GCC" = yes; then
2466 CFLAGS="-g -O2"
2467 else
2468 CFLAGS="-g"
2470 else
2471 if test "$GCC" = yes; then
2472 CFLAGS="-O2"
2473 else
2474 CFLAGS=
2477 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2478 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2479 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 ac_cv_prog_cc_stdc=no
2483 ac_save_CC=$CC
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2490 #include <stdarg.h>
2491 #include <stdio.h>
2492 #include <sys/types.h>
2493 #include <sys/stat.h>
2494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2495 struct buf { int x; };
2496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2497 static char *e (p, i)
2498 char **p;
2499 int i;
2501 return p[i];
2503 static char *f (char * (*g) (char **, int), char **p, ...)
2505 char *s;
2506 va_list v;
2507 va_start (v,p);
2508 s = g (p, va_arg (v,int));
2509 va_end (v);
2510 return s;
2513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2514 function prototypes and stuff, but not '\xHH' hex character constants.
2515 These don't provoke an error unfortunately, instead are silently treated
2516 as 'x'. The following induces an error, until -std1 is added to get
2517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2518 array size at least. It's necessary to write '\x00'==0 to get something
2519 that's true only with -std1. */
2520 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2522 int test (int i, double x);
2523 struct s1 {int (*f) (int a);};
2524 struct s2 {int (*f) (double a);};
2525 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2526 int argc;
2527 char **argv;
2529 main ()
2531 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2533 return 0;
2535 _ACEOF
2536 # Don't try gcc -ansi; that turns off useful extensions and
2537 # breaks some systems' header files.
2538 # AIX -qlanglvl=ansi
2539 # Ultrix and OSF/1 -std1
2540 # HP-UX 10.20 and later -Ae
2541 # HP-UX older versions -Aa -D_HPUX_SOURCE
2542 # SVR4 -Xc -D__EXTENSIONS__
2543 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2545 CC="$ac_save_CC $ac_arg"
2546 rm -f conftest.$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2549 ac_status=$?
2550 grep -v '^ *+' conftest.er1 >conftest.err
2551 rm -f conftest.er1
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 ac_cv_prog_cc_stdc=$ac_arg
2569 break
2570 else
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2575 rm -f conftest.err conftest.$ac_objext
2576 done
2577 rm -f conftest.$ac_ext conftest.$ac_objext
2578 CC=$ac_save_CC
2582 case "x$ac_cv_prog_cc_stdc" in
2583 x|xno)
2584 echo "$as_me:$LINENO: result: none needed" >&5
2585 echo "${ECHO_T}none needed" >&6 ;;
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589 CC="$CC $ac_cv_prog_cc_stdc" ;;
2590 esac
2592 # Some people use a C++ compiler to compile C. Since we use `exit',
2593 # in C++ we need to declare it. In case someone uses the same compiler
2594 # for both compiling C and C++ we need to have the C++ compiler decide
2595 # the declaration of exit, since it's the most demanding environment.
2596 cat >conftest.$ac_ext <<_ACEOF
2597 #ifndef __cplusplus
2598 choke me
2599 #endif
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 for ac_declaration in \
2624 '' \
2625 'extern "C" void std::exit (int) throw (); using std::exit;' \
2626 'extern "C" void std::exit (int); using std::exit;' \
2627 'extern "C" void exit (int) throw ();' \
2628 'extern "C" void exit (int);' \
2629 'void exit (int);'
2631 cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h. */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2637 $ac_declaration
2638 #include <stdlib.h>
2640 main ()
2642 exit (42);
2644 return 0;
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2650 ac_status=$?
2651 grep -v '^ *+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2670 else
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2674 continue
2676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677 cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h. */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2683 $ac_declaration
2685 main ()
2687 exit (42);
2689 return 0;
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2695 ac_status=$?
2696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag"
2702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 break
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721 done
2722 rm -f conftest*
2723 if test -n "$ac_declaration"; then
2724 echo '#ifdef __cplusplus' >>confdefs.h
2725 echo $ac_declaration >>confdefs.h
2726 echo '#endif' >>confdefs.h
2729 else
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 ac_ext=c
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 if test "x$CC" != xcc; then
2742 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2743 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2744 else
2745 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2746 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2748 set dummy $CC; ac_cc=`echo $2 |
2749 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2750 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 main ()
2765 return 0;
2767 _ACEOF
2768 # Make sure it works both with $CC and with simple cc.
2769 # We do the test twice because some compilers refuse to overwrite an
2770 # existing .o file with -o, though they will create one.
2771 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2772 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); };
2782 then
2783 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2784 if test "x$CC" != xcc; then
2785 # Test first that cc exists at all.
2786 if { ac_try='cc -c conftest.$ac_ext >&5'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; }; then
2792 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2793 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); };
2803 then
2804 # cc works too.
2806 else
2807 # cc exists but doesn't like -o.
2808 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2812 else
2813 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2815 rm -f conftest*
2818 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2819 echo "$as_me:$LINENO: result: yes" >&5
2820 echo "${ECHO_T}yes" >&6
2821 else
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2825 cat >>confdefs.h <<\_ACEOF
2826 #define NO_MINUS_C_MINUS_O 1
2827 _ACEOF
2831 # expand $ac_aux_dir to an absolute path
2832 am_aux_dir=`cd $ac_aux_dir && pwd`
2834 # FIXME: we rely on the cache variable name because
2835 # there is no other way.
2836 set dummy $CC
2837 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2838 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2839 # Losing compiler, so override with the script.
2840 # FIXME: It is wrong to rewrite CC.
2841 # But if we don't then we get into trouble of one sort or another.
2842 # A longer-term fix would be to have automake use am__CC in this case,
2843 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2844 CC="$am_aux_dir/compile $CC"
2847 # autoconf is lame and doesn't give us any substitution variable for this.
2848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2849 NO_MINUS_C_MINUS_O=yes
2850 else
2851 OUTPUT_OPTION='-o $@'
2856 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2857 # optimizations to be activated explicitly by the toplevel.
2858 case "$CC" in
2859 */prev-gcc/xgcc*) ;;
2860 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2861 esac
2864 # -------------------------
2865 # Check C compiler features
2866 # -------------------------
2868 ac_ext=c
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2874 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2875 # On Suns, sometimes $CPP names a directory.
2876 if test -n "$CPP" && test -d "$CPP"; then
2877 CPP=
2879 if test -z "$CPP"; then
2880 if test "${ac_cv_prog_CPP+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 # Double quotes because CPP needs to be expanded
2884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2886 ac_preproc_ok=false
2887 for ac_c_preproc_warn_flag in '' yes
2889 # Use a header file that comes with gcc, so configuring glibc
2890 # with a fresh cross-compiler works.
2891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892 # <limits.h> exists even on freestanding compilers.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp. "Syntax error" is here to catch this case.
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2901 #ifdef __STDC__
2902 # include <limits.h>
2903 #else
2904 # include <assert.h>
2905 #endif
2906 Syntax error
2907 _ACEOF
2908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } >/dev/null; then
2916 if test -s conftest.err; then
2917 ac_cpp_err=$ac_c_preproc_warn_flag
2918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2919 else
2920 ac_cpp_err=
2922 else
2923 ac_cpp_err=yes
2925 if test -z "$ac_cpp_err"; then
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 # Broken: fails on valid input.
2932 continue
2934 rm -f conftest.err conftest.$ac_ext
2936 # OK, works on sane cases. Now check whether non-existent headers
2937 # can be detected and how.
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h. */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2944 #include <ac_nonexistent.h>
2945 _ACEOF
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } >/dev/null; then
2954 if test -s conftest.err; then
2955 ac_cpp_err=$ac_c_preproc_warn_flag
2956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2957 else
2958 ac_cpp_err=
2960 else
2961 ac_cpp_err=yes
2963 if test -z "$ac_cpp_err"; then
2964 # Broken: success on invalid input.
2965 continue
2966 else
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Passes both tests.
2971 ac_preproc_ok=:
2972 break
2974 rm -f conftest.err conftest.$ac_ext
2976 done
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2980 break
2983 done
2984 ac_cv_prog_CPP=$CPP
2987 CPP=$ac_cv_prog_CPP
2988 else
2989 ac_cv_prog_CPP=$CPP
2991 echo "$as_me:$LINENO: result: $CPP" >&5
2992 echo "${ECHO_T}$CPP" >&6
2993 ac_preproc_ok=false
2994 for ac_c_preproc_warn_flag in '' yes
2996 # Use a header file that comes with gcc, so configuring glibc
2997 # with a fresh cross-compiler works.
2998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2999 # <limits.h> exists even on freestanding compilers.
3000 # On the NeXT, cc -E runs the code through the compiler's parser,
3001 # not just through cpp. "Syntax error" is here to catch this case.
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3008 #ifdef __STDC__
3009 # include <limits.h>
3010 #else
3011 # include <assert.h>
3012 #endif
3013 Syntax error
3014 _ACEOF
3015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017 ac_status=$?
3018 grep -v '^ *+' conftest.er1 >conftest.err
3019 rm -f conftest.er1
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } >/dev/null; then
3023 if test -s conftest.err; then
3024 ac_cpp_err=$ac_c_preproc_warn_flag
3025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3026 else
3027 ac_cpp_err=
3029 else
3030 ac_cpp_err=yes
3032 if test -z "$ac_cpp_err"; then
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 # Broken: fails on valid input.
3039 continue
3041 rm -f conftest.err conftest.$ac_ext
3043 # OK, works on sane cases. Now check whether non-existent headers
3044 # can be detected and how.
3045 cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h. */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3051 #include <ac_nonexistent.h>
3052 _ACEOF
3053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } >/dev/null; then
3061 if test -s conftest.err; then
3062 ac_cpp_err=$ac_c_preproc_warn_flag
3063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3064 else
3065 ac_cpp_err=
3067 else
3068 ac_cpp_err=yes
3070 if test -z "$ac_cpp_err"; then
3071 # Broken: success on invalid input.
3072 continue
3073 else
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 # Passes both tests.
3078 ac_preproc_ok=:
3079 break
3081 rm -f conftest.err conftest.$ac_ext
3083 done
3084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3085 rm -f conftest.err conftest.$ac_ext
3086 if $ac_preproc_ok; then
3088 else
3089 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&5
3091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&2;}
3093 { (exit 1); exit 1; }; }
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 echo "$as_me:$LINENO: checking for inline" >&5
3104 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3105 if test "${ac_cv_c_inline+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 ac_cv_c_inline=no
3109 for ac_kw in inline __inline__ __inline; do
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #ifndef __cplusplus
3117 typedef int foo_t;
3118 static $ac_kw foo_t static_foo () {return 0; }
3119 $ac_kw foo_t foo () {return 0; }
3120 #endif
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag"
3133 || test ! -s conftest.err'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 (eval $ac_try) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 (eval $ac_try) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 ac_cv_c_inline=$ac_kw; break
3146 else
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3152 done
3155 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3156 echo "${ECHO_T}$ac_cv_c_inline" >&6
3159 case $ac_cv_c_inline in
3160 inline | yes) ;;
3162 case $ac_cv_c_inline in
3163 no) ac_val=;;
3164 *) ac_val=$ac_cv_c_inline;;
3165 esac
3166 cat >>confdefs.h <<_ACEOF
3167 #ifndef __cplusplus
3168 #define inline $ac_val
3169 #endif
3170 _ACEOF
3172 esac
3175 # sizeof(char) is 1 by definition.
3177 echo "$as_me:$LINENO: checking for egrep" >&5
3178 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3179 if test "${ac_cv_prog_egrep+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3183 then ac_cv_prog_egrep='grep -E'
3184 else ac_cv_prog_egrep='egrep'
3187 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3188 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3189 EGREP=$ac_cv_prog_egrep
3192 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3194 if test "${ac_cv_header_stdc+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h. */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3203 #include <stdlib.h>
3204 #include <stdarg.h>
3205 #include <string.h>
3206 #include <float.h>
3209 main ()
3213 return 0;
3215 _ACEOF
3216 rm -f conftest.$ac_objext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3218 (eval $ac_compile) 2>conftest.er1
3219 ac_status=$?
3220 grep -v '^ *+' conftest.er1 >conftest.err
3221 rm -f conftest.er1
3222 cat conftest.err >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } &&
3225 { ac_try='test -z "$ac_c_werror_flag"
3226 || test ! -s conftest.err'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; } &&
3232 { ac_try='test -s conftest.$ac_objext'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 (eval $ac_try) 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; }; then
3238 ac_cv_header_stdc=yes
3239 else
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 ac_cv_header_stdc=no
3245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3247 if test $ac_cv_header_stdc = yes; then
3248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255 #include <string.h>
3257 _ACEOF
3258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3259 $EGREP "memchr" >/dev/null 2>&1; then
3261 else
3262 ac_cv_header_stdc=no
3264 rm -f conftest*
3268 if test $ac_cv_header_stdc = yes; then
3269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3270 cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h. */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276 #include <stdlib.h>
3278 _ACEOF
3279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3280 $EGREP "free" >/dev/null 2>&1; then
3282 else
3283 ac_cv_header_stdc=no
3285 rm -f conftest*
3289 if test $ac_cv_header_stdc = yes; then
3290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3291 if test "$cross_compiling" = yes; then
3293 else
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300 #include <ctype.h>
3301 #if ((' ' & 0x0FF) == 0x020)
3302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3304 #else
3305 # define ISLOWER(c) \
3306 (('a' <= (c) && (c) <= 'i') \
3307 || ('j' <= (c) && (c) <= 'r') \
3308 || ('s' <= (c) && (c) <= 'z'))
3309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3310 #endif
3312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3314 main ()
3316 int i;
3317 for (i = 0; i < 256; i++)
3318 if (XOR (islower (i), ISLOWER (i))
3319 || toupper (i) != TOUPPER (i))
3320 exit(2);
3321 exit (0);
3323 _ACEOF
3324 rm -f conftest$ac_exeext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3326 (eval $ac_link) 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 (eval $ac_try) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; }; then
3336 else
3337 echo "$as_me: program exited with status $ac_status" >&5
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3341 ( exit $ac_status )
3342 ac_cv_header_stdc=no
3344 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3350 if test $ac_cv_header_stdc = yes; then
3352 cat >>confdefs.h <<\_ACEOF
3353 #define STDC_HEADERS 1
3354 _ACEOF
3358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3369 inttypes.h stdint.h unistd.h
3371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3372 echo "$as_me:$LINENO: checking for $ac_header" >&5
3373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
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 $ac_includes_default
3385 #include <$ac_header>
3386 _ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389 (eval $ac_compile) 2>conftest.er1
3390 ac_status=$?
3391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try='test -z "$ac_c_werror_flag"
3397 || test ! -s conftest.err'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; } &&
3403 { ac_try='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 eval "$as_ac_Header=yes"
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3414 eval "$as_ac_Header=no"
3416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3421 cat >>confdefs.h <<_ACEOF
3422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3423 _ACEOF
3427 done
3430 echo "$as_me:$LINENO: checking for void *" >&5
3431 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3432 if test "${ac_cv_type_void_p+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h. */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441 $ac_includes_default
3443 main ()
3445 if ((void * *) 0)
3446 return 0;
3447 if (sizeof (void *))
3448 return 0;
3450 return 0;
3452 _ACEOF
3453 rm -f conftest.$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 ac_cv_type_void_p=yes
3476 else
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 ac_cv_type_void_p=no
3482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3484 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3485 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3487 echo "$as_me:$LINENO: checking size of void *" >&5
3488 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3489 if test "${ac_cv_sizeof_void_p+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492 if test "$ac_cv_type_void_p" = yes; then
3493 # The cast to unsigned long works around a bug in the HP C Compiler
3494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3496 # This bug is HP SR number 8606223364.
3497 if test "$cross_compiling" = yes; then
3498 # Depending upon the size, compute the lo and hi bounds.
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 $ac_includes_default
3507 main ()
3509 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3510 test_array [0] = 0
3513 return 0;
3515 _ACEOF
3516 rm -f conftest.$ac_objext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try='test -z "$ac_c_werror_flag"
3526 || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 ac_lo=0 ac_mid=0
3539 while :; do
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 $ac_includes_default
3548 main ()
3550 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3551 test_array [0] = 0
3554 return 0;
3556 _ACEOF
3557 rm -f conftest.$ac_objext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -z "$ac_c_werror_flag"
3567 || test ! -s conftest.err'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; } &&
3573 { ac_try='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 (eval $ac_try) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 ac_hi=$ac_mid; break
3580 else
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 ac_lo=`expr $ac_mid + 1`
3585 if test $ac_lo -le $ac_mid; then
3586 ac_lo= ac_hi=
3587 break
3589 ac_mid=`expr 2 '*' $ac_mid + 1`
3591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592 done
3593 else
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 $ac_includes_default
3605 main ()
3607 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3608 test_array [0] = 0
3611 return 0;
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3617 ac_status=$?
3618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 ac_hi=-1 ac_mid=-1
3637 while :; do
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 $ac_includes_default
3646 main ()
3648 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3649 test_array [0] = 0
3652 return 0;
3654 _ACEOF
3655 rm -f conftest.$ac_objext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_lo=$ac_mid; break
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 ac_hi=`expr '(' $ac_mid ')' - 1`
3683 if test $ac_mid -le $ac_hi; then
3684 ac_lo= ac_hi=
3685 break
3687 ac_mid=`expr 2 '*' $ac_mid`
3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3690 done
3691 else
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 ac_lo= ac_hi=
3697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3700 # Binary search between lo and hi bounds.
3701 while test "x$ac_lo" != "x$ac_hi"; do
3702 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3703 cat >conftest.$ac_ext <<_ACEOF
3704 /* confdefs.h. */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 $ac_includes_default
3711 main ()
3713 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3714 test_array [0] = 0
3717 return 0;
3719 _ACEOF
3720 rm -f conftest.$ac_objext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try='test -s conftest.$ac_objext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 ac_hi=$ac_mid
3743 else
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 ac_lo=`expr '(' $ac_mid ')' + 1`
3749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3750 done
3751 case $ac_lo in
3752 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3753 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3754 See \`config.log' for more details." >&5
3755 echo "$as_me: error: cannot compute sizeof (void *), 77
3756 See \`config.log' for more details." >&2;}
3757 { (exit 1); exit 1; }; } ;;
3758 esac
3759 else
3760 if test "$cross_compiling" = yes; then
3761 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3762 See \`config.log' for more details." >&5
3763 echo "$as_me: error: cannot run test program while cross compiling
3764 See \`config.log' for more details." >&2;}
3765 { (exit 1); exit 1; }; }
3766 else
3767 cat >conftest.$ac_ext <<_ACEOF
3768 /* confdefs.h. */
3769 _ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 $ac_includes_default
3774 long longval () { return (long) (sizeof (void *)); }
3775 unsigned long ulongval () { return (long) (sizeof (void *)); }
3776 #include <stdio.h>
3777 #include <stdlib.h>
3779 main ()
3782 FILE *f = fopen ("conftest.val", "w");
3783 if (! f)
3784 exit (1);
3785 if (((long) (sizeof (void *))) < 0)
3787 long i = longval ();
3788 if (i != ((long) (sizeof (void *))))
3789 exit (1);
3790 fprintf (f, "%ld\n", i);
3792 else
3794 unsigned long i = ulongval ();
3795 if (i != ((long) (sizeof (void *))))
3796 exit (1);
3797 fprintf (f, "%lu\n", i);
3799 exit (ferror (f) || fclose (f) != 0);
3802 return 0;
3804 _ACEOF
3805 rm -f conftest$ac_exeext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807 (eval $ac_link) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
3816 ac_cv_sizeof_void_p=`cat conftest.val`
3817 else
3818 echo "$as_me: program exited with status $ac_status" >&5
3819 echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3822 ( exit $ac_status )
3823 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3824 See \`config.log' for more details." >&5
3825 echo "$as_me: error: cannot compute sizeof (void *), 77
3826 See \`config.log' for more details." >&2;}
3827 { (exit 1); exit 1; }; }
3829 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3832 rm -f conftest.val
3833 else
3834 ac_cv_sizeof_void_p=0
3837 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3838 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3839 cat >>confdefs.h <<_ACEOF
3840 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3841 _ACEOF
3844 echo "$as_me:$LINENO: checking for short" >&5
3845 echo $ECHO_N "checking for short... $ECHO_C" >&6
3846 if test "${ac_cv_type_short+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 $ac_includes_default
3857 main ()
3859 if ((short *) 0)
3860 return 0;
3861 if (sizeof (short))
3862 return 0;
3864 return 0;
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_c_werror_flag"
3877 || test ! -s conftest.err'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; } &&
3883 { ac_try='test -s conftest.$ac_objext'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 (eval $ac_try) 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; }; then
3889 ac_cv_type_short=yes
3890 else
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 ac_cv_type_short=no
3896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3898 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3899 echo "${ECHO_T}$ac_cv_type_short" >&6
3901 echo "$as_me:$LINENO: checking size of short" >&5
3902 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3903 if test "${ac_cv_sizeof_short+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 if test "$ac_cv_type_short" = yes; then
3907 # The cast to unsigned long works around a bug in the HP C Compiler
3908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3910 # This bug is HP SR number 8606223364.
3911 if test "$cross_compiling" = yes; then
3912 # Depending upon the size, compute the lo and hi bounds.
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 $ac_includes_default
3921 main ()
3923 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3924 test_array [0] = 0
3927 return 0;
3929 _ACEOF
3930 rm -f conftest.$ac_objext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3932 (eval $ac_compile) 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } &&
3939 { ac_try='test -z "$ac_c_werror_flag"
3940 || test ! -s conftest.err'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 (eval $ac_try) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; } &&
3946 { ac_try='test -s conftest.$ac_objext'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 ac_lo=0 ac_mid=0
3953 while :; do
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h. */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3960 $ac_includes_default
3962 main ()
3964 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3965 test_array [0] = 0
3968 return 0;
3970 _ACEOF
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>conftest.er1
3974 ac_status=$?
3975 grep -v '^ *+' conftest.er1 >conftest.err
3976 rm -f conftest.er1
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } &&
3980 { ac_try='test -z "$ac_c_werror_flag"
3981 || test ! -s conftest.err'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_hi=$ac_mid; break
3994 else
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3998 ac_lo=`expr $ac_mid + 1`
3999 if test $ac_lo -le $ac_mid; then
4000 ac_lo= ac_hi=
4001 break
4003 ac_mid=`expr 2 '*' $ac_mid + 1`
4005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4006 done
4007 else
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4011 cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h. */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 $ac_includes_default
4019 main ()
4021 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4022 test_array [0] = 0
4025 return 0;
4027 _ACEOF
4028 rm -f conftest.$ac_objext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030 (eval $ac_compile) 2>conftest.er1
4031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -z "$ac_c_werror_flag"
4038 || test ! -s conftest.err'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; } &&
4044 { ac_try='test -s conftest.$ac_objext'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 (eval $ac_try) 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 ac_hi=-1 ac_mid=-1
4051 while :; do
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 $ac_includes_default
4060 main ()
4062 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4063 test_array [0] = 0
4066 return 0;
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 ac_lo=$ac_mid; break
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 ac_hi=`expr '(' $ac_mid ')' - 1`
4097 if test $ac_mid -le $ac_hi; then
4098 ac_lo= ac_hi=
4099 break
4101 ac_mid=`expr 2 '*' $ac_mid`
4103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4104 done
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 ac_lo= ac_hi=
4111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 # Binary search between lo and hi bounds.
4115 while test "x$ac_lo" != "x$ac_hi"; do
4116 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4117 cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h. */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 $ac_includes_default
4125 main ()
4127 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4128 test_array [0] = 0
4131 return 0;
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 (eval $ac_try) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_hi=$ac_mid
4157 else
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_lo=`expr '(' $ac_mid ')' + 1`
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164 done
4165 case $ac_lo in
4166 ?*) ac_cv_sizeof_short=$ac_lo;;
4167 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4168 See \`config.log' for more details." >&5
4169 echo "$as_me: error: cannot compute sizeof (short), 77
4170 See \`config.log' for more details." >&2;}
4171 { (exit 1); exit 1; }; } ;;
4172 esac
4173 else
4174 if test "$cross_compiling" = yes; then
4175 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4176 See \`config.log' for more details." >&5
4177 echo "$as_me: error: cannot run test program while cross compiling
4178 See \`config.log' for more details." >&2;}
4179 { (exit 1); exit 1; }; }
4180 else
4181 cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h. */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4187 $ac_includes_default
4188 long longval () { return (long) (sizeof (short)); }
4189 unsigned long ulongval () { return (long) (sizeof (short)); }
4190 #include <stdio.h>
4191 #include <stdlib.h>
4193 main ()
4196 FILE *f = fopen ("conftest.val", "w");
4197 if (! f)
4198 exit (1);
4199 if (((long) (sizeof (short))) < 0)
4201 long i = longval ();
4202 if (i != ((long) (sizeof (short))))
4203 exit (1);
4204 fprintf (f, "%ld\n", i);
4206 else
4208 unsigned long i = ulongval ();
4209 if (i != ((long) (sizeof (short))))
4210 exit (1);
4211 fprintf (f, "%lu\n", i);
4213 exit (ferror (f) || fclose (f) != 0);
4216 return 0;
4218 _ACEOF
4219 rm -f conftest$ac_exeext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4221 (eval $ac_link) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_cv_sizeof_short=`cat conftest.val`
4231 else
4232 echo "$as_me: program exited with status $ac_status" >&5
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 ( exit $ac_status )
4237 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4238 See \`config.log' for more details." >&5
4239 echo "$as_me: error: cannot compute sizeof (short), 77
4240 See \`config.log' for more details." >&2;}
4241 { (exit 1); exit 1; }; }
4243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4246 rm -f conftest.val
4247 else
4248 ac_cv_sizeof_short=0
4251 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4252 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4253 cat >>confdefs.h <<_ACEOF
4254 #define SIZEOF_SHORT $ac_cv_sizeof_short
4255 _ACEOF
4258 echo "$as_me:$LINENO: checking for int" >&5
4259 echo $ECHO_N "checking for int... $ECHO_C" >&6
4260 if test "${ac_cv_type_int+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 $ac_includes_default
4271 main ()
4273 if ((int *) 0)
4274 return 0;
4275 if (sizeof (int))
4276 return 0;
4278 return 0;
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag"
4291 || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 (eval $ac_try) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 ac_cv_type_int=yes
4304 else
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 ac_cv_type_int=no
4310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4312 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4313 echo "${ECHO_T}$ac_cv_type_int" >&6
4315 echo "$as_me:$LINENO: checking size of int" >&5
4316 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4317 if test "${ac_cv_sizeof_int+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320 if test "$ac_cv_type_int" = yes; then
4321 # The cast to unsigned long works around a bug in the HP C Compiler
4322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4324 # This bug is HP SR number 8606223364.
4325 if test "$cross_compiling" = yes; then
4326 # Depending upon the size, compute the lo and hi bounds.
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4335 main ()
4337 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4338 test_array [0] = 0
4341 return 0;
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest.$ac_objext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_lo=0 ac_mid=0
4367 while :; do
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 $ac_includes_default
4376 main ()
4378 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4379 test_array [0] = 0
4382 return 0;
4384 _ACEOF
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag"
4395 || test ! -s conftest.err'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_hi=$ac_mid; break
4408 else
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 ac_lo=`expr $ac_mid + 1`
4413 if test $ac_lo -le $ac_mid; then
4414 ac_lo= ac_hi=
4415 break
4417 ac_mid=`expr 2 '*' $ac_mid + 1`
4419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4420 done
4421 else
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4425 cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h. */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 $ac_includes_default
4433 main ()
4435 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4436 test_array [0] = 0
4439 return 0;
4441 _ACEOF
4442 rm -f conftest.$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -z "$ac_c_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_hi=-1 ac_mid=-1
4465 while :; do
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 $ac_includes_default
4474 main ()
4476 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4477 test_array [0] = 0
4480 return 0;
4482 _ACEOF
4483 rm -f conftest.$ac_objext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485 (eval $ac_compile) 2>conftest.er1
4486 ac_status=$?
4487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try='test -z "$ac_c_werror_flag"
4493 || test ! -s conftest.err'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; } &&
4499 { ac_try='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 ac_lo=$ac_mid; break
4506 else
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4510 ac_hi=`expr '(' $ac_mid ')' - 1`
4511 if test $ac_mid -le $ac_hi; then
4512 ac_lo= ac_hi=
4513 break
4515 ac_mid=`expr 2 '*' $ac_mid`
4517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4518 done
4519 else
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4523 ac_lo= ac_hi=
4525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4528 # Binary search between lo and hi bounds.
4529 while test "x$ac_lo" != "x$ac_hi"; do
4530 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h. */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4539 main ()
4541 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4542 test_array [0] = 0
4545 return 0;
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_hi=$ac_mid
4571 else
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 ac_lo=`expr '(' $ac_mid ')' + 1`
4577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4578 done
4579 case $ac_lo in
4580 ?*) ac_cv_sizeof_int=$ac_lo;;
4581 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4582 See \`config.log' for more details." >&5
4583 echo "$as_me: error: cannot compute sizeof (int), 77
4584 See \`config.log' for more details." >&2;}
4585 { (exit 1); exit 1; }; } ;;
4586 esac
4587 else
4588 if test "$cross_compiling" = yes; then
4589 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4590 See \`config.log' for more details." >&5
4591 echo "$as_me: error: cannot run test program while cross compiling
4592 See \`config.log' for more details." >&2;}
4593 { (exit 1); exit 1; }; }
4594 else
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 $ac_includes_default
4602 long longval () { return (long) (sizeof (int)); }
4603 unsigned long ulongval () { return (long) (sizeof (int)); }
4604 #include <stdio.h>
4605 #include <stdlib.h>
4607 main ()
4610 FILE *f = fopen ("conftest.val", "w");
4611 if (! f)
4612 exit (1);
4613 if (((long) (sizeof (int))) < 0)
4615 long i = longval ();
4616 if (i != ((long) (sizeof (int))))
4617 exit (1);
4618 fprintf (f, "%ld\n", i);
4620 else
4622 unsigned long i = ulongval ();
4623 if (i != ((long) (sizeof (int))))
4624 exit (1);
4625 fprintf (f, "%lu\n", i);
4627 exit (ferror (f) || fclose (f) != 0);
4630 return 0;
4632 _ACEOF
4633 rm -f conftest$ac_exeext
4634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4635 (eval $ac_link) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_cv_sizeof_int=`cat conftest.val`
4645 else
4646 echo "$as_me: program exited with status $ac_status" >&5
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 ( exit $ac_status )
4651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4652 See \`config.log' for more details." >&5
4653 echo "$as_me: error: cannot compute sizeof (int), 77
4654 See \`config.log' for more details." >&2;}
4655 { (exit 1); exit 1; }; }
4657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4660 rm -f conftest.val
4661 else
4662 ac_cv_sizeof_int=0
4665 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4666 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4667 cat >>confdefs.h <<_ACEOF
4668 #define SIZEOF_INT $ac_cv_sizeof_int
4669 _ACEOF
4672 echo "$as_me:$LINENO: checking for long" >&5
4673 echo $ECHO_N "checking for long... $ECHO_C" >&6
4674 if test "${ac_cv_type_long+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h. */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 $ac_includes_default
4685 main ()
4687 if ((long *) 0)
4688 return 0;
4689 if (sizeof (long))
4690 return 0;
4692 return 0;
4694 _ACEOF
4695 rm -f conftest.$ac_objext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697 (eval $ac_compile) 2>conftest.er1
4698 ac_status=$?
4699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest.$ac_objext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 ac_cv_type_long=yes
4718 else
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ac_cv_type_long=no
4724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4726 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4727 echo "${ECHO_T}$ac_cv_type_long" >&6
4729 echo "$as_me:$LINENO: checking size of long" >&5
4730 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4731 if test "${ac_cv_sizeof_long+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734 if test "$ac_cv_type_long" = yes; then
4735 # The cast to unsigned long works around a bug in the HP C Compiler
4736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4738 # This bug is HP SR number 8606223364.
4739 if test "$cross_compiling" = yes; then
4740 # Depending upon the size, compute the lo and hi bounds.
4741 cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h. */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 $ac_includes_default
4749 main ()
4751 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4752 test_array [0] = 0
4755 return 0;
4757 _ACEOF
4758 rm -f conftest.$ac_objext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760 (eval $ac_compile) 2>conftest.er1
4761 ac_status=$?
4762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -z "$ac_c_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 ac_lo=0 ac_mid=0
4781 while :; do
4782 cat >conftest.$ac_ext <<_ACEOF
4783 /* confdefs.h. */
4784 _ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4788 $ac_includes_default
4790 main ()
4792 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4793 test_array [0] = 0
4796 return 0;
4798 _ACEOF
4799 rm -f conftest.$ac_objext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801 (eval $ac_compile) 2>conftest.er1
4802 ac_status=$?
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try='test -z "$ac_c_werror_flag"
4809 || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_hi=$ac_mid; break
4822 else
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_lo=`expr $ac_mid + 1`
4827 if test $ac_lo -le $ac_mid; then
4828 ac_lo= ac_hi=
4829 break
4831 ac_mid=`expr 2 '*' $ac_mid + 1`
4833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4834 done
4835 else
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h. */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845 $ac_includes_default
4847 main ()
4849 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4850 test_array [0] = 0
4853 return 0;
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 ac_hi=-1 ac_mid=-1
4879 while :; do
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 $ac_includes_default
4888 main ()
4890 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4891 test_array [0] = 0
4894 return 0;
4896 _ACEOF
4897 rm -f conftest.$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 (eval $ac_try) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_lo=$ac_mid; break
4920 else
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 ac_hi=`expr '(' $ac_mid ')' - 1`
4925 if test $ac_mid -le $ac_hi; then
4926 ac_lo= ac_hi=
4927 break
4929 ac_mid=`expr 2 '*' $ac_mid`
4931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4932 done
4933 else
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 ac_lo= ac_hi=
4939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4942 # Binary search between lo and hi bounds.
4943 while test "x$ac_lo" != "x$ac_hi"; do
4944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4945 cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h. */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 $ac_includes_default
4953 main ()
4955 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4956 test_array [0] = 0
4959 return 0;
4961 _ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4965 ac_status=$?
4966 grep -v '^ *+' conftest.er1 >conftest.err
4967 rm -f conftest.er1
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -z "$ac_c_werror_flag"
4972 || test ! -s conftest.err'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; } &&
4978 { ac_try='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_hi=$ac_mid
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 ac_lo=`expr '(' $ac_mid ')' + 1`
4991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4992 done
4993 case $ac_lo in
4994 ?*) ac_cv_sizeof_long=$ac_lo;;
4995 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4996 See \`config.log' for more details." >&5
4997 echo "$as_me: error: cannot compute sizeof (long), 77
4998 See \`config.log' for more details." >&2;}
4999 { (exit 1); exit 1; }; } ;;
5000 esac
5001 else
5002 if test "$cross_compiling" = yes; then
5003 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5004 See \`config.log' for more details." >&5
5005 echo "$as_me: error: cannot run test program while cross compiling
5006 See \`config.log' for more details." >&2;}
5007 { (exit 1); exit 1; }; }
5008 else
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 $ac_includes_default
5016 long longval () { return (long) (sizeof (long)); }
5017 unsigned long ulongval () { return (long) (sizeof (long)); }
5018 #include <stdio.h>
5019 #include <stdlib.h>
5021 main ()
5024 FILE *f = fopen ("conftest.val", "w");
5025 if (! f)
5026 exit (1);
5027 if (((long) (sizeof (long))) < 0)
5029 long i = longval ();
5030 if (i != ((long) (sizeof (long))))
5031 exit (1);
5032 fprintf (f, "%ld\n", i);
5034 else
5036 unsigned long i = ulongval ();
5037 if (i != ((long) (sizeof (long))))
5038 exit (1);
5039 fprintf (f, "%lu\n", i);
5041 exit (ferror (f) || fclose (f) != 0);
5044 return 0;
5046 _ACEOF
5047 rm -f conftest$ac_exeext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049 (eval $ac_link) 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 (eval $ac_try) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 ac_cv_sizeof_long=`cat conftest.val`
5059 else
5060 echo "$as_me: program exited with status $ac_status" >&5
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 ( exit $ac_status )
5065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5066 See \`config.log' for more details." >&5
5067 echo "$as_me: error: cannot compute sizeof (long), 77
5068 See \`config.log' for more details." >&2;}
5069 { (exit 1); exit 1; }; }
5071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5074 rm -f conftest.val
5075 else
5076 ac_cv_sizeof_long=0
5079 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5080 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5081 cat >>confdefs.h <<_ACEOF
5082 #define SIZEOF_LONG $ac_cv_sizeof_long
5083 _ACEOF
5086 echo "$as_me:$LINENO: checking for long long" >&5
5087 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5088 if test "${ac_cv_type_long_long+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h. */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_includes_default
5099 main ()
5101 if ((long long *) 0)
5102 return 0;
5103 if (sizeof (long long))
5104 return 0;
5106 return 0;
5108 _ACEOF
5109 rm -f conftest.$ac_objext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111 (eval $ac_compile) 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try='test -z "$ac_c_werror_flag"
5119 || test ! -s conftest.err'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try='test -s conftest.$ac_objext'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 (eval $ac_try) 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 ac_cv_type_long_long=yes
5132 else
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5136 ac_cv_type_long_long=no
5138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5140 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5141 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5142 if test $ac_cv_type_long_long = yes; then
5144 cat >>confdefs.h <<_ACEOF
5145 #define HAVE_LONG_LONG 1
5146 _ACEOF
5148 echo "$as_me:$LINENO: checking for long long" >&5
5149 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5150 if test "${ac_cv_type_long_long+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 cat >conftest.$ac_ext <<_ACEOF
5154 /* confdefs.h. */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 $ac_includes_default
5161 main ()
5163 if ((long long *) 0)
5164 return 0;
5165 if (sizeof (long long))
5166 return 0;
5168 return 0;
5170 _ACEOF
5171 rm -f conftest.$ac_objext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173 (eval $ac_compile) 2>conftest.er1
5174 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -z "$ac_c_werror_flag"
5181 || test ! -s conftest.err'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 (eval $ac_try) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; } &&
5187 { ac_try='test -s conftest.$ac_objext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 (eval $ac_try) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 ac_cv_type_long_long=yes
5194 else
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 ac_cv_type_long_long=no
5200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5202 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5203 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5205 echo "$as_me:$LINENO: checking size of long long" >&5
5206 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5207 if test "${ac_cv_sizeof_long_long+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 if test "$ac_cv_type_long_long" = yes; then
5211 # The cast to unsigned long works around a bug in the HP C Compiler
5212 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5213 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5214 # This bug is HP SR number 8606223364.
5215 if test "$cross_compiling" = yes; then
5216 # Depending upon the size, compute the lo and hi bounds.
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 $ac_includes_default
5225 main ()
5227 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5228 test_array [0] = 0
5231 return 0;
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -z "$ac_c_werror_flag"
5244 || test ! -s conftest.err'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try='test -s conftest.$ac_objext'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5256 ac_lo=0 ac_mid=0
5257 while :; do
5258 cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h. */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 $ac_includes_default
5266 main ()
5268 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5269 test_array [0] = 0
5272 return 0;
5274 _ACEOF
5275 rm -f conftest.$ac_objext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5277 (eval $ac_compile) 2>conftest.er1
5278 ac_status=$?
5279 grep -v '^ *+' conftest.er1 >conftest.err
5280 rm -f conftest.er1
5281 cat conftest.err >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try='test -z "$ac_c_werror_flag"
5285 || test ! -s conftest.err'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 (eval $ac_try) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; } &&
5291 { ac_try='test -s conftest.$ac_objext'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 (eval $ac_try) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5297 ac_hi=$ac_mid; break
5298 else
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 ac_lo=`expr $ac_mid + 1`
5303 if test $ac_lo -le $ac_mid; then
5304 ac_lo= ac_hi=
5305 break
5307 ac_mid=`expr 2 '*' $ac_mid + 1`
5309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5310 done
5311 else
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5323 main ()
5325 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5326 test_array [0] = 0
5329 return 0;
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -z "$ac_c_werror_flag"
5342 || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_hi=-1 ac_mid=-1
5355 while :; do
5356 cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 $ac_includes_default
5364 main ()
5366 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5367 test_array [0] = 0
5370 return 0;
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -z "$ac_c_werror_flag"
5383 || test ! -s conftest.err'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 (eval $ac_try) 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; } &&
5389 { ac_try='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 (eval $ac_try) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 ac_lo=$ac_mid; break
5396 else
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5400 ac_hi=`expr '(' $ac_mid ')' - 1`
5401 if test $ac_mid -le $ac_hi; then
5402 ac_lo= ac_hi=
5403 break
5405 ac_mid=`expr 2 '*' $ac_mid`
5407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5408 done
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_lo= ac_hi=
5415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418 # Binary search between lo and hi bounds.
5419 while test "x$ac_lo" != "x$ac_hi"; do
5420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 $ac_includes_default
5429 main ()
5431 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5432 test_array [0] = 0
5435 return 0;
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_hi=$ac_mid
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_lo=`expr '(' $ac_mid ')' + 1`
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468 done
5469 case $ac_lo in
5470 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5471 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5472 See \`config.log' for more details." >&5
5473 echo "$as_me: error: cannot compute sizeof (long long), 77
5474 See \`config.log' for more details." >&2;}
5475 { (exit 1); exit 1; }; } ;;
5476 esac
5477 else
5478 if test "$cross_compiling" = yes; then
5479 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5480 See \`config.log' for more details." >&5
5481 echo "$as_me: error: cannot run test program while cross compiling
5482 See \`config.log' for more details." >&2;}
5483 { (exit 1); exit 1; }; }
5484 else
5485 cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h. */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5492 long longval () { return (long) (sizeof (long long)); }
5493 unsigned long ulongval () { return (long) (sizeof (long long)); }
5494 #include <stdio.h>
5495 #include <stdlib.h>
5497 main ()
5500 FILE *f = fopen ("conftest.val", "w");
5501 if (! f)
5502 exit (1);
5503 if (((long) (sizeof (long long))) < 0)
5505 long i = longval ();
5506 if (i != ((long) (sizeof (long long))))
5507 exit (1);
5508 fprintf (f, "%ld\n", i);
5510 else
5512 unsigned long i = ulongval ();
5513 if (i != ((long) (sizeof (long long))))
5514 exit (1);
5515 fprintf (f, "%lu\n", i);
5517 exit (ferror (f) || fclose (f) != 0);
5520 return 0;
5522 _ACEOF
5523 rm -f conftest$ac_exeext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5525 (eval $ac_link) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_sizeof_long_long=`cat conftest.val`
5535 else
5536 echo "$as_me: program exited with status $ac_status" >&5
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ( exit $ac_status )
5541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5542 See \`config.log' for more details." >&5
5543 echo "$as_me: error: cannot compute sizeof (long long), 77
5544 See \`config.log' for more details." >&2;}
5545 { (exit 1); exit 1; }; }
5547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5550 rm -f conftest.val
5551 else
5552 ac_cv_sizeof_long_long=0
5555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5556 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5557 cat >>confdefs.h <<_ACEOF
5558 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5559 _ACEOF
5564 echo "$as_me:$LINENO: checking for __int64" >&5
5565 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5566 if test "${ac_cv_type___int64+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569 cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h. */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 $ac_includes_default
5577 main ()
5579 if ((__int64 *) 0)
5580 return 0;
5581 if (sizeof (__int64))
5582 return 0;
5584 return 0;
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>conftest.er1
5590 ac_status=$?
5591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -z "$ac_c_werror_flag"
5597 || test ! -s conftest.err'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; } &&
5603 { ac_try='test -s conftest.$ac_objext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_type___int64=yes
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5614 ac_cv_type___int64=no
5616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5618 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5619 echo "${ECHO_T}$ac_cv_type___int64" >&6
5620 if test $ac_cv_type___int64 = yes; then
5622 cat >>confdefs.h <<_ACEOF
5623 #define HAVE___INT64 1
5624 _ACEOF
5626 echo "$as_me:$LINENO: checking for __int64" >&5
5627 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5628 if test "${ac_cv_type___int64+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 $ac_includes_default
5639 main ()
5641 if ((__int64 *) 0)
5642 return 0;
5643 if (sizeof (__int64))
5644 return 0;
5646 return 0;
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>conftest.er1
5652 ac_status=$?
5653 grep -v '^ *+' conftest.er1 >conftest.err
5654 rm -f conftest.er1
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 (eval $ac_try) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_type___int64=yes
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_cv_type___int64=no
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5680 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5681 echo "${ECHO_T}$ac_cv_type___int64" >&6
5683 echo "$as_me:$LINENO: checking size of __int64" >&5
5684 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5685 if test "${ac_cv_sizeof___int64+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688 if test "$ac_cv_type___int64" = yes; then
5689 # The cast to unsigned long works around a bug in the HP C Compiler
5690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5692 # This bug is HP SR number 8606223364.
5693 if test "$cross_compiling" = yes; then
5694 # Depending upon the size, compute the lo and hi bounds.
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 $ac_includes_default
5703 main ()
5705 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5706 test_array [0] = 0
5709 return 0;
5711 _ACEOF
5712 rm -f conftest.$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>conftest.er1
5715 ac_status=$?
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -z "$ac_c_werror_flag"
5722 || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 (eval $ac_try) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest.$ac_objext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_lo=0 ac_mid=0
5735 while :; do
5736 cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h. */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 $ac_includes_default
5744 main ()
5746 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5747 test_array [0] = 0
5750 return 0;
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_hi=$ac_mid; break
5776 else
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5780 ac_lo=`expr $ac_mid + 1`
5781 if test $ac_lo -le $ac_mid; then
5782 ac_lo= ac_hi=
5783 break
5785 ac_mid=`expr 2 '*' $ac_mid + 1`
5787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788 done
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 $ac_includes_default
5801 main ()
5803 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5804 test_array [0] = 0
5807 return 0;
5809 _ACEOF
5810 rm -f conftest.$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>conftest.er1
5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try='test -z "$ac_c_werror_flag"
5820 || test ! -s conftest.err'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 ac_hi=-1 ac_mid=-1
5833 while :; do
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 $ac_includes_default
5842 main ()
5844 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5845 test_array [0] = 0
5848 return 0;
5850 _ACEOF
5851 rm -f conftest.$ac_objext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag"
5861 || test ! -s conftest.err'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest.$ac_objext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 ac_lo=$ac_mid; break
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 ac_hi=`expr '(' $ac_mid ')' - 1`
5879 if test $ac_mid -le $ac_hi; then
5880 ac_lo= ac_hi=
5881 break
5883 ac_mid=`expr 2 '*' $ac_mid`
5885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5886 done
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 ac_lo= ac_hi=
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 # Binary search between lo and hi bounds.
5897 while test "x$ac_lo" != "x$ac_hi"; do
5898 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5907 main ()
5909 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5910 test_array [0] = 0
5913 return 0;
5915 _ACEOF
5916 rm -f conftest.$ac_objext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_c_werror_flag"
5926 || test ! -s conftest.err'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try='test -s conftest.$ac_objext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 ac_hi=$ac_mid
5939 else
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5943 ac_lo=`expr '(' $ac_mid ')' + 1`
5945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5946 done
5947 case $ac_lo in
5948 ?*) ac_cv_sizeof___int64=$ac_lo;;
5949 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5950 See \`config.log' for more details." >&5
5951 echo "$as_me: error: cannot compute sizeof (__int64), 77
5952 See \`config.log' for more details." >&2;}
5953 { (exit 1); exit 1; }; } ;;
5954 esac
5955 else
5956 if test "$cross_compiling" = yes; then
5957 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5958 See \`config.log' for more details." >&5
5959 echo "$as_me: error: cannot run test program while cross compiling
5960 See \`config.log' for more details." >&2;}
5961 { (exit 1); exit 1; }; }
5962 else
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 $ac_includes_default
5970 long longval () { return (long) (sizeof (__int64)); }
5971 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5972 #include <stdio.h>
5973 #include <stdlib.h>
5975 main ()
5978 FILE *f = fopen ("conftest.val", "w");
5979 if (! f)
5980 exit (1);
5981 if (((long) (sizeof (__int64))) < 0)
5983 long i = longval ();
5984 if (i != ((long) (sizeof (__int64))))
5985 exit (1);
5986 fprintf (f, "%ld\n", i);
5988 else
5990 unsigned long i = ulongval ();
5991 if (i != ((long) (sizeof (__int64))))
5992 exit (1);
5993 fprintf (f, "%lu\n", i);
5995 exit (ferror (f) || fclose (f) != 0);
5998 return 0;
6000 _ACEOF
6001 rm -f conftest$ac_exeext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6003 (eval $ac_link) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_sizeof___int64=`cat conftest.val`
6013 else
6014 echo "$as_me: program exited with status $ac_status" >&5
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 ( exit $ac_status )
6019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6020 See \`config.log' for more details." >&5
6021 echo "$as_me: error: cannot compute sizeof (__int64), 77
6022 See \`config.log' for more details." >&2;}
6023 { (exit 1); exit 1; }; }
6025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6028 rm -f conftest.val
6029 else
6030 ac_cv_sizeof___int64=0
6033 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6034 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6035 cat >>confdefs.h <<_ACEOF
6036 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6037 _ACEOF
6043 # ---------------------
6044 # Warnings and checking
6045 # ---------------------
6047 # Check $CC warning features (if it's GCC).
6048 # We want to use -pedantic, but we don't want warnings about
6049 # * 'long long'
6050 # * variadic macros
6051 # * overlong strings
6052 # So, we only use -pedantic if we can disable those warnings.
6054 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6055 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6056 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059 save_CFLAGS="$CFLAGS"
6060 CFLAGS="-Wno-long-long"
6061 cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h. */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6068 _ACEOF
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_prog_cc_w_no_long_long=yes
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 ac_cv_prog_cc_w_no_long_long=no
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6099 CFLAGS="$save_CFLAGS"
6102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6103 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6105 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6106 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6107 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 save_CFLAGS="$CFLAGS"
6111 CFLAGS="-Wno-variadic-macros"
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h. */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_prog_cc_w_no_variadic_macros=yes
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_cv_prog_cc_w_no_variadic_macros=no
6149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150 CFLAGS="$save_CFLAGS"
6153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6154 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6156 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6157 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6158 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 save_CFLAGS="$CFLAGS"
6162 CFLAGS="-Wno-overlength-strings"
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173 (eval $ac_compile) 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_c_werror_flag"
6181 || test ! -s conftest.err'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; } &&
6187 { ac_try='test -s conftest.$ac_objext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_cv_prog_cc_w_no_overlength_strings=yes
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 ac_cv_prog_cc_w_no_overlength_strings=no
6200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6201 CFLAGS="$save_CFLAGS"
6204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6205 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6207 strict1_warn=
6208 if test $ac_cv_prog_cc_w_no_long_long = yes \
6209 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6210 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6211 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6214 # Add -Wold-style-definition if it's accepted
6215 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6216 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6217 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 save_CFLAGS="$CFLAGS"
6221 CFLAGS="-Wold-style-definition"
6222 cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h. */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag"
6240 || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_cv_prog_cc_w_old_style_definition=yes
6253 else
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 ac_cv_prog_cc_w_old_style_definition=no
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 CFLAGS="$save_CFLAGS"
6263 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6264 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6265 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6266 strict1_warn="${strict1_warn} -Wold-style-definition"
6269 # Add -Wmissing-format-attribute if it's accepted
6270 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6271 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6272 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275 save_CFLAGS="$CFLAGS"
6276 CFLAGS="-Wmissing-format-attribute"
6277 cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h. */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6284 _ACEOF
6285 rm -f conftest.$ac_objext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6287 (eval $ac_compile) 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -z "$ac_c_werror_flag"
6295 || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_prog_cc_w_missing_format_attribute=yes
6308 else
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 ac_cv_prog_cc_w_missing_format_attribute=no
6314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6315 CFLAGS="$save_CFLAGS"
6318 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6319 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6320 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6321 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6324 # Enable -Werror, period.
6325 # Check whether --enable-werror_always or --disable-werror_always was given.
6326 if test "${enable_werror_always+set}" = set; then
6327 enableval="$enable_werror_always"
6329 else
6330 enable_werror_always=no
6332 if test x${enable_werror_always} = xyes ; then
6333 strict1_warn="${strict1_warn} -Werror"
6334 WERROR=-Werror
6339 # Get C++ compatibility warning flag, if supported.
6340 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6341 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6342 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 save_CFLAGS="$CFLAGS"
6346 CFLAGS="-Wc++-compat"
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h. */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6354 _ACEOF
6355 rm -f conftest.$ac_objext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357 (eval $ac_compile) 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_c_werror_flag"
6365 || test ! -s conftest.err'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest.$ac_objext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 (eval $ac_try) 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 ac_cv_prog_cc_w_cxx_compat=yes
6378 else
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 ac_cv_prog_cc_w_cxx_compat=no
6384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6385 CFLAGS="$save_CFLAGS"
6388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6389 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6390 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6391 cxx_compat_warn="-Wc++-compat"
6396 # If the native compiler is GCC, we can enable warnings even in stage1.
6397 # That's useful for people building cross-compilers, or just running a
6398 # quick `make'.
6399 warn_cflags=
6400 if test "x$GCC" = "xyes"; then
6401 warn_cflags='$(GCC_WARN_CFLAGS)'
6405 # Enable -Werror in bootstrap stage2 and later.
6406 is_release=
6407 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6408 is_release=yes
6410 # Check whether --enable-werror or --disable-werror was given.
6411 if test "${enable_werror+set}" = set; then
6412 enableval="$enable_werror"
6414 else
6415 if test x$is_release = x ; then
6416 # Default to "yes" on development branches.
6417 enable_werror=yes
6418 else
6419 # Default to "no" on release branches.
6420 enable_werror=no
6423 if test x$enable_werror = xyes ; then
6424 WERROR=-Werror
6428 # Enable expensive internal checks
6429 # Check whether --enable-checking or --disable-checking was given.
6430 if test "${enable_checking+set}" = set; then
6431 enableval="$enable_checking"
6432 ac_checking_flags="${enableval}"
6433 else
6435 # Determine the default checks.
6436 if test x$is_release = x ; then
6437 ac_checking_flags=yes
6438 else
6439 ac_checking_flags=release
6442 ac_assert_checking=1
6443 ac_checking=
6444 ac_fold_checking=
6445 ac_gc_checking=
6446 ac_gc_always_collect=
6447 ac_rtl_checking=
6448 ac_rtlflag_checking=
6449 ac_runtime_checking=1
6450 ac_tree_checking=
6451 ac_valgrind_checking=
6452 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6453 for check in $ac_checking_flags
6455 case $check in
6456 # these set all the flags to specific states
6457 yes) ac_assert_checking=1 ; ac_checking=1 ;
6458 ac_fold_checking= ; ac_gc_checking=1 ;
6459 ac_gc_always_collect= ; ac_rtl_checking= ;
6460 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6461 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6462 no|none) ac_assert_checking= ; ac_checking= ;
6463 ac_fold_checking= ; ac_gc_checking= ;
6464 ac_gc_always_collect= ; ac_rtl_checking= ;
6465 ac_rtlflag_checking= ; ac_runtime_checking= ;
6466 ac_tree_checking= ; ac_valgrind_checking= ;;
6467 all) ac_assert_checking=1 ; ac_checking=1 ;
6468 ac_fold_checking=1 ; ac_gc_checking=1 ;
6469 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6470 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6471 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6472 release) ac_assert_checking=1 ; ac_checking= ;
6473 ac_fold_checking= ; ac_gc_checking= ;
6474 ac_gc_always_collect= ; ac_rtl_checking= ;
6475 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6476 ac_tree_checking= ; ac_valgrind_checking= ;;
6477 # these enable particular checks
6478 assert) ac_assert_checking=1 ;;
6479 fold) ac_fold_checking=1 ;;
6480 gc) ac_gc_checking=1 ;;
6481 gcac) ac_gc_always_collect=1 ;;
6482 misc) ac_checking=1 ;;
6483 rtl) ac_rtl_checking=1 ;;
6484 rtlflag) ac_rtlflag_checking=1 ;;
6485 runtime) ac_runtime_checking=1 ;;
6486 tree) ac_tree_checking=1 ;;
6487 valgrind) ac_valgrind_checking=1 ;;
6488 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6489 echo "$as_me: error: unknown check category $check" >&2;}
6490 { (exit 1); exit 1; }; } ;;
6491 esac
6492 done
6493 IFS="$ac_save_IFS"
6495 nocommon_flag=""
6496 if test x$ac_checking != x ; then
6498 cat >>confdefs.h <<\_ACEOF
6499 #define ENABLE_CHECKING 1
6500 _ACEOF
6502 nocommon_flag=-fno-common
6505 if test x$ac_assert_checking != x ; then
6507 cat >>confdefs.h <<\_ACEOF
6508 #define ENABLE_ASSERT_CHECKING 1
6509 _ACEOF
6513 if test x$ac_runtime_checking != x ; then
6515 cat >>confdefs.h <<\_ACEOF
6516 #define ENABLE_RUNTIME_CHECKING 1
6517 _ACEOF
6520 if test x$ac_tree_checking != x ; then
6522 cat >>confdefs.h <<\_ACEOF
6523 #define ENABLE_TREE_CHECKING 1
6524 _ACEOF
6526 TREEBROWSER=tree-browser.o
6529 if test x$ac_rtl_checking != x ; then
6531 cat >>confdefs.h <<\_ACEOF
6532 #define ENABLE_RTL_CHECKING 1
6533 _ACEOF
6536 if test x$ac_rtlflag_checking != x ; then
6538 cat >>confdefs.h <<\_ACEOF
6539 #define ENABLE_RTL_FLAG_CHECKING 1
6540 _ACEOF
6543 if test x$ac_gc_checking != x ; then
6545 cat >>confdefs.h <<\_ACEOF
6546 #define ENABLE_GC_CHECKING 1
6547 _ACEOF
6550 if test x$ac_gc_always_collect != x ; then
6552 cat >>confdefs.h <<\_ACEOF
6553 #define ENABLE_GC_ALWAYS_COLLECT 1
6554 _ACEOF
6557 if test x$ac_fold_checking != x ; then
6559 cat >>confdefs.h <<\_ACEOF
6560 #define ENABLE_FOLD_CHECKING 1
6561 _ACEOF
6564 valgrind_path_defines=
6565 valgrind_command=
6567 if test "${ac_cv_header_valgrind_h+set}" = set; then
6568 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6569 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6570 if test "${ac_cv_header_valgrind_h+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6574 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6575 else
6576 # Is the header compilable?
6577 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6578 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6579 cat >conftest.$ac_ext <<_ACEOF
6580 /* confdefs.h. */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 $ac_includes_default
6586 #include <valgrind.h>
6587 _ACEOF
6588 rm -f conftest.$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590 (eval $ac_compile) 2>conftest.er1
6591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -z "$ac_c_werror_flag"
6598 || test ! -s conftest.err'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; } &&
6604 { ac_try='test -s conftest.$ac_objext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 ac_header_compiler=yes
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_header_compiler=no
6617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6619 echo "${ECHO_T}$ac_header_compiler" >&6
6621 # Is the header present?
6622 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6623 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <valgrind.h>
6631 _ACEOF
6632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6634 ac_status=$?
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } >/dev/null; then
6640 if test -s conftest.err; then
6641 ac_cpp_err=$ac_c_preproc_warn_flag
6642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6643 else
6644 ac_cpp_err=
6646 else
6647 ac_cpp_err=yes
6649 if test -z "$ac_cpp_err"; then
6650 ac_header_preproc=yes
6651 else
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6655 ac_header_preproc=no
6657 rm -f conftest.err conftest.$ac_ext
6658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6659 echo "${ECHO_T}$ac_header_preproc" >&6
6661 # So? What about this header?
6662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6663 yes:no: )
6664 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6665 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6667 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6668 ac_header_preproc=yes
6670 no:yes:* )
6671 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6672 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6674 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6676 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6678 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6680 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6682 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6684 cat <<\_ASBOX
6685 ## ------------------------------------------ ##
6686 ## Report this to the AC_PACKAGE_NAME lists. ##
6687 ## ------------------------------------------ ##
6688 _ASBOX
6690 sed "s/^/$as_me: WARNING: /" >&2
6692 esac
6693 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6694 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6695 if test "${ac_cv_header_valgrind_h+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698 ac_cv_header_valgrind_h=$ac_header_preproc
6700 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6701 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6704 if test $ac_cv_header_valgrind_h = yes; then
6705 have_valgrind_h=yes
6706 else
6707 have_valgrind_h=no
6712 if test x$ac_valgrind_checking != x ; then
6713 # It is certainly possible that there's valgrind but no valgrind.h.
6714 # GCC relies on making annotations so we must have both.
6715 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6716 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <valgrind/memcheck.h>
6724 #ifndef VALGRIND_DISCARD
6725 #error VALGRIND_DISCARD not defined
6726 #endif
6727 _ACEOF
6728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6730 ac_status=$?
6731 grep -v '^ *+' conftest.er1 >conftest.err
6732 rm -f conftest.er1
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } >/dev/null; then
6736 if test -s conftest.err; then
6737 ac_cpp_err=$ac_c_preproc_warn_flag
6738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6739 else
6740 ac_cpp_err=
6742 else
6743 ac_cpp_err=yes
6745 if test -z "$ac_cpp_err"; then
6746 gcc_cv_header_valgrind_memcheck_h=yes
6747 else
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6751 gcc_cv_header_valgrind_memcheck_h=no
6753 rm -f conftest.err conftest.$ac_ext
6754 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6755 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6756 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6757 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 #include <memcheck.h>
6765 #ifndef VALGRIND_DISCARD
6766 #error VALGRIND_DISCARD not defined
6767 #endif
6768 _ACEOF
6769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } >/dev/null; then
6777 if test -s conftest.err; then
6778 ac_cpp_err=$ac_c_preproc_warn_flag
6779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6780 else
6781 ac_cpp_err=
6783 else
6784 ac_cpp_err=yes
6786 if test -z "$ac_cpp_err"; then
6787 gcc_cv_header_memcheck_h=yes
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 gcc_cv_header_memcheck_h=no
6794 rm -f conftest.err conftest.$ac_ext
6795 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6796 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6798 # Prepare PATH_SEPARATOR.
6799 # The user is always right.
6800 if test "${PATH_SEPARATOR+set}" != set; then
6801 echo "#! /bin/sh" >conf$$.sh
6802 echo "exit 0" >>conf$$.sh
6803 chmod +x conf$$.sh
6804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6805 PATH_SEPARATOR=';'
6806 else
6807 PATH_SEPARATOR=:
6809 rm -f conf$$.sh
6812 # Find out how to test for executable files. Don't use a zero-byte file,
6813 # as systems may use methods other than mode bits to determine executability.
6814 cat >conf$$.file <<_ASEOF
6815 #! /bin/sh
6816 exit 0
6817 _ASEOF
6818 chmod +x conf$$.file
6819 if test -x conf$$.file >/dev/null 2>&1; then
6820 ac_executable_p="test -x"
6821 else
6822 ac_executable_p="test -f"
6824 rm -f conf$$.file
6826 # Extract the first word of "valgrind", so it can be a program name with args.
6827 set dummy valgrind; ac_word=$2
6828 echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6830 if test "${ac_cv_path_valgrind_path+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 case "$valgrind_path" in
6834 [\\/]* | ?:[\\/]*)
6835 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6838 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6839 for ac_dir in $PATH; do
6840 IFS="$ac_save_IFS"
6841 test -z "$ac_dir" && ac_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6844 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6845 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6846 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6847 break 2
6850 done
6851 done
6852 IFS="$ac_save_IFS"
6854 esac
6856 valgrind_path="$ac_cv_path_valgrind_path"
6857 if test -n "$valgrind_path"; then
6858 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6859 echo "${ECHO_T}$valgrind_path" >&6
6860 else
6861 echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6
6865 if test "x$valgrind_path" = "x" \
6866 || (test $have_valgrind_h = no \
6867 && test $gcc_cv_header_memcheck_h = no \
6868 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6869 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6870 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6871 { (exit 1); exit 1; }; }
6873 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6874 valgrind_command="$valgrind_path -q"
6876 cat >>confdefs.h <<\_ACEOF
6877 #define ENABLE_VALGRIND_CHECKING 1
6878 _ACEOF
6880 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6882 cat >>confdefs.h <<\_ACEOF
6883 #define HAVE_VALGRIND_MEMCHECK_H 1
6884 _ACEOF
6887 if test $gcc_cv_header_memcheck_h = yes; then
6889 cat >>confdefs.h <<\_ACEOF
6890 #define HAVE_MEMCHECK_H 1
6891 _ACEOF
6898 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6899 if test "${enable_mapped_location+set}" = set; then
6900 enableval="$enable_mapped_location"
6902 else
6903 enable_mapped_location=no
6906 if test "$enable_mapped_location" = yes ; then
6908 cat >>confdefs.h <<\_ACEOF
6909 #define USE_MAPPED_LOCATION 1
6910 _ACEOF
6914 # Enable code coverage collection
6915 # Check whether --enable-coverage or --disable-coverage was given.
6916 if test "${enable_coverage+set}" = set; then
6917 enableval="$enable_coverage"
6918 case "${enableval}" in
6919 yes|noopt)
6920 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6922 opt)
6923 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6926 # a.k.a. --disable-coverage
6927 coverage_flags=""
6930 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6931 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6932 { (exit 1); exit 1; }; }
6934 esac
6935 else
6936 coverage_flags=""
6940 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6941 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6942 enableval="$enable_gather_detailed_mem_stats"
6944 else
6945 enable_gather_detailed_mem_stats=no
6947 if test x$enable_gather_detailed_mem_stats = xyes ; then
6949 cat >>confdefs.h <<\_ACEOF
6950 #define GATHER_STATISTICS 1
6951 _ACEOF
6955 # -------------------------------
6956 # Miscenalleous configure options
6957 # -------------------------------
6959 # With stabs
6961 # Check whether --with-stabs or --without-stabs was given.
6962 if test "${with_stabs+set}" = set; then
6963 withval="$with_stabs"
6964 stabs="$with_stabs"
6965 else
6966 stabs=no
6969 # Determine whether or not multilibs are enabled.
6970 # Check whether --enable-multilib or --disable-multilib was given.
6971 if test "${enable_multilib+set}" = set; then
6972 enableval="$enable_multilib"
6974 else
6975 enable_multilib=yes
6979 # Enable __cxa_atexit for C++.
6980 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6981 if test "${enable___cxa_atexit+set}" = set; then
6982 enableval="$enable___cxa_atexit"
6986 # Enable C extension for decimal float if target supports it.
6987 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6988 if test "${enable_decimal_float+set}" = set; then
6989 enableval="$enable_decimal_float"
6991 if test x$enablevar = xyes ; then
6992 case $target in
6993 powerpc*-*-linux* | i?86*-*-linux*)
6994 enable_decimal_float=yes
6997 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6998 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6999 enable_decimal_float=no
7001 esac
7004 else
7005 enable_decimal_float=no
7010 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7012 cat >>confdefs.h <<_ACEOF
7013 #define ENABLE_DECIMAL_FLOAT $dfp
7014 _ACEOF
7017 # Enable threads
7018 # Pass with no value to take the default
7019 # Pass with a value to specify a thread package
7020 # Check whether --enable-threads or --disable-threads was given.
7021 if test "${enable_threads+set}" = set; then
7022 enableval="$enable_threads"
7024 else
7025 enable_threads=''
7028 # Check whether --enable-tls or --disable-tls was given.
7029 if test "${enable_tls+set}" = set; then
7030 enableval="$enable_tls"
7032 case $enable_tls in
7033 yes | no) ;;
7034 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7035 Valid choices are 'yes' and 'no'." >&5
7036 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7037 Valid choices are 'yes' and 'no'." >&2;}
7038 { (exit 1); exit 1; }; } ;;
7039 esac
7041 else
7042 enable_tls=''
7045 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7046 if test "${enable_objc_gc+set}" = set; then
7047 enableval="$enable_objc_gc"
7048 if test x$enable_objc_gc = xno; then
7049 objc_boehm_gc=''
7050 else
7051 objc_boehm_gc=1
7053 else
7054 objc_boehm_gc=''
7058 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7059 if test "${with_dwarf2+set}" = set; then
7060 withval="$with_dwarf2"
7061 dwarf2="$with_dwarf2"
7062 else
7063 dwarf2=no
7066 # Check whether --enable-shared or --disable-shared was given.
7067 if test "${enable_shared+set}" = set; then
7068 enableval="$enable_shared"
7070 case $enable_shared in
7071 yes | no) ;;
7073 enable_shared=no
7074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7075 for pkg in $enableval; do
7076 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7077 enable_shared=yes
7079 done
7080 IFS="$ac_save_ifs"
7082 esac
7084 else
7085 enable_shared=yes
7090 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7091 if test "${with_build_sysroot+set}" = set; then
7092 withval="$with_build_sysroot"
7097 # Check whether --with-sysroot or --without-sysroot was given.
7098 if test "${with_sysroot+set}" = set; then
7099 withval="$with_sysroot"
7101 case ${with_sysroot} in
7102 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7103 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7104 esac
7106 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7107 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7109 if test "x$exec_prefix" = xNONE; then
7110 if test "x$prefix" = xNONE; then
7111 test_prefix=/usr/local
7112 else
7113 test_prefix=$prefix
7115 else
7116 test_prefix=$exec_prefix
7118 case ${TARGET_SYSTEM_ROOT} in
7119 "${test_prefix}"|"${test_prefix}/"*|\
7120 '${exec_prefix}'|'${exec_prefix}/'*)
7121 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7122 TARGET_SYSTEM_ROOT_DEFINE="$t"
7124 esac
7126 else
7128 TARGET_SYSTEM_ROOT=
7129 TARGET_SYSTEM_ROOT_DEFINE=
7130 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7137 # Build with intermodule optimisations
7138 # Check whether --enable-intermodule or --disable-intermodule was given.
7139 if test "${enable_intermodule+set}" = set; then
7140 enableval="$enable_intermodule"
7141 case ${enable_intermodule} in
7142 yes) onestep="-onestep";;
7143 *) onestep="";;
7144 esac
7145 else
7146 onestep=""
7150 # Sanity check enable_languages in case someone does not run the toplevel
7151 # configure # script.
7152 # Check whether --enable-languages or --disable-languages was given.
7153 if test "${enable_languages+set}" = set; then
7154 enableval="$enable_languages"
7155 case ,${enable_languages}, in
7156 ,,|,yes,)
7157 # go safe -- we cannot be much sure without the toplevel
7158 # configure's
7159 # analysis of which target libs are present and usable
7160 enable_languages=c
7162 *,all,*)
7163 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7164 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7165 { (exit 1); exit 1; }; }
7167 *,c,*)
7170 enable_languages=c,${enable_languages}
7172 esac
7173 else
7174 enable_languages=c
7177 # Used by documentation targets
7182 # -------------------------
7183 # Checks for other programs
7184 # -------------------------
7186 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7187 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7188 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7189 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192 cat >conftest.make <<\_ACEOF
7193 all:
7194 @echo 'ac_maketemp="$(MAKE)"'
7195 _ACEOF
7196 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7197 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7198 if test -n "$ac_maketemp"; then
7199 eval ac_cv_prog_make_${ac_make}_set=yes
7200 else
7201 eval ac_cv_prog_make_${ac_make}_set=no
7203 rm -f conftest.make
7205 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7206 echo "$as_me:$LINENO: result: yes" >&5
7207 echo "${ECHO_T}yes" >&6
7208 SET_MAKE=
7209 else
7210 echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6
7212 SET_MAKE="MAKE=${MAKE-make}"
7216 # Find some useful tools
7217 for ac_prog in gawk mawk nawk awk
7219 # Extract the first word of "$ac_prog", so it can be a program name with args.
7220 set dummy $ac_prog; ac_word=$2
7221 echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7223 if test "${ac_cv_prog_AWK+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 if test -n "$AWK"; then
7227 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_AWK="$ac_prog"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7240 done
7241 done
7245 AWK=$ac_cv_prog_AWK
7246 if test -n "$AWK"; then
7247 echo "$as_me:$LINENO: result: $AWK" >&5
7248 echo "${ECHO_T}$AWK" >&6
7249 else
7250 echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6
7254 test -n "$AWK" && break
7255 done
7257 # We need awk to create options.c and options.h.
7258 # Bail out if it's missing.
7259 case ${AWK} in
7260 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7261 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7262 { (exit 1); exit 1; }; } ;;
7263 esac
7265 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7266 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7267 if test "${gcc_cv_prog_LN_S+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270 rm -f conftestdata_t
7271 echo >conftestdata_f
7272 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7273 then
7274 gcc_cv_prog_LN_S="ln -s"
7275 else
7276 if ln conftestdata_f conftestdata_t 2>/dev/null
7277 then
7278 gcc_cv_prog_LN_S=ln
7279 else
7280 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7281 then
7282 gcc_cv_prog_LN_S="cp -p"
7283 else
7284 gcc_cv_prog_LN_S=cp
7288 rm -f conftestdata_f conftestdata_t
7291 LN_S="$gcc_cv_prog_LN_S"
7292 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7293 echo "$as_me:$LINENO: result: yes" >&5
7294 echo "${ECHO_T}yes" >&6
7295 else
7296 if test "$gcc_cv_prog_LN_S" = "ln"; then
7297 echo "$as_me:$LINENO: result: no, using ln" >&5
7298 echo "${ECHO_T}no, using ln" >&6
7299 else
7300 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7301 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7305 ACX_PROG_LN($LN_S)
7306 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7308 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_RANLIB+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 if test -n "$RANLIB"; then
7315 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7328 done
7329 done
7333 RANLIB=$ac_cv_prog_RANLIB
7334 if test -n "$RANLIB"; then
7335 echo "$as_me:$LINENO: result: $RANLIB" >&5
7336 echo "${ECHO_T}$RANLIB" >&6
7337 else
7338 echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6
7343 if test -z "$ac_cv_prog_RANLIB"; then
7344 ac_ct_RANLIB=$RANLIB
7345 # Extract the first word of "ranlib", so it can be a program name with args.
7346 set dummy ranlib; ac_word=$2
7347 echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 if test -n "$ac_ct_RANLIB"; then
7353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_ac_ct_RANLIB="ranlib"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7366 done
7367 done
7369 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7373 if test -n "$ac_ct_RANLIB"; then
7374 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7375 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7376 else
7377 echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6
7381 RANLIB=$ac_ct_RANLIB
7382 else
7383 RANLIB="$ac_cv_prog_RANLIB"
7386 case "${host}" in
7387 *-*-darwin*)
7388 # By default, the Darwin ranlib will not treat common symbols as
7389 # definitions when building the archive table of contents. Other
7390 # ranlibs do that; pass an option to the Darwin ranlib that makes
7391 # it behave similarly.
7392 ranlib_flags="-c"
7395 ranlib_flags=""
7396 esac
7399 # Find a good install program. We prefer a C program (faster),
7400 # so one script is as good as another. But avoid the broken or
7401 # incompatible versions:
7402 # SysV /etc/install, /usr/sbin/install
7403 # SunOS /usr/etc/install
7404 # IRIX /sbin/install
7405 # AIX /bin/install
7406 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7407 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7408 # ./install, which can be erroneously created by make from ./install.sh.
7409 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7410 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7411 if test -z "$INSTALL"; then
7412 if test "${ac_cv_path_install+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7416 for ac_dir in $PATH; do
7417 # Account for people who put trailing slashes in PATH elements.
7418 case "$ac_dir/" in
7419 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7421 # OSF1 and SCO ODT 3.0 have their own names for install.
7422 for ac_prog in ginstall scoinst install; do
7423 if test -f $ac_dir/$ac_prog; then
7424 if test $ac_prog = install &&
7425 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7426 # AIX install. It has an incompatible calling convention.
7427 # OSF/1 installbsd also uses dspmsg, but is usable.
7429 else
7430 ac_cv_path_install="$ac_dir/$ac_prog -c"
7431 break 2
7434 done
7436 esac
7437 done
7438 IFS="$ac_save_IFS"
7441 if test "${ac_cv_path_install+set}" = set; then
7442 INSTALL="$ac_cv_path_install"
7443 else
7444 # As a last resort, use the slow shell script. We don't cache a
7445 # path for INSTALL within a source directory, because that will
7446 # break other packages using the cache if that directory is
7447 # removed, or if the path is relative.
7448 INSTALL="$ac_install_sh"
7451 echo "$as_me:$LINENO: result: $INSTALL" >&5
7452 echo "${ECHO_T}$INSTALL" >&6
7454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7455 # It thinks the first close brace ends the variable substitution.
7456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7458 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7461 # See if cmp has --ignore-initial.
7462 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7463 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7464 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467 echo abfoo >t1
7468 echo cdfoo >t2
7469 gcc_cv_prog_cmp_skip=slowcompare
7470 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7471 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7473 else
7474 gcc_cv_prog_cmp_skip=gnucompare
7477 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7478 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7479 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7481 else
7482 gcc_cv_prog_cmp_skip=fastcompare
7486 rm t1 t2
7489 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7490 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7491 make_compare_target=$gcc_cv_prog_cmp_skip
7495 # See if we have the mktemp command.
7496 # Extract the first word of "mktemp", so it can be a program name with args.
7497 set dummy mktemp; ac_word=$2
7498 echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7500 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 if test -n "$have_mktemp_command"; then
7504 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7505 else
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_have_mktemp_command="yes"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7517 done
7518 done
7520 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7523 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7524 if test -n "$have_mktemp_command"; then
7525 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7526 echo "${ECHO_T}$have_mktemp_command" >&6
7527 else
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7533 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7535 # See if makeinfo has been installed and is modern enough
7536 # that we can use it.
7538 ac_executable_extensions="$build_exeext"
7540 # Extract the first word of "makeinfo", so it can be a program name with args.
7541 set dummy makeinfo; ac_word=$2
7542 echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7544 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547 if test -n "$MAKEINFO"; then
7548 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7549 else
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557 ac_cv_prog_MAKEINFO="makeinfo"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7561 done
7562 done
7566 MAKEINFO=$ac_cv_prog_MAKEINFO
7567 if test -n "$MAKEINFO"; then
7568 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7569 echo "${ECHO_T}$MAKEINFO" >&6
7570 else
7571 echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6
7575 if test -n "$MAKEINFO"; then
7576 # Found it, now check the version.
7577 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7578 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7579 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582 ac_prog_version=`$MAKEINFO --version 2>&1 |
7583 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7584 echo "configure:7584: version of makeinfo is $ac_prog_version" >&5
7585 case $ac_prog_version in
7586 '') gcc_cv_prog_makeinfo_modern=no;;
7587 4.[4-9]*)
7588 gcc_cv_prog_makeinfo_modern=yes;;
7589 *) gcc_cv_prog_makeinfo_modern=no;;
7590 esac
7593 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7594 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7595 else
7596 gcc_cv_prog_makeinfo_modern=no
7599 if test $gcc_cv_prog_makeinfo_modern = no; then
7600 MAKEINFO="$MISSING makeinfo"
7601 { echo "$as_me:$LINENO: WARNING:
7602 *** Makeinfo is missing or too old.
7603 *** Info documentation will not be built." >&5
7604 echo "$as_me: WARNING:
7605 *** Makeinfo is missing or too old.
7606 *** Info documentation will not be built." >&2;}
7607 BUILD_INFO=
7608 else
7609 BUILD_INFO=info
7613 # Is pod2man recent enough to regenerate manpages?
7614 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7615 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7616 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7617 echo "$as_me:$LINENO: result: yes" >&5
7618 echo "${ECHO_T}yes" >&6
7619 GENERATED_MANPAGES=generated-manpages
7620 else
7621 echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6
7623 GENERATED_MANPAGES=
7627 # How about lex?
7628 for ac_prog in flex
7630 # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7634 if test "${ac_cv_prog_FLEX+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 if test -n "$FLEX"; then
7638 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647 ac_cv_prog_FLEX="$ac_prog"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7651 done
7652 done
7656 FLEX=$ac_cv_prog_FLEX
7657 if test -n "$FLEX"; then
7658 echo "$as_me:$LINENO: result: $FLEX" >&5
7659 echo "${ECHO_T}$FLEX" >&6
7660 else
7661 echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6
7665 test -n "$FLEX" && break
7666 done
7667 test -n "$FLEX" || FLEX="$MISSING flex"
7670 # Bison?
7671 for ac_prog in bison
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy $ac_prog; ac_word=$2
7675 echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7677 if test "${ac_cv_prog_BISON+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680 if test -n "$BISON"; then
7681 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_BISON="$ac_prog"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7694 done
7695 done
7699 BISON=$ac_cv_prog_BISON
7700 if test -n "$BISON"; then
7701 echo "$as_me:$LINENO: result: $BISON" >&5
7702 echo "${ECHO_T}$BISON" >&6
7703 else
7704 echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7708 test -n "$BISON" && break
7709 done
7710 test -n "$BISON" || BISON="$MISSING bison"
7713 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7714 # check for build == host before using them.
7716 # NM
7717 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7718 && test -d ../binutils ; then
7719 NM='$(objdir)/../binutils/nm-new'
7720 else
7721 # Extract the first word of "nm", so it can be a program name with args.
7722 set dummy nm; ac_word=$2
7723 echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7725 if test "${ac_cv_prog_NM+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728 if test -n "$NM"; then
7729 ac_cv_prog_NM="$NM" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_NM="nm"
7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7742 done
7743 done
7745 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7748 NM=$ac_cv_prog_NM
7749 if test -n "$NM"; then
7750 echo "$as_me:$LINENO: result: $NM" >&5
7751 echo "${ECHO_T}$NM" >&6
7752 else
7753 echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6
7759 # AR
7760 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7761 && test -d ../binutils ; then
7762 AR='$(objdir)/../binutils/ar'
7763 else
7764 # Extract the first word of "ar", so it can be a program name with args.
7765 set dummy ar; ac_word=$2
7766 echo "$as_me:$LINENO: checking for $ac_word" >&5
7767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7768 if test "${ac_cv_prog_AR+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771 if test -n "$AR"; then
7772 ac_cv_prog_AR="$AR" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_AR="ar"
7782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7785 done
7786 done
7788 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7791 AR=$ac_cv_prog_AR
7792 if test -n "$AR"; then
7793 echo "$as_me:$LINENO: result: $AR" >&5
7794 echo "${ECHO_T}$AR" >&6
7795 else
7796 echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6
7803 # --------------------
7804 # Checks for C headers
7805 # --------------------
7807 echo "$as_me:$LINENO: checking for GNU C library" >&5
7808 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7809 if test "${gcc_cv_glibc+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812 cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h. */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7818 #include <features.h>
7820 main ()
7823 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7824 #error Not a GNU C library system
7825 #endif
7827 return 0;
7829 _ACEOF
7830 rm -f conftest.$ac_objext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832 (eval $ac_compile) 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -z "$ac_c_werror_flag"
7840 || test ! -s conftest.err'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try='test -s conftest.$ac_objext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 (eval $ac_try) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 gcc_cv_glibc=yes
7853 else
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 gcc_cv_glibc=no
7859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7862 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7863 echo "${ECHO_T}$gcc_cv_glibc" >&6
7864 if test $gcc_cv_glibc = yes; then
7866 cat >>confdefs.h <<\_ACEOF
7867 #define _GNU_SOURCE 1
7868 _ACEOF
7872 # Need to reject headers which give warnings, so that the -Werror bootstrap
7873 # works later. *sigh* This needs to come before all header checks.
7874 ac_c_preproc_warn_flag=yes
7876 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7878 if test "${ac_cv_header_stdc+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881 cat >conftest.$ac_ext <<_ACEOF
7882 /* confdefs.h. */
7883 _ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7887 #include <stdlib.h>
7888 #include <stdarg.h>
7889 #include <string.h>
7890 #include <float.h>
7893 main ()
7897 return 0;
7899 _ACEOF
7900 rm -f conftest.$ac_objext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7902 (eval $ac_compile) 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -z "$ac_c_werror_flag"
7910 || test ! -s conftest.err'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 (eval $ac_try) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_cv_header_stdc=yes
7923 else
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7927 ac_cv_header_stdc=no
7929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7931 if test $ac_cv_header_stdc = yes; then
7932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7933 cat >conftest.$ac_ext <<_ACEOF
7934 /* confdefs.h. */
7935 _ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7939 #include <string.h>
7941 _ACEOF
7942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7943 $EGREP "memchr" >/dev/null 2>&1; then
7945 else
7946 ac_cv_header_stdc=no
7948 rm -f conftest*
7952 if test $ac_cv_header_stdc = yes; then
7953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7954 cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h. */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7960 #include <stdlib.h>
7962 _ACEOF
7963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7964 $EGREP "free" >/dev/null 2>&1; then
7966 else
7967 ac_cv_header_stdc=no
7969 rm -f conftest*
7973 if test $ac_cv_header_stdc = yes; then
7974 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7975 if test "$cross_compiling" = yes; then
7977 else
7978 cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h. */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 #include <ctype.h>
7985 #if ((' ' & 0x0FF) == 0x020)
7986 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7987 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7988 #else
7989 # define ISLOWER(c) \
7990 (('a' <= (c) && (c) <= 'i') \
7991 || ('j' <= (c) && (c) <= 'r') \
7992 || ('s' <= (c) && (c) <= 'z'))
7993 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7994 #endif
7996 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7998 main ()
8000 int i;
8001 for (i = 0; i < 256; i++)
8002 if (XOR (islower (i), ISLOWER (i))
8003 || toupper (i) != TOUPPER (i))
8004 exit(2);
8005 exit (0);
8007 _ACEOF
8008 rm -f conftest$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8020 else
8021 echo "$as_me: program exited with status $ac_status" >&5
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 ( exit $ac_status )
8026 ac_cv_header_stdc=no
8028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8032 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8033 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8034 if test $ac_cv_header_stdc = yes; then
8036 cat >>confdefs.h <<\_ACEOF
8037 #define STDC_HEADERS 1
8038 _ACEOF
8042 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8043 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8044 if test "${ac_cv_header_time+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h. */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8053 #include <sys/types.h>
8054 #include <sys/time.h>
8055 #include <time.h>
8058 main ()
8060 if ((struct tm *) 0)
8061 return 0;
8063 return 0;
8065 _ACEOF
8066 rm -f conftest.$ac_objext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -z "$ac_c_werror_flag"
8076 || test ! -s conftest.err'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest.$ac_objext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_cv_header_time=yes
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8093 ac_cv_header_time=no
8095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8097 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8098 echo "${ECHO_T}$ac_cv_header_time" >&6
8099 if test $ac_cv_header_time = yes; then
8101 cat >>confdefs.h <<\_ACEOF
8102 #define TIME_WITH_SYS_TIME 1
8103 _ACEOF
8107 ACX_HEADER_STRING
8108 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8109 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8110 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 #include <sys/types.h>
8120 #include <sys/wait.h>
8121 #ifndef WEXITSTATUS
8122 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8123 #endif
8124 #ifndef WIFEXITED
8125 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8126 #endif
8129 main ()
8131 int s;
8132 wait (&s);
8133 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8135 return 0;
8137 _ACEOF
8138 rm -f conftest.$ac_objext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8140 (eval $ac_compile) 2>conftest.er1
8141 ac_status=$?
8142 grep -v '^ *+' conftest.er1 >conftest.err
8143 rm -f conftest.er1
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try='test -z "$ac_c_werror_flag"
8148 || test ! -s conftest.err'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 (eval $ac_try) 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest.$ac_objext'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; }; then
8160 ac_cv_header_sys_wait_h=yes
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_cv_header_sys_wait_h=no
8167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8169 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8170 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8171 if test $ac_cv_header_sys_wait_h = yes; then
8173 cat >>confdefs.h <<\_ACEOF
8174 #define HAVE_SYS_WAIT_H 1
8175 _ACEOF
8201 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8202 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8203 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8204 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8208 echo "$as_me:$LINENO: checking for $ac_header" >&5
8209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8215 else
8216 # Is the header compilable?
8217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8226 #include <$ac_header>
8227 _ACEOF
8228 rm -f conftest.$ac_objext
8229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8230 (eval $ac_compile) 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try='test -z "$ac_c_werror_flag"
8238 || test ! -s conftest.err'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 (eval $ac_try) 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; } &&
8244 { ac_try='test -s conftest.$ac_objext'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 (eval $ac_try) 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8250 ac_header_compiler=yes
8251 else
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 ac_header_compiler=no
8257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8259 echo "${ECHO_T}$ac_header_compiler" >&6
8261 # Is the header present?
8262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8264 cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h. */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8270 #include <$ac_header>
8271 _ACEOF
8272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } >/dev/null; then
8280 if test -s conftest.err; then
8281 ac_cpp_err=$ac_c_preproc_warn_flag
8282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8283 else
8284 ac_cpp_err=
8286 else
8287 ac_cpp_err=yes
8289 if test -z "$ac_cpp_err"; then
8290 ac_header_preproc=yes
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 ac_header_preproc=no
8297 rm -f conftest.err conftest.$ac_ext
8298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8299 echo "${ECHO_T}$ac_header_preproc" >&6
8301 # So? What about this header?
8302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8303 yes:no: )
8304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8308 ac_header_preproc=yes
8310 no:yes:* )
8311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8324 cat <<\_ASBOX
8325 ## ------------------------------------------ ##
8326 ## Report this to the AC_PACKAGE_NAME lists. ##
8327 ## ------------------------------------------ ##
8328 _ASBOX
8330 sed "s/^/$as_me: WARNING: /" >&2
8332 esac
8333 echo "$as_me:$LINENO: checking for $ac_header" >&5
8334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338 eval "$as_ac_Header=\$ac_header_preproc"
8340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8345 cat >>confdefs.h <<_ACEOF
8346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8347 _ACEOF
8351 done
8354 # Check for thread headers.
8355 if test "${ac_cv_header_thread_h+set}" = set; then
8356 echo "$as_me:$LINENO: checking for thread.h" >&5
8357 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8358 if test "${ac_cv_header_thread_h+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8362 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8363 else
8364 # Is the header compilable?
8365 echo "$as_me:$LINENO: checking thread.h usability" >&5
8366 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8374 #include <thread.h>
8375 _ACEOF
8376 rm -f conftest.$ac_objext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8378 (eval $ac_compile) 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -z "$ac_c_werror_flag"
8386 || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest.$ac_objext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 ac_header_compiler=yes
8399 else
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8403 ac_header_compiler=no
8405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8407 echo "${ECHO_T}$ac_header_compiler" >&6
8409 # Is the header present?
8410 echo "$as_me:$LINENO: checking thread.h presence" >&5
8411 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 #include <thread.h>
8419 _ACEOF
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8422 ac_status=$?
8423 grep -v '^ *+' conftest.er1 >conftest.err
8424 rm -f conftest.er1
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } >/dev/null; then
8428 if test -s conftest.err; then
8429 ac_cpp_err=$ac_c_preproc_warn_flag
8430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8431 else
8432 ac_cpp_err=
8434 else
8435 ac_cpp_err=yes
8437 if test -z "$ac_cpp_err"; then
8438 ac_header_preproc=yes
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 ac_header_preproc=no
8445 rm -f conftest.err conftest.$ac_ext
8446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8447 echo "${ECHO_T}$ac_header_preproc" >&6
8449 # So? What about this header?
8450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8451 yes:no: )
8452 { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
8453 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8454 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the compiler's result" >&5
8455 echo "$as_me: WARNING: thread.h: proceeding with the compiler's result" >&2;}
8456 ac_header_preproc=yes
8458 no:yes:* )
8459 { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
8460 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
8461 { echo "$as_me:$LINENO: WARNING: thread.h: check for missing prerequisite headers?" >&5
8462 echo "$as_me: WARNING: thread.h: check for missing prerequisite headers?" >&2;}
8463 { echo "$as_me:$LINENO: WARNING: thread.h: see the Autoconf documentation" >&5
8464 echo "$as_me: WARNING: thread.h: see the Autoconf documentation" >&2;}
8465 { echo "$as_me:$LINENO: WARNING: thread.h: section \"Present But Cannot Be Compiled\"" >&5
8466 echo "$as_me: WARNING: thread.h: section \"Present But Cannot Be Compiled\"" >&2;}
8467 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
8468 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: thread.h: in the future, the compiler will take precedence" >&5
8470 echo "$as_me: WARNING: thread.h: in the future, the compiler will take precedence" >&2;}
8472 cat <<\_ASBOX
8473 ## ------------------------------------------ ##
8474 ## Report this to the AC_PACKAGE_NAME lists. ##
8475 ## ------------------------------------------ ##
8476 _ASBOX
8478 sed "s/^/$as_me: WARNING: /" >&2
8480 esac
8481 echo "$as_me:$LINENO: checking for thread.h" >&5
8482 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8483 if test "${ac_cv_header_thread_h+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486 ac_cv_header_thread_h=$ac_header_preproc
8488 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8489 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8492 if test $ac_cv_header_thread_h = yes; then
8493 have_thread_h=yes
8494 else
8495 have_thread_h=
8499 if test "${ac_cv_header_pthread_h+set}" = set; then
8500 echo "$as_me:$LINENO: checking for pthread.h" >&5
8501 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8502 if test "${ac_cv_header_pthread_h+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8506 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8507 else
8508 # Is the header compilable?
8509 echo "$as_me:$LINENO: checking pthread.h usability" >&5
8510 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
8511 cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h. */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 $ac_includes_default
8518 #include <pthread.h>
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
8529 { ac_try='test -z "$ac_c_werror_flag"
8530 || test ! -s conftest.err'
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); }; } &&
8536 { ac_try='test -s conftest.$ac_objext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_header_compiler=yes
8543 else
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8547 ac_header_compiler=no
8549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8551 echo "${ECHO_T}$ac_header_compiler" >&6
8553 # Is the header present?
8554 echo "$as_me:$LINENO: checking pthread.h presence" >&5
8555 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
8556 cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h. */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8562 #include <pthread.h>
8563 _ACEOF
8564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } >/dev/null; then
8572 if test -s conftest.err; then
8573 ac_cpp_err=$ac_c_preproc_warn_flag
8574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8575 else
8576 ac_cpp_err=
8578 else
8579 ac_cpp_err=yes
8581 if test -z "$ac_cpp_err"; then
8582 ac_header_preproc=yes
8583 else
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_header_preproc=no
8589 rm -f conftest.err conftest.$ac_ext
8590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8591 echo "${ECHO_T}$ac_header_preproc" >&6
8593 # So? What about this header?
8594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8595 yes:no: )
8596 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
8597 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
8599 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
8600 ac_header_preproc=yes
8602 no:yes:* )
8603 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
8604 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
8606 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
8608 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
8609 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
8610 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
8612 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
8614 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
8616 cat <<\_ASBOX
8617 ## ------------------------------------------ ##
8618 ## Report this to the AC_PACKAGE_NAME lists. ##
8619 ## ------------------------------------------ ##
8620 _ASBOX
8622 sed "s/^/$as_me: WARNING: /" >&2
8624 esac
8625 echo "$as_me:$LINENO: checking for pthread.h" >&5
8626 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8627 if test "${ac_cv_header_pthread_h+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630 ac_cv_header_pthread_h=$ac_header_preproc
8632 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8633 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8636 if test $ac_cv_header_pthread_h = yes; then
8637 have_pthread_h=yes
8638 else
8639 have_pthread_h=
8644 # These tests can't be done till we know if we have limits.h.
8645 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8646 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8647 if test "${gcc_cv_decl_char_bit+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h. */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 #ifdef HAVE_LIMITS_H
8657 #include <limits.h>
8658 #endif
8659 #ifdef CHAR_BIT
8660 found
8661 #endif
8662 _ACEOF
8663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8664 $EGREP "found" >/dev/null 2>&1; then
8665 gcc_cv_decl_char_bit=yes
8666 else
8667 gcc_cv_decl_char_bit=no
8669 rm -f conftest*
8673 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8674 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8675 if test $gcc_cv_decl_char_bit = no; then
8676 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8677 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8678 if test "${gcc_cv_c_nbby+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8682 gcc_cv_c_nbby=
8683 while test $i -lt 65; do
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8692 main ()
8694 switch(0) {
8695 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8696 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8699 return 0;
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8704 (eval $ac_compile) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag"
8712 || test ! -s conftest.err'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; } &&
8718 { ac_try='test -s conftest.$ac_objext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 gcc_cv_c_nbby=$i; break
8725 else
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8731 i=`expr $i + 1`
8732 done
8733 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8736 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8737 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8738 if test $gcc_cv_c_nbby = failed; then
8739 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8740 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8741 { (exit 1); exit 1; }; }
8742 else
8744 cat >>confdefs.h <<_ACEOF
8745 #define CHAR_BIT $gcc_cv_c_nbby
8746 _ACEOF
8750 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8751 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8752 if test "${ac_cv_c_bigendian+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 # See if sys/param.h defines the BYTE_ORDER macro.
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 #include <sys/types.h>
8763 #include <sys/param.h>
8766 main ()
8768 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8769 bogus endian macros
8770 #endif
8773 return 0;
8775 _ACEOF
8776 rm -f conftest.$ac_objext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8778 (eval $ac_compile) 2>conftest.er1
8779 ac_status=$?
8780 grep -v '^ *+' conftest.er1 >conftest.err
8781 rm -f conftest.er1
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try='test -z "$ac_c_werror_flag"
8786 || test ! -s conftest.err'
8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 (eval $ac_try) 2>&5
8789 ac_status=$?
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; } &&
8792 { ac_try='test -s conftest.$ac_objext'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 (eval $ac_try) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
8798 # It does; now see whether it defined to BIG_ENDIAN or not.
8799 cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h. */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 #include <sys/types.h>
8806 #include <sys/param.h>
8809 main ()
8811 #if BYTE_ORDER != BIG_ENDIAN
8812 not big endian
8813 #endif
8816 return 0;
8818 _ACEOF
8819 rm -f conftest.$ac_objext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8821 (eval $ac_compile) 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try='test -z "$ac_c_werror_flag"
8829 || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 (eval $ac_try) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest.$ac_objext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 (eval $ac_try) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_cv_c_bigendian=yes
8842 else
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 ac_cv_c_bigendian=no
8848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 # It does not; compile a test program.
8854 if test "$cross_compiling" = yes; then
8855 # try to guess the endianness by grepping values into an object file
8856 ac_cv_c_bigendian=unknown
8857 cat >conftest.$ac_ext <<_ACEOF
8858 /* confdefs.h. */
8859 _ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8863 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8864 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8865 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8866 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8867 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8868 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8870 main ()
8872 _ascii (); _ebcdic ();
8874 return 0;
8876 _ACEOF
8877 rm -f conftest.$ac_objext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8879 (eval $ac_compile) 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -z "$ac_c_werror_flag"
8887 || test ! -s conftest.err'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; } &&
8893 { ac_try='test -s conftest.$ac_objext'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8900 ac_cv_c_bigendian=yes
8902 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8903 if test "$ac_cv_c_bigendian" = unknown; then
8904 ac_cv_c_bigendian=no
8905 else
8906 # finding both strings is unlikely to happen, but who knows?
8907 ac_cv_c_bigendian=unknown
8910 else
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8916 else
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8924 main ()
8926 /* Are we little or big endian? From Harbison&Steele. */
8927 union
8929 long l;
8930 char c[sizeof (long)];
8931 } u;
8932 u.l = 1;
8933 exit (u.c[sizeof (long) - 1] == 1);
8935 _ACEOF
8936 rm -f conftest$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938 (eval $ac_link) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_cv_c_bigendian=no
8948 else
8949 echo "$as_me: program exited with status $ac_status" >&5
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8953 ( exit $ac_status )
8954 ac_cv_c_bigendian=yes
8956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8961 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8962 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8963 case $ac_cv_c_bigendian in
8964 yes)
8966 cat >>confdefs.h <<\_ACEOF
8967 #define WORDS_BIGENDIAN 1
8968 _ACEOF
8973 { { echo "$as_me:$LINENO: error: unknown endianness
8974 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8975 echo "$as_me: error: unknown endianness
8976 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8977 { (exit 1); exit 1; }; } ;;
8978 esac
8981 # --------
8982 # UNSORTED
8983 # --------
8985 # Stage specific cflags for build.
8986 stage1_cflags=
8987 case $build in
8988 vax-*-*)
8989 if test x$GCC = xyes
8990 then
8991 stage1_cflags="-Wa,-J"
8992 else
8993 stage1_cflags="-J"
8996 powerpc-*-darwin*)
8997 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8998 # sources; use -no-cpp-precomp to get to GNU cpp.
8999 # Apple's GCC has bugs in designated initializer handling, so disable
9000 # that too.
9001 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
9003 esac
9006 # These libraries may be used by collect2.
9007 # We may need a special search path to get them linked.
9008 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9009 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9010 if test "${gcc_cv_collect2_libs+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 save_LIBS="$LIBS"
9014 for libs in '' -lld -lmld \
9015 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9016 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9018 LIBS="$libs"
9019 cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h. */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9026 /* Override any gcc2 internal prototype to avoid an error. */
9027 #ifdef __cplusplus
9028 extern "C"
9029 #endif
9030 /* We use char because int might match the return type of a gcc2
9031 builtin and then its argument prototype would still apply. */
9032 char ldopen ();
9034 main ()
9036 ldopen ();
9038 return 0;
9040 _ACEOF
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 gcc_cv_collect2_libs="$libs"; break
9064 else
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9069 rm -f conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9071 done
9072 LIBS="$save_LIBS"
9073 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9075 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9076 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9077 case $gcc_cv_collect2_libs in
9078 "none required") ;;
9079 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9080 esac
9083 # When building Ada code on Alpha, we need exc_resume which is usually in
9084 # -lexc. So test for it.
9085 save_LIBS="$LIBS"
9086 LIBS=
9087 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9088 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9089 if test "${ac_cv_search_exc_resume+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092 ac_func_search_save_LIBS=$LIBS
9093 ac_cv_search_exc_resume=no
9094 cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h. */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9101 /* Override any gcc2 internal prototype to avoid an error. */
9102 #ifdef __cplusplus
9103 extern "C"
9104 #endif
9105 /* We use char because int might match the return type of a gcc2
9106 builtin and then its argument prototype would still apply. */
9107 char exc_resume ();
9109 main ()
9111 exc_resume ();
9113 return 0;
9115 _ACEOF
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest$ac_exeext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_cv_search_exc_resume="none required"
9139 else
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9144 rm -f conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9146 if test "$ac_cv_search_exc_resume" = no; then
9147 for ac_lib in exc; do
9148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9156 /* Override any gcc2 internal prototype to avoid an error. */
9157 #ifdef __cplusplus
9158 extern "C"
9159 #endif
9160 /* We use char because int might match the return type of a gcc2
9161 builtin and then its argument prototype would still apply. */
9162 char exc_resume ();
9164 main ()
9166 exc_resume ();
9168 return 0;
9170 _ACEOF
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9173 (eval $ac_link) 2>conftest.er1
9174 ac_status=$?
9175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
9180 { ac_try='test -z "$ac_c_werror_flag"
9181 || test ! -s conftest.err'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 (eval $ac_try) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; } &&
9187 { ac_try='test -s conftest$ac_exeext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_cv_search_exc_resume="-l$ac_lib"
9194 break
9195 else
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9200 rm -f conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 done
9204 LIBS=$ac_func_search_save_LIBS
9206 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9207 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9208 if test "$ac_cv_search_exc_resume" != no; then
9209 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9213 GNAT_LIBEXC="$LIBS"
9214 LIBS="$save_LIBS"
9217 # Some systems put ldexp and frexp in libm instead of libc; assume
9218 # they're both in the same place. jcf-dump needs them.
9219 save_LIBS="$LIBS"
9220 LIBS=
9221 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9222 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9223 if test "${ac_cv_search_ldexp+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226 ac_func_search_save_LIBS=$LIBS
9227 ac_cv_search_ldexp=no
9228 cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h. */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9235 /* Override any gcc2 internal prototype to avoid an error. */
9236 #ifdef __cplusplus
9237 extern "C"
9238 #endif
9239 /* We use char because int might match the return type of a gcc2
9240 builtin and then its argument prototype would still apply. */
9241 char ldexp ();
9243 main ()
9245 ldexp ();
9247 return 0;
9249 _ACEOF
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_cv_search_ldexp="none required"
9273 else
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9278 rm -f conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 if test "$ac_cv_search_ldexp" = no; then
9281 for ac_lib in m; do
9282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9283 cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h. */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9290 /* Override any gcc2 internal prototype to avoid an error. */
9291 #ifdef __cplusplus
9292 extern "C"
9293 #endif
9294 /* We use char because int might match the return type of a gcc2
9295 builtin and then its argument prototype would still apply. */
9296 char ldexp ();
9298 main ()
9300 ldexp ();
9302 return 0;
9304 _ACEOF
9305 rm -f conftest.$ac_objext conftest$ac_exeext
9306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9307 (eval $ac_link) 2>conftest.er1
9308 ac_status=$?
9309 grep -v '^ *+' conftest.er1 >conftest.err
9310 rm -f conftest.er1
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
9314 { ac_try='test -z "$ac_c_werror_flag"
9315 || test ! -s conftest.err'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; } &&
9321 { ac_try='test -s conftest$ac_exeext'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 (eval $ac_try) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 ac_cv_search_ldexp="-l$ac_lib"
9328 break
9329 else
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9334 rm -f conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9336 done
9338 LIBS=$ac_func_search_save_LIBS
9340 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9341 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9342 if test "$ac_cv_search_ldexp" != no; then
9343 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9347 LDEXP_LIB="$LIBS"
9348 LIBS="$save_LIBS"
9351 # Use <inttypes.h> only if it exists,
9352 # doesn't clash with <sys/types.h>, and declares intmax_t.
9353 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9354 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9355 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h. */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 #include <sys/types.h>
9365 #include <inttypes.h>
9367 main ()
9369 intmax_t i = -1;
9371 return 0;
9373 _ACEOF
9374 rm -f conftest.$ac_objext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376 (eval $ac_compile) 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -z "$ac_c_werror_flag"
9384 || test ! -s conftest.err'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 (eval $ac_try) 2>&5
9387 ac_status=$?
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; } &&
9390 { ac_try='test -s conftest.$ac_objext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 gcc_cv_header_inttypes_h=yes
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 gcc_cv_header_inttypes_h=no
9403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9406 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9407 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9408 if test $gcc_cv_header_inttypes_h = yes; then
9410 cat >>confdefs.h <<\_ACEOF
9411 #define HAVE_INTTYPES_H 1
9412 _ACEOF
9453 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9454 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9455 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9456 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9459 echo "$as_me:$LINENO: checking for $ac_func" >&5
9460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9461 if eval "test \"\${$as_ac_var+set}\" = set"; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9472 #define $ac_func innocuous_$ac_func
9474 /* System header to define __stub macros and hopefully few prototypes,
9475 which can conflict with char $ac_func (); below.
9476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9477 <limits.h> exists even on freestanding compilers. */
9479 #ifdef __STDC__
9480 # include <limits.h>
9481 #else
9482 # include <assert.h>
9483 #endif
9485 #undef $ac_func
9487 /* Override any gcc2 internal prototype to avoid an error. */
9488 #ifdef __cplusplus
9489 extern "C"
9491 #endif
9492 /* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */
9494 char $ac_func ();
9495 /* The GNU C library defines this for functions which it implements
9496 to always fail with ENOSYS. Some functions are actually named
9497 something starting with __ and the normal name is an alias. */
9498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9499 choke me
9500 #else
9501 char (*f) () = $ac_func;
9502 #endif
9503 #ifdef __cplusplus
9505 #endif
9508 main ()
9510 return f != $ac_func;
9512 return 0;
9514 _ACEOF
9515 rm -f conftest.$ac_objext conftest$ac_exeext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517 (eval $ac_link) 2>conftest.er1
9518 ac_status=$?
9519 grep -v '^ *+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -z "$ac_c_werror_flag"
9525 || test ! -s conftest.err'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 (eval $ac_try) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest$ac_exeext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 (eval $ac_try) 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 eval "$as_ac_var=yes"
9538 else
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 eval "$as_ac_var=no"
9544 rm -f conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9549 if test `eval echo '${'$as_ac_var'}'` = yes; then
9550 cat >>confdefs.h <<_ACEOF
9551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9552 _ACEOF
9555 done
9558 if test x$ac_cv_func_mbstowcs = xyes; then
9559 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9560 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9561 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564 if test "$cross_compiling" = yes; then
9565 gcc_cv_func_mbstowcs_works=yes
9566 else
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 #include <stdlib.h>
9574 int main()
9576 mbstowcs(0, "", 0);
9577 return 0;
9579 _ACEOF
9580 rm -f conftest$ac_exeext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9582 (eval $ac_link) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 gcc_cv_func_mbstowcs_works=yes
9592 else
9593 echo "$as_me: program exited with status $ac_status" >&5
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ( exit $ac_status )
9598 gcc_cv_func_mbstowcs_works=no
9600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9603 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9604 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9605 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9607 cat >>confdefs.h <<\_ACEOF
9608 #define HAVE_WORKING_MBSTOWCS 1
9609 _ACEOF
9614 echo "$as_me:$LINENO: checking for ssize_t" >&5
9615 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9616 if test "${ac_cv_type_ssize_t+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h. */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 $ac_includes_default
9627 main ()
9629 if ((ssize_t *) 0)
9630 return 0;
9631 if (sizeof (ssize_t))
9632 return 0;
9634 return 0;
9636 _ACEOF
9637 rm -f conftest.$ac_objext
9638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9639 (eval $ac_compile) 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try='test -z "$ac_c_werror_flag"
9647 || test ! -s conftest.err'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; } &&
9653 { ac_try='test -s conftest.$ac_objext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 (eval $ac_try) 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_type_ssize_t=yes
9660 else
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_cv_type_ssize_t=no
9666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9668 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9669 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9670 if test $ac_cv_type_ssize_t = yes; then
9672 else
9674 cat >>confdefs.h <<_ACEOF
9675 #define ssize_t int
9676 _ACEOF
9681 # Try to determine the array type of the second argument of getgroups
9682 # for the target system (int or gid_t).
9683 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9684 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9685 if test "${ac_cv_type_uid_t+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 #include <sys/types.h>
9696 _ACEOF
9697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9698 $EGREP "uid_t" >/dev/null 2>&1; then
9699 ac_cv_type_uid_t=yes
9700 else
9701 ac_cv_type_uid_t=no
9703 rm -f conftest*
9706 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9707 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9708 if test $ac_cv_type_uid_t = no; then
9710 cat >>confdefs.h <<\_ACEOF
9711 #define uid_t int
9712 _ACEOF
9715 cat >>confdefs.h <<\_ACEOF
9716 #define gid_t int
9717 _ACEOF
9721 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9722 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9723 if test "${ac_cv_type_getgroups+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726 if test "$cross_compiling" = yes; then
9727 ac_cv_type_getgroups=cross
9728 else
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h. */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 /* Thanks to Mike Rendell for this test. */
9736 #include <sys/types.h>
9737 #define NGID 256
9738 #undef MAX
9739 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9742 main ()
9744 gid_t gidset[NGID];
9745 int i, n;
9746 union { gid_t gval; long lval; } val;
9748 val.lval = -1;
9749 for (i = 0; i < NGID; i++)
9750 gidset[i] = val.gval;
9751 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9752 gidset);
9753 /* Exit non-zero if getgroups seems to require an array of ints. This
9754 happens when gid_t is short but getgroups modifies an array of ints. */
9755 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9757 _ACEOF
9758 rm -f conftest$ac_exeext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760 (eval $ac_link) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_type_getgroups=gid_t
9770 else
9771 echo "$as_me: program exited with status $ac_status" >&5
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9775 ( exit $ac_status )
9776 ac_cv_type_getgroups=int
9778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9780 if test $ac_cv_type_getgroups = cross; then
9781 cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h. */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 #include <unistd.h>
9789 _ACEOF
9790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9791 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9792 ac_cv_type_getgroups=gid_t
9793 else
9794 ac_cv_type_getgroups=int
9796 rm -f conftest*
9800 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9801 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9803 cat >>confdefs.h <<_ACEOF
9804 #define GETGROUPS_T $ac_cv_type_getgroups
9805 _ACEOF
9808 if test "${target}" = "${build}"; then
9809 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9810 else
9811 case "${target}" in
9812 # This condition may need some tweaking. It should include all
9813 # targets where the array type of the second argument of getgroups
9814 # is int and the type of gid_t is not equivalent to int.
9815 *-*-sunos* | *-*-ultrix*)
9816 TARGET_GETGROUPS_T=int
9819 TARGET_GETGROUPS_T=gid_t
9821 esac
9826 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9827 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9828 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9829 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9833 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9834 else
9835 # Is the header compilable?
9836 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
9837 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h. */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 $ac_includes_default
9845 #include <sys/mman.h>
9846 _ACEOF
9847 rm -f conftest.$ac_objext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9849 (eval $ac_compile) 2>conftest.er1
9850 ac_status=$?
9851 grep -v '^ *+' conftest.er1 >conftest.err
9852 rm -f conftest.er1
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag"
9857 || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest.$ac_objext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_header_compiler=yes
9870 else
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_header_compiler=no
9876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878 echo "${ECHO_T}$ac_header_compiler" >&6
9880 # Is the header present?
9881 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
9882 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h. */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 #include <sys/mman.h>
9890 _ACEOF
9891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } >/dev/null; then
9899 if test -s conftest.err; then
9900 ac_cpp_err=$ac_c_preproc_warn_flag
9901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9902 else
9903 ac_cpp_err=
9905 else
9906 ac_cpp_err=yes
9908 if test -z "$ac_cpp_err"; then
9909 ac_header_preproc=yes
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 ac_header_preproc=no
9916 rm -f conftest.err conftest.$ac_ext
9917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918 echo "${ECHO_T}$ac_header_preproc" >&6
9920 # So? What about this header?
9921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9922 yes:no: )
9923 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
9924 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
9926 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
9927 ac_header_preproc=yes
9929 no:yes:* )
9930 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
9931 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
9933 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
9935 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
9937 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
9939 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
9941 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
9943 cat <<\_ASBOX
9944 ## ------------------------------------------ ##
9945 ## Report this to the AC_PACKAGE_NAME lists. ##
9946 ## ------------------------------------------ ##
9947 _ASBOX
9949 sed "s/^/$as_me: WARNING: /" >&2
9951 esac
9952 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9953 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9954 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 ac_cv_header_sys_mman_h=$ac_header_preproc
9959 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9960 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9963 if test $ac_cv_header_sys_mman_h = yes; then
9964 gcc_header_sys_mman_h=yes
9965 else
9966 gcc_header_sys_mman_h=no
9970 echo "$as_me:$LINENO: checking for mmap" >&5
9971 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9972 if test "${ac_cv_func_mmap+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975 cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h. */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9981 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9983 #define mmap innocuous_mmap
9985 /* System header to define __stub macros and hopefully few prototypes,
9986 which can conflict with char mmap (); below.
9987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9988 <limits.h> exists even on freestanding compilers. */
9990 #ifdef __STDC__
9991 # include <limits.h>
9992 #else
9993 # include <assert.h>
9994 #endif
9996 #undef mmap
9998 /* Override any gcc2 internal prototype to avoid an error. */
9999 #ifdef __cplusplus
10000 extern "C"
10002 #endif
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10005 char mmap ();
10006 /* The GNU C library defines this for functions which it implements
10007 to always fail with ENOSYS. Some functions are actually named
10008 something starting with __ and the normal name is an alias. */
10009 #if defined (__stub_mmap) || defined (__stub___mmap)
10010 choke me
10011 #else
10012 char (*f) () = mmap;
10013 #endif
10014 #ifdef __cplusplus
10016 #endif
10019 main ()
10021 return f != mmap;
10023 return 0;
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag"
10036 || test ! -s conftest.err'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; } &&
10042 { ac_try='test -s conftest$ac_exeext'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 ac_cv_func_mmap=yes
10049 else
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10053 ac_cv_func_mmap=no
10055 rm -f conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10058 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10059 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10060 if test $ac_cv_func_mmap = yes; then
10061 gcc_func_mmap=yes
10062 else
10063 gcc_func_mmap=no
10066 if test "$gcc_header_sys_mman_h" != yes \
10067 || test "$gcc_func_mmap" != yes; then
10068 gcc_cv_func_mmap_file=no
10069 gcc_cv_func_mmap_dev_zero=no
10070 gcc_cv_func_mmap_anon=no
10071 else
10072 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10073 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10074 if test "${gcc_cv_func_mmap_file+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077 # Add a system to this blacklist if
10078 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10079 # memory area containing the same data that you'd get if you applied
10080 # read() to the same fd. The only system known to have a problem here
10081 # is VMS, where text files have record structure.
10082 case "$host_os" in
10083 vms* | ultrix*)
10084 gcc_cv_func_mmap_file=no ;;
10086 gcc_cv_func_mmap_file=yes;;
10087 esac
10089 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10090 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10091 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10092 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10093 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096 # Add a system to this blacklist if it has mmap() but /dev/zero
10097 # does not exist, or if mmapping /dev/zero does not give anonymous
10098 # zeroed pages with both the following properties:
10099 # 1. If you map N consecutive pages in with one call, and then
10100 # unmap any subset of those pages, the pages that were not
10101 # explicitly unmapped remain accessible.
10102 # 2. If you map two adjacent blocks of memory and then unmap them
10103 # both at once, they must both go away.
10104 # Systems known to be in this category are Windows (all variants),
10105 # VMS, and Darwin.
10106 case "$host_os" in
10107 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10108 gcc_cv_func_mmap_dev_zero=no ;;
10110 gcc_cv_func_mmap_dev_zero=yes;;
10111 esac
10113 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10114 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10116 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10117 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10118 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10119 if test "${gcc_cv_decl_map_anon+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h. */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 #include <sys/types.h>
10129 #include <sys/mman.h>
10130 #include <unistd.h>
10132 #ifndef MAP_ANONYMOUS
10133 #define MAP_ANONYMOUS MAP_ANON
10134 #endif
10137 main ()
10139 int n = MAP_ANONYMOUS;
10141 return 0;
10143 _ACEOF
10144 rm -f conftest.$ac_objext
10145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10146 (eval $ac_compile) 2>conftest.er1
10147 ac_status=$?
10148 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } &&
10153 { ac_try='test -z "$ac_c_werror_flag"
10154 || test ! -s conftest.err'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; } &&
10160 { ac_try='test -s conftest.$ac_objext'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 gcc_cv_decl_map_anon=yes
10167 else
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 gcc_cv_decl_map_anon=no
10173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10175 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10176 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10178 if test $gcc_cv_decl_map_anon = no; then
10179 gcc_cv_func_mmap_anon=no
10180 else
10181 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10182 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10183 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10187 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10188 # doesn't give anonymous zeroed pages with the same properties listed
10189 # above for use of /dev/zero.
10190 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10191 case "$host_os" in
10192 vms* | cygwin* | pe | mingw* | sco* | udk* )
10193 gcc_cv_func_mmap_anon=no ;;
10195 gcc_cv_func_mmap_anon=yes;;
10196 esac
10198 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10199 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10203 if test $gcc_cv_func_mmap_file = yes; then
10205 cat >>confdefs.h <<\_ACEOF
10206 #define HAVE_MMAP_FILE 1
10207 _ACEOF
10210 if test $gcc_cv_func_mmap_dev_zero = yes; then
10212 cat >>confdefs.h <<\_ACEOF
10213 #define HAVE_MMAP_DEV_ZERO 1
10214 _ACEOF
10217 if test $gcc_cv_func_mmap_anon = yes; then
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_MMAP_ANON 1
10221 _ACEOF
10226 case "${host}" in
10227 *-*-*vms*)
10228 # Under VMS, vfork works very differently than on Unix. The standard test
10229 # won't work, and it isn't easily adaptable. It makes more sense to
10230 # just force it.
10231 ac_cv_func_vfork_works=yes
10233 esac
10234 echo "$as_me:$LINENO: checking for pid_t" >&5
10235 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10236 if test "${ac_cv_type_pid_t+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239 cat >conftest.$ac_ext <<_ACEOF
10240 /* confdefs.h. */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10245 $ac_includes_default
10247 main ()
10249 if ((pid_t *) 0)
10250 return 0;
10251 if (sizeof (pid_t))
10252 return 0;
10254 return 0;
10256 _ACEOF
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
10266 { ac_try='test -z "$ac_c_werror_flag"
10267 || test ! -s conftest.err'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; } &&
10273 { ac_try='test -s conftest.$ac_objext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_cv_type_pid_t=yes
10280 else
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10284 ac_cv_type_pid_t=no
10286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10288 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10289 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10290 if test $ac_cv_type_pid_t = yes; then
10292 else
10294 cat >>confdefs.h <<_ACEOF
10295 #define pid_t int
10296 _ACEOF
10302 for ac_header in unistd.h vfork.h
10304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10306 echo "$as_me:$LINENO: checking for $ac_header" >&5
10307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10313 else
10314 # Is the header compilable?
10315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10317 cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h. */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323 $ac_includes_default
10324 #include <$ac_header>
10325 _ACEOF
10326 rm -f conftest.$ac_objext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10328 (eval $ac_compile) 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } &&
10335 { ac_try='test -z "$ac_c_werror_flag"
10336 || test ! -s conftest.err'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; } &&
10342 { ac_try='test -s conftest.$ac_objext'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_header_compiler=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 ac_header_compiler=no
10355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10357 echo "${ECHO_T}$ac_header_compiler" >&6
10359 # Is the header present?
10360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10362 cat >conftest.$ac_ext <<_ACEOF
10363 /* confdefs.h. */
10364 _ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 #include <$ac_header>
10369 _ACEOF
10370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } >/dev/null; then
10378 if test -s conftest.err; then
10379 ac_cpp_err=$ac_c_preproc_warn_flag
10380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10381 else
10382 ac_cpp_err=
10384 else
10385 ac_cpp_err=yes
10387 if test -z "$ac_cpp_err"; then
10388 ac_header_preproc=yes
10389 else
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10393 ac_header_preproc=no
10395 rm -f conftest.err conftest.$ac_ext
10396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10397 echo "${ECHO_T}$ac_header_preproc" >&6
10399 # So? What about this header?
10400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10401 yes:no: )
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10406 ac_header_preproc=yes
10408 no:yes:* )
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10422 cat <<\_ASBOX
10423 ## ------------------------------------------ ##
10424 ## Report this to the AC_PACKAGE_NAME lists. ##
10425 ## ------------------------------------------ ##
10426 _ASBOX
10428 sed "s/^/$as_me: WARNING: /" >&2
10430 esac
10431 echo "$as_me:$LINENO: checking for $ac_header" >&5
10432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436 eval "$as_ac_Header=\$ac_header_preproc"
10438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10443 cat >>confdefs.h <<_ACEOF
10444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10445 _ACEOF
10449 done
10453 for ac_func in fork vfork
10455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10456 echo "$as_me:$LINENO: checking for $ac_func" >&5
10457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10458 if eval "test \"\${$as_ac_var+set}\" = set"; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461 cat >conftest.$ac_ext <<_ACEOF
10462 /* confdefs.h. */
10463 _ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10469 #define $ac_func innocuous_$ac_func
10471 /* System header to define __stub macros and hopefully few prototypes,
10472 which can conflict with char $ac_func (); below.
10473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10474 <limits.h> exists even on freestanding compilers. */
10476 #ifdef __STDC__
10477 # include <limits.h>
10478 #else
10479 # include <assert.h>
10480 #endif
10482 #undef $ac_func
10484 /* Override any gcc2 internal prototype to avoid an error. */
10485 #ifdef __cplusplus
10486 extern "C"
10488 #endif
10489 /* We use char because int might match the return type of a gcc2
10490 builtin and then its argument prototype would still apply. */
10491 char $ac_func ();
10492 /* The GNU C library defines this for functions which it implements
10493 to always fail with ENOSYS. Some functions are actually named
10494 something starting with __ and the normal name is an alias. */
10495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10496 choke me
10497 #else
10498 char (*f) () = $ac_func;
10499 #endif
10500 #ifdef __cplusplus
10502 #endif
10505 main ()
10507 return f != $ac_func;
10509 return 0;
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514 (eval $ac_link) 2>conftest.er1
10515 ac_status=$?
10516 grep -v '^ *+' conftest.er1 >conftest.err
10517 rm -f conftest.er1
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -z "$ac_c_werror_flag"
10522 || test ! -s conftest.err'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try='test -s conftest$ac_exeext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10534 eval "$as_ac_var=yes"
10535 else
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 eval "$as_ac_var=no"
10541 rm -f conftest.err conftest.$ac_objext \
10542 conftest$ac_exeext conftest.$ac_ext
10544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10546 if test `eval echo '${'$as_ac_var'}'` = yes; then
10547 cat >>confdefs.h <<_ACEOF
10548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10549 _ACEOF
10552 done
10554 if test "x$ac_cv_func_fork" = xyes; then
10555 echo "$as_me:$LINENO: checking for working fork" >&5
10556 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10557 if test "${ac_cv_func_fork_works+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 else
10560 if test "$cross_compiling" = yes; then
10561 ac_cv_func_fork_works=cross
10562 else
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* By Ruediger Kuhlmann. */
10565 #include <sys/types.h>
10566 #if HAVE_UNISTD_H
10567 # include <unistd.h>
10568 #endif
10569 /* Some systems only have a dummy stub for fork() */
10570 int main ()
10572 if (fork() < 0)
10573 exit (1);
10574 exit (0);
10576 _ACEOF
10577 rm -f conftest$ac_exeext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10579 (eval $ac_link) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_func_fork_works=yes
10589 else
10590 echo "$as_me: program exited with status $ac_status" >&5
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 ( exit $ac_status )
10595 ac_cv_func_fork_works=no
10597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10600 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10601 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10603 else
10604 ac_cv_func_fork_works=$ac_cv_func_fork
10606 if test "x$ac_cv_func_fork_works" = xcross; then
10607 case $host in
10608 *-*-amigaos* | *-*-msdosdjgpp*)
10609 # Override, as these systems have only a dummy fork() stub
10610 ac_cv_func_fork_works=no
10613 ac_cv_func_fork_works=yes
10615 esac
10616 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10617 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10619 ac_cv_func_vfork_works=$ac_cv_func_vfork
10620 if test "x$ac_cv_func_vfork" = xyes; then
10621 echo "$as_me:$LINENO: checking for working vfork" >&5
10622 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10623 if test "${ac_cv_func_vfork_works+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626 if test "$cross_compiling" = yes; then
10627 ac_cv_func_vfork_works=cross
10628 else
10629 cat >conftest.$ac_ext <<_ACEOF
10630 /* confdefs.h. */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 /* Thanks to Paul Eggert for this test. */
10636 #include <stdio.h>
10637 #include <stdlib.h>
10638 #include <sys/types.h>
10639 #include <sys/stat.h>
10640 #include <sys/wait.h>
10641 #if HAVE_UNISTD_H
10642 # include <unistd.h>
10643 #endif
10644 #if HAVE_VFORK_H
10645 # include <vfork.h>
10646 #endif
10647 /* On some sparc systems, changes by the child to local and incoming
10648 argument registers are propagated back to the parent. The compiler
10649 is told about this with #include <vfork.h>, but some compilers
10650 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10651 static variable whose address is put into a register that is
10652 clobbered by the vfork. */
10653 static void
10654 #ifdef __cplusplus
10655 sparc_address_test (int arg)
10656 # else
10657 sparc_address_test (arg) int arg;
10658 #endif
10660 static pid_t child;
10661 if (!child) {
10662 child = vfork ();
10663 if (child < 0) {
10664 perror ("vfork");
10665 _exit(2);
10667 if (!child) {
10668 arg = getpid();
10669 write(-1, "", 0);
10670 _exit (arg);
10676 main ()
10678 pid_t parent = getpid ();
10679 pid_t child;
10681 sparc_address_test (0);
10683 child = vfork ();
10685 if (child == 0) {
10686 /* Here is another test for sparc vfork register problems. This
10687 test uses lots of local variables, at least as many local
10688 variables as main has allocated so far including compiler
10689 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10690 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10691 reuse the register of parent for one of the local variables,
10692 since it will think that parent can't possibly be used any more
10693 in this routine. Assigning to the local variable will thus
10694 munge parent in the parent process. */
10695 pid_t
10696 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10697 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10698 /* Convince the compiler that p..p7 are live; otherwise, it might
10699 use the same hardware register for all 8 local variables. */
10700 if (p != p1 || p != p2 || p != p3 || p != p4
10701 || p != p5 || p != p6 || p != p7)
10702 _exit(1);
10704 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10705 from child file descriptors. If the child closes a descriptor
10706 before it execs or exits, this munges the parent's descriptor
10707 as well. Test for this by closing stdout in the child. */
10708 _exit(close(fileno(stdout)) != 0);
10709 } else {
10710 int status;
10711 struct stat st;
10713 while (wait(&status) != child)
10715 exit(
10716 /* Was there some problem with vforking? */
10717 child < 0
10719 /* Did the child fail? (This shouldn't happen.) */
10720 || status
10722 /* Did the vfork/compiler bug occur? */
10723 || parent != getpid()
10725 /* Did the file descriptor bug occur? */
10726 || fstat(fileno(stdout), &st) != 0
10730 _ACEOF
10731 rm -f conftest$ac_exeext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10733 (eval $ac_link) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_cv_func_vfork_works=yes
10743 else
10744 echo "$as_me: program exited with status $ac_status" >&5
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10748 ( exit $ac_status )
10749 ac_cv_func_vfork_works=no
10751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10754 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10755 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10758 if test "x$ac_cv_func_fork_works" = xcross; then
10759 ac_cv_func_vfork_works=$ac_cv_func_vfork
10760 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10761 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10764 if test "x$ac_cv_func_vfork_works" = xyes; then
10766 cat >>confdefs.h <<\_ACEOF
10767 #define HAVE_WORKING_VFORK 1
10768 _ACEOF
10770 else
10772 cat >>confdefs.h <<\_ACEOF
10773 #define vfork fork
10774 _ACEOF
10777 if test "x$ac_cv_func_fork_works" = xyes; then
10779 cat >>confdefs.h <<\_ACEOF
10780 #define HAVE_WORKING_FORK 1
10781 _ACEOF
10787 if test "X$prefix" = "XNONE"; then
10788 acl_final_prefix="$ac_default_prefix"
10789 else
10790 acl_final_prefix="$prefix"
10792 if test "X$exec_prefix" = "XNONE"; then
10793 acl_final_exec_prefix='${prefix}'
10794 else
10795 acl_final_exec_prefix="$exec_prefix"
10797 acl_save_prefix="$prefix"
10798 prefix="$acl_final_prefix"
10799 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10800 prefix="$acl_save_prefix"
10803 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10804 if test "${with_gnu_ld+set}" = set; then
10805 withval="$with_gnu_ld"
10806 test "$withval" = no || with_gnu_ld=yes
10807 else
10808 with_gnu_ld=no
10810 # Prepare PATH_SEPARATOR.
10811 # The user is always right.
10812 if test "${PATH_SEPARATOR+set}" != set; then
10813 echo "#! /bin/sh" >conf$$.sh
10814 echo "exit 0" >>conf$$.sh
10815 chmod +x conf$$.sh
10816 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10817 PATH_SEPARATOR=';'
10818 else
10819 PATH_SEPARATOR=:
10821 rm -f conf$$.sh
10823 ac_prog=ld
10824 if test "$GCC" = yes; then
10825 # Check if gcc -print-prog-name=ld gives a path.
10826 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10827 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10828 case $host in
10829 *-*-mingw*)
10830 # gcc leaves a trailing carriage return which upsets mingw
10831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10834 esac
10835 case $ac_prog in
10836 # Accept absolute paths.
10837 [\\/]* | [A-Za-z]:[\\/]*)
10838 re_direlt='/[^/][^/]*/\.\./'
10839 # Canonicalize the path of ld
10840 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10841 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10842 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10843 done
10844 test -z "$LD" && LD="$ac_prog"
10847 # If it fails, then pretend we aren't using GCC.
10848 ac_prog=ld
10851 # If it is relative, then search for the first ld in PATH.
10852 with_gnu_ld=unknown
10854 esac
10855 elif test "$with_gnu_ld" = yes; then
10856 echo "$as_me:$LINENO: checking for GNU ld" >&5
10857 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10858 else
10859 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10860 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10862 if test "${acl_cv_path_LD+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865 if test -z "$LD"; then
10866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10867 for ac_dir in $PATH; do
10868 test -z "$ac_dir" && ac_dir=.
10869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10870 acl_cv_path_LD="$ac_dir/$ac_prog"
10871 # Check to see if the program is GNU ld. I'd rather use --version,
10872 # but apparently some GNU ld's only accept -v.
10873 # Break only if it was the GNU/non-GNU ld that we prefer.
10874 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10875 *GNU* | *'with BFD'*)
10876 test "$with_gnu_ld" != no && break ;;
10878 test "$with_gnu_ld" != yes && break ;;
10879 esac
10881 done
10882 IFS="$ac_save_ifs"
10883 else
10884 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10888 LD="$acl_cv_path_LD"
10889 if test -n "$LD"; then
10890 echo "$as_me:$LINENO: result: $LD" >&5
10891 echo "${ECHO_T}$LD" >&6
10892 else
10893 echo "$as_me:$LINENO: result: no" >&5
10894 echo "${ECHO_T}no" >&6
10896 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10897 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10898 { (exit 1); exit 1; }; }
10899 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10900 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10901 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10905 case `$LD -v 2>&1 </dev/null` in
10906 *GNU* | *'with BFD'*)
10907 acl_cv_prog_gnu_ld=yes ;;
10909 acl_cv_prog_gnu_ld=no ;;
10910 esac
10912 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10913 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10914 with_gnu_ld=$acl_cv_prog_gnu_ld
10919 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10920 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10921 if test "${acl_cv_rpath+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10925 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10926 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10927 . ./conftest.sh
10928 rm -f ./conftest.sh
10929 acl_cv_rpath=done
10932 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10933 echo "${ECHO_T}$acl_cv_rpath" >&6
10934 wl="$acl_cv_wl"
10935 libext="$acl_cv_libext"
10936 shlibext="$acl_cv_shlibext"
10937 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10938 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10939 hardcode_direct="$acl_cv_hardcode_direct"
10940 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10941 # Check whether --enable-rpath or --disable-rpath was given.
10942 if test "${enable_rpath+set}" = set; then
10943 enableval="$enable_rpath"
10945 else
10946 enable_rpath=yes
10955 use_additional=yes
10957 acl_save_prefix="$prefix"
10958 prefix="$acl_final_prefix"
10959 acl_save_exec_prefix="$exec_prefix"
10960 exec_prefix="$acl_final_exec_prefix"
10962 eval additional_includedir=\"$includedir\"
10963 eval additional_libdir=\"$libdir\"
10965 exec_prefix="$acl_save_exec_prefix"
10966 prefix="$acl_save_prefix"
10969 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10970 if test "${with_libiconv_prefix+set}" = set; then
10971 withval="$with_libiconv_prefix"
10973 if test "X$withval" = "Xno"; then
10974 use_additional=no
10975 else
10976 if test "X$withval" = "X"; then
10978 acl_save_prefix="$prefix"
10979 prefix="$acl_final_prefix"
10980 acl_save_exec_prefix="$exec_prefix"
10981 exec_prefix="$acl_final_exec_prefix"
10983 eval additional_includedir=\"$includedir\"
10984 eval additional_libdir=\"$libdir\"
10986 exec_prefix="$acl_save_exec_prefix"
10987 prefix="$acl_save_prefix"
10989 else
10990 additional_includedir="$withval/include"
10991 additional_libdir="$withval/lib"
10996 LIBICONV=
10997 LTLIBICONV=
10998 INCICONV=
10999 rpathdirs=
11000 ltrpathdirs=
11001 names_already_handled=
11002 names_next_round='iconv '
11003 while test -n "$names_next_round"; do
11004 names_this_round="$names_next_round"
11005 names_next_round=
11006 for name in $names_this_round; do
11007 already_handled=
11008 for n in $names_already_handled; do
11009 if test "$n" = "$name"; then
11010 already_handled=yes
11011 break
11013 done
11014 if test -z "$already_handled"; then
11015 names_already_handled="$names_already_handled $name"
11016 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11017 eval value=\"\$HAVE_LIB$uppername\"
11018 if test -n "$value"; then
11019 if test "$value" = yes; then
11020 eval value=\"\$LIB$uppername\"
11021 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11022 eval value=\"\$LTLIB$uppername\"
11023 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11024 else
11027 else
11028 found_dir=
11029 found_la=
11030 found_so=
11031 found_a=
11032 if test $use_additional = yes; then
11033 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11034 found_dir="$additional_libdir"
11035 found_so="$additional_libdir/lib$name.$shlibext"
11036 if test -f "$additional_libdir/lib$name.la"; then
11037 found_la="$additional_libdir/lib$name.la"
11039 else
11040 if test -f "$additional_libdir/lib$name.$libext"; then
11041 found_dir="$additional_libdir"
11042 found_a="$additional_libdir/lib$name.$libext"
11043 if test -f "$additional_libdir/lib$name.la"; then
11044 found_la="$additional_libdir/lib$name.la"
11049 if test "X$found_dir" = "X"; then
11050 for x in $LDFLAGS $LTLIBICONV; do
11052 acl_save_prefix="$prefix"
11053 prefix="$acl_final_prefix"
11054 acl_save_exec_prefix="$exec_prefix"
11055 exec_prefix="$acl_final_exec_prefix"
11056 eval x=\"$x\"
11057 exec_prefix="$acl_save_exec_prefix"
11058 prefix="$acl_save_prefix"
11060 case "$x" in
11061 -L*)
11062 dir=`echo "X$x" | sed -e 's/^X-L//'`
11063 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11064 found_dir="$dir"
11065 found_so="$dir/lib$name.$shlibext"
11066 if test -f "$dir/lib$name.la"; then
11067 found_la="$dir/lib$name.la"
11069 else
11070 if test -f "$dir/lib$name.$libext"; then
11071 found_dir="$dir"
11072 found_a="$dir/lib$name.$libext"
11073 if test -f "$dir/lib$name.la"; then
11074 found_la="$dir/lib$name.la"
11079 esac
11080 if test "X$found_dir" != "X"; then
11081 break
11083 done
11085 if test "X$found_dir" != "X"; then
11086 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11087 if test "X$found_so" != "X"; then
11088 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11089 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11090 else
11091 haveit=
11092 for x in $ltrpathdirs; do
11093 if test "X$x" = "X$found_dir"; then
11094 haveit=yes
11095 break
11097 done
11098 if test -z "$haveit"; then
11099 ltrpathdirs="$ltrpathdirs $found_dir"
11101 if test "$hardcode_direct" = yes; then
11102 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11103 else
11104 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11105 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11106 haveit=
11107 for x in $rpathdirs; do
11108 if test "X$x" = "X$found_dir"; then
11109 haveit=yes
11110 break
11112 done
11113 if test -z "$haveit"; then
11114 rpathdirs="$rpathdirs $found_dir"
11116 else
11117 haveit=
11118 for x in $LDFLAGS $LIBICONV; do
11120 acl_save_prefix="$prefix"
11121 prefix="$acl_final_prefix"
11122 acl_save_exec_prefix="$exec_prefix"
11123 exec_prefix="$acl_final_exec_prefix"
11124 eval x=\"$x\"
11125 exec_prefix="$acl_save_exec_prefix"
11126 prefix="$acl_save_prefix"
11128 if test "X$x" = "X-L$found_dir"; then
11129 haveit=yes
11130 break
11132 done
11133 if test -z "$haveit"; then
11134 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11136 if test "$hardcode_minus_L" != no; then
11137 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11138 else
11139 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11144 else
11145 if test "X$found_a" != "X"; then
11146 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11147 else
11148 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11151 additional_includedir=
11152 case "$found_dir" in
11153 */lib | */lib/)
11154 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11155 additional_includedir="$basedir/include"
11157 esac
11158 if test "X$additional_includedir" != "X"; then
11159 if test "X$additional_includedir" != "X/usr/include"; then
11160 haveit=
11161 if test "X$additional_includedir" = "X/usr/local/include"; then
11162 if test -n "$GCC"; then
11163 case $host_os in
11164 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11165 esac
11168 if test -z "$haveit"; then
11169 for x in $CPPFLAGS $INCICONV; do
11171 acl_save_prefix="$prefix"
11172 prefix="$acl_final_prefix"
11173 acl_save_exec_prefix="$exec_prefix"
11174 exec_prefix="$acl_final_exec_prefix"
11175 eval x=\"$x\"
11176 exec_prefix="$acl_save_exec_prefix"
11177 prefix="$acl_save_prefix"
11179 if test "X$x" = "X-I$additional_includedir"; then
11180 haveit=yes
11181 break
11183 done
11184 if test -z "$haveit"; then
11185 if test -d "$additional_includedir"; then
11186 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11192 if test -n "$found_la"; then
11193 save_libdir="$libdir"
11194 case "$found_la" in
11195 */* | *\\*) . "$found_la" ;;
11196 *) . "./$found_la" ;;
11197 esac
11198 libdir="$save_libdir"
11199 for dep in $dependency_libs; do
11200 case "$dep" in
11201 -L*)
11202 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11203 if test "X$additional_libdir" != "X/usr/lib"; then
11204 haveit=
11205 if test "X$additional_libdir" = "X/usr/local/lib"; then
11206 if test -n "$GCC"; then
11207 case $host_os in
11208 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11209 esac
11212 if test -z "$haveit"; then
11213 haveit=
11214 for x in $LDFLAGS $LIBICONV; do
11216 acl_save_prefix="$prefix"
11217 prefix="$acl_final_prefix"
11218 acl_save_exec_prefix="$exec_prefix"
11219 exec_prefix="$acl_final_exec_prefix"
11220 eval x=\"$x\"
11221 exec_prefix="$acl_save_exec_prefix"
11222 prefix="$acl_save_prefix"
11224 if test "X$x" = "X-L$additional_libdir"; then
11225 haveit=yes
11226 break
11228 done
11229 if test -z "$haveit"; then
11230 if test -d "$additional_libdir"; then
11231 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11234 haveit=
11235 for x in $LDFLAGS $LTLIBICONV; do
11237 acl_save_prefix="$prefix"
11238 prefix="$acl_final_prefix"
11239 acl_save_exec_prefix="$exec_prefix"
11240 exec_prefix="$acl_final_exec_prefix"
11241 eval x=\"$x\"
11242 exec_prefix="$acl_save_exec_prefix"
11243 prefix="$acl_save_prefix"
11245 if test "X$x" = "X-L$additional_libdir"; then
11246 haveit=yes
11247 break
11249 done
11250 if test -z "$haveit"; then
11251 if test -d "$additional_libdir"; then
11252 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11258 -R*)
11259 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11260 if test "$enable_rpath" != no; then
11261 haveit=
11262 for x in $rpathdirs; do
11263 if test "X$x" = "X$dir"; then
11264 haveit=yes
11265 break
11267 done
11268 if test -z "$haveit"; then
11269 rpathdirs="$rpathdirs $dir"
11271 haveit=
11272 for x in $ltrpathdirs; do
11273 if test "X$x" = "X$dir"; then
11274 haveit=yes
11275 break
11277 done
11278 if test -z "$haveit"; then
11279 ltrpathdirs="$ltrpathdirs $dir"
11283 -l*)
11284 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11286 *.la)
11287 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11290 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11291 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11293 esac
11294 done
11296 else
11297 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11298 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11302 done
11303 done
11304 if test "X$rpathdirs" != "X"; then
11305 if test -n "$hardcode_libdir_separator"; then
11306 alldirs=
11307 for found_dir in $rpathdirs; do
11308 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11309 done
11310 acl_save_libdir="$libdir"
11311 libdir="$alldirs"
11312 eval flag=\"$hardcode_libdir_flag_spec\"
11313 libdir="$acl_save_libdir"
11314 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11315 else
11316 for found_dir in $rpathdirs; do
11317 acl_save_libdir="$libdir"
11318 libdir="$found_dir"
11319 eval flag=\"$hardcode_libdir_flag_spec\"
11320 libdir="$acl_save_libdir"
11321 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11322 done
11325 if test "X$ltrpathdirs" != "X"; then
11326 for found_dir in $ltrpathdirs; do
11327 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11328 done
11337 am_save_CPPFLAGS="$CPPFLAGS"
11339 for element in $INCICONV; do
11340 haveit=
11341 for x in $CPPFLAGS; do
11343 acl_save_prefix="$prefix"
11344 prefix="$acl_final_prefix"
11345 acl_save_exec_prefix="$exec_prefix"
11346 exec_prefix="$acl_final_exec_prefix"
11347 eval x=\"$x\"
11348 exec_prefix="$acl_save_exec_prefix"
11349 prefix="$acl_save_prefix"
11351 if test "X$x" = "X$element"; then
11352 haveit=yes
11353 break
11355 done
11356 if test -z "$haveit"; then
11357 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11359 done
11362 echo "$as_me:$LINENO: checking for iconv" >&5
11363 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11364 if test "${am_cv_func_iconv+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11368 am_cv_func_iconv="no, consider installing GNU libiconv"
11369 am_cv_lib_iconv=no
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h. */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 #include <stdlib.h>
11377 #include <iconv.h>
11379 main ()
11381 iconv_t cd = iconv_open("","");
11382 iconv(cd,NULL,NULL,NULL,NULL);
11383 iconv_close(cd);
11385 return 0;
11387 _ACEOF
11388 rm -f conftest.$ac_objext conftest$ac_exeext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11390 (eval $ac_link) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try='test -s conftest$ac_exeext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 am_cv_func_iconv=yes
11411 else
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11416 rm -f conftest.err conftest.$ac_objext \
11417 conftest$ac_exeext conftest.$ac_ext
11418 if test "$am_cv_func_iconv" != yes; then
11419 am_save_LIBS="$LIBS"
11420 LIBS="$LIBS $LIBICONV"
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #include <stdlib.h>
11428 #include <iconv.h>
11430 main ()
11432 iconv_t cd = iconv_open("","");
11433 iconv(cd,NULL,NULL,NULL,NULL);
11434 iconv_close(cd);
11436 return 0;
11438 _ACEOF
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441 (eval $ac_link) 2>conftest.er1
11442 ac_status=$?
11443 grep -v '^ *+' conftest.er1 >conftest.err
11444 rm -f conftest.er1
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try='test -z "$ac_c_werror_flag"
11449 || test ! -s conftest.err'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; } &&
11455 { ac_try='test -s conftest$ac_exeext'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 am_cv_lib_iconv=yes
11462 am_cv_func_iconv=yes
11463 else
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11468 rm -f conftest.err conftest.$ac_objext \
11469 conftest$ac_exeext conftest.$ac_ext
11470 LIBS="$am_save_LIBS"
11474 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11475 echo "${ECHO_T}$am_cv_func_iconv" >&6
11476 if test "$am_cv_func_iconv" = yes; then
11478 cat >>confdefs.h <<\_ACEOF
11479 #define HAVE_ICONV 1
11480 _ACEOF
11483 if test "$am_cv_lib_iconv" = yes; then
11484 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11485 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11486 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11487 echo "${ECHO_T}$LIBICONV" >&6
11488 else
11489 CPPFLAGS="$am_save_CPPFLAGS"
11490 LIBICONV=
11491 LTLIBICONV=
11496 if test "$am_cv_func_iconv" = yes; then
11497 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11498 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11499 if test "${am_cv_proto_iconv+set}" = set; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 else
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11510 #include <stdlib.h>
11511 #include <iconv.h>
11512 extern
11513 #ifdef __cplusplus
11515 #endif
11516 #if defined(__STDC__) || defined(__cplusplus)
11517 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11518 #else
11519 size_t iconv();
11520 #endif
11523 main ()
11527 return 0;
11529 _ACEOF
11530 rm -f conftest.$ac_objext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11532 (eval $ac_compile) 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -z "$ac_c_werror_flag"
11540 || test ! -s conftest.err'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; } &&
11546 { ac_try='test -s conftest.$ac_objext'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 am_cv_proto_iconv_arg1=""
11553 else
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11557 am_cv_proto_iconv_arg1="const"
11559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11560 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);"
11563 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11564 echo "$as_me:$LINENO: result: ${ac_t:-
11565 }$am_cv_proto_iconv" >&5
11566 echo "${ECHO_T}${ac_t:-
11567 }$am_cv_proto_iconv" >&6
11569 cat >>confdefs.h <<_ACEOF
11570 #define ICONV_CONST $am_cv_proto_iconv_arg1
11571 _ACEOF
11575 # Until we have in-tree GNU iconv:
11576 LIBICONV_DEP=
11579 AM_LC_MESSAGES
11582 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11583 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11584 if test "${am_cv_langinfo_codeset+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587 cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h. */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 #include <langinfo.h>
11595 main ()
11597 char* cs = nl_langinfo(CODESET);
11599 return 0;
11601 _ACEOF
11602 rm -f conftest.$ac_objext conftest$ac_exeext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11604 (eval $ac_link) 2>conftest.er1
11605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag"
11612 || test ! -s conftest.err'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try='test -s conftest$ac_exeext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 am_cv_langinfo_codeset=yes
11625 else
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 am_cv_langinfo_codeset=no
11631 rm -f conftest.err conftest.$ac_objext \
11632 conftest$ac_exeext conftest.$ac_ext
11635 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11636 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11637 if test $am_cv_langinfo_codeset = yes; then
11639 cat >>confdefs.h <<\_ACEOF
11640 #define HAVE_LANGINFO_CODESET 1
11641 _ACEOF
11646 # We will need to find libiberty.h and ansidecl.h
11647 saved_CFLAGS="$CFLAGS"
11648 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11688 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11689 strsignal strstr strverscmp \
11690 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11691 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11693 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11694 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11695 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11696 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699 cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h. */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705 #undef $ac_tr_decl
11706 #define $ac_tr_decl 1
11708 #include "ansidecl.h"
11709 #include "system.h"
11712 main ()
11714 #ifndef $ac_func
11715 char *(*pfn) = (char *(*)) $ac_func ;
11716 #endif
11718 return 0;
11720 _ACEOF
11721 rm -f conftest.$ac_objext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723 (eval $ac_compile) 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -z "$ac_c_werror_flag"
11731 || test ! -s conftest.err'
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 { ac_try='test -s conftest.$ac_objext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "gcc_cv_have_decl_$ac_func=yes"
11744 else
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 eval "gcc_cv_have_decl_$ac_func=no"
11750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11753 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11754 echo "$as_me:$LINENO: result: yes" >&5
11755 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11756 #define $ac_tr_decl 1
11757 _ACEOF
11759 else
11760 echo "$as_me:$LINENO: result: no" >&5
11761 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11762 #define $ac_tr_decl 0
11763 _ACEOF
11767 done
11773 for ac_func in getrlimit setrlimit getrusage
11775 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11776 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11777 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11778 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 #undef $ac_tr_decl
11788 #define $ac_tr_decl 1
11790 #include "ansidecl.h"
11791 #include "system.h"
11792 #ifdef HAVE_SYS_RESOURCE_H
11793 #include <sys/resource.h>
11794 #endif
11798 main ()
11800 #ifndef $ac_func
11801 char *(*pfn) = (char *(*)) $ac_func ;
11802 #endif
11804 return 0;
11806 _ACEOF
11807 rm -f conftest.$ac_objext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try='test -z "$ac_c_werror_flag"
11817 || test ! -s conftest.err'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try='test -s conftest.$ac_objext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
11829 eval "gcc_cv_have_decl_$ac_func=yes"
11830 else
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11834 eval "gcc_cv_have_decl_$ac_func=no"
11836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11839 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11840 echo "$as_me:$LINENO: result: yes" >&5
11841 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11842 #define $ac_tr_decl 1
11843 _ACEOF
11845 else
11846 echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11848 #define $ac_tr_decl 0
11849 _ACEOF
11853 done
11856 cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h. */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11863 #include "ansidecl.h"
11864 #include "system.h"
11865 #ifdef HAVE_SYS_RESOURCE_H
11866 #include <sys/resource.h>
11867 #endif
11870 main ()
11872 rlim_t l = 0;
11874 return 0;
11876 _ACEOF
11877 rm -f conftest.$ac_objext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest.$ac_objext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11905 cat >>confdefs.h <<\_ACEOF
11906 #define rlim_t long
11907 _ACEOF
11910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11912 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11913 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11914 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11915 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11917 for ac_func in ldgetname
11919 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11920 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11921 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11922 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925 cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h. */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 #undef $ac_tr_decl
11932 #define $ac_tr_decl 1
11934 #include "ansidecl.h"
11935 #include "system.h"
11936 #ifdef HAVE_LDFCN_H
11937 #undef FREAD
11938 #undef FWRITE
11939 #include <ldfcn.h>
11940 #endif
11944 main ()
11946 #ifndef $ac_func
11947 char *(*pfn) = (char *(*)) $ac_func ;
11948 #endif
11950 return 0;
11952 _ACEOF
11953 rm -f conftest.$ac_objext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest.$ac_objext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 eval "gcc_cv_have_decl_$ac_func=yes"
11976 else
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11980 eval "gcc_cv_have_decl_$ac_func=no"
11982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11985 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11986 echo "$as_me:$LINENO: result: yes" >&5
11987 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11988 #define $ac_tr_decl 1
11989 _ACEOF
11991 else
11992 echo "$as_me:$LINENO: result: no" >&5
11993 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11994 #define $ac_tr_decl 0
11995 _ACEOF
11999 done
12003 for ac_func in times
12005 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12006 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12007 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12008 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h. */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 #undef $ac_tr_decl
12018 #define $ac_tr_decl 1
12020 #include "ansidecl.h"
12021 #include "system.h"
12022 #ifdef HAVE_SYS_TIMES_H
12023 #include <sys/times.h>
12024 #endif
12028 main ()
12030 #ifndef $ac_func
12031 char *(*pfn) = (char *(*)) $ac_func ;
12032 #endif
12034 return 0;
12036 _ACEOF
12037 rm -f conftest.$ac_objext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12039 (eval $ac_compile) 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_c_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest.$ac_objext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 eval "gcc_cv_have_decl_$ac_func=yes"
12060 else
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 eval "gcc_cv_have_decl_$ac_func=no"
12066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12069 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12070 echo "$as_me:$LINENO: result: yes" >&5
12071 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12072 #define $ac_tr_decl 1
12073 _ACEOF
12075 else
12076 echo "$as_me:$LINENO: result: no" >&5
12077 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12078 #define $ac_tr_decl 0
12079 _ACEOF
12083 done
12087 for ac_func in sigaltstack
12089 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12090 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12091 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12092 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h. */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12101 #undef $ac_tr_decl
12102 #define $ac_tr_decl 1
12104 #include "ansidecl.h"
12105 #include "system.h"
12106 #include <signal.h>
12110 main ()
12112 #ifndef $ac_func
12113 char *(*pfn) = (char *(*)) $ac_func ;
12114 #endif
12116 return 0;
12118 _ACEOF
12119 rm -f conftest.$ac_objext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12121 (eval $ac_compile) 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -z "$ac_c_werror_flag"
12129 || test ! -s conftest.err'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try='test -s conftest.$ac_objext'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 eval "gcc_cv_have_decl_$ac_func=yes"
12142 else
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12146 eval "gcc_cv_have_decl_$ac_func=no"
12148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12151 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12152 echo "$as_me:$LINENO: result: yes" >&5
12153 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12154 #define $ac_tr_decl 1
12155 _ACEOF
12157 else
12158 echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12160 #define $ac_tr_decl 0
12161 _ACEOF
12165 done
12168 # More time-related stuff.
12169 echo "$as_me:$LINENO: checking for struct tms" >&5
12170 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12171 if test "${ac_cv_struct_tms+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12175 cat >conftest.$ac_ext <<_ACEOF
12176 /* confdefs.h. */
12177 _ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12182 #include "ansidecl.h"
12183 #include "system.h"
12184 #ifdef HAVE_SYS_TIMES_H
12185 #include <sys/times.h>
12186 #endif
12189 main ()
12191 struct tms tms;
12193 return 0;
12195 _ACEOF
12196 rm -f conftest.$ac_objext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12198 (eval $ac_compile) 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try='test -z "$ac_c_werror_flag"
12206 || test ! -s conftest.err'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; } &&
12212 { ac_try='test -s conftest.$ac_objext'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 ac_cv_struct_tms=yes
12219 else
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 ac_cv_struct_tms=no
12225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12227 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12228 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12229 if test $ac_cv_struct_tms = yes; then
12231 cat >>confdefs.h <<\_ACEOF
12232 #define HAVE_STRUCT_TMS 1
12233 _ACEOF
12237 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12238 # revisit after autoconf 2.50.
12239 echo "$as_me:$LINENO: checking for clock_t" >&5
12240 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12241 if test "${gcc_cv_type_clock_t+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h. */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12252 #include "ansidecl.h"
12253 #include "system.h"
12256 main ()
12258 clock_t x;
12260 return 0;
12262 _ACEOF
12263 rm -f conftest.$ac_objext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12265 (eval $ac_compile) 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -z "$ac_c_werror_flag"
12273 || test ! -s conftest.err'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest.$ac_objext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 gcc_cv_type_clock_t=yes
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 gcc_cv_type_clock_t=no
12292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12294 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12295 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12296 if test $gcc_cv_type_clock_t = yes; then
12298 cat >>confdefs.h <<\_ACEOF
12299 #define HAVE_CLOCK_T 1
12300 _ACEOF
12304 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12305 CFLAGS="$saved_CFLAGS"
12307 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12308 if test "${enable_initfini_array+set}" = set; then
12309 enableval="$enable_initfini_array"
12311 else
12313 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12314 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12315 if test "${gcc_cv_initfini_array+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318 if test "$cross_compiling" = yes; then
12319 gcc_cv_initfini_array=no
12320 else
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12328 static int x = -1;
12329 int main (void) { return x; }
12330 int foo (void) { x = 0; }
12331 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12332 _ACEOF
12333 rm -f conftest$ac_exeext
12334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335 (eval $ac_link) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 gcc_cv_initfini_array=yes
12345 else
12346 echo "$as_me: program exited with status $ac_status" >&5
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12350 ( exit $ac_status )
12351 gcc_cv_initfini_array=no
12353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12356 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12357 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12358 enable_initfini_array=$gcc_cv_initfini_array
12361 if test $enable_initfini_array = yes; then
12363 cat >>confdefs.h <<\_ACEOF
12364 #define HAVE_INITFINI_ARRAY 1
12365 _ACEOF
12369 # mkdir takes a single argument on some systems.
12370 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12371 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12372 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 else
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12382 #include <sys/types.h>
12383 #ifdef HAVE_SYS_STAT_H
12384 # include <sys/stat.h>
12385 #endif
12386 #ifdef HAVE_UNISTD_H
12387 # include <unistd.h>
12388 #endif
12389 #ifdef HAVE_DIRECT_H
12390 # include <direct.h>
12391 #endif
12393 main ()
12395 mkdir ("foo", 0);
12397 return 0;
12399 _ACEOF
12400 rm -f conftest.$ac_objext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12402 (eval $ac_compile) 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag"
12410 || test ! -s conftest.err'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try='test -s conftest.$ac_objext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12422 gcc_cv_mkdir_takes_one_arg=no
12423 else
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12427 gcc_cv_mkdir_takes_one_arg=yes
12429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12431 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12432 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12433 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12435 cat >>confdefs.h <<\_ACEOF
12436 #define MKDIR_TAKES_ONE_ARG 1
12437 _ACEOF
12442 # File extensions
12443 manext='.1'
12444 objext='.o'
12448 # With Setjmp/Longjmp based exception handling.
12449 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12450 if test "${enable_sjlj_exceptions+set}" = set; then
12451 enableval="$enable_sjlj_exceptions"
12452 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12454 cat >>confdefs.h <<_ACEOF
12455 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12456 _ACEOF
12460 # For platforms with the unwind ABI which includes an unwind library,
12461 # libunwind, we can choose to use the system libunwind.
12463 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12464 if test "${with_system_libunwind+set}" = set; then
12465 withval="$with_system_libunwind"
12469 # --------------------------------------------------------
12470 # Build, host, and target specific configuration fragments
12471 # --------------------------------------------------------
12473 # Collect build-machine-specific information.
12474 . ${srcdir}/config.build
12476 # Collect host-machine-specific information.
12477 . ${srcdir}/config.host
12479 target_gtfiles=
12481 # Collect target-machine-specific information.
12482 . ${srcdir}/config.gcc
12484 extra_objs="${host_extra_objs} ${extra_objs}"
12485 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12487 # Default the target-machine variables that were not explicitly set.
12488 if test x"$tm_file" = x
12489 then tm_file=$cpu_type/$cpu_type.h; fi
12491 if test x"$extra_headers" = x
12492 then extra_headers=; fi
12494 if test x$md_file = x
12495 then md_file=$cpu_type/$cpu_type.md; fi
12497 if test x$out_file = x
12498 then out_file=$cpu_type/$cpu_type.c; fi
12500 if test x"$tmake_file" = x
12501 then tmake_file=$cpu_type/t-$cpu_type
12504 if test x"$dwarf2" = xyes
12505 then tm_file="$tm_file tm-dwarf2.h"
12508 # Say what files are being used for the output code and MD file.
12509 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12510 echo "Using \`$srcdir/config/$md_file' as machine description file."
12512 # If any of the xm_file variables contain nonexistent files, warn
12513 # about them and drop them.
12516 for x in $build_xm_file; do
12517 if test -f $srcdir/config/$x
12518 then bx="$bx $x"
12519 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12520 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12522 done
12523 build_xm_file="$bx"
12526 for x in $host_xm_file; do
12527 if test -f $srcdir/config/$x
12528 then hx="$hx $x"
12529 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12530 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12532 done
12533 host_xm_file="$hx"
12536 for x in $xm_file; do
12537 if test -f $srcdir/config/$x
12538 then tx="$tx $x"
12539 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12540 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12542 done
12543 xm_file="$tx"
12545 count=a
12546 for f in $tm_file; do
12547 count=${count}x
12548 done
12549 if test $count = ax; then
12550 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12551 else
12552 echo "Using the following target machine macro files:"
12553 for f in $tm_file; do
12554 echo " $srcdir/config/$f"
12555 done
12558 if test x$need_64bit_hwint = xyes; then
12560 cat >>confdefs.h <<\_ACEOF
12561 #define NEED_64BIT_HOST_WIDE_INT 1
12562 _ACEOF
12566 if test x$use_long_long_for_widest_fast_int = xyes; then
12568 cat >>confdefs.h <<\_ACEOF
12569 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12570 _ACEOF
12574 count=a
12575 for f in $host_xm_file; do
12576 count=${count}x
12577 done
12578 if test $count = a; then
12580 elif test $count = ax; then
12581 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12582 else
12583 echo "Using the following host machine macro files:"
12584 for f in $host_xm_file; do
12585 echo " $srcdir/config/$f"
12586 done
12588 echo "Using ${out_host_hook_obj} for host machine hooks."
12590 if test "$host_xm_file" != "$build_xm_file"; then
12591 count=a
12592 for f in $build_xm_file; do
12593 count=${count}x
12594 done
12595 if test $count = a; then
12597 elif test $count = ax; then
12598 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12599 else
12600 echo "Using the following build machine macro files:"
12601 for f in $build_xm_file; do
12602 echo " $srcdir/config/$f"
12603 done
12607 case ${host} in
12608 powerpc-*-darwin*)
12609 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12610 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12611 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614 cat >conftest.$ac_ext <<_ACEOF
12616 #include <sys/signal.h>
12617 #include <ucontext.h>
12618 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12620 _ACEOF
12621 rm -f conftest.$ac_objext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12623 (eval $ac_compile) 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest.$ac_objext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 gcc_cv_mcontext_underscores=no
12644 else
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 gcc_cv_mcontext_underscores=yes
12650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12652 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12653 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12654 if test $gcc_cv_mcontext_underscores = yes; then
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAS_MCONTEXT_T_UNDERSCORES
12658 _ACEOF
12662 esac
12664 # ---------
12665 # Threading
12666 # ---------
12668 # Check if a valid thread package
12669 case ${enable_threads} in
12670 "" | no)
12671 # No threads
12672 target_thread_file='single'
12674 yes)
12675 # default
12676 target_thread_file='single'
12678 aix | dce | gnat | irix | posix | posix95 | rtems | \
12679 single | solaris | vxworks | win32 )
12680 target_thread_file=${enable_threads}
12683 echo "${enable_threads} is an unknown thread package" 1>&2
12684 exit 1
12686 esac
12688 if test x${thread_file} = x; then
12689 # No thread file set by target-specific clauses in config.gcc,
12690 # so use file chosen by default logic above
12691 thread_file=${target_thread_file}
12694 # Make gthr-default.h if we have a thread file.
12695 gthread_flags=
12696 if test $thread_file != single; then
12697 rm -f gthr-default.h
12698 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12699 gthread_flags=-DHAVE_GTHR_DEFAULT
12703 # --------
12704 # UNSORTED
12705 # --------
12707 use_cxa_atexit=no
12708 if test x$enable___cxa_atexit = xyes || \
12709 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12710 if test x$host = x$target; then
12711 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12712 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12713 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716 cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h. */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12724 #define __cxa_atexit innocuous___cxa_atexit
12726 /* System header to define __stub macros and hopefully few prototypes,
12727 which can conflict with char __cxa_atexit (); below.
12728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12729 <limits.h> exists even on freestanding compilers. */
12731 #ifdef __STDC__
12732 # include <limits.h>
12733 #else
12734 # include <assert.h>
12735 #endif
12737 #undef __cxa_atexit
12739 /* Override any gcc2 internal prototype to avoid an error. */
12740 #ifdef __cplusplus
12741 extern "C"
12743 #endif
12744 /* We use char because int might match the return type of a gcc2
12745 builtin and then its argument prototype would still apply. */
12746 char __cxa_atexit ();
12747 /* The GNU C library defines this for functions which it implements
12748 to always fail with ENOSYS. Some functions are actually named
12749 something starting with __ and the normal name is an alias. */
12750 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12751 choke me
12752 #else
12753 char (*f) () = __cxa_atexit;
12754 #endif
12755 #ifdef __cplusplus
12757 #endif
12760 main ()
12762 return f != __cxa_atexit;
12764 return 0;
12766 _ACEOF
12767 rm -f conftest.$ac_objext conftest$ac_exeext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12769 (eval $ac_link) 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } &&
12776 { ac_try='test -z "$ac_c_werror_flag"
12777 || test ! -s conftest.err'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try='test -s conftest$ac_exeext'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; }; then
12789 ac_cv_func___cxa_atexit=yes
12790 else
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12794 ac_cv_func___cxa_atexit=no
12796 rm -f conftest.err conftest.$ac_objext \
12797 conftest$ac_exeext conftest.$ac_ext
12799 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12800 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12801 if test $ac_cv_func___cxa_atexit = yes; then
12802 use_cxa_atexit=yes
12803 else
12804 echo "__cxa_atexit can't be enabled on this target"
12807 else
12808 # We can't check for __cxa_atexit when building a cross, so assume
12809 # it is available
12810 use_cxa_atexit=yes
12812 if test x$use_cxa_atexit = xyes; then
12814 cat >>confdefs.h <<\_ACEOF
12815 #define DEFAULT_USE_CXA_ATEXIT 2
12816 _ACEOF
12821 # Look for a file containing extra machine modes.
12822 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12823 extra_modes_file='$(srcdir)'/config/${extra_modes}
12826 cat >>confdefs.h <<_ACEOF
12827 #define EXTRA_MODES_FILE "config/$extra_modes"
12828 _ACEOF
12832 # Convert extra_options into a form suitable for Makefile use.
12833 extra_opt_files=
12834 for f in $extra_options; do
12835 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12836 done
12839 # auto-host.h is the file containing items generated by autoconf and is
12840 # the first file included by config.h.
12841 # If host=build, it is correct to have bconfig include auto-host.h
12842 # as well. If host!=build, we are in error and need to do more
12843 # work to find out the build config parameters.
12844 if test x$host = x$build
12845 then
12846 build_auto=auto-host.h
12847 else
12848 # We create a subdir, then run autoconf in the subdir.
12849 # To prevent recursion we set host and build for the new
12850 # invocation of configure to the build for this invocation
12851 # of configure.
12852 tempdir=build.$$
12853 rm -rf $tempdir
12854 mkdir $tempdir
12855 cd $tempdir
12856 case ${srcdir} in
12857 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12858 *) realsrcdir=../${srcdir};;
12859 esac
12860 saved_CFLAGS="${CFLAGS}"
12861 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12862 ${realsrcdir}/configure \
12863 --enable-languages=${enable_languages-all} \
12864 --target=$target_alias --host=$build_alias --build=$build_alias
12865 CFLAGS="${saved_CFLAGS}"
12867 # We just finished tests for the build machine, so rename
12868 # the file auto-build.h in the gcc directory.
12869 mv auto-host.h ../auto-build.h
12870 cd ..
12871 rm -rf $tempdir
12872 build_auto=auto-build.h
12876 tm_file="${tm_file} defaults.h"
12877 tm_p_file="${tm_p_file} tm-preds.h"
12878 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12879 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12880 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12881 # put this back in temporarily.
12882 xm_file="auto-host.h ansidecl.h ${xm_file}"
12884 # --------
12885 # UNSORTED
12886 # --------
12888 # Compile in configure arguments.
12889 if test -f configargs.h ; then
12890 # Being re-configured.
12891 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12892 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12893 else
12894 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12897 # Double all backslashes and backslash all quotes to turn
12898 # gcc_config_arguments into a C string.
12899 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12900 $gcc_config_arguments
12902 gcc_config_arguments_str=`cat conftest.out`
12903 rm -f conftest.out
12905 cat > configargs.h <<EOF
12906 /* Generated automatically. */
12907 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12908 static const char thread_model[] = "$thread_file";
12910 static const struct {
12911 const char *name, *value;
12912 } configure_default_options[] = $configure_default_options;
12915 # Internationalization
12916 ZW_GNU_GETTEXT_SISTER_DIR
12918 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12919 # -liconv on the link line twice.
12920 case "$LIBINTL" in *$LIBICONV*)
12921 LIBICONV= ;;
12922 esac
12924 # Check whether --enable-secureplt or --disable-secureplt was given.
12925 if test "${enable_secureplt+set}" = set; then
12926 enableval="$enable_secureplt"
12930 # Windows32 Registry support for specifying GCC installation paths.
12931 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12932 if test "${enable_win32_registry+set}" = set; then
12933 enableval="$enable_win32_registry"
12937 case $host_os in
12938 win32 | pe | cygwin* | mingw32* | uwin*)
12939 if test "x$enable_win32_registry" != xno; then
12940 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12941 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12942 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945 ac_func_search_save_LIBS=$LIBS
12946 ac_cv_search_RegOpenKeyExA=no
12947 cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h. */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12954 /* Override any gcc2 internal prototype to avoid an error. */
12955 #ifdef __cplusplus
12956 extern "C"
12957 #endif
12958 /* We use char because int might match the return type of a gcc2
12959 builtin and then its argument prototype would still apply. */
12960 char RegOpenKeyExA ();
12962 main ()
12964 RegOpenKeyExA ();
12966 return 0;
12968 _ACEOF
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971 (eval $ac_link) 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_c_werror_flag"
12979 || test ! -s conftest.err'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest$ac_exeext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_cv_search_RegOpenKeyExA="none required"
12992 else
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12997 rm -f conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13000 for ac_lib in advapi32; do
13001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13002 cat >conftest.$ac_ext <<_ACEOF
13003 /* confdefs.h. */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13009 /* Override any gcc2 internal prototype to avoid an error. */
13010 #ifdef __cplusplus
13011 extern "C"
13012 #endif
13013 /* We use char because int might match the return type of a gcc2
13014 builtin and then its argument prototype would still apply. */
13015 char RegOpenKeyExA ();
13017 main ()
13019 RegOpenKeyExA ();
13021 return 0;
13023 _ACEOF
13024 rm -f conftest.$ac_objext conftest$ac_exeext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13026 (eval $ac_link) 2>conftest.er1
13027 ac_status=$?
13028 grep -v '^ *+' conftest.er1 >conftest.err
13029 rm -f conftest.er1
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -z "$ac_c_werror_flag"
13034 || test ! -s conftest.err'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; } &&
13040 { ac_try='test -s conftest$ac_exeext'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
13046 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13047 break
13048 else
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13053 rm -f conftest.err conftest.$ac_objext \
13054 conftest$ac_exeext conftest.$ac_ext
13055 done
13057 LIBS=$ac_func_search_save_LIBS
13059 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13060 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13061 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13062 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13064 else
13065 enable_win32_registry=no
13070 if test "x$enable_win32_registry" != xno; then
13072 cat >>confdefs.h <<\_ACEOF
13073 #define ENABLE_WIN32_REGISTRY 1
13074 _ACEOF
13077 if test "x$enable_win32_registry" != xyes \
13078 && test "x$enable_win32_registry" != x; then
13080 cat >>confdefs.h <<_ACEOF
13081 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13082 _ACEOF
13087 esac
13089 # Get an absolute path to the GCC top-level source directory
13090 holddir=`${PWDCMD-pwd}`
13091 cd $srcdir
13092 topdir=`${PWDCMD-pwd}`
13093 cd $holddir
13095 # Conditionalize the makefile for this host machine.
13096 xmake_file=
13097 for f in ${host_xmake_file}
13099 if test -f ${srcdir}/config/$f
13100 then
13101 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13103 done
13105 # Conditionalize the makefile for this target machine.
13106 tmake_file_=
13107 for f in ${tmake_file}
13109 if test -f ${srcdir}/config/$f
13110 then
13111 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13113 done
13114 tmake_file="${tmake_file_}"
13116 # If the host doesn't support symlinks, modify CC in
13117 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
13118 # Otherwise, we can use "CC=$(CC)".
13119 rm -f symtest.tem
13120 case "$LN_S" in
13121 *-s*)
13122 cc_set_by_configure="\$(CC)"
13123 quoted_cc_set_by_configure="\$(CC)"
13124 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13125 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13128 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
13129 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
13130 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
13131 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
13133 esac
13135 # This is a terrible hack which will go away some day.
13136 host_cc_for_libada=${CC}
13139 out_object_file=`basename $out_file .c`.o
13141 tm_file_list="options.h"
13142 tm_include_list="options.h"
13143 for f in $tm_file; do
13144 case $f in
13145 defaults.h )
13146 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13147 tm_include_list="${tm_include_list} $f"
13150 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13151 tm_include_list="${tm_include_list} config/$f"
13153 esac
13154 done
13156 tm_p_file_list=
13157 tm_p_include_list=
13158 for f in $tm_p_file; do
13159 case $f in
13160 tm-preds.h )
13161 tm_p_file_list="${tm_p_file_list} $f"
13162 tm_p_include_list="${tm_p_include_list} $f"
13165 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13166 tm_p_include_list="${tm_p_include_list} config/$f"
13167 esac
13168 done
13170 xm_file_list=
13171 xm_include_list=
13172 for f in $xm_file; do
13173 case $f in
13174 ansidecl.h )
13175 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13176 xm_include_list="${xm_include_list} $f"
13178 auto-host.h )
13179 xm_file_list="${xm_file_list} $f"
13180 xm_include_list="${xm_include_list} $f"
13183 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13184 xm_include_list="${xm_include_list} config/$f"
13186 esac
13187 done
13189 host_xm_file_list=
13190 host_xm_include_list=
13191 for f in $host_xm_file; do
13192 case $f in
13193 ansidecl.h )
13194 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13195 host_xm_include_list="${host_xm_include_list} $f"
13197 auto-host.h )
13198 host_xm_file_list="${host_xm_file_list} $f"
13199 host_xm_include_list="${host_xm_include_list} $f"
13202 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13203 host_xm_include_list="${host_xm_include_list} config/$f"
13205 esac
13206 done
13208 build_xm_file_list=
13209 for f in $build_xm_file; do
13210 case $f in
13211 ansidecl.h )
13212 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13213 build_xm_include_list="${build_xm_include_list} $f"
13215 auto-build.h | auto-host.h )
13216 build_xm_file_list="${build_xm_file_list} $f"
13217 build_xm_include_list="${build_xm_include_list} $f"
13220 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13221 build_xm_include_list="${build_xm_include_list} config/$f"
13223 esac
13224 done
13226 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
13227 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13228 CROSS=
13229 ALL=all.internal
13230 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13232 if test "x$with_build_sysroot" != x; then
13233 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13234 else
13235 # This value is used, even on a native system, because
13236 # CROSS_SYSTEM_HEADER_DIR is just
13237 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13238 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13241 if test x$host != x$target
13242 then
13243 CROSS="-DCROSS_COMPILE"
13244 ALL=all.cross
13245 SYSTEM_HEADER_DIR=$build_system_header_dir
13246 case "$host","$target" in
13247 # Darwin crosses can use the host system's libraries and headers,
13248 # because of the fat library support. Of course, it must be the
13249 # same version of Darwin on both sides. Allow the user to
13250 # just say --target=foo-darwin without a version number to mean
13251 # "the version on this system".
13252 *-*-darwin*,*-*-darwin*)
13253 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13254 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13255 if test $hostos = $targetos -o $targetos = darwin ; then
13256 CROSS=
13257 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13258 with_headers=yes
13262 i?86-*-*,x86_64-*-* \
13263 | powerpc*-*-*,powerpc64*-*-*)
13264 CROSS="$CROSS -DNATIVE_CROSS" ;;
13265 esac
13266 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13267 SYSTEM_HEADER_DIR=$build_system_header_dir
13270 # If this is a cross-compiler that does not
13271 # have its own set of headers then define
13272 # inhibit_libc
13274 # If this is using newlib, without having the headers available now,
13275 # then define inhibit_libc in LIBGCC2_CFLAGS.
13276 # This prevents libgcc2 from containing any code which requires libc
13277 # support.
13278 inhibit_libc=false
13279 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13280 test x$with_newlib = xyes ; } &&
13281 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13282 inhibit_libc=true
13286 # When building gcc with a cross-compiler, we need to adjust things so
13287 # that the generator programs are still built with the native compiler.
13288 # Also, we cannot run fixincludes or fix-header.
13290 # These are the normal (build=host) settings:
13291 CC_FOR_BUILD='$(CC)'
13292 BUILD_CFLAGS='$(ALL_CFLAGS)'
13293 STMP_FIXINC=stmp-fixinc
13295 # Possibly disable fixproto, on a per-target basis.
13296 case ${use_fixproto} in
13298 STMP_FIXPROTO=
13300 yes)
13301 STMP_FIXPROTO=stmp-fixproto
13303 esac
13306 # And these apply if build != host, or we are generating coverage data
13307 if test x$build != x$host || test "x$coverage_flags" != x
13308 then
13309 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13311 if test "x$TARGET_SYSTEM_ROOT" = x; then
13312 if test "x$STMP_FIXPROTO" != x; then
13313 STMP_FIXPROTO=stmp-install-fixproto
13318 # Expand extra_headers to include complete path.
13319 # This substitutes for lots of t-* files.
13320 extra_headers_list=
13321 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13322 for file in ${extra_headers} ; do
13323 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13324 done
13326 # Define collect2 in Makefile.
13327 case $host_can_use_collect2 in
13328 no) collect2= ;;
13329 *) collect2='collect2$(exeext)' ;;
13330 esac
13333 # Add a definition of USE_COLLECT2 if system wants one.
13334 case $use_collect2 in
13335 no) use_collect2= ;;
13336 "") ;;
13338 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13339 xm_defines="${xm_defines} USE_COLLECT2"
13340 case $host_can_use_collect2 in
13342 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13343 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13344 { (exit 1); exit 1; }; }
13346 esac
13348 esac
13350 # ---------------------------
13351 # Assembler & linker features
13352 # ---------------------------
13354 # Identify the assembler which will work hand-in-glove with the newly
13355 # built GCC, so that we can examine its features. This is the assembler
13356 # which will be driven by the driver program.
13358 # If build != host, and we aren't building gas in-tree, we identify a
13359 # build->target assembler and hope that it will have the same features
13360 # as the host->target assembler we'll be using.
13361 gcc_cv_gas_major_version=
13362 gcc_cv_gas_minor_version=
13363 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13365 if test "${gcc_cv_as+set}" = set; then
13367 else
13369 if test -x "$DEFAULT_ASSEMBLER"; then
13370 gcc_cv_as="$DEFAULT_ASSEMBLER"
13371 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13372 && test -f ../gas/Makefile \
13373 && test x$build = x$host; then
13374 gcc_cv_as=../gas/as-new$build_exeext
13375 elif test -x as$build_exeext; then
13376 # Build using assembler in the current directory.
13377 gcc_cv_as=./as$build_exeext
13378 elif test -x $AS_FOR_TARGET; then
13379 gcc_cv_as="$AS_FOR_TARGET"
13380 else
13381 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13382 set dummy $AS_FOR_TARGET; ac_word=$2
13383 echo "$as_me:$LINENO: checking for $ac_word" >&5
13384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13385 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 else
13388 case $gcc_cv_as in
13389 [\\/]* | ?:[\\/]*)
13390 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 break 2
13404 done
13405 done
13408 esac
13410 gcc_cv_as=$ac_cv_path_gcc_cv_as
13412 if test -n "$gcc_cv_as"; then
13413 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13414 echo "${ECHO_T}$gcc_cv_as" >&6
13415 else
13416 echo "$as_me:$LINENO: result: no" >&5
13417 echo "${ECHO_T}no" >&6
13424 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13427 echo "$as_me:$LINENO: checking what assembler to use" >&5
13428 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13429 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13430 # Single tree build which includes gas. We want to prefer it
13431 # over whatever linker top-level may have detected, since
13432 # we'll use what we're building after installation anyway.
13433 echo "$as_me:$LINENO: result: newly built gas" >&5
13434 echo "${ECHO_T}newly built gas" >&6
13435 in_tree_gas=yes
13436 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13437 for f in $gcc_cv_as_bfd_srcdir/configure \
13438 $gcc_cv_as_gas_srcdir/configure \
13439 $gcc_cv_as_gas_srcdir/configure.in \
13440 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13441 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13442 if test x$gcc_cv_gas_version != x; then
13443 break
13445 done
13446 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13447 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13448 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13449 case $gcc_cv_gas_patch_version in
13450 "") gcc_cv_gas_patch_version="0" ;;
13451 esac
13452 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13453 + $gcc_cv_gas_minor_version \) \* 1000 \
13454 + $gcc_cv_gas_patch_version`
13456 in_tree_gas_is_elf=no
13457 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13458 || (grep 'obj_format = multi' ../gas/Makefile \
13459 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13460 then
13461 in_tree_gas_is_elf=yes
13463 else
13464 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13465 echo "${ECHO_T}$gcc_cv_as" >&6
13466 in_tree_gas=no
13469 # Identify the linker which will work hand-in-glove with the newly
13470 # built GCC, so that we can examine its features. This is the linker
13471 # which will be driven by the driver program.
13473 # If build != host, and we aren't building gas in-tree, we identify a
13474 # build->target linker and hope that it will have the same features
13475 # as the host->target linker we'll be using.
13476 gcc_cv_gld_major_version=
13477 gcc_cv_gld_minor_version=
13478 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13479 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13481 if test "${gcc_cv_ld+set}" = set; then
13483 else
13485 if test -x "$DEFAULT_LINKER"; then
13486 gcc_cv_ld="$DEFAULT_LINKER"
13487 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13488 && test -f ../ld/Makefile \
13489 && test x$build = x$host; then
13490 gcc_cv_ld=../ld/ld-new$build_exeext
13491 elif test -x collect-ld$build_exeext; then
13492 # Build using linker in the current directory.
13493 gcc_cv_ld=./collect-ld$build_exeext
13494 elif test -x $LD_FOR_TARGET; then
13495 gcc_cv_ld="$LD_FOR_TARGET"
13496 else
13497 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13498 set dummy $LD_FOR_TARGET; ac_word=$2
13499 echo "$as_me:$LINENO: checking for $ac_word" >&5
13500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13501 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 else
13504 case $gcc_cv_ld in
13505 [\\/]* | ?:[\\/]*)
13506 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13510 for as_dir in $PATH
13512 IFS=$as_save_IFS
13513 test -z "$as_dir" && as_dir=.
13514 for ac_exec_ext in '' $ac_executable_extensions; do
13515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13516 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13518 break 2
13520 done
13521 done
13524 esac
13526 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13528 if test -n "$gcc_cv_ld"; then
13529 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13530 echo "${ECHO_T}$gcc_cv_ld" >&6
13531 else
13532 echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6
13540 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13543 echo "$as_me:$LINENO: checking what linker to use" >&5
13544 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13545 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13546 # Single tree build which includes ld. We want to prefer it
13547 # over whatever linker top-level may have detected, since
13548 # we'll use what we're building after installation anyway.
13549 echo "$as_me:$LINENO: result: newly built ld" >&5
13550 echo "${ECHO_T}newly built ld" >&6
13551 in_tree_ld=yes
13552 in_tree_ld_is_elf=no
13553 if (grep 'EMUL = .*elf' ../ld/Makefile \
13554 || grep 'EMUL = .*linux' ../ld/Makefile \
13555 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13556 in_tree_ld_is_elf=yes
13558 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
13560 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13561 if test x$gcc_cv_gld_version != x; then
13562 break
13564 done
13565 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13566 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13567 else
13568 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13569 echo "${ECHO_T}$gcc_cv_ld" >&6
13570 in_tree_ld=no
13573 # Figure out what nm we will be using.
13574 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13575 if test "${gcc_cv_nm+set}" = set; then
13577 else
13579 if test -f $gcc_cv_binutils_srcdir/configure.in \
13580 && test -f ../binutils/Makefile \
13581 && test x$build = x$host; then
13582 gcc_cv_nm=../binutils/nm-new$build_exeext
13583 elif test -x nm$build_exeext; then
13584 gcc_cv_nm=./nm$build_exeext
13585 elif test -x $NM_FOR_TARGET; then
13586 gcc_cv_nm="$NM_FOR_TARGET"
13587 else
13588 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13589 set dummy $NM_FOR_TARGET; ac_word=$2
13590 echo "$as_me:$LINENO: checking for $ac_word" >&5
13591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13592 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595 case $gcc_cv_nm in
13596 [\\/]* | ?:[\\/]*)
13597 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601 for as_dir in $PATH
13603 IFS=$as_save_IFS
13604 test -z "$as_dir" && as_dir=.
13605 for ac_exec_ext in '' $ac_executable_extensions; do
13606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13607 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13609 break 2
13611 done
13612 done
13615 esac
13617 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13619 if test -n "$gcc_cv_nm"; then
13620 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13621 echo "${ECHO_T}$gcc_cv_nm" >&6
13622 else
13623 echo "$as_me:$LINENO: result: no" >&5
13624 echo "${ECHO_T}no" >&6
13631 echo "$as_me:$LINENO: checking what nm to use" >&5
13632 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13633 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13634 # Single tree build which includes binutils.
13635 echo "$as_me:$LINENO: result: newly built nm" >&5
13636 echo "${ECHO_T}newly built nm" >&6
13637 in_tree_nm=yes
13638 else
13639 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13640 echo "${ECHO_T}$gcc_cv_nm" >&6
13641 in_tree_nm=no
13644 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13647 # Figure out what objdump we will be using.
13648 if test "${gcc_cv_objdump+set}" = set; then
13650 else
13652 if test -f $gcc_cv_binutils_srcdir/configure.in \
13653 && test -f ../binutils/Makefile \
13654 && test x$build = x$host; then
13655 # Single tree build which includes binutils.
13656 gcc_cv_objdump=../binutils/objdump$build_exeext
13657 elif test -x objdump$build_exeext; then
13658 gcc_cv_objdump=./objdump$build_exeext
13659 elif test -x $OBJDUMP_FOR_TARGET; then
13660 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13661 else
13662 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13663 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13664 echo "$as_me:$LINENO: checking for $ac_word" >&5
13665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13666 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 case $gcc_cv_objdump in
13670 [\\/]* | ?:[\\/]*)
13671 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675 for as_dir in $PATH
13677 IFS=$as_save_IFS
13678 test -z "$as_dir" && as_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
13680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13681 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13683 break 2
13685 done
13686 done
13689 esac
13691 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13693 if test -n "$gcc_cv_objdump"; then
13694 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13695 echo "${ECHO_T}$gcc_cv_objdump" >&6
13696 else
13697 echo "$as_me:$LINENO: result: no" >&5
13698 echo "${ECHO_T}no" >&6
13705 echo "$as_me:$LINENO: checking what objdump to use" >&5
13706 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13707 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13708 # Single tree build which includes binutils.
13709 echo "$as_me:$LINENO: result: newly built objdump" >&5
13710 echo "${ECHO_T}newly built objdump" >&6
13711 elif test x$gcc_cv_objdump = x; then
13712 echo "$as_me:$LINENO: result: not found" >&5
13713 echo "${ECHO_T}not found" >&6
13714 else
13715 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13716 echo "${ECHO_T}$gcc_cv_objdump" >&6
13719 # Figure out what assembler alignment features are present.
13720 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13721 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13722 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 else
13725 gcc_cv_as_balign_and_p2align=no
13726 if test $in_tree_gas = yes; then
13727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13728 then gcc_cv_as_balign_and_p2align=yes
13730 elif test x$gcc_cv_as != x; then
13731 echo '.balign 4
13732 .p2align 2' > conftest.s
13733 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }
13739 then
13740 gcc_cv_as_balign_and_p2align=yes
13741 else
13742 echo "configure: failed program was" >&5
13743 cat conftest.s >&5
13745 rm -f conftest.o conftest.s
13748 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13749 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13750 if test $gcc_cv_as_balign_and_p2align = yes; then
13752 cat >>confdefs.h <<\_ACEOF
13753 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13754 _ACEOF
13758 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13759 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13760 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763 gcc_cv_as_max_skip_p2align=no
13764 if test $in_tree_gas = yes; then
13765 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13766 then gcc_cv_as_max_skip_p2align=yes
13768 elif test x$gcc_cv_as != x; then
13769 echo '.p2align 4,,7' > conftest.s
13770 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }
13776 then
13777 gcc_cv_as_max_skip_p2align=yes
13778 else
13779 echo "configure: failed program was" >&5
13780 cat conftest.s >&5
13782 rm -f conftest.o conftest.s
13785 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13786 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13787 if test $gcc_cv_as_max_skip_p2align = yes; then
13789 cat >>confdefs.h <<\_ACEOF
13790 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13791 _ACEOF
13795 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13796 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13797 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800 gcc_cv_as_subsection_m1=no
13801 if test $in_tree_gas = yes; then
13802 if test $in_tree_gas_is_elf = yes \
13803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13804 then gcc_cv_as_subsection_m1=yes
13806 elif test x$gcc_cv_as != x; then
13807 echo 'conftest_label1: .word 0
13808 .subsection -1
13809 conftest_label2: .word 0
13810 .previous' > conftest.s
13811 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }
13817 then
13818 if test x$gcc_cv_nm != x; then
13819 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13820 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13821 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13822 then :
13823 else gcc_cv_as_subsection_m1=yes
13825 rm -f conftest.nm1 conftest.nm2
13827 else
13828 echo "configure: failed program was" >&5
13829 cat conftest.s >&5
13831 rm -f conftest.o conftest.s
13834 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13835 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13836 if test $gcc_cv_as_subsection_m1 = yes; then
13838 cat >>confdefs.h <<\_ACEOF
13839 #define HAVE_GAS_SUBSECTION_ORDERING 1
13840 _ACEOF
13844 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13845 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13846 if test "${gcc_cv_as_weak+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849 gcc_cv_as_weak=no
13850 if test $in_tree_gas = yes; then
13851 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13852 then gcc_cv_as_weak=yes
13854 elif test x$gcc_cv_as != x; then
13855 echo ' .weak foobar' > conftest.s
13856 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }
13862 then
13863 gcc_cv_as_weak=yes
13864 else
13865 echo "configure: failed program was" >&5
13866 cat conftest.s >&5
13868 rm -f conftest.o conftest.s
13871 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13872 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13873 if test $gcc_cv_as_weak = yes; then
13875 cat >>confdefs.h <<\_ACEOF
13876 #define HAVE_GAS_WEAK 1
13877 _ACEOF
13881 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13882 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13883 if test "${gcc_cv_as_weakref+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886 gcc_cv_as_weakref=no
13887 if test $in_tree_gas = yes; then
13888 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13889 then gcc_cv_as_weakref=yes
13891 elif test x$gcc_cv_as != x; then
13892 echo ' .weakref foobar, barfnot' > conftest.s
13893 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }
13899 then
13900 gcc_cv_as_weakref=yes
13901 else
13902 echo "configure: failed program was" >&5
13903 cat conftest.s >&5
13905 rm -f conftest.o conftest.s
13908 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13909 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13910 if test $gcc_cv_as_weakref = yes; then
13912 cat >>confdefs.h <<\_ACEOF
13913 #define HAVE_GAS_WEAKREF 1
13914 _ACEOF
13918 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13919 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13920 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923 gcc_cv_as_nsubspa_comdat=no
13924 if test $in_tree_gas = yes; then
13925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13926 then gcc_cv_as_nsubspa_comdat=yes
13928 elif test x$gcc_cv_as != x; then
13929 echo ' .SPACE $TEXT$
13930 .NSUBSPA $CODE$,COMDAT' > conftest.s
13931 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }
13937 then
13938 gcc_cv_as_nsubspa_comdat=yes
13939 else
13940 echo "configure: failed program was" >&5
13941 cat conftest.s >&5
13943 rm -f conftest.o conftest.s
13946 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13947 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13948 if test $gcc_cv_as_nsubspa_comdat = yes; then
13950 cat >>confdefs.h <<\_ACEOF
13951 #define HAVE_GAS_NSUBSPA_COMDAT 1
13952 _ACEOF
13956 # .hidden needs to be supported in both the assembler and the linker,
13957 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13958 # This is irritatingly difficult to feature test for; we have to check the
13959 # date string after the version number. If we've got an in-tree
13960 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13961 # to be safe.
13962 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13963 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13964 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13965 if test "${gcc_cv_as_hidden+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968 gcc_cv_as_hidden=no
13969 if test $in_tree_gas = yes; then
13970 if test $in_tree_gas_is_elf = yes \
13971 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13972 then gcc_cv_as_hidden=yes
13974 elif test x$gcc_cv_as != x; then
13975 echo ' .hidden foobar
13976 foobar:' > conftest.s
13977 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }
13983 then
13984 gcc_cv_as_hidden=yes
13985 else
13986 echo "configure: failed program was" >&5
13987 cat conftest.s >&5
13989 rm -f conftest.o conftest.s
13992 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13993 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13996 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13997 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13998 if test "${gcc_cv_ld_hidden+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 else
14001 if test $in_tree_ld = yes ; then
14002 gcc_cv_ld_hidden=no
14003 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 \
14004 && test $in_tree_ld_is_elf = yes; then
14005 gcc_cv_ld_hidden=yes
14007 else
14008 gcc_cv_ld_hidden=yes
14009 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14010 if echo "$ld_ver" | grep GNU > /dev/null; then
14011 ld_vers=`echo $ld_ver | sed -n \
14012 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14013 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14014 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14015 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14016 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14017 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14018 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
14019 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'`
14020 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14021 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14022 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14023 if test 0"$ld_date" -lt 20020404; then
14024 if test -n "$ld_date"; then
14025 # If there was date string, but was earlier than 2002-04-04, fail
14026 gcc_cv_ld_hidden=no
14027 elif test -z "$ld_vers"; then
14028 # If there was no date string nor ld version number, something is wrong
14029 gcc_cv_ld_hidden=no
14030 else
14031 test -z "$ld_vers_patch" && ld_vers_patch=0
14032 if test "$ld_vers_major" -lt 2; then
14033 gcc_cv_ld_hidden=no
14034 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14035 gcc_cv_ld_hidden="no"
14036 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14037 gcc_cv_ld_hidden=no
14041 else
14042 case "${target}" in
14043 hppa64*-*-hpux* | ia64*-*-hpux*)
14044 gcc_cv_ld_hidden=yes
14047 gcc_cv_ld_hidden=no
14049 esac
14053 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14054 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14055 libgcc_visibility=no
14058 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14059 libgcc_visibility=yes
14061 cat >>confdefs.h <<\_ACEOF
14062 #define HAVE_GAS_HIDDEN 1
14063 _ACEOF
14067 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14068 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14069 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14070 if test "${gcc_cv_as_leb128+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073 gcc_cv_as_leb128=no
14074 if test $in_tree_gas = yes; then
14075 if test $in_tree_gas_is_elf = yes \
14076 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14077 then gcc_cv_as_leb128=yes
14079 elif test x$gcc_cv_as != x; then
14080 echo ' .data
14081 .uleb128 L2 - L1
14083 .uleb128 1280
14084 .sleb128 -1010
14085 L2:' > conftest.s
14086 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }
14092 then
14093 # GAS versions before 2.11 do not support uleb128,
14094 # despite appearing to.
14095 # ??? There exists an elf-specific test that will crash
14096 # the assembler. Perhaps it's better to figure out whether
14097 # arbitrary sections are supported and try the test.
14098 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14099 if echo "$as_ver" | grep GNU > /dev/null; then
14100 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14101 as_major=`echo $as_ver | sed 's/\..*//'`
14102 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14103 if test $as_major -eq 2 && test $as_minor -lt 11
14104 then :
14105 else gcc_cv_as_leb128=yes
14108 else
14109 echo "configure: failed program was" >&5
14110 cat conftest.s >&5
14112 rm -f conftest.o conftest.s
14115 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14116 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14117 if test $gcc_cv_as_leb128 = yes; then
14119 cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_AS_LEB128 1
14121 _ACEOF
14125 # GAS versions up to and including 2.11.0 may mis-optimize
14126 # .eh_frame data.
14127 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14128 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14129 if test "${gcc_cv_as_eh_frame+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132 gcc_cv_as_eh_frame=no
14133 if test $in_tree_gas = yes; then
14134 if test $in_tree_gas_is_elf = yes \
14135 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14136 then gcc_cv_as_eh_frame=yes
14138 elif test x$gcc_cv_as != x; then
14139 echo ' .text
14140 .LFB1:
14141 .4byte 0
14142 .L1:
14143 .4byte 0
14144 .LFE1:
14145 .section .eh_frame,"aw",@progbits
14146 __FRAME_BEGIN__:
14147 .4byte .LECIE1-.LSCIE1
14148 .LSCIE1:
14149 .4byte 0x0
14150 .byte 0x1
14151 .ascii "z\0"
14152 .byte 0x1
14153 .byte 0x78
14154 .byte 0x1a
14155 .byte 0x0
14156 .byte 0x4
14157 .4byte 1
14158 .p2align 1
14159 .LECIE1:
14160 .LSFDE1:
14161 .4byte .LEFDE1-.LASFDE1
14162 .LASFDE1:
14163 .4byte .LASFDE1-__FRAME_BEGIN__
14164 .4byte .LFB1
14165 .4byte .LFE1-.LFB1
14166 .byte 0x4
14167 .4byte .LFE1-.LFB1
14168 .byte 0x4
14169 .4byte .L1-.LFB1
14170 .LEFDE1:' > conftest.s
14171 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }
14177 then
14178 cat > conftest.lit <<EOF
14179 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14180 0010 01000000 12000000 18000000 00000000 ................
14181 0020 08000000 04080000 0044 .........D
14183 cat > conftest.big <<EOF
14184 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14185 0010 00000001 00000012 00000018 00000000 ................
14186 0020 00000008 04000000 0844 .........D
14188 # If the assembler didn't choke, and we can objdump,
14189 # and we got the correct data, then succeed.
14190 if test x$gcc_cv_objdump != x \
14191 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14192 | tail -3 > conftest.got \
14193 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
14194 || cmp conftest.big conftest.got > /dev/null 2>&1; }
14195 then
14196 gcc_cv_as_eh_frame=yes
14197 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 gcc_cv_as_eh_frame=buggy
14204 else
14205 # Uh oh, what do we do now?
14206 gcc_cv_as_eh_frame=no
14208 else
14209 echo "configure: failed program was" >&5
14210 cat conftest.s >&5
14212 rm -f conftest.o conftest.s
14215 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14216 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14219 if test $gcc_cv_as_eh_frame = buggy; then
14221 cat >>confdefs.h <<\_ACEOF
14222 #define USE_AS_TRADITIONAL_FORMAT 1
14223 _ACEOF
14227 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14228 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14229 if test "${gcc_cv_as_shf_merge+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232 gcc_cv_as_shf_merge=no
14233 if test $in_tree_gas = yes; then
14234 if test $in_tree_gas_is_elf = yes \
14235 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14236 then gcc_cv_as_shf_merge=yes
14238 elif test x$gcc_cv_as != x; then
14239 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14240 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }
14246 then
14247 gcc_cv_as_shf_merge=yes
14248 else
14249 echo "configure: failed program was" >&5
14250 cat conftest.s >&5
14252 rm -f conftest.o conftest.s
14255 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14256 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14258 if test $gcc_cv_as_shf_merge = no; then
14259 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14260 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14261 if test "${gcc_cv_as_shf_merge+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 else
14264 gcc_cv_as_shf_merge=no
14265 if test $in_tree_gas = yes; then
14266 if test $in_tree_gas_is_elf = yes \
14267 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14268 then gcc_cv_as_shf_merge=yes
14270 elif test x$gcc_cv_as != x; then
14271 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14272 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }
14278 then
14279 gcc_cv_as_shf_merge=yes
14280 else
14281 echo "configure: failed program was" >&5
14282 cat conftest.s >&5
14284 rm -f conftest.o conftest.s
14287 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14288 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14292 cat >>confdefs.h <<_ACEOF
14293 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14294 _ACEOF
14297 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14298 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14299 if test "${gcc_cv_as_comdat_group+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302 gcc_cv_as_comdat_group=no
14303 if test $in_tree_gas = yes; then
14304 if test $in_tree_gas_is_elf = yes \
14305 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14306 then gcc_cv_as_comdat_group=yes
14308 elif test x$gcc_cv_as != x; then
14309 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14310 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14313 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }
14316 then
14317 gcc_cv_as_comdat_group=yes
14318 else
14319 echo "configure: failed program was" >&5
14320 cat conftest.s >&5
14322 rm -f conftest.o conftest.s
14325 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14326 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14328 if test $gcc_cv_as_comdat_group = yes; then
14329 gcc_cv_as_comdat_group_percent=no
14330 else
14331 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14332 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14333 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336 gcc_cv_as_comdat_group_percent=no
14337 if test $in_tree_gas = yes; then
14338 if test $in_tree_gas_is_elf = yes \
14339 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14340 then gcc_cv_as_comdat_group_percent=yes
14342 elif test x$gcc_cv_as != x; then
14343 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14344 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }
14350 then
14351 gcc_cv_as_comdat_group_percent=yes
14352 else
14353 echo "configure: failed program was" >&5
14354 cat conftest.s >&5
14356 rm -f conftest.o conftest.s
14359 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14360 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14363 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14364 comdat_group=yes
14365 if test 0"$ld_date" -lt 20050308; then
14366 if test -n "$ld_date"; then
14367 # If there was date string, but was earlier than 2005-03-08, fail
14368 comdat_group=no
14369 elif test "$ld_vers_major" -lt 2; then
14370 comdat_group=no
14371 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14372 comdat_group=no
14375 else
14376 # assume linkers other than GNU ld don't support COMDAT group
14377 comdat_group=no
14379 if test $comdat_group = no; then
14380 gcc_cv_as_comdat_group=no
14381 gcc_cv_as_comdat_group_percent=no
14384 cat >>confdefs.h <<_ACEOF
14385 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14386 _ACEOF
14389 # Thread-local storage - the check is heavily parametrized.
14390 conftest_s=
14391 tls_first_major=
14392 tls_first_minor=
14393 tls_as_opt=
14394 case "$target" in
14395 alpha*-*-*)
14396 conftest_s='
14397 .section ".tdata","awT",@progbits
14398 foo: .long 25
14399 .text
14400 ldq $27,__tls_get_addr($29) !literal!1
14401 lda $16,foo($29) !tlsgd!1
14402 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14403 ldq $27,__tls_get_addr($29) !literal!2
14404 lda $16,foo($29) !tlsldm!2
14405 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14406 ldq $1,foo($29) !gotdtprel
14407 ldah $2,foo($29) !dtprelhi
14408 lda $3,foo($2) !dtprello
14409 lda $4,foo($29) !dtprel
14410 ldq $1,foo($29) !gottprel
14411 ldah $2,foo($29) !tprelhi
14412 lda $3,foo($2) !tprello
14413 lda $4,foo($29) !tprel'
14414 tls_first_major=2
14415 tls_first_minor=13
14416 tls_as_opt=--fatal-warnings
14418 frv*-*-*)
14419 conftest_s='
14420 .section ".tdata","awT",@progbits
14421 x: .long 25
14422 .text
14423 call #gettlsoff(x)'
14424 tls_first_major=2
14425 tls_first_minor=14
14427 hppa*-*-linux*)
14428 conftest_s='
14429 t1: .reg %r20
14430 t2: .reg %r21
14431 gp: .reg %r19
14432 .section ".tdata","awT",@progbits
14433 foo: .long 25
14434 .text
14435 .align 4
14436 addil LT%foo-$tls_gdidx$,gp
14437 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14438 b __tls_get_addr
14440 addil LT%foo-$tls_ldidx$,gp
14441 b __tls_get_addr
14442 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14443 addil LR%foo-$tls_dtpoff$,%ret0
14444 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14445 mfctl %cr27,%t1
14446 addil LT%foo-$tls_ieoff$,gp
14447 ldw RT%foo-$tls_ieoff$(%r1),%t2
14448 add %t1,%t2,%t3
14449 mfctl %cr27,%t1
14450 addil LR%foo-$tls_leoff$,%t1
14451 ldo RR%foo-$tls_leoff$(%r1),%t2'
14452 tls_first_major=2
14453 tls_first_minor=15
14454 tls_as_opt=--fatal-warnings
14456 arm*-*-*)
14457 conftest_s='
14458 .section ".tdata","awT",%progbits
14459 foo: .long 25
14460 .text
14461 .word foo(gottpoff)
14462 .word foo(tpoff)
14463 .word foo(tlsgd)
14464 .word foo(tlsldm)
14465 .word foo(tlsldo)'
14466 tls_first_major=2
14467 tls_first_minor=17
14469 i[34567]86-*-*)
14470 conftest_s='
14471 .section ".tdata","awT",@progbits
14472 foo: .long 25
14473 .text
14474 movl %gs:0, %eax
14475 leal foo@TLSGD(,%ebx,1), %eax
14476 leal foo@TLSLDM(%ebx), %eax
14477 leal foo@DTPOFF(%eax), %edx
14478 movl foo@GOTTPOFF(%ebx), %eax
14479 subl foo@GOTTPOFF(%ebx), %eax
14480 addl foo@GOTNTPOFF(%ebx), %eax
14481 movl foo@INDNTPOFF, %eax
14482 movl $foo@TPOFF, %eax
14483 subl $foo@TPOFF, %eax
14484 leal foo@NTPOFF(%ecx), %eax'
14485 tls_first_major=2
14486 tls_first_minor=14
14487 tls_as_opt=--fatal-warnings
14489 x86_64-*-*)
14490 conftest_s='
14491 .section ".tdata","awT",@progbits
14492 foo: .long 25
14493 .text
14494 movq %fs:0, %rax
14495 leaq foo@TLSGD(%rip), %rdi
14496 leaq foo@TLSLD(%rip), %rdi
14497 leaq foo@DTPOFF(%rax), %rdx
14498 movq foo@GOTTPOFF(%rip), %rax
14499 movq $foo@TPOFF, %rax'
14500 tls_first_major=2
14501 tls_first_minor=14
14502 tls_as_opt=--fatal-warnings
14504 ia64-*-*)
14505 conftest_s='
14506 .section ".tdata","awT",@progbits
14507 foo: data8 25
14508 .text
14509 addl r16 = @ltoff(@dtpmod(foo#)), gp
14510 addl r17 = @ltoff(@dtprel(foo#)), gp
14511 addl r18 = @ltoff(@tprel(foo#)), gp
14512 addl r19 = @dtprel(foo#), gp
14513 adds r21 = @dtprel(foo#), r13
14514 movl r23 = @dtprel(foo#)
14515 addl r20 = @tprel(foo#), gp
14516 adds r22 = @tprel(foo#), r13
14517 movl r24 = @tprel(foo#)'
14518 tls_first_major=2
14519 tls_first_minor=13
14520 tls_as_opt=--fatal-warnings
14522 mips*-*-*)
14523 conftest_s='
14524 .section .tdata,"awT",@progbits
14526 .word 2
14527 .text
14528 addiu $4, $28, %tlsgd(x)
14529 addiu $4, $28, %tlsldm(x)
14530 lui $4, %dtprel_hi(x)
14531 addiu $4, $4, %dtprel_lo(x)
14532 lw $4, %gottprel(x)($28)
14533 lui $4, %tprel_hi(x)
14534 addiu $4, $4, %tprel_lo(x)'
14535 tls_first_major=2
14536 tls_first_minor=16
14537 tls_as_opt='-32 --fatal-warnings'
14539 powerpc-*-*)
14540 conftest_s='
14541 .section ".tdata","awT",@progbits
14542 .align 2
14543 ld0: .space 4
14544 ld1: .space 4
14545 x1: .space 4
14546 x2: .space 4
14547 x3: .space 4
14548 .text
14549 addi 3,31,ld0@got@tlsgd
14550 bl __tls_get_addr
14551 addi 3,31,x1@got@tlsld
14552 bl __tls_get_addr
14553 addi 9,3,x1@dtprel
14554 addis 9,3,x2@dtprel@ha
14555 addi 9,9,x2@dtprel@l
14556 lwz 9,x3@got@tprel(31)
14557 add 9,9,x@tls
14558 addi 9,2,x1@tprel
14559 addis 9,2,x2@tprel@ha
14560 addi 9,9,x2@tprel@l'
14561 tls_first_major=2
14562 tls_first_minor=14
14563 tls_as_opt="-a32 --fatal-warnings"
14565 powerpc64-*-*)
14566 conftest_s='
14567 .section ".tdata","awT",@progbits
14568 .align 3
14569 ld0: .space 8
14570 ld1: .space 8
14571 x1: .space 8
14572 x2: .space 8
14573 x3: .space 8
14574 .text
14575 addi 3,2,ld0@got@tlsgd
14576 bl .__tls_get_addr
14578 addi 3,2,ld1@toc
14579 bl .__tls_get_addr
14581 addi 3,2,x1@got@tlsld
14582 bl .__tls_get_addr
14584 addi 9,3,x1@dtprel
14585 bl .__tls_get_addr
14587 addis 9,3,x2@dtprel@ha
14588 addi 9,9,x2@dtprel@l
14589 bl .__tls_get_addr
14591 ld 9,x3@got@dtprel(2)
14592 add 9,9,3
14593 bl .__tls_get_addr
14594 nop'
14595 tls_first_major=2
14596 tls_first_minor=14
14597 tls_as_opt="-a64 --fatal-warnings"
14599 s390-*-*)
14600 conftest_s='
14601 .section ".tdata","awT",@progbits
14602 foo: .long 25
14603 .text
14604 .long foo@TLSGD
14605 .long foo@TLSLDM
14606 .long foo@DTPOFF
14607 .long foo@NTPOFF
14608 .long foo@GOTNTPOFF
14609 .long foo@INDNTPOFF
14610 l %r1,foo@GOTNTPOFF(%r12)
14611 l %r1,0(%r1):tls_load:foo
14612 bas %r14,0(%r1,%r13):tls_gdcall:foo
14613 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14614 tls_first_major=2
14615 tls_first_minor=14
14616 tls_as_opt="-m31 --fatal-warnings"
14618 s390x-*-*)
14619 conftest_s='
14620 .section ".tdata","awT",@progbits
14621 foo: .long 25
14622 .text
14623 .quad foo@TLSGD
14624 .quad foo@TLSLDM
14625 .quad foo@DTPOFF
14626 .quad foo@NTPOFF
14627 .quad foo@GOTNTPOFF
14628 lg %r1,foo@GOTNTPOFF(%r12)
14629 larl %r1,foo@INDNTPOFF
14630 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14631 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14632 tls_first_major=2
14633 tls_first_minor=14
14634 tls_as_opt="-m64 -Aesame --fatal-warnings"
14636 sh-*-* | sh[34]-*-*)
14637 conftest_s='
14638 .section ".tdata","awT",@progbits
14639 foo: .long 25
14640 .text
14641 .long foo@TLSGD
14642 .long foo@TLSLDM
14643 .long foo@DTPOFF
14644 .long foo@GOTTPOFF
14645 .long foo@TPOFF'
14646 tls_first_major=2
14647 tls_first_minor=13
14648 tls_as_opt=--fatal-warnings
14650 sparc*-*-*)
14651 case "$target" in
14652 sparc*-sun-solaris2.[56789]*)
14653 # TLS was introduced in the Solaris 9 4/04 release but
14654 # we do not enable it by default on Solaris 9 either.
14655 if test "x$enable_tls" = xyes ; then
14656 on_solaris=yes
14657 else
14658 enable_tls=no;
14661 sparc*-sun-solaris2.*)
14662 on_solaris=yes
14665 on_solaris=no
14667 esac
14668 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14669 conftest_s='
14670 .section ".tdata",#alloc,#write,#tls
14671 foo: .long 25
14672 .text
14673 sethi %tgd_hi22(foo), %o0
14674 add %o0, %tgd_lo10(foo), %o1
14675 add %l7, %o1, %o0, %tgd_add(foo)
14676 call __tls_get_addr, %tgd_call(foo)
14677 sethi %tldm_hi22(foo), %l1
14678 add %l1, %tldm_lo10(foo), %l2
14679 add %l7, %l2, %o0, %tldm_add(foo)
14680 call __tls_get_addr, %tldm_call(foo)
14681 sethi %tldo_hix22(foo), %l3
14682 xor %l3, %tldo_lox10(foo), %l4
14683 add %o0, %l4, %l5, %tldo_add(foo)
14684 sethi %tie_hi22(foo), %o3
14685 add %o3, %tie_lo10(foo), %o3
14686 ld [%l7 + %o3], %o2, %tie_ld(foo)
14687 add %g7, %o2, %o4, %tie_add(foo)
14688 sethi %tle_hix22(foo), %l1
14689 xor %l1, %tle_lox10(foo), %o5
14690 ld [%g7 + %o5], %o1'
14691 tls_first_major=0
14692 tls_first_minor=0
14693 else
14694 conftest_s='
14695 .section ".tdata","awT",@progbits
14696 foo: .long 25
14697 .text
14698 sethi %tgd_hi22(foo), %o0
14699 add %o0, %tgd_lo10(foo), %o1
14700 add %l7, %o1, %o0, %tgd_add(foo)
14701 call __tls_get_addr, %tgd_call(foo)
14702 sethi %tldm_hi22(foo), %l1
14703 add %l1, %tldm_lo10(foo), %l2
14704 add %l7, %l2, %o0, %tldm_add(foo)
14705 call __tls_get_addr, %tldm_call(foo)
14706 sethi %tldo_hix22(foo), %l3
14707 xor %l3, %tldo_lox10(foo), %l4
14708 add %o0, %l4, %l5, %tldo_add(foo)
14709 sethi %tie_hi22(foo), %o3
14710 add %o3, %tie_lo10(foo), %o3
14711 ld [%l7 + %o3], %o2, %tie_ld(foo)
14712 add %g7, %o2, %o4, %tie_add(foo)
14713 sethi %tle_hix22(foo), %l1
14714 xor %l1, %tle_lox10(foo), %o5
14715 ld [%g7 + %o5], %o1'
14716 tls_first_major=2
14717 tls_first_minor=14
14718 tls_as_opt="-32 --fatal-warnings"
14721 esac
14722 set_have_as_tls=no
14723 if test "x$enable_tls" = xno ; then
14724 : # TLS explicitly disabled.
14725 elif test "x$enable_tls" = xyes ; then
14726 set_have_as_tls=yes # TLS explicitly enabled.
14727 elif test -z "$tls_first_major"; then
14728 : # If we don't have a check, assume no support.
14729 else
14730 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14731 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14732 if test "${gcc_cv_as_tls+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 gcc_cv_as_tls=no
14736 if test $in_tree_gas = yes; then
14737 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14738 then gcc_cv_as_tls=yes
14740 elif test x$gcc_cv_as != x; then
14741 echo "$conftest_s" > conftest.s
14742 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }
14748 then
14749 gcc_cv_as_tls=yes
14750 else
14751 echo "configure: failed program was" >&5
14752 cat conftest.s >&5
14754 rm -f conftest.o conftest.s
14757 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14758 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14759 if test $gcc_cv_as_tls = yes; then
14760 set_have_as_tls=yes
14763 if test $set_have_as_tls = yes ; then
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_AS_TLS 1
14767 _ACEOF
14771 # Target-specific assembler checks.
14773 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14774 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14775 gcc_cv_ld_static_dynamic=no
14776 if test $in_tree_ld = yes ; then
14777 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14778 gcc_cv_ld_static_dynamic=yes
14780 elif test x$gcc_cv_ld != x; then
14781 # Check if linker supports -Bstatic/-Bdynamic option
14782 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14783 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14784 gcc_cv_ld_static_dynamic=yes
14787 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14789 cat >>confdefs.h <<\_ACEOF
14790 #define HAVE_LD_STATIC_DYNAMIC 1
14791 _ACEOF
14794 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14795 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14797 if test x"$demangler_in_ld" = xyes; then
14798 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14799 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14800 gcc_cv_ld_demangle=no
14801 if test $in_tree_ld = yes; then
14802 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
14803 gcc_cv_ld_demangle=yes
14805 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14806 # Check if the GNU linker supports --demangle option
14807 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14808 gcc_cv_ld_demangle=yes
14811 if test x"$gcc_cv_ld_demangle" = xyes; then
14813 cat >>confdefs.h <<\_ACEOF
14814 #define HAVE_LD_DEMANGLE 1
14815 _ACEOF
14818 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14819 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14822 case "$target" in
14823 # All TARGET_ABI_OSF targets.
14824 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14825 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14826 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14827 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830 gcc_cv_as_alpha_explicit_relocs=no
14831 if test $in_tree_gas = yes; then
14832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14833 then gcc_cv_as_alpha_explicit_relocs=yes
14835 elif test x$gcc_cv_as != x; then
14836 echo ' .set nomacro
14837 .text
14838 extbl $3, $2, $3 !lituse_bytoff!1
14839 ldq $2, a($29) !literal!1
14840 ldq $4, b($29) !literal!2
14841 ldq_u $3, 0($2) !lituse_base!1
14842 ldq $27, f($29) !literal!5
14843 jsr $26, ($27), f !lituse_jsr!5
14844 ldah $29, 0($26) !gpdisp!3
14845 lda $0, c($29) !gprel
14846 ldah $1, d($29) !gprelhigh
14847 lda $1, d($1) !gprellow
14848 lda $29, 0($29) !gpdisp!3' > conftest.s
14849 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }
14855 then
14856 gcc_cv_as_alpha_explicit_relocs=yes
14857 else
14858 echo "configure: failed program was" >&5
14859 cat conftest.s >&5
14861 rm -f conftest.o conftest.s
14864 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14865 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14866 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14868 cat >>confdefs.h <<\_ACEOF
14869 #define HAVE_AS_EXPLICIT_RELOCS 1
14870 _ACEOF
14873 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14874 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14875 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 else
14878 gcc_cv_as_alpha_jsrdirect_relocs=no
14879 if test $in_tree_gas = yes; then
14880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14881 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14883 elif test x$gcc_cv_as != x; then
14884 echo ' .set nomacro
14885 .text
14886 ldq $27, a($29) !literal!1
14887 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14888 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }
14894 then
14895 gcc_cv_as_alpha_jsrdirect_relocs=yes
14896 else
14897 echo "configure: failed program was" >&5
14898 cat conftest.s >&5
14900 rm -f conftest.o conftest.s
14903 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14904 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14905 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14907 cat >>confdefs.h <<\_ACEOF
14908 #define HAVE_AS_JSRDIRECT_RELOCS 1
14909 _ACEOF
14914 cris-*-*)
14915 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14916 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14917 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920 gcc_cv_as_cris_no_mul_bug=no
14921 if test $in_tree_gas = yes; then
14922 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14923 then gcc_cv_as_cris_no_mul_bug=yes
14925 elif test x$gcc_cv_as != x; then
14926 echo '.text' > conftest.s
14927 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }
14933 then
14934 gcc_cv_as_cris_no_mul_bug=yes
14935 else
14936 echo "configure: failed program was" >&5
14937 cat conftest.s >&5
14939 rm -f conftest.o conftest.s
14942 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14943 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14944 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14946 cat >>confdefs.h <<\_ACEOF
14947 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14948 _ACEOF
14953 sparc*-*-*)
14954 echo "$as_me:$LINENO: checking assembler for .register" >&5
14955 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14956 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 else
14959 gcc_cv_as_sparc_register_op=no
14960 if test x$gcc_cv_as != x; then
14961 echo '.register %g2, #scratch' > conftest.s
14962 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }
14968 then
14969 gcc_cv_as_sparc_register_op=yes
14970 else
14971 echo "configure: failed program was" >&5
14972 cat conftest.s >&5
14974 rm -f conftest.o conftest.s
14977 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14978 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14979 if test $gcc_cv_as_sparc_register_op = yes; then
14981 cat >>confdefs.h <<\_ACEOF
14982 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14983 _ACEOF
14987 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14988 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14989 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 else
14992 gcc_cv_as_sparc_relax=no
14993 if test x$gcc_cv_as != x; then
14994 echo '.text' > conftest.s
14995 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }
15001 then
15002 gcc_cv_as_sparc_relax=yes
15003 else
15004 echo "configure: failed program was" >&5
15005 cat conftest.s >&5
15007 rm -f conftest.o conftest.s
15010 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15011 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15012 if test $gcc_cv_as_sparc_relax = yes; then
15014 cat >>confdefs.h <<\_ACEOF
15015 #define HAVE_AS_RELAX_OPTION 1
15016 _ACEOF
15020 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15021 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15022 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 else
15025 gcc_cv_as_sparc_ua_pcrel=no
15026 if test x$gcc_cv_as != x; then
15027 echo '.text
15028 foo:
15030 .data
15031 .align 4
15032 .byte 0
15033 .uaword %r_disp32(foo)' > conftest.s
15034 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }
15040 then
15041 if test x$gcc_cv_ld != x \
15042 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15043 gcc_cv_as_sparc_ua_pcrel=yes
15045 rm -f conftest
15046 else
15047 echo "configure: failed program was" >&5
15048 cat conftest.s >&5
15050 rm -f conftest.o conftest.s
15053 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15054 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15055 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15057 cat >>confdefs.h <<\_ACEOF
15058 #define HAVE_AS_SPARC_UA_PCREL 1
15059 _ACEOF
15062 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15063 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15064 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15066 else
15067 gcc_cv_as_sparc_ua_pcrel_hidden=no
15068 if test x$gcc_cv_as != x; then
15069 echo '.data
15070 .align 4
15071 .byte 0x31
15072 .uaword %r_disp32(foo)
15073 .byte 0x32, 0x33, 0x34
15074 .global foo
15075 .hidden foo
15076 foo:
15077 .skip 4' > conftest.s
15078 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15081 ac_status=$?
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }
15084 then
15085 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15086 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15087 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15088 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15089 if $gcc_cv_objdump -R conftest 2> /dev/null \
15090 | grep 'DISP32' > /dev/null 2>&1; then
15092 else
15093 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15096 rm -f conftest
15097 else
15098 echo "configure: failed program was" >&5
15099 cat conftest.s >&5
15101 rm -f conftest.o conftest.s
15104 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15105 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15106 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15108 cat >>confdefs.h <<\_ACEOF
15109 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15110 _ACEOF
15114 fi # unaligned pcrel relocs
15116 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15117 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15118 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 else
15121 gcc_cv_as_sparc_offsetable_lo10=no
15122 if test x$gcc_cv_as != x; then
15123 echo '.text
15124 or %g1, %lo(ab) + 12, %g1
15125 or %g1, %lo(ab + 12), %g1' > conftest.s
15126 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }
15132 then
15133 if test x$gcc_cv_objdump != x \
15134 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15135 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15136 gcc_cv_as_sparc_offsetable_lo10=yes
15138 else
15139 echo "configure: failed program was" >&5
15140 cat conftest.s >&5
15142 rm -f conftest.o conftest.s
15145 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15146 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15147 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15149 cat >>confdefs.h <<\_ACEOF
15150 #define HAVE_AS_OFFSETABLE_LO10 1
15151 _ACEOF
15156 i[34567]86-*-* | x86_64-*-*)
15157 case $target_os in
15158 cygwin* | pe | mingw32*)
15159 # Used for DWARF 2 in PE
15160 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15161 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15162 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15163 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 else
15165 gcc_cv_as_ix86_pe_secrel32=no
15166 if test $in_tree_gas = yes; then
15167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15168 then gcc_cv_as_ix86_pe_secrel32=yes
15170 elif test x$gcc_cv_as != x; then
15171 echo '.text
15172 foo: nop
15173 .data
15174 .secrel32 foo' > conftest.s
15175 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }
15181 then
15182 if test x$gcc_cv_ld != x \
15183 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15184 gcc_cv_as_ix86_pe_secrel32=yes
15186 rm -f conftest
15187 else
15188 echo "configure: failed program was" >&5
15189 cat conftest.s >&5
15191 rm -f conftest.o conftest.s
15194 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15195 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15196 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15198 cat >>confdefs.h <<\_ACEOF
15199 #define HAVE_GAS_PE_SECREL32_RELOC 1
15200 _ACEOF
15204 esac
15206 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15207 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15208 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15211 gcc_cv_as_ix86_filds_fists=no
15212 if test $in_tree_gas = yes; then
15213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15214 then gcc_cv_as_ix86_filds_fists=yes
15216 elif test x$gcc_cv_as != x; then
15217 echo 'filds mem; fists mem' > conftest.s
15218 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }
15224 then
15225 gcc_cv_as_ix86_filds_fists=yes
15226 else
15227 echo "configure: failed program was" >&5
15228 cat conftest.s >&5
15230 rm -f conftest.o conftest.s
15233 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15234 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15235 if test $gcc_cv_as_ix86_filds_fists = yes; then
15237 cat >>confdefs.h <<\_ACEOF
15238 #define HAVE_GAS_FILDS_FISTS 1
15239 _ACEOF
15243 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15244 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15245 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 else
15248 gcc_cv_as_ix86_cmov_sun_syntax=no
15249 if test x$gcc_cv_as != x; then
15250 echo 'cmovl.l %edx, %eax' > conftest.s
15251 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }
15257 then
15258 gcc_cv_as_ix86_cmov_sun_syntax=yes
15259 else
15260 echo "configure: failed program was" >&5
15261 cat conftest.s >&5
15263 rm -f conftest.o conftest.s
15266 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15267 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15268 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15270 cat >>confdefs.h <<\_ACEOF
15271 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15272 _ACEOF
15276 # This one is used unconditionally by i386.[ch]; it is to be defined
15277 # to 1 if the feature is present, 0 otherwise.
15278 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15279 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15280 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282 else
15283 gcc_cv_as_ix86_gotoff_in_data=no
15284 if test $in_tree_gas = yes; then
15285 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15286 then gcc_cv_as_ix86_gotoff_in_data=yes
15288 elif test x$gcc_cv_as != x; then
15289 echo ' .text
15290 .L0:
15292 .data
15293 .long .L0@GOTOFF' > conftest.s
15294 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }
15300 then
15301 gcc_cv_as_ix86_gotoff_in_data=yes
15302 else
15303 echo "configure: failed program was" >&5
15304 cat conftest.s >&5
15306 rm -f conftest.o conftest.s
15309 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15310 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15313 cat >>confdefs.h <<_ACEOF
15314 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15315 _ACEOF
15319 ia64*-*-*)
15320 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15321 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15322 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15326 if test $in_tree_gas = yes; then
15327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15328 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15330 elif test x$gcc_cv_as != x; then
15331 echo ' .text
15332 addl r15 = @ltoffx(x#), gp
15334 ld8.mov r16 = [r15], x#' > conftest.s
15335 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }
15341 then
15342 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15343 else
15344 echo "configure: failed program was" >&5
15345 cat conftest.s >&5
15347 rm -f conftest.o conftest.s
15350 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15351 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15352 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15354 cat >>confdefs.h <<\_ACEOF
15355 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15356 _ACEOF
15362 powerpc*-*-*)
15363 case $target in
15364 *-*-aix*) conftest_s=' .machine "pwr5"
15365 .csect .text[PR]
15366 mfcr 3,128';;
15367 *-*-darwin*)
15368 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15369 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15370 if test "${gcc_cv_as_machine_directive+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 else
15373 gcc_cv_as_machine_directive=no
15374 if test x$gcc_cv_as != x; then
15375 echo ' .machine ppc7400' > conftest.s
15376 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }
15382 then
15383 gcc_cv_as_machine_directive=yes
15384 else
15385 echo "configure: failed program was" >&5
15386 cat conftest.s >&5
15388 rm -f conftest.o conftest.s
15391 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15392 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15394 if test x$gcc_cv_as_machine_directive != xyes; then
15395 echo "*** This target requires an assembler supporting \".machine\"" >&2
15396 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15397 test x$build = x$target && exit 1
15399 conftest_s=' .text
15400 mfcr r3,128';;
15401 *) conftest_s=' .machine power4
15402 .text
15403 mfcr 3,128';;
15404 esac
15406 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15407 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15408 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15410 else
15411 gcc_cv_as_powerpc_mfcrf=no
15412 if test $in_tree_gas = yes; then
15413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15414 then gcc_cv_as_powerpc_mfcrf=yes
15416 elif test x$gcc_cv_as != x; then
15417 echo "$conftest_s" > conftest.s
15418 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }
15424 then
15425 gcc_cv_as_powerpc_mfcrf=yes
15426 else
15427 echo "configure: failed program was" >&5
15428 cat conftest.s >&5
15430 rm -f conftest.o conftest.s
15433 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15434 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15435 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15437 cat >>confdefs.h <<\_ACEOF
15438 #define HAVE_AS_MFCRF 1
15439 _ACEOF
15443 case $target in
15444 *-*-aix*) conftest_s=' .machine "pwr5"
15445 .csect .text[PR]
15446 popcntb 3,3';;
15447 *) conftest_s=' .machine power5
15448 .text
15449 popcntb 3,3';;
15450 esac
15452 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15453 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15454 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 else
15457 gcc_cv_as_powerpc_popcntb=no
15458 if test $in_tree_gas = yes; then
15459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15460 then gcc_cv_as_powerpc_popcntb=yes
15462 elif test x$gcc_cv_as != x; then
15463 echo "$conftest_s" > conftest.s
15464 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }
15470 then
15471 gcc_cv_as_powerpc_popcntb=yes
15472 else
15473 echo "configure: failed program was" >&5
15474 cat conftest.s >&5
15476 rm -f conftest.o conftest.s
15479 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15480 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15481 if test $gcc_cv_as_powerpc_popcntb = yes; then
15483 cat >>confdefs.h <<\_ACEOF
15484 #define HAVE_AS_POPCNTB 1
15485 _ACEOF
15489 case $target in
15490 *-*-aix*) conftest_s=' .machine "pwr5x"
15491 .csect .text[PR]
15492 frin 1,1';;
15493 *) conftest_s=' .machine power5
15494 .text
15495 frin 1,1';;
15496 esac
15498 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15499 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15500 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503 gcc_cv_as_powerpc_fprnd=no
15504 if test $in_tree_gas = yes; then
15505 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15506 then gcc_cv_as_powerpc_fprnd=yes
15508 elif test x$gcc_cv_as != x; then
15509 echo "$conftest_s" > conftest.s
15510 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }
15516 then
15517 gcc_cv_as_powerpc_fprnd=yes
15518 else
15519 echo "configure: failed program was" >&5
15520 cat conftest.s >&5
15522 rm -f conftest.o conftest.s
15525 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15526 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15527 if test $gcc_cv_as_powerpc_fprnd = yes; then
15529 cat >>confdefs.h <<\_ACEOF
15530 #define HAVE_AS_FPRND 1
15531 _ACEOF
15535 case $target in
15536 *-*-aix*) conftest_s=' .csect .text[PR]
15537 LCF..0:
15538 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15539 *-*-darwin*)
15540 conftest_s=' .text
15541 LCF0:
15542 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15543 *) conftest_s=' .text
15544 .LCF0:
15545 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15546 esac
15548 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15549 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15550 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553 gcc_cv_as_powerpc_rel16=no
15554 if test $in_tree_gas = yes; then
15555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15556 then gcc_cv_as_powerpc_rel16=yes
15558 elif test x$gcc_cv_as != x; then
15559 echo "$conftest_s" > conftest.s
15560 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }
15566 then
15567 gcc_cv_as_powerpc_rel16=yes
15568 else
15569 echo "configure: failed program was" >&5
15570 cat conftest.s >&5
15572 rm -f conftest.o conftest.s
15575 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15576 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15577 if test $gcc_cv_as_powerpc_rel16 = yes; then
15579 cat >>confdefs.h <<\_ACEOF
15580 #define HAVE_AS_REL16 1
15581 _ACEOF
15586 mips*-*-*)
15587 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15588 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15589 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 else
15592 gcc_cv_as_mips_explicit_relocs=no
15593 if test $in_tree_gas = yes; then
15594 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15595 then gcc_cv_as_mips_explicit_relocs=yes
15597 elif test x$gcc_cv_as != x; then
15598 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15599 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; }
15605 then
15606 gcc_cv_as_mips_explicit_relocs=yes
15607 else
15608 echo "configure: failed program was" >&5
15609 cat conftest.s >&5
15611 rm -f conftest.o conftest.s
15614 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15615 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15616 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15617 if test x$target_cpu_default = x
15618 then target_cpu_default=MASK_EXPLICIT_RELOCS
15619 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15623 esac
15625 # Mips and HP-UX need the GNU assembler.
15626 # Linux on IA64 might be able to use the Intel assembler.
15628 case "$target" in
15629 mips*-*-* | *-*-hpux* )
15630 if test x$gas_flag = xyes \
15631 || test x"$host" != x"$build" \
15632 || test ! -x "$gcc_cv_as" \
15633 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15635 else
15636 echo "*** This configuration requires the GNU assembler" >&2
15637 exit 1
15640 esac
15642 # ??? Not all targets support dwarf2 debug_line, even within a version
15643 # of gas. Moreover, we need to emit a valid instruction to trigger any
15644 # info to the output file. So, as supported targets are added to gas 2.11,
15645 # add some instruction here to (also) show we expect this might work.
15646 # ??? Once 2.11 is released, probably need to add first known working
15647 # version to the per-target configury.
15648 case "$target" in
15649 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15650 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15651 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15652 insn="nop"
15654 ia64*-*-* | s390*-*-*)
15655 insn="nop 0"
15657 mmix-*-*)
15658 insn="swym 0"
15660 esac
15661 if test x"$insn" != x; then
15662 conftest_s="\
15663 .file 1 \"conftest.s\"
15664 .loc 1 3 0
15665 $insn"
15666 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15667 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15668 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 else
15671 gcc_cv_as_dwarf2_debug_line=no
15672 if test $in_tree_gas = yes; then
15673 if test $in_tree_gas_is_elf = yes \
15674 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15675 then gcc_cv_as_dwarf2_debug_line=yes
15677 elif test x$gcc_cv_as != x; then
15678 echo "$conftest_s" > conftest.s
15679 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }
15685 then
15686 if test x$gcc_cv_objdump != x \
15687 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15688 | grep debug_line > /dev/null 2>&1; then
15689 gcc_cv_as_dwarf2_debug_line=yes
15691 else
15692 echo "configure: failed program was" >&5
15693 cat conftest.s >&5
15695 rm -f conftest.o conftest.s
15698 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15699 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15702 # The .debug_line file table must be in the exact order that
15703 # we specified the files, since these indices are also used
15704 # by DW_AT_decl_file. Approximate this test by testing if
15705 # the assembler bitches if the same index is assigned twice.
15706 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15707 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15708 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711 gcc_cv_as_dwarf2_file_buggy=no
15712 if test x$gcc_cv_as != x; then
15713 echo ' .file 1 "foo.s"
15714 .file 1 "bar.s"' > conftest.s
15715 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }
15721 then
15722 gcc_cv_as_dwarf2_file_buggy=yes
15723 else
15724 echo "configure: failed program was" >&5
15725 cat conftest.s >&5
15727 rm -f conftest.o conftest.s
15730 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15731 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15734 if test $gcc_cv_as_dwarf2_debug_line = yes \
15735 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15737 cat >>confdefs.h <<\_ACEOF
15738 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15739 _ACEOF
15743 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15744 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15745 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748 gcc_cv_as_gdwarf2_flag=no
15749 if test $in_tree_gas = yes; then
15750 if test $in_tree_gas_is_elf = yes \
15751 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15752 then gcc_cv_as_gdwarf2_flag=yes
15754 elif test x$gcc_cv_as != x; then
15755 echo "$insn" > conftest.s
15756 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }
15762 then
15763 gcc_cv_as_gdwarf2_flag=yes
15764 else
15765 echo "configure: failed program was" >&5
15766 cat conftest.s >&5
15768 rm -f conftest.o conftest.s
15771 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15772 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15773 if test $gcc_cv_as_gdwarf2_flag = yes; then
15775 cat >>confdefs.h <<\_ACEOF
15776 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15777 _ACEOF
15781 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15782 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15783 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786 gcc_cv_as_gstabs_flag=no
15787 if test $in_tree_gas = yes; then
15788 if test $in_tree_gas_is_elf = yes \
15789 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15790 then gcc_cv_as_gstabs_flag=yes
15792 elif test x$gcc_cv_as != x; then
15793 echo "$insn" > conftest.s
15794 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }
15800 then
15801 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15802 # and warns about it, but still exits successfully. So check for
15803 # this.
15804 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }
15810 then :
15811 else gcc_cv_as_gstabs_flag=yes
15813 else
15814 echo "configure: failed program was" >&5
15815 cat conftest.s >&5
15817 rm -f conftest.o conftest.s
15820 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15821 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15822 if test $gcc_cv_as_gstabs_flag = yes; then
15824 cat >>confdefs.h <<\_ACEOF
15825 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15826 _ACEOF
15831 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15832 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15833 gcc_cv_ld_ro_rw_mix=unknown
15834 if test $in_tree_ld = yes ; then
15835 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 \
15836 && test $in_tree_ld_is_elf = yes; then
15837 gcc_cv_ld_ro_rw_mix=read-write
15839 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15840 echo '.section myfoosect, "a"' > conftest1.s
15841 echo '.section myfoosect, "aw"' > conftest2.s
15842 echo '.byte 1' >> conftest2.s
15843 echo '.section myfoosect, "a"' > conftest3.s
15844 echo '.byte 0' >> conftest3.s
15845 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15846 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15847 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15848 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15849 conftest2.o conftest3.o > /dev/null 2>&1; then
15850 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15851 | sed -e '/myfoosect/!d' -e N`
15852 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15853 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15854 gcc_cv_ld_ro_rw_mix=read-only
15855 else
15856 gcc_cv_ld_ro_rw_mix=read-write
15860 rm -f conftest.* conftest[123].*
15862 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15864 cat >>confdefs.h <<\_ACEOF
15865 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15866 _ACEOF
15869 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15870 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15872 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15873 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15874 gcc_cv_ld_eh_frame_hdr=no
15875 if test $in_tree_ld = yes ; then
15876 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 \
15877 && test $in_tree_ld_is_elf = yes; then
15878 gcc_cv_ld_eh_frame_hdr=yes
15880 elif test x$gcc_cv_ld != x; then
15881 # Check if linker supports --eh-frame-hdr option
15882 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15883 gcc_cv_ld_eh_frame_hdr=yes
15887 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15889 cat >>confdefs.h <<\_ACEOF
15890 #define HAVE_LD_EH_FRAME_HDR 1
15891 _ACEOF
15894 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15895 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15897 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15898 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15899 gcc_cv_ld_pie=no
15900 if test $in_tree_ld = yes ; then
15901 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 \
15902 && test $in_tree_ld_is_elf = yes; then
15903 gcc_cv_ld_pie=yes
15905 elif test x$gcc_cv_ld != x; then
15906 # Check if linker supports -pie option
15907 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15908 gcc_cv_ld_pie=yes
15911 if test x"$gcc_cv_ld_pie" = xyes; then
15913 cat >>confdefs.h <<\_ACEOF
15914 #define HAVE_LD_PIE 1
15915 _ACEOF
15918 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15919 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15921 # --------
15922 # UNSORTED
15923 # --------
15925 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15926 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15927 if test "${gcc_cv_ld_as_needed+set}" = set; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 else
15930 gcc_cv_ld_as_needed=no
15931 if test $in_tree_ld = yes ; then
15932 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
15933 && test $in_tree_ld_is_elf = yes; then
15934 gcc_cv_ld_as_needed=yes
15936 elif test x$gcc_cv_ld != x; then
15937 # Check if linker supports --as-needed and --no-as-needed options
15938 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15939 gcc_cv_ld_as_needed=yes
15944 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15945 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15946 if test x"$gcc_cv_ld_as_needed" = xyes; then
15948 cat >>confdefs.h <<\_ACEOF
15949 #define HAVE_LD_AS_NEEDED 1
15950 _ACEOF
15954 case "$target:$tm_file" in
15955 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15956 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15957 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15958 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15960 else
15961 gcc_cv_ld_no_dot_syms=no
15962 if test $in_tree_ld = yes ; then
15963 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
15964 gcc_cv_ld_no_dot_syms=yes
15966 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15967 cat > conftest1.s <<EOF
15968 .text
15969 bl .foo
15971 cat > conftest2.s <<EOF
15972 .section ".opd","aw"
15973 .align 3
15974 .globl foo
15975 .type foo,@function
15976 foo:
15977 .quad .LEfoo,.TOC.@tocbase,0
15978 .text
15979 .LEfoo:
15981 .size foo,.-.LEfoo
15983 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15984 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15985 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15986 gcc_cv_ld_no_dot_syms=yes
15988 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15992 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15993 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15994 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15996 cat >>confdefs.h <<\_ACEOF
15997 #define HAVE_LD_NO_DOT_SYMS 1
15998 _ACEOF
16002 esac
16004 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16005 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16006 if test "${gcc_cv_ld_sysroot+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009 gcc_cv_ld_sysroot=no
16010 if test $in_tree_ld = yes ; then
16011 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
16012 gcc_cv_ld_sysroot=yes
16014 elif test x$gcc_cv_ld != x; then
16015 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16016 gcc_cv_ld_sysroot=yes
16020 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16021 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16022 if test x"$gcc_cv_ld_sysroot" = xyes; then
16024 cat >>confdefs.h <<\_ACEOF
16025 #define HAVE_LD_SYSROOT 1
16026 _ACEOF
16030 if test x$with_sysroot = x && test x$host = x$target \
16031 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
16033 cat >>confdefs.h <<_ACEOF
16034 #define PREFIX_INCLUDE_DIR "$prefix/include"
16035 _ACEOF
16039 # Test for stack protector support in target C library.
16040 case "$target" in
16041 *-*-linux*)
16042 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
16043 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
16044 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047 gcc_cv_libc_provides_ssp=no
16048 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16049 if test "x$with_sysroot" = x; then
16050 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16051 elif test "x$with_sysroot" = xyes; then
16052 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16053 else
16054 glibc_header_dir="${with_sysroot}/usr/include"
16056 else
16057 glibc_header_dir=/usr/include
16059 # glibc 2.4 and later provides __stack_chk_fail and
16060 # either __stack_chk_guard, or TLS access to stack guard canary.
16061 if test -f $glibc_header_dir/features.h \
16062 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16063 $glibc_header_dir/features.h > /dev/null; then
16064 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16065 $glibc_header_dir/features.h > /dev/null; then
16066 gcc_cv_libc_provides_ssp=yes
16067 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16068 $glibc_header_dir/features.h > /dev/null \
16069 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16070 $glibc_header_dir/features.h > /dev/null; then
16071 gcc_cv_libc_provides_ssp=yes
16075 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16076 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
16077 *) gcc_cv_libc_provides_ssp=no ;;
16078 esac
16079 if test x$gcc_cv_libc_provides_ssp = xyes; then
16081 cat >>confdefs.h <<\_ACEOF
16082 #define TARGET_LIBC_PROVIDES_SSP 1
16083 _ACEOF
16087 # Check if TFmode long double should be used by default or not.
16088 # Some glibc targets used DFmode long double, but with glibc 2.4
16089 # and later they can use TFmode.
16090 case "$target" in
16091 powerpc*-*-*gnu* | \
16092 sparc*-*-linux* | \
16093 s390*-*-linux* | \
16094 alpha*-*-linux*)
16096 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16097 if test "${with_long_double_128+set}" = set; then
16098 withval="$with_long_double_128"
16099 gcc_cv_target_ldbl128="$with_long_double_128"
16100 else
16101 gcc_cv_target_ldbl128=no
16102 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16103 if test "x$with_sysroot" = x; then
16104 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16105 elif test "x$with_sysroot" = xyes; then
16106 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16107 else
16108 glibc_header_dir="${with_sysroot}/usr/include"
16110 else
16111 glibc_header_dir=/usr/include
16113 grep '^ *#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16114 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16115 && gcc_cv_target_ldbl128=yes
16118 esac
16119 if test x$gcc_cv_target_ldbl128 = xyes; then
16121 cat >>confdefs.h <<\_ACEOF
16122 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16123 _ACEOF
16127 # Find out what GC implementation we want, or may, use.
16129 # Check whether --with-gc or --without-gc was given.
16130 if test "${with_gc+set}" = set; then
16131 withval="$with_gc"
16132 case "$withval" in
16133 page)
16134 GGC=ggc-$withval
16136 zone)
16137 GGC=ggc-$withval
16139 cat >>confdefs.h <<\_ACEOF
16140 #define GGC_ZONE 1
16141 _ACEOF
16145 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16146 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16147 { (exit 1); exit 1; }; }
16149 esac
16150 else
16151 GGC=ggc-page
16154 echo "Using $GGC for garbage collection."
16156 # Use the system's zlib library.
16157 zlibdir=-L../zlib
16158 zlibinc="-I\$(srcdir)/../zlib"
16160 # Check whether --with-system-zlib or --without-system-zlib was given.
16161 if test "${with_system_zlib+set}" = set; then
16162 withval="$with_system_zlib"
16163 zlibdir=
16164 zlibinc=
16171 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16172 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16173 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16174 if test "${enable_maintainer_mode+set}" = set; then
16175 enableval="$enable_maintainer_mode"
16176 maintainer_mode=$enableval
16177 else
16178 maintainer_mode=no
16181 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16182 echo "${ECHO_T}$maintainer_mode" >&6
16184 if test "$maintainer_mode" = "yes"; then
16185 MAINT=''
16186 else
16187 MAINT='#'
16190 # --------------
16191 # Language hooks
16192 # --------------
16194 # Make empty files to contain the specs and options for each language.
16195 # Then add #include lines to for a compiler that has specs and/or options.
16197 subdirs=
16198 lang_opt_files=
16199 lang_specs_files=
16200 lang_tree_files=
16201 # These (without "all_") are set in each config-lang.in.
16202 # `language' must be a single word so is spelled singularly.
16203 all_languages=
16204 all_boot_languages=
16205 all_compilers=
16206 all_stagestuff=
16207 all_outputs='Makefile gccbug mklibgcc libada-mk'
16208 # List of language makefile fragments.
16209 all_lang_makefrags=
16210 # List of language subdirectory makefiles. Deprecated.
16211 all_lang_makefiles=
16212 # Files for gengtype
16213 all_gtfiles="$target_gtfiles"
16214 # Files for gengtype with language
16215 all_gtfiles_files_langs=
16216 all_gtfiles_files_files=
16218 # These are the languages that are set in --enable-languages,
16219 # and are available in the GCC tree.
16220 all_selected_languages=
16222 # Add the language fragments.
16223 # Languages are added via two mechanisms. Some information must be
16224 # recorded in makefile variables, these are defined in config-lang.in.
16225 # We accumulate them and plug them into the main Makefile.
16226 # The other mechanism is a set of hooks for each of the main targets
16227 # like `clean', `install', etc.
16229 language_hooks="Make-hooks"
16231 for lang in ${srcdir}/*/config-lang.in
16233 case $lang in
16234 # The odd quoting in the next line works around
16235 # an apparent bug in bash 1.12 on linux.
16236 ${srcdir}/[*]/config-lang.in)
16237 continue ;;
16239 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16240 if test "x$lang_alias" = x
16241 then
16242 echo "$lang doesn't set \$language." 1>&2
16243 exit 1
16245 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16246 subdirs="$subdirs $subdir"
16247 case ",$enable_languages," in
16248 *,$lang_alias,*)
16249 all_selected_languages="$all_selected_languages $lang_alias"
16250 if test -f $srcdir/$subdir/lang-specs.h; then
16251 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16254 esac
16256 if test -f $srcdir/$subdir/lang.opt; then
16257 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16259 if test -f $srcdir/$subdir/$subdir-tree.def; then
16260 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16263 language=
16264 boot_language=
16265 compilers=
16266 stagestuff=
16267 outputs=
16268 gtfiles=
16269 . ${srcdir}/$subdir/config-lang.in
16270 if test "x$language" = x
16271 then
16272 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16273 exit 1
16275 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16276 if test -f ${srcdir}/$subdir/Makefile.in
16277 then all_lang_makefiles="$subdir/Makefile"
16279 all_languages="$all_languages $language"
16280 if test "x$boot_language" = xyes
16281 then
16282 all_boot_languages="$all_boot_languages $language"
16284 all_compilers="$all_compilers $compilers"
16285 all_stagestuff="$all_stagestuff $stagestuff"
16286 all_outputs="$all_outputs $outputs"
16287 all_gtfiles="$all_gtfiles $gtfiles"
16288 for f in $gtfiles
16290 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16291 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16292 done
16294 esac
16295 done
16297 # Pick up gtfiles for c
16298 gtfiles=
16299 subdir="c"
16300 . ${srcdir}/c-config-lang.in
16301 all_gtfiles="$all_gtfiles $gtfiles"
16302 for f in $gtfiles
16304 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16305 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16306 done
16308 check_languages=
16309 for language in $all_selected_languages
16311 check_languages="$check_languages check-$language"
16312 done
16314 # We link each language in with a set of hooks, reached indirectly via
16315 # lang.${target}. Only do so for selected languages.
16317 rm -f Make-hooks
16318 touch Make-hooks
16319 target_list="all.cross start.encap rest.encap tags \
16320 install-common install-man install-info dvi html \
16321 uninstall info man srcextra srcman srcinfo \
16322 mostlyclean clean distclean maintainer-clean \
16323 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16325 for t in $target_list
16328 for lang in $all_selected_languages
16330 x="$x $lang.$t"
16331 done
16332 echo "lang.$t: $x" >> Make-hooks
16333 done
16335 # --------
16336 # UNSORTED
16337 # --------
16339 # Create .gdbinit.
16341 echo "dir ." > .gdbinit
16342 echo "dir ${srcdir}" >> .gdbinit
16343 if test x$gdb_needs_out_file_path = xyes
16344 then
16345 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16347 if test "x$subdirs" != x; then
16348 for s in $subdirs
16350 echo "dir ${srcdir}/$s" >> .gdbinit
16351 done
16353 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16355 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16356 # absolute path for gcc_tooldir based on inserting the number of up-directory
16357 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16358 # $(libsubdir)/@(unlibsubdir) based path.
16359 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16360 # make and thus we'd get different behavior depending on where we built the
16361 # sources.
16362 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16363 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16364 else
16365 # An explanation of the sed strings:
16366 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16367 # -e 's|/$||' match a trailing forward slash and eliminates it
16368 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16369 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16371 # (*) Note this pattern overwrites the first character of the string
16372 # with a forward slash if one is not already present. This is not a
16373 # problem because the exact names of the sub-directories concerned is
16374 # unimportant, just the number of them matters.
16376 # The practical upshot of these patterns is like this:
16378 # prefix exec_prefix result
16379 # ------ ----------- ------
16380 # /foo /foo/bar ../
16381 # /foo/ /foo/bar ../
16382 # /foo /foo/bar/ ../
16383 # /foo/ /foo/bar/ ../
16384 # /foo /foo/bar/ugg ../../
16386 dollar='$$'
16387 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16392 # Find a directory in which to install a shared libgcc.
16394 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16395 if test "${enable_version_specific_runtime_libs+set}" = set; then
16396 enableval="$enable_version_specific_runtime_libs"
16401 # Check whether --with-slibdir or --without-slibdir was given.
16402 if test "${with_slibdir+set}" = set; then
16403 withval="$with_slibdir"
16404 slibdir="$with_slibdir"
16405 else
16406 if test "${enable_version_specific_runtime_libs+set}" = set; then
16407 slibdir='$(libsubdir)'
16408 elif test "$host" != "$target"; then
16409 slibdir='$(build_tooldir)/lib'
16410 else
16411 slibdir='$(libdir)'
16416 objdir=`${PWDCMD-pwd}`
16420 # Check whether --with-datarootdir or --without-datarootdir was given.
16421 if test "${with_datarootdir+set}" = set; then
16422 withval="$with_datarootdir"
16423 datarootdir="\${prefix}/$with_datarootdir"
16424 else
16425 datarootdir='$(prefix)/share'
16430 # Check whether --with-docdir or --without-docdir was given.
16431 if test "${with_docdir+set}" = set; then
16432 withval="$with_docdir"
16433 docdir="\${prefix}/$with_docdir"
16434 else
16435 docdir='$(datarootdir)'
16440 # Check whether --with-htmldir or --without-htmldir was given.
16441 if test "${with_htmldir+set}" = set; then
16442 withval="$with_htmldir"
16443 htmldir="\${prefix}/$with_htmldir"
16444 else
16445 htmldir='$(docdir)'
16449 # Substitute configuration variables
16513 # Echo link setup.
16514 if test x${build} = x${host} ; then
16515 if test x${host} = x${target} ; then
16516 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16517 else
16518 echo "Links are now set up to build a cross-compiler" 1>&2
16519 echo " from ${host} to ${target}." 1>&2
16521 else
16522 if test x${host} = x${target} ; then
16523 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16524 echo " for ${target}." 1>&2
16525 else
16526 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16527 echo " from ${host} to ${target}." 1>&2
16534 # Configure the subdirectories
16535 # AC_CONFIG_SUBDIRS($subdirs)
16537 # Create the Makefile
16538 # and configure language subdirectories
16539 ac_config_files="$ac_config_files $all_outputs"
16542 ac_config_commands="$ac_config_commands default"
16544 cat >confcache <<\_ACEOF
16545 # This file is a shell script that caches the results of configure
16546 # tests run on this system so they can be shared between configure
16547 # scripts and configure runs, see configure's option --config-cache.
16548 # It is not useful on other systems. If it contains results you don't
16549 # want to keep, you may remove or edit it.
16551 # config.status only pays attention to the cache file if you give it
16552 # the --recheck option to rerun configure.
16554 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16555 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16556 # following values.
16558 _ACEOF
16560 # The following way of writing the cache mishandles newlines in values,
16561 # but we know of no workaround that is simple, portable, and efficient.
16562 # So, don't put newlines in cache variables' values.
16563 # Ultrix sh set writes to stderr and can't be redirected directly,
16564 # and sets the high bit in the cache file unless we assign to the vars.
16566 (set) 2>&1 |
16567 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16568 *ac_space=\ *)
16569 # `set' does not quote correctly, so add quotes (double-quote
16570 # substitution turns \\\\ into \\, and sed turns \\ into \).
16571 sed -n \
16572 "s/'/'\\\\''/g;
16573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16576 # `set' quotes correctly as required by POSIX, so do not add quotes.
16577 sed -n \
16578 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16580 esac;
16582 sed '
16583 t clear
16584 : clear
16585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16586 t end
16587 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16588 : end' >>confcache
16589 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16590 if test -w $cache_file; then
16591 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16592 cat confcache >$cache_file
16593 else
16594 echo "not updating unwritable cache $cache_file"
16597 rm -f confcache
16599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16600 # Let make expand exec_prefix.
16601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16603 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16604 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16605 # trailing colons and then remove the whole line if VPATH becomes empty
16606 # (actually we leave an empty line to preserve line numbers).
16607 if test "x$srcdir" = x.; then
16608 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16609 s/:*\$(srcdir):*/:/;
16610 s/:*\${srcdir}:*/:/;
16611 s/:*@srcdir@:*/:/;
16612 s/^\([^=]*=[ ]*\):*/\1/;
16613 s/:*$//;
16614 s/^[^=]*=[ ]*$//;
16618 DEFS=-DHAVE_CONFIG_H
16620 ac_libobjs=
16621 ac_ltlibobjs=
16622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16623 # 1. Remove the extension, and $U if already installed.
16624 ac_i=`echo "$ac_i" |
16625 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16626 # 2. Add them.
16627 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16628 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16629 done
16630 LIBOBJS=$ac_libobjs
16632 LTLIBOBJS=$ac_ltlibobjs
16636 : ${CONFIG_STATUS=./config.status}
16637 ac_clean_files_save=$ac_clean_files
16638 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16639 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16640 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16641 cat >$CONFIG_STATUS <<_ACEOF
16642 #! $SHELL
16643 # Generated by $as_me.
16644 # Run this file to recreate the current configuration.
16645 # Compiler output produced by configure, useful for debugging
16646 # configure, is in config.log if it exists.
16648 debug=false
16649 ac_cs_recheck=false
16650 ac_cs_silent=false
16651 SHELL=\${CONFIG_SHELL-$SHELL}
16652 _ACEOF
16654 cat >>$CONFIG_STATUS <<\_ACEOF
16655 ## --------------------- ##
16656 ## M4sh Initialization. ##
16657 ## --------------------- ##
16659 # Be Bourne compatible
16660 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16661 emulate sh
16662 NULLCMD=:
16663 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16664 # is contrary to our usage. Disable this feature.
16665 alias -g '${1+"$@"}'='"$@"'
16666 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16667 set -o posix
16669 DUALCASE=1; export DUALCASE # for MKS sh
16671 # Support unset when possible.
16672 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16673 as_unset=unset
16674 else
16675 as_unset=false
16679 # Work around bugs in pre-3.0 UWIN ksh.
16680 $as_unset ENV MAIL MAILPATH
16681 PS1='$ '
16682 PS2='> '
16683 PS4='+ '
16685 # NLS nuisances.
16686 for as_var in \
16687 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16688 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16689 LC_TELEPHONE LC_TIME
16691 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16692 eval $as_var=C; export $as_var
16693 else
16694 $as_unset $as_var
16696 done
16698 # Required to use basename.
16699 if expr a : '\(a\)' >/dev/null 2>&1; then
16700 as_expr=expr
16701 else
16702 as_expr=false
16705 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16706 as_basename=basename
16707 else
16708 as_basename=false
16712 # Name of the executable.
16713 as_me=`$as_basename "$0" ||
16714 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16715 X"$0" : 'X\(//\)$' \| \
16716 X"$0" : 'X\(/\)$' \| \
16717 . : '\(.\)' 2>/dev/null ||
16718 echo X/"$0" |
16719 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16720 /^X\/\(\/\/\)$/{ s//\1/; q; }
16721 /^X\/\(\/\).*/{ s//\1/; q; }
16722 s/.*/./; q'`
16725 # PATH needs CR, and LINENO needs CR and PATH.
16726 # Avoid depending upon Character Ranges.
16727 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16728 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16729 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16730 as_cr_digits='0123456789'
16731 as_cr_alnum=$as_cr_Letters$as_cr_digits
16733 # The user is always right.
16734 if test "${PATH_SEPARATOR+set}" != set; then
16735 echo "#! /bin/sh" >conf$$.sh
16736 echo "exit 0" >>conf$$.sh
16737 chmod +x conf$$.sh
16738 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16739 PATH_SEPARATOR=';'
16740 else
16741 PATH_SEPARATOR=:
16743 rm -f conf$$.sh
16747 as_lineno_1=$LINENO
16748 as_lineno_2=$LINENO
16749 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16750 test "x$as_lineno_1" != "x$as_lineno_2" &&
16751 test "x$as_lineno_3" = "x$as_lineno_2" || {
16752 # Find who we are. Look in the path if we contain no path at all
16753 # relative or not.
16754 case $0 in
16755 *[\\/]* ) as_myself=$0 ;;
16756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16757 for as_dir in $PATH
16759 IFS=$as_save_IFS
16760 test -z "$as_dir" && as_dir=.
16761 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16762 done
16765 esac
16766 # We did not find ourselves, most probably we were run as `sh COMMAND'
16767 # in which case we are not to be found in the path.
16768 if test "x$as_myself" = x; then
16769 as_myself=$0
16771 if test ! -f "$as_myself"; then
16772 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16773 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16774 { (exit 1); exit 1; }; }
16776 case $CONFIG_SHELL in
16778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16779 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16781 IFS=$as_save_IFS
16782 test -z "$as_dir" && as_dir=.
16783 for as_base in sh bash ksh sh5; do
16784 case $as_dir in
16786 if ("$as_dir/$as_base" -c '
16787 as_lineno_1=$LINENO
16788 as_lineno_2=$LINENO
16789 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16790 test "x$as_lineno_1" != "x$as_lineno_2" &&
16791 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16792 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16793 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16794 CONFIG_SHELL=$as_dir/$as_base
16795 export CONFIG_SHELL
16796 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16797 fi;;
16798 esac
16799 done
16800 done
16802 esac
16804 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16805 # uniformly replaced by the line number. The first 'sed' inserts a
16806 # line-number line before each line; the second 'sed' does the real
16807 # work. The second script uses 'N' to pair each line-number line
16808 # with the numbered line, and appends trailing '-' during
16809 # substitution so that $LINENO is not a special case at line end.
16810 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16811 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16812 sed '=' <$as_myself |
16813 sed '
16815 s,$,-,
16816 : loop
16817 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16818 t loop
16819 s,-$,,
16820 s,^['$as_cr_digits']*\n,,
16821 ' >$as_me.lineno &&
16822 chmod +x $as_me.lineno ||
16823 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16824 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16825 { (exit 1); exit 1; }; }
16827 # Don't try to exec as it changes $[0], causing all sort of problems
16828 # (the dirname of $[0] is not the place where we might find the
16829 # original and so on. Autoconf is especially sensible to this).
16830 . ./$as_me.lineno
16831 # Exit status is that of the last command.
16832 exit
16836 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16837 *c*,-n*) ECHO_N= ECHO_C='
16838 ' ECHO_T=' ' ;;
16839 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16840 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16841 esac
16843 if expr a : '\(a\)' >/dev/null 2>&1; then
16844 as_expr=expr
16845 else
16846 as_expr=false
16849 rm -f conf$$ conf$$.exe conf$$.file
16850 echo >conf$$.file
16851 if ln -s conf$$.file conf$$ 2>/dev/null; then
16852 # We could just check for DJGPP; but this test a) works b) is more generic
16853 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16854 if test -f conf$$.exe; then
16855 # Don't use ln at all; we don't have any links
16856 as_ln_s='cp -p'
16857 else
16858 as_ln_s='ln -s'
16860 elif ln conf$$.file conf$$ 2>/dev/null; then
16861 as_ln_s=ln
16862 else
16863 as_ln_s='cp -p'
16865 rm -f conf$$ conf$$.exe conf$$.file
16867 if mkdir -p . 2>/dev/null; then
16868 as_mkdir_p=:
16869 else
16870 test -d ./-p && rmdir ./-p
16871 as_mkdir_p=false
16874 as_executable_p="test -f"
16876 # Sed expression to map a string onto a valid CPP name.
16877 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16879 # Sed expression to map a string onto a valid variable name.
16880 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16883 # IFS
16884 # We need space, tab and new line, in precisely that order.
16885 as_nl='
16887 IFS=" $as_nl"
16889 # CDPATH.
16890 $as_unset CDPATH
16892 exec 6>&1
16894 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16895 # report actual input values of CONFIG_FILES etc. instead of their
16896 # values after options handling. Logging --version etc. is OK.
16897 exec 5>>config.log
16899 echo
16900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16901 ## Running $as_me. ##
16902 _ASBOX
16903 } >&5
16904 cat >&5 <<_CSEOF
16906 This file was extended by $as_me, which was
16907 generated by GNU Autoconf 2.59. Invocation command line was
16909 CONFIG_FILES = $CONFIG_FILES
16910 CONFIG_HEADERS = $CONFIG_HEADERS
16911 CONFIG_LINKS = $CONFIG_LINKS
16912 CONFIG_COMMANDS = $CONFIG_COMMANDS
16913 $ $0 $@
16915 _CSEOF
16916 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16917 echo >&5
16918 _ACEOF
16920 # Files that config.status was made for.
16921 if test -n "$ac_config_files"; then
16922 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16925 if test -n "$ac_config_headers"; then
16926 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16929 if test -n "$ac_config_links"; then
16930 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16933 if test -n "$ac_config_commands"; then
16934 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16937 cat >>$CONFIG_STATUS <<\_ACEOF
16939 ac_cs_usage="\
16940 \`$as_me' instantiates files from templates according to the
16941 current configuration.
16943 Usage: $0 [OPTIONS] [FILE]...
16945 -h, --help print this help, then exit
16946 -V, --version print version number, then exit
16947 -q, --quiet do not print progress messages
16948 -d, --debug don't remove temporary files
16949 --recheck update $as_me by reconfiguring in the same conditions
16950 --file=FILE[:TEMPLATE]
16951 instantiate the configuration file FILE
16952 --header=FILE[:TEMPLATE]
16953 instantiate the configuration header FILE
16955 Configuration files:
16956 $config_files
16958 Configuration headers:
16959 $config_headers
16961 Configuration commands:
16962 $config_commands
16964 Report bugs to <bug-autoconf@gnu.org>."
16965 _ACEOF
16967 cat >>$CONFIG_STATUS <<_ACEOF
16968 ac_cs_version="\\
16969 config.status
16970 configured by $0, generated by GNU Autoconf 2.59,
16971 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16973 Copyright (C) 2003 Free Software Foundation, Inc.
16974 This config.status script is free software; the Free Software Foundation
16975 gives unlimited permission to copy, distribute and modify it."
16976 srcdir=$srcdir
16977 _ACEOF
16979 cat >>$CONFIG_STATUS <<\_ACEOF
16980 # If no file are specified by the user, then we need to provide default
16981 # value. By we need to know if files were specified by the user.
16982 ac_need_defaults=:
16983 while test $# != 0
16985 case $1 in
16986 --*=*)
16987 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16988 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16989 ac_shift=:
16992 ac_option=$1
16993 ac_optarg=$2
16994 ac_shift=shift
16996 *) # This is not an option, so the user has probably given explicit
16997 # arguments.
16998 ac_option=$1
16999 ac_need_defaults=false;;
17000 esac
17002 case $ac_option in
17003 # Handling of the options.
17004 _ACEOF
17005 cat >>$CONFIG_STATUS <<\_ACEOF
17006 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17007 ac_cs_recheck=: ;;
17008 --version | --vers* | -V )
17009 echo "$ac_cs_version"; exit 0 ;;
17010 --he | --h)
17011 # Conflict between --help and --header
17012 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17013 Try \`$0 --help' for more information." >&5
17014 echo "$as_me: error: ambiguous option: $1
17015 Try \`$0 --help' for more information." >&2;}
17016 { (exit 1); exit 1; }; };;
17017 --help | --hel | -h )
17018 echo "$ac_cs_usage"; exit 0 ;;
17019 --debug | --d* | -d )
17020 debug=: ;;
17021 --file | --fil | --fi | --f )
17022 $ac_shift
17023 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17024 ac_need_defaults=false;;
17025 --header | --heade | --head | --hea )
17026 $ac_shift
17027 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17028 ac_need_defaults=false;;
17029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17030 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17031 ac_cs_silent=: ;;
17033 # This is an error.
17034 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17035 Try \`$0 --help' for more information." >&5
17036 echo "$as_me: error: unrecognized option: $1
17037 Try \`$0 --help' for more information." >&2;}
17038 { (exit 1); exit 1; }; } ;;
17040 *) ac_config_targets="$ac_config_targets $1" ;;
17042 esac
17043 shift
17044 done
17046 ac_configure_extra_args=
17048 if $ac_cs_silent; then
17049 exec 6>/dev/null
17050 ac_configure_extra_args="$ac_configure_extra_args --silent"
17053 _ACEOF
17054 cat >>$CONFIG_STATUS <<_ACEOF
17055 if \$ac_cs_recheck; then
17056 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17057 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17060 _ACEOF
17062 cat >>$CONFIG_STATUS <<_ACEOF
17064 # INIT-COMMANDS section.
17067 subdirs='$subdirs'
17069 _ACEOF
17073 cat >>$CONFIG_STATUS <<\_ACEOF
17074 for ac_config_target in $ac_config_targets
17076 case "$ac_config_target" in
17077 # Handling of arguments.
17078 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17079 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17080 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17081 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17082 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17083 { (exit 1); exit 1; }; };;
17084 esac
17085 done
17087 # If the user did not use the arguments to specify the items to instantiate,
17088 # then the envvar interface is used. Set only those that are not.
17089 # We use the long form for the default assignment because of an extremely
17090 # bizarre bug on SunOS 4.1.3.
17091 if $ac_need_defaults; then
17092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17094 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17097 # Have a temporary directory for convenience. Make it in the build tree
17098 # simply because there is no reason to put it here, and in addition,
17099 # creating and moving files from /tmp can sometimes cause problems.
17100 # Create a temporary directory, and hook for its removal unless debugging.
17101 $debug ||
17103 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17104 trap '{ (exit 1); exit 1; }' 1 2 13 15
17107 # Create a (secure) tmp directory for tmp files.
17110 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17111 test -n "$tmp" && test -d "$tmp"
17112 } ||
17114 tmp=./confstat$$-$RANDOM
17115 (umask 077 && mkdir $tmp)
17116 } ||
17118 echo "$me: cannot create a temporary directory in ." >&2
17119 { (exit 1); exit 1; }
17122 _ACEOF
17124 cat >>$CONFIG_STATUS <<_ACEOF
17127 # CONFIG_FILES section.
17130 # No need to generate the scripts if there are no CONFIG_FILES.
17131 # This happens for instance when ./config.status config.h
17132 if test -n "\$CONFIG_FILES"; then
17133 # Protect against being on the right side of a sed subst in config.status.
17134 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17135 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17136 s,@SHELL@,$SHELL,;t t
17137 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17138 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17139 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17140 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17141 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17142 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17143 s,@exec_prefix@,$exec_prefix,;t t
17144 s,@prefix@,$prefix,;t t
17145 s,@program_transform_name@,$program_transform_name,;t t
17146 s,@bindir@,$bindir,;t t
17147 s,@sbindir@,$sbindir,;t t
17148 s,@libexecdir@,$libexecdir,;t t
17149 s,@datadir@,$datadir,;t t
17150 s,@sysconfdir@,$sysconfdir,;t t
17151 s,@sharedstatedir@,$sharedstatedir,;t t
17152 s,@localstatedir@,$localstatedir,;t t
17153 s,@libdir@,$libdir,;t t
17154 s,@includedir@,$includedir,;t t
17155 s,@oldincludedir@,$oldincludedir,;t t
17156 s,@infodir@,$infodir,;t t
17157 s,@mandir@,$mandir,;t t
17158 s,@build_alias@,$build_alias,;t t
17159 s,@host_alias@,$host_alias,;t t
17160 s,@target_alias@,$target_alias,;t t
17161 s,@DEFS@,$DEFS,;t t
17162 s,@ECHO_C@,$ECHO_C,;t t
17163 s,@ECHO_N@,$ECHO_N,;t t
17164 s,@ECHO_T@,$ECHO_T,;t t
17165 s,@LIBS@,$LIBS,;t t
17166 s,@build@,$build,;t t
17167 s,@build_cpu@,$build_cpu,;t t
17168 s,@build_vendor@,$build_vendor,;t t
17169 s,@build_os@,$build_os,;t t
17170 s,@host@,$host,;t t
17171 s,@host_cpu@,$host_cpu,;t t
17172 s,@host_vendor@,$host_vendor,;t t
17173 s,@host_os@,$host_os,;t t
17174 s,@target@,$target,;t t
17175 s,@target_cpu@,$target_cpu,;t t
17176 s,@target_vendor@,$target_vendor,;t t
17177 s,@target_os@,$target_os,;t t
17178 s,@GENINSRC@,$GENINSRC,;t t
17179 s,@CC@,$CC,;t t
17180 s,@CFLAGS@,$CFLAGS,;t t
17181 s,@LDFLAGS@,$LDFLAGS,;t t
17182 s,@CPPFLAGS@,$CPPFLAGS,;t t
17183 s,@ac_ct_CC@,$ac_ct_CC,;t t
17184 s,@EXEEXT@,$EXEEXT,;t t
17185 s,@OBJEXT@,$OBJEXT,;t t
17186 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17187 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17188 s,@CPP@,$CPP,;t t
17189 s,@EGREP@,$EGREP,;t t
17190 s,@strict1_warn@,$strict1_warn,;t t
17191 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17192 s,@warn_cflags@,$warn_cflags,;t t
17193 s,@WERROR@,$WERROR,;t t
17194 s,@nocommon_flag@,$nocommon_flag,;t t
17195 s,@TREEBROWSER@,$TREEBROWSER,;t t
17196 s,@valgrind_path@,$valgrind_path,;t t
17197 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17198 s,@valgrind_command@,$valgrind_command,;t t
17199 s,@coverage_flags@,$coverage_flags,;t t
17200 s,@enable_multilib@,$enable_multilib,;t t
17201 s,@enable_decimal_float@,$enable_decimal_float,;t t
17202 s,@enable_shared@,$enable_shared,;t t
17203 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17204 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17205 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17206 s,@onestep@,$onestep,;t t
17207 s,@datarootdir@,$datarootdir,;t t
17208 s,@docdir@,$docdir,;t t
17209 s,@htmldir@,$htmldir,;t t
17210 s,@SET_MAKE@,$SET_MAKE,;t t
17211 s,@AWK@,$AWK,;t t
17212 s,@LN_S@,$LN_S,;t t
17213 s,@RANLIB@,$RANLIB,;t t
17214 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17215 s,@ranlib_flags@,$ranlib_flags,;t t
17216 s,@INSTALL@,$INSTALL,;t t
17217 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17218 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17219 s,@make_compare_target@,$make_compare_target,;t t
17220 s,@have_mktemp_command@,$have_mktemp_command,;t t
17221 s,@MAKEINFO@,$MAKEINFO,;t t
17222 s,@BUILD_INFO@,$BUILD_INFO,;t t
17223 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17224 s,@FLEX@,$FLEX,;t t
17225 s,@BISON@,$BISON,;t t
17226 s,@NM@,$NM,;t t
17227 s,@AR@,$AR,;t t
17228 s,@stage1_cflags@,$stage1_cflags,;t t
17229 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17230 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17231 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17232 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17233 s,@LIBICONV@,$LIBICONV,;t t
17234 s,@LTLIBICONV@,$LTLIBICONV,;t t
17235 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17236 s,@manext@,$manext,;t t
17237 s,@objext@,$objext,;t t
17238 s,@gthread_flags@,$gthread_flags,;t t
17239 s,@extra_modes_file@,$extra_modes_file,;t t
17240 s,@extra_opt_files@,$extra_opt_files,;t t
17241 s,@build_subdir@,$build_subdir,;t t
17242 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17243 s,@CROSS@,$CROSS,;t t
17244 s,@ALL@,$ALL,;t t
17245 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17246 s,@inhibit_libc@,$inhibit_libc,;t t
17247 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17248 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17249 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17250 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17251 s,@collect2@,$collect2,;t t
17252 s,@gcc_cv_as@,$gcc_cv_as,;t t
17253 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17254 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17255 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17256 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17257 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17258 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17259 s,@libgcc_visibility@,$libgcc_visibility,;t t
17260 s,@GGC@,$GGC,;t t
17261 s,@zlibdir@,$zlibdir,;t t
17262 s,@zlibinc@,$zlibinc,;t t
17263 s,@MAINT@,$MAINT,;t t
17264 s,@gcc_tooldir@,$gcc_tooldir,;t t
17265 s,@dollar@,$dollar,;t t
17266 s,@slibdir@,$slibdir,;t t
17267 s,@objdir@,$objdir,;t t
17268 s,@subdirs@,$subdirs,;t t
17269 s,@srcdir@,$srcdir,;t t
17270 s,@all_boot_languages@,$all_boot_languages,;t t
17271 s,@all_compilers@,$all_compilers,;t t
17272 s,@all_gtfiles@,$all_gtfiles,;t t
17273 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17274 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17275 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17276 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17277 s,@all_languages@,$all_languages,;t t
17278 s,@all_selected_languages@,$all_selected_languages,;t t
17279 s,@all_stagestuff@,$all_stagestuff,;t t
17280 s,@build_exeext@,$build_exeext,;t t
17281 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17282 s,@build_xm_file_list@,$build_xm_file_list,;t t
17283 s,@build_xm_include_list@,$build_xm_include_list,;t t
17284 s,@build_xm_defines@,$build_xm_defines,;t t
17285 s,@check_languages@,$check_languages,;t t
17286 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17287 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17288 s,@cpp_install_dir@,$cpp_install_dir,;t t
17289 s,@xmake_file@,$xmake_file,;t t
17290 s,@tmake_file@,$tmake_file,;t t
17291 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17292 s,@extra_headers_list@,$extra_headers_list,;t t
17293 s,@extra_objs@,$extra_objs,;t t
17294 s,@extra_parts@,$extra_parts,;t t
17295 s,@extra_passes@,$extra_passes,;t t
17296 s,@extra_programs@,$extra_programs,;t t
17297 s,@float_h_file@,$float_h_file,;t t
17298 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17299 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17300 s,@host_exeext@,$host_exeext,;t t
17301 s,@host_xm_file_list@,$host_xm_file_list,;t t
17302 s,@host_xm_include_list@,$host_xm_include_list,;t t
17303 s,@host_xm_defines@,$host_xm_defines,;t t
17304 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17305 s,@install@,$install,;t t
17306 s,@lang_opt_files@,$lang_opt_files,;t t
17307 s,@lang_specs_files@,$lang_specs_files,;t t
17308 s,@lang_tree_files@,$lang_tree_files,;t t
17309 s,@local_prefix@,$local_prefix,;t t
17310 s,@md_file@,$md_file,;t t
17311 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17312 s,@out_file@,$out_file,;t t
17313 s,@out_object_file@,$out_object_file,;t t
17314 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17315 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17316 s,@thread_file@,$thread_file,;t t
17317 s,@tm_file_list@,$tm_file_list,;t t
17318 s,@tm_include_list@,$tm_include_list,;t t
17319 s,@tm_defines@,$tm_defines,;t t
17320 s,@tm_p_file_list@,$tm_p_file_list,;t t
17321 s,@tm_p_include_list@,$tm_p_include_list,;t t
17322 s,@xm_file_list@,$xm_file_list,;t t
17323 s,@xm_include_list@,$xm_include_list,;t t
17324 s,@xm_defines@,$xm_defines,;t t
17325 s,@c_target_objs@,$c_target_objs,;t t
17326 s,@cxx_target_objs@,$cxx_target_objs,;t t
17327 s,@target_cpu_default@,$target_cpu_default,;t t
17328 s,@GMPLIBS@,$GMPLIBS,;t t
17329 s,@GMPINC@,$GMPINC,;t t
17330 s,@LIBOBJS@,$LIBOBJS,;t t
17331 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17332 /@language_hooks@/r $language_hooks
17333 s,@language_hooks@,,;t t
17334 CEOF
17336 _ACEOF
17338 cat >>$CONFIG_STATUS <<\_ACEOF
17339 # Split the substitutions into bite-sized pieces for seds with
17340 # small command number limits, like on Digital OSF/1 and HP-UX.
17341 ac_max_sed_lines=48
17342 ac_sed_frag=1 # Number of current file.
17343 ac_beg=1 # First line for current file.
17344 ac_end=$ac_max_sed_lines # Line after last line for current file.
17345 ac_more_lines=:
17346 ac_sed_cmds=
17347 while $ac_more_lines; do
17348 if test $ac_beg -gt 1; then
17349 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17350 else
17351 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17353 if test ! -s $tmp/subs.frag; then
17354 ac_more_lines=false
17355 else
17356 # The purpose of the label and of the branching condition is to
17357 # speed up the sed processing (if there are no `@' at all, there
17358 # is no need to browse any of the substitutions).
17359 # These are the two extra sed commands mentioned above.
17360 (echo ':t
17361 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17362 if test -z "$ac_sed_cmds"; then
17363 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17364 else
17365 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17367 ac_sed_frag=`expr $ac_sed_frag + 1`
17368 ac_beg=$ac_end
17369 ac_end=`expr $ac_end + $ac_max_sed_lines`
17371 done
17372 if test -z "$ac_sed_cmds"; then
17373 ac_sed_cmds=cat
17375 fi # test -n "$CONFIG_FILES"
17377 _ACEOF
17378 cat >>$CONFIG_STATUS <<\_ACEOF
17379 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17380 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17381 case $ac_file in
17382 - | *:- | *:-:* ) # input from stdin
17383 cat >$tmp/stdin
17384 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17385 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17386 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17387 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17388 * ) ac_file_in=$ac_file.in ;;
17389 esac
17391 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17392 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17393 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17394 X"$ac_file" : 'X\(//\)[^/]' \| \
17395 X"$ac_file" : 'X\(//\)$' \| \
17396 X"$ac_file" : 'X\(/\)' \| \
17397 . : '\(.\)' 2>/dev/null ||
17398 echo X"$ac_file" |
17399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17401 /^X\(\/\/\)$/{ s//\1/; q; }
17402 /^X\(\/\).*/{ s//\1/; q; }
17403 s/.*/./; q'`
17404 { if $as_mkdir_p; then
17405 mkdir -p "$ac_dir"
17406 else
17407 as_dir="$ac_dir"
17408 as_dirs=
17409 while test ! -d "$as_dir"; do
17410 as_dirs="$as_dir $as_dirs"
17411 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17413 X"$as_dir" : 'X\(//\)[^/]' \| \
17414 X"$as_dir" : 'X\(//\)$' \| \
17415 X"$as_dir" : 'X\(/\)' \| \
17416 . : '\(.\)' 2>/dev/null ||
17417 echo X"$as_dir" |
17418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17420 /^X\(\/\/\)$/{ s//\1/; q; }
17421 /^X\(\/\).*/{ s//\1/; q; }
17422 s/.*/./; q'`
17423 done
17424 test ! -n "$as_dirs" || mkdir $as_dirs
17425 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17426 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17427 { (exit 1); exit 1; }; }; }
17429 ac_builddir=.
17431 if test "$ac_dir" != .; then
17432 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17433 # A "../" for each directory in $ac_dir_suffix.
17434 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17435 else
17436 ac_dir_suffix= ac_top_builddir=
17439 case $srcdir in
17440 .) # No --srcdir option. We are building in place.
17441 ac_srcdir=.
17442 if test -z "$ac_top_builddir"; then
17443 ac_top_srcdir=.
17444 else
17445 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17446 fi ;;
17447 [\\/]* | ?:[\\/]* ) # Absolute path.
17448 ac_srcdir=$srcdir$ac_dir_suffix;
17449 ac_top_srcdir=$srcdir ;;
17450 *) # Relative path.
17451 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17452 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17453 esac
17455 # Do not use `cd foo && pwd` to compute absolute paths, because
17456 # the directories may not exist.
17457 case `pwd` in
17458 .) ac_abs_builddir="$ac_dir";;
17460 case "$ac_dir" in
17461 .) ac_abs_builddir=`pwd`;;
17462 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17463 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17464 esac;;
17465 esac
17466 case $ac_abs_builddir in
17467 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17469 case ${ac_top_builddir}. in
17470 .) ac_abs_top_builddir=$ac_abs_builddir;;
17471 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17472 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17473 esac;;
17474 esac
17475 case $ac_abs_builddir in
17476 .) ac_abs_srcdir=$ac_srcdir;;
17478 case $ac_srcdir in
17479 .) ac_abs_srcdir=$ac_abs_builddir;;
17480 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17481 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17482 esac;;
17483 esac
17484 case $ac_abs_builddir in
17485 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17487 case $ac_top_srcdir in
17488 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17489 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17490 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17491 esac;;
17492 esac
17496 if test x"$ac_file" != x-; then
17497 { echo "$as_me:$LINENO: creating $ac_file" >&5
17498 echo "$as_me: creating $ac_file" >&6;}
17499 rm -f "$ac_file"
17501 # Let's still pretend it is `configure' which instantiates (i.e., don't
17502 # use $as_me), people would be surprised to read:
17503 # /* config.h. Generated by config.status. */
17504 if test x"$ac_file" = x-; then
17505 configure_input=
17506 else
17507 configure_input="$ac_file. "
17509 configure_input=$configure_input"Generated from `echo $ac_file_in |
17510 sed 's,.*/,,'` by configure."
17512 # First look for the input files in the build tree, otherwise in the
17513 # src tree.
17514 ac_file_inputs=`IFS=:
17515 for f in $ac_file_in; do
17516 case $f in
17517 -) echo $tmp/stdin ;;
17518 [\\/$]*)
17519 # Absolute (can't be DOS-style, as IFS=:)
17520 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17521 echo "$as_me: error: cannot find input file: $f" >&2;}
17522 { (exit 1); exit 1; }; }
17523 echo "$f";;
17524 *) # Relative
17525 if test -f "$f"; then
17526 # Build tree
17527 echo "$f"
17528 elif test -f "$srcdir/$f"; then
17529 # Source tree
17530 echo "$srcdir/$f"
17531 else
17532 # /dev/null tree
17533 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17534 echo "$as_me: error: cannot find input file: $f" >&2;}
17535 { (exit 1); exit 1; }; }
17536 fi;;
17537 esac
17538 done` || { (exit 1); exit 1; }
17539 _ACEOF
17540 cat >>$CONFIG_STATUS <<_ACEOF
17541 sed "$ac_vpsub
17542 $extrasub
17543 _ACEOF
17544 cat >>$CONFIG_STATUS <<\_ACEOF
17546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17547 s,@configure_input@,$configure_input,;t t
17548 s,@srcdir@,$ac_srcdir,;t t
17549 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17550 s,@top_srcdir@,$ac_top_srcdir,;t t
17551 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17552 s,@builddir@,$ac_builddir,;t t
17553 s,@abs_builddir@,$ac_abs_builddir,;t t
17554 s,@top_builddir@,$ac_top_builddir,;t t
17555 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17556 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17557 rm -f $tmp/stdin
17558 if test x"$ac_file" != x-; then
17559 mv $tmp/out $ac_file
17560 else
17561 cat $tmp/out
17562 rm -f $tmp/out
17565 done
17566 _ACEOF
17567 cat >>$CONFIG_STATUS <<\_ACEOF
17570 # CONFIG_HEADER section.
17573 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17574 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17576 # ac_d sets the value in "#define NAME VALUE" lines.
17577 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17578 ac_dB='[ ].*$,\1#\2'
17579 ac_dC=' '
17580 ac_dD=',;t'
17581 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17582 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17583 ac_uB='$,\1#\2define\3'
17584 ac_uC=' '
17585 ac_uD=',;t'
17587 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17589 case $ac_file in
17590 - | *:- | *:-:* ) # input from stdin
17591 cat >$tmp/stdin
17592 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17594 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17596 * ) ac_file_in=$ac_file.in ;;
17597 esac
17599 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17600 echo "$as_me: creating $ac_file" >&6;}
17602 # First look for the input files in the build tree, otherwise in the
17603 # src tree.
17604 ac_file_inputs=`IFS=:
17605 for f in $ac_file_in; do
17606 case $f in
17607 -) echo $tmp/stdin ;;
17608 [\\/$]*)
17609 # Absolute (can't be DOS-style, as IFS=:)
17610 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17611 echo "$as_me: error: cannot find input file: $f" >&2;}
17612 { (exit 1); exit 1; }; }
17613 # Do quote $f, to prevent DOS paths from being IFS'd.
17614 echo "$f";;
17615 *) # Relative
17616 if test -f "$f"; then
17617 # Build tree
17618 echo "$f"
17619 elif test -f "$srcdir/$f"; then
17620 # Source tree
17621 echo "$srcdir/$f"
17622 else
17623 # /dev/null tree
17624 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17625 echo "$as_me: error: cannot find input file: $f" >&2;}
17626 { (exit 1); exit 1; }; }
17627 fi;;
17628 esac
17629 done` || { (exit 1); exit 1; }
17630 # Remove the trailing spaces.
17631 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17633 _ACEOF
17635 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17636 # `conftest.undefs', that substitutes the proper values into
17637 # config.h.in to produce config.h. The first handles `#define'
17638 # templates, and the second `#undef' templates.
17639 # And first: Protect against being on the right side of a sed subst in
17640 # config.status. Protect against being in an unquoted here document
17641 # in config.status.
17642 rm -f conftest.defines conftest.undefs
17643 # Using a here document instead of a string reduces the quoting nightmare.
17644 # Putting comments in sed scripts is not portable.
17646 # `end' is used to avoid that the second main sed command (meant for
17647 # 0-ary CPP macros) applies to n-ary macro definitions.
17648 # See the Autoconf documentation for `clear'.
17649 cat >confdef2sed.sed <<\_ACEOF
17650 s/[\\&,]/\\&/g
17651 s,[\\$`],\\&,g
17652 t clear
17653 : clear
17654 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17655 t end
17656 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17657 : end
17658 _ACEOF
17659 # If some macros were called several times there might be several times
17660 # the same #defines, which is useless. Nevertheless, we may not want to
17661 # sort them, since we want the *last* AC-DEFINE to be honored.
17662 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17663 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17664 rm -f confdef2sed.sed
17666 # This sed command replaces #undef with comments. This is necessary, for
17667 # example, in the case of _POSIX_SOURCE, which is predefined and required
17668 # on some systems where configure will not decide to define it.
17669 cat >>conftest.undefs <<\_ACEOF
17670 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17671 _ACEOF
17673 # Break up conftest.defines because some shells have a limit on the size
17674 # of here documents, and old seds have small limits too (100 cmds).
17675 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17676 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17677 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17678 echo ' :' >>$CONFIG_STATUS
17679 rm -f conftest.tail
17680 while grep . conftest.defines >/dev/null
17682 # Write a limited-size here document to $tmp/defines.sed.
17683 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17684 # Speed up: don't consider the non `#define' lines.
17685 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17686 # Work around the forget-to-reset-the-flag bug.
17687 echo 't clr' >>$CONFIG_STATUS
17688 echo ': clr' >>$CONFIG_STATUS
17689 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17690 echo 'CEOF
17691 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17692 rm -f $tmp/in
17693 mv $tmp/out $tmp/in
17694 ' >>$CONFIG_STATUS
17695 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17696 rm -f conftest.defines
17697 mv conftest.tail conftest.defines
17698 done
17699 rm -f conftest.defines
17700 echo ' fi # grep' >>$CONFIG_STATUS
17701 echo >>$CONFIG_STATUS
17703 # Break up conftest.undefs because some shells have a limit on the size
17704 # of here documents, and old seds have small limits too (100 cmds).
17705 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17706 rm -f conftest.tail
17707 while grep . conftest.undefs >/dev/null
17709 # Write a limited-size here document to $tmp/undefs.sed.
17710 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17711 # Speed up: don't consider the non `#undef'
17712 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17713 # Work around the forget-to-reset-the-flag bug.
17714 echo 't clr' >>$CONFIG_STATUS
17715 echo ': clr' >>$CONFIG_STATUS
17716 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17717 echo 'CEOF
17718 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17719 rm -f $tmp/in
17720 mv $tmp/out $tmp/in
17721 ' >>$CONFIG_STATUS
17722 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17723 rm -f conftest.undefs
17724 mv conftest.tail conftest.undefs
17725 done
17726 rm -f conftest.undefs
17728 cat >>$CONFIG_STATUS <<\_ACEOF
17729 # Let's still pretend it is `configure' which instantiates (i.e., don't
17730 # use $as_me), people would be surprised to read:
17731 # /* config.h. Generated by config.status. */
17732 if test x"$ac_file" = x-; then
17733 echo "/* Generated by configure. */" >$tmp/config.h
17734 else
17735 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17737 cat $tmp/in >>$tmp/config.h
17738 rm -f $tmp/in
17739 if test x"$ac_file" != x-; then
17740 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17741 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17742 echo "$as_me: $ac_file is unchanged" >&6;}
17743 else
17744 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17746 X"$ac_file" : 'X\(//\)[^/]' \| \
17747 X"$ac_file" : 'X\(//\)$' \| \
17748 X"$ac_file" : 'X\(/\)' \| \
17749 . : '\(.\)' 2>/dev/null ||
17750 echo X"$ac_file" |
17751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17753 /^X\(\/\/\)$/{ s//\1/; q; }
17754 /^X\(\/\).*/{ s//\1/; q; }
17755 s/.*/./; q'`
17756 { if $as_mkdir_p; then
17757 mkdir -p "$ac_dir"
17758 else
17759 as_dir="$ac_dir"
17760 as_dirs=
17761 while test ! -d "$as_dir"; do
17762 as_dirs="$as_dir $as_dirs"
17763 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17765 X"$as_dir" : 'X\(//\)[^/]' \| \
17766 X"$as_dir" : 'X\(//\)$' \| \
17767 X"$as_dir" : 'X\(/\)' \| \
17768 . : '\(.\)' 2>/dev/null ||
17769 echo X"$as_dir" |
17770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17772 /^X\(\/\/\)$/{ s//\1/; q; }
17773 /^X\(\/\).*/{ s//\1/; q; }
17774 s/.*/./; q'`
17775 done
17776 test ! -n "$as_dirs" || mkdir $as_dirs
17777 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17778 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17779 { (exit 1); exit 1; }; }; }
17781 rm -f $ac_file
17782 mv $tmp/config.h $ac_file
17784 else
17785 cat $tmp/config.h
17786 rm -f $tmp/config.h
17788 done
17789 _ACEOF
17790 cat >>$CONFIG_STATUS <<\_ACEOF
17793 # CONFIG_COMMANDS section.
17795 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17796 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17797 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17798 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17799 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17800 X"$ac_dest" : 'X\(//\)[^/]' \| \
17801 X"$ac_dest" : 'X\(//\)$' \| \
17802 X"$ac_dest" : 'X\(/\)' \| \
17803 . : '\(.\)' 2>/dev/null ||
17804 echo X"$ac_dest" |
17805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17807 /^X\(\/\/\)$/{ s//\1/; q; }
17808 /^X\(\/\).*/{ s//\1/; q; }
17809 s/.*/./; q'`
17810 { if $as_mkdir_p; then
17811 mkdir -p "$ac_dir"
17812 else
17813 as_dir="$ac_dir"
17814 as_dirs=
17815 while test ! -d "$as_dir"; do
17816 as_dirs="$as_dir $as_dirs"
17817 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17819 X"$as_dir" : 'X\(//\)[^/]' \| \
17820 X"$as_dir" : 'X\(//\)$' \| \
17821 X"$as_dir" : 'X\(/\)' \| \
17822 . : '\(.\)' 2>/dev/null ||
17823 echo X"$as_dir" |
17824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17826 /^X\(\/\/\)$/{ s//\1/; q; }
17827 /^X\(\/\).*/{ s//\1/; q; }
17828 s/.*/./; q'`
17829 done
17830 test ! -n "$as_dirs" || mkdir $as_dirs
17831 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17832 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17833 { (exit 1); exit 1; }; }; }
17835 ac_builddir=.
17837 if test "$ac_dir" != .; then
17838 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17839 # A "../" for each directory in $ac_dir_suffix.
17840 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17841 else
17842 ac_dir_suffix= ac_top_builddir=
17845 case $srcdir in
17846 .) # No --srcdir option. We are building in place.
17847 ac_srcdir=.
17848 if test -z "$ac_top_builddir"; then
17849 ac_top_srcdir=.
17850 else
17851 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17852 fi ;;
17853 [\\/]* | ?:[\\/]* ) # Absolute path.
17854 ac_srcdir=$srcdir$ac_dir_suffix;
17855 ac_top_srcdir=$srcdir ;;
17856 *) # Relative path.
17857 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17858 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17859 esac
17861 # Do not use `cd foo && pwd` to compute absolute paths, because
17862 # the directories may not exist.
17863 case `pwd` in
17864 .) ac_abs_builddir="$ac_dir";;
17866 case "$ac_dir" in
17867 .) ac_abs_builddir=`pwd`;;
17868 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17869 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17870 esac;;
17871 esac
17872 case $ac_abs_builddir in
17873 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17875 case ${ac_top_builddir}. in
17876 .) ac_abs_top_builddir=$ac_abs_builddir;;
17877 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17878 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17879 esac;;
17880 esac
17881 case $ac_abs_builddir in
17882 .) ac_abs_srcdir=$ac_srcdir;;
17884 case $ac_srcdir in
17885 .) ac_abs_srcdir=$ac_abs_builddir;;
17886 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17887 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17888 esac;;
17889 esac
17890 case $ac_abs_builddir in
17891 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17893 case $ac_top_srcdir in
17894 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17895 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17896 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17897 esac;;
17898 esac
17901 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17902 echo "$as_me: executing $ac_dest commands" >&6;}
17903 case $ac_dest in
17904 default )
17905 case ${CONFIG_HEADERS} in
17906 *auto-host.h:config.in*)
17907 echo > cstamp-h ;;
17908 esac
17909 # Make sure all the subdirs exist.
17910 for d in $subdirs doc build
17912 test -d $d || mkdir $d
17913 done
17914 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17915 # bootstrapping and the installation procedure can still use
17916 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17917 # FLAGS_TO_PASS has been modified to solve the problem there.
17918 # This is virtually a duplicate of what happens in configure.lang; we do
17919 # an extra check to make sure this only happens if ln -s can be used.
17920 case "$LN_S" in
17921 *-s*)
17922 for d in ${subdirs} ; do
17923 STARTDIR=`${PWDCMD-pwd}`
17924 cd $d
17925 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17927 rm -f $t
17928 $LN_S ../$t $t 2>/dev/null
17929 done
17930 cd $STARTDIR
17931 done
17933 esac
17935 esac
17936 done
17937 _ACEOF
17939 cat >>$CONFIG_STATUS <<\_ACEOF
17941 { (exit 0); exit 0; }
17942 _ACEOF
17943 chmod +x $CONFIG_STATUS
17944 ac_clean_files=$ac_clean_files_save
17947 # configure is writing to config.log, and then calls config.status.
17948 # config.status does its own redirection, appending to config.log.
17949 # Unfortunately, on DOS this fails, as config.log is still kept open
17950 # by configure, so config.status won't be able to write to it; its
17951 # output is simply discarded. So we exec the FD to /dev/null,
17952 # effectively closing config.log, so it can be properly (re)opened and
17953 # appended to by config.status. When coming back to configure, we
17954 # need to make the FD available again.
17955 if test "$no_create" != yes; then
17956 ac_cs_success=:
17957 ac_config_status_args=
17958 test "$silent" = yes &&
17959 ac_config_status_args="$ac_config_status_args --quiet"
17960 exec 5>/dev/null
17961 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17962 exec 5>>config.log
17963 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17964 # would make configure fail if this is the last instruction.
17965 $ac_cs_success || { (exit 1); exit 1; }