* tree-ssa-dom.c (vrp_element_p): Define.
[official-gcc.git] / gcc / configure
blob9f7dba7c491fdf73f1491666b2db2977429ee13f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir 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-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-objc-gc enable the use of Boehm's garbage collector with
886 the GNU Objective-C runtime
887 --disable-shared don't provide a shared libgcc
888 --enable-intermodule build the compiler in one step
889 --enable-languages=LIST specify which front-ends to build
890 --disable-rpath do not hardcode runtime library paths
891 --enable-initfini-array use .init_array/.fini_array sections
892 --enable-sjlj-exceptions
893 arrange to use setjmp/longjmp exception handling
894 --disable-win32-registry
895 disable lookup of installation paths in the
896 Registry on Windows hosts
897 --enable-win32-registry enable registry lookup (default)
898 --enable-win32-registry=KEY
899 use KEY instead of GCC version as the last portion
900 of the registry key
901 --enable-maintainer-mode
902 enable make rules and dependencies not useful
903 (and sometimes confusing) to the casual installer
904 --enable-version-specific-runtime-libs
905 specify that runtime libraries should be
906 installed in a compiler-specific directory
908 Optional Packages:
909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
911 --with-local-prefix=DIR specifies directory to put local include
912 --with-gxx-include-dir=DIR
913 specifies directory to put g++ header files
914 --with-cpp-install-dir=DIR
915 install the user visible C preprocessor in DIR
916 (relative to PREFIX) as well as PREFIX/bin
917 --with-gnu-ld arrange to work with GNU ld.
918 --with-ld arrange to use the specified ld (full pathname)
919 --with-demangler-in-ld try to use demangler in GNU ld.
920 --with-gnu-as arrange to work with GNU as
921 --with-as arrange to use the specified as (full pathname)
922 --with-stabs arrange to use stabs instead of host debug format
923 --with-dwarf2 force the default debug format to be DWARF 2
924 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
925 --with-gnu-ld assume the C compiler uses GNU ld default=no
926 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
927 --without-libiconv-prefix don't search for libiconv in includedir and libdir
928 --with-system-libunwind use installed libunwind
929 --with-gc={page,zone} choose the garbage collection mechanism to use
930 with the compiler
931 --with-system-zlib use installed libz
932 --with-slibdir=DIR shared libraries in DIR LIBDIR
934 Some influential environment variables:
935 CC C compiler command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
938 nonstandard directory <lib dir>
939 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
940 headers in a nonstandard directory <include dir>
941 CPP C preprocessor
942 GMPLIBS How to link GMP
943 GMPINC How to find GMP include files
945 Use these variables to override the choices made by `configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
948 _ACEOF
951 if test "$ac_init_help" = "recursive"; then
952 # If there are subdirs, report their specific --help.
953 ac_popdir=`pwd`
954 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955 test -d $ac_dir || continue
956 ac_builddir=.
958 if test "$ac_dir" != .; then
959 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
960 # A "../" for each directory in $ac_dir_suffix.
961 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
962 else
963 ac_dir_suffix= ac_top_builddir=
966 case $srcdir in
967 .) # No --srcdir option. We are building in place.
968 ac_srcdir=.
969 if test -z "$ac_top_builddir"; then
970 ac_top_srcdir=.
971 else
972 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
973 fi ;;
974 [\\/]* | ?:[\\/]* ) # Absolute path.
975 ac_srcdir=$srcdir$ac_dir_suffix;
976 ac_top_srcdir=$srcdir ;;
977 *) # Relative path.
978 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979 ac_top_srcdir=$ac_top_builddir$srcdir ;;
980 esac
982 # Do not use `cd foo && pwd` to compute absolute paths, because
983 # the directories may not exist.
984 case `pwd` in
985 .) ac_abs_builddir="$ac_dir";;
987 case "$ac_dir" in
988 .) ac_abs_builddir=`pwd`;;
989 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990 *) ac_abs_builddir=`pwd`/"$ac_dir";;
991 esac;;
992 esac
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
996 case ${ac_top_builddir}. in
997 .) ac_abs_top_builddir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1000 esac;;
1001 esac
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1005 case $ac_srcdir in
1006 .) ac_abs_srcdir=$ac_abs_builddir;;
1007 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1009 esac;;
1010 esac
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 case $ac_top_srcdir in
1015 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1018 esac;;
1019 esac
1021 cd $ac_dir
1022 # Check for guested configure; otherwise get Cygnus style configure.
1023 if test -f $ac_srcdir/configure.gnu; then
1024 echo
1025 $SHELL $ac_srcdir/configure.gnu --help=recursive
1026 elif test -f $ac_srcdir/configure; then
1027 echo
1028 $SHELL $ac_srcdir/configure --help=recursive
1029 elif test -f $ac_srcdir/configure.ac ||
1030 test -f $ac_srcdir/configure.in; then
1031 echo
1032 $ac_configure --help
1033 else
1034 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1036 cd $ac_popdir
1037 done
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1042 cat <<\_ACEOF
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1047 _ACEOF
1048 exit 0
1050 exec 5>config.log
1051 cat >&5 <<_ACEOF
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59. Invocation command line was
1058 $ $0 $@
1060 _ACEOF
1062 cat <<_ASUNAME
1063 ## --------- ##
1064 ## Platform. ##
1065 ## --------- ##
1067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1079 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1084 _ASUNAME
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 for as_dir in $PATH
1089 IFS=$as_save_IFS
1090 test -z "$as_dir" && as_dir=.
1091 echo "PATH: $as_dir"
1092 done
1094 } >&5
1096 cat >&5 <<_ACEOF
1099 ## ----------- ##
1100 ## Core tests. ##
1101 ## ----------- ##
1103 _ACEOF
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1111 ac_configure_args=
1112 ac_configure_args0=
1113 ac_configure_args1=
1114 ac_sep=
1115 ac_must_keep_next=false
1116 for ac_pass in 1 2
1118 for ac_arg
1120 case $ac_arg in
1121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 continue ;;
1125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1127 esac
1128 case $ac_pass in
1129 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132 if test $ac_must_keep_next = true; then
1133 ac_must_keep_next=false # Got value, back to normal.
1134 else
1135 case $ac_arg in
1136 *=* | --config-cache | -C | -disable-* | --disable-* \
1137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139 | -with-* | --with-* | -without-* | --without-* | --x)
1140 case "$ac_configure_args0 " in
1141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1142 esac
1144 -* ) ac_must_keep_next=true ;;
1145 esac
1147 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148 # Get rid of the leading space.
1149 ac_sep=" "
1151 esac
1152 done
1153 done
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log. We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close' the trap.
1162 trap 'exit_status=$?
1163 # Save into config.log some information that might help in debugging.
1165 echo
1167 cat <<\_ASBOX
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1171 _ASBOX
1172 echo
1173 # The following way of writing the cache mishandles newlines in values,
1175 (set) 2>&1 |
1176 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1177 *ac_space=\ *)
1178 sed -n \
1179 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183 sed -n \
1184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1186 esac;
1188 echo
1190 cat <<\_ASBOX
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1194 _ASBOX
1195 echo
1196 for ac_var in $ac_subst_vars
1198 eval ac_val=$`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1200 done | sort
1201 echo
1203 if test -n "$ac_subst_files"; then
1204 cat <<\_ASBOX
1205 ## ------------- ##
1206 ## Output files. ##
1207 ## ------------- ##
1208 _ASBOX
1209 echo
1210 for ac_var in $ac_subst_files
1212 eval ac_val=$`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1214 done | sort
1215 echo
1218 if test -s confdefs.h; then
1219 cat <<\_ASBOX
1220 ## ----------- ##
1221 ## confdefs.h. ##
1222 ## ----------- ##
1223 _ASBOX
1224 echo
1225 sed "/^$/d" confdefs.h | sort
1226 echo
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1231 } >&5
1232 rm -f core *.core &&
1233 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1234 exit $exit_status
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 done
1239 ac_signal=0
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1244 echo >confdefs.h
1246 # Predefined preprocessor variables.
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 _ACEOF
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 _ACEOF
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 _ACEOF
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 _ACEOF
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 _ACEOF
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 else
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's/^/| /' "$ac_site_file" >&5
1287 . "$ac_site_file"
1289 done
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1297 case $cache_file in
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1300 esac
1302 else
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1305 >$cache_file
1308 # Check that the precious variables saved in the cache have kept the same
1309 # value.
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1318 set,)
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1322 ,set)
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1326 ,);;
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1336 fi;;
1337 esac
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1340 case $ac_new_val in
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1344 esac
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348 esac
1350 done
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1359 ac_ext=c
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1384 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1387 # Determine the host, build, and target systems
1388 ac_aux_dir=
1389 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1390 if test -f $ac_dir/install-sh; then
1391 ac_aux_dir=$ac_dir
1392 ac_install_sh="$ac_aux_dir/install-sh -c"
1393 break
1394 elif test -f $ac_dir/install.sh; then
1395 ac_aux_dir=$ac_dir
1396 ac_install_sh="$ac_aux_dir/install.sh -c"
1397 break
1398 elif test -f $ac_dir/shtool; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/shtool install -c"
1401 break
1403 done
1404 if test -z "$ac_aux_dir"; then
1405 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1407 { (exit 1); exit 1; }; }
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413 # Make sure we can run config.sub.
1414 $ac_config_sub sun4 >/dev/null 2>&1 ||
1415 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1416 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1417 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: checking build system type" >&5
1420 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1421 if test "${ac_cv_build+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424 ac_cv_build_alias=$build_alias
1425 test -z "$ac_cv_build_alias" &&
1426 ac_cv_build_alias=`$ac_config_guess`
1427 test -z "$ac_cv_build_alias" &&
1428 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1429 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1430 { (exit 1); exit 1; }; }
1431 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1432 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1433 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1434 { (exit 1); exit 1; }; }
1437 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1438 echo "${ECHO_T}$ac_cv_build" >&6
1439 build=$ac_cv_build
1440 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1441 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1442 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445 echo "$as_me:$LINENO: checking host system type" >&5
1446 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1447 if test "${ac_cv_host+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450 ac_cv_host_alias=$host_alias
1451 test -z "$ac_cv_host_alias" &&
1452 ac_cv_host_alias=$ac_cv_build_alias
1453 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1455 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1456 { (exit 1); exit 1; }; }
1459 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1460 echo "${ECHO_T}$ac_cv_host" >&6
1461 host=$ac_cv_host
1462 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1463 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1464 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467 echo "$as_me:$LINENO: checking target system type" >&5
1468 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1469 if test "${ac_cv_target+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 else
1472 ac_cv_target_alias=$target_alias
1473 test "x$ac_cv_target_alias" = "x" &&
1474 ac_cv_target_alias=$ac_cv_host_alias
1475 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1478 { (exit 1); exit 1; }; }
1481 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1482 echo "${ECHO_T}$ac_cv_target" >&6
1483 target=$ac_cv_target
1484 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489 # The aliases save the names the user supplied, while $host etc.
1490 # will get canonicalized.
1491 test -n "$target_alias" &&
1492 test "$program_prefix$program_suffix$program_transform_name" = \
1493 NONENONEs,x,x, &&
1494 program_prefix=${target_alias}-
1496 # Determine the noncanonical target name, for directory use.
1497 case ${build_alias} in
1498 "") build_noncanonical=${build} ;;
1499 *) build_noncanonical=${build_alias} ;;
1500 esac
1502 case ${host_alias} in
1503 "") host_noncanonical=${build_noncanonical} ;;
1504 *) host_noncanonical=${host_alias} ;;
1505 esac
1507 case ${target_alias} in
1508 "") target_noncanonical=${host_noncanonical} ;;
1509 *) target_noncanonical=${target_alias} ;;
1510 esac
1515 # Determine the target- and build-specific subdirectories
1516 # Prefix 'build-' so this never conflicts with target_subdir.
1517 build_subdir="build-${build_noncanonical}"
1518 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1519 if ( test $srcdir = . && test -d gcc ) \
1520 || test -d $srcdir/../host-${host_noncanonical}; then
1521 host_subdir="host-${host_noncanonical}"
1522 else
1523 host_subdir=.
1525 # No prefix.
1526 target_subdir=${target_noncanonical}
1529 # Set program_transform_name
1530 test "$program_prefix" != NONE &&
1531 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1532 # Use a double $ so make ignores it.
1533 test "$program_suffix" != NONE &&
1534 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1535 # Double any \ or $. echo might interpret backslashes.
1536 # By default was `s,x,x', remove it if useless.
1537 cat <<\_ACEOF >conftest.sed
1538 s/[\\$]/&&/g;s/;s,x,x,$//
1539 _ACEOF
1540 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1541 rm conftest.sed
1544 # Check for bogus environment variables.
1545 # Test if LIBRARY_PATH contains the notation for the current directory
1546 # since this would lead to problems installing/building glibc.
1547 # LIBRARY_PATH contains the current directory if one of the following
1548 # is true:
1549 # - one of the terminals (":" and ";") is the first or last sign
1550 # - two terminals occur directly after each other
1551 # - the path contains an element with a dot in it
1552 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1553 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1554 case ${LIBRARY_PATH} in
1555 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1556 library_path_setting="contains current directory"
1559 library_path_setting="ok"
1561 esac
1562 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1563 echo "${ECHO_T}$library_path_setting" >&6
1564 if test "$library_path_setting" != "ok"; then
1565 { { echo "$as_me:$LINENO: error:
1566 *** LIBRARY_PATH shouldn't contain the current directory when
1567 *** building gcc. Please change the environment variable
1568 *** and run configure again." >&5
1569 echo "$as_me: error:
1570 *** LIBRARY_PATH shouldn't contain the current directory when
1571 *** building gcc. Please change the environment variable
1572 *** and run configure again." >&2;}
1573 { (exit 1); exit 1; }; }
1576 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1577 # since this would lead to problems installing/building glibc.
1578 # GCC_EXEC_PREFIX contains the current directory if one of the following
1579 # is true:
1580 # - one of the terminals (":" and ";") is the first or last sign
1581 # - two terminals occur directly after each other
1582 # - the path contains an element with a dot in it
1583 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1584 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1585 case ${GCC_EXEC_PREFIX} in
1586 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1587 gcc_exec_prefix_setting="contains current directory"
1590 gcc_exec_prefix_setting="ok"
1592 esac
1593 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1594 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1595 if test "$gcc_exec_prefix_setting" != "ok"; then
1596 { { echo "$as_me:$LINENO: error:
1597 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1598 *** building gcc. Please change the environment variable
1599 *** and run configure again." >&5
1600 echo "$as_me: error:
1601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&2;}
1604 { (exit 1); exit 1; }; }
1607 # -----------
1608 # Directories
1609 # -----------
1611 # Specify the local prefix
1612 local_prefix=
1614 # Check whether --with-local-prefix or --without-local-prefix was given.
1615 if test "${with_local_prefix+set}" = set; then
1616 withval="$with_local_prefix"
1617 case "${withval}" in
1618 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1619 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1620 { (exit 1); exit 1; }; } ;;
1621 no) ;;
1622 *) local_prefix=$with_local_prefix ;;
1623 esac
1626 # Default local prefix if it is empty
1627 if test x$local_prefix = x; then
1628 local_prefix=/usr/local
1631 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1632 # passed in by the toplevel make and thus we'd get different behavior
1633 # depending on where we built the sources.
1634 gcc_gxx_include_dir=
1635 # Specify the g++ header file directory
1637 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1638 if test "${with_gxx_include_dir+set}" = set; then
1639 withval="$with_gxx_include_dir"
1640 case "${withval}" in
1641 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1642 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1643 { (exit 1); exit 1; }; } ;;
1644 no) ;;
1645 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1646 esac
1649 if test x${gcc_gxx_include_dir} = x; then
1650 if test x${enable_version_specific_runtime_libs} = xyes; then
1651 gcc_gxx_include_dir='${libsubdir}/include/c++'
1652 else
1653 libstdcxx_incdir='c++/$(version)'
1654 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1659 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1660 if test "${with_cpp_install_dir+set}" = set; then
1661 withval="$with_cpp_install_dir"
1662 if test x$withval = xyes; then
1663 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1664 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1665 { (exit 1); exit 1; }; }
1666 elif test x$withval != xno; then
1667 cpp_install_dir=$withval
1671 # We would like to our source tree to be readonly. However when releases or
1672 # pre-releases are generated, the flex/bison generated files as well as the
1673 # various formats of manuals need to be included along with the rest of the
1674 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1675 # just that.
1677 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1678 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1679 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1680 if test "${enable_generated_files_in_srcdir+set}" = set; then
1681 enableval="$enable_generated_files_in_srcdir"
1682 generated_files_in_srcdir=$enableval
1683 else
1684 generated_files_in_srcdir=no
1687 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1688 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1690 if test "$generated_files_in_srcdir" = "yes"; then
1691 GENINSRC=''
1692 else
1693 GENINSRC='#'
1697 # -------------------
1698 # Find default linker
1699 # -------------------
1701 # With GNU ld
1703 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1704 if test "${with_gnu_ld+set}" = set; then
1705 withval="$with_gnu_ld"
1706 gnu_ld_flag="$with_gnu_ld"
1707 else
1708 gnu_ld_flag=no
1711 # With pre-defined ld
1713 # Check whether --with-ld or --without-ld was given.
1714 if test "${with_ld+set}" = set; then
1715 withval="$with_ld"
1716 DEFAULT_LINKER="$with_ld"
1718 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1719 if test ! -x "$DEFAULT_LINKER"; then
1720 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1721 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1722 { (exit 1); exit 1; }; }
1723 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1724 gnu_ld_flag=yes
1727 cat >>confdefs.h <<_ACEOF
1728 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1729 _ACEOF
1733 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1734 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1735 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1736 if test x"$gnu_ld_flag" = x"no"; then
1737 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1738 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1739 else
1740 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1741 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1743 else
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1748 # With demangler in GNU ld
1750 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1751 if test "${with_demangler_in_ld+set}" = set; then
1752 withval="$with_demangler_in_ld"
1753 demangler_in_ld="$with_demangler_in_ld"
1754 else
1755 demangler_in_ld=no
1758 # ----------------------
1759 # Find default assembler
1760 # ----------------------
1762 # With GNU as
1764 # Check whether --with-gnu-as or --without-gnu-as was given.
1765 if test "${with_gnu_as+set}" = set; then
1766 withval="$with_gnu_as"
1767 gas_flag="$with_gnu_as"
1768 else
1769 gas_flag=no
1773 # Check whether --with-as or --without-as was given.
1774 if test "${with_as+set}" = set; then
1775 withval="$with_as"
1776 DEFAULT_ASSEMBLER="$with_as"
1778 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1779 if test ! -x "$DEFAULT_ASSEMBLER"; then
1780 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1781 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1782 { (exit 1); exit 1; }; }
1783 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1784 gas_flag=yes
1787 cat >>confdefs.h <<_ACEOF
1788 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1789 _ACEOF
1793 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1794 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1795 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1796 if test x"$gas_flag" = x"no"; then
1797 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1798 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1799 else
1800 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1801 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1808 # ---------------
1809 # Find C compiler
1810 # ---------------
1812 # If a non-executable a.out is present (e.g. created by GNU as above even if
1813 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1814 # file, even when creating an executable, so an execution test fails.
1815 # Remove possible default executable files to avoid this.
1817 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1818 # Autoconf includes it.
1819 rm -f a.out a.exe b.out
1821 # Find the native compiler
1822 ac_ext=c
1823 ac_cpp='$CPP $CPPFLAGS'
1824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1827 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1829 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1849 done
1850 done
1854 CC=$ac_cv_prog_CC
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1864 if test -z "$ac_cv_prog_CC"; then
1865 ac_ct_CC=$CC
1866 # Extract the first word of "gcc", so it can be a program name with args.
1867 set dummy gcc; ac_word=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875 else
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC="gcc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1887 done
1888 done
1892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893 if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895 echo "${ECHO_T}$ac_ct_CC" >&6
1896 else
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1901 CC=$ac_ct_CC
1902 else
1903 CC="$ac_cv_prog_CC"
1906 if test -z "$CC"; then
1907 if test -n "$ac_tool_prefix"; then
1908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1909 set dummy ${ac_tool_prefix}cc; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 else
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_CC="${ac_tool_prefix}cc"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 break 2
1929 done
1930 done
1934 CC=$ac_cv_prog_CC
1935 if test -n "$CC"; then
1936 echo "$as_me:$LINENO: result: $CC" >&5
1937 echo "${ECHO_T}$CC" >&6
1938 else
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1944 if test -z "$ac_cv_prog_CC"; then
1945 ac_ct_CC=$CC
1946 # Extract the first word of "cc", so it can be a program name with args.
1947 set dummy cc; ac_word=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953 if test -n "$ac_ct_CC"; then
1954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1955 else
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_ac_ct_CC="cc"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1967 done
1968 done
1972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1973 if test -n "$ac_ct_CC"; then
1974 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1975 echo "${ECHO_T}$ac_ct_CC" >&6
1976 else
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1981 CC=$ac_ct_CC
1982 else
1983 CC="$ac_cv_prog_CC"
1987 if test -z "$CC"; then
1988 # Extract the first word of "cc", so it can be a program name with args.
1989 set dummy cc; ac_word=$2
1990 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995 if test -n "$CC"; then
1996 ac_cv_prog_CC="$CC" # Let the user override the test.
1997 else
1998 ac_prog_rejected=no
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2007 ac_prog_rejected=yes
2008 continue
2010 ac_cv_prog_CC="cc"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 break 2
2014 done
2015 done
2017 if test $ac_prog_rejected = yes; then
2018 # We found a bogon in the path, so make sure we never use it.
2019 set dummy $ac_cv_prog_CC
2020 shift
2021 if test $# != 0; then
2022 # We chose a different compiler from the bogus one.
2023 # However, it has the same basename, so the bogon will be chosen
2024 # first if we set CC to just the basename; use the full file name.
2025 shift
2026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2031 CC=$ac_cv_prog_CC
2032 if test -n "$CC"; then
2033 echo "$as_me:$LINENO: result: $CC" >&5
2034 echo "${ECHO_T}$CC" >&6
2035 else
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2041 if test -z "$CC"; then
2042 if test -n "$ac_tool_prefix"; then
2043 for ac_prog in cl
2045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2058 IFS=$as_save_IFS
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 break 2
2066 done
2067 done
2071 CC=$ac_cv_prog_CC
2072 if test -n "$CC"; then
2073 echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2075 else
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2080 test -n "$CC" && break
2081 done
2083 if test -z "$CC"; then
2084 ac_ct_CC=$CC
2085 for ac_prog in cl
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy $ac_prog; ac_word=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104 ac_cv_prog_ac_ct_CC="$ac_prog"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 break 2
2108 done
2109 done
2113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2117 else
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2122 test -n "$ac_ct_CC" && break
2123 done
2125 CC=$ac_ct_CC
2131 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }
2137 # Provide some information about the compiler.
2138 echo "$as_me:$LINENO:" \
2139 "checking for C compiler version" >&5
2140 ac_compiler=`set X $ac_compile; echo $2`
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2142 (eval $ac_compiler --version </dev/null >&5) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2147 (eval $ac_compiler -v </dev/null >&5) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2152 (eval $ac_compiler -V </dev/null >&5) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }
2157 cat >conftest.$ac_ext <<_ACEOF
2158 /* confdefs.h. */
2159 _ACEOF
2160 cat confdefs.h >>conftest.$ac_ext
2161 cat >>conftest.$ac_ext <<_ACEOF
2162 /* end confdefs.h. */
2165 main ()
2169 return 0;
2171 _ACEOF
2172 ac_clean_files_save=$ac_clean_files
2173 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2174 # Try to create an executable without -o first, disregard a.out.
2175 # It will help us diagnose broken compilers, and finding out an intuition
2176 # of exeext.
2177 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2178 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2179 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2180 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2181 (eval $ac_link_default) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; then
2185 # Find the output, starting from the most likely. This scheme is
2186 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2187 # resort.
2189 # Be careful to initialize this variable, since it used to be cached.
2190 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2191 ac_cv_exeext=
2192 # b.out is created by i960 compilers.
2193 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2195 test -f "$ac_file" || continue
2196 case $ac_file in
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2199 conftest.$ac_ext )
2200 # This is the source file.
2202 [ab].out )
2203 # We found the default executable, but exeext='' is most
2204 # certainly right.
2205 break;;
2206 *.* )
2207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 # FIXME: I believe we export ac_cv_exeext for Libtool,
2209 # but it would be cool to find out if it's true. Does anybody
2210 # maintain Libtool? --akim.
2211 export ac_cv_exeext
2212 break;;
2214 break;;
2215 esac
2216 done
2217 else
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&2;}
2225 { (exit 77); exit 77; }; }
2228 ac_exeext=$ac_cv_exeext
2229 echo "$as_me:$LINENO: result: $ac_file" >&5
2230 echo "${ECHO_T}$ac_file" >&6
2232 # Check the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239 if { ac_try='./$ac_file'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 cross_compiling=no
2246 else
2247 if test "$cross_compiling" = maybe; then
2248 cross_compiling=yes
2249 else
2250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2260 echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6
2263 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2264 ac_clean_files=$ac_clean_files_save
2265 # Check the compiler produces executables we can run. If not, either
2266 # the compiler is broken, or we cross compile.
2267 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2269 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270 echo "${ECHO_T}$cross_compiling" >&6
2272 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2275 (eval $ac_link) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2282 # `rm'.
2283 for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
2285 case $ac_file in
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 export ac_cv_exeext
2289 break;;
2290 * ) break;;
2291 esac
2292 done
2293 else
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest$ac_cv_exeext
2302 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303 echo "${ECHO_T}$ac_cv_exeext" >&6
2305 rm -f conftest.$ac_ext
2306 EXEEXT=$ac_cv_exeext
2307 ac_exeext=$EXEEXT
2308 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2310 if test "${ac_cv_objext+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h. */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2321 main ()
2325 return 0;
2327 _ACEOF
2328 rm -f conftest.o conftest.obj
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2335 case $ac_file in
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338 break;;
2339 esac
2340 done
2341 else
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6
2356 OBJEXT=$ac_cv_objext
2357 ac_objext=$OBJEXT
2358 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h. */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2371 main ()
2373 #ifndef __GNUC__
2374 choke me
2375 #endif
2378 return 0;
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2384 ac_status=$?
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 ac_compiler_gnu=yes
2404 else
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2408 ac_compiler_gnu=no
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2414 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2415 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2416 GCC=`test $ac_compiler_gnu = yes && echo yes`
2417 ac_test_CFLAGS=${CFLAGS+set}
2418 ac_save_CFLAGS=$CFLAGS
2419 CFLAGS="-g"
2420 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2421 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2422 if test "${ac_cv_prog_cc_g+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2433 main ()
2437 return 0;
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -z "$ac_c_werror_flag"
2450 || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try='test -s conftest.$ac_objext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 ac_cv_prog_cc_g=yes
2463 else
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2467 ac_cv_prog_cc_g=no
2469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2472 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2473 if test "$ac_test_CFLAGS" = set; then
2474 CFLAGS=$ac_save_CFLAGS
2475 elif test $ac_cv_prog_cc_g = yes; then
2476 if test "$GCC" = yes; then
2477 CFLAGS="-g -O2"
2478 else
2479 CFLAGS="-g"
2481 else
2482 if test "$GCC" = yes; then
2483 CFLAGS="-O2"
2484 else
2485 CFLAGS=
2488 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2489 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2490 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493 ac_cv_prog_cc_stdc=no
2494 ac_save_CC=$CC
2495 cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h. */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2501 #include <stdarg.h>
2502 #include <stdio.h>
2503 #include <sys/types.h>
2504 #include <sys/stat.h>
2505 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2506 struct buf { int x; };
2507 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2508 static char *e (p, i)
2509 char **p;
2510 int i;
2512 return p[i];
2514 static char *f (char * (*g) (char **, int), char **p, ...)
2516 char *s;
2517 va_list v;
2518 va_start (v,p);
2519 s = g (p, va_arg (v,int));
2520 va_end (v);
2521 return s;
2524 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2525 function prototypes and stuff, but not '\xHH' hex character constants.
2526 These don't provoke an error unfortunately, instead are silently treated
2527 as 'x'. The following induces an error, until -std1 is added to get
2528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2529 array size at least. It's necessary to write '\x00'==0 to get something
2530 that's true only with -std1. */
2531 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2533 int test (int i, double x);
2534 struct s1 {int (*f) (int a);};
2535 struct s2 {int (*f) (double a);};
2536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2537 int argc;
2538 char **argv;
2540 main ()
2542 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2544 return 0;
2546 _ACEOF
2547 # Don't try gcc -ansi; that turns off useful extensions and
2548 # breaks some systems' header files.
2549 # AIX -qlanglvl=ansi
2550 # Ultrix and OSF/1 -std1
2551 # HP-UX 10.20 and later -Ae
2552 # HP-UX older versions -Aa -D_HPUX_SOURCE
2553 # SVR4 -Xc -D__EXTENSIONS__
2554 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2556 CC="$ac_save_CC $ac_arg"
2557 rm -f conftest.$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>conftest.er1
2560 ac_status=$?
2561 grep -v '^ *+' conftest.er1 >conftest.err
2562 rm -f conftest.er1
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag"
2567 || test ! -s conftest.err'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 ac_cv_prog_cc_stdc=$ac_arg
2580 break
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.err conftest.$ac_objext
2587 done
2588 rm -f conftest.$ac_ext conftest.$ac_objext
2589 CC=$ac_save_CC
2593 case "x$ac_cv_prog_cc_stdc" in
2594 x|xno)
2595 echo "$as_me:$LINENO: result: none needed" >&5
2596 echo "${ECHO_T}none needed" >&6 ;;
2598 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2599 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2600 CC="$CC $ac_cv_prog_cc_stdc" ;;
2601 esac
2603 # Some people use a C++ compiler to compile C. Since we use `exit',
2604 # in C++ we need to declare it. In case someone uses the same compiler
2605 # for both compiling C and C++ we need to have the C++ compiler decide
2606 # the declaration of exit, since it's the most demanding environment.
2607 cat >conftest.$ac_ext <<_ACEOF
2608 #ifndef __cplusplus
2609 choke me
2610 #endif
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2615 ac_status=$?
2616 grep -v '^ *+' conftest.er1 >conftest.err
2617 rm -f conftest.er1
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_c_werror_flag"
2622 || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2634 for ac_declaration in \
2635 '' \
2636 'extern "C" void std::exit (int) throw (); using std::exit;' \
2637 'extern "C" void std::exit (int); using std::exit;' \
2638 'extern "C" void exit (int) throw ();' \
2639 'extern "C" void exit (int);' \
2640 'void exit (int);'
2642 cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h. */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2648 $ac_declaration
2649 #include <stdlib.h>
2651 main ()
2653 exit (42);
2655 return 0;
2657 _ACEOF
2658 rm -f conftest.$ac_objext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660 (eval $ac_compile) 2>conftest.er1
2661 ac_status=$?
2662 grep -v '^ *+' conftest.er1 >conftest.err
2663 rm -f conftest.er1
2664 cat conftest.err >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } &&
2667 { ac_try='test -z "$ac_c_werror_flag"
2668 || test ! -s conftest.err'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; } &&
2674 { ac_try='test -s conftest.$ac_objext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2681 else
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2685 continue
2687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h. */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2694 $ac_declaration
2696 main ()
2698 exit (42);
2700 return 0;
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 break
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 done
2733 rm -f conftest*
2734 if test -n "$ac_declaration"; then
2735 echo '#ifdef __cplusplus' >>confdefs.h
2736 echo $ac_declaration >>confdefs.h
2737 echo '#endif' >>confdefs.h
2740 else
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 ac_ext=c
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 if test "x$CC" != xcc; then
2753 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2754 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2755 else
2756 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2757 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2759 set dummy $CC; ac_cc=`echo $2 |
2760 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2761 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2772 main ()
2776 return 0;
2778 _ACEOF
2779 # Make sure it works both with $CC and with simple cc.
2780 # We do the test twice because some compilers refuse to overwrite an
2781 # existing .o file with -o, though they will create one.
2782 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2783 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); };
2793 then
2794 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2795 if test "x$CC" != xcc; then
2796 # Test first that cc exists at all.
2797 if { ac_try='cc -c conftest.$ac_ext >&5'
2798 { (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); }; }; then
2803 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2804 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); };
2814 then
2815 # cc works too.
2817 else
2818 # cc exists but doesn't like -o.
2819 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2823 else
2824 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2826 rm -f conftest*
2829 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2830 echo "$as_me:$LINENO: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6
2832 else
2833 echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2836 cat >>confdefs.h <<\_ACEOF
2837 #define NO_MINUS_C_MINUS_O 1
2838 _ACEOF
2842 # expand $ac_aux_dir to an absolute path
2843 am_aux_dir=`cd $ac_aux_dir && pwd`
2845 # FIXME: we rely on the cache variable name because
2846 # there is no other way.
2847 set dummy $CC
2848 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2849 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2850 # Losing compiler, so override with the script.
2851 # FIXME: It is wrong to rewrite CC.
2852 # But if we don't then we get into trouble of one sort or another.
2853 # A longer-term fix would be to have automake use am__CC in this case,
2854 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2855 CC="$am_aux_dir/compile $CC"
2858 # autoconf is lame and doesn't give us any substitution variable for this.
2859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2860 NO_MINUS_C_MINUS_O=yes
2861 else
2862 OUTPUT_OPTION='-o $@'
2867 # -------------------------
2868 # Check C compiler features
2869 # -------------------------
2871 ac_ext=c
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2877 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2878 # On Suns, sometimes $CPP names a directory.
2879 if test -n "$CPP" && test -d "$CPP"; then
2880 CPP=
2882 if test -z "$CPP"; then
2883 if test "${ac_cv_prog_CPP+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 # Double quotes because CPP needs to be expanded
2887 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889 ac_preproc_ok=false
2890 for ac_c_preproc_warn_flag in '' yes
2892 # Use a header file that comes with gcc, so configuring glibc
2893 # with a fresh cross-compiler works.
2894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895 # <limits.h> exists even on freestanding compilers.
2896 # On the NeXT, cc -E runs the code through the compiler's parser,
2897 # not just through cpp. "Syntax error" is here to catch this case.
2898 cat >conftest.$ac_ext <<_ACEOF
2899 /* confdefs.h. */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2904 #ifdef __STDC__
2905 # include <limits.h>
2906 #else
2907 # include <assert.h>
2908 #endif
2909 Syntax error
2910 _ACEOF
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } >/dev/null; then
2919 if test -s conftest.err; then
2920 ac_cpp_err=$ac_c_preproc_warn_flag
2921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2922 else
2923 ac_cpp_err=
2925 else
2926 ac_cpp_err=yes
2928 if test -z "$ac_cpp_err"; then
2930 else
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2934 # Broken: fails on valid input.
2935 continue
2937 rm -f conftest.err conftest.$ac_ext
2939 # OK, works on sane cases. Now check whether non-existent headers
2940 # can be detected and how.
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h. */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <ac_nonexistent.h>
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960 else
2961 ac_cpp_err=
2963 else
2964 ac_cpp_err=yes
2966 if test -z "$ac_cpp_err"; then
2967 # Broken: success on invalid input.
2968 continue
2969 else
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2973 # Passes both tests.
2974 ac_preproc_ok=:
2975 break
2977 rm -f conftest.err conftest.$ac_ext
2979 done
2980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2981 rm -f conftest.err conftest.$ac_ext
2982 if $ac_preproc_ok; then
2983 break
2986 done
2987 ac_cv_prog_CPP=$CPP
2990 CPP=$ac_cv_prog_CPP
2991 else
2992 ac_cv_prog_CPP=$CPP
2994 echo "$as_me:$LINENO: result: $CPP" >&5
2995 echo "${ECHO_T}$CPP" >&6
2996 ac_preproc_ok=false
2997 for ac_c_preproc_warn_flag in '' yes
2999 # Use a header file that comes with gcc, so configuring glibc
3000 # with a fresh cross-compiler works.
3001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3002 # <limits.h> exists even on freestanding compilers.
3003 # On the NeXT, cc -E runs the code through the compiler's parser,
3004 # not just through cpp. "Syntax error" is here to catch this case.
3005 cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011 #ifdef __STDC__
3012 # include <limits.h>
3013 #else
3014 # include <assert.h>
3015 #endif
3016 Syntax error
3017 _ACEOF
3018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020 ac_status=$?
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev/null; then
3026 if test -s conftest.err; then
3027 ac_cpp_err=$ac_c_preproc_warn_flag
3028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3029 else
3030 ac_cpp_err=
3032 else
3033 ac_cpp_err=yes
3035 if test -z "$ac_cpp_err"; then
3037 else
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 # Broken: fails on valid input.
3042 continue
3044 rm -f conftest.err conftest.$ac_ext
3046 # OK, works on sane cases. Now check whether non-existent headers
3047 # can be detected and how.
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054 #include <ac_nonexistent.h>
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067 else
3068 ac_cpp_err=
3070 else
3071 ac_cpp_err=yes
3073 if test -z "$ac_cpp_err"; then
3074 # Broken: success on invalid input.
3075 continue
3076 else
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 # Passes both tests.
3081 ac_preproc_ok=:
3082 break
3084 rm -f conftest.err conftest.$ac_ext
3086 done
3087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3088 rm -f conftest.err conftest.$ac_ext
3089 if $ac_preproc_ok; then
3091 else
3092 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3093 See \`config.log' for more details." >&5
3094 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&2;}
3096 { (exit 1); exit 1; }; }
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106 echo "$as_me:$LINENO: checking for inline" >&5
3107 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3108 if test "${ac_cv_c_inline+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 ac_cv_c_inline=no
3112 for ac_kw in inline __inline__ __inline; do
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 #ifndef __cplusplus
3120 typedef int foo_t;
3121 static $ac_kw foo_t static_foo () {return 0; }
3122 $ac_kw foo_t foo () {return 0; }
3123 #endif
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_c_werror_flag"
3136 || test ! -s conftest.err'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 (eval $ac_try) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 (eval $ac_try) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_cv_c_inline=$ac_kw; break
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3155 done
3158 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3159 echo "${ECHO_T}$ac_cv_c_inline" >&6
3162 case $ac_cv_c_inline in
3163 inline | yes) ;;
3165 case $ac_cv_c_inline in
3166 no) ac_val=;;
3167 *) ac_val=$ac_cv_c_inline;;
3168 esac
3169 cat >>confdefs.h <<_ACEOF
3170 #ifndef __cplusplus
3171 #define inline $ac_val
3172 #endif
3173 _ACEOF
3175 esac
3178 # sizeof(char) is 1 by definition.
3180 echo "$as_me:$LINENO: checking for egrep" >&5
3181 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3182 if test "${ac_cv_prog_egrep+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3186 then ac_cv_prog_egrep='grep -E'
3187 else ac_cv_prog_egrep='egrep'
3190 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3191 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3192 EGREP=$ac_cv_prog_egrep
3195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3197 if test "${ac_cv_header_stdc+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200 cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h. */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3206 #include <stdlib.h>
3207 #include <stdarg.h>
3208 #include <string.h>
3209 #include <float.h>
3212 main ()
3216 return 0;
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -z "$ac_c_werror_flag"
3229 || test ! -s conftest.err'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_header_stdc=yes
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 ac_cv_header_stdc=no
3248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3250 if test $ac_cv_header_stdc = yes; then
3251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3258 #include <string.h>
3260 _ACEOF
3261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262 $EGREP "memchr" >/dev/null 2>&1; then
3264 else
3265 ac_cv_header_stdc=no
3267 rm -f conftest*
3271 if test $ac_cv_header_stdc = yes; then
3272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3273 cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h. */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279 #include <stdlib.h>
3281 _ACEOF
3282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3283 $EGREP "free" >/dev/null 2>&1; then
3285 else
3286 ac_cv_header_stdc=no
3288 rm -f conftest*
3292 if test $ac_cv_header_stdc = yes; then
3293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3294 if test "$cross_compiling" = yes; then
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3303 #include <ctype.h>
3304 #if ((' ' & 0x0FF) == 0x020)
3305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3307 #else
3308 # define ISLOWER(c) \
3309 (('a' <= (c) && (c) <= 'i') \
3310 || ('j' <= (c) && (c) <= 'r') \
3311 || ('s' <= (c) && (c) <= 'z'))
3312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3313 #endif
3315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3317 main ()
3319 int i;
3320 for (i = 0; i < 256; i++)
3321 if (XOR (islower (i), ISLOWER (i))
3322 || toupper (i) != TOUPPER (i))
3323 exit(2);
3324 exit (0);
3326 _ACEOF
3327 rm -f conftest$ac_exeext
3328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3329 (eval $ac_link) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 (eval $ac_try) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3339 else
3340 echo "$as_me: program exited with status $ac_status" >&5
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 ( exit $ac_status )
3345 ac_cv_header_stdc=no
3347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3353 if test $ac_cv_header_stdc = yes; then
3355 cat >>confdefs.h <<\_ACEOF
3356 #define STDC_HEADERS 1
3357 _ACEOF
3361 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3371 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3372 inttypes.h stdint.h unistd.h
3374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3375 echo "$as_me:$LINENO: checking for $ac_header" >&5
3376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 $ac_includes_default
3388 #include <$ac_header>
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>conftest.er1
3393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try='test -z "$ac_c_werror_flag"
3400 || test ! -s conftest.err'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 eval "$as_ac_Header=yes"
3413 else
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 eval "$as_ac_Header=no"
3419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3424 cat >>confdefs.h <<_ACEOF
3425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3426 _ACEOF
3430 done
3433 echo "$as_me:$LINENO: checking for void *" >&5
3434 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3435 if test "${ac_cv_type_void_p+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444 $ac_includes_default
3446 main ()
3448 if ((void * *) 0)
3449 return 0;
3450 if (sizeof (void *))
3451 return 0;
3453 return 0;
3455 _ACEOF
3456 rm -f conftest.$ac_objext
3457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458 (eval $ac_compile) 2>conftest.er1
3459 ac_status=$?
3460 grep -v '^ *+' conftest.er1 >conftest.err
3461 rm -f conftest.er1
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } &&
3465 { ac_try='test -z "$ac_c_werror_flag"
3466 || test ! -s conftest.err'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; } &&
3472 { ac_try='test -s conftest.$ac_objext'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 (eval $ac_try) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; }; then
3478 ac_cv_type_void_p=yes
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 ac_cv_type_void_p=no
3485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3488 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3490 echo "$as_me:$LINENO: checking size of void *" >&5
3491 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3492 if test "${ac_cv_sizeof_void_p+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495 if test "$ac_cv_type_void_p" = yes; then
3496 # The cast to unsigned long works around a bug in the HP C Compiler
3497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3499 # This bug is HP SR number 8606223364.
3500 if test "$cross_compiling" = yes; then
3501 # Depending upon the size, compute the lo and hi bounds.
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h. */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 $ac_includes_default
3510 main ()
3512 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3513 test_array [0] = 0
3516 return 0;
3518 _ACEOF
3519 rm -f conftest.$ac_objext
3520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3521 (eval $ac_compile) 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } &&
3528 { ac_try='test -z "$ac_c_werror_flag"
3529 || test ! -s conftest.err'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; } &&
3535 { ac_try='test -s conftest.$ac_objext'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3541 ac_lo=0 ac_mid=0
3542 while :; do
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 $ac_includes_default
3551 main ()
3553 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3554 test_array [0] = 0
3557 return 0;
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try='test -z "$ac_c_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_hi=$ac_mid; break
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 ac_lo=`expr $ac_mid + 1`
3588 if test $ac_lo -le $ac_mid; then
3589 ac_lo= ac_hi=
3590 break
3592 ac_mid=`expr 2 '*' $ac_mid + 1`
3594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595 done
3596 else
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 $ac_includes_default
3608 main ()
3610 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3611 test_array [0] = 0
3614 return 0;
3616 _ACEOF
3617 rm -f conftest.$ac_objext
3618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -z "$ac_c_werror_flag"
3627 || test ! -s conftest.err'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; } &&
3633 { ac_try='test -s conftest.$ac_objext'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3639 ac_hi=-1 ac_mid=-1
3640 while :; do
3641 cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h. */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3647 $ac_includes_default
3649 main ()
3651 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3652 test_array [0] = 0
3655 return 0;
3657 _ACEOF
3658 rm -f conftest.$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 (eval $ac_try) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 ac_lo=$ac_mid; break
3681 else
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 ac_hi=`expr '(' $ac_mid ')' - 1`
3686 if test $ac_mid -le $ac_hi; then
3687 ac_lo= ac_hi=
3688 break
3690 ac_mid=`expr 2 '*' $ac_mid`
3692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3693 done
3694 else
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3698 ac_lo= ac_hi=
3700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3703 # Binary search between lo and hi bounds.
3704 while test "x$ac_lo" != "x$ac_hi"; do
3705 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3706 cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h. */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 $ac_includes_default
3714 main ()
3716 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3717 test_array [0] = 0
3720 return 0;
3722 _ACEOF
3723 rm -f conftest.$ac_objext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
3732 { ac_try='test -z "$ac_c_werror_flag"
3733 || test ! -s conftest.err'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; } &&
3739 { ac_try='test -s conftest.$ac_objext'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 ac_hi=$ac_mid
3746 else
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 ac_lo=`expr '(' $ac_mid ')' + 1`
3752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3753 done
3754 case $ac_lo in
3755 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3756 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3757 See \`config.log' for more details." >&5
3758 echo "$as_me: error: cannot compute sizeof (void *), 77
3759 See \`config.log' for more details." >&2;}
3760 { (exit 1); exit 1; }; } ;;
3761 esac
3762 else
3763 if test "$cross_compiling" = yes; then
3764 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3765 See \`config.log' for more details." >&5
3766 echo "$as_me: error: cannot run test program while cross compiling
3767 See \`config.log' for more details." >&2;}
3768 { (exit 1); exit 1; }; }
3769 else
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 $ac_includes_default
3777 long longval () { return (long) (sizeof (void *)); }
3778 unsigned long ulongval () { return (long) (sizeof (void *)); }
3779 #include <stdio.h>
3780 #include <stdlib.h>
3782 main ()
3785 FILE *f = fopen ("conftest.val", "w");
3786 if (! f)
3787 exit (1);
3788 if (((long) (sizeof (void *))) < 0)
3790 long i = longval ();
3791 if (i != ((long) (sizeof (void *))))
3792 exit (1);
3793 fprintf (f, "%ld\n", i);
3795 else
3797 unsigned long i = ulongval ();
3798 if (i != ((long) (sizeof (void *))))
3799 exit (1);
3800 fprintf (f, "%lu\n", i);
3802 exit (ferror (f) || fclose (f) != 0);
3805 return 0;
3807 _ACEOF
3808 rm -f conftest$ac_exeext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3810 (eval $ac_link) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_sizeof_void_p=`cat conftest.val`
3820 else
3821 echo "$as_me: program exited with status $ac_status" >&5
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3825 ( exit $ac_status )
3826 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3827 See \`config.log' for more details." >&5
3828 echo "$as_me: error: cannot compute sizeof (void *), 77
3829 See \`config.log' for more details." >&2;}
3830 { (exit 1); exit 1; }; }
3832 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3835 rm -f conftest.val
3836 else
3837 ac_cv_sizeof_void_p=0
3840 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3841 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3842 cat >>confdefs.h <<_ACEOF
3843 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3844 _ACEOF
3847 echo "$as_me:$LINENO: checking for short" >&5
3848 echo $ECHO_N "checking for short... $ECHO_C" >&6
3849 if test "${ac_cv_type_short+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h. */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 $ac_includes_default
3860 main ()
3862 if ((short *) 0)
3863 return 0;
3864 if (sizeof (short))
3865 return 0;
3867 return 0;
3869 _ACEOF
3870 rm -f conftest.$ac_objext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872 (eval $ac_compile) 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -z "$ac_c_werror_flag"
3880 || test ! -s conftest.err'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 (eval $ac_try) 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; } &&
3886 { ac_try='test -s conftest.$ac_objext'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 (eval $ac_try) 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; }; then
3892 ac_cv_type_short=yes
3893 else
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3897 ac_cv_type_short=no
3899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3902 echo "${ECHO_T}$ac_cv_type_short" >&6
3904 echo "$as_me:$LINENO: checking size of short" >&5
3905 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3906 if test "${ac_cv_sizeof_short+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909 if test "$ac_cv_type_short" = yes; then
3910 # The cast to unsigned long works around a bug in the HP C Compiler
3911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3913 # This bug is HP SR number 8606223364.
3914 if test "$cross_compiling" = yes; then
3915 # Depending upon the size, compute the lo and hi bounds.
3916 cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h. */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 $ac_includes_default
3924 main ()
3926 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3927 test_array [0] = 0
3930 return 0;
3932 _ACEOF
3933 rm -f conftest.$ac_objext
3934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3935 (eval $ac_compile) 2>conftest.er1
3936 ac_status=$?
3937 grep -v '^ *+' conftest.er1 >conftest.err
3938 rm -f conftest.er1
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } &&
3942 { ac_try='test -z "$ac_c_werror_flag"
3943 || test ! -s conftest.err'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 (eval $ac_try) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; } &&
3949 { ac_try='test -s conftest.$ac_objext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_lo=0 ac_mid=0
3956 while :; do
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 $ac_includes_default
3965 main ()
3967 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3968 test_array [0] = 0
3971 return 0;
3973 _ACEOF
3974 rm -f conftest.$ac_objext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>conftest.er1
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } &&
3983 { ac_try='test -z "$ac_c_werror_flag"
3984 || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_hi=$ac_mid; break
3997 else
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 ac_lo=`expr $ac_mid + 1`
4002 if test $ac_lo -le $ac_mid; then
4003 ac_lo= ac_hi=
4004 break
4006 ac_mid=`expr 2 '*' $ac_mid + 1`
4008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009 done
4010 else
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020 $ac_includes_default
4022 main ()
4024 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4025 test_array [0] = 0
4028 return 0;
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag"
4041 || test ! -s conftest.err'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 ac_hi=-1 ac_mid=-1
4054 while :; do
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 $ac_includes_default
4063 main ()
4065 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4066 test_array [0] = 0
4069 return 0;
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_c_werror_flag"
4082 || test ! -s conftest.err'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 (eval $ac_try) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 ac_lo=$ac_mid; break
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 ac_hi=`expr '(' $ac_mid ')' - 1`
4100 if test $ac_mid -le $ac_hi; then
4101 ac_lo= ac_hi=
4102 break
4104 ac_mid=`expr 2 '*' $ac_mid`
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4107 done
4108 else
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 ac_lo= ac_hi=
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117 # Binary search between lo and hi bounds.
4118 while test "x$ac_lo" != "x$ac_hi"; do
4119 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 $ac_includes_default
4128 main ()
4130 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4131 test_array [0] = 0
4134 return 0;
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139 (eval $ac_compile) 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag"
4147 || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 ac_hi=$ac_mid
4160 else
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 ac_lo=`expr '(' $ac_mid ')' + 1`
4166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4167 done
4168 case $ac_lo in
4169 ?*) ac_cv_sizeof_short=$ac_lo;;
4170 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4171 See \`config.log' for more details." >&5
4172 echo "$as_me: error: cannot compute sizeof (short), 77
4173 See \`config.log' for more details." >&2;}
4174 { (exit 1); exit 1; }; } ;;
4175 esac
4176 else
4177 if test "$cross_compiling" = yes; then
4178 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4179 See \`config.log' for more details." >&5
4180 echo "$as_me: error: cannot run test program while cross compiling
4181 See \`config.log' for more details." >&2;}
4182 { (exit 1); exit 1; }; }
4183 else
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 $ac_includes_default
4191 long longval () { return (long) (sizeof (short)); }
4192 unsigned long ulongval () { return (long) (sizeof (short)); }
4193 #include <stdio.h>
4194 #include <stdlib.h>
4196 main ()
4199 FILE *f = fopen ("conftest.val", "w");
4200 if (! f)
4201 exit (1);
4202 if (((long) (sizeof (short))) < 0)
4204 long i = longval ();
4205 if (i != ((long) (sizeof (short))))
4206 exit (1);
4207 fprintf (f, "%ld\n", i);
4209 else
4211 unsigned long i = ulongval ();
4212 if (i != ((long) (sizeof (short))))
4213 exit (1);
4214 fprintf (f, "%lu\n", i);
4216 exit (ferror (f) || fclose (f) != 0);
4219 return 0;
4221 _ACEOF
4222 rm -f conftest$ac_exeext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4224 (eval $ac_link) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4233 ac_cv_sizeof_short=`cat conftest.val`
4234 else
4235 echo "$as_me: program exited with status $ac_status" >&5
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4239 ( exit $ac_status )
4240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4241 See \`config.log' for more details." >&5
4242 echo "$as_me: error: cannot compute sizeof (short), 77
4243 See \`config.log' for more details." >&2;}
4244 { (exit 1); exit 1; }; }
4246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4249 rm -f conftest.val
4250 else
4251 ac_cv_sizeof_short=0
4254 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4255 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4256 cat >>confdefs.h <<_ACEOF
4257 #define SIZEOF_SHORT $ac_cv_sizeof_short
4258 _ACEOF
4261 echo "$as_me:$LINENO: checking for int" >&5
4262 echo $ECHO_N "checking for int... $ECHO_C" >&6
4263 if test "${ac_cv_type_int+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266 cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h. */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 $ac_includes_default
4274 main ()
4276 if ((int *) 0)
4277 return 0;
4278 if (sizeof (int))
4279 return 0;
4281 return 0;
4283 _ACEOF
4284 rm -f conftest.$ac_objext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286 (eval $ac_compile) 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -z "$ac_c_werror_flag"
4294 || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_type_int=yes
4307 else
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 ac_cv_type_int=no
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4316 echo "${ECHO_T}$ac_cv_type_int" >&6
4318 echo "$as_me:$LINENO: checking size of int" >&5
4319 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4320 if test "${ac_cv_sizeof_int+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if test "$ac_cv_type_int" = yes; then
4324 # The cast to unsigned long works around a bug in the HP C Compiler
4325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4327 # This bug is HP SR number 8606223364.
4328 if test "$cross_compiling" = yes; then
4329 # Depending upon the size, compute the lo and hi bounds.
4330 cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h. */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 $ac_includes_default
4338 main ()
4340 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4341 test_array [0] = 0
4344 return 0;
4346 _ACEOF
4347 rm -f conftest.$ac_objext
4348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349 (eval $ac_compile) 2>conftest.er1
4350 ac_status=$?
4351 grep -v '^ *+' conftest.er1 >conftest.err
4352 rm -f conftest.er1
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try='test -z "$ac_c_werror_flag"
4357 || test ! -s conftest.err'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 ac_lo=0 ac_mid=0
4370 while :; do
4371 cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h. */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 $ac_includes_default
4379 main ()
4381 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4382 test_array [0] = 0
4385 return 0;
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag"
4398 || test ! -s conftest.err'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 (eval $ac_try) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; } &&
4404 { ac_try='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 ac_hi=$ac_mid; break
4411 else
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4415 ac_lo=`expr $ac_mid + 1`
4416 if test $ac_lo -le $ac_mid; then
4417 ac_lo= ac_hi=
4418 break
4420 ac_mid=`expr 2 '*' $ac_mid + 1`
4422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4423 done
4424 else
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4428 cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h. */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4434 $ac_includes_default
4436 main ()
4438 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4439 test_array [0] = 0
4442 return 0;
4444 _ACEOF
4445 rm -f conftest.$ac_objext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447 (eval $ac_compile) 2>conftest.er1
4448 ac_status=$?
4449 grep -v '^ *+' conftest.er1 >conftest.err
4450 rm -f conftest.er1
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try='test -z "$ac_c_werror_flag"
4455 || test ! -s conftest.err'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; } &&
4461 { ac_try='test -s conftest.$ac_objext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_hi=-1 ac_mid=-1
4468 while :; do
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 $ac_includes_default
4477 main ()
4479 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4480 test_array [0] = 0
4483 return 0;
4485 _ACEOF
4486 rm -f conftest.$ac_objext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -z "$ac_c_werror_flag"
4496 || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 ac_lo=$ac_mid; break
4509 else
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 ac_hi=`expr '(' $ac_mid ')' - 1`
4514 if test $ac_mid -le $ac_hi; then
4515 ac_lo= ac_hi=
4516 break
4518 ac_mid=`expr 2 '*' $ac_mid`
4520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4521 done
4522 else
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 ac_lo= ac_hi=
4528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4531 # Binary search between lo and hi bounds.
4532 while test "x$ac_lo" != "x$ac_hi"; do
4533 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 $ac_includes_default
4542 main ()
4544 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4545 test_array [0] = 0
4548 return 0;
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>conftest.er1
4554 ac_status=$?
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -z "$ac_c_werror_flag"
4561 || test ! -s conftest.err'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 (eval $ac_try) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 ac_hi=$ac_mid
4574 else
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 ac_lo=`expr '(' $ac_mid ')' + 1`
4580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4581 done
4582 case $ac_lo in
4583 ?*) ac_cv_sizeof_int=$ac_lo;;
4584 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4585 See \`config.log' for more details." >&5
4586 echo "$as_me: error: cannot compute sizeof (int), 77
4587 See \`config.log' for more details." >&2;}
4588 { (exit 1); exit 1; }; } ;;
4589 esac
4590 else
4591 if test "$cross_compiling" = yes; then
4592 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4593 See \`config.log' for more details." >&5
4594 echo "$as_me: error: cannot run test program while cross compiling
4595 See \`config.log' for more details." >&2;}
4596 { (exit 1); exit 1; }; }
4597 else
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 $ac_includes_default
4605 long longval () { return (long) (sizeof (int)); }
4606 unsigned long ulongval () { return (long) (sizeof (int)); }
4607 #include <stdio.h>
4608 #include <stdlib.h>
4610 main ()
4613 FILE *f = fopen ("conftest.val", "w");
4614 if (! f)
4615 exit (1);
4616 if (((long) (sizeof (int))) < 0)
4618 long i = longval ();
4619 if (i != ((long) (sizeof (int))))
4620 exit (1);
4621 fprintf (f, "%ld\n", i);
4623 else
4625 unsigned long i = ulongval ();
4626 if (i != ((long) (sizeof (int))))
4627 exit (1);
4628 fprintf (f, "%lu\n", i);
4630 exit (ferror (f) || fclose (f) != 0);
4633 return 0;
4635 _ACEOF
4636 rm -f conftest$ac_exeext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4638 (eval $ac_link) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_cv_sizeof_int=`cat conftest.val`
4648 else
4649 echo "$as_me: program exited with status $ac_status" >&5
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 ( exit $ac_status )
4654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4655 See \`config.log' for more details." >&5
4656 echo "$as_me: error: cannot compute sizeof (int), 77
4657 See \`config.log' for more details." >&2;}
4658 { (exit 1); exit 1; }; }
4660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4663 rm -f conftest.val
4664 else
4665 ac_cv_sizeof_int=0
4668 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4669 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4670 cat >>confdefs.h <<_ACEOF
4671 #define SIZEOF_INT $ac_cv_sizeof_int
4672 _ACEOF
4675 echo "$as_me:$LINENO: checking for long" >&5
4676 echo $ECHO_N "checking for long... $ECHO_C" >&6
4677 if test "${ac_cv_type_long+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 $ac_includes_default
4688 main ()
4690 if ((long *) 0)
4691 return 0;
4692 if (sizeof (long))
4693 return 0;
4695 return 0;
4697 _ACEOF
4698 rm -f conftest.$ac_objext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4700 (eval $ac_compile) 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 ac_cv_type_long=yes
4721 else
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 ac_cv_type_long=no
4727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4729 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4730 echo "${ECHO_T}$ac_cv_type_long" >&6
4732 echo "$as_me:$LINENO: checking size of long" >&5
4733 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4734 if test "${ac_cv_sizeof_long+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737 if test "$ac_cv_type_long" = yes; then
4738 # The cast to unsigned long works around a bug in the HP C Compiler
4739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4741 # This bug is HP SR number 8606223364.
4742 if test "$cross_compiling" = yes; then
4743 # Depending upon the size, compute the lo and hi bounds.
4744 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h. */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 $ac_includes_default
4752 main ()
4754 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4755 test_array [0] = 0
4758 return 0;
4760 _ACEOF
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try='test -z "$ac_c_werror_flag"
4771 || test ! -s conftest.err'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; } &&
4777 { ac_try='test -s conftest.$ac_objext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 ac_lo=0 ac_mid=0
4784 while :; do
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 $ac_includes_default
4793 main ()
4795 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4796 test_array [0] = 0
4799 return 0;
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_hi=$ac_mid; break
4825 else
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 ac_lo=`expr $ac_mid + 1`
4830 if test $ac_lo -le $ac_mid; then
4831 ac_lo= ac_hi=
4832 break
4834 ac_mid=`expr 2 '*' $ac_mid + 1`
4836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837 done
4838 else
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 $ac_includes_default
4850 main ()
4852 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4853 test_array [0] = 0
4856 return 0;
4858 _ACEOF
4859 rm -f conftest.$ac_objext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861 (eval $ac_compile) 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try='test -z "$ac_c_werror_flag"
4869 || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try='test -s conftest.$ac_objext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 ac_hi=-1 ac_mid=-1
4882 while :; do
4883 cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h. */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 $ac_includes_default
4891 main ()
4893 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4894 test_array [0] = 0
4897 return 0;
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>conftest.er1
4903 ac_status=$?
4904 grep -v '^ *+' conftest.er1 >conftest.err
4905 rm -f conftest.er1
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try='test -z "$ac_c_werror_flag"
4910 || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_lo=$ac_mid; break
4923 else
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 ac_hi=`expr '(' $ac_mid ')' - 1`
4928 if test $ac_mid -le $ac_hi; then
4929 ac_lo= ac_hi=
4930 break
4932 ac_mid=`expr 2 '*' $ac_mid`
4934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4935 done
4936 else
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 ac_lo= ac_hi=
4942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4945 # Binary search between lo and hi bounds.
4946 while test "x$ac_lo" != "x$ac_hi"; do
4947 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_includes_default
4956 main ()
4958 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4959 test_array [0] = 0
4962 return 0;
4964 _ACEOF
4965 rm -f conftest.$ac_objext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -z "$ac_c_werror_flag"
4975 || test ! -s conftest.err'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; } &&
4981 { ac_try='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 (eval $ac_try) 2>&5
4984 ac_status=$?
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_hi=$ac_mid
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 ac_lo=`expr '(' $ac_mid ')' + 1`
4994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4995 done
4996 case $ac_lo in
4997 ?*) ac_cv_sizeof_long=$ac_lo;;
4998 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4999 See \`config.log' for more details." >&5
5000 echo "$as_me: error: cannot compute sizeof (long), 77
5001 See \`config.log' for more details." >&2;}
5002 { (exit 1); exit 1; }; } ;;
5003 esac
5004 else
5005 if test "$cross_compiling" = yes; then
5006 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5007 See \`config.log' for more details." >&5
5008 echo "$as_me: error: cannot run test program while cross compiling
5009 See \`config.log' for more details." >&2;}
5010 { (exit 1); exit 1; }; }
5011 else
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 $ac_includes_default
5019 long longval () { return (long) (sizeof (long)); }
5020 unsigned long ulongval () { return (long) (sizeof (long)); }
5021 #include <stdio.h>
5022 #include <stdlib.h>
5024 main ()
5027 FILE *f = fopen ("conftest.val", "w");
5028 if (! f)
5029 exit (1);
5030 if (((long) (sizeof (long))) < 0)
5032 long i = longval ();
5033 if (i != ((long) (sizeof (long))))
5034 exit (1);
5035 fprintf (f, "%ld\n", i);
5037 else
5039 unsigned long i = ulongval ();
5040 if (i != ((long) (sizeof (long))))
5041 exit (1);
5042 fprintf (f, "%lu\n", i);
5044 exit (ferror (f) || fclose (f) != 0);
5047 return 0;
5049 _ACEOF
5050 rm -f conftest$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052 (eval $ac_link) 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 (eval $ac_try) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 ac_cv_sizeof_long=`cat conftest.val`
5062 else
5063 echo "$as_me: program exited with status $ac_status" >&5
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5067 ( exit $ac_status )
5068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5069 See \`config.log' for more details." >&5
5070 echo "$as_me: error: cannot compute sizeof (long), 77
5071 See \`config.log' for more details." >&2;}
5072 { (exit 1); exit 1; }; }
5074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5077 rm -f conftest.val
5078 else
5079 ac_cv_sizeof_long=0
5082 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5083 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5084 cat >>confdefs.h <<_ACEOF
5085 #define SIZEOF_LONG $ac_cv_sizeof_long
5086 _ACEOF
5089 echo "$as_me:$LINENO: checking for long long" >&5
5090 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5091 if test "${ac_cv_type_long_long+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 $ac_includes_default
5102 main ()
5104 if ((long long *) 0)
5105 return 0;
5106 if (sizeof (long long))
5107 return 0;
5109 return 0;
5111 _ACEOF
5112 rm -f conftest.$ac_objext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5114 (eval $ac_compile) 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } &&
5121 { ac_try='test -z "$ac_c_werror_flag"
5122 || test ! -s conftest.err'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 (eval $ac_try) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; } &&
5128 { ac_try='test -s conftest.$ac_objext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 (eval $ac_try) 2>&5
5131 ac_status=$?
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_type_long_long=yes
5135 else
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 ac_cv_type_long_long=no
5141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5143 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5144 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5145 if test $ac_cv_type_long_long = yes; then
5147 cat >>confdefs.h <<_ACEOF
5148 #define HAVE_LONG_LONG 1
5149 _ACEOF
5151 echo "$as_me:$LINENO: checking for long long" >&5
5152 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5153 if test "${ac_cv_type_long_long+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 $ac_includes_default
5164 main ()
5166 if ((long long *) 0)
5167 return 0;
5168 if (sizeof (long long))
5169 return 0;
5171 return 0;
5173 _ACEOF
5174 rm -f conftest.$ac_objext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176 (eval $ac_compile) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_type_long_long=yes
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 ac_cv_type_long_long=no
5203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5205 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5206 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5208 echo "$as_me:$LINENO: checking size of long long" >&5
5209 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5210 if test "${ac_cv_sizeof_long_long+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 if test "$ac_cv_type_long_long" = yes; then
5214 # The cast to unsigned long works around a bug in the HP C Compiler
5215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5217 # This bug is HP SR number 8606223364.
5218 if test "$cross_compiling" = yes; then
5219 # Depending upon the size, compute the lo and hi bounds.
5220 cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 $ac_includes_default
5228 main ()
5230 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5231 test_array [0] = 0
5234 return 0;
5236 _ACEOF
5237 rm -f conftest.$ac_objext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5239 (eval $ac_compile) 2>conftest.er1
5240 ac_status=$?
5241 grep -v '^ *+' conftest.er1 >conftest.err
5242 rm -f conftest.er1
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } &&
5246 { ac_try='test -z "$ac_c_werror_flag"
5247 || test ! -s conftest.err'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; } &&
5253 { ac_try='test -s conftest.$ac_objext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 (eval $ac_try) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 ac_lo=0 ac_mid=0
5260 while :; do
5261 cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h. */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 $ac_includes_default
5269 main ()
5271 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5272 test_array [0] = 0
5275 return 0;
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>conftest.er1
5281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -z "$ac_c_werror_flag"
5288 || test ! -s conftest.err'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; } &&
5294 { ac_try='test -s conftest.$ac_objext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 (eval $ac_try) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5300 ac_hi=$ac_mid; break
5301 else
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5305 ac_lo=`expr $ac_mid + 1`
5306 if test $ac_lo -le $ac_mid; then
5307 ac_lo= ac_hi=
5308 break
5310 ac_mid=`expr 2 '*' $ac_mid + 1`
5312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5313 done
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h. */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5326 main ()
5328 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5329 test_array [0] = 0
5332 return 0;
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337 (eval $ac_compile) 2>conftest.er1
5338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -z "$ac_c_werror_flag"
5345 || test ! -s conftest.err'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; } &&
5351 { ac_try='test -s conftest.$ac_objext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_hi=-1 ac_mid=-1
5358 while :; do
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5367 main ()
5369 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5370 test_array [0] = 0
5373 return 0;
5375 _ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378 (eval $ac_compile) 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -z "$ac_c_werror_flag"
5386 || test ! -s conftest.err'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 (eval $ac_try) 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; } &&
5392 { ac_try='test -s conftest.$ac_objext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 (eval $ac_try) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 ac_lo=$ac_mid; break
5399 else
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_hi=`expr '(' $ac_mid ')' - 1`
5404 if test $ac_mid -le $ac_hi; then
5405 ac_lo= ac_hi=
5406 break
5408 ac_mid=`expr 2 '*' $ac_mid`
5410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5411 done
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 ac_lo= ac_hi=
5418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5421 # Binary search between lo and hi bounds.
5422 while test "x$ac_lo" != "x$ac_hi"; do
5423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5424 cat >conftest.$ac_ext <<_ACEOF
5425 /* confdefs.h. */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 $ac_includes_default
5432 main ()
5434 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5435 test_array [0] = 0
5438 return 0;
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -z "$ac_c_werror_flag"
5451 || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_hi=$ac_mid
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 ac_lo=`expr '(' $ac_mid ')' + 1`
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471 done
5472 case $ac_lo in
5473 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5474 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5475 See \`config.log' for more details." >&5
5476 echo "$as_me: error: cannot compute sizeof (long long), 77
5477 See \`config.log' for more details." >&2;}
5478 { (exit 1); exit 1; }; } ;;
5479 esac
5480 else
5481 if test "$cross_compiling" = yes; then
5482 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: cannot run test program while cross compiling
5485 See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; }
5487 else
5488 cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h. */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 $ac_includes_default
5495 long longval () { return (long) (sizeof (long long)); }
5496 unsigned long ulongval () { return (long) (sizeof (long long)); }
5497 #include <stdio.h>
5498 #include <stdlib.h>
5500 main ()
5503 FILE *f = fopen ("conftest.val", "w");
5504 if (! f)
5505 exit (1);
5506 if (((long) (sizeof (long long))) < 0)
5508 long i = longval ();
5509 if (i != ((long) (sizeof (long long))))
5510 exit (1);
5511 fprintf (f, "%ld\n", i);
5513 else
5515 unsigned long i = ulongval ();
5516 if (i != ((long) (sizeof (long long))))
5517 exit (1);
5518 fprintf (f, "%lu\n", i);
5520 exit (ferror (f) || fclose (f) != 0);
5523 return 0;
5525 _ACEOF
5526 rm -f conftest$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 ac_cv_sizeof_long_long=`cat conftest.val`
5538 else
5539 echo "$as_me: program exited with status $ac_status" >&5
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ( exit $ac_status )
5544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5545 See \`config.log' for more details." >&5
5546 echo "$as_me: error: cannot compute sizeof (long long), 77
5547 See \`config.log' for more details." >&2;}
5548 { (exit 1); exit 1; }; }
5550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5553 rm -f conftest.val
5554 else
5555 ac_cv_sizeof_long_long=0
5558 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5559 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5560 cat >>confdefs.h <<_ACEOF
5561 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5562 _ACEOF
5567 echo "$as_me:$LINENO: checking for __int64" >&5
5568 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5569 if test "${ac_cv_type___int64+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 $ac_includes_default
5580 main ()
5582 if ((__int64 *) 0)
5583 return 0;
5584 if (sizeof (__int64))
5585 return 0;
5587 return 0;
5589 _ACEOF
5590 rm -f conftest.$ac_objext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -z "$ac_c_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_type___int64=yes
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 ac_cv_type___int64=no
5619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5621 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5622 echo "${ECHO_T}$ac_cv_type___int64" >&6
5623 if test $ac_cv_type___int64 = yes; then
5625 cat >>confdefs.h <<_ACEOF
5626 #define HAVE___INT64 1
5627 _ACEOF
5629 echo "$as_me:$LINENO: checking for __int64" >&5
5630 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5631 if test "${ac_cv_type___int64+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5642 main ()
5644 if ((__int64 *) 0)
5645 return 0;
5646 if (sizeof (__int64))
5647 return 0;
5649 return 0;
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_type___int64=yes
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 ac_cv_type___int64=no
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5684 echo "${ECHO_T}$ac_cv_type___int64" >&6
5686 echo "$as_me:$LINENO: checking size of __int64" >&5
5687 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5688 if test "${ac_cv_sizeof___int64+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691 if test "$ac_cv_type___int64" = yes; then
5692 # The cast to unsigned long works around a bug in the HP C Compiler
5693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5694 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5695 # This bug is HP SR number 8606223364.
5696 if test "$cross_compiling" = yes; then
5697 # Depending upon the size, compute the lo and hi bounds.
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 $ac_includes_default
5706 main ()
5708 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5709 test_array [0] = 0
5712 return 0;
5714 _ACEOF
5715 rm -f conftest.$ac_objext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717 (eval $ac_compile) 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_c_werror_flag"
5725 || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try='test -s conftest.$ac_objext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 ac_lo=0 ac_mid=0
5738 while :; do
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 $ac_includes_default
5747 main ()
5749 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5750 test_array [0] = 0
5753 return 0;
5755 _ACEOF
5756 rm -f conftest.$ac_objext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5758 (eval $ac_compile) 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -z "$ac_c_werror_flag"
5766 || test ! -s conftest.err'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 (eval $ac_try) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try='test -s conftest.$ac_objext'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 (eval $ac_try) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; }; then
5778 ac_hi=$ac_mid; break
5779 else
5780 echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5783 ac_lo=`expr $ac_mid + 1`
5784 if test $ac_lo -le $ac_mid; then
5785 ac_lo= ac_hi=
5786 break
5788 ac_mid=`expr 2 '*' $ac_mid + 1`
5790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5791 done
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 $ac_includes_default
5804 main ()
5806 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5807 test_array [0] = 0
5810 return 0;
5812 _ACEOF
5813 rm -f conftest.$ac_objext
5814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815 (eval $ac_compile) 2>conftest.er1
5816 ac_status=$?
5817 grep -v '^ *+' conftest.er1 >conftest.err
5818 rm -f conftest.er1
5819 cat conftest.err >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } &&
5822 { ac_try='test -z "$ac_c_werror_flag"
5823 || test ! -s conftest.err'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 (eval $ac_try) 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; } &&
5829 { ac_try='test -s conftest.$ac_objext'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 (eval $ac_try) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
5835 ac_hi=-1 ac_mid=-1
5836 while :; do
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 $ac_includes_default
5845 main ()
5847 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5848 test_array [0] = 0
5851 return 0;
5853 _ACEOF
5854 rm -f conftest.$ac_objext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856 (eval $ac_compile) 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag"
5864 || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest.$ac_objext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 ac_lo=$ac_mid; break
5877 else
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 ac_hi=`expr '(' $ac_mid ')' - 1`
5882 if test $ac_mid -le $ac_hi; then
5883 ac_lo= ac_hi=
5884 break
5886 ac_mid=`expr 2 '*' $ac_mid`
5888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889 done
5890 else
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5894 ac_lo= ac_hi=
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 # Binary search between lo and hi bounds.
5900 while test "x$ac_lo" != "x$ac_hi"; do
5901 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5902 cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h. */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 $ac_includes_default
5910 main ()
5912 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5913 test_array [0] = 0
5916 return 0;
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest.$ac_objext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_hi=$ac_mid
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ac_lo=`expr '(' $ac_mid ')' + 1`
5948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949 done
5950 case $ac_lo in
5951 ?*) ac_cv_sizeof___int64=$ac_lo;;
5952 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5953 See \`config.log' for more details." >&5
5954 echo "$as_me: error: cannot compute sizeof (__int64), 77
5955 See \`config.log' for more details." >&2;}
5956 { (exit 1); exit 1; }; } ;;
5957 esac
5958 else
5959 if test "$cross_compiling" = yes; then
5960 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5961 See \`config.log' for more details." >&5
5962 echo "$as_me: error: cannot run test program while cross compiling
5963 See \`config.log' for more details." >&2;}
5964 { (exit 1); exit 1; }; }
5965 else
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5973 long longval () { return (long) (sizeof (__int64)); }
5974 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5975 #include <stdio.h>
5976 #include <stdlib.h>
5978 main ()
5981 FILE *f = fopen ("conftest.val", "w");
5982 if (! f)
5983 exit (1);
5984 if (((long) (sizeof (__int64))) < 0)
5986 long i = longval ();
5987 if (i != ((long) (sizeof (__int64))))
5988 exit (1);
5989 fprintf (f, "%ld\n", i);
5991 else
5993 unsigned long i = ulongval ();
5994 if (i != ((long) (sizeof (__int64))))
5995 exit (1);
5996 fprintf (f, "%lu\n", i);
5998 exit (ferror (f) || fclose (f) != 0);
6001 return 0;
6003 _ACEOF
6004 rm -f conftest$ac_exeext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6015 ac_cv_sizeof___int64=`cat conftest.val`
6016 else
6017 echo "$as_me: program exited with status $ac_status" >&5
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 ( exit $ac_status )
6022 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6023 See \`config.log' for more details." >&5
6024 echo "$as_me: error: cannot compute sizeof (__int64), 77
6025 See \`config.log' for more details." >&2;}
6026 { (exit 1); exit 1; }; }
6028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6031 rm -f conftest.val
6032 else
6033 ac_cv_sizeof___int64=0
6036 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6037 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6038 cat >>confdefs.h <<_ACEOF
6039 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6040 _ACEOF
6046 # ---------------------
6047 # Warnings and checking
6048 # ---------------------
6050 # Check $CC warning features (if it's GCC).
6051 # We want to use -pedantic, but we don't want warnings about
6052 # * 'long long'
6053 # * variadic macros
6054 # So, we only use -pedantic if we can disable those warnings.
6056 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6057 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6058 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 save_CFLAGS="$CFLAGS"
6062 CFLAGS="-Wno-long-long"
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6070 _ACEOF
6071 rm -f conftest.$ac_objext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -z "$ac_c_werror_flag"
6081 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 ac_cv_prog_cc_w_no_long_long=yes
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 ac_cv_prog_cc_w_no_long_long=no
6100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6101 CFLAGS="$save_CFLAGS"
6104 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6105 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6107 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6108 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6109 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 save_CFLAGS="$CFLAGS"
6113 CFLAGS="-Wno-variadic-macros"
6114 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h. */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6121 _ACEOF
6122 rm -f conftest.$ac_objext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6124 (eval $ac_compile) 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -z "$ac_c_werror_flag"
6132 || test ! -s conftest.err'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try='test -s conftest.$ac_objext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 (eval $ac_try) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 ac_cv_prog_cc_w_no_variadic_macros=yes
6145 else
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6149 ac_cv_prog_cc_w_no_variadic_macros=no
6151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6152 CFLAGS="$save_CFLAGS"
6155 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6156 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6158 strict1_warn=
6159 if test $ac_cv_prog_cc_w_no_long_long = yes \
6160 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6161 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6165 # Add -Wold-style-definition if it's accepted
6166 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6167 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6168 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171 save_CFLAGS="$CFLAGS"
6172 CFLAGS="-Wold-style-definition"
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6180 _ACEOF
6181 rm -f conftest.$ac_objext
6182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6183 (eval $ac_compile) 2>conftest.er1
6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try='test -z "$ac_c_werror_flag"
6191 || test ! -s conftest.err'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 (eval $ac_try) 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; } &&
6197 { ac_try='test -s conftest.$ac_objext'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 (eval $ac_try) 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6203 ac_cv_prog_cc_w_old_style_definition=yes
6204 else
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 ac_cv_prog_cc_w_old_style_definition=no
6210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6211 CFLAGS="$save_CFLAGS"
6214 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6215 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6216 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6217 strict1_warn="${strict1_warn} -Wold-style-definition"
6220 # Enable -Werror, period.
6221 # Check whether --enable-werror_always or --disable-werror_always was given.
6222 if test "${enable_werror_always+set}" = set; then
6223 enableval="$enable_werror_always"
6225 else
6226 enable_werror_always=no
6228 if test x${enable_werror_always} = xyes ; then
6229 strict1_warn="${strict1_warn} -Werror"
6230 WERROR=-Werror
6233 # If the native compiler is GCC, we can enable warnings even in stage1.
6234 # That's useful for people building cross-compilers, or just running a
6235 # quick `make'.
6236 warn_cflags=
6237 if test "x$GCC" = "xyes"; then
6238 warn_cflags='$(GCC_WARN_CFLAGS)'
6242 # Enable -Werror in bootstrap stage2 and later.
6243 is_release=
6244 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6245 is_release=yes
6247 # Check whether --enable-werror or --disable-werror was given.
6248 if test "${enable_werror+set}" = set; then
6249 enableval="$enable_werror"
6251 else
6252 if test x$is_release = x ; then
6253 # Default to "yes" on development branches.
6254 enable_werror=yes
6255 else
6256 # Default to "no" on release branches.
6257 enable_werror=no
6260 if test x$enable_werror = xyes ; then
6261 WERROR=-Werror
6265 # Enable expensive internal checks
6266 # Check whether --enable-checking or --disable-checking was given.
6267 if test "${enable_checking+set}" = set; then
6268 enableval="$enable_checking"
6269 ac_checking_flags="${enableval}"
6270 else
6272 # Determine the default checks.
6273 if test x$is_release = x ; then
6274 ac_checking_flags=yes
6275 else
6276 ac_checking_flags=release
6279 ac_assert_checking=1
6280 ac_checking=
6281 ac_fold_checking=
6282 ac_gc_checking=
6283 ac_gc_always_collect=
6284 ac_rtl_checking=
6285 ac_rtlflag_checking=
6286 ac_runtime_checking=1
6287 ac_tree_checking=
6288 ac_valgrind_checking=
6289 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6290 for check in $ac_checking_flags
6292 case $check in
6293 # these set all the flags to specific states
6294 yes) ac_assert_checking=1 ; ac_checking=1 ;
6295 ac_fold_checking= ; ac_gc_checking=1 ;
6296 ac_gc_always_collect= ; ac_rtl_checking= ;
6297 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6298 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6299 no|none) ac_assert_checking= ; ac_checking= ;
6300 ac_fold_checking= ; ac_gc_checking= ;
6301 ac_gc_always_collect= ; ac_rtl_checking= ;
6302 ac_rtlflag_checking= ; ac_runtime_checking= ;
6303 ac_tree_checking= ; ac_valgrind_checking= ;;
6304 all) ac_assert_checking=1 ; ac_checking=1 ;
6305 ac_fold_checking=1 ; ac_gc_checking=1 ;
6306 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6307 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6308 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6309 release) ac_assert_checking=1 ; ac_checking= ;
6310 ac_fold_checking= ; ac_gc_checking= ;
6311 ac_gc_always_collect= ; ac_rtl_checking= ;
6312 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6313 ac_tree_checking= ; ac_valgrind_checking= ;;
6314 # these enable particular checks
6315 assert) ac_assert_checking=1 ;;
6316 fold) ac_fold_checking=1 ;;
6317 gc) ac_gc_checking=1 ;;
6318 gcac) ac_gc_always_collect=1 ;;
6319 misc) ac_checking=1 ;;
6320 rtl) ac_rtl_checking=1 ;;
6321 rtlflag) ac_rtlflag_checking=1 ;;
6322 runtime) ac_runtime_checking=1 ;;
6323 tree) ac_tree_checking=1 ;;
6324 valgrind) ac_valgrind_checking=1 ;;
6325 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6326 echo "$as_me: error: unknown check category $check" >&2;}
6327 { (exit 1); exit 1; }; } ;;
6328 esac
6329 done
6330 IFS="$ac_save_IFS"
6332 nocommon_flag=""
6333 if test x$ac_checking != x ; then
6335 cat >>confdefs.h <<\_ACEOF
6336 #define ENABLE_CHECKING 1
6337 _ACEOF
6339 nocommon_flag=-fno-common
6342 if test x$ac_assert_checking != x ; then
6344 cat >>confdefs.h <<\_ACEOF
6345 #define ENABLE_ASSERT_CHECKING 1
6346 _ACEOF
6350 if test x$ac_runtime_checking != x ; then
6352 cat >>confdefs.h <<\_ACEOF
6353 #define ENABLE_RUNTIME_CHECKING 1
6354 _ACEOF
6357 if test x$ac_tree_checking != x ; then
6359 cat >>confdefs.h <<\_ACEOF
6360 #define ENABLE_TREE_CHECKING 1
6361 _ACEOF
6363 TREEBROWSER=tree-browser.o
6366 if test x$ac_rtl_checking != x ; then
6368 cat >>confdefs.h <<\_ACEOF
6369 #define ENABLE_RTL_CHECKING 1
6370 _ACEOF
6373 if test x$ac_rtlflag_checking != x ; then
6375 cat >>confdefs.h <<\_ACEOF
6376 #define ENABLE_RTL_FLAG_CHECKING 1
6377 _ACEOF
6380 if test x$ac_gc_checking != x ; then
6382 cat >>confdefs.h <<\_ACEOF
6383 #define ENABLE_GC_CHECKING 1
6384 _ACEOF
6387 if test x$ac_gc_always_collect != x ; then
6389 cat >>confdefs.h <<\_ACEOF
6390 #define ENABLE_GC_ALWAYS_COLLECT 1
6391 _ACEOF
6394 if test x$ac_fold_checking != x ; then
6396 cat >>confdefs.h <<\_ACEOF
6397 #define ENABLE_FOLD_CHECKING 1
6398 _ACEOF
6401 valgrind_path_defines=
6402 valgrind_command=
6404 if test "${ac_cv_header_valgrind_h+set}" = set; then
6405 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6406 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6407 if test "${ac_cv_header_valgrind_h+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6411 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6412 else
6413 # Is the header compilable?
6414 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6415 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6423 #include <valgrind.h>
6424 _ACEOF
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -z "$ac_c_werror_flag"
6435 || test ! -s conftest.err'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 (eval $ac_try) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 ac_header_compiler=yes
6448 else
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_header_compiler=no
6454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456 echo "${ECHO_T}$ac_header_compiler" >&6
6458 # Is the header present?
6459 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6460 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <valgrind.h>
6468 _ACEOF
6469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } >/dev/null; then
6477 if test -s conftest.err; then
6478 ac_cpp_err=$ac_c_preproc_warn_flag
6479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6480 else
6481 ac_cpp_err=
6483 else
6484 ac_cpp_err=yes
6486 if test -z "$ac_cpp_err"; then
6487 ac_header_preproc=yes
6488 else
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 ac_header_preproc=no
6494 rm -f conftest.err conftest.$ac_ext
6495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6496 echo "${ECHO_T}$ac_header_preproc" >&6
6498 # So? What about this header?
6499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6500 yes:no: )
6501 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6502 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6504 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6505 ac_header_preproc=yes
6507 no:yes:* )
6508 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6509 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6511 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6512 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6513 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6515 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6517 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6519 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6521 cat <<\_ASBOX
6522 ## ------------------------------------------ ##
6523 ## Report this to the AC_PACKAGE_NAME lists. ##
6524 ## ------------------------------------------ ##
6525 _ASBOX
6527 sed "s/^/$as_me: WARNING: /" >&2
6529 esac
6530 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6531 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6532 if test "${ac_cv_header_valgrind_h+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535 ac_cv_header_valgrind_h=$ac_header_preproc
6537 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6538 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6541 if test $ac_cv_header_valgrind_h = yes; then
6542 have_valgrind_h=yes
6543 else
6544 have_valgrind_h=no
6549 if test x$ac_valgrind_checking != x ; then
6550 # It is certainly possible that there's valgrind but no valgrind.h.
6551 # GCC relies on making annotations so we must have both.
6552 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6553 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 #include <valgrind/memcheck.h>
6561 #ifndef VALGRIND_DISCARD
6562 #error VALGRIND_DISCARD not defined
6563 #endif
6564 _ACEOF
6565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6567 ac_status=$?
6568 grep -v '^ *+' conftest.er1 >conftest.err
6569 rm -f conftest.er1
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } >/dev/null; then
6573 if test -s conftest.err; then
6574 ac_cpp_err=$ac_c_preproc_warn_flag
6575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6576 else
6577 ac_cpp_err=
6579 else
6580 ac_cpp_err=yes
6582 if test -z "$ac_cpp_err"; then
6583 gcc_cv_header_valgrind_memcheck_h=yes
6584 else
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6588 gcc_cv_header_valgrind_memcheck_h=no
6590 rm -f conftest.err conftest.$ac_ext
6591 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6592 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6593 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6594 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <memcheck.h>
6602 #ifndef VALGRIND_DISCARD
6603 #error VALGRIND_DISCARD not defined
6604 #endif
6605 _ACEOF
6606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } >/dev/null; then
6614 if test -s conftest.err; then
6615 ac_cpp_err=$ac_c_preproc_warn_flag
6616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6617 else
6618 ac_cpp_err=
6620 else
6621 ac_cpp_err=yes
6623 if test -z "$ac_cpp_err"; then
6624 gcc_cv_header_memcheck_h=yes
6625 else
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 gcc_cv_header_memcheck_h=no
6631 rm -f conftest.err conftest.$ac_ext
6632 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6633 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6635 # Prepare PATH_SEPARATOR.
6636 # The user is always right.
6637 if test "${PATH_SEPARATOR+set}" != set; then
6638 echo "#! /bin/sh" >conf$$.sh
6639 echo "exit 0" >>conf$$.sh
6640 chmod +x conf$$.sh
6641 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6642 PATH_SEPARATOR=';'
6643 else
6644 PATH_SEPARATOR=:
6646 rm -f conf$$.sh
6649 # Find out how to test for executable files. Don't use a zero-byte file,
6650 # as systems may use methods other than mode bits to determine executability.
6651 cat >conf$$.file <<_ASEOF
6652 #! /bin/sh
6653 exit 0
6654 _ASEOF
6655 chmod +x conf$$.file
6656 if test -x conf$$.file >/dev/null 2>&1; then
6657 ac_executable_p="test -x"
6658 else
6659 ac_executable_p="test -f"
6661 rm -f conf$$.file
6663 # Extract the first word of "valgrind", so it can be a program name with args.
6664 set dummy valgrind; ac_word=$2
6665 echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6667 if test "${ac_cv_path_valgrind_path+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670 case "$valgrind_path" in
6671 [\\/]* | ?:[\\/]*)
6672 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6675 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6676 for ac_dir in $PATH; do
6677 IFS="$ac_save_IFS"
6678 test -z "$ac_dir" && ac_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6681 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6682 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6683 break 2
6686 done
6687 done
6688 IFS="$ac_save_IFS"
6690 esac
6692 valgrind_path="$ac_cv_path_valgrind_path"
6693 if test -n "$valgrind_path"; then
6694 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6695 echo "${ECHO_T}$valgrind_path" >&6
6696 else
6697 echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6
6701 if test "x$valgrind_path" = "x" \
6702 || (test $have_valgrind_h = no \
6703 && test $gcc_cv_header_memcheck_h = no \
6704 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6705 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6706 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6707 { (exit 1); exit 1; }; }
6709 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6710 valgrind_command="$valgrind_path -q"
6712 cat >>confdefs.h <<\_ACEOF
6713 #define ENABLE_VALGRIND_CHECKING 1
6714 _ACEOF
6716 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6718 cat >>confdefs.h <<\_ACEOF
6719 #define HAVE_VALGRIND_MEMCHECK_H 1
6720 _ACEOF
6723 if test $gcc_cv_header_memcheck_h = yes; then
6725 cat >>confdefs.h <<\_ACEOF
6726 #define HAVE_MEMCHECK_H 1
6727 _ACEOF
6734 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6735 if test "${enable_mapped_location+set}" = set; then
6736 enableval="$enable_mapped_location"
6738 else
6739 enable_mapped_location=no
6742 if test "$enable_mapped_location" = yes ; then
6744 cat >>confdefs.h <<\_ACEOF
6745 #define USE_MAPPED_LOCATION 1
6746 _ACEOF
6750 # Enable code coverage collection
6751 # Check whether --enable-coverage or --disable-coverage was given.
6752 if test "${enable_coverage+set}" = set; then
6753 enableval="$enable_coverage"
6754 case "${enableval}" in
6755 yes|noopt)
6756 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6758 opt)
6759 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6762 # a.k.a. --disable-coverage
6763 coverage_flags=""
6766 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6767 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6768 { (exit 1); exit 1; }; }
6770 esac
6771 else
6772 coverage_flags=""
6776 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6777 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6778 enableval="$enable_gather_detailed_mem_stats"
6780 else
6781 enable_gather_detailed_mem_stats=no
6783 if test x$enable_gather_detailed_mem_stats = xyes ; then
6785 cat >>confdefs.h <<\_ACEOF
6786 #define GATHER_STATISTICS 1
6787 _ACEOF
6791 # -------------------------------
6792 # Miscenalleous configure options
6793 # -------------------------------
6795 # With stabs
6797 # Check whether --with-stabs or --without-stabs was given.
6798 if test "${with_stabs+set}" = set; then
6799 withval="$with_stabs"
6800 stabs="$with_stabs"
6801 else
6802 stabs=no
6805 # Determine whether or not multilibs are enabled.
6806 # Check whether --enable-multilib or --disable-multilib was given.
6807 if test "${enable_multilib+set}" = set; then
6808 enableval="$enable_multilib"
6810 else
6811 enable_multilib=yes
6815 # Enable __cxa_atexit for C++.
6816 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6817 if test "${enable___cxa_atexit+set}" = set; then
6818 enableval="$enable___cxa_atexit"
6822 # Enable threads
6823 # Pass with no value to take the default
6824 # Pass with a value to specify a thread package
6825 # Check whether --enable-threads or --disable-threads was given.
6826 if test "${enable_threads+set}" = set; then
6827 enableval="$enable_threads"
6829 else
6830 enable_threads=''
6833 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6834 if test "${enable_objc_gc+set}" = set; then
6835 enableval="$enable_objc_gc"
6836 if test x$enable_objc_gc = xno; then
6837 objc_boehm_gc=''
6838 else
6839 objc_boehm_gc=1
6841 else
6842 objc_boehm_gc=''
6846 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6847 if test "${with_dwarf2+set}" = set; then
6848 withval="$with_dwarf2"
6849 dwarf2="$with_dwarf2"
6850 else
6851 dwarf2=no
6854 # Check whether --enable-shared or --disable-shared was given.
6855 if test "${enable_shared+set}" = set; then
6856 enableval="$enable_shared"
6858 case $enable_shared in
6859 yes | no) ;;
6861 enable_shared=no
6862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6863 for pkg in $enableval; do
6864 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6865 enable_shared=yes
6867 done
6868 IFS="$ac_save_ifs"
6870 esac
6872 else
6873 enable_shared=yes
6878 # Check whether --with-sysroot or --without-sysroot was given.
6879 if test "${with_sysroot+set}" = set; then
6880 withval="$with_sysroot"
6882 case ${with_sysroot} in
6883 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6884 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6885 esac
6887 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6888 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6890 if test "x$exec_prefix" = xNONE; then
6891 if test "x$prefix" = xNONE; then
6892 test_prefix=/usr/local
6893 else
6894 test_prefix=$prefix
6896 else
6897 test_prefix=$exec_prefix
6899 case ${TARGET_SYSTEM_ROOT} in
6900 "${test_prefix}"|"${test_prefix}/"*|\
6901 '${exec_prefix}'|'${exec_prefix}/'*)
6902 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6903 TARGET_SYSTEM_ROOT_DEFINE="$t"
6905 esac
6907 else
6909 TARGET_SYSTEM_ROOT=
6910 TARGET_SYSTEM_ROOT_DEFINE=
6911 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6918 # Build with intermodule optimisations
6919 # Check whether --enable-intermodule or --disable-intermodule was given.
6920 if test "${enable_intermodule+set}" = set; then
6921 enableval="$enable_intermodule"
6922 case ${enable_intermodule} in
6923 yes) onestep="-onestep";;
6924 *) onestep="";;
6925 esac
6926 else
6927 onestep=""
6931 # Sanity check enable_languages in case someone does not run the toplevel
6932 # configure # script.
6933 # Check whether --enable-languages or --disable-languages was given.
6934 if test "${enable_languages+set}" = set; then
6935 enableval="$enable_languages"
6936 case ,${enable_languages}, in
6937 ,,|,yes,)
6938 # go safe -- we cannot be much sure without the toplevel
6939 # configure's
6940 # analysis of which target libs are present and usable
6941 enable_languages=c
6943 *,all,*)
6944 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6945 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6946 { (exit 1); exit 1; }; }
6948 *,c,*)
6951 enable_languages=c,${enable_languages}
6953 esac
6954 else
6955 enable_languages=c
6958 subdirs=
6959 for lang in ${srcdir}/*/config-lang.in
6961 case $lang in
6962 # The odd quoting in the next line works around
6963 # an apparent bug in bash 1.12 on linux.
6964 ${srcdir}/[*]/config-lang.in) ;;
6966 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6967 if test "x$lang_alias" = x
6968 then
6969 echo "$lang doesn't set \$language." 1>&2
6970 exit 1
6972 case ",$enable_languages," in
6973 *,$lang_alias,*)
6974 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6975 esac
6977 esac
6978 done
6981 # -------------------------
6982 # Checks for other programs
6983 # -------------------------
6985 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6986 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6987 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6988 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 cat >conftest.make <<\_ACEOF
6992 all:
6993 @echo 'ac_maketemp="$(MAKE)"'
6994 _ACEOF
6995 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6996 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6997 if test -n "$ac_maketemp"; then
6998 eval ac_cv_prog_make_${ac_make}_set=yes
6999 else
7000 eval ac_cv_prog_make_${ac_make}_set=no
7002 rm -f conftest.make
7004 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7005 echo "$as_me:$LINENO: result: yes" >&5
7006 echo "${ECHO_T}yes" >&6
7007 SET_MAKE=
7008 else
7009 echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6
7011 SET_MAKE="MAKE=${MAKE-make}"
7015 # Find some useful tools
7016 for ac_prog in gawk mawk nawk awk
7018 # Extract the first word of "$ac_prog", so it can be a program name with args.
7019 set dummy $ac_prog; ac_word=$2
7020 echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7022 if test "${ac_cv_prog_AWK+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025 if test -n "$AWK"; then
7026 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_AWK="$ac_prog"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7039 done
7040 done
7044 AWK=$ac_cv_prog_AWK
7045 if test -n "$AWK"; then
7046 echo "$as_me:$LINENO: result: $AWK" >&5
7047 echo "${ECHO_T}$AWK" >&6
7048 else
7049 echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6
7053 test -n "$AWK" && break
7054 done
7056 # We need awk to create options.c and options.h.
7057 # Bail out if it's missing.
7058 case ${AWK} in
7059 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7060 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7061 { (exit 1); exit 1; }; } ;;
7062 esac
7064 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7065 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7066 if test "${gcc_cv_prog_LN_S+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 rm -f conftestdata_t
7070 echo >conftestdata_f
7071 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7072 then
7073 gcc_cv_prog_LN_S="ln -s"
7074 else
7075 if ln conftestdata_f conftestdata_t 2>/dev/null
7076 then
7077 gcc_cv_prog_LN_S=ln
7078 else
7079 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7080 then
7081 gcc_cv_prog_LN_S="cp -p"
7082 else
7083 gcc_cv_prog_LN_S=cp
7087 rm -f conftestdata_f conftestdata_t
7090 LN_S="$gcc_cv_prog_LN_S"
7091 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7092 echo "$as_me:$LINENO: result: yes" >&5
7093 echo "${ECHO_T}yes" >&6
7094 else
7095 if test "$gcc_cv_prog_LN_S" = "ln"; then
7096 echo "$as_me:$LINENO: result: no, using ln" >&5
7097 echo "${ECHO_T}no, using ln" >&6
7098 else
7099 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7100 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7104 echo "$as_me:$LINENO: checking whether ln works" >&5
7105 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7106 if test "${acx_cv_prog_LN+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 rm -f conftestdata_t
7110 echo >conftestdata_f
7111 if ln conftestdata_f conftestdata_t 2>/dev/null
7112 then
7113 acx_cv_prog_LN=ln
7114 else
7115 acx_cv_prog_LN=no
7117 rm -f conftestdata_f conftestdata_t
7120 if test $acx_cv_prog_LN = no; then
7121 LN="$LN_S"
7122 echo "$as_me:$LINENO: result: no, using $LN" >&5
7123 echo "${ECHO_T}no, using $LN" >&6
7124 else
7125 LN="$acx_cv_prog_LN"
7126 echo "$as_me:$LINENO: result: yes" >&5
7127 echo "${ECHO_T}yes" >&6
7130 if test -n "$ac_tool_prefix"; then
7131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7133 echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7135 if test "${ac_cv_prog_RANLIB+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138 if test -n "$RANLIB"; then
7139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7152 done
7153 done
7157 RANLIB=$ac_cv_prog_RANLIB
7158 if test -n "$RANLIB"; then
7159 echo "$as_me:$LINENO: result: $RANLIB" >&5
7160 echo "${ECHO_T}$RANLIB" >&6
7161 else
7162 echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6
7167 if test -z "$ac_cv_prog_RANLIB"; then
7168 ac_ct_RANLIB=$RANLIB
7169 # Extract the first word of "ranlib", so it can be a program name with args.
7170 set dummy ranlib; ac_word=$2
7171 echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7173 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176 if test -n "$ac_ct_RANLIB"; then
7177 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_ac_ct_RANLIB="ranlib"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7190 done
7191 done
7193 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7196 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7197 if test -n "$ac_ct_RANLIB"; then
7198 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7199 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7200 else
7201 echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6
7205 RANLIB=$ac_ct_RANLIB
7206 else
7207 RANLIB="$ac_cv_prog_RANLIB"
7210 case "${host}" in
7211 *-*-darwin*)
7212 # By default, the Darwin ranlib will not treat common symbols as
7213 # definitions when building the archive table of contents. Other
7214 # ranlibs do that; pass an option to the Darwin ranlib that makes
7215 # it behave similarly.
7216 ranlib_flags="-c"
7219 ranlib_flags=""
7220 esac
7223 # Find a good install program. We prefer a C program (faster),
7224 # so one script is as good as another. But avoid the broken or
7225 # incompatible versions:
7226 # SysV /etc/install, /usr/sbin/install
7227 # SunOS /usr/etc/install
7228 # IRIX /sbin/install
7229 # AIX /bin/install
7230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7232 # ./install, which can be erroneously created by make from ./install.sh.
7233 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7234 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7235 if test -z "$INSTALL"; then
7236 if test "${ac_cv_path_install+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7240 for ac_dir in $PATH; do
7241 # Account for people who put trailing slashes in PATH elements.
7242 case "$ac_dir/" in
7243 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7245 # OSF1 and SCO ODT 3.0 have their own names for install.
7246 for ac_prog in ginstall scoinst install; do
7247 if test -f $ac_dir/$ac_prog; then
7248 if test $ac_prog = install &&
7249 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7250 # AIX install. It has an incompatible calling convention.
7251 # OSF/1 installbsd also uses dspmsg, but is usable.
7253 else
7254 ac_cv_path_install="$ac_dir/$ac_prog -c"
7255 break 2
7258 done
7260 esac
7261 done
7262 IFS="$ac_save_IFS"
7265 if test "${ac_cv_path_install+set}" = set; then
7266 INSTALL="$ac_cv_path_install"
7267 else
7268 # As a last resort, use the slow shell script. We don't cache a
7269 # path for INSTALL within a source directory, because that will
7270 # break other packages using the cache if that directory is
7271 # removed, or if the path is relative.
7272 INSTALL="$ac_install_sh"
7275 echo "$as_me:$LINENO: result: $INSTALL" >&5
7276 echo "${ECHO_T}$INSTALL" >&6
7278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7279 # It thinks the first close brace ends the variable substitution.
7280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7285 # See if cmp has --ignore-initial.
7286 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7287 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7288 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 echo abfoo >t1
7292 echo cdfoo >t2
7293 gcc_cv_prog_cmp_skip=slowcompare
7294 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7295 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7297 else
7298 gcc_cv_prog_cmp_skip=gnucompare
7301 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7302 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7303 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7305 else
7306 gcc_cv_prog_cmp_skip=fastcompare
7310 rm t1 t2
7313 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7314 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7315 make_compare_target=$gcc_cv_prog_cmp_skip
7319 # See if we have the mktemp command.
7320 # Extract the first word of "mktemp", so it can be a program name with args.
7321 set dummy mktemp; ac_word=$2
7322 echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7324 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 if test -n "$have_mktemp_command"; then
7328 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_have_mktemp_command="yes"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7341 done
7342 done
7344 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7347 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7348 if test -n "$have_mktemp_command"; then
7349 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7350 echo "${ECHO_T}$have_mktemp_command" >&6
7351 else
7352 echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6
7357 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7359 # See if makeinfo has been installed and is modern enough
7360 # that we can use it.
7361 # Extract the first word of "makeinfo", so it can be a program name with args.
7362 set dummy makeinfo; ac_word=$2
7363 echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7365 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368 if test -n "$MAKEINFO"; then
7369 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7378 ac_cv_prog_MAKEINFO="makeinfo"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7382 done
7383 done
7387 MAKEINFO=$ac_cv_prog_MAKEINFO
7388 if test -n "$MAKEINFO"; then
7389 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7390 echo "${ECHO_T}$MAKEINFO" >&6
7391 else
7392 echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6
7396 if test -n "$MAKEINFO"; then
7397 # Found it, now check the version.
7398 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7399 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7400 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403 ac_prog_version=`$MAKEINFO --version 2>&1 |
7404 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7405 echo "configure:7405: version of makeinfo is $ac_prog_version" >&5
7406 case $ac_prog_version in
7407 '') gcc_cv_prog_makeinfo_modern=no;;
7408 4.[2-9]*)
7409 gcc_cv_prog_makeinfo_modern=yes;;
7410 *) gcc_cv_prog_makeinfo_modern=no;;
7411 esac
7414 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7415 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7416 else
7417 gcc_cv_prog_makeinfo_modern=no
7420 if test $gcc_cv_prog_makeinfo_modern = no; then
7421 MAKEINFO="$MISSING makeinfo"
7422 { echo "$as_me:$LINENO: WARNING:
7423 *** Makeinfo is missing or too old.
7424 *** Info documentation will not be built." >&5
7425 echo "$as_me: WARNING:
7426 *** Makeinfo is missing or too old.
7427 *** Info documentation will not be built." >&2;}
7428 BUILD_INFO=
7429 else
7430 BUILD_INFO=info
7434 # Is pod2man recent enough to regenerate manpages?
7435 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7436 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7437 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7438 echo "$as_me:$LINENO: result: yes" >&5
7439 echo "${ECHO_T}yes" >&6
7440 GENERATED_MANPAGES=generated-manpages
7441 else
7442 echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6
7444 GENERATED_MANPAGES=
7448 # How about lex?
7449 for ac_prog in flex
7451 # Extract the first word of "$ac_prog", so it can be a program name with args.
7452 set dummy $ac_prog; ac_word=$2
7453 echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7455 if test "${ac_cv_prog_FLEX+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458 if test -n "$FLEX"; then
7459 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_FLEX="$ac_prog"
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7472 done
7473 done
7477 FLEX=$ac_cv_prog_FLEX
7478 if test -n "$FLEX"; then
7479 echo "$as_me:$LINENO: result: $FLEX" >&5
7480 echo "${ECHO_T}$FLEX" >&6
7481 else
7482 echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6
7486 test -n "$FLEX" && break
7487 done
7488 test -n "$FLEX" || FLEX="$MISSING flex"
7491 # Bison?
7492 for ac_prog in bison
7494 # Extract the first word of "$ac_prog", so it can be a program name with args.
7495 set dummy $ac_prog; ac_word=$2
7496 echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7498 if test "${ac_cv_prog_BISON+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 if test -n "$BISON"; then
7502 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_BISON="$ac_prog"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7515 done
7516 done
7520 BISON=$ac_cv_prog_BISON
7521 if test -n "$BISON"; then
7522 echo "$as_me:$LINENO: result: $BISON" >&5
7523 echo "${ECHO_T}$BISON" >&6
7524 else
7525 echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6
7529 test -n "$BISON" && break
7530 done
7531 test -n "$BISON" || BISON="$MISSING bison"
7534 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7535 # check for build == host before using them.
7537 # NM
7538 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7539 && test -d ../binutils ; then
7540 NM='$(objdir)/../binutils/nm-new'
7541 else
7542 # Extract the first word of "nm", so it can be a program name with args.
7543 set dummy nm; ac_word=$2
7544 echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546 if test "${ac_cv_prog_NM+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549 if test -n "$NM"; then
7550 ac_cv_prog_NM="$NM" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_NM="nm"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7563 done
7564 done
7566 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7569 NM=$ac_cv_prog_NM
7570 if test -n "$NM"; then
7571 echo "$as_me:$LINENO: result: $NM" >&5
7572 echo "${ECHO_T}$NM" >&6
7573 else
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7580 # AR
7581 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7582 && test -d ../binutils ; then
7583 AR='$(objdir)/../binutils/ar'
7584 else
7585 # Extract the first word of "ar", so it can be a program name with args.
7586 set dummy ar; ac_word=$2
7587 echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7589 if test "${ac_cv_prog_AR+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592 if test -n "$AR"; then
7593 ac_cv_prog_AR="$AR" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_AR="ar"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7606 done
7607 done
7609 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7612 AR=$ac_cv_prog_AR
7613 if test -n "$AR"; then
7614 echo "$as_me:$LINENO: result: $AR" >&5
7615 echo "${ECHO_T}$AR" >&6
7616 else
7617 echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6
7624 # --------------------
7625 # Checks for C headers
7626 # --------------------
7628 echo "$as_me:$LINENO: checking for GNU C library" >&5
7629 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7630 if test "${gcc_cv_glibc+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633 cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h. */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 #include <features.h>
7641 main ()
7644 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7645 #error Not a GNU C library system
7646 #endif
7648 return 0;
7650 _ACEOF
7651 rm -f conftest.$ac_objext
7652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7653 (eval $ac_compile) 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } &&
7660 { ac_try='test -z "$ac_c_werror_flag"
7661 || test ! -s conftest.err'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; } &&
7667 { ac_try='test -s conftest.$ac_objext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 gcc_cv_glibc=yes
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 gcc_cv_glibc=no
7680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7683 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7684 echo "${ECHO_T}$gcc_cv_glibc" >&6
7685 if test $gcc_cv_glibc = yes; then
7687 cat >>confdefs.h <<\_ACEOF
7688 #define _GNU_SOURCE 1
7689 _ACEOF
7693 # Need to reject headers which give warnings, so that the -Werror bootstrap
7694 # works later. *sigh* This needs to come before all header checks.
7696 ac_c_preproc_warn_flag=yes
7698 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7699 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7700 if test "${ac_cv_header_stdc+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703 cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h. */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 #include <stdlib.h>
7710 #include <stdarg.h>
7711 #include <string.h>
7712 #include <float.h>
7715 main ()
7719 return 0;
7721 _ACEOF
7722 rm -f conftest.$ac_objext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724 (eval $ac_compile) 2>conftest.er1
7725 ac_status=$?
7726 grep -v '^ *+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 (eval $ac_try) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 ac_cv_header_stdc=yes
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7749 ac_cv_header_stdc=no
7751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7753 if test $ac_cv_header_stdc = yes; then
7754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #include <string.h>
7763 _ACEOF
7764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7765 $EGREP "memchr" >/dev/null 2>&1; then
7767 else
7768 ac_cv_header_stdc=no
7770 rm -f conftest*
7774 if test $ac_cv_header_stdc = yes; then
7775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7776 cat >conftest.$ac_ext <<_ACEOF
7777 /* confdefs.h. */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782 #include <stdlib.h>
7784 _ACEOF
7785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7786 $EGREP "free" >/dev/null 2>&1; then
7788 else
7789 ac_cv_header_stdc=no
7791 rm -f conftest*
7795 if test $ac_cv_header_stdc = yes; then
7796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7797 if test "$cross_compiling" = yes; then
7799 else
7800 cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h. */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7806 #include <ctype.h>
7807 #if ((' ' & 0x0FF) == 0x020)
7808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7810 #else
7811 # define ISLOWER(c) \
7812 (('a' <= (c) && (c) <= 'i') \
7813 || ('j' <= (c) && (c) <= 'r') \
7814 || ('s' <= (c) && (c) <= 'z'))
7815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7816 #endif
7818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7820 main ()
7822 int i;
7823 for (i = 0; i < 256; i++)
7824 if (XOR (islower (i), ISLOWER (i))
7825 || toupper (i) != TOUPPER (i))
7826 exit(2);
7827 exit (0);
7829 _ACEOF
7830 rm -f conftest$ac_exeext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7832 (eval $ac_link) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7842 else
7843 echo "$as_me: program exited with status $ac_status" >&5
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 ( exit $ac_status )
7848 ac_cv_header_stdc=no
7850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7855 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7856 if test $ac_cv_header_stdc = yes; then
7858 cat >>confdefs.h <<\_ACEOF
7859 #define STDC_HEADERS 1
7860 _ACEOF
7864 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7865 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7866 if test "${ac_cv_header_time+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h. */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 #include <sys/types.h>
7876 #include <sys/time.h>
7877 #include <time.h>
7880 main ()
7882 if ((struct tm *) 0)
7883 return 0;
7885 return 0;
7887 _ACEOF
7888 rm -f conftest.$ac_objext
7889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7890 (eval $ac_compile) 2>conftest.er1
7891 ac_status=$?
7892 grep -v '^ *+' conftest.er1 >conftest.err
7893 rm -f conftest.er1
7894 cat conftest.err >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } &&
7897 { ac_try='test -z "$ac_c_werror_flag"
7898 || test ! -s conftest.err'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 (eval $ac_try) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; } &&
7904 { ac_try='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_header_time=yes
7911 else
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7915 ac_cv_header_time=no
7917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7919 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7920 echo "${ECHO_T}$ac_cv_header_time" >&6
7921 if test $ac_cv_header_time = yes; then
7923 cat >>confdefs.h <<\_ACEOF
7924 #define TIME_WITH_SYS_TIME 1
7925 _ACEOF
7929 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7930 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7931 if test "${gcc_cv_header_string+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 #include <string.h>
7941 #include <strings.h>
7943 main ()
7947 return 0;
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952 (eval $ac_compile) 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_c_werror_flag"
7960 || test ! -s conftest.err'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try='test -s conftest.$ac_objext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 gcc_cv_header_string=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 gcc_cv_header_string=no
7979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7981 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7982 echo "${ECHO_T}$gcc_cv_header_string" >&6
7983 if test $gcc_cv_header_string = yes; then
7985 cat >>confdefs.h <<\_ACEOF
7986 #define STRING_WITH_STRINGS 1
7987 _ACEOF
7991 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7992 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7993 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996 cat >conftest.$ac_ext <<_ACEOF
7997 /* confdefs.h. */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 #include <sys/types.h>
8003 #include <sys/wait.h>
8004 #ifndef WEXITSTATUS
8005 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8006 #endif
8007 #ifndef WIFEXITED
8008 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8009 #endif
8012 main ()
8014 int s;
8015 wait (&s);
8016 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8018 return 0;
8020 _ACEOF
8021 rm -f conftest.$ac_objext
8022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8023 (eval $ac_compile) 2>conftest.er1
8024 ac_status=$?
8025 grep -v '^ *+' conftest.er1 >conftest.err
8026 rm -f conftest.er1
8027 cat conftest.err >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try='test -z "$ac_c_werror_flag"
8031 || test ! -s conftest.err'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try='test -s conftest.$ac_objext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 (eval $ac_try) 2>&5
8040 ac_status=$?
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8043 ac_cv_header_sys_wait_h=yes
8044 else
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ac_cv_header_sys_wait_h=no
8050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8052 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8053 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8054 if test $ac_cv_header_sys_wait_h = yes; then
8056 cat >>confdefs.h <<\_ACEOF
8057 #define HAVE_SYS_WAIT_H 1
8058 _ACEOF
8084 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8085 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8086 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8087 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8090 echo "$as_me:$LINENO: checking for $ac_header" >&5
8091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 #include <$ac_header>
8102 _ACEOF
8103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } >/dev/null; then
8111 if test -s conftest.err; then
8112 ac_cpp_err=$ac_c_preproc_warn_flag
8113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8114 else
8115 ac_cpp_err=
8117 else
8118 ac_cpp_err=yes
8120 if test -z "$ac_cpp_err"; then
8121 eval "$as_ac_Header=yes"
8122 else
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 eval "$as_ac_Header=no"
8128 rm -f conftest.err conftest.$ac_ext
8130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8133 cat >>confdefs.h <<_ACEOF
8134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8135 _ACEOF
8138 done
8141 # Check for thread headers.
8142 echo "$as_me:$LINENO: checking for thread.h" >&5
8143 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8144 if test "${ac_cv_header_thread_h+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 #include <thread.h>
8154 _ACEOF
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } >/dev/null; then
8163 if test -s conftest.err; then
8164 ac_cpp_err=$ac_c_preproc_warn_flag
8165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8166 else
8167 ac_cpp_err=
8169 else
8170 ac_cpp_err=yes
8172 if test -z "$ac_cpp_err"; then
8173 ac_cv_header_thread_h=yes
8174 else
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_cv_header_thread_h=no
8180 rm -f conftest.err conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8183 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8184 if test $ac_cv_header_thread_h = yes; then
8185 have_thread_h=yes
8186 else
8187 have_thread_h=
8190 echo "$as_me:$LINENO: checking for pthread.h" >&5
8191 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8192 if test "${ac_cv_header_pthread_h+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195 cat >conftest.$ac_ext <<_ACEOF
8196 /* confdefs.h. */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 #include <pthread.h>
8202 _ACEOF
8203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } >/dev/null; then
8211 if test -s conftest.err; then
8212 ac_cpp_err=$ac_c_preproc_warn_flag
8213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8214 else
8215 ac_cpp_err=
8217 else
8218 ac_cpp_err=yes
8220 if test -z "$ac_cpp_err"; then
8221 ac_cv_header_pthread_h=yes
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_cv_header_pthread_h=no
8228 rm -f conftest.err conftest.$ac_ext
8230 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8231 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8232 if test $ac_cv_header_pthread_h = yes; then
8233 have_pthread_h=yes
8234 else
8235 have_pthread_h=
8239 # These tests can't be done till we know if we have limits.h.
8240 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8241 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8242 if test "${gcc_cv_decl_char_bit+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8251 #ifdef HAVE_LIMITS_H
8252 #include <limits.h>
8253 #endif
8254 #ifdef CHAR_BIT
8255 found
8256 #endif
8257 _ACEOF
8258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8259 $EGREP "found" >/dev/null 2>&1; then
8260 gcc_cv_decl_char_bit=yes
8261 else
8262 gcc_cv_decl_char_bit=no
8264 rm -f conftest*
8268 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8269 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8270 if test $gcc_cv_decl_char_bit = no; then
8271 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8272 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8273 if test "${gcc_cv_c_nbby+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8277 gcc_cv_c_nbby=
8278 while test $i -lt 65; do
8279 cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h. */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8287 main ()
8289 switch(0) {
8290 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8291 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8294 return 0;
8296 _ACEOF
8297 rm -f conftest.$ac_objext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8299 (eval $ac_compile) 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -z "$ac_c_werror_flag"
8307 || test ! -s conftest.err'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 (eval $ac_try) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try='test -s conftest.$ac_objext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 gcc_cv_c_nbby=$i; break
8320 else
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8326 i=`expr $i + 1`
8327 done
8328 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8331 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8332 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8333 if test $gcc_cv_c_nbby = failed; then
8334 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8335 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8336 { (exit 1); exit 1; }; }
8337 else
8339 cat >>confdefs.h <<_ACEOF
8340 #define CHAR_BIT $gcc_cv_c_nbby
8341 _ACEOF
8345 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8346 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8347 if test "${ac_cv_c_bigendian+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350 # See if sys/param.h defines the BYTE_ORDER macro.
8351 cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h. */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 #include <sys/types.h>
8358 #include <sys/param.h>
8361 main ()
8363 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8364 bogus endian macros
8365 #endif
8368 return 0;
8370 _ACEOF
8371 rm -f conftest.$ac_objext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373 (eval $ac_compile) 2>conftest.er1
8374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag"
8381 || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try='test -s conftest.$ac_objext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 # It does; now see whether it defined to BIG_ENDIAN or not.
8394 cat >conftest.$ac_ext <<_ACEOF
8395 /* confdefs.h. */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8400 #include <sys/types.h>
8401 #include <sys/param.h>
8404 main ()
8406 #if BYTE_ORDER != BIG_ENDIAN
8407 not big endian
8408 #endif
8411 return 0;
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest.$ac_objext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_c_bigendian=yes
8437 else
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_c_bigendian=no
8443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8444 else
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8448 # It does not; compile a test program.
8449 if test "$cross_compiling" = yes; then
8450 # try to guess the endianness by grepping values into an object file
8451 ac_cv_c_bigendian=unknown
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h. */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8459 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8460 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8461 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8462 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8463 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8465 main ()
8467 _ascii (); _ebcdic ();
8469 return 0;
8471 _ACEOF
8472 rm -f conftest.$ac_objext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8474 (eval $ac_compile) 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try='test -z "$ac_c_werror_flag"
8482 || test ! -s conftest.err'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; } &&
8488 { ac_try='test -s conftest.$ac_objext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 (eval $ac_try) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8495 ac_cv_c_bigendian=yes
8497 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8498 if test "$ac_cv_c_bigendian" = unknown; then
8499 ac_cv_c_bigendian=no
8500 else
8501 # finding both strings is unlikely to happen, but who knows?
8502 ac_cv_c_bigendian=unknown
8505 else
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8511 else
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8519 main ()
8521 /* Are we little or big endian? From Harbison&Steele. */
8522 union
8524 long l;
8525 char c[sizeof (long)];
8526 } u;
8527 u.l = 1;
8528 exit (u.c[sizeof (long) - 1] == 1);
8530 _ACEOF
8531 rm -f conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533 (eval $ac_link) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_c_bigendian=no
8543 else
8544 echo "$as_me: program exited with status $ac_status" >&5
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 ( exit $ac_status )
8549 ac_cv_c_bigendian=yes
8551 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8557 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8558 case $ac_cv_c_bigendian in
8559 yes)
8561 cat >>confdefs.h <<\_ACEOF
8562 #define WORDS_BIGENDIAN 1
8563 _ACEOF
8568 { { echo "$as_me:$LINENO: error: unknown endianness
8569 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8570 echo "$as_me: error: unknown endianness
8571 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8572 { (exit 1); exit 1; }; } ;;
8573 esac
8576 # --------
8577 # UNSORTED
8578 # --------
8580 # Stage specific cflags for build.
8581 stage1_cflags=
8582 case $build in
8583 vax-*-*)
8584 if test x$GCC = xyes
8585 then
8586 stage1_cflags="-Wa,-J"
8587 else
8588 stage1_cflags="-J"
8591 powerpc-*-darwin*)
8592 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8593 # sources; use -no-cpp-precomp to get to GNU cpp.
8594 # Apple's GCC has bugs in designated initializer handling, so disable
8595 # that too.
8596 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8598 esac
8601 # These libraries may be used by collect2.
8602 # We may need a special search path to get them linked.
8603 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8604 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8605 if test "${gcc_cv_collect2_libs+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608 save_LIBS="$LIBS"
8609 for libs in '' -lld -lmld \
8610 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8611 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8613 LIBS="$libs"
8614 cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h. */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8621 /* Override any gcc2 internal prototype to avoid an error. */
8622 #ifdef __cplusplus
8623 extern "C"
8624 #endif
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8627 char ldopen ();
8629 main ()
8631 ldopen ();
8633 return 0;
8635 _ACEOF
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638 (eval $ac_link) 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try='test -z "$ac_c_werror_flag"
8646 || test ! -s conftest.err'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; } &&
8652 { ac_try='test -s conftest$ac_exeext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 gcc_cv_collect2_libs="$libs"; break
8659 else
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8664 rm -f conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8666 done
8667 LIBS="$save_LIBS"
8668 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8670 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8671 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8672 case $gcc_cv_collect2_libs in
8673 "none required") ;;
8674 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8675 esac
8678 # When building Ada code on Alpha, we need exc_resume which is usually in
8679 # -lexc. So test for it.
8680 save_LIBS="$LIBS"
8681 LIBS=
8682 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8683 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8684 if test "${ac_cv_search_exc_resume+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687 ac_func_search_save_LIBS=$LIBS
8688 ac_cv_search_exc_resume=no
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h. */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8696 /* Override any gcc2 internal prototype to avoid an error. */
8697 #ifdef __cplusplus
8698 extern "C"
8699 #endif
8700 /* We use char because int might match the return type of a gcc2
8701 builtin and then its argument prototype would still apply. */
8702 char exc_resume ();
8704 main ()
8706 exc_resume ();
8708 return 0;
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_cv_search_exc_resume="none required"
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8739 rm -f conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8741 if test "$ac_cv_search_exc_resume" = no; then
8742 for ac_lib in exc; do
8743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8751 /* Override any gcc2 internal prototype to avoid an error. */
8752 #ifdef __cplusplus
8753 extern "C"
8754 #endif
8755 /* We use char because int might match the return type of a gcc2
8756 builtin and then its argument prototype would still apply. */
8757 char exc_resume ();
8759 main ()
8761 exc_resume ();
8763 return 0;
8765 _ACEOF
8766 rm -f conftest.$ac_objext conftest$ac_exeext
8767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8768 (eval $ac_link) 2>conftest.er1
8769 ac_status=$?
8770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } &&
8775 { ac_try='test -z "$ac_c_werror_flag"
8776 || test ! -s conftest.err'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; } &&
8782 { ac_try='test -s conftest$ac_exeext'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 (eval $ac_try) 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 ac_cv_search_exc_resume="-l$ac_lib"
8789 break
8790 else
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8795 rm -f conftest.err conftest.$ac_objext \
8796 conftest$ac_exeext conftest.$ac_ext
8797 done
8799 LIBS=$ac_func_search_save_LIBS
8801 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8802 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8803 if test "$ac_cv_search_exc_resume" != no; then
8804 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8808 GNAT_LIBEXC="$LIBS"
8809 LIBS="$save_LIBS"
8812 # Some systems put ldexp and frexp in libm instead of libc; assume
8813 # they're both in the same place. jcf-dump needs them.
8814 save_LIBS="$LIBS"
8815 LIBS=
8816 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8817 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8818 if test "${ac_cv_search_ldexp+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821 ac_func_search_save_LIBS=$LIBS
8822 ac_cv_search_ldexp=no
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8830 /* Override any gcc2 internal prototype to avoid an error. */
8831 #ifdef __cplusplus
8832 extern "C"
8833 #endif
8834 /* We use char because int might match the return type of a gcc2
8835 builtin and then its argument prototype would still apply. */
8836 char ldexp ();
8838 main ()
8840 ldexp ();
8842 return 0;
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -z "$ac_c_werror_flag"
8855 || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_cv_search_ldexp="none required"
8868 else
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8873 rm -f conftest.err conftest.$ac_objext \
8874 conftest$ac_exeext conftest.$ac_ext
8875 if test "$ac_cv_search_ldexp" = no; then
8876 for ac_lib in m; do
8877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8885 /* Override any gcc2 internal prototype to avoid an error. */
8886 #ifdef __cplusplus
8887 extern "C"
8888 #endif
8889 /* We use char because int might match the return type of a gcc2
8890 builtin and then its argument prototype would still apply. */
8891 char ldexp ();
8893 main ()
8895 ldexp ();
8897 return 0;
8899 _ACEOF
8900 rm -f conftest.$ac_objext conftest$ac_exeext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8902 (eval $ac_link) 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest$ac_exeext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 ac_cv_search_ldexp="-l$ac_lib"
8923 break
8924 else
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8929 rm -f conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931 done
8933 LIBS=$ac_func_search_save_LIBS
8935 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8936 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8937 if test "$ac_cv_search_ldexp" != no; then
8938 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8942 LDEXP_LIB="$LIBS"
8943 LIBS="$save_LIBS"
8946 # Use <inttypes.h> only if it exists,
8947 # doesn't clash with <sys/types.h>, and declares intmax_t.
8948 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8949 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8950 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h. */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 #include <sys/types.h>
8960 #include <inttypes.h>
8962 main ()
8964 intmax_t i = -1;
8966 return 0;
8968 _ACEOF
8969 rm -f conftest.$ac_objext
8970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8971 (eval $ac_compile) 2>conftest.er1
8972 ac_status=$?
8973 grep -v '^ *+' conftest.er1 >conftest.err
8974 rm -f conftest.er1
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -z "$ac_c_werror_flag"
8979 || test ! -s conftest.err'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest.$ac_objext'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 (eval $ac_try) 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 gcc_cv_header_inttypes_h=yes
8992 else
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 gcc_cv_header_inttypes_h=no
8998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9001 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9002 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9003 if test $gcc_cv_header_inttypes_h = yes; then
9005 cat >>confdefs.h <<\_ACEOF
9006 #define HAVE_INTTYPES_H 1
9007 _ACEOF
9049 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
9050 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9051 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9052 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
9054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9055 echo "$as_me:$LINENO: checking for $ac_func" >&5
9056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9057 if eval "test \"\${$as_ac_var+set}\" = set"; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060 cat >conftest.$ac_ext <<_ACEOF
9061 /* confdefs.h. */
9062 _ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9068 #define $ac_func innocuous_$ac_func
9070 /* System header to define __stub macros and hopefully few prototypes,
9071 which can conflict with char $ac_func (); below.
9072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9073 <limits.h> exists even on freestanding compilers. */
9075 #ifdef __STDC__
9076 # include <limits.h>
9077 #else
9078 # include <assert.h>
9079 #endif
9081 #undef $ac_func
9083 /* Override any gcc2 internal prototype to avoid an error. */
9084 #ifdef __cplusplus
9085 extern "C"
9087 #endif
9088 /* We use char because int might match the return type of a gcc2
9089 builtin and then its argument prototype would still apply. */
9090 char $ac_func ();
9091 /* The GNU C library defines this for functions which it implements
9092 to always fail with ENOSYS. Some functions are actually named
9093 something starting with __ and the normal name is an alias. */
9094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9095 choke me
9096 #else
9097 char (*f) () = $ac_func;
9098 #endif
9099 #ifdef __cplusplus
9101 #endif
9104 main ()
9106 return f != $ac_func;
9108 return 0;
9110 _ACEOF
9111 rm -f conftest.$ac_objext conftest$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -z "$ac_c_werror_flag"
9121 || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 eval "$as_ac_var=yes"
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 eval "$as_ac_var=no"
9140 rm -f conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9145 if test `eval echo '${'$as_ac_var'}'` = yes; then
9146 cat >>confdefs.h <<_ACEOF
9147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9148 _ACEOF
9151 done
9154 if test x$ac_cv_func_mbstowcs = xyes; then
9155 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9156 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9157 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160 if test "$cross_compiling" = yes; then
9161 gcc_cv_func_mbstowcs_works=yes
9162 else
9163 cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h. */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9169 #include <stdlib.h>
9170 int main()
9172 mbstowcs(0, "", 0);
9173 return 0;
9175 _ACEOF
9176 rm -f conftest$ac_exeext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9178 (eval $ac_link) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
9187 gcc_cv_func_mbstowcs_works=yes
9188 else
9189 echo "$as_me: program exited with status $ac_status" >&5
9190 echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 ( exit $ac_status )
9194 gcc_cv_func_mbstowcs_works=no
9196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9199 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9200 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9201 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9203 cat >>confdefs.h <<\_ACEOF
9204 #define HAVE_WORKING_MBSTOWCS 1
9205 _ACEOF
9210 echo "$as_me:$LINENO: checking for ssize_t" >&5
9211 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9212 if test "${ac_cv_type_ssize_t+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h. */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 $ac_includes_default
9223 main ()
9225 if ((ssize_t *) 0)
9226 return 0;
9227 if (sizeof (ssize_t))
9228 return 0;
9230 return 0;
9232 _ACEOF
9233 rm -f conftest.$ac_objext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9235 (eval $ac_compile) 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -z "$ac_c_werror_flag"
9243 || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest.$ac_objext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 ac_cv_type_ssize_t=yes
9256 else
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 ac_cv_type_ssize_t=no
9262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9264 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9265 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9266 if test $ac_cv_type_ssize_t = yes; then
9268 else
9270 cat >>confdefs.h <<_ACEOF
9271 #define ssize_t int
9272 _ACEOF
9277 # Try to determine the array type of the second argument of getgroups
9278 # for the target system (int or gid_t).
9279 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9280 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9281 if test "${ac_cv_type_uid_t+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h. */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 #include <sys/types.h>
9292 _ACEOF
9293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9294 $EGREP "uid_t" >/dev/null 2>&1; then
9295 ac_cv_type_uid_t=yes
9296 else
9297 ac_cv_type_uid_t=no
9299 rm -f conftest*
9302 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9303 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9304 if test $ac_cv_type_uid_t = no; then
9306 cat >>confdefs.h <<\_ACEOF
9307 #define uid_t int
9308 _ACEOF
9311 cat >>confdefs.h <<\_ACEOF
9312 #define gid_t int
9313 _ACEOF
9317 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9318 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9319 if test "${ac_cv_type_getgroups+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 else
9322 if test "$cross_compiling" = yes; then
9323 ac_cv_type_getgroups=cross
9324 else
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 /* Thanks to Mike Rendell for this test. */
9332 #include <sys/types.h>
9333 #define NGID 256
9334 #undef MAX
9335 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9338 main ()
9340 gid_t gidset[NGID];
9341 int i, n;
9342 union { gid_t gval; long lval; } val;
9344 val.lval = -1;
9345 for (i = 0; i < NGID; i++)
9346 gidset[i] = val.gval;
9347 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9348 gidset);
9349 /* Exit non-zero if getgroups seems to require an array of ints. This
9350 happens when gid_t is short but getgroups modifies an array of ints. */
9351 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9353 _ACEOF
9354 rm -f conftest$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_type_getgroups=gid_t
9366 else
9367 echo "$as_me: program exited with status $ac_status" >&5
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ( exit $ac_status )
9372 ac_cv_type_getgroups=int
9374 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9376 if test $ac_cv_type_getgroups = cross; then
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h. */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 #include <unistd.h>
9385 _ACEOF
9386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9387 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9388 ac_cv_type_getgroups=gid_t
9389 else
9390 ac_cv_type_getgroups=int
9392 rm -f conftest*
9396 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9397 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9399 cat >>confdefs.h <<_ACEOF
9400 #define GETGROUPS_T $ac_cv_type_getgroups
9401 _ACEOF
9404 if test "${target}" = "${build}"; then
9405 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9406 else
9407 case "${target}" in
9408 # This condition may need some tweaking. It should include all
9409 # targets where the array type of the second argument of getgroups
9410 # is int and the type of gid_t is not equivalent to int.
9411 *-*-sunos* | *-*-ultrix*)
9412 TARGET_GETGROUPS_T=int
9415 TARGET_GETGROUPS_T=gid_t
9417 esac
9421 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9422 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9423 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426 if test "$cross_compiling" = yes; then
9427 gcc_cv_func_printf_ptr=no
9428 else
9429 cat >conftest.$ac_ext <<_ACEOF
9430 /* confdefs.h. */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9435 #include <stdio.h>
9437 int main()
9439 char buf[64];
9440 char *p = buf, *q = NULL;
9441 sprintf(buf, "%p", p);
9442 sscanf(buf, "%p", &q);
9443 return (p != q);
9445 _ACEOF
9446 rm -f conftest$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 (eval $ac_try) 2>&5
9454 ac_status=$?
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
9457 gcc_cv_func_printf_ptr=yes
9458 else
9459 echo "$as_me: program exited with status $ac_status" >&5
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 ( exit $ac_status )
9464 gcc_cv_func_printf_ptr=no
9466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9468 rm -f core core.* *.core
9470 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9471 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9472 if test $gcc_cv_func_printf_ptr = yes ; then
9474 cat >>confdefs.h <<\_ACEOF
9475 #define HAVE_PRINTF_PTR 1
9476 _ACEOF
9481 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9482 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9483 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h. */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 #include <sys/mman.h>
9493 _ACEOF
9494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } >/dev/null; then
9502 if test -s conftest.err; then
9503 ac_cpp_err=$ac_c_preproc_warn_flag
9504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9505 else
9506 ac_cpp_err=
9508 else
9509 ac_cpp_err=yes
9511 if test -z "$ac_cpp_err"; then
9512 ac_cv_header_sys_mman_h=yes
9513 else
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_cv_header_sys_mman_h=no
9519 rm -f conftest.err conftest.$ac_ext
9521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9522 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9523 if test $ac_cv_header_sys_mman_h = yes; then
9524 gcc_header_sys_mman_h=yes
9525 else
9526 gcc_header_sys_mman_h=no
9529 echo "$as_me:$LINENO: checking for mmap" >&5
9530 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9531 if test "${ac_cv_func_mmap+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534 cat >conftest.$ac_ext <<_ACEOF
9535 /* confdefs.h. */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9542 #define mmap innocuous_mmap
9544 /* System header to define __stub macros and hopefully few prototypes,
9545 which can conflict with char mmap (); below.
9546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9547 <limits.h> exists even on freestanding compilers. */
9549 #ifdef __STDC__
9550 # include <limits.h>
9551 #else
9552 # include <assert.h>
9553 #endif
9555 #undef mmap
9557 /* Override any gcc2 internal prototype to avoid an error. */
9558 #ifdef __cplusplus
9559 extern "C"
9561 #endif
9562 /* We use char because int might match the return type of a gcc2
9563 builtin and then its argument prototype would still apply. */
9564 char mmap ();
9565 /* The GNU C library defines this for functions which it implements
9566 to always fail with ENOSYS. Some functions are actually named
9567 something starting with __ and the normal name is an alias. */
9568 #if defined (__stub_mmap) || defined (__stub___mmap)
9569 choke me
9570 #else
9571 char (*f) () = mmap;
9572 #endif
9573 #ifdef __cplusplus
9575 #endif
9578 main ()
9580 return f != mmap;
9582 return 0;
9584 _ACEOF
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9587 (eval $ac_link) 2>conftest.er1
9588 ac_status=$?
9589 grep -v '^ *+' conftest.er1 >conftest.err
9590 rm -f conftest.er1
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -z "$ac_c_werror_flag"
9595 || test ! -s conftest.err'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest$ac_exeext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 (eval $ac_try) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_func_mmap=yes
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_cv_func_mmap=no
9614 rm -f conftest.err conftest.$ac_objext \
9615 conftest$ac_exeext conftest.$ac_ext
9617 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9618 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9619 if test $ac_cv_func_mmap = yes; then
9620 gcc_func_mmap=yes
9621 else
9622 gcc_func_mmap=no
9625 if test "$gcc_header_sys_mman_h" != yes \
9626 || test "$gcc_func_mmap" != yes; then
9627 gcc_cv_func_mmap_file=no
9628 gcc_cv_func_mmap_dev_zero=no
9629 gcc_cv_func_mmap_anon=no
9630 else
9631 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9632 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9633 if test "${gcc_cv_func_mmap_file+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636 # Add a system to this blacklist if
9637 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9638 # memory area containing the same data that you'd get if you applied
9639 # read() to the same fd. The only system known to have a problem here
9640 # is VMS, where text files have record structure.
9641 case "$host_os" in
9642 vms* | ultrix*)
9643 gcc_cv_func_mmap_file=no ;;
9645 gcc_cv_func_mmap_file=yes;;
9646 esac
9648 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9649 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9650 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9651 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9652 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655 # Add a system to this blacklist if it has mmap() but /dev/zero
9656 # does not exist, or if mmapping /dev/zero does not give anonymous
9657 # zeroed pages with both the following properties:
9658 # 1. If you map N consecutive pages in with one call, and then
9659 # unmap any subset of those pages, the pages that were not
9660 # explicitly unmapped remain accessible.
9661 # 2. If you map two adjacent blocks of memory and then unmap them
9662 # both at once, they must both go away.
9663 # Systems known to be in this category are Windows (all variants),
9664 # VMS, and Darwin.
9665 case "$host_os" in
9666 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9667 gcc_cv_func_mmap_dev_zero=no ;;
9669 gcc_cv_func_mmap_dev_zero=yes;;
9670 esac
9672 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9673 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9675 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9676 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9677 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9678 if test "${gcc_cv_decl_map_anon+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h. */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 #include <sys/types.h>
9688 #include <sys/mman.h>
9689 #include <unistd.h>
9691 #ifndef MAP_ANONYMOUS
9692 #define MAP_ANONYMOUS MAP_ANON
9693 #endif
9696 main ()
9698 int n = MAP_ANONYMOUS;
9700 return 0;
9702 _ACEOF
9703 rm -f conftest.$ac_objext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9705 (eval $ac_compile) 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -z "$ac_c_werror_flag"
9713 || test ! -s conftest.err'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; } &&
9719 { ac_try='test -s conftest.$ac_objext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 gcc_cv_decl_map_anon=yes
9726 else
9727 echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9730 gcc_cv_decl_map_anon=no
9732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9734 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9735 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9737 if test $gcc_cv_decl_map_anon = no; then
9738 gcc_cv_func_mmap_anon=no
9739 else
9740 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9741 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9742 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9746 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9747 # doesn't give anonymous zeroed pages with the same properties listed
9748 # above for use of /dev/zero.
9749 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9750 case "$host_os" in
9751 vms* | cygwin* | pe | mingw* | sco* | udk* )
9752 gcc_cv_func_mmap_anon=no ;;
9754 gcc_cv_func_mmap_anon=yes;;
9755 esac
9757 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9758 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9762 if test $gcc_cv_func_mmap_file = yes; then
9764 cat >>confdefs.h <<\_ACEOF
9765 #define HAVE_MMAP_FILE 1
9766 _ACEOF
9769 if test $gcc_cv_func_mmap_dev_zero = yes; then
9771 cat >>confdefs.h <<\_ACEOF
9772 #define HAVE_MMAP_DEV_ZERO 1
9773 _ACEOF
9776 if test $gcc_cv_func_mmap_anon = yes; then
9778 cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_MMAP_ANON 1
9780 _ACEOF
9785 case "${host}" in
9786 *-*-*vms*)
9787 # Under VMS, vfork works very differently than on Unix. The standard test
9788 # won't work, and it isn't easily adaptable. It makes more sense to
9789 # just force it.
9790 ac_cv_func_vfork_works=yes
9792 esac
9793 echo "$as_me:$LINENO: checking for pid_t" >&5
9794 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9795 if test "${ac_cv_type_pid_t+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 $ac_includes_default
9806 main ()
9808 if ((pid_t *) 0)
9809 return 0;
9810 if (sizeof (pid_t))
9811 return 0;
9813 return 0;
9815 _ACEOF
9816 rm -f conftest.$ac_objext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 ac_cv_type_pid_t=yes
9839 else
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_cv_type_pid_t=no
9845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9847 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9848 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9849 if test $ac_cv_type_pid_t = yes; then
9851 else
9853 cat >>confdefs.h <<_ACEOF
9854 #define pid_t int
9855 _ACEOF
9861 for ac_header in unistd.h vfork.h
9863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9864 echo "$as_me:$LINENO: checking for $ac_header" >&5
9865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 #include <$ac_header>
9876 _ACEOF
9877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } >/dev/null; then
9885 if test -s conftest.err; then
9886 ac_cpp_err=$ac_c_preproc_warn_flag
9887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9888 else
9889 ac_cpp_err=
9891 else
9892 ac_cpp_err=yes
9894 if test -z "$ac_cpp_err"; then
9895 eval "$as_ac_Header=yes"
9896 else
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9900 eval "$as_ac_Header=no"
9902 rm -f conftest.err conftest.$ac_ext
9904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9907 cat >>confdefs.h <<_ACEOF
9908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9909 _ACEOF
9912 done
9916 for ac_func in fork vfork
9918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9919 echo "$as_me:$LINENO: checking for $ac_func" >&5
9920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9921 if eval "test \"\${$as_ac_var+set}\" = set"; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924 cat >conftest.$ac_ext <<_ACEOF
9925 /* confdefs.h. */
9926 _ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9932 #define $ac_func innocuous_$ac_func
9934 /* System header to define __stub macros and hopefully few prototypes,
9935 which can conflict with char $ac_func (); below.
9936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9937 <limits.h> exists even on freestanding compilers. */
9939 #ifdef __STDC__
9940 # include <limits.h>
9941 #else
9942 # include <assert.h>
9943 #endif
9945 #undef $ac_func
9947 /* Override any gcc2 internal prototype to avoid an error. */
9948 #ifdef __cplusplus
9949 extern "C"
9951 #endif
9952 /* We use char because int might match the return type of a gcc2
9953 builtin and then its argument prototype would still apply. */
9954 char $ac_func ();
9955 /* The GNU C library defines this for functions which it implements
9956 to always fail with ENOSYS. Some functions are actually named
9957 something starting with __ and the normal name is an alias. */
9958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9959 choke me
9960 #else
9961 char (*f) () = $ac_func;
9962 #endif
9963 #ifdef __cplusplus
9965 #endif
9968 main ()
9970 return f != $ac_func;
9972 return 0;
9974 _ACEOF
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977 (eval $ac_link) 2>conftest.er1
9978 ac_status=$?
9979 grep -v '^ *+' conftest.er1 >conftest.err
9980 rm -f conftest.er1
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try='test -z "$ac_c_werror_flag"
9985 || test ! -s conftest.err'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 (eval $ac_try) 2>&5
9988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; } &&
9991 { ac_try='test -s conftest$ac_exeext'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 eval "$as_ac_var=yes"
9998 else
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 eval "$as_ac_var=no"
10004 rm -f conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10009 if test `eval echo '${'$as_ac_var'}'` = yes; then
10010 cat >>confdefs.h <<_ACEOF
10011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10012 _ACEOF
10015 done
10017 if test "x$ac_cv_func_fork" = xyes; then
10018 echo "$as_me:$LINENO: checking for working fork" >&5
10019 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10020 if test "${ac_cv_func_fork_works+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 if test "$cross_compiling" = yes; then
10024 ac_cv_func_fork_works=cross
10025 else
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* By Ruediger Kuhlmann. */
10028 #include <sys/types.h>
10029 #if HAVE_UNISTD_H
10030 # include <unistd.h>
10031 #endif
10032 /* Some systems only have a dummy stub for fork() */
10033 int main ()
10035 if (fork() < 0)
10036 exit (1);
10037 exit (0);
10039 _ACEOF
10040 rm -f conftest$ac_exeext
10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042 (eval $ac_link) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_cv_func_fork_works=yes
10052 else
10053 echo "$as_me: program exited with status $ac_status" >&5
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10057 ( exit $ac_status )
10058 ac_cv_func_fork_works=no
10060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10063 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10064 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10066 else
10067 ac_cv_func_fork_works=$ac_cv_func_fork
10069 if test "x$ac_cv_func_fork_works" = xcross; then
10070 case $host in
10071 *-*-amigaos* | *-*-msdosdjgpp*)
10072 # Override, as these systems have only a dummy fork() stub
10073 ac_cv_func_fork_works=no
10076 ac_cv_func_fork_works=yes
10078 esac
10079 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10080 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10082 ac_cv_func_vfork_works=$ac_cv_func_vfork
10083 if test "x$ac_cv_func_vfork" = xyes; then
10084 echo "$as_me:$LINENO: checking for working vfork" >&5
10085 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10086 if test "${ac_cv_func_vfork_works+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089 if test "$cross_compiling" = yes; then
10090 ac_cv_func_vfork_works=cross
10091 else
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 /* Thanks to Paul Eggert for this test. */
10099 #include <stdio.h>
10100 #include <stdlib.h>
10101 #include <sys/types.h>
10102 #include <sys/stat.h>
10103 #include <sys/wait.h>
10104 #if HAVE_UNISTD_H
10105 # include <unistd.h>
10106 #endif
10107 #if HAVE_VFORK_H
10108 # include <vfork.h>
10109 #endif
10110 /* On some sparc systems, changes by the child to local and incoming
10111 argument registers are propagated back to the parent. The compiler
10112 is told about this with #include <vfork.h>, but some compilers
10113 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10114 static variable whose address is put into a register that is
10115 clobbered by the vfork. */
10116 static void
10117 #ifdef __cplusplus
10118 sparc_address_test (int arg)
10119 # else
10120 sparc_address_test (arg) int arg;
10121 #endif
10123 static pid_t child;
10124 if (!child) {
10125 child = vfork ();
10126 if (child < 0) {
10127 perror ("vfork");
10128 _exit(2);
10130 if (!child) {
10131 arg = getpid();
10132 write(-1, "", 0);
10133 _exit (arg);
10139 main ()
10141 pid_t parent = getpid ();
10142 pid_t child;
10144 sparc_address_test (0);
10146 child = vfork ();
10148 if (child == 0) {
10149 /* Here is another test for sparc vfork register problems. This
10150 test uses lots of local variables, at least as many local
10151 variables as main has allocated so far including compiler
10152 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10153 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10154 reuse the register of parent for one of the local variables,
10155 since it will think that parent can't possibly be used any more
10156 in this routine. Assigning to the local variable will thus
10157 munge parent in the parent process. */
10158 pid_t
10159 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10160 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10161 /* Convince the compiler that p..p7 are live; otherwise, it might
10162 use the same hardware register for all 8 local variables. */
10163 if (p != p1 || p != p2 || p != p3 || p != p4
10164 || p != p5 || p != p6 || p != p7)
10165 _exit(1);
10167 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10168 from child file descriptors. If the child closes a descriptor
10169 before it execs or exits, this munges the parent's descriptor
10170 as well. Test for this by closing stdout in the child. */
10171 _exit(close(fileno(stdout)) != 0);
10172 } else {
10173 int status;
10174 struct stat st;
10176 while (wait(&status) != child)
10178 exit(
10179 /* Was there some problem with vforking? */
10180 child < 0
10182 /* Did the child fail? (This shouldn't happen.) */
10183 || status
10185 /* Did the vfork/compiler bug occur? */
10186 || parent != getpid()
10188 /* Did the file descriptor bug occur? */
10189 || fstat(fileno(stdout), &st) != 0
10193 _ACEOF
10194 rm -f conftest$ac_exeext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10196 (eval $ac_link) 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_cv_func_vfork_works=yes
10206 else
10207 echo "$as_me: program exited with status $ac_status" >&5
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 ( exit $ac_status )
10212 ac_cv_func_vfork_works=no
10214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10217 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10218 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10221 if test "x$ac_cv_func_fork_works" = xcross; then
10222 ac_cv_func_vfork_works=$ac_cv_func_vfork
10223 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10224 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10227 if test "x$ac_cv_func_vfork_works" = xyes; then
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_WORKING_VFORK 1
10231 _ACEOF
10233 else
10235 cat >>confdefs.h <<\_ACEOF
10236 #define vfork fork
10237 _ACEOF
10240 if test "x$ac_cv_func_fork_works" = xyes; then
10242 cat >>confdefs.h <<\_ACEOF
10243 #define HAVE_WORKING_FORK 1
10244 _ACEOF
10250 if test "X$prefix" = "XNONE"; then
10251 acl_final_prefix="$ac_default_prefix"
10252 else
10253 acl_final_prefix="$prefix"
10255 if test "X$exec_prefix" = "XNONE"; then
10256 acl_final_exec_prefix='${prefix}'
10257 else
10258 acl_final_exec_prefix="$exec_prefix"
10260 acl_save_prefix="$prefix"
10261 prefix="$acl_final_prefix"
10262 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10263 prefix="$acl_save_prefix"
10266 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10267 if test "${with_gnu_ld+set}" = set; then
10268 withval="$with_gnu_ld"
10269 test "$withval" = no || with_gnu_ld=yes
10270 else
10271 with_gnu_ld=no
10273 # Prepare PATH_SEPARATOR.
10274 # The user is always right.
10275 if test "${PATH_SEPARATOR+set}" != set; then
10276 echo "#! /bin/sh" >conf$$.sh
10277 echo "exit 0" >>conf$$.sh
10278 chmod +x conf$$.sh
10279 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10280 PATH_SEPARATOR=';'
10281 else
10282 PATH_SEPARATOR=:
10284 rm -f conf$$.sh
10286 ac_prog=ld
10287 if test "$GCC" = yes; then
10288 # Check if gcc -print-prog-name=ld gives a path.
10289 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10290 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10291 case $host in
10292 *-*-mingw*)
10293 # gcc leaves a trailing carriage return which upsets mingw
10294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10297 esac
10298 case $ac_prog in
10299 # Accept absolute paths.
10300 [\\/]* | [A-Za-z]:[\\/]*)
10301 re_direlt='/[^/][^/]*/\.\./'
10302 # Canonicalize the path of ld
10303 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10304 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10305 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10306 done
10307 test -z "$LD" && LD="$ac_prog"
10310 # If it fails, then pretend we aren't using GCC.
10311 ac_prog=ld
10314 # If it is relative, then search for the first ld in PATH.
10315 with_gnu_ld=unknown
10317 esac
10318 elif test "$with_gnu_ld" = yes; then
10319 echo "$as_me:$LINENO: checking for GNU ld" >&5
10320 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10321 else
10322 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10323 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10325 if test "${acl_cv_path_LD+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328 if test -z "$LD"; then
10329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10330 for ac_dir in $PATH; do
10331 test -z "$ac_dir" && ac_dir=.
10332 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10333 acl_cv_path_LD="$ac_dir/$ac_prog"
10334 # Check to see if the program is GNU ld. I'd rather use --version,
10335 # but apparently some GNU ld's only accept -v.
10336 # Break only if it was the GNU/non-GNU ld that we prefer.
10337 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10338 test "$with_gnu_ld" != no && break
10339 else
10340 test "$with_gnu_ld" != yes && break
10343 done
10344 IFS="$ac_save_ifs"
10345 else
10346 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10350 LD="$acl_cv_path_LD"
10351 if test -n "$LD"; then
10352 echo "$as_me:$LINENO: result: $LD" >&5
10353 echo "${ECHO_T}$LD" >&6
10354 else
10355 echo "$as_me:$LINENO: result: no" >&5
10356 echo "${ECHO_T}no" >&6
10358 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10359 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10360 { (exit 1); exit 1; }; }
10361 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10362 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10363 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10367 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10368 acl_cv_prog_gnu_ld=yes
10369 else
10370 acl_cv_prog_gnu_ld=no
10373 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10374 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10375 with_gnu_ld=$acl_cv_prog_gnu_ld
10379 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10380 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10381 if test "${acl_cv_rpath+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10385 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10386 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10387 . ./conftest.sh
10388 rm -f ./conftest.sh
10389 acl_cv_rpath=done
10392 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10393 echo "${ECHO_T}$acl_cv_rpath" >&6
10394 wl="$acl_cv_wl"
10395 libext="$acl_cv_libext"
10396 shlibext="$acl_cv_shlibext"
10397 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10398 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10399 hardcode_direct="$acl_cv_hardcode_direct"
10400 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10401 # Check whether --enable-rpath or --disable-rpath was given.
10402 if test "${enable_rpath+set}" = set; then
10403 enableval="$enable_rpath"
10405 else
10406 enable_rpath=yes
10415 use_additional=yes
10417 acl_save_prefix="$prefix"
10418 prefix="$acl_final_prefix"
10419 acl_save_exec_prefix="$exec_prefix"
10420 exec_prefix="$acl_final_exec_prefix"
10422 eval additional_includedir=\"$includedir\"
10423 eval additional_libdir=\"$libdir\"
10425 exec_prefix="$acl_save_exec_prefix"
10426 prefix="$acl_save_prefix"
10429 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10430 if test "${with_libiconv_prefix+set}" = set; then
10431 withval="$with_libiconv_prefix"
10433 if test "X$withval" = "Xno"; then
10434 use_additional=no
10435 else
10436 if test "X$withval" = "X"; then
10438 acl_save_prefix="$prefix"
10439 prefix="$acl_final_prefix"
10440 acl_save_exec_prefix="$exec_prefix"
10441 exec_prefix="$acl_final_exec_prefix"
10443 eval additional_includedir=\"$includedir\"
10444 eval additional_libdir=\"$libdir\"
10446 exec_prefix="$acl_save_exec_prefix"
10447 prefix="$acl_save_prefix"
10449 else
10450 additional_includedir="$withval/include"
10451 additional_libdir="$withval/lib"
10456 LIBICONV=
10457 LTLIBICONV=
10458 INCICONV=
10459 rpathdirs=
10460 ltrpathdirs=
10461 names_already_handled=
10462 names_next_round='iconv '
10463 while test -n "$names_next_round"; do
10464 names_this_round="$names_next_round"
10465 names_next_round=
10466 for name in $names_this_round; do
10467 already_handled=
10468 for n in $names_already_handled; do
10469 if test "$n" = "$name"; then
10470 already_handled=yes
10471 break
10473 done
10474 if test -z "$already_handled"; then
10475 names_already_handled="$names_already_handled $name"
10476 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10477 eval value=\"\$HAVE_LIB$uppername\"
10478 if test -n "$value"; then
10479 if test "$value" = yes; then
10480 eval value=\"\$LIB$uppername\"
10481 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10482 eval value=\"\$LTLIB$uppername\"
10483 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10484 else
10487 else
10488 found_dir=
10489 found_la=
10490 found_so=
10491 found_a=
10492 if test $use_additional = yes; then
10493 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10494 found_dir="$additional_libdir"
10495 found_so="$additional_libdir/lib$name.$shlibext"
10496 if test -f "$additional_libdir/lib$name.la"; then
10497 found_la="$additional_libdir/lib$name.la"
10499 else
10500 if test -f "$additional_libdir/lib$name.$libext"; then
10501 found_dir="$additional_libdir"
10502 found_a="$additional_libdir/lib$name.$libext"
10503 if test -f "$additional_libdir/lib$name.la"; then
10504 found_la="$additional_libdir/lib$name.la"
10509 if test "X$found_dir" = "X"; then
10510 for x in $LDFLAGS $LTLIBICONV; do
10512 acl_save_prefix="$prefix"
10513 prefix="$acl_final_prefix"
10514 acl_save_exec_prefix="$exec_prefix"
10515 exec_prefix="$acl_final_exec_prefix"
10516 eval x=\"$x\"
10517 exec_prefix="$acl_save_exec_prefix"
10518 prefix="$acl_save_prefix"
10520 case "$x" in
10521 -L*)
10522 dir=`echo "X$x" | sed -e 's/^X-L//'`
10523 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10524 found_dir="$dir"
10525 found_so="$dir/lib$name.$shlibext"
10526 if test -f "$dir/lib$name.la"; then
10527 found_la="$dir/lib$name.la"
10529 else
10530 if test -f "$dir/lib$name.$libext"; then
10531 found_dir="$dir"
10532 found_a="$dir/lib$name.$libext"
10533 if test -f "$dir/lib$name.la"; then
10534 found_la="$dir/lib$name.la"
10539 esac
10540 if test "X$found_dir" != "X"; then
10541 break
10543 done
10545 if test "X$found_dir" != "X"; then
10546 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10547 if test "X$found_so" != "X"; then
10548 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10549 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10550 else
10551 haveit=
10552 for x in $ltrpathdirs; do
10553 if test "X$x" = "X$found_dir"; then
10554 haveit=yes
10555 break
10557 done
10558 if test -z "$haveit"; then
10559 ltrpathdirs="$ltrpathdirs $found_dir"
10561 if test "$hardcode_direct" = yes; then
10562 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10563 else
10564 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10565 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10566 haveit=
10567 for x in $rpathdirs; do
10568 if test "X$x" = "X$found_dir"; then
10569 haveit=yes
10570 break
10572 done
10573 if test -z "$haveit"; then
10574 rpathdirs="$rpathdirs $found_dir"
10576 else
10577 haveit=
10578 for x in $LDFLAGS $LIBICONV; do
10580 acl_save_prefix="$prefix"
10581 prefix="$acl_final_prefix"
10582 acl_save_exec_prefix="$exec_prefix"
10583 exec_prefix="$acl_final_exec_prefix"
10584 eval x=\"$x\"
10585 exec_prefix="$acl_save_exec_prefix"
10586 prefix="$acl_save_prefix"
10588 if test "X$x" = "X-L$found_dir"; then
10589 haveit=yes
10590 break
10592 done
10593 if test -z "$haveit"; then
10594 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10596 if test "$hardcode_minus_L" != no; then
10597 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10598 else
10599 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10604 else
10605 if test "X$found_a" != "X"; then
10606 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10607 else
10608 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10611 additional_includedir=
10612 case "$found_dir" in
10613 */lib | */lib/)
10614 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10615 additional_includedir="$basedir/include"
10617 esac
10618 if test "X$additional_includedir" != "X"; then
10619 if test "X$additional_includedir" != "X/usr/include"; then
10620 haveit=
10621 if test "X$additional_includedir" = "X/usr/local/include"; then
10622 if test -n "$GCC"; then
10623 case $host_os in
10624 linux*) haveit=yes;;
10625 esac
10628 if test -z "$haveit"; then
10629 for x in $CPPFLAGS $INCICONV; do
10631 acl_save_prefix="$prefix"
10632 prefix="$acl_final_prefix"
10633 acl_save_exec_prefix="$exec_prefix"
10634 exec_prefix="$acl_final_exec_prefix"
10635 eval x=\"$x\"
10636 exec_prefix="$acl_save_exec_prefix"
10637 prefix="$acl_save_prefix"
10639 if test "X$x" = "X-I$additional_includedir"; then
10640 haveit=yes
10641 break
10643 done
10644 if test -z "$haveit"; then
10645 if test -d "$additional_includedir"; then
10646 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10652 if test -n "$found_la"; then
10653 save_libdir="$libdir"
10654 case "$found_la" in
10655 */* | *\\*) . "$found_la" ;;
10656 *) . "./$found_la" ;;
10657 esac
10658 libdir="$save_libdir"
10659 for dep in $dependency_libs; do
10660 case "$dep" in
10661 -L*)
10662 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10663 if test "X$additional_libdir" != "X/usr/lib"; then
10664 haveit=
10665 if test "X$additional_libdir" = "X/usr/local/lib"; then
10666 if test -n "$GCC"; then
10667 case $host_os in
10668 linux*) haveit=yes;;
10669 esac
10672 if test -z "$haveit"; then
10673 haveit=
10674 for x in $LDFLAGS $LIBICONV; do
10676 acl_save_prefix="$prefix"
10677 prefix="$acl_final_prefix"
10678 acl_save_exec_prefix="$exec_prefix"
10679 exec_prefix="$acl_final_exec_prefix"
10680 eval x=\"$x\"
10681 exec_prefix="$acl_save_exec_prefix"
10682 prefix="$acl_save_prefix"
10684 if test "X$x" = "X-L$additional_libdir"; then
10685 haveit=yes
10686 break
10688 done
10689 if test -z "$haveit"; then
10690 if test -d "$additional_libdir"; then
10691 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10694 haveit=
10695 for x in $LDFLAGS $LTLIBICONV; do
10697 acl_save_prefix="$prefix"
10698 prefix="$acl_final_prefix"
10699 acl_save_exec_prefix="$exec_prefix"
10700 exec_prefix="$acl_final_exec_prefix"
10701 eval x=\"$x\"
10702 exec_prefix="$acl_save_exec_prefix"
10703 prefix="$acl_save_prefix"
10705 if test "X$x" = "X-L$additional_libdir"; then
10706 haveit=yes
10707 break
10709 done
10710 if test -z "$haveit"; then
10711 if test -d "$additional_libdir"; then
10712 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10718 -R*)
10719 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10720 if test "$enable_rpath" != no; then
10721 haveit=
10722 for x in $rpathdirs; do
10723 if test "X$x" = "X$dir"; then
10724 haveit=yes
10725 break
10727 done
10728 if test -z "$haveit"; then
10729 rpathdirs="$rpathdirs $dir"
10731 haveit=
10732 for x in $ltrpathdirs; do
10733 if test "X$x" = "X$dir"; then
10734 haveit=yes
10735 break
10737 done
10738 if test -z "$haveit"; then
10739 ltrpathdirs="$ltrpathdirs $dir"
10743 -l*)
10744 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10746 *.la)
10747 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10750 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10751 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10753 esac
10754 done
10756 else
10757 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10758 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10762 done
10763 done
10764 if test "X$rpathdirs" != "X"; then
10765 if test -n "$hardcode_libdir_separator"; then
10766 alldirs=
10767 for found_dir in $rpathdirs; do
10768 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10769 done
10770 acl_save_libdir="$libdir"
10771 libdir="$alldirs"
10772 eval flag=\"$hardcode_libdir_flag_spec\"
10773 libdir="$acl_save_libdir"
10774 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10775 else
10776 for found_dir in $rpathdirs; do
10777 acl_save_libdir="$libdir"
10778 libdir="$found_dir"
10779 eval flag=\"$hardcode_libdir_flag_spec\"
10780 libdir="$acl_save_libdir"
10781 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10782 done
10785 if test "X$ltrpathdirs" != "X"; then
10786 for found_dir in $ltrpathdirs; do
10787 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10788 done
10797 am_save_CPPFLAGS="$CPPFLAGS"
10799 for element in $INCICONV; do
10800 haveit=
10801 for x in $CPPFLAGS; do
10803 acl_save_prefix="$prefix"
10804 prefix="$acl_final_prefix"
10805 acl_save_exec_prefix="$exec_prefix"
10806 exec_prefix="$acl_final_exec_prefix"
10807 eval x=\"$x\"
10808 exec_prefix="$acl_save_exec_prefix"
10809 prefix="$acl_save_prefix"
10811 if test "X$x" = "X$element"; then
10812 haveit=yes
10813 break
10815 done
10816 if test -z "$haveit"; then
10817 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10819 done
10822 echo "$as_me:$LINENO: checking for iconv" >&5
10823 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10824 if test "${am_cv_func_iconv+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10828 am_cv_func_iconv="no, consider installing GNU libiconv"
10829 am_cv_lib_iconv=no
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 #include <stdlib.h>
10837 #include <iconv.h>
10839 main ()
10841 iconv_t cd = iconv_open("","");
10842 iconv(cd,NULL,NULL,NULL,NULL);
10843 iconv_close(cd);
10845 return 0;
10847 _ACEOF
10848 rm -f conftest.$ac_objext conftest$ac_exeext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850 (eval $ac_link) 2>conftest.er1
10851 ac_status=$?
10852 grep -v '^ *+' conftest.er1 >conftest.err
10853 rm -f conftest.er1
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -z "$ac_c_werror_flag"
10858 || test ! -s conftest.err'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest$ac_exeext'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 am_cv_func_iconv=yes
10871 else
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10876 rm -f conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10878 if test "$am_cv_func_iconv" != yes; then
10879 am_save_LIBS="$LIBS"
10880 LIBS="$LIBS $LIBICONV"
10881 cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h. */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 #include <stdlib.h>
10888 #include <iconv.h>
10890 main ()
10892 iconv_t cd = iconv_open("","");
10893 iconv(cd,NULL,NULL,NULL,NULL);
10894 iconv_close(cd);
10896 return 0;
10898 _ACEOF
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10901 (eval $ac_link) 2>conftest.er1
10902 ac_status=$?
10903 grep -v '^ *+' conftest.er1 >conftest.err
10904 rm -f conftest.er1
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } &&
10908 { ac_try='test -z "$ac_c_werror_flag"
10909 || test ! -s conftest.err'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest$ac_exeext'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 am_cv_lib_iconv=yes
10922 am_cv_func_iconv=yes
10923 else
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10928 rm -f conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS="$am_save_LIBS"
10934 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10935 echo "${ECHO_T}$am_cv_func_iconv" >&6
10936 if test "$am_cv_func_iconv" = yes; then
10938 cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_ICONV 1
10940 _ACEOF
10943 if test "$am_cv_lib_iconv" = yes; then
10944 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10945 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10946 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10947 echo "${ECHO_T}$LIBICONV" >&6
10948 else
10949 CPPFLAGS="$am_save_CPPFLAGS"
10950 LIBICONV=
10951 LTLIBICONV=
10956 if test "$am_cv_func_iconv" = yes; then
10957 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10958 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10959 if test "${am_cv_proto_iconv+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10963 cat >conftest.$ac_ext <<_ACEOF
10964 /* confdefs.h. */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10970 #include <stdlib.h>
10971 #include <iconv.h>
10972 extern
10973 #ifdef __cplusplus
10975 #endif
10976 #if defined(__STDC__) || defined(__cplusplus)
10977 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10978 #else
10979 size_t iconv();
10980 #endif
10983 main ()
10987 return 0;
10989 _ACEOF
10990 rm -f conftest.$ac_objext
10991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10992 (eval $ac_compile) 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -z "$ac_c_werror_flag"
11000 || test ! -s conftest.err'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; } &&
11006 { ac_try='test -s conftest.$ac_objext'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; }; then
11012 am_cv_proto_iconv_arg1=""
11013 else
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11017 am_cv_proto_iconv_arg1="const"
11019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11020 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);"
11023 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11024 echo "$as_me:$LINENO: result: ${ac_t:-
11025 }$am_cv_proto_iconv" >&5
11026 echo "${ECHO_T}${ac_t:-
11027 }$am_cv_proto_iconv" >&6
11029 cat >>confdefs.h <<_ACEOF
11030 #define ICONV_CONST $am_cv_proto_iconv_arg1
11031 _ACEOF
11035 # Until we have in-tree GNU iconv:
11036 LIBICONV_DEP=
11040 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11041 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11042 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11051 #include <locale.h>
11053 main ()
11055 return LC_MESSAGES
11057 return 0;
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062 (eval $ac_link) 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag"
11070 || test ! -s conftest.err'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try='test -s conftest$ac_exeext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 am_cv_val_LC_MESSAGES=yes
11083 else
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 am_cv_val_LC_MESSAGES=no
11089 rm -f conftest.err conftest.$ac_objext \
11090 conftest$ac_exeext conftest.$ac_ext
11092 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11093 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11094 if test $am_cv_val_LC_MESSAGES = yes; then
11096 cat >>confdefs.h <<\_ACEOF
11097 #define HAVE_LC_MESSAGES 1
11098 _ACEOF
11104 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11105 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11106 if test "${am_cv_langinfo_codeset+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 else
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h. */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <langinfo.h>
11117 main ()
11119 char* cs = nl_langinfo(CODESET);
11121 return 0;
11123 _ACEOF
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
11133 { ac_try='test -z "$ac_c_werror_flag"
11134 || test ! -s conftest.err'
11135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11136 (eval $ac_try) 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; } &&
11140 { ac_try='test -s conftest$ac_exeext'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 am_cv_langinfo_codeset=yes
11147 else
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 am_cv_langinfo_codeset=no
11153 rm -f conftest.err conftest.$ac_objext \
11154 conftest$ac_exeext conftest.$ac_ext
11157 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11158 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11159 if test $am_cv_langinfo_codeset = yes; then
11161 cat >>confdefs.h <<\_ACEOF
11162 #define HAVE_LANGINFO_CODESET 1
11163 _ACEOF
11168 # We will need to find libiberty.h and ansidecl.h
11169 saved_CFLAGS="$CFLAGS"
11170 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11208 for ac_func in getenv atol sbrk abort atof getcwd getwd strsignal \
11209 strstr errno snprintf vsnprintf vasprintf malloc realloc calloc \
11210 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
11212 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11213 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11214 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11215 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218 cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h. */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11224 #undef $ac_tr_decl
11225 #define $ac_tr_decl 1
11227 #include "ansidecl.h"
11228 #include "system.h"
11231 main ()
11233 #ifndef $ac_func
11234 char *(*pfn) = (char *(*)) $ac_func ;
11235 #endif
11237 return 0;
11239 _ACEOF
11240 rm -f conftest.$ac_objext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -z "$ac_c_werror_flag"
11250 || test ! -s conftest.err'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try='test -s conftest.$ac_objext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 eval "gcc_cv_have_decl_$ac_func=yes"
11263 else
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11267 eval "gcc_cv_have_decl_$ac_func=no"
11269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11272 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11273 echo "$as_me:$LINENO: result: yes" >&5
11274 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11275 #define $ac_tr_decl 1
11276 _ACEOF
11278 else
11279 echo "$as_me:$LINENO: result: no" >&5
11280 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11281 #define $ac_tr_decl 0
11282 _ACEOF
11286 done
11292 for ac_func in getrlimit setrlimit getrusage
11294 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11295 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11296 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11297 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h. */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 #undef $ac_tr_decl
11307 #define $ac_tr_decl 1
11309 #include "ansidecl.h"
11310 #include "system.h"
11311 #ifdef HAVE_SYS_RESOURCE_H
11312 #include <sys/resource.h>
11313 #endif
11317 main ()
11319 #ifndef $ac_func
11320 char *(*pfn) = (char *(*)) $ac_func ;
11321 #endif
11323 return 0;
11325 _ACEOF
11326 rm -f conftest.$ac_objext
11327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11328 (eval $ac_compile) 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try='test -z "$ac_c_werror_flag"
11336 || test ! -s conftest.err'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; } &&
11342 { ac_try='test -s conftest.$ac_objext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 eval "gcc_cv_have_decl_$ac_func=yes"
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 eval "gcc_cv_have_decl_$ac_func=no"
11355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11358 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11359 echo "$as_me:$LINENO: result: yes" >&5
11360 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11361 #define $ac_tr_decl 1
11362 _ACEOF
11364 else
11365 echo "$as_me:$LINENO: result: no" >&5
11366 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11367 #define $ac_tr_decl 0
11368 _ACEOF
11372 done
11375 cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h. */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11382 #include "ansidecl.h"
11383 #include "system.h"
11384 #ifdef HAVE_SYS_RESOURCE_H
11385 #include <sys/resource.h>
11386 #endif
11389 main ()
11391 rlim_t l = 0;
11393 return 0;
11395 _ACEOF
11396 rm -f conftest.$ac_objext
11397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11398 (eval $ac_compile) 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag"
11406 || test ! -s conftest.err'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; } &&
11412 { ac_try='test -s conftest.$ac_objext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11419 else
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11424 cat >>confdefs.h <<\_ACEOF
11425 #define rlim_t long
11426 _ACEOF
11429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11431 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11432 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11433 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11434 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11436 for ac_func in ldgetname
11438 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11439 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11440 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11441 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444 cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h. */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 #undef $ac_tr_decl
11451 #define $ac_tr_decl 1
11453 #include "ansidecl.h"
11454 #include "system.h"
11455 #ifdef HAVE_LDFCN_H
11456 #undef FREAD
11457 #undef FWRITE
11458 #include <ldfcn.h>
11459 #endif
11463 main ()
11465 #ifndef $ac_func
11466 char *(*pfn) = (char *(*)) $ac_func ;
11467 #endif
11469 return 0;
11471 _ACEOF
11472 rm -f conftest.$ac_objext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11474 (eval $ac_compile) 2>conftest.er1
11475 ac_status=$?
11476 grep -v '^ *+' conftest.er1 >conftest.err
11477 rm -f conftest.er1
11478 cat conftest.err >&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
11481 { ac_try='test -z "$ac_c_werror_flag"
11482 || test ! -s conftest.err'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest.$ac_objext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 eval "gcc_cv_have_decl_$ac_func=yes"
11495 else
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 eval "gcc_cv_have_decl_$ac_func=no"
11501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11504 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11505 echo "$as_me:$LINENO: result: yes" >&5
11506 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11507 #define $ac_tr_decl 1
11508 _ACEOF
11510 else
11511 echo "$as_me:$LINENO: result: no" >&5
11512 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11513 #define $ac_tr_decl 0
11514 _ACEOF
11518 done
11522 for ac_func in times
11524 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11525 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11526 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11527 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530 cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h. */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 #undef $ac_tr_decl
11537 #define $ac_tr_decl 1
11539 #include "ansidecl.h"
11540 #include "system.h"
11541 #ifdef HAVE_SYS_TIMES_H
11542 #include <sys/times.h>
11543 #endif
11547 main ()
11549 #ifndef $ac_func
11550 char *(*pfn) = (char *(*)) $ac_func ;
11551 #endif
11553 return 0;
11555 _ACEOF
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>conftest.er1
11559 ac_status=$?
11560 grep -v '^ *+' conftest.er1 >conftest.err
11561 rm -f conftest.er1
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -z "$ac_c_werror_flag"
11566 || test ! -s conftest.err'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 eval "gcc_cv_have_decl_$ac_func=yes"
11579 else
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 eval "gcc_cv_have_decl_$ac_func=no"
11585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11589 echo "$as_me:$LINENO: result: yes" >&5
11590 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11591 #define $ac_tr_decl 1
11592 _ACEOF
11594 else
11595 echo "$as_me:$LINENO: result: no" >&5
11596 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11597 #define $ac_tr_decl 0
11598 _ACEOF
11602 done
11605 # More time-related stuff.
11606 echo "$as_me:$LINENO: checking for struct tms" >&5
11607 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11608 if test "${ac_cv_struct_tms+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11612 cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h. */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11619 #include "ansidecl.h"
11620 #include "system.h"
11621 #ifdef HAVE_SYS_TIMES_H
11622 #include <sys/times.h>
11623 #endif
11626 main ()
11628 struct tms tms;
11630 return 0;
11632 _ACEOF
11633 rm -f conftest.$ac_objext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11635 (eval $ac_compile) 2>conftest.er1
11636 ac_status=$?
11637 grep -v '^ *+' conftest.er1 >conftest.err
11638 rm -f conftest.er1
11639 cat conftest.err >&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -z "$ac_c_werror_flag"
11643 || test ! -s conftest.err'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; } &&
11649 { ac_try='test -s conftest.$ac_objext'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11655 ac_cv_struct_tms=yes
11656 else
11657 echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11660 ac_cv_struct_tms=no
11662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11664 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11665 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11666 if test $ac_cv_struct_tms = yes; then
11668 cat >>confdefs.h <<\_ACEOF
11669 #define HAVE_STRUCT_TMS 1
11670 _ACEOF
11674 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11675 # revisit after autoconf 2.50.
11676 echo "$as_me:$LINENO: checking for clock_t" >&5
11677 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11678 if test "${gcc_cv_type_clock_t+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11682 cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h. */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11689 #include "ansidecl.h"
11690 #include "system.h"
11693 main ()
11695 clock_t x;
11697 return 0;
11699 _ACEOF
11700 rm -f conftest.$ac_objext
11701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11702 (eval $ac_compile) 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
11709 { ac_try='test -z "$ac_c_werror_flag"
11710 || test ! -s conftest.err'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest.$ac_objext'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 gcc_cv_type_clock_t=yes
11723 else
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 gcc_cv_type_clock_t=no
11729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11731 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11732 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11733 if test $gcc_cv_type_clock_t = yes; then
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_CLOCK_T 1
11737 _ACEOF
11741 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11742 CFLAGS="$saved_CFLAGS"
11744 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11745 if test "${enable_initfini_array+set}" = set; then
11746 enableval="$enable_initfini_array"
11748 else
11750 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11751 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11752 if test "${gcc_cv_initfini_array+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755 if test "$cross_compiling" = yes; then
11756 gcc_cv_initfini_array=no
11757 else
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h. */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11765 static int x = -1;
11766 int main (void) { return x; }
11767 int foo (void) { x = 0; }
11768 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11769 _ACEOF
11770 rm -f conftest$ac_exeext
11771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11772 (eval $ac_link) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 gcc_cv_initfini_array=yes
11782 else
11783 echo "$as_me: program exited with status $ac_status" >&5
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 ( exit $ac_status )
11788 gcc_cv_initfini_array=no
11790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11793 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11794 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11795 enable_initfini_array=$gcc_cv_initfini_array
11798 if test $enable_initfini_array = yes; then
11800 cat >>confdefs.h <<\_ACEOF
11801 #define HAVE_INITFINI_ARRAY 1
11802 _ACEOF
11806 # mkdir takes a single argument on some systems.
11807 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11808 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11809 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 else
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h. */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11819 #include <sys/types.h>
11820 #ifdef HAVE_SYS_STAT_H
11821 # include <sys/stat.h>
11822 #endif
11823 #ifdef HAVE_UNISTD_H
11824 # include <unistd.h>
11825 #endif
11826 #ifdef HAVE_DIRECT_H
11827 # include <direct.h>
11828 #endif
11830 main ()
11832 mkdir ("foo", 0);
11834 return 0;
11836 _ACEOF
11837 rm -f conftest.$ac_objext
11838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11839 (eval $ac_compile) 2>conftest.er1
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -z "$ac_c_werror_flag"
11847 || test ! -s conftest.err'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; } &&
11853 { ac_try='test -s conftest.$ac_objext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 gcc_cv_mkdir_takes_one_arg=no
11860 else
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 gcc_cv_mkdir_takes_one_arg=yes
11866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11868 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11869 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11870 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11872 cat >>confdefs.h <<\_ACEOF
11873 #define MKDIR_TAKES_ONE_ARG 1
11874 _ACEOF
11879 # File extensions
11880 manext='.1'
11881 objext='.o'
11885 # With Setjmp/Longjmp based exception handling.
11886 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11887 if test "${enable_sjlj_exceptions+set}" = set; then
11888 enableval="$enable_sjlj_exceptions"
11889 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11891 cat >>confdefs.h <<_ACEOF
11892 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11893 _ACEOF
11897 # For platforms with the unwind ABI which includes an unwind library,
11898 # libunwind, we can choose to use the system libunwind.
11900 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11901 if test "${with_system_libunwind+set}" = set; then
11902 withval="$with_system_libunwind"
11906 # --------------------------------------------------------
11907 # Build, host, and target specific configuration fragments
11908 # --------------------------------------------------------
11910 # Collect build-machine-specific information.
11911 . ${srcdir}/config.build
11913 # Collect host-machine-specific information.
11914 . ${srcdir}/config.host
11916 target_gtfiles=
11918 # Collect target-machine-specific information.
11919 . ${srcdir}/config.gcc
11921 extra_objs="${host_extra_objs} ${extra_objs}"
11922 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11924 # Default the target-machine variables that were not explicitly set.
11925 if test x"$tm_file" = x
11926 then tm_file=$cpu_type/$cpu_type.h; fi
11928 if test x"$extra_headers" = x
11929 then extra_headers=; fi
11931 if test x$md_file = x
11932 then md_file=$cpu_type/$cpu_type.md; fi
11934 if test x$out_file = x
11935 then out_file=$cpu_type/$cpu_type.c; fi
11937 if test x"$tmake_file" = x
11938 then tmake_file=$cpu_type/t-$cpu_type
11941 if test x"$dwarf2" = xyes
11942 then tm_file="$tm_file tm-dwarf2.h"
11945 # Say what files are being used for the output code and MD file.
11946 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11947 echo "Using \`$srcdir/config/$md_file' as machine description file."
11949 # If any of the xm_file variables contain nonexistent files, warn
11950 # about them and drop them.
11953 for x in $build_xm_file; do
11954 if test -f $srcdir/config/$x
11955 then bx="$bx $x"
11956 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11957 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11959 done
11960 build_xm_file="$bx"
11963 for x in $host_xm_file; do
11964 if test -f $srcdir/config/$x
11965 then hx="$hx $x"
11966 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11967 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11969 done
11970 host_xm_file="$hx"
11973 for x in $xm_file; do
11974 if test -f $srcdir/config/$x
11975 then tx="$tx $x"
11976 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11977 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11979 done
11980 xm_file="$tx"
11982 count=a
11983 for f in $tm_file; do
11984 count=${count}x
11985 done
11986 if test $count = ax; then
11987 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11988 else
11989 echo "Using the following target machine macro files:"
11990 for f in $tm_file; do
11991 echo " $srcdir/config/$f"
11992 done
11995 if test x$need_64bit_hwint = xyes; then
11997 cat >>confdefs.h <<\_ACEOF
11998 #define NEED_64BIT_HOST_WIDE_INT 1
11999 _ACEOF
12003 if test x$use_long_long_for_widest_fast_int = xyes; then
12005 cat >>confdefs.h <<\_ACEOF
12006 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12007 _ACEOF
12011 count=a
12012 for f in $host_xm_file; do
12013 count=${count}x
12014 done
12015 if test $count = a; then
12017 elif test $count = ax; then
12018 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12019 else
12020 echo "Using the following host machine macro files:"
12021 for f in $host_xm_file; do
12022 echo " $srcdir/config/$f"
12023 done
12025 echo "Using ${out_host_hook_obj} for host machine hooks."
12027 if test "$host_xm_file" != "$build_xm_file"; then
12028 count=a
12029 for f in $build_xm_file; do
12030 count=${count}x
12031 done
12032 if test $count = a; then
12034 elif test $count = ax; then
12035 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12036 else
12037 echo "Using the following build machine macro files:"
12038 for f in $build_xm_file; do
12039 echo " $srcdir/config/$f"
12040 done
12044 # ---------
12045 # Threading
12046 # ---------
12048 # Check if a valid thread package
12049 case ${enable_threads} in
12050 "" | no)
12051 # No threads
12052 target_thread_file='single'
12054 yes)
12055 # default
12056 target_thread_file='single'
12058 aix | dce | gnat | irix | posix | posix95 | rtems | \
12059 single | solaris | vxworks | win32 )
12060 target_thread_file=${enable_threads}
12063 echo "${enable_threads} is an unknown thread package" 1>&2
12064 exit 1
12066 esac
12068 if test x${thread_file} = x; then
12069 # No thread file set by target-specific clauses in config.gcc,
12070 # so use file chosen by default logic above
12071 thread_file=${target_thread_file}
12074 # Make gthr-default.h if we have a thread file.
12075 gthread_flags=
12076 if test $thread_file != single; then
12077 rm -f gthr-default.h
12078 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12079 gthread_flags=-DHAVE_GTHR_DEFAULT
12083 # --------
12084 # UNSORTED
12085 # --------
12087 use_cxa_atexit=no
12088 if test x$enable___cxa_atexit = xyes || \
12089 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12090 if test x$host = x$target; then
12091 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12092 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12093 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h. */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12104 #define __cxa_atexit innocuous___cxa_atexit
12106 /* System header to define __stub macros and hopefully few prototypes,
12107 which can conflict with char __cxa_atexit (); below.
12108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12109 <limits.h> exists even on freestanding compilers. */
12111 #ifdef __STDC__
12112 # include <limits.h>
12113 #else
12114 # include <assert.h>
12115 #endif
12117 #undef __cxa_atexit
12119 /* Override any gcc2 internal prototype to avoid an error. */
12120 #ifdef __cplusplus
12121 extern "C"
12123 #endif
12124 /* We use char because int might match the return type of a gcc2
12125 builtin and then its argument prototype would still apply. */
12126 char __cxa_atexit ();
12127 /* The GNU C library defines this for functions which it implements
12128 to always fail with ENOSYS. Some functions are actually named
12129 something starting with __ and the normal name is an alias. */
12130 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12131 choke me
12132 #else
12133 char (*f) () = __cxa_atexit;
12134 #endif
12135 #ifdef __cplusplus
12137 #endif
12140 main ()
12142 return f != __cxa_atexit;
12144 return 0;
12146 _ACEOF
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12149 (eval $ac_link) 2>conftest.er1
12150 ac_status=$?
12151 grep -v '^ *+' conftest.er1 >conftest.err
12152 rm -f conftest.er1
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try='test -z "$ac_c_werror_flag"
12157 || test ! -s conftest.err'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try='test -s conftest$ac_exeext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_cv_func___cxa_atexit=yes
12170 else
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12174 ac_cv_func___cxa_atexit=no
12176 rm -f conftest.err conftest.$ac_objext \
12177 conftest$ac_exeext conftest.$ac_ext
12179 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12180 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12181 if test $ac_cv_func___cxa_atexit = yes; then
12182 use_cxa_atexit=yes
12183 else
12184 echo "__cxa_atexit can't be enabled on this target"
12187 else
12188 # We can't check for __cxa_atexit when building a cross, so assume
12189 # it is available
12190 use_cxa_atexit=yes
12192 if test x$use_cxa_atexit = xyes; then
12194 cat >>confdefs.h <<\_ACEOF
12195 #define DEFAULT_USE_CXA_ATEXIT 1
12196 _ACEOF
12201 # Look for a file containing extra machine modes.
12202 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12203 extra_modes_file='$(srcdir)'/config/${extra_modes}
12206 cat >>confdefs.h <<_ACEOF
12207 #define EXTRA_MODES_FILE "config/$extra_modes"
12208 _ACEOF
12212 # Convert extra_options into a form suitable for Makefile use.
12213 extra_opt_files=
12214 for f in $extra_options; do
12215 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12216 done
12219 # auto-host.h is the file containing items generated by autoconf and is
12220 # the first file included by config.h.
12221 # If host=build, it is correct to have bconfig include auto-host.h
12222 # as well. If host!=build, we are in error and need to do more
12223 # work to find out the build config parameters.
12224 if test x$host = x$build
12225 then
12226 build_auto=auto-host.h
12227 else
12228 # We create a subdir, then run autoconf in the subdir.
12229 # To prevent recursion we set host and build for the new
12230 # invocation of configure to the build for this invocation
12231 # of configure.
12232 tempdir=build.$$
12233 rm -rf $tempdir
12234 mkdir $tempdir
12235 cd $tempdir
12236 case ${srcdir} in
12237 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12238 *) realsrcdir=../${srcdir};;
12239 esac
12240 saved_CFLAGS="${CFLAGS}"
12241 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12242 ${realsrcdir}/configure \
12243 --enable-languages=${enable_languages-all} \
12244 --target=$target_alias --host=$build_alias --build=$build_alias
12245 CFLAGS="${saved_CFLAGS}"
12247 # We just finished tests for the build machine, so rename
12248 # the file auto-build.h in the gcc directory.
12249 mv auto-host.h ../auto-build.h
12250 cd ..
12251 rm -rf $tempdir
12252 build_auto=auto-build.h
12256 tm_file="${tm_file} defaults.h"
12257 tm_p_file="${tm_p_file} tm-preds.h"
12258 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12259 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12260 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12261 # put this back in temporarily.
12262 xm_file="auto-host.h ansidecl.h ${xm_file}"
12264 # --------
12265 # UNSORTED
12266 # --------
12268 # Compile in configure arguments.
12269 if test -f configargs.h ; then
12270 # Being re-configured.
12271 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12272 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12273 else
12274 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12277 # Double all backslashes and backslash all quotes to turn
12278 # gcc_config_arguments into a C string.
12279 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12280 $gcc_config_arguments
12282 gcc_config_arguments_str=`cat conftest.out`
12283 rm -f conftest.out
12285 cat > configargs.h <<EOF
12286 /* Generated automatically. */
12287 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12288 static const char thread_model[] = "$thread_file";
12290 static const struct {
12291 const char *name, *value;
12292 } configure_default_options[] = $configure_default_options;
12295 # Internationalization
12296 # If we haven't got the data from the intl directory,
12297 # assume NLS is disabled.
12298 USE_NLS=no
12299 LIBINTL=
12300 LIBINTL_DEP=
12301 INCINTL=
12302 XGETTEXT=
12303 GMSGFMT=
12304 POSUB=
12305 if test -f ../intl/config.intl; then
12306 . ../intl/config.intl
12308 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12309 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12310 if test x"$USE_NLS" != xyes; then
12311 echo "$as_me:$LINENO: result: no" >&5
12312 echo "${ECHO_T}no" >&6
12313 else
12314 echo "$as_me:$LINENO: result: yes" >&5
12315 echo "${ECHO_T}yes" >&6
12317 cat >>confdefs.h <<\_ACEOF
12318 #define ENABLE_NLS 1
12319 _ACEOF
12322 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12323 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12324 # Look for .po and .gmo files in the source directory.
12325 CATALOGS=
12326 XLINGUAS=
12327 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12328 # If there aren't any .gmo files the shell will give us the
12329 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12330 # weeded out.
12331 case "$cat" in *\**)
12332 continue;;
12333 esac
12334 # The quadruple backslash is collapsed to a double backslash
12335 # by the backticks, then collapsed again by the double quotes,
12336 # leaving us with one backslash in the sed expression (right
12337 # before the dot that mustn't act as a wildcard).
12338 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12339 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12340 # The user is allowed to set LINGUAS to a list of languages to
12341 # install catalogs for. If it's empty that means "all of them."
12342 if test "x$LINGUAS" = x; then
12343 CATALOGS="$CATALOGS $cat"
12344 XLINGUAS="$XLINGUAS $lang"
12345 else
12346 case "$LINGUAS" in *$lang*)
12347 CATALOGS="$CATALOGS $cat"
12348 XLINGUAS="$XLINGUAS $lang"
12350 esac
12352 done
12353 LINGUAS="$XLINGUAS"
12354 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12355 echo "${ECHO_T}$LINGUAS" >&6
12358 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12359 # -liconv on the link line twice.
12360 case "$LIBINTL" in *$LIBICONV*)
12361 LIBICONV= ;;
12362 esac
12364 # Windows32 Registry support for specifying GCC installation paths.
12365 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12366 if test "${enable_win32_registry+set}" = set; then
12367 enableval="$enable_win32_registry"
12371 case $host_os in
12372 win32 | pe | cygwin* | mingw32* | uwin*)
12373 if test "x$enable_win32_registry" != xno; then
12374 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12375 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12376 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379 ac_func_search_save_LIBS=$LIBS
12380 ac_cv_search_RegOpenKeyExA=no
12381 cat >conftest.$ac_ext <<_ACEOF
12382 /* confdefs.h. */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12388 /* Override any gcc2 internal prototype to avoid an error. */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char RegOpenKeyExA ();
12396 main ()
12398 RegOpenKeyExA ();
12400 return 0;
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>conftest.er1
12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_c_werror_flag"
12413 || test ! -s conftest.err'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest$ac_exeext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_cv_search_RegOpenKeyExA="none required"
12426 else
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12431 rm -f conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12434 for ac_lib in advapi32; do
12435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12436 cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h. */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12443 /* Override any gcc2 internal prototype to avoid an error. */
12444 #ifdef __cplusplus
12445 extern "C"
12446 #endif
12447 /* We use char because int might match the return type of a gcc2
12448 builtin and then its argument prototype would still apply. */
12449 char RegOpenKeyExA ();
12451 main ()
12453 RegOpenKeyExA ();
12455 return 0;
12457 _ACEOF
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12460 (eval $ac_link) 2>conftest.er1
12461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
12467 { ac_try='test -z "$ac_c_werror_flag"
12468 || test ! -s conftest.err'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest$ac_exeext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12481 break
12482 else
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12487 rm -f conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489 done
12491 LIBS=$ac_func_search_save_LIBS
12493 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12494 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12495 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12496 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12498 else
12499 enable_win32_registry=no
12504 if test "x$enable_win32_registry" != xno; then
12506 cat >>confdefs.h <<\_ACEOF
12507 #define ENABLE_WIN32_REGISTRY 1
12508 _ACEOF
12511 if test "x$enable_win32_registry" != xyes \
12512 && test "x$enable_win32_registry" != x; then
12514 cat >>confdefs.h <<_ACEOF
12515 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12516 _ACEOF
12521 esac
12523 # Get an absolute path to the GCC top-level source directory
12524 holddir=`${PWDCMD-pwd}`
12525 cd $srcdir
12526 topdir=`${PWDCMD-pwd}`
12527 cd $holddir
12529 # Conditionalize the makefile for this host machine.
12530 xmake_file=
12531 for f in ${host_xmake_file}
12533 if test -f ${srcdir}/config/$f
12534 then
12535 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12537 done
12539 # Conditionalize the makefile for this target machine.
12540 tmake_file_=
12541 for f in ${tmake_file}
12543 if test -f ${srcdir}/config/$f
12544 then
12545 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12547 done
12548 tmake_file="${tmake_file_}"
12550 # If the host doesn't support symlinks, modify CC in
12551 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12552 # Otherwise, we can use "CC=$(CC)".
12553 rm -f symtest.tem
12554 case "$LN_S" in
12555 *-s*)
12556 cc_set_by_configure="\$(CC)"
12557 quoted_cc_set_by_configure="\$(CC)"
12558 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12559 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12562 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12563 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12564 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12565 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12567 esac
12569 # This is a terrible hack which will go away some day.
12570 host_cc_for_libada=${CC}
12573 out_object_file=`basename $out_file .c`.o
12575 tm_file_list="options.h"
12576 tm_include_list="options.h"
12577 for f in $tm_file; do
12578 case $f in
12579 defaults.h )
12580 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12581 tm_include_list="${tm_include_list} $f"
12584 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12585 tm_include_list="${tm_include_list} config/$f"
12587 esac
12588 done
12590 tm_p_file_list=
12591 tm_p_include_list=
12592 for f in $tm_p_file; do
12593 case $f in
12594 tm-preds.h )
12595 tm_p_file_list="${tm_p_file_list} $f"
12596 tm_p_include_list="${tm_p_include_list} $f"
12599 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12600 tm_p_include_list="${tm_p_include_list} config/$f"
12601 esac
12602 done
12604 xm_file_list=
12605 xm_include_list=
12606 for f in $xm_file; do
12607 case $f in
12608 ansidecl.h )
12609 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12610 xm_include_list="${xm_include_list} $f"
12612 auto-host.h )
12613 xm_file_list="${xm_file_list} $f"
12614 xm_include_list="${xm_include_list} $f"
12617 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12618 xm_include_list="${xm_include_list} config/$f"
12620 esac
12621 done
12623 host_xm_file_list=
12624 host_xm_include_list=
12625 for f in $host_xm_file; do
12626 case $f in
12627 ansidecl.h )
12628 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12629 host_xm_include_list="${host_xm_include_list} $f"
12631 auto-host.h )
12632 host_xm_file_list="${host_xm_file_list} $f"
12633 host_xm_include_list="${host_xm_include_list} $f"
12636 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12637 host_xm_include_list="${host_xm_include_list} config/$f"
12639 esac
12640 done
12642 build_xm_file_list=
12643 for f in $build_xm_file; do
12644 case $f in
12645 ansidecl.h )
12646 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12647 build_xm_include_list="${build_xm_include_list} $f"
12649 auto-build.h | auto-host.h )
12650 build_xm_file_list="${build_xm_file_list} $f"
12651 build_xm_include_list="${build_xm_include_list} $f"
12654 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12655 build_xm_include_list="${build_xm_include_list} config/$f"
12657 esac
12658 done
12660 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12661 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12662 CROSS=
12663 ALL=all.internal
12664 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12665 if test x$host != x$target
12666 then
12667 CROSS="-DCROSS_COMPILE"
12668 ALL=all.cross
12669 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12670 case "$host","$target" in
12671 # Darwin crosses can use the host system's libraries and headers,
12672 # because of the fat library support. Of course, it must be the
12673 # same version of Darwin on both sides. Allow the user to
12674 # just say --target=foo-darwin without a version number to mean
12675 # "the version on this system".
12676 *-*-darwin*,*-*-darwin*)
12677 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12678 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12679 if test $hostos = $targetos -o $targetos = darwin ; then
12680 CROSS=
12681 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12682 with_headers=yes
12686 i?86-*-*,x86_64-*-* \
12687 | powerpc*-*-*,powerpc64*-*-*)
12688 CROSS="$CROSS -DNATIVE_CROSS" ;;
12689 esac
12690 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12691 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12692 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12695 # If this is a cross-compiler that does not
12696 # have its own set of headers then define
12697 # inhibit_libc
12699 # If this is using newlib, without having the headers available now,
12700 # then define inhibit_libc in LIBGCC2_CFLAGS.
12701 # This prevents libgcc2 from containing any code which requires libc
12702 # support.
12703 inhibit_libc=
12704 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12705 test x$with_newlib = xyes ; } &&
12706 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12707 inhibit_libc=-Dinhibit_libc
12711 # When building gcc with a cross-compiler, we need to adjust things so
12712 # that the generator programs are still built with the native compiler.
12713 # Also, we cannot run fixincludes or fix-header.
12715 # These are the normal (build=host) settings:
12716 CC_FOR_BUILD='$(CC)'
12717 BUILD_CFLAGS='$(ALL_CFLAGS)'
12718 STMP_FIXINC=stmp-fixinc
12720 # Possibly disable fixproto, on a per-target basis.
12721 case ${use_fixproto} in
12723 STMP_FIXPROTO=
12725 yes)
12726 STMP_FIXPROTO=stmp-fixproto
12728 esac
12731 # And these apply if build != host, or we are generating coverage data
12732 if test x$build != x$host || test "x$coverage_flags" != x
12733 then
12734 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12736 if test "x$TARGET_SYSTEM_ROOT" = x; then
12737 if test "x$STMP_FIXPROTO" != x; then
12738 STMP_FIXPROTO=stmp-install-fixproto
12743 # Expand extra_headers to include complete path.
12744 # This substitutes for lots of t-* files.
12745 extra_headers_list=
12746 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12747 for file in ${extra_headers} ; do
12748 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12749 done
12751 # Define collect2 in Makefile.
12752 case $host_can_use_collect2 in
12753 no) collect2= ;;
12754 *) collect2='collect2$(exeext)' ;;
12755 esac
12758 # Add a definition of USE_COLLECT2 if system wants one.
12759 case $use_collect2 in
12760 no) use_collect2= ;;
12761 "") ;;
12763 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12764 xm_defines="${xm_defines} USE_COLLECT2"
12765 case $host_can_use_collect2 in
12767 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12768 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12769 { (exit 1); exit 1; }; }
12771 esac
12773 esac
12775 # ---------------------------
12776 # Assembler & linker features
12777 # ---------------------------
12779 # Identify the assembler which will work hand-in-glove with the newly
12780 # built GCC, so that we can examine its features. This is the assembler
12781 # which will be driven by the driver program.
12783 # If build != host, and we aren't building gas in-tree, we identify a
12784 # build->target assembler and hope that it will have the same features
12785 # as the host->target assembler we'll be using.
12786 echo "$as_me:$LINENO: checking what assembler to use" >&5
12787 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12788 in_tree_gas=no
12789 gcc_cv_as=
12790 gcc_cv_gas_major_version=
12791 gcc_cv_gas_minor_version=
12792 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12793 if test -x "$DEFAULT_ASSEMBLER"; then
12794 gcc_cv_as="$DEFAULT_ASSEMBLER"
12795 elif test -x as$build_exeext; then
12796 # Build using assembler in the current directory.
12797 gcc_cv_as=./as$build_exeext
12798 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12799 && test -f ../gas/Makefile \
12800 && test x$build = x$host; then
12801 # Single tree build which includes gas. We want to prefer it
12802 # over whatever linker top-level may have detected, since
12803 # we'll use what we're building after installation anyway.
12804 in_tree_gas=yes
12805 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12806 for f in $gcc_cv_as_bfd_srcdir/configure \
12807 $gcc_cv_as_gas_srcdir/configure \
12808 $gcc_cv_as_gas_srcdir/configure.in \
12809 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12810 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12811 if test x$gcc_cv_gas_version != x; then
12812 break
12814 done
12815 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12816 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12817 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12818 case $gcc_cv_gas_patch_version in
12819 "") gcc_cv_gas_patch_version="0" ;;
12820 esac
12821 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12822 + $gcc_cv_gas_minor_version \) \* 1000 \
12823 + $gcc_cv_gas_patch_version`
12825 rm -f as$build_exeext
12826 $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12827 in_tree_gas_is_elf=no
12828 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12829 || (grep 'obj_format = multi' ../gas/Makefile \
12830 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12831 then
12832 in_tree_gas_is_elf=yes
12834 elif test -x "$AS_FOR_TARGET"; then
12835 gcc_cv_as="$AS_FOR_TARGET"
12836 elif test -x "$AS" && test x$host = x$target; then
12837 gcc_cv_as="$AS"
12840 gcc_version=`cat $srcdir/BASE-VER`
12842 if test "x$gcc_cv_as" = x; then
12843 # Search the same directories that the installed compiler will
12844 # search. Else we may find the wrong assembler and lose. If we
12845 # do not find a suitable assembler binary, then try the user's
12846 # path.
12848 # Also note we have to check MD_EXEC_PREFIX before checking the
12849 # user's path. Unfortunately, there is no good way to get at the
12850 # value of MD_EXEC_PREFIX here. So we do a brute force search
12851 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12852 # to be fixed as part of the make/configure rewrite too.
12854 if test "x$exec_prefix" = xNONE; then
12855 if test "x$prefix" = xNONE; then
12856 test_prefix=/usr/local
12857 else
12858 test_prefix=$prefix
12860 else
12861 test_prefix=$exec_prefix
12864 # If the loop below does not find an assembler, then use whatever
12865 # one we can find in the users's path. We are looking for a
12866 # ${build} -> ${target} assembler.
12867 if test "x$program_prefix" != xNONE; then
12868 gcc_cv_as=${program_prefix}as$build_exeext
12869 elif test x$build != x$host && test x$build != x$target; then
12870 gcc_cv_as=${target_noncanonical}-as$build_exeext
12871 else
12872 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12875 if test x$host = x$build; then
12876 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12877 $test_prefix/libexec/gcc/$target_noncanonical \
12878 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12879 /usr/lib/gcc/$target_noncanonical \
12880 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12881 $test_prefix/$target_noncanonical/bin"
12882 else
12883 test_dirs=
12886 if test x$build = x$target; then
12887 test_dirs="$test_dirs \
12888 /usr/libexec \
12889 /usr/ccs/gcc \
12890 /usr/ccs/bin \
12891 /udk/usr/ccs/bin \
12892 /bsd43/usr/lib/cmplrs/cc \
12893 /usr/cross64/usr/bin \
12894 /usr/lib/cmplrs/cc \
12895 /sysv/usr/lib/cmplrs/cc \
12896 /svr4/usr/lib/cmplrs/cc \
12897 /usr/bin"
12900 for dir in $test_dirs; do
12901 if test -x $dir/as$build_exeext; then
12902 gcc_cv_as=$dir/as$build_exeext
12903 break;
12905 done
12907 case $in_tree_gas in
12908 yes)
12909 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12910 echo "${ECHO_T}\"newly built gas\"" >&6
12913 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12914 echo "${ECHO_T}$gcc_cv_as" >&6
12916 esac
12918 # Identify the linker which will work hand-in-glove with the newly
12919 # built GCC, so that we can examine its features. This is the linker
12920 # which will be driven by the driver program.
12922 # If build != host, and we aren't building gas in-tree, we identify a
12923 # build->target linker and hope that it will have the same features
12924 # as the host->target linker we'll be using.
12925 echo "$as_me:$LINENO: checking what linker to use" >&5
12926 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12927 in_tree_ld=no
12928 gcc_cv_ld=
12929 gcc_cv_gld_major_version=
12930 gcc_cv_gld_minor_version=
12931 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12932 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12933 if test -x "$DEFAULT_LINKER"; then
12934 gcc_cv_ld="$DEFAULT_LINKER"
12935 elif test -x collect-ld$build_exeext; then
12936 # Build using linker in the current directory.
12937 gcc_cv_ld=./collect-ld$build_exeext
12938 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12939 && test -f ../ld/Makefile \
12940 && test x$build = x$host; then
12941 # Single tree build which includes ld. We want to prefer it
12942 # over whatever linker top-level may have detected, since
12943 # we'll use what we're building after installation anyway.
12944 in_tree_ld=yes
12945 in_tree_ld_is_elf=no
12946 if (grep 'EMUL = .*elf' ../ld/Makefile \
12947 || grep 'EMUL = .*linux' ../ld/Makefile \
12948 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12949 in_tree_ld_is_elf=yes
12951 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
12953 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12954 if test x$gcc_cv_gld_version != x; then
12955 break
12957 done
12958 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12959 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12960 rm -f collect-ld$build_exeext
12961 $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12962 elif test -x "$LD_FOR_TARGET"; then
12963 gcc_cv_ld="$LD_FOR_TARGET"
12964 elif test -x "$LD" && test x$host = x$target; then
12965 gcc_cv_ld="$LD"
12968 if test "x$gcc_cv_ld" = x; then
12969 # Search the same directories that the installed compiler will
12970 # search. Else we may find the wrong linker and lose. If we
12971 # do not find a suitable linker binary, then try the user's
12972 # path.
12974 # Also note we have to check MD_EXEC_PREFIX before checking the
12975 # user's path. Unfortunately, there is no good way to get at the
12976 # value of MD_EXEC_PREFIX here. So we do a brute force search
12977 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12978 # to be fixed as part of the make/configure rewrite too.
12980 if test "x$exec_prefix" = xNONE; then
12981 if test "x$prefix" = xNONE; then
12982 test_prefix=/usr/local
12983 else
12984 test_prefix=$prefix
12986 else
12987 test_prefix=$exec_prefix
12990 # If the loop below does not find a linker, then use whatever
12991 # one we can find in the users's path. We are looking for a
12992 # ${build} -> ${target} linker.
12993 if test "x$program_prefix" != xNONE; then
12994 gcc_cv_ld=${program_prefix}ld$build_exeext
12995 elif test x$build != x$host && test x$build != x$target; then
12996 gcc_cv_ld=${target_noncanonical}-ld$build_exeext
12997 else
12998 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
13001 if test x$host = x$build; then
13002 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
13003 $test_prefix/libexec/gcc/$target_noncanonical \
13004 /usr/lib/gcc/$target_noncanonical/$gcc_version \
13005 /usr/lib/gcc/$target_noncanonical \
13006 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
13007 $test_prefix/$target_noncanonical/bin"
13008 else
13009 test_dirs=
13012 if test x$build = x$target; then
13013 test_dirs="$test_dirs \
13014 /usr/libexec \
13015 /usr/ccs/gcc \
13016 /usr/ccs/bin \
13017 /udk/usr/ccs/bin \
13018 /bsd43/usr/lib/cmplrs/cc \
13019 /usr/cross64/usr/bin \
13020 /usr/lib/cmplrs/cc \
13021 /sysv/usr/lib/cmplrs/cc \
13022 /svr4/usr/lib/cmplrs/cc \
13023 /usr/bin"
13026 for dir in $test_dirs; do
13027 if test -x $dir/ld$build_exeext; then
13028 gcc_cv_ld=$dir/ld$build_exeext
13029 break;
13031 done
13033 case $in_tree_ld in
13034 yes)
13035 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13036 echo "${ECHO_T}\"newly built ld\"" >&6
13039 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13040 echo "${ECHO_T}$gcc_cv_ld" >&6
13042 esac
13044 # Figure out what nm we will be using.
13045 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13046 echo "$as_me:$LINENO: checking what nm to use" >&5
13047 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13048 in_tree_nm=no
13049 if test -x nm$build_exeext; then
13050 gcc_cv_nm=./nm$build_exeext
13051 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13052 && test -f ../binutils/Makefile; then
13053 # Single tree build which includes binutils.
13054 in_tree_nm=yes
13055 gcc_cv_nm=./nm$build_exeext
13056 rm -f nm$build_exeext
13057 $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
13058 elif test "x$program_prefix" != xNONE; then
13059 gcc_cv_nm=${program_prefix}nm$build_exeext
13060 elif test x$build != x$host && test x$build != x$target; then
13061 gcc_cv_nm=${target_noncanonical}-nm$build_exeext
13062 else
13063 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
13065 case $in_tree_nm in
13066 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13067 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13068 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13069 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13070 esac
13072 # Figure out what objdump we will be using.
13073 echo "$as_me:$LINENO: checking what objdump to use" >&5
13074 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13075 in_tree_objdump=no
13076 if test -x objdump$build_exeext; then
13077 gcc_cv_objdump=./objdump$build_exeext
13078 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13079 && test -f ../binutils/Makefile; then
13080 # Single tree build which includes binutils.
13081 in_tree_objdump=yes
13082 gcc_cv_objdump=./objdump$build_exeext
13083 rm -f objdump$build_exeext
13084 $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
13085 elif test "x$program_prefix" != xNONE; then
13086 gcc_cv_objdump=${program_prefix}objdump$build_exeext
13087 elif test x$build != x$host && test x$build != x$target; then
13088 gcc_cv_objdump=${target_noncanonical}-objdump$build_exeext
13089 else
13090 gcc_cv_objdump=`echo objdump | \
13091 sed "${program_transform_name}"`$build_exeext
13093 case $in_tree_objdump in
13094 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13095 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13096 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13097 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13098 esac
13100 # Figure out what assembler alignment features are present.
13101 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13102 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13103 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 else
13106 gcc_cv_as_balign_and_p2align=no
13107 if test $in_tree_gas = yes; then
13108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13109 then gcc_cv_as_balign_and_p2align=yes
13111 elif test x$gcc_cv_as != x; then
13112 echo '.balign 4
13113 .p2align 2' > conftest.s
13114 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; }
13120 then
13121 gcc_cv_as_balign_and_p2align=yes
13122 else
13123 echo "configure: failed program was" >&5
13124 cat conftest.s >&5
13126 rm -f conftest.o conftest.s
13129 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13130 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13131 if test $gcc_cv_as_balign_and_p2align = yes; then
13133 cat >>confdefs.h <<\_ACEOF
13134 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13135 _ACEOF
13139 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13140 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13141 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144 gcc_cv_as_max_skip_p2align=no
13145 if test $in_tree_gas = yes; then
13146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13147 then gcc_cv_as_max_skip_p2align=yes
13149 elif test x$gcc_cv_as != x; then
13150 echo '.p2align 4,,7' > conftest.s
13151 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }
13157 then
13158 gcc_cv_as_max_skip_p2align=yes
13159 else
13160 echo "configure: failed program was" >&5
13161 cat conftest.s >&5
13163 rm -f conftest.o conftest.s
13166 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13167 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13168 if test $gcc_cv_as_max_skip_p2align = yes; then
13170 cat >>confdefs.h <<\_ACEOF
13171 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13172 _ACEOF
13176 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13177 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13178 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181 gcc_cv_as_subsection_m1=no
13182 if test $in_tree_gas = yes; then
13183 if test $in_tree_gas_is_elf = yes \
13184 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13185 then gcc_cv_as_subsection_m1=yes
13187 elif test x$gcc_cv_as != x; then
13188 echo 'conftest_label1: .word 0
13189 .subsection -1
13190 conftest_label2: .word 0
13191 .previous' > conftest.s
13192 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; }
13198 then
13199 if test x$gcc_cv_nm != x; then
13200 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13201 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13202 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13203 then :
13204 else gcc_cv_as_subsection_m1=yes
13206 rm -f conftest.nm1 conftest.nm2
13208 else
13209 echo "configure: failed program was" >&5
13210 cat conftest.s >&5
13212 rm -f conftest.o conftest.s
13215 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13216 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13217 if test $gcc_cv_as_subsection_m1 = yes; then
13219 cat >>confdefs.h <<\_ACEOF
13220 #define HAVE_GAS_SUBSECTION_ORDERING 1
13221 _ACEOF
13225 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13226 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13227 if test "${gcc_cv_as_weak+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 else
13230 gcc_cv_as_weak=no
13231 if test $in_tree_gas = yes; then
13232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13233 then gcc_cv_as_weak=yes
13235 elif test x$gcc_cv_as != x; then
13236 echo ' .weak foobar' > conftest.s
13237 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }
13243 then
13244 gcc_cv_as_weak=yes
13245 else
13246 echo "configure: failed program was" >&5
13247 cat conftest.s >&5
13249 rm -f conftest.o conftest.s
13252 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13253 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13254 if test $gcc_cv_as_weak = yes; then
13256 cat >>confdefs.h <<\_ACEOF
13257 #define HAVE_GAS_WEAK 1
13258 _ACEOF
13262 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13263 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13264 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 else
13267 gcc_cv_as_nsubspa_comdat=no
13268 if test $in_tree_gas = yes; then
13269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13270 then gcc_cv_as_nsubspa_comdat=yes
13272 elif test x$gcc_cv_as != x; then
13273 echo ' .SPACE $TEXT$
13274 .NSUBSPA $CODE$,COMDAT' > conftest.s
13275 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }
13281 then
13282 gcc_cv_as_nsubspa_comdat=yes
13283 else
13284 echo "configure: failed program was" >&5
13285 cat conftest.s >&5
13287 rm -f conftest.o conftest.s
13290 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13291 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13292 if test $gcc_cv_as_nsubspa_comdat = yes; then
13294 cat >>confdefs.h <<\_ACEOF
13295 #define HAVE_GAS_NSUBSPA_COMDAT 1
13296 _ACEOF
13300 # .hidden needs to be supported in both the assembler and the linker,
13301 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13302 # This is irritatingly difficult to feature test for; we have to check the
13303 # date string after the version number. If we've got an in-tree
13304 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13305 # to be safe.
13306 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13307 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13308 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13309 if test "${gcc_cv_as_hidden+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312 gcc_cv_as_hidden=no
13313 if test $in_tree_gas = yes; then
13314 if test $in_tree_gas_is_elf = yes \
13315 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13316 then gcc_cv_as_hidden=yes
13318 elif test x$gcc_cv_as != x; then
13319 echo ' .hidden foobar
13320 foobar:' > conftest.s
13321 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }
13327 then
13328 gcc_cv_as_hidden=yes
13329 else
13330 echo "configure: failed program was" >&5
13331 cat conftest.s >&5
13333 rm -f conftest.o conftest.s
13336 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13337 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13340 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13341 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13342 if test "${gcc_cv_ld_hidden+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345 if test $in_tree_ld = yes ; then
13346 gcc_cv_ld_hidden=no
13347 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 \
13348 && test $in_tree_ld_is_elf = yes; then
13349 gcc_cv_ld_hidden=yes
13351 else
13352 gcc_cv_ld_hidden=yes
13353 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13354 if echo "$ld_ver" | grep GNU > /dev/null; then
13355 ld_vers=`echo $ld_ver | sed -n \
13356 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13357 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13358 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13359 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13360 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13361 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13362 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13363 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'`
13364 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13365 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13366 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13367 if test 0"$ld_date" -lt 20020404; then
13368 if test -n "$ld_date"; then
13369 # If there was date string, but was earlier than 2002-04-04, fail
13370 gcc_cv_ld_hidden=no
13371 elif test -z "$ld_vers"; then
13372 # If there was no date string nor ld version number, something is wrong
13373 gcc_cv_ld_hidden=no
13374 else
13375 test -z "$ld_vers_patch" && ld_vers_patch=0
13376 if test "$ld_vers_major" -lt 2; then
13377 gcc_cv_ld_hidden=no
13378 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13379 gcc_cv_ld_hidden="no"
13380 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13381 gcc_cv_ld_hidden=no
13385 else
13386 case "${target}" in
13387 hppa64*-*-hpux* | ia64*-*-hpux*)
13388 gcc_cv_ld_hidden=yes
13391 gcc_cv_ld_hidden=no
13393 esac
13397 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13398 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13399 libgcc_visibility=no
13402 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13403 libgcc_visibility=yes
13405 cat >>confdefs.h <<\_ACEOF
13406 #define HAVE_GAS_HIDDEN 1
13407 _ACEOF
13411 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13412 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13413 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13414 if test "${gcc_cv_as_leb128+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 else
13417 gcc_cv_as_leb128=no
13418 if test $in_tree_gas = yes; then
13419 if test $in_tree_gas_is_elf = yes \
13420 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13421 then gcc_cv_as_leb128=yes
13423 elif test x$gcc_cv_as != x; then
13424 echo ' .data
13425 .uleb128 L2 - L1
13427 .uleb128 1280
13428 .sleb128 -1010
13429 L2:' > conftest.s
13430 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }
13436 then
13437 # GAS versions before 2.11 do not support uleb128,
13438 # despite appearing to.
13439 # ??? There exists an elf-specific test that will crash
13440 # the assembler. Perhaps it's better to figure out whether
13441 # arbitrary sections are supported and try the test.
13442 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13443 if echo "$as_ver" | grep GNU > /dev/null; then
13444 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13445 as_major=`echo $as_ver | sed 's/\..*//'`
13446 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13447 if test $as_major -eq 2 && test $as_minor -lt 11
13448 then :
13449 else gcc_cv_as_leb128=yes
13452 else
13453 echo "configure: failed program was" >&5
13454 cat conftest.s >&5
13456 rm -f conftest.o conftest.s
13459 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13460 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13461 if test $gcc_cv_as_leb128 = yes; then
13463 cat >>confdefs.h <<\_ACEOF
13464 #define HAVE_AS_LEB128 1
13465 _ACEOF
13469 # GAS versions up to and including 2.11.0 may mis-optimize
13470 # .eh_frame data.
13471 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13472 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13473 if test "${gcc_cv_as_eh_frame+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476 gcc_cv_as_eh_frame=no
13477 if test $in_tree_gas = yes; then
13478 if test $in_tree_gas_is_elf = yes \
13479 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13480 then gcc_cv_as_eh_frame=yes
13482 elif test x$gcc_cv_as != x; then
13483 echo ' .text
13484 .LFB1:
13485 .4byte 0
13486 .L1:
13487 .4byte 0
13488 .LFE1:
13489 .section .eh_frame,"aw",@progbits
13490 __FRAME_BEGIN__:
13491 .4byte .LECIE1-.LSCIE1
13492 .LSCIE1:
13493 .4byte 0x0
13494 .byte 0x1
13495 .ascii "z\0"
13496 .byte 0x1
13497 .byte 0x78
13498 .byte 0x1a
13499 .byte 0x0
13500 .byte 0x4
13501 .4byte 1
13502 .p2align 1
13503 .LECIE1:
13504 .LSFDE1:
13505 .4byte .LEFDE1-.LASFDE1
13506 .LASFDE1:
13507 .4byte .LASFDE1-__FRAME_BEGIN__
13508 .4byte .LFB1
13509 .4byte .LFE1-.LFB1
13510 .byte 0x4
13511 .4byte .LFE1-.LFB1
13512 .byte 0x4
13513 .4byte .L1-.LFB1
13514 .LEFDE1:' > conftest.s
13515 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }
13521 then
13522 cat > conftest.lit <<EOF
13523 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13524 0010 01000000 12000000 18000000 00000000 ................
13525 0020 08000000 04080000 0044 .........D
13527 cat > conftest.big <<EOF
13528 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13529 0010 00000001 00000012 00000018 00000000 ................
13530 0020 00000008 04000000 0844 .........D
13532 # If the assembler didn't choke, and we can objdump,
13533 # and we got the correct data, then succeed.
13534 if test x$gcc_cv_objdump != x \
13535 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13536 | tail -3 > conftest.got \
13537 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13538 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13539 then
13540 gcc_cv_as_eh_frame=yes
13541 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13544 ac_status=$?
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 gcc_cv_as_eh_frame=buggy
13548 else
13549 # Uh oh, what do we do now?
13550 gcc_cv_as_eh_frame=no
13552 else
13553 echo "configure: failed program was" >&5
13554 cat conftest.s >&5
13556 rm -f conftest.o conftest.s
13559 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13560 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13563 if test $gcc_cv_as_eh_frame = buggy; then
13565 cat >>confdefs.h <<\_ACEOF
13566 #define USE_AS_TRADITIONAL_FORMAT 1
13567 _ACEOF
13571 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13572 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13573 if test "${gcc_cv_as_shf_merge+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 else
13576 gcc_cv_as_shf_merge=no
13577 if test $in_tree_gas = yes; then
13578 if test $in_tree_gas_is_elf = yes \
13579 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13580 then gcc_cv_as_shf_merge=yes
13582 elif test x$gcc_cv_as != x; then
13583 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13584 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }
13590 then
13591 gcc_cv_as_shf_merge=yes
13592 else
13593 echo "configure: failed program was" >&5
13594 cat conftest.s >&5
13596 rm -f conftest.o conftest.s
13599 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13600 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13602 if test $gcc_cv_as_shf_merge = no; then
13603 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13604 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13605 if test "${gcc_cv_as_shf_merge+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608 gcc_cv_as_shf_merge=no
13609 if test $in_tree_gas = yes; then
13610 if test $in_tree_gas_is_elf = yes \
13611 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13612 then gcc_cv_as_shf_merge=yes
13614 elif test x$gcc_cv_as != x; then
13615 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13616 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; }
13622 then
13623 gcc_cv_as_shf_merge=yes
13624 else
13625 echo "configure: failed program was" >&5
13626 cat conftest.s >&5
13628 rm -f conftest.o conftest.s
13631 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13632 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13636 cat >>confdefs.h <<_ACEOF
13637 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13638 _ACEOF
13641 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13642 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13643 if test "${gcc_cv_as_comdat_group+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 else
13646 gcc_cv_as_comdat_group=no
13647 if test $in_tree_gas = yes; then
13648 if test $in_tree_gas_is_elf = yes \
13649 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13650 then gcc_cv_as_comdat_group=yes
13652 elif test x$gcc_cv_as != x; then
13653 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13654 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }
13660 then
13661 gcc_cv_as_comdat_group=yes
13662 else
13663 echo "configure: failed program was" >&5
13664 cat conftest.s >&5
13666 rm -f conftest.o conftest.s
13669 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13670 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13672 if test $gcc_cv_as_comdat_group = yes; then
13673 gcc_cv_as_comdat_group_percent=no
13674 else
13675 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13676 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13677 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680 gcc_cv_as_comdat_group_percent=no
13681 if test $in_tree_gas = yes; then
13682 if test $in_tree_gas_is_elf = yes \
13683 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13684 then gcc_cv_as_comdat_group_percent=yes
13686 elif test x$gcc_cv_as != x; then
13687 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13688 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }
13694 then
13695 gcc_cv_as_comdat_group_percent=yes
13696 else
13697 echo "configure: failed program was" >&5
13698 cat conftest.s >&5
13700 rm -f conftest.o conftest.s
13703 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13704 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13707 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
13708 comdat_group=yes
13709 if test 0"$ld_date" -lt 20050308; then
13710 if test -n "$ld_date"; then
13711 # If there was date string, but was earlier than 2005-03-08, fail
13712 comdat_group=no
13713 elif test "$ld_vers_major" -lt 2; then
13714 comdat_group=no
13715 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13716 comdat_group=no
13719 if test $comdat_group = no; then
13720 gcc_cv_as_comdat_group=no
13721 gcc_cv_as_comdat_group_percent=no
13725 cat >>confdefs.h <<_ACEOF
13726 #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`
13727 _ACEOF
13730 # Thread-local storage - the check is heavily parametrized.
13731 conftest_s=
13732 tls_first_major=
13733 tls_first_minor=
13734 tls_as_opt=
13735 case "$target" in
13736 alpha*-*-*)
13737 conftest_s='
13738 .section ".tdata","awT",@progbits
13739 foo: .long 25
13740 .text
13741 ldq $27,__tls_get_addr($29) !literal!1
13742 lda $16,foo($29) !tlsgd!1
13743 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13744 ldq $27,__tls_get_addr($29) !literal!2
13745 lda $16,foo($29) !tlsldm!2
13746 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13747 ldq $1,foo($29) !gotdtprel
13748 ldah $2,foo($29) !dtprelhi
13749 lda $3,foo($2) !dtprello
13750 lda $4,foo($29) !dtprel
13751 ldq $1,foo($29) !gottprel
13752 ldah $2,foo($29) !tprelhi
13753 lda $3,foo($2) !tprello
13754 lda $4,foo($29) !tprel'
13755 tls_first_major=2
13756 tls_first_minor=13
13757 tls_as_opt=--fatal-warnings
13759 frv*-*-*)
13760 conftest_s='
13761 .section ".tdata","awT",@progbits
13762 x: .long 25
13763 .text
13764 call #gettlsoff(x)'
13765 tls_first_major=2
13766 tls_first_minor=14
13768 i[34567]86-*-*)
13769 conftest_s='
13770 .section ".tdata","awT",@progbits
13771 foo: .long 25
13772 .text
13773 movl %gs:0, %eax
13774 leal foo@TLSGD(,%ebx,1), %eax
13775 leal foo@TLSLDM(%ebx), %eax
13776 leal foo@DTPOFF(%eax), %edx
13777 movl foo@GOTTPOFF(%ebx), %eax
13778 subl foo@GOTTPOFF(%ebx), %eax
13779 addl foo@GOTNTPOFF(%ebx), %eax
13780 movl foo@INDNTPOFF, %eax
13781 movl $foo@TPOFF, %eax
13782 subl $foo@TPOFF, %eax
13783 leal foo@NTPOFF(%ecx), %eax'
13784 tls_first_major=2
13785 tls_first_minor=14
13786 tls_as_opt=--fatal-warnings
13788 x86_64-*-*)
13789 conftest_s='
13790 .section ".tdata","awT",@progbits
13791 foo: .long 25
13792 .text
13793 movq %fs:0, %rax
13794 leaq foo@TLSGD(%rip), %rdi
13795 leaq foo@TLSLD(%rip), %rdi
13796 leaq foo@DTPOFF(%rax), %rdx
13797 movq foo@GOTTPOFF(%rip), %rax
13798 movq $foo@TPOFF, %rax'
13799 tls_first_major=2
13800 tls_first_minor=14
13801 tls_as_opt=--fatal-warnings
13803 ia64-*-*)
13804 conftest_s='
13805 .section ".tdata","awT",@progbits
13806 foo: data8 25
13807 .text
13808 addl r16 = @ltoff(@dtpmod(foo#)), gp
13809 addl r17 = @ltoff(@dtprel(foo#)), gp
13810 addl r18 = @ltoff(@tprel(foo#)), gp
13811 addl r19 = @dtprel(foo#), gp
13812 adds r21 = @dtprel(foo#), r13
13813 movl r23 = @dtprel(foo#)
13814 addl r20 = @tprel(foo#), gp
13815 adds r22 = @tprel(foo#), r13
13816 movl r24 = @tprel(foo#)'
13817 tls_first_major=2
13818 tls_first_minor=13
13819 tls_as_opt=--fatal-warnings
13821 mips*-*-*)
13822 conftest_s='
13823 .section .tdata,"awT",@progbits
13825 .word 2
13826 .text
13827 addiu $4, $28, %tlsgd(x)
13828 addiu $4, $28, %tlsldm(x)
13829 lui $4, %dtprel_hi(x)
13830 addiu $4, $4, %dtprel_lo(x)
13831 lw $4, %gottprel(x)($28)
13832 lui $4, %tprel_hi(x)
13833 addiu $4, $4, %tprel_lo(x)'
13834 tls_first_major=2
13835 tls_first_minor=16
13836 tls_as_opt='-32 --fatal-warnings'
13838 powerpc-*-*)
13839 conftest_s='
13840 .section ".tdata","awT",@progbits
13841 .align 2
13842 ld0: .space 4
13843 ld1: .space 4
13844 x1: .space 4
13845 x2: .space 4
13846 x3: .space 4
13847 .text
13848 addi 3,31,ld0@got@tlsgd
13849 bl __tls_get_addr
13850 addi 3,31,x1@got@tlsld
13851 bl __tls_get_addr
13852 addi 9,3,x1@dtprel
13853 addis 9,3,x2@dtprel@ha
13854 addi 9,9,x2@dtprel@l
13855 lwz 9,x3@got@tprel(31)
13856 add 9,9,x@tls
13857 addi 9,2,x1@tprel
13858 addis 9,2,x2@tprel@ha
13859 addi 9,9,x2@tprel@l'
13860 tls_first_major=2
13861 tls_first_minor=14
13862 tls_as_opt="-a32 --fatal-warnings"
13864 powerpc64-*-*)
13865 conftest_s='
13866 .section ".tdata","awT",@progbits
13867 .align 3
13868 ld0: .space 8
13869 ld1: .space 8
13870 x1: .space 8
13871 x2: .space 8
13872 x3: .space 8
13873 .text
13874 addi 3,2,ld0@got@tlsgd
13875 bl .__tls_get_addr
13877 addi 3,2,ld1@toc
13878 bl .__tls_get_addr
13880 addi 3,2,x1@got@tlsld
13881 bl .__tls_get_addr
13883 addi 9,3,x1@dtprel
13884 bl .__tls_get_addr
13886 addis 9,3,x2@dtprel@ha
13887 addi 9,9,x2@dtprel@l
13888 bl .__tls_get_addr
13890 ld 9,x3@got@dtprel(2)
13891 add 9,9,3
13892 bl .__tls_get_addr
13893 nop'
13894 tls_first_major=2
13895 tls_first_minor=14
13896 tls_as_opt="-a64 --fatal-warnings"
13898 s390-*-*)
13899 conftest_s='
13900 .section ".tdata","awT",@progbits
13901 foo: .long 25
13902 .text
13903 .long foo@TLSGD
13904 .long foo@TLSLDM
13905 .long foo@DTPOFF
13906 .long foo@NTPOFF
13907 .long foo@GOTNTPOFF
13908 .long foo@INDNTPOFF
13909 l %r1,foo@GOTNTPOFF(%r12)
13910 l %r1,0(%r1):tls_load:foo
13911 bas %r14,0(%r1,%r13):tls_gdcall:foo
13912 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13913 tls_first_major=2
13914 tls_first_minor=14
13915 tls_as_opt="-m31 --fatal-warnings"
13917 s390x-*-*)
13918 conftest_s='
13919 .section ".tdata","awT",@progbits
13920 foo: .long 25
13921 .text
13922 .quad foo@TLSGD
13923 .quad foo@TLSLDM
13924 .quad foo@DTPOFF
13925 .quad foo@NTPOFF
13926 .quad foo@GOTNTPOFF
13927 lg %r1,foo@GOTNTPOFF(%r12)
13928 larl %r1,foo@INDNTPOFF
13929 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13930 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13931 tls_first_major=2
13932 tls_first_minor=14
13933 tls_as_opt="-m64 -Aesame --fatal-warnings"
13935 sh-*-* | sh[34]-*-*)
13936 conftest_s='
13937 .section ".tdata","awT",@progbits
13938 foo: .long 25
13939 .text
13940 .long foo@TLSGD
13941 .long foo@TLSLDM
13942 .long foo@DTPOFF
13943 .long foo@GOTTPOFF
13944 .long foo@TPOFF'
13945 tls_first_major=2
13946 tls_first_minor=13
13947 tls_as_opt=--fatal-warnings
13949 sparc*-*-*)
13950 case "$target" in
13951 sparc*-sun-solaris2.*)
13952 on_solaris=yes
13955 on_solaris=no
13957 esac
13958 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13959 conftest_s='
13960 .section ".tdata",#alloc,#write,#tls
13961 foo: .long 25
13962 .text
13963 sethi %tgd_hi22(foo), %o0
13964 add %o0, %tgd_lo10(foo), %o1
13965 add %l7, %o1, %o0, %tgd_add(foo)
13966 call __tls_get_addr, %tgd_call(foo)
13967 sethi %tldm_hi22(foo), %l1
13968 add %l1, %tldm_lo10(foo), %l2
13969 add %l7, %l2, %o0, %tldm_add(foo)
13970 call __tls_get_addr, %tldm_call(foo)
13971 sethi %tldo_hix22(foo), %l3
13972 xor %l3, %tldo_lox10(foo), %l4
13973 add %o0, %l4, %l5, %tldo_add(foo)
13974 sethi %tie_hi22(foo), %o3
13975 add %o3, %tie_lo10(foo), %o3
13976 ld [%l7 + %o3], %o2, %tie_ld(foo)
13977 add %g7, %o2, %o4, %tie_add(foo)
13978 sethi %tle_hix22(foo), %l1
13979 xor %l1, %tle_lox10(foo), %o5
13980 ld [%g7 + %o5], %o1'
13981 tls_first_major=0
13982 tls_first_minor=0
13983 else
13984 conftest_s='
13985 .section ".tdata","awT",@progbits
13986 foo: .long 25
13987 .text
13988 sethi %tgd_hi22(foo), %o0
13989 add %o0, %tgd_lo10(foo), %o1
13990 add %l7, %o1, %o0, %tgd_add(foo)
13991 call __tls_get_addr, %tgd_call(foo)
13992 sethi %tldm_hi22(foo), %l1
13993 add %l1, %tldm_lo10(foo), %l2
13994 add %l7, %l2, %o0, %tldm_add(foo)
13995 call __tls_get_addr, %tldm_call(foo)
13996 sethi %tldo_hix22(foo), %l3
13997 xor %l3, %tldo_lox10(foo), %l4
13998 add %o0, %l4, %l5, %tldo_add(foo)
13999 sethi %tie_hi22(foo), %o3
14000 add %o3, %tie_lo10(foo), %o3
14001 ld [%l7 + %o3], %o2, %tie_ld(foo)
14002 add %g7, %o2, %o4, %tie_add(foo)
14003 sethi %tle_hix22(foo), %l1
14004 xor %l1, %tle_lox10(foo), %o5
14005 ld [%g7 + %o5], %o1'
14006 tls_first_major=2
14007 tls_first_minor=14
14008 tls_as_opt="-32 --fatal-warnings"
14011 esac
14012 if test -z "$tls_first_major"; then
14013 : # If we don't have a check, assume no support.
14014 else
14015 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14016 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14017 if test "${gcc_cv_as_tls+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020 gcc_cv_as_tls=no
14021 if test $in_tree_gas = yes; then
14022 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14023 then gcc_cv_as_tls=yes
14025 elif test x$gcc_cv_as != x; then
14026 echo "$conftest_s" > conftest.s
14027 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }
14033 then
14034 gcc_cv_as_tls=yes
14035 else
14036 echo "configure: failed program was" >&5
14037 cat conftest.s >&5
14039 rm -f conftest.o conftest.s
14042 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14043 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14044 if test $gcc_cv_as_tls = yes; then
14046 cat >>confdefs.h <<\_ACEOF
14047 #define HAVE_AS_TLS 1
14048 _ACEOF
14053 # Target-specific assembler checks.
14055 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14056 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14057 gcc_cv_ld_static_dynamic=no
14058 if test $in_tree_ld = yes ; then
14059 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14060 gcc_cv_ld_static_dynamic=yes
14062 elif test x$gcc_cv_ld != x; then
14063 # Check if linker supports -Bstatic/-Bdynamic option
14064 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14065 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14066 gcc_cv_ld_static_dynamic=yes
14069 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14071 cat >>confdefs.h <<\_ACEOF
14072 #define HAVE_LD_STATIC_DYNAMIC 1
14073 _ACEOF
14076 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14077 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14079 if test x"$demangler_in_ld" = xyes; then
14080 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14081 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14082 gcc_cv_ld_demangle=no
14083 if test $in_tree_ld = yes; then
14084 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 \
14085 gcc_cv_ld_demangle=yes
14087 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14088 # Check if the GNU linker supports --demangle option
14089 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14090 gcc_cv_ld_demangle=yes
14093 if test x"$gcc_cv_ld_demangle" = xyes; then
14095 cat >>confdefs.h <<\_ACEOF
14096 #define HAVE_LD_DEMANGLE 1
14097 _ACEOF
14100 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14101 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14104 case "$target" in
14105 # All TARGET_ABI_OSF targets.
14106 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14107 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14108 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14109 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 else
14112 gcc_cv_as_alpha_explicit_relocs=no
14113 if test $in_tree_gas = yes; then
14114 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14115 then gcc_cv_as_alpha_explicit_relocs=yes
14117 elif test x$gcc_cv_as != x; then
14118 echo ' .set nomacro
14119 .text
14120 extbl $3, $2, $3 !lituse_bytoff!1
14121 ldq $2, a($29) !literal!1
14122 ldq $4, b($29) !literal!2
14123 ldq_u $3, 0($2) !lituse_base!1
14124 ldq $27, f($29) !literal!5
14125 jsr $26, ($27), f !lituse_jsr!5
14126 ldah $29, 0($26) !gpdisp!3
14127 lda $0, c($29) !gprel
14128 ldah $1, d($29) !gprelhigh
14129 lda $1, d($1) !gprellow
14130 lda $29, 0($29) !gpdisp!3' > conftest.s
14131 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }
14137 then
14138 gcc_cv_as_alpha_explicit_relocs=yes
14139 else
14140 echo "configure: failed program was" >&5
14141 cat conftest.s >&5
14143 rm -f conftest.o conftest.s
14146 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14147 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14148 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14150 cat >>confdefs.h <<\_ACEOF
14151 #define HAVE_AS_EXPLICIT_RELOCS 1
14152 _ACEOF
14157 cris-*-*)
14158 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14159 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14160 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 else
14163 gcc_cv_as_cris_no_mul_bug=no
14164 if test $in_tree_gas = yes; then
14165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14166 then gcc_cv_as_cris_no_mul_bug=yes
14168 elif test x$gcc_cv_as != x; then
14169 echo '.text' > conftest.s
14170 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; }
14176 then
14177 gcc_cv_as_cris_no_mul_bug=yes
14178 else
14179 echo "configure: failed program was" >&5
14180 cat conftest.s >&5
14182 rm -f conftest.o conftest.s
14185 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14186 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14187 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14189 cat >>confdefs.h <<\_ACEOF
14190 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14191 _ACEOF
14196 sparc*-*-*)
14197 echo "$as_me:$LINENO: checking assembler for .register" >&5
14198 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14199 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202 gcc_cv_as_sparc_register_op=no
14203 if test x$gcc_cv_as != x; then
14204 echo '.register %g2, #scratch' > conftest.s
14205 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }
14211 then
14212 gcc_cv_as_sparc_register_op=yes
14213 else
14214 echo "configure: failed program was" >&5
14215 cat conftest.s >&5
14217 rm -f conftest.o conftest.s
14220 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14221 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14222 if test $gcc_cv_as_sparc_register_op = yes; then
14224 cat >>confdefs.h <<\_ACEOF
14225 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14226 _ACEOF
14230 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14231 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14232 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235 gcc_cv_as_sparc_relax=no
14236 if test x$gcc_cv_as != x; then
14237 echo '.text' > conftest.s
14238 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }
14244 then
14245 gcc_cv_as_sparc_relax=yes
14246 else
14247 echo "configure: failed program was" >&5
14248 cat conftest.s >&5
14250 rm -f conftest.o conftest.s
14253 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14254 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14255 if test $gcc_cv_as_sparc_relax = yes; then
14257 cat >>confdefs.h <<\_ACEOF
14258 #define HAVE_AS_RELAX_OPTION 1
14259 _ACEOF
14263 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14264 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14265 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268 gcc_cv_as_sparc_ua_pcrel=no
14269 if test x$gcc_cv_as != x; then
14270 echo '.text
14271 foo:
14273 .data
14274 .align 4
14275 .byte 0
14276 .uaword %r_disp32(foo)' > conftest.s
14277 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }
14283 then
14284 if test x$gcc_cv_ld != x \
14285 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14286 gcc_cv_as_sparc_ua_pcrel=yes
14288 rm -f conftest
14289 else
14290 echo "configure: failed program was" >&5
14291 cat conftest.s >&5
14293 rm -f conftest.o conftest.s
14296 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14297 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14298 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14300 cat >>confdefs.h <<\_ACEOF
14301 #define HAVE_AS_SPARC_UA_PCREL 1
14302 _ACEOF
14305 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14306 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14307 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 else
14310 gcc_cv_as_sparc_ua_pcrel_hidden=no
14311 if test x$gcc_cv_as != x; then
14312 echo '.data
14313 .align 4
14314 .byte 0x31
14315 .uaword %r_disp32(foo)
14316 .byte 0x32, 0x33, 0x34
14317 .global foo
14318 .hidden foo
14319 foo:
14320 .skip 4' > conftest.s
14321 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }
14327 then
14328 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14329 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14330 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14331 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14332 if $gcc_cv_objdump -R conftest 2> /dev/null \
14333 | grep 'DISP32' > /dev/null 2>&1; then
14335 else
14336 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14339 rm -f conftest
14340 else
14341 echo "configure: failed program was" >&5
14342 cat conftest.s >&5
14344 rm -f conftest.o conftest.s
14347 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14348 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14349 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14351 cat >>confdefs.h <<\_ACEOF
14352 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14353 _ACEOF
14357 fi # unaligned pcrel relocs
14359 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14360 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14361 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364 gcc_cv_as_sparc_offsetable_lo10=no
14365 if test x$gcc_cv_as != x; then
14366 echo '.text
14367 or %g1, %lo(ab) + 12, %g1
14368 or %g1, %lo(ab + 12), %g1' > conftest.s
14369 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }
14375 then
14376 if test x$gcc_cv_objdump != x \
14377 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14378 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14379 gcc_cv_as_sparc_offsetable_lo10=yes
14381 else
14382 echo "configure: failed program was" >&5
14383 cat conftest.s >&5
14385 rm -f conftest.o conftest.s
14388 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14389 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14390 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14392 cat >>confdefs.h <<\_ACEOF
14393 #define HAVE_AS_OFFSETABLE_LO10 1
14394 _ACEOF
14399 i[34567]86-*-* | x86_64-*-*)
14400 case $target_os in
14401 cygwin* | pe | mingw32*)
14402 # Used for DWARF 2 in PE
14403 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14404 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14405 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 else
14408 gcc_cv_as_ix86_pe_secrel32=no
14409 if test $in_tree_gas = yes; then
14410 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14411 then gcc_cv_as_ix86_pe_secrel32=yes
14413 elif test x$gcc_cv_as != x; then
14414 echo '.text
14415 foo: nop
14416 .data
14417 .secrel32 foo' > conftest.s
14418 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }
14424 then
14425 if test x$gcc_cv_ld != x \
14426 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14427 gcc_cv_as_ix86_pe_secrel32=yes
14429 rm -f conftest
14430 else
14431 echo "configure: failed program was" >&5
14432 cat conftest.s >&5
14434 rm -f conftest.o conftest.s
14437 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14438 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14439 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14441 cat >>confdefs.h <<\_ACEOF
14442 #define HAVE_GAS_PE_SECREL32_RELOC 1
14443 _ACEOF
14447 esac
14449 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14450 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14451 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454 gcc_cv_as_ix86_filds_fists=no
14455 if test $in_tree_gas = yes; then
14456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14457 then gcc_cv_as_ix86_filds_fists=yes
14459 elif test x$gcc_cv_as != x; then
14460 echo 'filds mem; fists mem' > conftest.s
14461 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }
14467 then
14468 gcc_cv_as_ix86_filds_fists=yes
14469 else
14470 echo "configure: failed program was" >&5
14471 cat conftest.s >&5
14473 rm -f conftest.o conftest.s
14476 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14477 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14478 if test $gcc_cv_as_ix86_filds_fists = yes; then
14480 cat >>confdefs.h <<\_ACEOF
14481 #define HAVE_GAS_FILDS_FISTS 1
14482 _ACEOF
14486 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14487 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14488 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491 gcc_cv_as_ix86_cmov_sun_syntax=no
14492 if test x$gcc_cv_as != x; then
14493 echo 'cmovl.l %edx, %eax' > conftest.s
14494 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }
14500 then
14501 gcc_cv_as_ix86_cmov_sun_syntax=yes
14502 else
14503 echo "configure: failed program was" >&5
14504 cat conftest.s >&5
14506 rm -f conftest.o conftest.s
14509 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14510 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14511 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14513 cat >>confdefs.h <<\_ACEOF
14514 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14515 _ACEOF
14519 # This one is used unconditionally by i386.[ch]; it is to be defined
14520 # to 1 if the feature is present, 0 otherwise.
14521 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14522 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14523 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526 gcc_cv_as_ix86_gotoff_in_data=no
14527 if test $in_tree_gas = yes; then
14528 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14529 then gcc_cv_as_ix86_gotoff_in_data=yes
14531 elif test x$gcc_cv_as != x; then
14532 echo ' .text
14533 .L0:
14535 .data
14536 .long .L0@GOTOFF' > conftest.s
14537 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }
14543 then
14544 gcc_cv_as_ix86_gotoff_in_data=yes
14545 else
14546 echo "configure: failed program was" >&5
14547 cat conftest.s >&5
14549 rm -f conftest.o conftest.s
14552 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14553 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14556 cat >>confdefs.h <<_ACEOF
14557 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14558 _ACEOF
14562 ia64*-*-*)
14563 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14564 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14565 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14569 if test $in_tree_gas = yes; then
14570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14571 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14573 elif test x$gcc_cv_as != x; then
14574 echo ' .text
14575 addl r15 = @ltoffx(x#), gp
14577 ld8.mov r16 = [r15], x#' > conftest.s
14578 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }
14584 then
14585 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14586 else
14587 echo "configure: failed program was" >&5
14588 cat conftest.s >&5
14590 rm -f conftest.o conftest.s
14593 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14594 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14595 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14597 cat >>confdefs.h <<\_ACEOF
14598 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14599 _ACEOF
14605 powerpc*-*-*)
14606 case $target in
14607 *-*-aix*) conftest_s=' .machine "pwr5"
14608 .csect .text[PR]
14609 mfcr 3,128';;
14610 *-*-darwin*)
14611 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14612 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14613 if test "${gcc_cv_as_machine_directive+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616 gcc_cv_as_machine_directive=no
14617 if test x$gcc_cv_as != x; then
14618 echo ' .machine ppc7400' > conftest.s
14619 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14622 ac_status=$?
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }
14625 then
14626 gcc_cv_as_machine_directive=yes
14627 else
14628 echo "configure: failed program was" >&5
14629 cat conftest.s >&5
14631 rm -f conftest.o conftest.s
14634 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14635 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14637 if test x$gcc_cv_as_machine_directive != xyes; then
14638 echo "*** This target requires an assembler supporting \".machine\"" >&2
14639 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14640 test x$build = x$target && exit 1
14642 conftest_s=' .text
14643 mfcr r3,128';;
14644 *) conftest_s=' .machine power4
14645 .text
14646 mfcr 3,128';;
14647 esac
14649 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14650 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14651 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 else
14654 gcc_cv_as_powerpc_mfcrf=no
14655 if test $in_tree_gas = yes; then
14656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14657 then gcc_cv_as_powerpc_mfcrf=yes
14659 elif test x$gcc_cv_as != x; then
14660 echo "$conftest_s" > conftest.s
14661 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }
14667 then
14668 gcc_cv_as_powerpc_mfcrf=yes
14669 else
14670 echo "configure: failed program was" >&5
14671 cat conftest.s >&5
14673 rm -f conftest.o conftest.s
14676 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14677 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14678 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14680 cat >>confdefs.h <<\_ACEOF
14681 #define HAVE_AS_MFCRF 1
14682 _ACEOF
14686 case $target in
14687 *-*-aix*) conftest_s=' .machine "pwr5"
14688 .csect .text[PR]
14689 popcntb 3,3';;
14690 *) conftest_s=' .machine power5
14691 .text
14692 popcntb 3,3';;
14693 esac
14695 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
14696 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
14697 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 else
14700 gcc_cv_as_powerpc_popcntb=no
14701 if test $in_tree_gas = yes; then
14702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14703 then gcc_cv_as_powerpc_popcntb=yes
14705 elif test x$gcc_cv_as != x; then
14706 echo "$conftest_s" > conftest.s
14707 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }
14713 then
14714 gcc_cv_as_powerpc_popcntb=yes
14715 else
14716 echo "configure: failed program was" >&5
14717 cat conftest.s >&5
14719 rm -f conftest.o conftest.s
14722 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
14723 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
14724 if test $gcc_cv_as_powerpc_popcntb = yes; then
14726 cat >>confdefs.h <<\_ACEOF
14727 #define HAVE_AS_POPCNTB 1
14728 _ACEOF
14734 mips*-*-*)
14735 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14736 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14737 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740 gcc_cv_as_mips_explicit_relocs=no
14741 if test $in_tree_gas = yes; then
14742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14743 then gcc_cv_as_mips_explicit_relocs=yes
14745 elif test x$gcc_cv_as != x; then
14746 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14747 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }
14753 then
14754 gcc_cv_as_mips_explicit_relocs=yes
14755 else
14756 echo "configure: failed program was" >&5
14757 cat conftest.s >&5
14759 rm -f conftest.o conftest.s
14762 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14763 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14764 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14765 if test x$target_cpu_default = x
14766 then target_cpu_default=MASK_EXPLICIT_RELOCS
14767 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14771 if test x$gas_flag = xyes \
14772 || test x"$host" != x"$build" \
14773 || test ! -x "$gcc_cv_as" \
14774 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14776 else
14777 echo "*** This configuration requires the GNU assembler" >&2
14778 exit 1
14781 esac
14782 # ??? Not all targets support dwarf2 debug_line, even within a version
14783 # of gas. Moreover, we need to emit a valid instruction to trigger any
14784 # info to the output file. So, as supported targets are added to gas 2.11,
14785 # add some instruction here to (also) show we expect this might work.
14786 # ??? Once 2.11 is released, probably need to add first known working
14787 # version to the per-target configury.
14788 case "$target" in
14789 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14790 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14791 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14792 insn="nop"
14794 ia64*-*-* | s390*-*-*)
14795 insn="nop 0"
14797 mmix-*-*)
14798 insn="swym 0"
14800 esac
14801 if test x"$insn" != x; then
14802 conftest_s="\
14803 .file 1 \"conftest.s\"
14804 .loc 1 3 0
14805 $insn"
14806 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14807 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14808 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811 gcc_cv_as_dwarf2_debug_line=no
14812 if test $in_tree_gas = yes; then
14813 if test $in_tree_gas_is_elf = yes \
14814 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14815 then gcc_cv_as_dwarf2_debug_line=yes
14817 elif test x$gcc_cv_as != x; then
14818 echo "$conftest_s" > conftest.s
14819 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }
14825 then
14826 if test x$gcc_cv_objdump != x \
14827 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14828 | grep debug_line > /dev/null 2>&1; then
14829 gcc_cv_as_dwarf2_debug_line=yes
14831 else
14832 echo "configure: failed program was" >&5
14833 cat conftest.s >&5
14835 rm -f conftest.o conftest.s
14838 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14839 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14842 # The .debug_line file table must be in the exact order that
14843 # we specified the files, since these indices are also used
14844 # by DW_AT_decl_file. Approximate this test by testing if
14845 # the assembler bitches if the same index is assigned twice.
14846 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14847 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14848 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851 gcc_cv_as_dwarf2_file_buggy=no
14852 if test x$gcc_cv_as != x; then
14853 echo ' .file 1 "foo.s"
14854 .file 1 "bar.s"' > conftest.s
14855 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }
14861 then
14862 gcc_cv_as_dwarf2_file_buggy=yes
14863 else
14864 echo "configure: failed program was" >&5
14865 cat conftest.s >&5
14867 rm -f conftest.o conftest.s
14870 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14871 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14874 if test $gcc_cv_as_dwarf2_debug_line = yes \
14875 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14877 cat >>confdefs.h <<\_ACEOF
14878 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14879 _ACEOF
14883 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14884 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14885 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888 gcc_cv_as_gdwarf2_flag=no
14889 if test $in_tree_gas = yes; then
14890 if test $in_tree_gas_is_elf = yes \
14891 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14892 then gcc_cv_as_gdwarf2_flag=yes
14894 elif test x$gcc_cv_as != x; then
14895 echo "$insn" > conftest.s
14896 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }
14902 then
14903 gcc_cv_as_gdwarf2_flag=yes
14904 else
14905 echo "configure: failed program was" >&5
14906 cat conftest.s >&5
14908 rm -f conftest.o conftest.s
14911 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14912 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14913 if test $gcc_cv_as_gdwarf2_flag = yes; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14917 _ACEOF
14921 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14922 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14923 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926 gcc_cv_as_gstabs_flag=no
14927 if test $in_tree_gas = yes; then
14928 if test $in_tree_gas_is_elf = yes \
14929 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14930 then gcc_cv_as_gstabs_flag=yes
14932 elif test x$gcc_cv_as != x; then
14933 echo "$insn" > conftest.s
14934 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }
14940 then
14941 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14942 # and warns about it, but still exits successfully. So check for
14943 # this.
14944 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }
14950 then :
14951 else gcc_cv_as_gstabs_flag=yes
14953 else
14954 echo "configure: failed program was" >&5
14955 cat conftest.s >&5
14957 rm -f conftest.o conftest.s
14960 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14961 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14962 if test $gcc_cv_as_gstabs_flag = yes; then
14964 cat >>confdefs.h <<\_ACEOF
14965 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14966 _ACEOF
14971 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14972 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14973 gcc_cv_ld_ro_rw_mix=unknown
14974 if test $in_tree_ld = yes ; then
14975 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 \
14976 && test $in_tree_ld_is_elf = yes; then
14977 gcc_cv_ld_ro_rw_mix=read-write
14979 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14980 echo '.section myfoosect, "a"' > conftest1.s
14981 echo '.section myfoosect, "aw"' > conftest2.s
14982 echo '.byte 1' >> conftest2.s
14983 echo '.section myfoosect, "a"' > conftest3.s
14984 echo '.byte 0' >> conftest3.s
14985 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14986 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14987 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14988 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14989 conftest2.o conftest3.o > /dev/null 2>&1; then
14990 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14991 | sed -e '/myfoosect/!d' -e N`
14992 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14993 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14994 gcc_cv_ld_ro_rw_mix=read-only
14995 else
14996 gcc_cv_ld_ro_rw_mix=read-write
15000 rm -f conftest.* conftest[123].*
15002 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15004 cat >>confdefs.h <<\_ACEOF
15005 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15006 _ACEOF
15009 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15010 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15012 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15013 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15014 gcc_cv_ld_eh_frame_hdr=no
15015 if test $in_tree_ld = yes ; then
15016 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 \
15017 && test $in_tree_ld_is_elf = yes; then
15018 gcc_cv_ld_eh_frame_hdr=yes
15020 elif test x$gcc_cv_ld != x; then
15021 # Check if linker supports --eh-frame-hdr option
15022 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15023 gcc_cv_ld_eh_frame_hdr=yes
15027 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15029 cat >>confdefs.h <<\_ACEOF
15030 #define HAVE_LD_EH_FRAME_HDR 1
15031 _ACEOF
15034 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15035 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15037 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15038 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15039 gcc_cv_ld_pie=no
15040 if test $in_tree_ld = yes ; then
15041 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 \
15042 && test $in_tree_ld_is_elf = yes; then
15043 gcc_cv_ld_pie=yes
15045 elif test x$gcc_cv_ld != x; then
15046 # Check if linker supports -pie option
15047 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15048 gcc_cv_ld_pie=yes
15051 if test x"$gcc_cv_ld_pie" = xyes; then
15053 cat >>confdefs.h <<\_ACEOF
15054 #define HAVE_LD_PIE 1
15055 _ACEOF
15058 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15059 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15061 # --------
15062 # UNSORTED
15063 # --------
15065 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15066 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15067 if test "${gcc_cv_ld_as_needed+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070 gcc_cv_ld_as_needed=no
15071 if test $in_tree_ld = yes ; then
15072 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 \
15073 && test $in_tree_ld_is_elf = yes; then
15074 gcc_cv_ld_as_needed=yes
15076 elif test x$gcc_cv_ld != x; then
15077 # Check if linker supports --as-needed and --no-as-needed options
15078 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15079 gcc_cv_ld_as_needed=yes
15084 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15085 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15086 if test x"$gcc_cv_ld_as_needed" = xyes; then
15088 cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_LD_AS_NEEDED 1
15090 _ACEOF
15094 case "$target" in
15095 powerpc64*-*-linux*)
15096 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15097 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15098 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15100 else
15101 gcc_cv_ld_no_dot_syms=no
15102 if test $in_tree_ld = yes ; then
15103 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
15104 gcc_cv_ld_no_dot_syms=yes
15106 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15107 cat > conftest1.s <<EOF
15108 .text
15109 bl .foo
15111 cat > conftest2.s <<EOF
15112 .section ".opd","aw"
15113 .align 3
15114 .globl foo
15115 .type foo,@function
15116 foo:
15117 .quad .LEfoo,.TOC.@tocbase,0
15118 .text
15119 .LEfoo:
15121 .size foo,.-.LEfoo
15123 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15124 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15125 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15126 gcc_cv_ld_no_dot_syms=yes
15128 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15132 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15133 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15134 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15136 cat >>confdefs.h <<\_ACEOF
15137 #define HAVE_LD_NO_DOT_SYMS 1
15138 _ACEOF
15142 esac
15144 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15145 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15146 if test "${gcc_cv_ld_sysroot+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15148 else
15149 gcc_cv_ld_sysroot=no
15150 if test $in_tree_ld = yes ; then
15151 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
15152 gcc_cv_ld_sysroot=yes
15154 elif test x$gcc_cv_ld != x; then
15155 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15156 gcc_cv_ld_sysroot=yes
15160 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15161 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15162 if test x"$gcc_cv_ld_sysroot" = xyes; then
15164 cat >>confdefs.h <<\_ACEOF
15165 #define HAVE_LD_SYSROOT 1
15166 _ACEOF
15170 if test x$with_sysroot = x && test x$host = x$target \
15171 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15173 cat >>confdefs.h <<_ACEOF
15174 #define PREFIX_INCLUDE_DIR "$prefix/include"
15175 _ACEOF
15179 # Find out what GC implementation we want, or may, use.
15181 # Check whether --with-gc or --without-gc was given.
15182 if test "${with_gc+set}" = set; then
15183 withval="$with_gc"
15184 case "$withval" in
15185 page)
15186 GGC=ggc-$withval
15188 zone)
15189 GGC=ggc-$withval
15191 cat >>confdefs.h <<\_ACEOF
15192 #define GGC_ZONE 1
15193 _ACEOF
15197 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15198 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15199 { (exit 1); exit 1; }; }
15201 esac
15202 else
15203 GGC=ggc-page
15206 echo "Using $GGC for garbage collection."
15208 # Use the system's zlib library.
15209 zlibdir=-L../zlib
15210 zlibinc="-I\$(srcdir)/../zlib"
15212 # Check whether --with-system-zlib or --without-system-zlib was given.
15213 if test "${with_system_zlib+set}" = set; then
15214 withval="$with_system_zlib"
15215 zlibdir=
15216 zlibinc=
15223 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15224 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15225 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15226 if test "${enable_maintainer_mode+set}" = set; then
15227 enableval="$enable_maintainer_mode"
15228 maintainer_mode=$enableval
15229 else
15230 maintainer_mode=no
15233 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15234 echo "${ECHO_T}$maintainer_mode" >&6
15236 if test "$maintainer_mode" = "yes"; then
15237 MAINT=''
15238 else
15239 MAINT='#'
15242 # --------------
15243 # Language hooks
15244 # --------------
15246 # Make empty files to contain the specs and options for each language.
15247 # Then add #include lines to for a compiler that has specs and/or options.
15249 lang_opt_files=
15250 lang_specs_files=
15251 lang_tree_files=
15252 for subdir in . $subdirs
15254 if test -f $srcdir/$subdir/lang.opt; then
15255 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15257 if test -f $srcdir/$subdir/lang-specs.h; then
15258 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15260 if test -f $srcdir/$subdir/$subdir-tree.def; then
15261 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15263 done
15265 # These (without "all_") are set in each config-lang.in.
15266 # `language' must be a single word so is spelled singularly.
15267 all_languages=
15268 all_boot_languages=
15269 all_compilers=
15270 all_stagestuff=
15271 all_outputs='Makefile gccbug mklibgcc libada-mk'
15272 # List of language makefile fragments.
15273 all_lang_makefrags=
15274 # List of language subdirectory makefiles. Deprecated.
15275 all_lang_makefiles=
15276 # Files for gengtype
15277 all_gtfiles="$target_gtfiles"
15278 # Files for gengtype with language
15279 all_gtfiles_files_langs=
15280 all_gtfiles_files_files=
15282 # Add the language fragments.
15283 # Languages are added via two mechanisms. Some information must be
15284 # recorded in makefile variables, these are defined in config-lang.in.
15285 # We accumulate them and plug them into the main Makefile.
15286 # The other mechanism is a set of hooks for each of the main targets
15287 # like `clean', `install', etc.
15289 language_hooks="Make-hooks"
15291 for s in $subdirs
15293 language=
15294 boot_language=
15295 compilers=
15296 stagestuff=
15297 outputs=
15298 gtfiles=
15299 . ${srcdir}/$s/config-lang.in
15300 if test "x$language" = x
15301 then
15302 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15303 exit 1
15305 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15306 if test -f ${srcdir}/$s/Makefile.in
15307 then all_lang_makefiles="$s/Makefile"
15309 all_languages="$all_languages $language"
15310 if test "x$boot_language" = xyes
15311 then
15312 all_boot_languages="$all_boot_languages $language"
15314 all_compilers="$all_compilers $compilers"
15315 all_stagestuff="$all_stagestuff $stagestuff"
15316 all_outputs="$all_outputs $outputs"
15317 all_gtfiles="$all_gtfiles $gtfiles"
15318 for f in $gtfiles
15320 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15321 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15322 done
15323 done
15325 # Pick up gtfiles for c
15326 gtfiles=
15327 s="c"
15328 . ${srcdir}/c-config-lang.in
15329 all_gtfiles="$all_gtfiles $gtfiles"
15330 for f in $gtfiles
15332 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15333 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15334 done
15336 check_languages=
15337 for language in $all_languages
15339 check_languages="$check_languages check-$language"
15340 done
15342 # We link each language in with a set of hooks, reached indirectly via
15343 # lang.${target}.
15345 rm -f Make-hooks
15346 touch Make-hooks
15347 target_list="all.build all.cross start.encap rest.encap tags \
15348 install-normal install-common install-man \
15349 uninstall info man srcextra srcman srcinfo \
15350 mostlyclean clean distclean maintainer-clean \
15351 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15352 for t in $target_list
15355 for lang in $all_languages
15357 x="$x $lang.$t"
15358 done
15359 echo "lang.$t: $x" >> Make-hooks
15360 done
15362 # --------
15363 # UNSORTED
15364 # --------
15366 # Create .gdbinit.
15368 echo "dir ." > .gdbinit
15369 echo "dir ${srcdir}" >> .gdbinit
15370 if test x$gdb_needs_out_file_path = xyes
15371 then
15372 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15374 if test "x$subdirs" != x; then
15375 for s in $subdirs
15377 echo "dir ${srcdir}/$s" >> .gdbinit
15378 done
15380 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15382 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15383 # absolute path for gcc_tooldir based on inserting the number of up-directory
15384 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15385 # $(libsubdir)/@(unlibsubdir) based path.
15386 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15387 # make and thus we'd get different behavior depending on where we built the
15388 # sources.
15389 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15390 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15391 else
15392 # An explanation of the sed strings:
15393 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15394 # -e 's|/$||' match a trailing forward slash and eliminates it
15395 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15396 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15398 # (*) Note this pattern overwrites the first character of the string
15399 # with a forward slash if one is not already present. This is not a
15400 # problem because the exact names of the sub-directories concerned is
15401 # unimportant, just the number of them matters.
15403 # The practical upshot of these patterns is like this:
15405 # prefix exec_prefix result
15406 # ------ ----------- ------
15407 # /foo /foo/bar ../
15408 # /foo/ /foo/bar ../
15409 # /foo /foo/bar/ ../
15410 # /foo/ /foo/bar/ ../
15411 # /foo /foo/bar/ugg ../../
15413 dollar='$$'
15414 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15419 # Find a directory in which to install a shared libgcc.
15421 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15422 if test "${enable_version_specific_runtime_libs+set}" = set; then
15423 enableval="$enable_version_specific_runtime_libs"
15428 # Check whether --with-slibdir or --without-slibdir was given.
15429 if test "${with_slibdir+set}" = set; then
15430 withval="$with_slibdir"
15431 slibdir="$with_slibdir"
15432 else
15433 if test "${enable_version_specific_runtime_libs+set}" = set; then
15434 slibdir='$(libsubdir)'
15435 elif test "$host" != "$target"; then
15436 slibdir='$(build_tooldir)/lib'
15437 else
15438 slibdir='$(libdir)'
15443 objdir=`${PWDCMD-pwd}`
15446 # Substitute configuration variables
15510 # Echo link setup.
15511 if test x${build} = x${host} ; then
15512 if test x${host} = x${target} ; then
15513 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15514 else
15515 echo "Links are now set up to build a cross-compiler" 1>&2
15516 echo " from ${host} to ${target}." 1>&2
15518 else
15519 if test x${host} = x${target} ; then
15520 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15521 echo " for ${target}." 1>&2
15522 else
15523 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15524 echo " from ${host} to ${target}." 1>&2
15531 # Configure the subdirectories
15532 # AC_CONFIG_SUBDIRS($subdirs)
15534 # Create the Makefile
15535 # and configure language subdirectories
15536 ac_config_files="$ac_config_files $all_outputs"
15539 ac_config_commands="$ac_config_commands default"
15541 cat >confcache <<\_ACEOF
15542 # This file is a shell script that caches the results of configure
15543 # tests run on this system so they can be shared between configure
15544 # scripts and configure runs, see configure's option --config-cache.
15545 # It is not useful on other systems. If it contains results you don't
15546 # want to keep, you may remove or edit it.
15548 # config.status only pays attention to the cache file if you give it
15549 # the --recheck option to rerun configure.
15551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15553 # following values.
15555 _ACEOF
15557 # The following way of writing the cache mishandles newlines in values,
15558 # but we know of no workaround that is simple, portable, and efficient.
15559 # So, don't put newlines in cache variables' values.
15560 # Ultrix sh set writes to stderr and can't be redirected directly,
15561 # and sets the high bit in the cache file unless we assign to the vars.
15563 (set) 2>&1 |
15564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15565 *ac_space=\ *)
15566 # `set' does not quote correctly, so add quotes (double-quote
15567 # substitution turns \\\\ into \\, and sed turns \\ into \).
15568 sed -n \
15569 "s/'/'\\\\''/g;
15570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15573 # `set' quotes correctly as required by POSIX, so do not add quotes.
15574 sed -n \
15575 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15577 esac;
15579 sed '
15580 t clear
15581 : clear
15582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15583 t end
15584 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15585 : end' >>confcache
15586 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15587 if test -w $cache_file; then
15588 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15589 cat confcache >$cache_file
15590 else
15591 echo "not updating unwritable cache $cache_file"
15594 rm -f confcache
15596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15597 # Let make expand exec_prefix.
15598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15600 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15601 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15602 # trailing colons and then remove the whole line if VPATH becomes empty
15603 # (actually we leave an empty line to preserve line numbers).
15604 if test "x$srcdir" = x.; then
15605 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15606 s/:*\$(srcdir):*/:/;
15607 s/:*\${srcdir}:*/:/;
15608 s/:*@srcdir@:*/:/;
15609 s/^\([^=]*=[ ]*\):*/\1/;
15610 s/:*$//;
15611 s/^[^=]*=[ ]*$//;
15615 DEFS=-DHAVE_CONFIG_H
15617 ac_libobjs=
15618 ac_ltlibobjs=
15619 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15620 # 1. Remove the extension, and $U if already installed.
15621 ac_i=`echo "$ac_i" |
15622 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15623 # 2. Add them.
15624 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15625 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15626 done
15627 LIBOBJS=$ac_libobjs
15629 LTLIBOBJS=$ac_ltlibobjs
15633 : ${CONFIG_STATUS=./config.status}
15634 ac_clean_files_save=$ac_clean_files
15635 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15636 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15637 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15638 cat >$CONFIG_STATUS <<_ACEOF
15639 #! $SHELL
15640 # Generated by $as_me.
15641 # Run this file to recreate the current configuration.
15642 # Compiler output produced by configure, useful for debugging
15643 # configure, is in config.log if it exists.
15645 debug=false
15646 ac_cs_recheck=false
15647 ac_cs_silent=false
15648 SHELL=\${CONFIG_SHELL-$SHELL}
15649 _ACEOF
15651 cat >>$CONFIG_STATUS <<\_ACEOF
15652 ## --------------------- ##
15653 ## M4sh Initialization. ##
15654 ## --------------------- ##
15656 # Be Bourne compatible
15657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15658 emulate sh
15659 NULLCMD=:
15660 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15661 # is contrary to our usage. Disable this feature.
15662 alias -g '${1+"$@"}'='"$@"'
15663 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15664 set -o posix
15666 DUALCASE=1; export DUALCASE # for MKS sh
15668 # Support unset when possible.
15669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15670 as_unset=unset
15671 else
15672 as_unset=false
15676 # Work around bugs in pre-3.0 UWIN ksh.
15677 $as_unset ENV MAIL MAILPATH
15678 PS1='$ '
15679 PS2='> '
15680 PS4='+ '
15682 # NLS nuisances.
15683 for as_var in \
15684 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15685 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15686 LC_TELEPHONE LC_TIME
15688 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15689 eval $as_var=C; export $as_var
15690 else
15691 $as_unset $as_var
15693 done
15695 # Required to use basename.
15696 if expr a : '\(a\)' >/dev/null 2>&1; then
15697 as_expr=expr
15698 else
15699 as_expr=false
15702 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15703 as_basename=basename
15704 else
15705 as_basename=false
15709 # Name of the executable.
15710 as_me=`$as_basename "$0" ||
15711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15712 X"$0" : 'X\(//\)$' \| \
15713 X"$0" : 'X\(/\)$' \| \
15714 . : '\(.\)' 2>/dev/null ||
15715 echo X/"$0" |
15716 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15717 /^X\/\(\/\/\)$/{ s//\1/; q; }
15718 /^X\/\(\/\).*/{ s//\1/; q; }
15719 s/.*/./; q'`
15722 # PATH needs CR, and LINENO needs CR and PATH.
15723 # Avoid depending upon Character Ranges.
15724 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15725 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15726 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15727 as_cr_digits='0123456789'
15728 as_cr_alnum=$as_cr_Letters$as_cr_digits
15730 # The user is always right.
15731 if test "${PATH_SEPARATOR+set}" != set; then
15732 echo "#! /bin/sh" >conf$$.sh
15733 echo "exit 0" >>conf$$.sh
15734 chmod +x conf$$.sh
15735 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15736 PATH_SEPARATOR=';'
15737 else
15738 PATH_SEPARATOR=:
15740 rm -f conf$$.sh
15744 as_lineno_1=$LINENO
15745 as_lineno_2=$LINENO
15746 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15747 test "x$as_lineno_1" != "x$as_lineno_2" &&
15748 test "x$as_lineno_3" = "x$as_lineno_2" || {
15749 # Find who we are. Look in the path if we contain no path at all
15750 # relative or not.
15751 case $0 in
15752 *[\\/]* ) as_myself=$0 ;;
15753 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15754 for as_dir in $PATH
15756 IFS=$as_save_IFS
15757 test -z "$as_dir" && as_dir=.
15758 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15759 done
15762 esac
15763 # We did not find ourselves, most probably we were run as `sh COMMAND'
15764 # in which case we are not to be found in the path.
15765 if test "x$as_myself" = x; then
15766 as_myself=$0
15768 if test ! -f "$as_myself"; then
15769 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15770 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15771 { (exit 1); exit 1; }; }
15773 case $CONFIG_SHELL in
15775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15776 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15778 IFS=$as_save_IFS
15779 test -z "$as_dir" && as_dir=.
15780 for as_base in sh bash ksh sh5; do
15781 case $as_dir in
15783 if ("$as_dir/$as_base" -c '
15784 as_lineno_1=$LINENO
15785 as_lineno_2=$LINENO
15786 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15787 test "x$as_lineno_1" != "x$as_lineno_2" &&
15788 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15789 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15790 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15791 CONFIG_SHELL=$as_dir/$as_base
15792 export CONFIG_SHELL
15793 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15794 fi;;
15795 esac
15796 done
15797 done
15799 esac
15801 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15802 # uniformly replaced by the line number. The first 'sed' inserts a
15803 # line-number line before each line; the second 'sed' does the real
15804 # work. The second script uses 'N' to pair each line-number line
15805 # with the numbered line, and appends trailing '-' during
15806 # substitution so that $LINENO is not a special case at line end.
15807 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15808 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15809 sed '=' <$as_myself |
15810 sed '
15812 s,$,-,
15813 : loop
15814 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15815 t loop
15816 s,-$,,
15817 s,^['$as_cr_digits']*\n,,
15818 ' >$as_me.lineno &&
15819 chmod +x $as_me.lineno ||
15820 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15821 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15822 { (exit 1); exit 1; }; }
15824 # Don't try to exec as it changes $[0], causing all sort of problems
15825 # (the dirname of $[0] is not the place where we might find the
15826 # original and so on. Autoconf is especially sensible to this).
15827 . ./$as_me.lineno
15828 # Exit status is that of the last command.
15829 exit
15833 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15834 *c*,-n*) ECHO_N= ECHO_C='
15835 ' ECHO_T=' ' ;;
15836 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15837 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15838 esac
15840 if expr a : '\(a\)' >/dev/null 2>&1; then
15841 as_expr=expr
15842 else
15843 as_expr=false
15846 rm -f conf$$ conf$$.exe conf$$.file
15847 echo >conf$$.file
15848 if ln -s conf$$.file conf$$ 2>/dev/null; then
15849 # We could just check for DJGPP; but this test a) works b) is more generic
15850 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15851 if test -f conf$$.exe; then
15852 # Don't use ln at all; we don't have any links
15853 as_ln_s='cp -p'
15854 else
15855 as_ln_s='ln -s'
15857 elif ln conf$$.file conf$$ 2>/dev/null; then
15858 as_ln_s=ln
15859 else
15860 as_ln_s='cp -p'
15862 rm -f conf$$ conf$$.exe conf$$.file
15864 if mkdir -p . 2>/dev/null; then
15865 as_mkdir_p=:
15866 else
15867 test -d ./-p && rmdir ./-p
15868 as_mkdir_p=false
15871 as_executable_p="test -f"
15873 # Sed expression to map a string onto a valid CPP name.
15874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15876 # Sed expression to map a string onto a valid variable name.
15877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15880 # IFS
15881 # We need space, tab and new line, in precisely that order.
15882 as_nl='
15884 IFS=" $as_nl"
15886 # CDPATH.
15887 $as_unset CDPATH
15889 exec 6>&1
15891 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15892 # report actual input values of CONFIG_FILES etc. instead of their
15893 # values after options handling. Logging --version etc. is OK.
15894 exec 5>>config.log
15896 echo
15897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15898 ## Running $as_me. ##
15899 _ASBOX
15900 } >&5
15901 cat >&5 <<_CSEOF
15903 This file was extended by $as_me, which was
15904 generated by GNU Autoconf 2.59. Invocation command line was
15906 CONFIG_FILES = $CONFIG_FILES
15907 CONFIG_HEADERS = $CONFIG_HEADERS
15908 CONFIG_LINKS = $CONFIG_LINKS
15909 CONFIG_COMMANDS = $CONFIG_COMMANDS
15910 $ $0 $@
15912 _CSEOF
15913 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15914 echo >&5
15915 _ACEOF
15917 # Files that config.status was made for.
15918 if test -n "$ac_config_files"; then
15919 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15922 if test -n "$ac_config_headers"; then
15923 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15926 if test -n "$ac_config_links"; then
15927 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15930 if test -n "$ac_config_commands"; then
15931 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15934 cat >>$CONFIG_STATUS <<\_ACEOF
15936 ac_cs_usage="\
15937 \`$as_me' instantiates files from templates according to the
15938 current configuration.
15940 Usage: $0 [OPTIONS] [FILE]...
15942 -h, --help print this help, then exit
15943 -V, --version print version number, then exit
15944 -q, --quiet do not print progress messages
15945 -d, --debug don't remove temporary files
15946 --recheck update $as_me by reconfiguring in the same conditions
15947 --file=FILE[:TEMPLATE]
15948 instantiate the configuration file FILE
15949 --header=FILE[:TEMPLATE]
15950 instantiate the configuration header FILE
15952 Configuration files:
15953 $config_files
15955 Configuration headers:
15956 $config_headers
15958 Configuration commands:
15959 $config_commands
15961 Report bugs to <bug-autoconf@gnu.org>."
15962 _ACEOF
15964 cat >>$CONFIG_STATUS <<_ACEOF
15965 ac_cs_version="\\
15966 config.status
15967 configured by $0, generated by GNU Autoconf 2.59,
15968 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15970 Copyright (C) 2003 Free Software Foundation, Inc.
15971 This config.status script is free software; the Free Software Foundation
15972 gives unlimited permission to copy, distribute and modify it."
15973 srcdir=$srcdir
15974 _ACEOF
15976 cat >>$CONFIG_STATUS <<\_ACEOF
15977 # If no file are specified by the user, then we need to provide default
15978 # value. By we need to know if files were specified by the user.
15979 ac_need_defaults=:
15980 while test $# != 0
15982 case $1 in
15983 --*=*)
15984 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15985 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15986 ac_shift=:
15989 ac_option=$1
15990 ac_optarg=$2
15991 ac_shift=shift
15993 *) # This is not an option, so the user has probably given explicit
15994 # arguments.
15995 ac_option=$1
15996 ac_need_defaults=false;;
15997 esac
15999 case $ac_option in
16000 # Handling of the options.
16001 _ACEOF
16002 cat >>$CONFIG_STATUS <<\_ACEOF
16003 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16004 ac_cs_recheck=: ;;
16005 --version | --vers* | -V )
16006 echo "$ac_cs_version"; exit 0 ;;
16007 --he | --h)
16008 # Conflict between --help and --header
16009 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16010 Try \`$0 --help' for more information." >&5
16011 echo "$as_me: error: ambiguous option: $1
16012 Try \`$0 --help' for more information." >&2;}
16013 { (exit 1); exit 1; }; };;
16014 --help | --hel | -h )
16015 echo "$ac_cs_usage"; exit 0 ;;
16016 --debug | --d* | -d )
16017 debug=: ;;
16018 --file | --fil | --fi | --f )
16019 $ac_shift
16020 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16021 ac_need_defaults=false;;
16022 --header | --heade | --head | --hea )
16023 $ac_shift
16024 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16025 ac_need_defaults=false;;
16026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16027 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16028 ac_cs_silent=: ;;
16030 # This is an error.
16031 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16032 Try \`$0 --help' for more information." >&5
16033 echo "$as_me: error: unrecognized option: $1
16034 Try \`$0 --help' for more information." >&2;}
16035 { (exit 1); exit 1; }; } ;;
16037 *) ac_config_targets="$ac_config_targets $1" ;;
16039 esac
16040 shift
16041 done
16043 ac_configure_extra_args=
16045 if $ac_cs_silent; then
16046 exec 6>/dev/null
16047 ac_configure_extra_args="$ac_configure_extra_args --silent"
16050 _ACEOF
16051 cat >>$CONFIG_STATUS <<_ACEOF
16052 if \$ac_cs_recheck; then
16053 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16054 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16057 _ACEOF
16059 cat >>$CONFIG_STATUS <<_ACEOF
16061 # INIT-COMMANDS section.
16064 subdirs='$subdirs'
16066 _ACEOF
16070 cat >>$CONFIG_STATUS <<\_ACEOF
16071 for ac_config_target in $ac_config_targets
16073 case "$ac_config_target" in
16074 # Handling of arguments.
16075 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16076 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16077 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16078 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16079 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16080 { (exit 1); exit 1; }; };;
16081 esac
16082 done
16084 # If the user did not use the arguments to specify the items to instantiate,
16085 # then the envvar interface is used. Set only those that are not.
16086 # We use the long form for the default assignment because of an extremely
16087 # bizarre bug on SunOS 4.1.3.
16088 if $ac_need_defaults; then
16089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16094 # Have a temporary directory for convenience. Make it in the build tree
16095 # simply because there is no reason to put it here, and in addition,
16096 # creating and moving files from /tmp can sometimes cause problems.
16097 # Create a temporary directory, and hook for its removal unless debugging.
16098 $debug ||
16100 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16101 trap '{ (exit 1); exit 1; }' 1 2 13 15
16104 # Create a (secure) tmp directory for tmp files.
16107 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16108 test -n "$tmp" && test -d "$tmp"
16109 } ||
16111 tmp=./confstat$$-$RANDOM
16112 (umask 077 && mkdir $tmp)
16113 } ||
16115 echo "$me: cannot create a temporary directory in ." >&2
16116 { (exit 1); exit 1; }
16119 _ACEOF
16121 cat >>$CONFIG_STATUS <<_ACEOF
16124 # CONFIG_FILES section.
16127 # No need to generate the scripts if there are no CONFIG_FILES.
16128 # This happens for instance when ./config.status config.h
16129 if test -n "\$CONFIG_FILES"; then
16130 # Protect against being on the right side of a sed subst in config.status.
16131 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16132 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16133 s,@SHELL@,$SHELL,;t t
16134 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16135 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16136 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16137 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16138 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16139 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16140 s,@exec_prefix@,$exec_prefix,;t t
16141 s,@prefix@,$prefix,;t t
16142 s,@program_transform_name@,$program_transform_name,;t t
16143 s,@bindir@,$bindir,;t t
16144 s,@sbindir@,$sbindir,;t t
16145 s,@libexecdir@,$libexecdir,;t t
16146 s,@datadir@,$datadir,;t t
16147 s,@sysconfdir@,$sysconfdir,;t t
16148 s,@sharedstatedir@,$sharedstatedir,;t t
16149 s,@localstatedir@,$localstatedir,;t t
16150 s,@libdir@,$libdir,;t t
16151 s,@includedir@,$includedir,;t t
16152 s,@oldincludedir@,$oldincludedir,;t t
16153 s,@infodir@,$infodir,;t t
16154 s,@mandir@,$mandir,;t t
16155 s,@build_alias@,$build_alias,;t t
16156 s,@host_alias@,$host_alias,;t t
16157 s,@target_alias@,$target_alias,;t t
16158 s,@DEFS@,$DEFS,;t t
16159 s,@ECHO_C@,$ECHO_C,;t t
16160 s,@ECHO_N@,$ECHO_N,;t t
16161 s,@ECHO_T@,$ECHO_T,;t t
16162 s,@LIBS@,$LIBS,;t t
16163 s,@build@,$build,;t t
16164 s,@build_cpu@,$build_cpu,;t t
16165 s,@build_vendor@,$build_vendor,;t t
16166 s,@build_os@,$build_os,;t t
16167 s,@host@,$host,;t t
16168 s,@host_cpu@,$host_cpu,;t t
16169 s,@host_vendor@,$host_vendor,;t t
16170 s,@host_os@,$host_os,;t t
16171 s,@target@,$target,;t t
16172 s,@target_cpu@,$target_cpu,;t t
16173 s,@target_vendor@,$target_vendor,;t t
16174 s,@target_os@,$target_os,;t t
16175 s,@target_noncanonical@,$target_noncanonical,;t t
16176 s,@build_subdir@,$build_subdir,;t t
16177 s,@host_subdir@,$host_subdir,;t t
16178 s,@target_subdir@,$target_subdir,;t t
16179 s,@GENINSRC@,$GENINSRC,;t t
16180 s,@CC@,$CC,;t t
16181 s,@CFLAGS@,$CFLAGS,;t t
16182 s,@LDFLAGS@,$LDFLAGS,;t t
16183 s,@CPPFLAGS@,$CPPFLAGS,;t t
16184 s,@ac_ct_CC@,$ac_ct_CC,;t t
16185 s,@EXEEXT@,$EXEEXT,;t t
16186 s,@OBJEXT@,$OBJEXT,;t t
16187 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16188 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16189 s,@CPP@,$CPP,;t t
16190 s,@EGREP@,$EGREP,;t t
16191 s,@strict1_warn@,$strict1_warn,;t t
16192 s,@warn_cflags@,$warn_cflags,;t t
16193 s,@WERROR@,$WERROR,;t t
16194 s,@nocommon_flag@,$nocommon_flag,;t t
16195 s,@TREEBROWSER@,$TREEBROWSER,;t t
16196 s,@valgrind_path@,$valgrind_path,;t t
16197 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16198 s,@valgrind_command@,$valgrind_command,;t t
16199 s,@coverage_flags@,$coverage_flags,;t t
16200 s,@enable_multilib@,$enable_multilib,;t t
16201 s,@enable_shared@,$enable_shared,;t t
16202 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16203 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16204 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16205 s,@onestep@,$onestep,;t t
16206 s,@SET_MAKE@,$SET_MAKE,;t t
16207 s,@AWK@,$AWK,;t t
16208 s,@LN_S@,$LN_S,;t t
16209 s,@LN@,$LN,;t t
16210 s,@RANLIB@,$RANLIB,;t t
16211 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16212 s,@ranlib_flags@,$ranlib_flags,;t t
16213 s,@INSTALL@,$INSTALL,;t t
16214 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16215 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16216 s,@make_compare_target@,$make_compare_target,;t t
16217 s,@have_mktemp_command@,$have_mktemp_command,;t t
16218 s,@MAKEINFO@,$MAKEINFO,;t t
16219 s,@BUILD_INFO@,$BUILD_INFO,;t t
16220 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16221 s,@FLEX@,$FLEX,;t t
16222 s,@BISON@,$BISON,;t t
16223 s,@NM@,$NM,;t t
16224 s,@AR@,$AR,;t t
16225 s,@stage1_cflags@,$stage1_cflags,;t t
16226 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16227 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16228 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16229 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16230 s,@LIBICONV@,$LIBICONV,;t t
16231 s,@LTLIBICONV@,$LTLIBICONV,;t t
16232 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16233 s,@manext@,$manext,;t t
16234 s,@objext@,$objext,;t t
16235 s,@gthread_flags@,$gthread_flags,;t t
16236 s,@extra_modes_file@,$extra_modes_file,;t t
16237 s,@extra_opt_files@,$extra_opt_files,;t t
16238 s,@USE_NLS@,$USE_NLS,;t t
16239 s,@LIBINTL@,$LIBINTL,;t t
16240 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16241 s,@INCINTL@,$INCINTL,;t t
16242 s,@XGETTEXT@,$XGETTEXT,;t t
16243 s,@GMSGFMT@,$GMSGFMT,;t t
16244 s,@POSUB@,$POSUB,;t t
16245 s,@CATALOGS@,$CATALOGS,;t t
16246 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16247 s,@CROSS@,$CROSS,;t t
16248 s,@ALL@,$ALL,;t t
16249 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16250 s,@inhibit_libc@,$inhibit_libc,;t t
16251 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16252 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16253 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16254 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16255 s,@collect2@,$collect2,;t t
16256 s,@libgcc_visibility@,$libgcc_visibility,;t t
16257 s,@GGC@,$GGC,;t t
16258 s,@zlibdir@,$zlibdir,;t t
16259 s,@zlibinc@,$zlibinc,;t t
16260 s,@MAINT@,$MAINT,;t t
16261 s,@gcc_tooldir@,$gcc_tooldir,;t t
16262 s,@dollar@,$dollar,;t t
16263 s,@slibdir@,$slibdir,;t t
16264 s,@objdir@,$objdir,;t t
16265 s,@subdirs@,$subdirs,;t t
16266 s,@srcdir@,$srcdir,;t t
16267 s,@all_boot_languages@,$all_boot_languages,;t t
16268 s,@all_compilers@,$all_compilers,;t t
16269 s,@all_gtfiles@,$all_gtfiles,;t t
16270 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16271 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16272 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16273 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16274 s,@all_languages@,$all_languages,;t t
16275 s,@all_stagestuff@,$all_stagestuff,;t t
16276 s,@build_exeext@,$build_exeext,;t t
16277 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16278 s,@build_xm_file_list@,$build_xm_file_list,;t t
16279 s,@build_xm_include_list@,$build_xm_include_list,;t t
16280 s,@build_xm_defines@,$build_xm_defines,;t t
16281 s,@check_languages@,$check_languages,;t t
16282 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16283 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16284 s,@cpp_install_dir@,$cpp_install_dir,;t t
16285 s,@xmake_file@,$xmake_file,;t t
16286 s,@tmake_file@,$tmake_file,;t t
16287 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16288 s,@extra_headers_list@,$extra_headers_list,;t t
16289 s,@extra_objs@,$extra_objs,;t t
16290 s,@extra_parts@,$extra_parts,;t t
16291 s,@extra_passes@,$extra_passes,;t t
16292 s,@extra_programs@,$extra_programs,;t t
16293 s,@float_h_file@,$float_h_file,;t t
16294 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16295 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16296 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16297 s,@host_exeext@,$host_exeext,;t t
16298 s,@host_xm_file_list@,$host_xm_file_list,;t t
16299 s,@host_xm_include_list@,$host_xm_include_list,;t t
16300 s,@host_xm_defines@,$host_xm_defines,;t t
16301 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16302 s,@install@,$install,;t t
16303 s,@lang_opt_files@,$lang_opt_files,;t t
16304 s,@lang_specs_files@,$lang_specs_files,;t t
16305 s,@lang_tree_files@,$lang_tree_files,;t t
16306 s,@local_prefix@,$local_prefix,;t t
16307 s,@md_file@,$md_file,;t t
16308 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16309 s,@out_file@,$out_file,;t t
16310 s,@out_object_file@,$out_object_file,;t t
16311 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16312 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16313 s,@thread_file@,$thread_file,;t t
16314 s,@tm_file_list@,$tm_file_list,;t t
16315 s,@tm_include_list@,$tm_include_list,;t t
16316 s,@tm_defines@,$tm_defines,;t t
16317 s,@tm_p_file_list@,$tm_p_file_list,;t t
16318 s,@tm_p_include_list@,$tm_p_include_list,;t t
16319 s,@xm_file_list@,$xm_file_list,;t t
16320 s,@xm_include_list@,$xm_include_list,;t t
16321 s,@xm_defines@,$xm_defines,;t t
16322 s,@c_target_objs@,$c_target_objs,;t t
16323 s,@cxx_target_objs@,$cxx_target_objs,;t t
16324 s,@target_cpu_default@,$target_cpu_default,;t t
16325 s,@GMPLIBS@,$GMPLIBS,;t t
16326 s,@GMPINC@,$GMPINC,;t t
16327 s,@LIBOBJS@,$LIBOBJS,;t t
16328 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16329 /@language_hooks@/r $language_hooks
16330 s,@language_hooks@,,;t t
16331 CEOF
16333 _ACEOF
16335 cat >>$CONFIG_STATUS <<\_ACEOF
16336 # Split the substitutions into bite-sized pieces for seds with
16337 # small command number limits, like on Digital OSF/1 and HP-UX.
16338 ac_max_sed_lines=48
16339 ac_sed_frag=1 # Number of current file.
16340 ac_beg=1 # First line for current file.
16341 ac_end=$ac_max_sed_lines # Line after last line for current file.
16342 ac_more_lines=:
16343 ac_sed_cmds=
16344 while $ac_more_lines; do
16345 if test $ac_beg -gt 1; then
16346 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16347 else
16348 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16350 if test ! -s $tmp/subs.frag; then
16351 ac_more_lines=false
16352 else
16353 # The purpose of the label and of the branching condition is to
16354 # speed up the sed processing (if there are no `@' at all, there
16355 # is no need to browse any of the substitutions).
16356 # These are the two extra sed commands mentioned above.
16357 (echo ':t
16358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16359 if test -z "$ac_sed_cmds"; then
16360 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16361 else
16362 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16364 ac_sed_frag=`expr $ac_sed_frag + 1`
16365 ac_beg=$ac_end
16366 ac_end=`expr $ac_end + $ac_max_sed_lines`
16368 done
16369 if test -z "$ac_sed_cmds"; then
16370 ac_sed_cmds=cat
16372 fi # test -n "$CONFIG_FILES"
16374 _ACEOF
16375 cat >>$CONFIG_STATUS <<\_ACEOF
16376 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16377 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16378 case $ac_file in
16379 - | *:- | *:-:* ) # input from stdin
16380 cat >$tmp/stdin
16381 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16382 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16383 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16384 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16385 * ) ac_file_in=$ac_file.in ;;
16386 esac
16388 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16389 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16390 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16391 X"$ac_file" : 'X\(//\)[^/]' \| \
16392 X"$ac_file" : 'X\(//\)$' \| \
16393 X"$ac_file" : 'X\(/\)' \| \
16394 . : '\(.\)' 2>/dev/null ||
16395 echo X"$ac_file" |
16396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16397 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16398 /^X\(\/\/\)$/{ s//\1/; q; }
16399 /^X\(\/\).*/{ s//\1/; q; }
16400 s/.*/./; q'`
16401 { if $as_mkdir_p; then
16402 mkdir -p "$ac_dir"
16403 else
16404 as_dir="$ac_dir"
16405 as_dirs=
16406 while test ! -d "$as_dir"; do
16407 as_dirs="$as_dir $as_dirs"
16408 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16410 X"$as_dir" : 'X\(//\)[^/]' \| \
16411 X"$as_dir" : 'X\(//\)$' \| \
16412 X"$as_dir" : 'X\(/\)' \| \
16413 . : '\(.\)' 2>/dev/null ||
16414 echo X"$as_dir" |
16415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16417 /^X\(\/\/\)$/{ s//\1/; q; }
16418 /^X\(\/\).*/{ s//\1/; q; }
16419 s/.*/./; q'`
16420 done
16421 test ! -n "$as_dirs" || mkdir $as_dirs
16422 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16423 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16424 { (exit 1); exit 1; }; }; }
16426 ac_builddir=.
16428 if test "$ac_dir" != .; then
16429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16430 # A "../" for each directory in $ac_dir_suffix.
16431 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16432 else
16433 ac_dir_suffix= ac_top_builddir=
16436 case $srcdir in
16437 .) # No --srcdir option. We are building in place.
16438 ac_srcdir=.
16439 if test -z "$ac_top_builddir"; then
16440 ac_top_srcdir=.
16441 else
16442 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16443 fi ;;
16444 [\\/]* | ?:[\\/]* ) # Absolute path.
16445 ac_srcdir=$srcdir$ac_dir_suffix;
16446 ac_top_srcdir=$srcdir ;;
16447 *) # Relative path.
16448 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16449 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16450 esac
16452 # Do not use `cd foo && pwd` to compute absolute paths, because
16453 # the directories may not exist.
16454 case `pwd` in
16455 .) ac_abs_builddir="$ac_dir";;
16457 case "$ac_dir" in
16458 .) ac_abs_builddir=`pwd`;;
16459 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16460 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16461 esac;;
16462 esac
16463 case $ac_abs_builddir in
16464 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16466 case ${ac_top_builddir}. in
16467 .) ac_abs_top_builddir=$ac_abs_builddir;;
16468 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16469 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16470 esac;;
16471 esac
16472 case $ac_abs_builddir in
16473 .) ac_abs_srcdir=$ac_srcdir;;
16475 case $ac_srcdir in
16476 .) ac_abs_srcdir=$ac_abs_builddir;;
16477 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16478 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16479 esac;;
16480 esac
16481 case $ac_abs_builddir in
16482 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16484 case $ac_top_srcdir in
16485 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16486 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16487 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16488 esac;;
16489 esac
16493 if test x"$ac_file" != x-; then
16494 { echo "$as_me:$LINENO: creating $ac_file" >&5
16495 echo "$as_me: creating $ac_file" >&6;}
16496 rm -f "$ac_file"
16498 # Let's still pretend it is `configure' which instantiates (i.e., don't
16499 # use $as_me), people would be surprised to read:
16500 # /* config.h. Generated by config.status. */
16501 if test x"$ac_file" = x-; then
16502 configure_input=
16503 else
16504 configure_input="$ac_file. "
16506 configure_input=$configure_input"Generated from `echo $ac_file_in |
16507 sed 's,.*/,,'` by configure."
16509 # First look for the input files in the build tree, otherwise in the
16510 # src tree.
16511 ac_file_inputs=`IFS=:
16512 for f in $ac_file_in; do
16513 case $f in
16514 -) echo $tmp/stdin ;;
16515 [\\/$]*)
16516 # Absolute (can't be DOS-style, as IFS=:)
16517 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16518 echo "$as_me: error: cannot find input file: $f" >&2;}
16519 { (exit 1); exit 1; }; }
16520 echo "$f";;
16521 *) # Relative
16522 if test -f "$f"; then
16523 # Build tree
16524 echo "$f"
16525 elif test -f "$srcdir/$f"; then
16526 # Source tree
16527 echo "$srcdir/$f"
16528 else
16529 # /dev/null tree
16530 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16531 echo "$as_me: error: cannot find input file: $f" >&2;}
16532 { (exit 1); exit 1; }; }
16533 fi;;
16534 esac
16535 done` || { (exit 1); exit 1; }
16536 _ACEOF
16537 cat >>$CONFIG_STATUS <<_ACEOF
16538 sed "$ac_vpsub
16539 $extrasub
16540 _ACEOF
16541 cat >>$CONFIG_STATUS <<\_ACEOF
16543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16544 s,@configure_input@,$configure_input,;t t
16545 s,@srcdir@,$ac_srcdir,;t t
16546 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16547 s,@top_srcdir@,$ac_top_srcdir,;t t
16548 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16549 s,@builddir@,$ac_builddir,;t t
16550 s,@abs_builddir@,$ac_abs_builddir,;t t
16551 s,@top_builddir@,$ac_top_builddir,;t t
16552 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16553 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16554 rm -f $tmp/stdin
16555 if test x"$ac_file" != x-; then
16556 mv $tmp/out $ac_file
16557 else
16558 cat $tmp/out
16559 rm -f $tmp/out
16562 done
16563 _ACEOF
16564 cat >>$CONFIG_STATUS <<\_ACEOF
16567 # CONFIG_HEADER section.
16570 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16571 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16573 # ac_d sets the value in "#define NAME VALUE" lines.
16574 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16575 ac_dB='[ ].*$,\1#\2'
16576 ac_dC=' '
16577 ac_dD=',;t'
16578 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16579 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16580 ac_uB='$,\1#\2define\3'
16581 ac_uC=' '
16582 ac_uD=',;t'
16584 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16585 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16586 case $ac_file in
16587 - | *:- | *:-:* ) # input from stdin
16588 cat >$tmp/stdin
16589 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16590 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16591 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16592 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16593 * ) ac_file_in=$ac_file.in ;;
16594 esac
16596 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16597 echo "$as_me: creating $ac_file" >&6;}
16599 # First look for the input files in the build tree, otherwise in the
16600 # src tree.
16601 ac_file_inputs=`IFS=:
16602 for f in $ac_file_in; do
16603 case $f in
16604 -) echo $tmp/stdin ;;
16605 [\\/$]*)
16606 # Absolute (can't be DOS-style, as IFS=:)
16607 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16608 echo "$as_me: error: cannot find input file: $f" >&2;}
16609 { (exit 1); exit 1; }; }
16610 # Do quote $f, to prevent DOS paths from being IFS'd.
16611 echo "$f";;
16612 *) # Relative
16613 if test -f "$f"; then
16614 # Build tree
16615 echo "$f"
16616 elif test -f "$srcdir/$f"; then
16617 # Source tree
16618 echo "$srcdir/$f"
16619 else
16620 # /dev/null tree
16621 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16622 echo "$as_me: error: cannot find input file: $f" >&2;}
16623 { (exit 1); exit 1; }; }
16624 fi;;
16625 esac
16626 done` || { (exit 1); exit 1; }
16627 # Remove the trailing spaces.
16628 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16630 _ACEOF
16632 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16633 # `conftest.undefs', that substitutes the proper values into
16634 # config.h.in to produce config.h. The first handles `#define'
16635 # templates, and the second `#undef' templates.
16636 # And first: Protect against being on the right side of a sed subst in
16637 # config.status. Protect against being in an unquoted here document
16638 # in config.status.
16639 rm -f conftest.defines conftest.undefs
16640 # Using a here document instead of a string reduces the quoting nightmare.
16641 # Putting comments in sed scripts is not portable.
16643 # `end' is used to avoid that the second main sed command (meant for
16644 # 0-ary CPP macros) applies to n-ary macro definitions.
16645 # See the Autoconf documentation for `clear'.
16646 cat >confdef2sed.sed <<\_ACEOF
16647 s/[\\&,]/\\&/g
16648 s,[\\$`],\\&,g
16649 t clear
16650 : clear
16651 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16652 t end
16653 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16654 : end
16655 _ACEOF
16656 # If some macros were called several times there might be several times
16657 # the same #defines, which is useless. Nevertheless, we may not want to
16658 # sort them, since we want the *last* AC-DEFINE to be honored.
16659 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16660 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16661 rm -f confdef2sed.sed
16663 # This sed command replaces #undef with comments. This is necessary, for
16664 # example, in the case of _POSIX_SOURCE, which is predefined and required
16665 # on some systems where configure will not decide to define it.
16666 cat >>conftest.undefs <<\_ACEOF
16667 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16668 _ACEOF
16670 # Break up conftest.defines because some shells have a limit on the size
16671 # of here documents, and old seds have small limits too (100 cmds).
16672 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16673 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16674 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16675 echo ' :' >>$CONFIG_STATUS
16676 rm -f conftest.tail
16677 while grep . conftest.defines >/dev/null
16679 # Write a limited-size here document to $tmp/defines.sed.
16680 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16681 # Speed up: don't consider the non `#define' lines.
16682 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16683 # Work around the forget-to-reset-the-flag bug.
16684 echo 't clr' >>$CONFIG_STATUS
16685 echo ': clr' >>$CONFIG_STATUS
16686 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16687 echo 'CEOF
16688 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16689 rm -f $tmp/in
16690 mv $tmp/out $tmp/in
16691 ' >>$CONFIG_STATUS
16692 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16693 rm -f conftest.defines
16694 mv conftest.tail conftest.defines
16695 done
16696 rm -f conftest.defines
16697 echo ' fi # grep' >>$CONFIG_STATUS
16698 echo >>$CONFIG_STATUS
16700 # Break up conftest.undefs because some shells have a limit on the size
16701 # of here documents, and old seds have small limits too (100 cmds).
16702 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16703 rm -f conftest.tail
16704 while grep . conftest.undefs >/dev/null
16706 # Write a limited-size here document to $tmp/undefs.sed.
16707 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16708 # Speed up: don't consider the non `#undef'
16709 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16710 # Work around the forget-to-reset-the-flag bug.
16711 echo 't clr' >>$CONFIG_STATUS
16712 echo ': clr' >>$CONFIG_STATUS
16713 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16714 echo 'CEOF
16715 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16716 rm -f $tmp/in
16717 mv $tmp/out $tmp/in
16718 ' >>$CONFIG_STATUS
16719 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16720 rm -f conftest.undefs
16721 mv conftest.tail conftest.undefs
16722 done
16723 rm -f conftest.undefs
16725 cat >>$CONFIG_STATUS <<\_ACEOF
16726 # Let's still pretend it is `configure' which instantiates (i.e., don't
16727 # use $as_me), people would be surprised to read:
16728 # /* config.h. Generated by config.status. */
16729 if test x"$ac_file" = x-; then
16730 echo "/* Generated by configure. */" >$tmp/config.h
16731 else
16732 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16734 cat $tmp/in >>$tmp/config.h
16735 rm -f $tmp/in
16736 if test x"$ac_file" != x-; then
16737 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16738 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16739 echo "$as_me: $ac_file is unchanged" >&6;}
16740 else
16741 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16743 X"$ac_file" : 'X\(//\)[^/]' \| \
16744 X"$ac_file" : 'X\(//\)$' \| \
16745 X"$ac_file" : 'X\(/\)' \| \
16746 . : '\(.\)' 2>/dev/null ||
16747 echo X"$ac_file" |
16748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16750 /^X\(\/\/\)$/{ s//\1/; q; }
16751 /^X\(\/\).*/{ s//\1/; q; }
16752 s/.*/./; q'`
16753 { if $as_mkdir_p; then
16754 mkdir -p "$ac_dir"
16755 else
16756 as_dir="$ac_dir"
16757 as_dirs=
16758 while test ! -d "$as_dir"; do
16759 as_dirs="$as_dir $as_dirs"
16760 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16762 X"$as_dir" : 'X\(//\)[^/]' \| \
16763 X"$as_dir" : 'X\(//\)$' \| \
16764 X"$as_dir" : 'X\(/\)' \| \
16765 . : '\(.\)' 2>/dev/null ||
16766 echo X"$as_dir" |
16767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16769 /^X\(\/\/\)$/{ s//\1/; q; }
16770 /^X\(\/\).*/{ s//\1/; q; }
16771 s/.*/./; q'`
16772 done
16773 test ! -n "$as_dirs" || mkdir $as_dirs
16774 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16775 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16776 { (exit 1); exit 1; }; }; }
16778 rm -f $ac_file
16779 mv $tmp/config.h $ac_file
16781 else
16782 cat $tmp/config.h
16783 rm -f $tmp/config.h
16785 done
16786 _ACEOF
16787 cat >>$CONFIG_STATUS <<\_ACEOF
16790 # CONFIG_COMMANDS section.
16792 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16793 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16794 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16795 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16796 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16797 X"$ac_dest" : 'X\(//\)[^/]' \| \
16798 X"$ac_dest" : 'X\(//\)$' \| \
16799 X"$ac_dest" : 'X\(/\)' \| \
16800 . : '\(.\)' 2>/dev/null ||
16801 echo X"$ac_dest" |
16802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16804 /^X\(\/\/\)$/{ s//\1/; q; }
16805 /^X\(\/\).*/{ s//\1/; q; }
16806 s/.*/./; q'`
16807 { if $as_mkdir_p; then
16808 mkdir -p "$ac_dir"
16809 else
16810 as_dir="$ac_dir"
16811 as_dirs=
16812 while test ! -d "$as_dir"; do
16813 as_dirs="$as_dir $as_dirs"
16814 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16816 X"$as_dir" : 'X\(//\)[^/]' \| \
16817 X"$as_dir" : 'X\(//\)$' \| \
16818 X"$as_dir" : 'X\(/\)' \| \
16819 . : '\(.\)' 2>/dev/null ||
16820 echo X"$as_dir" |
16821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16823 /^X\(\/\/\)$/{ s//\1/; q; }
16824 /^X\(\/\).*/{ s//\1/; q; }
16825 s/.*/./; q'`
16826 done
16827 test ! -n "$as_dirs" || mkdir $as_dirs
16828 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16829 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16830 { (exit 1); exit 1; }; }; }
16832 ac_builddir=.
16834 if test "$ac_dir" != .; then
16835 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16836 # A "../" for each directory in $ac_dir_suffix.
16837 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16838 else
16839 ac_dir_suffix= ac_top_builddir=
16842 case $srcdir in
16843 .) # No --srcdir option. We are building in place.
16844 ac_srcdir=.
16845 if test -z "$ac_top_builddir"; then
16846 ac_top_srcdir=.
16847 else
16848 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16849 fi ;;
16850 [\\/]* | ?:[\\/]* ) # Absolute path.
16851 ac_srcdir=$srcdir$ac_dir_suffix;
16852 ac_top_srcdir=$srcdir ;;
16853 *) # Relative path.
16854 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16855 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16856 esac
16858 # Do not use `cd foo && pwd` to compute absolute paths, because
16859 # the directories may not exist.
16860 case `pwd` in
16861 .) ac_abs_builddir="$ac_dir";;
16863 case "$ac_dir" in
16864 .) ac_abs_builddir=`pwd`;;
16865 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16866 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16867 esac;;
16868 esac
16869 case $ac_abs_builddir in
16870 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16872 case ${ac_top_builddir}. in
16873 .) ac_abs_top_builddir=$ac_abs_builddir;;
16874 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16875 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16876 esac;;
16877 esac
16878 case $ac_abs_builddir in
16879 .) ac_abs_srcdir=$ac_srcdir;;
16881 case $ac_srcdir in
16882 .) ac_abs_srcdir=$ac_abs_builddir;;
16883 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16884 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16885 esac;;
16886 esac
16887 case $ac_abs_builddir in
16888 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16890 case $ac_top_srcdir in
16891 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16892 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16893 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16894 esac;;
16895 esac
16898 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16899 echo "$as_me: executing $ac_dest commands" >&6;}
16900 case $ac_dest in
16901 default )
16902 case ${CONFIG_HEADERS} in
16903 *auto-host.h:config.in*)
16904 echo > cstamp-h ;;
16905 esac
16906 # Make sure all the subdirs exist.
16907 for d in $subdirs doc build
16909 test -d $d || mkdir $d
16910 done
16911 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16912 # bootstrapping and the installation procedure can still use
16913 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16914 # FLAGS_TO_PASS has been modified to solve the problem there.
16915 # This is virtually a duplicate of what happens in configure.lang; we do
16916 # an extra check to make sure this only happens if ln -s can be used.
16917 case "$LN_S" in
16918 *-s*)
16919 for d in ${subdirs} ; do
16920 STARTDIR=`${PWDCMD-pwd}`
16921 cd $d
16922 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16924 rm -f $t
16925 $LN_S ../$t $t 2>/dev/null
16926 done
16927 cd $STARTDIR
16928 done
16930 esac
16932 esac
16933 done
16934 _ACEOF
16936 cat >>$CONFIG_STATUS <<\_ACEOF
16938 { (exit 0); exit 0; }
16939 _ACEOF
16940 chmod +x $CONFIG_STATUS
16941 ac_clean_files=$ac_clean_files_save
16944 # configure is writing to config.log, and then calls config.status.
16945 # config.status does its own redirection, appending to config.log.
16946 # Unfortunately, on DOS this fails, as config.log is still kept open
16947 # by configure, so config.status won't be able to write to it; its
16948 # output is simply discarded. So we exec the FD to /dev/null,
16949 # effectively closing config.log, so it can be properly (re)opened and
16950 # appended to by config.status. When coming back to configure, we
16951 # need to make the FD available again.
16952 if test "$no_create" != yes; then
16953 ac_cs_success=:
16954 ac_config_status_args=
16955 test "$silent" = yes &&
16956 ac_config_status_args="$ac_config_status_args --quiet"
16957 exec 5>/dev/null
16958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16959 exec 5>>config.log
16960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16961 # would make configure fail if this is the last instruction.
16962 $ac_cs_success || { (exit 1); exit 1; }