* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / configure
blob2d07b615f1c2c9a9cbdfc426e411998e0a17539a
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 cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep 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 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_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-decimal-float enable decimal float extension to C
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
898 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
904 of the registry key
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
912 Optional Packages:
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search for libiconv in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-gc={page,zone} choose the garbage collection mechanism to use
936 with the compiler
937 --with-system-zlib use installed libz
938 --with-slibdir=DIR shared libraries in DIR LIBDIR
940 Some influential environment variables:
941 CC C compiler command
942 CFLAGS C compiler flags
943 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
944 nonstandard directory <lib dir>
945 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
946 headers in a nonstandard directory <include dir>
947 CPP C preprocessor
948 GMPLIBS How to link GMP
949 GMPINC How to find GMP include files
951 Use these variables to override the choices made by `configure' or to help
952 it to find libraries and programs with nonstandard names/locations.
954 _ACEOF
957 if test "$ac_init_help" = "recursive"; then
958 # If there are subdirs, report their specific --help.
959 ac_popdir=`pwd`
960 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
961 test -d $ac_dir || continue
962 ac_builddir=.
964 if test "$ac_dir" != .; then
965 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
966 # A "../" for each directory in $ac_dir_suffix.
967 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
968 else
969 ac_dir_suffix= ac_top_builddir=
972 case $srcdir in
973 .) # No --srcdir option. We are building in place.
974 ac_srcdir=.
975 if test -z "$ac_top_builddir"; then
976 ac_top_srcdir=.
977 else
978 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
979 fi ;;
980 [\\/]* | ?:[\\/]* ) # Absolute path.
981 ac_srcdir=$srcdir$ac_dir_suffix;
982 ac_top_srcdir=$srcdir ;;
983 *) # Relative path.
984 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
985 ac_top_srcdir=$ac_top_builddir$srcdir ;;
986 esac
988 # Do not use `cd foo && pwd` to compute absolute paths, because
989 # the directories may not exist.
990 case `pwd` in
991 .) ac_abs_builddir="$ac_dir";;
993 case "$ac_dir" in
994 .) ac_abs_builddir=`pwd`;;
995 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
996 *) ac_abs_builddir=`pwd`/"$ac_dir";;
997 esac;;
998 esac
999 case $ac_abs_builddir in
1000 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1002 case ${ac_top_builddir}. in
1003 .) ac_abs_top_builddir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1005 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1006 esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_srcdir=$ac_srcdir;;
1011 case $ac_srcdir in
1012 .) ac_abs_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1014 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1015 esac;;
1016 esac
1017 case $ac_abs_builddir in
1018 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1020 case $ac_top_srcdir in
1021 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1022 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1023 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1024 esac;;
1025 esac
1027 cd $ac_dir
1028 # Check for guested configure; otherwise get Cygnus style configure.
1029 if test -f $ac_srcdir/configure.gnu; then
1030 echo
1031 $SHELL $ac_srcdir/configure.gnu --help=recursive
1032 elif test -f $ac_srcdir/configure; then
1033 echo
1034 $SHELL $ac_srcdir/configure --help=recursive
1035 elif test -f $ac_srcdir/configure.ac ||
1036 test -f $ac_srcdir/configure.in; then
1037 echo
1038 $ac_configure --help
1039 else
1040 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1042 cd "$ac_popdir"
1043 done
1046 test -n "$ac_init_help" && exit 0
1047 if $ac_init_version; then
1048 cat <<\_ACEOF
1050 Copyright (C) 2003 Free Software Foundation, Inc.
1051 This configure script is free software; the Free Software Foundation
1052 gives unlimited permission to copy, distribute and modify it.
1053 _ACEOF
1054 exit 0
1056 exec 5>config.log
1057 cat >&5 <<_ACEOF
1058 This file contains any messages produced by compilers while
1059 running configure, to aid debugging if configure makes a mistake.
1061 It was created by $as_me, which was
1062 generated by GNU Autoconf 2.59. Invocation command line was
1064 $ $0 $@
1066 _ACEOF
1068 cat <<_ASUNAME
1069 ## --------- ##
1070 ## Platform. ##
1071 ## --------- ##
1073 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1074 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1075 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1076 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1077 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1079 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1080 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1082 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1083 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1084 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1085 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1086 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1087 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1088 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1090 _ASUNAME
1092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1093 for as_dir in $PATH
1095 IFS=$as_save_IFS
1096 test -z "$as_dir" && as_dir=.
1097 echo "PATH: $as_dir"
1098 done
1100 } >&5
1102 cat >&5 <<_ACEOF
1105 ## ----------- ##
1106 ## Core tests. ##
1107 ## ----------- ##
1109 _ACEOF
1112 # Keep a trace of the command line.
1113 # Strip out --no-create and --no-recursion so they do not pile up.
1114 # Strip out --silent because we don't want to record it for future runs.
1115 # Also quote any args containing shell meta-characters.
1116 # Make two passes to allow for proper duplicate-argument suppression.
1117 ac_configure_args=
1118 ac_configure_args0=
1119 ac_configure_args1=
1120 ac_sep=
1121 ac_must_keep_next=false
1122 for ac_pass in 1 2
1124 for ac_arg
1126 case $ac_arg in
1127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 continue ;;
1131 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1132 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1133 esac
1134 case $ac_pass in
1135 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1137 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1138 if test $ac_must_keep_next = true; then
1139 ac_must_keep_next=false # Got value, back to normal.
1140 else
1141 case $ac_arg in
1142 *=* | --config-cache | -C | -disable-* | --disable-* \
1143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1145 | -with-* | --with-* | -without-* | --without-* | --x)
1146 case "$ac_configure_args0 " in
1147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1148 esac
1150 -* ) ac_must_keep_next=true ;;
1151 esac
1153 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1154 # Get rid of the leading space.
1155 ac_sep=" "
1157 esac
1158 done
1159 done
1160 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1161 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1163 # When interrupted or exit'd, cleanup temporary files, and complete
1164 # config.log. We remove comments because anyway the quotes in there
1165 # would cause problems or look ugly.
1166 # WARNING: Be sure not to use single quotes in there, as some shells,
1167 # such as our DU 5.0 friend, will then `close' the trap.
1168 trap 'exit_status=$?
1169 # Save into config.log some information that might help in debugging.
1171 echo
1173 cat <<\_ASBOX
1174 ## ---------------- ##
1175 ## Cache variables. ##
1176 ## ---------------- ##
1177 _ASBOX
1178 echo
1179 # The following way of writing the cache mishandles newlines in values,
1181 (set) 2>&1 |
1182 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1183 *ac_space=\ *)
1184 sed -n \
1185 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1189 sed -n \
1190 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1192 esac;
1194 echo
1196 cat <<\_ASBOX
1197 ## ----------------- ##
1198 ## Output variables. ##
1199 ## ----------------- ##
1200 _ASBOX
1201 echo
1202 for ac_var in $ac_subst_vars
1204 eval ac_val=$`echo $ac_var`
1205 echo "$ac_var='"'"'$ac_val'"'"'"
1206 done | sort
1207 echo
1209 if test -n "$ac_subst_files"; then
1210 cat <<\_ASBOX
1211 ## ------------- ##
1212 ## Output files. ##
1213 ## ------------- ##
1214 _ASBOX
1215 echo
1216 for ac_var in $ac_subst_files
1218 eval ac_val=$`echo $ac_var`
1219 echo "$ac_var='"'"'$ac_val'"'"'"
1220 done | sort
1221 echo
1224 if test -s confdefs.h; then
1225 cat <<\_ASBOX
1226 ## ----------- ##
1227 ## confdefs.h. ##
1228 ## ----------- ##
1229 _ASBOX
1230 echo
1231 sed "/^$/d" confdefs.h | sort
1232 echo
1234 test "$ac_signal" != 0 &&
1235 echo "$as_me: caught signal $ac_signal"
1236 echo "$as_me: exit $exit_status"
1237 } >&5
1238 rm -f core *.core &&
1239 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1240 exit $exit_status
1242 for ac_signal in 1 2 13 15; do
1243 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1244 done
1245 ac_signal=0
1247 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1248 rm -rf conftest* confdefs.h
1249 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250 echo >confdefs.h
1252 # Predefined preprocessor variables.
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_NAME "$PACKAGE_NAME"
1256 _ACEOF
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1261 _ACEOF
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1266 _ACEOF
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_STRING "$PACKAGE_STRING"
1271 _ACEOF
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1276 _ACEOF
1279 # Let the site file select an alternate cache file if it wants to.
1280 # Prefer explicitly selected file to automatically selected ones.
1281 if test -z "$CONFIG_SITE"; then
1282 if test "x$prefix" != xNONE; then
1283 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1284 else
1285 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1288 for ac_site_file in $CONFIG_SITE; do
1289 if test -r "$ac_site_file"; then
1290 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1291 echo "$as_me: loading site script $ac_site_file" >&6;}
1292 sed 's/^/| /' "$ac_site_file" >&5
1293 . "$ac_site_file"
1295 done
1297 if test -r "$cache_file"; then
1298 # Some versions of bash will fail to source /dev/null (special
1299 # files actually), so we avoid doing that.
1300 if test -f "$cache_file"; then
1301 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1302 echo "$as_me: loading cache $cache_file" >&6;}
1303 case $cache_file in
1304 [\\/]* | ?:[\\/]* ) . $cache_file;;
1305 *) . ./$cache_file;;
1306 esac
1308 else
1309 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1310 echo "$as_me: creating cache $cache_file" >&6;}
1311 >$cache_file
1314 # Check that the precious variables saved in the cache have kept the same
1315 # value.
1316 ac_cache_corrupted=false
1317 for ac_var in `(set) 2>&1 |
1318 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1319 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1320 eval ac_new_set=\$ac_env_${ac_var}_set
1321 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1322 eval ac_new_val="\$ac_env_${ac_var}_value"
1323 case $ac_old_set,$ac_new_set in
1324 set,)
1325 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1327 ac_cache_corrupted=: ;;
1328 ,set)
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1331 ac_cache_corrupted=: ;;
1332 ,);;
1334 if test "x$ac_old_val" != "x$ac_new_val"; then
1335 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1336 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1337 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1338 echo "$as_me: former value: $ac_old_val" >&2;}
1339 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1340 echo "$as_me: current value: $ac_new_val" >&2;}
1341 ac_cache_corrupted=:
1342 fi;;
1343 esac
1344 # Pass precious variables to config.status.
1345 if test "$ac_new_set" = set; then
1346 case $ac_new_val in
1347 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1348 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1349 *) ac_arg=$ac_var=$ac_new_val ;;
1350 esac
1351 case " $ac_configure_args " in
1352 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1353 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1354 esac
1356 done
1357 if $ac_cache_corrupted; then
1358 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1359 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1360 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1361 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1362 { (exit 1); exit 1; }; }
1365 ac_ext=c
1366 ac_cpp='$CPP $CPPFLAGS'
1367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1390 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1393 gcc_version=`cat $srcdir/BASE-VER`
1395 # Determine the host, build, and target systems
1396 ac_aux_dir=
1397 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1398 if test -f $ac_dir/install-sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install-sh -c"
1401 break
1402 elif test -f $ac_dir/install.sh; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/install.sh -c"
1405 break
1406 elif test -f $ac_dir/shtool; then
1407 ac_aux_dir=$ac_dir
1408 ac_install_sh="$ac_aux_dir/shtool install -c"
1409 break
1411 done
1412 if test -z "$ac_aux_dir"; then
1413 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1414 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1415 { (exit 1); exit 1; }; }
1417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1421 # Make sure we can run config.sub.
1422 $ac_config_sub sun4 >/dev/null 2>&1 ||
1423 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1424 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1425 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: checking build system type" >&5
1428 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1429 if test "${ac_cv_build+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432 ac_cv_build_alias=$build_alias
1433 test -z "$ac_cv_build_alias" &&
1434 ac_cv_build_alias=`$ac_config_guess`
1435 test -z "$ac_cv_build_alias" &&
1436 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1438 { (exit 1); exit 1; }; }
1439 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1446 echo "${ECHO_T}$ac_cv_build" >&6
1447 build=$ac_cv_build
1448 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 echo "$as_me:$LINENO: checking host system type" >&5
1454 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1455 if test "${ac_cv_host+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458 ac_cv_host_alias=$host_alias
1459 test -z "$ac_cv_host_alias" &&
1460 ac_cv_host_alias=$ac_cv_build_alias
1461 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1462 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1463 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1464 { (exit 1); exit 1; }; }
1467 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1468 echo "${ECHO_T}$ac_cv_host" >&6
1469 host=$ac_cv_host
1470 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1475 echo "$as_me:$LINENO: checking target system type" >&5
1476 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1477 if test "${ac_cv_target+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480 ac_cv_target_alias=$target_alias
1481 test "x$ac_cv_target_alias" = "x" &&
1482 ac_cv_target_alias=$ac_cv_host_alias
1483 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1484 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1485 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1486 { (exit 1); exit 1; }; }
1489 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1490 echo "${ECHO_T}$ac_cv_target" >&6
1491 target=$ac_cv_target
1492 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1493 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1494 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1497 # The aliases save the names the user supplied, while $host etc.
1498 # will get canonicalized.
1499 test -n "$target_alias" &&
1500 test "$program_prefix$program_suffix$program_transform_name" = \
1501 NONENONEs,x,x, &&
1502 program_prefix=${target_alias}-
1504 # Determine the noncanonical target name, for directory use.
1505 case ${build_alias} in
1506 "") build_noncanonical=${build} ;;
1507 *) build_noncanonical=${build_alias} ;;
1508 esac
1510 case ${host_alias} in
1511 "") host_noncanonical=${build_noncanonical} ;;
1512 *) host_noncanonical=${host_alias} ;;
1513 esac
1515 case ${target_alias} in
1516 "") target_noncanonical=${host_noncanonical} ;;
1517 *) target_noncanonical=${target_alias} ;;
1518 esac
1523 # Determine the target- and build-specific subdirectories
1524 # Prefix 'build-' so this never conflicts with target_subdir.
1525 build_subdir="build-${build_noncanonical}"
1526 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1527 if ( test $srcdir = . && test -d gcc ) \
1528 || test -d $srcdir/../host-${host_noncanonical}; then
1529 host_subdir="host-${host_noncanonical}"
1530 else
1531 host_subdir=.
1533 # No prefix.
1534 target_subdir=${target_noncanonical}
1537 # Set program_transform_name
1538 test "$program_prefix" != NONE &&
1539 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1540 # Use a double $ so make ignores it.
1541 test "$program_suffix" != NONE &&
1542 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1543 # Double any \ or $. echo might interpret backslashes.
1544 # By default was `s,x,x', remove it if useless.
1545 cat <<\_ACEOF >conftest.sed
1546 s/[\\$]/&&/g;s/;s,x,x,$//
1547 _ACEOF
1548 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1549 rm conftest.sed
1552 # Check for bogus environment variables.
1553 # Test if LIBRARY_PATH contains the notation for the current directory
1554 # since this would lead to problems installing/building glibc.
1555 # LIBRARY_PATH contains the current directory if one of the following
1556 # is true:
1557 # - one of the terminals (":" and ";") is the first or last sign
1558 # - two terminals occur directly after each other
1559 # - the path contains an element with a dot in it
1560 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1561 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1562 case ${LIBRARY_PATH} in
1563 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1564 library_path_setting="contains current directory"
1567 library_path_setting="ok"
1569 esac
1570 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1571 echo "${ECHO_T}$library_path_setting" >&6
1572 if test "$library_path_setting" != "ok"; then
1573 { { echo "$as_me:$LINENO: error:
1574 *** LIBRARY_PATH shouldn't contain the current directory when
1575 *** building gcc. Please change the environment variable
1576 *** and run configure again." >&5
1577 echo "$as_me: error:
1578 *** LIBRARY_PATH shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&2;}
1581 { (exit 1); exit 1; }; }
1584 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1585 # since this would lead to problems installing/building glibc.
1586 # GCC_EXEC_PREFIX contains the current directory if one of the following
1587 # is true:
1588 # - one of the terminals (":" and ";") is the first or last sign
1589 # - two terminals occur directly after each other
1590 # - the path contains an element with a dot in it
1591 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1592 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1593 case ${GCC_EXEC_PREFIX} in
1594 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1595 gcc_exec_prefix_setting="contains current directory"
1598 gcc_exec_prefix_setting="ok"
1600 esac
1601 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1602 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1603 if test "$gcc_exec_prefix_setting" != "ok"; then
1604 { { echo "$as_me:$LINENO: error:
1605 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&5
1608 echo "$as_me: error:
1609 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1610 *** building gcc. Please change the environment variable
1611 *** and run configure again." >&2;}
1612 { (exit 1); exit 1; }; }
1615 # -----------
1616 # Directories
1617 # -----------
1619 # Specify the local prefix
1620 local_prefix=
1622 # Check whether --with-local-prefix or --without-local-prefix was given.
1623 if test "${with_local_prefix+set}" = set; then
1624 withval="$with_local_prefix"
1625 case "${withval}" in
1626 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1627 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1628 { (exit 1); exit 1; }; } ;;
1629 no) ;;
1630 *) local_prefix=$with_local_prefix ;;
1631 esac
1634 # Default local prefix if it is empty
1635 if test x$local_prefix = x; then
1636 local_prefix=/usr/local
1639 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1640 # passed in by the toplevel make and thus we'd get different behavior
1641 # depending on where we built the sources.
1642 gcc_gxx_include_dir=
1643 # Specify the g++ header file directory
1645 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1646 if test "${with_gxx_include_dir+set}" = set; then
1647 withval="$with_gxx_include_dir"
1648 case "${withval}" in
1649 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1650 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1651 { (exit 1); exit 1; }; } ;;
1652 no) ;;
1653 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1654 esac
1657 if test x${gcc_gxx_include_dir} = x; then
1658 if test x${enable_version_specific_runtime_libs} = xyes; then
1659 gcc_gxx_include_dir='${libsubdir}/include/c++'
1660 else
1661 libstdcxx_incdir='c++/$(version)'
1662 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1667 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1668 if test "${with_cpp_install_dir+set}" = set; then
1669 withval="$with_cpp_install_dir"
1670 if test x$withval = xyes; then
1671 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1672 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1673 { (exit 1); exit 1; }; }
1674 elif test x$withval != xno; then
1675 cpp_install_dir=$withval
1679 # We would like to our source tree to be readonly. However when releases or
1680 # pre-releases are generated, the flex/bison generated files as well as the
1681 # various formats of manuals need to be included along with the rest of the
1682 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1683 # just that.
1685 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1686 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1687 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1688 if test "${enable_generated_files_in_srcdir+set}" = set; then
1689 enableval="$enable_generated_files_in_srcdir"
1690 generated_files_in_srcdir=$enableval
1691 else
1692 generated_files_in_srcdir=no
1695 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1696 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1698 if test "$generated_files_in_srcdir" = "yes"; then
1699 GENINSRC=''
1700 else
1701 GENINSRC='#'
1705 # -------------------
1706 # Find default linker
1707 # -------------------
1709 # With GNU ld
1711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1712 if test "${with_gnu_ld+set}" = set; then
1713 withval="$with_gnu_ld"
1714 gnu_ld_flag="$with_gnu_ld"
1715 else
1716 gnu_ld_flag=no
1719 # With pre-defined ld
1721 # Check whether --with-ld or --without-ld was given.
1722 if test "${with_ld+set}" = set; then
1723 withval="$with_ld"
1724 DEFAULT_LINKER="$with_ld"
1726 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1727 if test ! -x "$DEFAULT_LINKER"; then
1728 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1729 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1730 { (exit 1); exit 1; }; }
1731 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1732 gnu_ld_flag=yes
1735 cat >>confdefs.h <<_ACEOF
1736 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1737 _ACEOF
1741 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1742 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1743 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1744 if test x"$gnu_ld_flag" = x"no"; then
1745 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1746 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1747 else
1748 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1749 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1751 else
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1756 # With demangler in GNU ld
1758 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1759 if test "${with_demangler_in_ld+set}" = set; then
1760 withval="$with_demangler_in_ld"
1761 demangler_in_ld="$with_demangler_in_ld"
1762 else
1763 demangler_in_ld=no
1766 # ----------------------
1767 # Find default assembler
1768 # ----------------------
1770 # With GNU as
1772 # Check whether --with-gnu-as or --without-gnu-as was given.
1773 if test "${with_gnu_as+set}" = set; then
1774 withval="$with_gnu_as"
1775 gas_flag="$with_gnu_as"
1776 else
1777 gas_flag=no
1781 # Check whether --with-as or --without-as was given.
1782 if test "${with_as+set}" = set; then
1783 withval="$with_as"
1784 DEFAULT_ASSEMBLER="$with_as"
1786 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1787 if test ! -x "$DEFAULT_ASSEMBLER"; then
1788 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1789 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1790 { (exit 1); exit 1; }; }
1791 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1792 gas_flag=yes
1795 cat >>confdefs.h <<_ACEOF
1796 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1797 _ACEOF
1801 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1802 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1803 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1804 if test x"$gas_flag" = x"no"; then
1805 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1806 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1807 else
1808 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1809 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1811 else
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1816 # ---------------
1817 # Find C compiler
1818 # ---------------
1820 # If a non-executable a.out is present (e.g. created by GNU as above even if
1821 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1822 # file, even when creating an executable, so an execution test fails.
1823 # Remove possible default executable files to avoid this.
1825 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1826 # Autoconf includes it.
1827 rm -f a.out a.exe b.out
1829 # Find the native compiler
1830 ac_ext=c
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC="$CC" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1857 done
1858 done
1862 CC=$ac_cv_prog_CC
1863 if test -n "$CC"; then
1864 echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6
1866 else
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1872 if test -z "$ac_cv_prog_CC"; then
1873 ac_ct_CC=$CC
1874 # Extract the first word of "gcc", so it can be a program name with args.
1875 set dummy gcc; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="gcc"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1895 done
1896 done
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1909 CC=$ac_ct_CC
1910 else
1911 CC="$ac_cv_prog_CC"
1914 if test -z "$CC"; then
1915 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}cc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 if test -n "$CC"; then
1924 ac_cv_prog_CC="$CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1929 IFS=$as_save_IFS
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_CC="${ac_tool_prefix}cc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 break 2
1937 done
1938 done
1942 CC=$ac_cv_prog_CC
1943 if test -n "$CC"; then
1944 echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1946 else
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1952 if test -z "$ac_cv_prog_CC"; then
1953 ac_ct_CC=$CC
1954 # Extract the first word of "cc", so it can be a program name with args.
1955 set dummy cc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_CC="cc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1975 done
1976 done
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 CC=$ac_ct_CC
1990 else
1991 CC="$ac_cv_prog_CC"
1995 if test -z "$CC"; then
1996 # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006 ac_prog_rejected=no
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015 ac_prog_rejected=yes
2016 continue
2018 ac_cv_prog_CC="cc"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 break 2
2022 done
2023 done
2025 if test $ac_prog_rejected = yes; then
2026 # We found a bogon in the path, so make sure we never use it.
2027 set dummy $ac_cv_prog_CC
2028 shift
2029 if test $# != 0; then
2030 # We chose a different compiler from the bogus one.
2031 # However, it has the same basename, so the bogon will be chosen
2032 # first if we set CC to just the basename; use the full file name.
2033 shift
2034 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2049 if test -z "$CC"; then
2050 if test -n "$ac_tool_prefix"; then
2051 for ac_prog in cl
2053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2074 done
2075 done
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081 echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2083 else
2084 echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2088 test -n "$CC" && break
2089 done
2091 if test -z "$CC"; then
2092 ac_ct_CC=$CC
2093 for ac_prog in cl
2095 # Extract the first word of "$ac_prog", so it can be a program name with args.
2096 set dummy $ac_prog; ac_word=$2
2097 echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 if test -n "$ac_ct_CC"; then
2103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112 ac_cv_prog_ac_ct_CC="$ac_prog"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 break 2
2116 done
2117 done
2121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2122 if test -n "$ac_ct_CC"; then
2123 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2124 echo "${ECHO_T}$ac_ct_CC" >&6
2125 else
2126 echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6
2130 test -n "$ac_ct_CC" && break
2131 done
2133 CC=$ac_ct_CC
2139 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: no acceptable C compiler found in \$PATH
2142 See \`config.log' for more details." >&2;}
2143 { (exit 1); exit 1; }; }
2145 # Provide some information about the compiler.
2146 echo "$as_me:$LINENO:" \
2147 "checking for C compiler version" >&5
2148 ac_compiler=`set X $ac_compile; echo $2`
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150 (eval $ac_compiler --version </dev/null >&5) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155 (eval $ac_compiler -v </dev/null >&5) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160 (eval $ac_compiler -V </dev/null >&5) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }
2165 cat >conftest.$ac_ext <<_ACEOF
2166 /* confdefs.h. */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h. */
2173 main ()
2177 return 0;
2179 _ACEOF
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2184 # of exeext.
2185 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189 (eval $ac_link_default) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; then
2193 # Find the output, starting from the most likely. This scheme is
2194 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2195 # resort.
2197 # Be careful to initialize this variable, since it used to be cached.
2198 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2199 ac_cv_exeext=
2200 # b.out is created by i960 compilers.
2201 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2203 test -f "$ac_file" || continue
2204 case $ac_file in
2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2207 conftest.$ac_ext )
2208 # This is the source file.
2210 [ab].out )
2211 # We found the default executable, but exeext='' is most
2212 # certainly right.
2213 break;;
2214 *.* )
2215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 # FIXME: I believe we export ac_cv_exeext for Libtool,
2217 # but it would be cool to find out if it's true. Does anybody
2218 # maintain Libtool? --akim.
2219 export ac_cv_exeext
2220 break;;
2222 break;;
2223 esac
2224 done
2225 else
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233 { (exit 77); exit 77; }; }
2236 ac_exeext=$ac_cv_exeext
2237 echo "$as_me:$LINENO: result: $ac_file" >&5
2238 echo "${ECHO_T}$ac_file" >&6
2240 # Check the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245 # If not cross compiling, check that we can run a simple program.
2246 if test "$cross_compiling" != yes; then
2247 if { ac_try='./$ac_file'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2253 cross_compiling=no
2254 else
2255 if test "$cross_compiling" = maybe; then
2256 cross_compiling=yes
2257 else
2258 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }
2268 echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6
2271 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272 ac_clean_files=$ac_clean_files_save
2273 # Check the compiler produces executables we can run. If not, either
2274 # the compiler is broken, or we cross compile.
2275 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278 echo "${ECHO_T}$cross_compiling" >&6
2280 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283 (eval $ac_link) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; then
2287 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2289 # work properly (i.e., refer to `conftest.exe'), while it won't with
2290 # `rm'.
2291 for ac_file in conftest.exe conftest conftest.*; do
2292 test -f "$ac_file" || continue
2293 case $ac_file in
2294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2295 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296 export ac_cv_exeext
2297 break;;
2298 * ) break;;
2299 esac
2300 done
2301 else
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2309 rm -f conftest$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2315 ac_exeext=$EXEEXT
2316 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h. */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2329 main ()
2333 return 0;
2335 _ACEOF
2336 rm -f conftest.o conftest.obj
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; then
2342 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2343 case $ac_file in
2344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346 break;;
2347 esac
2348 done
2349 else
2350 echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2353 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356 See \`config.log' for more details." >&2;}
2357 { (exit 1); exit 1; }; }
2360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2362 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363 echo "${ECHO_T}$ac_cv_objext" >&6
2364 OBJEXT=$ac_cv_objext
2365 ac_objext=$OBJEXT
2366 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2379 main ()
2381 #ifndef __GNUC__
2382 choke me
2383 #endif
2386 return 0;
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 ac_compiler_gnu=yes
2411 else
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2415 ac_compiler_gnu=no
2417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2421 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2423 GCC=`test $ac_compiler_gnu = yes && echo yes`
2424 ac_test_CFLAGS=${CFLAGS+set}
2425 ac_save_CFLAGS=$CFLAGS
2426 CFLAGS="-g"
2427 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2429 if test "${ac_cv_prog_cc_g+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h. */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2440 main ()
2444 return 0;
2446 _ACEOF
2447 rm -f conftest.$ac_objext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 ac_cv_prog_cc_g=yes
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2473 ac_cv_prog_cc_g=no
2475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2478 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2479 if test "$ac_test_CFLAGS" = set; then
2480 CFLAGS=$ac_save_CFLAGS
2481 elif test $ac_cv_prog_cc_g = yes; then
2482 if test "$GCC" = yes; then
2483 CFLAGS="-g -O2"
2484 else
2485 CFLAGS="-g"
2487 else
2488 if test "$GCC" = yes; then
2489 CFLAGS="-O2"
2490 else
2491 CFLAGS=
2494 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2495 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2496 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499 ac_cv_prog_cc_stdc=no
2500 ac_save_CC=$CC
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h. */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2507 #include <stdarg.h>
2508 #include <stdio.h>
2509 #include <sys/types.h>
2510 #include <sys/stat.h>
2511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2512 struct buf { int x; };
2513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2514 static char *e (p, i)
2515 char **p;
2516 int i;
2518 return p[i];
2520 static char *f (char * (*g) (char **, int), char **p, ...)
2522 char *s;
2523 va_list v;
2524 va_start (v,p);
2525 s = g (p, va_arg (v,int));
2526 va_end (v);
2527 return s;
2530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2531 function prototypes and stuff, but not '\xHH' hex character constants.
2532 These don't provoke an error unfortunately, instead are silently treated
2533 as 'x'. The following induces an error, until -std1 is added to get
2534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2535 array size at least. It's necessary to write '\x00'==0 to get something
2536 that's true only with -std1. */
2537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2539 int test (int i, double x);
2540 struct s1 {int (*f) (int a);};
2541 struct s2 {int (*f) (double a);};
2542 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2543 int argc;
2544 char **argv;
2546 main ()
2548 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2550 return 0;
2552 _ACEOF
2553 # Don't try gcc -ansi; that turns off useful extensions and
2554 # breaks some systems' header files.
2555 # AIX -qlanglvl=ansi
2556 # Ultrix and OSF/1 -std1
2557 # HP-UX 10.20 and later -Ae
2558 # HP-UX older versions -Aa -D_HPUX_SOURCE
2559 # SVR4 -Xc -D__EXTENSIONS__
2560 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562 CC="$ac_save_CC $ac_arg"
2563 rm -f conftest.$ac_objext
2564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565 (eval $ac_compile) 2>conftest.er1
2566 ac_status=$?
2567 grep -v '^ *+' conftest.er1 >conftest.err
2568 rm -f conftest.er1
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; } &&
2578 { ac_try='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 ac_cv_prog_cc_stdc=$ac_arg
2585 break
2586 else
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2591 rm -f conftest.err conftest.$ac_objext
2592 done
2593 rm -f conftest.$ac_ext conftest.$ac_objext
2594 CC=$ac_save_CC
2598 case "x$ac_cv_prog_cc_stdc" in
2599 x|xno)
2600 echo "$as_me:$LINENO: result: none needed" >&5
2601 echo "${ECHO_T}none needed" >&6 ;;
2603 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2605 CC="$CC $ac_cv_prog_cc_stdc" ;;
2606 esac
2608 # Some people use a C++ compiler to compile C. Since we use `exit',
2609 # in C++ we need to declare it. In case someone uses the same compiler
2610 # for both compiling C and C++ we need to have the C++ compiler decide
2611 # the declaration of exit, since it's the most demanding environment.
2612 cat >conftest.$ac_ext <<_ACEOF
2613 #ifndef __cplusplus
2614 choke me
2615 #endif
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 for ac_declaration in \
2639 '' \
2640 'extern "C" void std::exit (int) throw (); using std::exit;' \
2641 'extern "C" void std::exit (int); using std::exit;' \
2642 'extern "C" void exit (int) throw ();' \
2643 'extern "C" void exit (int);' \
2644 'void exit (int);'
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h. */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2652 $ac_declaration
2653 #include <stdlib.h>
2655 main ()
2657 exit (42);
2659 return 0;
2661 _ACEOF
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2665 ac_status=$?
2666 grep -v '^ *+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2684 else
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2688 continue
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691 cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h. */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2697 $ac_declaration
2699 main ()
2701 exit (42);
2703 return 0;
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 break
2728 else
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734 done
2735 rm -f conftest*
2736 if test -n "$ac_declaration"; then
2737 echo '#ifdef __cplusplus' >>confdefs.h
2738 echo $ac_declaration >>confdefs.h
2739 echo '#endif' >>confdefs.h
2742 else
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754 if test "x$CC" != xcc; then
2755 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2756 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2757 else
2758 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2759 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2761 set dummy $CC; ac_cc=`echo $2 |
2762 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2763 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h. */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2774 main ()
2778 return 0;
2780 _ACEOF
2781 # Make sure it works both with $CC and with simple cc.
2782 # We do the test twice because some compilers refuse to overwrite an
2783 # existing .o file with -o, though they will create one.
2784 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2785 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); };
2795 then
2796 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2797 if test "x$CC" != xcc; then
2798 # Test first that cc exists at all.
2799 if { ac_try='cc -c conftest.$ac_ext >&5'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2806 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 (eval $ac_try) 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); };
2816 then
2817 # cc works too.
2819 else
2820 # cc exists but doesn't like -o.
2821 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2825 else
2826 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2828 rm -f conftest*
2831 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2832 echo "$as_me:$LINENO: result: yes" >&5
2833 echo "${ECHO_T}yes" >&6
2834 else
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2838 cat >>confdefs.h <<\_ACEOF
2839 #define NO_MINUS_C_MINUS_O 1
2840 _ACEOF
2844 # expand $ac_aux_dir to an absolute path
2845 am_aux_dir=`cd $ac_aux_dir && pwd`
2847 # FIXME: we rely on the cache variable name because
2848 # there is no other way.
2849 set dummy $CC
2850 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2851 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2852 # Losing compiler, so override with the script.
2853 # FIXME: It is wrong to rewrite CC.
2854 # But if we don't then we get into trouble of one sort or another.
2855 # A longer-term fix would be to have automake use am__CC in this case,
2856 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2857 CC="$am_aux_dir/compile $CC"
2860 # autoconf is lame and doesn't give us any substitution variable for this.
2861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2862 NO_MINUS_C_MINUS_O=yes
2863 else
2864 OUTPUT_OPTION='-o $@'
2869 # -------------------------
2870 # Check C compiler features
2871 # -------------------------
2873 ac_ext=c
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2879 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2880 # On Suns, sometimes $CPP names a directory.
2881 if test -n "$CPP" && test -d "$CPP"; then
2882 CPP=
2884 if test -z "$CPP"; then
2885 if test "${ac_cv_prog_CPP+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888 # Double quotes because CPP needs to be expanded
2889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2891 ac_preproc_ok=false
2892 for ac_c_preproc_warn_flag in '' yes
2894 # Use a header file that comes with gcc, so configuring glibc
2895 # with a fresh cross-compiler works.
2896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2897 # <limits.h> exists even on freestanding compilers.
2898 # On the NeXT, cc -E runs the code through the compiler's parser,
2899 # not just through cpp. "Syntax error" is here to catch this case.
2900 cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h. */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2906 #ifdef __STDC__
2907 # include <limits.h>
2908 #else
2909 # include <assert.h>
2910 #endif
2911 Syntax error
2912 _ACEOF
2913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2915 ac_status=$?
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } >/dev/null; then
2921 if test -s conftest.err; then
2922 ac_cpp_err=$ac_c_preproc_warn_flag
2923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2924 else
2925 ac_cpp_err=
2927 else
2928 ac_cpp_err=yes
2930 if test -z "$ac_cpp_err"; then
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 # Broken: fails on valid input.
2937 continue
2939 rm -f conftest.err conftest.$ac_ext
2941 # OK, works on sane cases. Now check whether non-existent headers
2942 # can be detected and how.
2943 cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h. */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #include <ac_nonexistent.h>
2950 _ACEOF
2951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2953 ac_status=$?
2954 grep -v '^ *+' conftest.er1 >conftest.err
2955 rm -f conftest.er1
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } >/dev/null; then
2959 if test -s conftest.err; then
2960 ac_cpp_err=$ac_c_preproc_warn_flag
2961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2962 else
2963 ac_cpp_err=
2965 else
2966 ac_cpp_err=yes
2968 if test -z "$ac_cpp_err"; then
2969 # Broken: success on invalid input.
2970 continue
2971 else
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 # Passes both tests.
2976 ac_preproc_ok=:
2977 break
2979 rm -f conftest.err conftest.$ac_ext
2981 done
2982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2983 rm -f conftest.err conftest.$ac_ext
2984 if $ac_preproc_ok; then
2985 break
2988 done
2989 ac_cv_prog_CPP=$CPP
2992 CPP=$ac_cv_prog_CPP
2993 else
2994 ac_cv_prog_CPP=$CPP
2996 echo "$as_me:$LINENO: result: $CPP" >&5
2997 echo "${ECHO_T}$CPP" >&6
2998 ac_preproc_ok=false
2999 for ac_c_preproc_warn_flag in '' yes
3001 # Use a header file that comes with gcc, so configuring glibc
3002 # with a fresh cross-compiler works.
3003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3004 # <limits.h> exists even on freestanding compilers.
3005 # On the NeXT, cc -E runs the code through the compiler's parser,
3006 # not just through cpp. "Syntax error" is here to catch this case.
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013 #ifdef __STDC__
3014 # include <limits.h>
3015 #else
3016 # include <assert.h>
3017 #endif
3018 Syntax error
3019 _ACEOF
3020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3022 ac_status=$?
3023 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } >/dev/null; then
3028 if test -s conftest.err; then
3029 ac_cpp_err=$ac_c_preproc_warn_flag
3030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3031 else
3032 ac_cpp_err=
3034 else
3035 ac_cpp_err=yes
3037 if test -z "$ac_cpp_err"; then
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 # Broken: fails on valid input.
3044 continue
3046 rm -f conftest.err conftest.$ac_ext
3048 # OK, works on sane cases. Now check whether non-existent headers
3049 # can be detected and how.
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h. */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3056 #include <ac_nonexistent.h>
3057 _ACEOF
3058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3060 ac_status=$?
3061 grep -v '^ *+' conftest.er1 >conftest.err
3062 rm -f conftest.er1
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } >/dev/null; then
3066 if test -s conftest.err; then
3067 ac_cpp_err=$ac_c_preproc_warn_flag
3068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3069 else
3070 ac_cpp_err=
3072 else
3073 ac_cpp_err=yes
3075 if test -z "$ac_cpp_err"; then
3076 # Broken: success on invalid input.
3077 continue
3078 else
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3082 # Passes both tests.
3083 ac_preproc_ok=:
3084 break
3086 rm -f conftest.err conftest.$ac_ext
3088 done
3089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3090 rm -f conftest.err conftest.$ac_ext
3091 if $ac_preproc_ok; then
3093 else
3094 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&5
3096 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3097 See \`config.log' for more details." >&2;}
3098 { (exit 1); exit 1; }; }
3101 ac_ext=c
3102 ac_cpp='$CPP $CPPFLAGS'
3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 echo "$as_me:$LINENO: checking for inline" >&5
3109 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3110 if test "${ac_cv_c_inline+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 ac_cv_c_inline=no
3114 for ac_kw in inline __inline__ __inline; do
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h. */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3121 #ifndef __cplusplus
3122 typedef int foo_t;
3123 static $ac_kw foo_t static_foo () {return 0; }
3124 $ac_kw foo_t foo () {return 0; }
3125 #endif
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3130 (eval $ac_compile) 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 (eval $ac_try) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 (eval $ac_try) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_c_inline=$ac_kw; break
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156 done
3159 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3160 echo "${ECHO_T}$ac_cv_c_inline" >&6
3163 case $ac_cv_c_inline in
3164 inline | yes) ;;
3166 case $ac_cv_c_inline in
3167 no) ac_val=;;
3168 *) ac_val=$ac_cv_c_inline;;
3169 esac
3170 cat >>confdefs.h <<_ACEOF
3171 #ifndef __cplusplus
3172 #define inline $ac_val
3173 #endif
3174 _ACEOF
3176 esac
3179 # sizeof(char) is 1 by definition.
3181 echo "$as_me:$LINENO: checking for egrep" >&5
3182 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3183 if test "${ac_cv_prog_egrep+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3187 then ac_cv_prog_egrep='grep -E'
3188 else ac_cv_prog_egrep='egrep'
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3192 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3193 EGREP=$ac_cv_prog_egrep
3196 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3198 if test "${ac_cv_header_stdc+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h. */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3207 #include <stdlib.h>
3208 #include <stdarg.h>
3209 #include <string.h>
3210 #include <float.h>
3213 main ()
3217 return 0;
3219 _ACEOF
3220 rm -f conftest.$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>conftest.er1
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 eval "$as_ac_Header=yes"
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 eval "$as_ac_Header=no"
3418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3423 cat >>confdefs.h <<_ACEOF
3424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3425 _ACEOF
3429 done
3432 echo "$as_me:$LINENO: checking for void *" >&5
3433 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3434 if test "${ac_cv_type_void_p+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h. */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 $ac_includes_default
3445 main ()
3447 if ((void * *) 0)
3448 return 0;
3449 if (sizeof (void *))
3450 return 0;
3452 return 0;
3454 _ACEOF
3455 rm -f conftest.$ac_objext
3456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3457 (eval $ac_compile) 2>conftest.er1
3458 ac_status=$?
3459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } &&
3464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; } &&
3470 { ac_try='test -s conftest.$ac_objext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
3476 ac_cv_type_void_p=yes
3477 else
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 ac_cv_type_void_p=no
3483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3485 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3486 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3488 echo "$as_me:$LINENO: checking size of void *" >&5
3489 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3490 if test "${ac_cv_sizeof_void_p+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 if test "$ac_cv_type_void_p" = yes; then
3494 # The cast to unsigned long works around a bug in the HP C Compiler
3495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3497 # This bug is HP SR number 8606223364.
3498 if test "$cross_compiling" = yes; then
3499 # Depending upon the size, compute the lo and hi bounds.
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 $ac_includes_default
3508 main ()
3510 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3511 test_array [0] = 0
3514 return 0;
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 ac_lo=0 ac_mid=0
3539 while :; do
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 $ac_includes_default
3548 main ()
3550 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3551 test_array [0] = 0
3554 return 0;
3556 _ACEOF
3557 rm -f conftest.$ac_objext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_hi=$ac_mid; break
3579 else
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3583 ac_lo=`expr $ac_mid + 1`
3584 if test $ac_lo -le $ac_mid; then
3585 ac_lo= ac_hi=
3586 break
3588 ac_mid=`expr 2 '*' $ac_mid + 1`
3590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3591 done
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 $ac_includes_default
3604 main ()
3606 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3607 test_array [0] = 0
3610 return 0;
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 ac_hi=-1 ac_mid=-1
3635 while :; do
3636 cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h. */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 $ac_includes_default
3644 main ()
3646 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3647 test_array [0] = 0
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655 (eval $ac_compile) 2>conftest.er1
3656 ac_status=$?
3657 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3674 ac_lo=$ac_mid; break
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 ac_hi=`expr '(' $ac_mid ')' - 1`
3680 if test $ac_mid -le $ac_hi; then
3681 ac_lo= ac_hi=
3682 break
3684 ac_mid=`expr 2 '*' $ac_mid`
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 done
3688 else
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 ac_lo= ac_hi=
3694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3697 # Binary search between lo and hi bounds.
3698 while test "x$ac_lo" != "x$ac_hi"; do
3699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3700 cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h. */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 $ac_includes_default
3708 main ()
3710 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3711 test_array [0] = 0
3714 return 0;
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 (eval $ac_try) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; } &&
3732 { ac_try='test -s conftest.$ac_objext'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 (eval $ac_try) 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; }; then
3738 ac_hi=$ac_mid
3739 else
3740 echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3743 ac_lo=`expr '(' $ac_mid ')' + 1`
3745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3746 done
3747 case $ac_lo in
3748 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3749 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3750 See \`config.log' for more details." >&5
3751 echo "$as_me: error: cannot compute sizeof (void *), 77
3752 See \`config.log' for more details." >&2;}
3753 { (exit 1); exit 1; }; } ;;
3754 esac
3755 else
3756 if test "$cross_compiling" = yes; then
3757 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3758 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3759 { (exit 1); exit 1; }; }
3760 else
3761 cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h. */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 $ac_includes_default
3768 long longval () { return (long) (sizeof (void *)); }
3769 unsigned long ulongval () { return (long) (sizeof (void *)); }
3770 #include <stdio.h>
3771 #include <stdlib.h>
3773 main ()
3776 FILE *f = fopen ("conftest.val", "w");
3777 if (! f)
3778 exit (1);
3779 if (((long) (sizeof (void *))) < 0)
3781 long i = longval ();
3782 if (i != ((long) (sizeof (void *))))
3783 exit (1);
3784 fprintf (f, "%ld\n", i);
3786 else
3788 unsigned long i = ulongval ();
3789 if (i != ((long) (sizeof (void *))))
3790 exit (1);
3791 fprintf (f, "%lu\n", i);
3793 exit (ferror (f) || fclose (f) != 0);
3796 return 0;
3798 _ACEOF
3799 rm -f conftest$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_cv_sizeof_void_p=`cat conftest.val`
3811 else
3812 echo "$as_me: program exited with status $ac_status" >&5
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3816 ( exit $ac_status )
3817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3818 See \`config.log' for more details." >&5
3819 echo "$as_me: error: cannot compute sizeof (void *), 77
3820 See \`config.log' for more details." >&2;}
3821 { (exit 1); exit 1; }; }
3823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3826 rm -f conftest.val
3827 else
3828 ac_cv_sizeof_void_p=0
3831 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3832 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3833 cat >>confdefs.h <<_ACEOF
3834 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3835 _ACEOF
3838 echo "$as_me:$LINENO: checking for short" >&5
3839 echo $ECHO_N "checking for short... $ECHO_C" >&6
3840 if test "${ac_cv_type_short+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 $ac_includes_default
3851 main ()
3853 if ((short *) 0)
3854 return 0;
3855 if (sizeof (short))
3856 return 0;
3858 return 0;
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863 (eval $ac_compile) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest.$ac_objext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 ac_cv_type_short=yes
3883 else
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 ac_cv_type_short=no
3889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3891 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3892 echo "${ECHO_T}$ac_cv_type_short" >&6
3894 echo "$as_me:$LINENO: checking size of short" >&5
3895 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3896 if test "${ac_cv_sizeof_short+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 if test "$ac_cv_type_short" = yes; then
3900 # The cast to unsigned long works around a bug in the HP C Compiler
3901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3903 # This bug is HP SR number 8606223364.
3904 if test "$cross_compiling" = yes; then
3905 # Depending upon the size, compute the lo and hi bounds.
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 $ac_includes_default
3914 main ()
3916 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3917 test_array [0] = 0
3920 return 0;
3922 _ACEOF
3923 rm -f conftest.$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 (eval $ac_try) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 ac_lo=0 ac_mid=0
3945 while :; do
3946 cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h. */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3952 $ac_includes_default
3954 main ()
3956 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3957 test_array [0] = 0
3960 return 0;
3962 _ACEOF
3963 rm -f conftest.$ac_objext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965 (eval $ac_compile) 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_hi=$ac_mid; break
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 ac_lo=`expr $ac_mid + 1`
3990 if test $ac_lo -le $ac_mid; then
3991 ac_lo= ac_hi=
3992 break
3994 ac_mid=`expr 2 '*' $ac_mid + 1`
3996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3997 done
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h. */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 $ac_includes_default
4010 main ()
4012 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4013 test_array [0] = 0
4016 return 0;
4018 _ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; } &&
4034 { ac_try='test -s conftest.$ac_objext'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_hi=-1 ac_mid=-1
4041 while :; do
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h. */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 $ac_includes_default
4050 main ()
4052 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4053 test_array [0] = 0
4056 return 0;
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_lo=$ac_mid; break
4081 else
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 ac_hi=`expr '(' $ac_mid ')' - 1`
4086 if test $ac_mid -le $ac_hi; then
4087 ac_lo= ac_hi=
4088 break
4090 ac_mid=`expr 2 '*' $ac_mid`
4092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093 done
4094 else
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 ac_lo= ac_hi=
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4103 # Binary search between lo and hi bounds.
4104 while test "x$ac_lo" != "x$ac_hi"; do
4105 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 $ac_includes_default
4114 main ()
4116 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4117 test_array [0] = 0
4120 return 0;
4122 _ACEOF
4123 rm -f conftest.$ac_objext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>conftest.er1
4126 ac_status=$?
4127 grep -v '^ *+' conftest.er1 >conftest.err
4128 rm -f conftest.er1
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 (eval $ac_try) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 (eval $ac_try) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4144 ac_hi=$ac_mid
4145 else
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ac_lo=`expr '(' $ac_mid ')' + 1`
4151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152 done
4153 case $ac_lo in
4154 ?*) ac_cv_sizeof_short=$ac_lo;;
4155 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4156 See \`config.log' for more details." >&5
4157 echo "$as_me: error: cannot compute sizeof (short), 77
4158 See \`config.log' for more details." >&2;}
4159 { (exit 1); exit 1; }; } ;;
4160 esac
4161 else
4162 if test "$cross_compiling" = yes; then
4163 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4164 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4165 { (exit 1); exit 1; }; }
4166 else
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 $ac_includes_default
4174 long longval () { return (long) (sizeof (short)); }
4175 unsigned long ulongval () { return (long) (sizeof (short)); }
4176 #include <stdio.h>
4177 #include <stdlib.h>
4179 main ()
4182 FILE *f = fopen ("conftest.val", "w");
4183 if (! f)
4184 exit (1);
4185 if (((long) (sizeof (short))) < 0)
4187 long i = longval ();
4188 if (i != ((long) (sizeof (short))))
4189 exit (1);
4190 fprintf (f, "%ld\n", i);
4192 else
4194 unsigned long i = ulongval ();
4195 if (i != ((long) (sizeof (short))))
4196 exit (1);
4197 fprintf (f, "%lu\n", i);
4199 exit (ferror (f) || fclose (f) != 0);
4202 return 0;
4204 _ACEOF
4205 rm -f conftest$ac_exeext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4207 (eval $ac_link) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 ac_cv_sizeof_short=`cat conftest.val`
4217 else
4218 echo "$as_me: program exited with status $ac_status" >&5
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 ( exit $ac_status )
4223 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4224 See \`config.log' for more details." >&5
4225 echo "$as_me: error: cannot compute sizeof (short), 77
4226 See \`config.log' for more details." >&2;}
4227 { (exit 1); exit 1; }; }
4229 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4232 rm -f conftest.val
4233 else
4234 ac_cv_sizeof_short=0
4237 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4238 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4239 cat >>confdefs.h <<_ACEOF
4240 #define SIZEOF_SHORT $ac_cv_sizeof_short
4241 _ACEOF
4244 echo "$as_me:$LINENO: checking for int" >&5
4245 echo $ECHO_N "checking for int... $ECHO_C" >&6
4246 if test "${ac_cv_type_int+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 $ac_includes_default
4257 main ()
4259 if ((int *) 0)
4260 return 0;
4261 if (sizeof (int))
4262 return 0;
4264 return 0;
4266 _ACEOF
4267 rm -f conftest.$ac_objext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4269 (eval $ac_compile) 2>conftest.er1
4270 ac_status=$?
4271 grep -v '^ *+' conftest.er1 >conftest.err
4272 rm -f conftest.er1
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest.$ac_objext'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 (eval $ac_try) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 ac_cv_type_int=yes
4289 else
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 ac_cv_type_int=no
4295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4297 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4298 echo "${ECHO_T}$ac_cv_type_int" >&6
4300 echo "$as_me:$LINENO: checking size of int" >&5
4301 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4302 if test "${ac_cv_sizeof_int+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305 if test "$ac_cv_type_int" = yes; then
4306 # The cast to unsigned long works around a bug in the HP C Compiler
4307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4309 # This bug is HP SR number 8606223364.
4310 if test "$cross_compiling" = yes; then
4311 # Depending upon the size, compute the lo and hi bounds.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 $ac_includes_default
4320 main ()
4322 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4323 test_array [0] = 0
4326 return 0;
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331 (eval $ac_compile) 2>conftest.er1
4332 ac_status=$?
4333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; } &&
4344 { ac_try='test -s conftest.$ac_objext'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 (eval $ac_try) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; }; then
4350 ac_lo=0 ac_mid=0
4351 while :; do
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h. */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 $ac_includes_default
4360 main ()
4362 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4363 test_array [0] = 0
4366 return 0;
4368 _ACEOF
4369 rm -f conftest.$ac_objext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371 (eval $ac_compile) 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } &&
4378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; } &&
4384 { ac_try='test -s conftest.$ac_objext'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_hi=$ac_mid; break
4391 else
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4395 ac_lo=`expr $ac_mid + 1`
4396 if test $ac_lo -le $ac_mid; then
4397 ac_lo= ac_hi=
4398 break
4400 ac_mid=`expr 2 '*' $ac_mid + 1`
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 done
4404 else
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h. */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 $ac_includes_default
4416 main ()
4418 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4419 test_array [0] = 0
4422 return 0;
4424 _ACEOF
4425 rm -f conftest.$ac_objext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; } &&
4440 { ac_try='test -s conftest.$ac_objext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_hi=-1 ac_mid=-1
4447 while :; do
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h. */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 $ac_includes_default
4456 main ()
4458 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4459 test_array [0] = 0
4462 return 0;
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 (eval $ac_try) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; } &&
4480 { ac_try='test -s conftest.$ac_objext'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 (eval $ac_try) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4486 ac_lo=$ac_mid; break
4487 else
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 ac_hi=`expr '(' $ac_mid ')' - 1`
4492 if test $ac_mid -le $ac_hi; then
4493 ac_lo= ac_hi=
4494 break
4496 ac_mid=`expr 2 '*' $ac_mid`
4498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4499 done
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 ac_lo= ac_hi=
4506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4509 # Binary search between lo and hi bounds.
4510 while test "x$ac_lo" != "x$ac_hi"; do
4511 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4512 cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h. */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 $ac_includes_default
4520 main ()
4522 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4523 test_array [0] = 0
4526 return 0;
4528 _ACEOF
4529 rm -f conftest.$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_hi=$ac_mid
4551 else
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 ac_lo=`expr '(' $ac_mid ')' + 1`
4557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558 done
4559 case $ac_lo in
4560 ?*) ac_cv_sizeof_int=$ac_lo;;
4561 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4562 See \`config.log' for more details." >&5
4563 echo "$as_me: error: cannot compute sizeof (int), 77
4564 See \`config.log' for more details." >&2;}
4565 { (exit 1); exit 1; }; } ;;
4566 esac
4567 else
4568 if test "$cross_compiling" = yes; then
4569 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4570 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4571 { (exit 1); exit 1; }; }
4572 else
4573 cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h. */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 $ac_includes_default
4580 long longval () { return (long) (sizeof (int)); }
4581 unsigned long ulongval () { return (long) (sizeof (int)); }
4582 #include <stdio.h>
4583 #include <stdlib.h>
4585 main ()
4588 FILE *f = fopen ("conftest.val", "w");
4589 if (! f)
4590 exit (1);
4591 if (((long) (sizeof (int))) < 0)
4593 long i = longval ();
4594 if (i != ((long) (sizeof (int))))
4595 exit (1);
4596 fprintf (f, "%ld\n", i);
4598 else
4600 unsigned long i = ulongval ();
4601 if (i != ((long) (sizeof (int))))
4602 exit (1);
4603 fprintf (f, "%lu\n", i);
4605 exit (ferror (f) || fclose (f) != 0);
4608 return 0;
4610 _ACEOF
4611 rm -f conftest$ac_exeext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613 (eval $ac_link) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 (eval $ac_try) 2>&5
4619 ac_status=$?
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4622 ac_cv_sizeof_int=`cat conftest.val`
4623 else
4624 echo "$as_me: program exited with status $ac_status" >&5
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 ( exit $ac_status )
4629 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4630 See \`config.log' for more details." >&5
4631 echo "$as_me: error: cannot compute sizeof (int), 77
4632 See \`config.log' for more details." >&2;}
4633 { (exit 1); exit 1; }; }
4635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4638 rm -f conftest.val
4639 else
4640 ac_cv_sizeof_int=0
4643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4644 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4645 cat >>confdefs.h <<_ACEOF
4646 #define SIZEOF_INT $ac_cv_sizeof_int
4647 _ACEOF
4650 echo "$as_me:$LINENO: checking for long" >&5
4651 echo $ECHO_N "checking for long... $ECHO_C" >&6
4652 if test "${ac_cv_type_long+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655 cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h. */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 $ac_includes_default
4663 main ()
4665 if ((long *) 0)
4666 return 0;
4667 if (sizeof (long))
4668 return 0;
4670 return 0;
4672 _ACEOF
4673 rm -f conftest.$ac_objext
4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675 (eval $ac_compile) 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 (eval $ac_try) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try='test -s conftest.$ac_objext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 ac_cv_type_long=yes
4695 else
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 ac_cv_type_long=no
4701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4703 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4704 echo "${ECHO_T}$ac_cv_type_long" >&6
4706 echo "$as_me:$LINENO: checking size of long" >&5
4707 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4708 if test "${ac_cv_sizeof_long+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 if test "$ac_cv_type_long" = yes; then
4712 # The cast to unsigned long works around a bug in the HP C Compiler
4713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4715 # This bug is HP SR number 8606223364.
4716 if test "$cross_compiling" = yes; then
4717 # Depending upon the size, compute the lo and hi bounds.
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 $ac_includes_default
4726 main ()
4728 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4729 test_array [0] = 0
4732 return 0;
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; } &&
4750 { ac_try='test -s conftest.$ac_objext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 ac_lo=0 ac_mid=0
4757 while :; do
4758 cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h. */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 $ac_includes_default
4766 main ()
4768 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4769 test_array [0] = 0
4772 return 0;
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
4790 { ac_try='test -s conftest.$ac_objext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_hi=$ac_mid; break
4797 else
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4801 ac_lo=`expr $ac_mid + 1`
4802 if test $ac_lo -le $ac_mid; then
4803 ac_lo= ac_hi=
4804 break
4806 ac_mid=`expr 2 '*' $ac_mid + 1`
4808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4809 done
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h. */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 $ac_includes_default
4822 main ()
4824 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4825 test_array [0] = 0
4828 return 0;
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4834 ac_status=$?
4835 grep -v '^ *+' conftest.er1 >conftest.err
4836 rm -f conftest.er1
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; } &&
4846 { ac_try='test -s conftest.$ac_objext'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; }; then
4852 ac_hi=-1 ac_mid=-1
4853 while :; do
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h. */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 $ac_includes_default
4862 main ()
4864 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4865 test_array [0] = 0
4868 return 0;
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; } &&
4886 { ac_try='test -s conftest.$ac_objext'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 (eval $ac_try) 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_lo=$ac_mid; break
4893 else
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4897 ac_hi=`expr '(' $ac_mid ')' - 1`
4898 if test $ac_mid -le $ac_hi; then
4899 ac_lo= ac_hi=
4900 break
4902 ac_mid=`expr 2 '*' $ac_mid`
4904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4905 done
4906 else
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 ac_lo= ac_hi=
4912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4915 # Binary search between lo and hi bounds.
4916 while test "x$ac_lo" != "x$ac_hi"; do
4917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 $ac_includes_default
4926 main ()
4928 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4929 test_array [0] = 0
4932 return 0;
4934 _ACEOF
4935 rm -f conftest.$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 ac_hi=$ac_mid
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4961 ac_lo=`expr '(' $ac_mid ')' + 1`
4963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964 done
4965 case $ac_lo in
4966 ?*) ac_cv_sizeof_long=$ac_lo;;
4967 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4968 See \`config.log' for more details." >&5
4969 echo "$as_me: error: cannot compute sizeof (long), 77
4970 See \`config.log' for more details." >&2;}
4971 { (exit 1); exit 1; }; } ;;
4972 esac
4973 else
4974 if test "$cross_compiling" = yes; then
4975 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4976 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4977 { (exit 1); exit 1; }; }
4978 else
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h. */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 $ac_includes_default
4986 long longval () { return (long) (sizeof (long)); }
4987 unsigned long ulongval () { return (long) (sizeof (long)); }
4988 #include <stdio.h>
4989 #include <stdlib.h>
4991 main ()
4994 FILE *f = fopen ("conftest.val", "w");
4995 if (! f)
4996 exit (1);
4997 if (((long) (sizeof (long))) < 0)
4999 long i = longval ();
5000 if (i != ((long) (sizeof (long))))
5001 exit (1);
5002 fprintf (f, "%ld\n", i);
5004 else
5006 unsigned long i = ulongval ();
5007 if (i != ((long) (sizeof (long))))
5008 exit (1);
5009 fprintf (f, "%lu\n", i);
5011 exit (ferror (f) || fclose (f) != 0);
5014 return 0;
5016 _ACEOF
5017 rm -f conftest$ac_exeext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5019 (eval $ac_link) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 ac_cv_sizeof_long=`cat conftest.val`
5029 else
5030 echo "$as_me: program exited with status $ac_status" >&5
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 ( exit $ac_status )
5035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5036 See \`config.log' for more details." >&5
5037 echo "$as_me: error: cannot compute sizeof (long), 77
5038 See \`config.log' for more details." >&2;}
5039 { (exit 1); exit 1; }; }
5041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5044 rm -f conftest.val
5045 else
5046 ac_cv_sizeof_long=0
5049 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5050 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5051 cat >>confdefs.h <<_ACEOF
5052 #define SIZEOF_LONG $ac_cv_sizeof_long
5053 _ACEOF
5056 echo "$as_me:$LINENO: checking for long long" >&5
5057 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5058 if test "${ac_cv_type_long_long+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
5061 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 $ac_includes_default
5069 main ()
5071 if ((long long *) 0)
5072 return 0;
5073 if (sizeof (long long))
5074 return 0;
5076 return 0;
5078 _ACEOF
5079 rm -f conftest.$ac_objext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } &&
5088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; } &&
5094 { ac_try='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_cv_type_long_long=yes
5101 else
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5105 ac_cv_type_long_long=no
5107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5109 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5110 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5111 if test $ac_cv_type_long_long = yes; then
5113 cat >>confdefs.h <<_ACEOF
5114 #define HAVE_LONG_LONG 1
5115 _ACEOF
5117 echo "$as_me:$LINENO: checking for long long" >&5
5118 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5119 if test "${ac_cv_type_long_long+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 $ac_includes_default
5130 main ()
5132 if ((long long *) 0)
5133 return 0;
5134 if (sizeof (long long))
5135 return 0;
5137 return 0;
5139 _ACEOF
5140 rm -f conftest.$ac_objext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5142 (eval $ac_compile) 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } &&
5149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; } &&
5155 { ac_try='test -s conftest.$ac_objext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 (eval $ac_try) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 ac_cv_type_long_long=yes
5162 else
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 ac_cv_type_long_long=no
5168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5170 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5171 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5173 echo "$as_me:$LINENO: checking size of long long" >&5
5174 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5175 if test "${ac_cv_sizeof_long_long+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 if test "$ac_cv_type_long_long" = yes; then
5179 # The cast to unsigned long works around a bug in the HP C Compiler
5180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5182 # This bug is HP SR number 8606223364.
5183 if test "$cross_compiling" = yes; then
5184 # Depending upon the size, compute the lo and hi bounds.
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 $ac_includes_default
5193 main ()
5195 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5196 test_array [0] = 0
5199 return 0;
5201 _ACEOF
5202 rm -f conftest.$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>conftest.er1
5205 ac_status=$?
5206 grep -v '^ *+' conftest.er1 >conftest.err
5207 rm -f conftest.er1
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } &&
5217 { ac_try='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_lo=0 ac_mid=0
5224 while :; do
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h. */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 $ac_includes_default
5233 main ()
5235 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5236 test_array [0] = 0
5239 return 0;
5241 _ACEOF
5242 rm -f conftest.$ac_objext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244 (eval $ac_compile) 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; } &&
5257 { ac_try='test -s conftest.$ac_objext'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 (eval $ac_try) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5263 ac_hi=$ac_mid; break
5264 else
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5268 ac_lo=`expr $ac_mid + 1`
5269 if test $ac_lo -le $ac_mid; then
5270 ac_lo= ac_hi=
5271 break
5273 ac_mid=`expr 2 '*' $ac_mid + 1`
5275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5276 done
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h. */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 $ac_includes_default
5289 main ()
5291 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5292 test_array [0] = 0
5295 return 0;
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; } &&
5313 { ac_try='test -s conftest.$ac_objext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_hi=-1 ac_mid=-1
5320 while :; do
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 $ac_includes_default
5329 main ()
5331 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5332 test_array [0] = 0
5335 return 0;
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 (eval $ac_compile) 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; } &&
5353 { ac_try='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_lo=$ac_mid; break
5360 else
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 ac_hi=`expr '(' $ac_mid ')' - 1`
5365 if test $ac_mid -le $ac_hi; then
5366 ac_lo= ac_hi=
5367 break
5369 ac_mid=`expr 2 '*' $ac_mid`
5371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5372 done
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 ac_lo= ac_hi=
5379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5382 # Binary search between lo and hi bounds.
5383 while test "x$ac_lo" != "x$ac_hi"; do
5384 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5385 cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h. */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 $ac_includes_default
5393 main ()
5395 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5396 test_array [0] = 0
5399 return 0;
5401 _ACEOF
5402 rm -f conftest.$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_hi=$ac_mid
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_lo=`expr '(' $ac_mid ')' + 1`
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 done
5432 case $ac_lo in
5433 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5434 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5435 See \`config.log' for more details." >&5
5436 echo "$as_me: error: cannot compute sizeof (long long), 77
5437 See \`config.log' for more details." >&2;}
5438 { (exit 1); exit 1; }; } ;;
5439 esac
5440 else
5441 if test "$cross_compiling" = yes; then
5442 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5443 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5444 { (exit 1); exit 1; }; }
5445 else
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 $ac_includes_default
5453 long longval () { return (long) (sizeof (long long)); }
5454 unsigned long ulongval () { return (long) (sizeof (long long)); }
5455 #include <stdio.h>
5456 #include <stdlib.h>
5458 main ()
5461 FILE *f = fopen ("conftest.val", "w");
5462 if (! f)
5463 exit (1);
5464 if (((long) (sizeof (long long))) < 0)
5466 long i = longval ();
5467 if (i != ((long) (sizeof (long long))))
5468 exit (1);
5469 fprintf (f, "%ld\n", i);
5471 else
5473 unsigned long i = ulongval ();
5474 if (i != ((long) (sizeof (long long))))
5475 exit (1);
5476 fprintf (f, "%lu\n", i);
5478 exit (ferror (f) || fclose (f) != 0);
5481 return 0;
5483 _ACEOF
5484 rm -f conftest$ac_exeext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5486 (eval $ac_link) 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_sizeof_long_long=`cat conftest.val`
5496 else
5497 echo "$as_me: program exited with status $ac_status" >&5
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 ( exit $ac_status )
5502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5503 See \`config.log' for more details." >&5
5504 echo "$as_me: error: cannot compute sizeof (long long), 77
5505 See \`config.log' for more details." >&2;}
5506 { (exit 1); exit 1; }; }
5508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5511 rm -f conftest.val
5512 else
5513 ac_cv_sizeof_long_long=0
5516 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5517 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5518 cat >>confdefs.h <<_ACEOF
5519 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5520 _ACEOF
5525 echo "$as_me:$LINENO: checking for __int64" >&5
5526 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5527 if test "${ac_cv_type___int64+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 $ac_includes_default
5538 main ()
5540 if ((__int64 *) 0)
5541 return 0;
5542 if (sizeof (__int64))
5543 return 0;
5545 return 0;
5547 _ACEOF
5548 rm -f conftest.$ac_objext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5550 (eval $ac_compile) 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } &&
5557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 (eval $ac_try) 2>&5
5560 ac_status=$?
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; } &&
5563 { ac_try='test -s conftest.$ac_objext'
5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 (eval $ac_try) 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
5569 ac_cv_type___int64=yes
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 ac_cv_type___int64=no
5576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5578 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5579 echo "${ECHO_T}$ac_cv_type___int64" >&6
5580 if test $ac_cv_type___int64 = yes; then
5582 cat >>confdefs.h <<_ACEOF
5583 #define HAVE___INT64 1
5584 _ACEOF
5586 echo "$as_me:$LINENO: checking for __int64" >&5
5587 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5588 if test "${ac_cv_type___int64+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h. */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 $ac_includes_default
5599 main ()
5601 if ((__int64 *) 0)
5602 return 0;
5603 if (sizeof (__int64))
5604 return 0;
5606 return 0;
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 (eval $ac_try) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; } &&
5624 { ac_try='test -s conftest.$ac_objext'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 (eval $ac_try) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5630 ac_cv_type___int64=yes
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 ac_cv_type___int64=no
5637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5639 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5640 echo "${ECHO_T}$ac_cv_type___int64" >&6
5642 echo "$as_me:$LINENO: checking size of __int64" >&5
5643 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5644 if test "${ac_cv_sizeof___int64+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 if test "$ac_cv_type___int64" = yes; then
5648 # The cast to unsigned long works around a bug in the HP C Compiler
5649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5651 # This bug is HP SR number 8606223364.
5652 if test "$cross_compiling" = yes; then
5653 # Depending upon the size, compute the lo and hi bounds.
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 $ac_includes_default
5662 main ()
5664 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5665 test_array [0] = 0
5668 return 0;
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_lo=0 ac_mid=0
5693 while :; do
5694 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h. */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 $ac_includes_default
5702 main ()
5704 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5705 test_array [0] = 0
5708 return 0;
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_hi=$ac_mid; break
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_lo=`expr $ac_mid + 1`
5738 if test $ac_lo -le $ac_mid; then
5739 ac_lo= ac_hi=
5740 break
5742 ac_mid=`expr 2 '*' $ac_mid + 1`
5744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5745 done
5746 else
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h. */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5758 main ()
5760 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5761 test_array [0] = 0
5764 return 0;
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_hi=-1 ac_mid=-1
5789 while :; do
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h. */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 $ac_includes_default
5798 main ()
5800 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5801 test_array [0] = 0
5804 return 0;
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809 (eval $ac_compile) 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_lo=$ac_mid; break
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 ac_hi=`expr '(' $ac_mid ')' - 1`
5834 if test $ac_mid -le $ac_hi; then
5835 ac_lo= ac_hi=
5836 break
5838 ac_mid=`expr 2 '*' $ac_mid`
5840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5841 done
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5846 ac_lo= ac_hi=
5848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5851 # Binary search between lo and hi bounds.
5852 while test "x$ac_lo" != "x$ac_hi"; do
5853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5854 cat >conftest.$ac_ext <<_ACEOF
5855 /* confdefs.h. */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 $ac_includes_default
5862 main ()
5864 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5865 test_array [0] = 0
5868 return 0;
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5873 (eval $ac_compile) 2>conftest.er1
5874 ac_status=$?
5875 grep -v '^ *+' conftest.er1 >conftest.err
5876 rm -f conftest.er1
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } &&
5880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; } &&
5886 { ac_try='test -s conftest.$ac_objext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 (eval $ac_try) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 ac_hi=$ac_mid
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5897 ac_lo=`expr '(' $ac_mid ')' + 1`
5899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5900 done
5901 case $ac_lo in
5902 ?*) ac_cv_sizeof___int64=$ac_lo;;
5903 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5904 See \`config.log' for more details." >&5
5905 echo "$as_me: error: cannot compute sizeof (__int64), 77
5906 See \`config.log' for more details." >&2;}
5907 { (exit 1); exit 1; }; } ;;
5908 esac
5909 else
5910 if test "$cross_compiling" = yes; then
5911 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5912 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5913 { (exit 1); exit 1; }; }
5914 else
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 $ac_includes_default
5922 long longval () { return (long) (sizeof (__int64)); }
5923 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5924 #include <stdio.h>
5925 #include <stdlib.h>
5927 main ()
5930 FILE *f = fopen ("conftest.val", "w");
5931 if (! f)
5932 exit (1);
5933 if (((long) (sizeof (__int64))) < 0)
5935 long i = longval ();
5936 if (i != ((long) (sizeof (__int64))))
5937 exit (1);
5938 fprintf (f, "%ld\n", i);
5940 else
5942 unsigned long i = ulongval ();
5943 if (i != ((long) (sizeof (__int64))))
5944 exit (1);
5945 fprintf (f, "%lu\n", i);
5947 exit (ferror (f) || fclose (f) != 0);
5950 return 0;
5952 _ACEOF
5953 rm -f conftest$ac_exeext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955 (eval $ac_link) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 (eval $ac_try) 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5964 ac_cv_sizeof___int64=`cat conftest.val`
5965 else
5966 echo "$as_me: program exited with status $ac_status" >&5
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5970 ( exit $ac_status )
5971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5972 See \`config.log' for more details." >&5
5973 echo "$as_me: error: cannot compute sizeof (__int64), 77
5974 See \`config.log' for more details." >&2;}
5975 { (exit 1); exit 1; }; }
5977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5980 rm -f conftest.val
5981 else
5982 ac_cv_sizeof___int64=0
5985 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5986 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5987 cat >>confdefs.h <<_ACEOF
5988 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5989 _ACEOF
5995 # ---------------------
5996 # Warnings and checking
5997 # ---------------------
5999 # Check $CC warning features (if it's GCC).
6000 # We want to use -pedantic, but we don't want warnings about
6001 # * 'long long'
6002 # * variadic macros
6003 # * overlong strings
6004 # So, we only use -pedantic if we can disable those warnings.
6006 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6007 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6008 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011 save_CFLAGS="$CFLAGS"
6012 CFLAGS="-Wno-long-long"
6013 cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h. */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6020 _ACEOF
6021 rm -f conftest.$ac_objext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023 (eval $ac_compile) 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 (eval $ac_try) 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 (eval $ac_try) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_cv_prog_cc_w_no_long_long=yes
6043 else
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6047 ac_cv_prog_cc_w_no_long_long=no
6049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6050 CFLAGS="$save_CFLAGS"
6053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6054 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6056 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6057 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6058 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 save_CFLAGS="$CFLAGS"
6062 CFLAGS="-Wno-variadic-macros"
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" || test ! -s conftest.err'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 (eval $ac_try) 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; } &&
6086 { ac_try='test -s conftest.$ac_objext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_prog_cc_w_no_variadic_macros=yes
6093 else
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6097 ac_cv_prog_cc_w_no_variadic_macros=no
6099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6100 CFLAGS="$save_CFLAGS"
6103 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6104 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6106 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6107 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6108 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111 save_CFLAGS="$CFLAGS"
6112 CFLAGS="-Wno-overlength-strings"
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_prog_cc_w_no_overlength_strings=yes
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_cv_prog_cc_w_no_overlength_strings=no
6149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150 CFLAGS="$save_CFLAGS"
6153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6154 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6156 strict1_warn=
6157 if test $ac_cv_prog_cc_w_no_long_long = yes \
6158 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6159 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6160 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6163 # Add -Wold-style-definition if it's accepted
6164 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6165 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6166 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169 save_CFLAGS="$CFLAGS"
6170 CFLAGS="-Wold-style-definition"
6171 cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h. */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6178 _ACEOF
6179 rm -f conftest.$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest.$ac_objext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_prog_cc_w_old_style_definition=yes
6201 else
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 ac_cv_prog_cc_w_old_style_definition=no
6207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6208 CFLAGS="$save_CFLAGS"
6211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6212 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6213 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6214 strict1_warn="${strict1_warn} -Wold-style-definition"
6217 # Add -Wmissing-format-attribute if it's accepted
6218 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6219 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6220 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 save_CFLAGS="$CFLAGS"
6224 CFLAGS="-Wmissing-format-attribute"
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6232 _ACEOF
6233 rm -f conftest.$ac_objext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235 (eval $ac_compile) 2>conftest.er1
6236 ac_status=$?
6237 grep -v '^ *+' conftest.er1 >conftest.err
6238 rm -f conftest.er1
6239 cat conftest.err >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } &&
6242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_prog_cc_w_missing_format_attribute=yes
6255 else
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 ac_cv_prog_cc_w_missing_format_attribute=no
6261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6262 CFLAGS="$save_CFLAGS"
6265 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6266 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6267 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6268 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6271 # Enable -Werror, period.
6272 # Check whether --enable-werror_always or --disable-werror_always was given.
6273 if test "${enable_werror_always+set}" = set; then
6274 enableval="$enable_werror_always"
6276 else
6277 enable_werror_always=no
6279 if test x${enable_werror_always} = xyes ; then
6280 strict1_warn="${strict1_warn} -Werror"
6281 WERROR=-Werror
6286 # Get C++ compatibility warning flag, if supported.
6287 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6288 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6289 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292 save_CFLAGS="$CFLAGS"
6293 CFLAGS="-Wc++-compat"
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304 (eval $ac_compile) 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest.$ac_objext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 ac_cv_prog_cc_w_cxx_compat=yes
6324 else
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 ac_cv_prog_cc_w_cxx_compat=no
6330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6331 CFLAGS="$save_CFLAGS"
6334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6335 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6336 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6337 cxx_compat_warn="-Wc++-compat"
6342 # If the native compiler is GCC, we can enable warnings even in stage1.
6343 # That's useful for people building cross-compilers, or just running a
6344 # quick `make'.
6345 warn_cflags=
6346 if test "x$GCC" = "xyes"; then
6347 warn_cflags='$(GCC_WARN_CFLAGS)'
6351 # Enable -Werror in bootstrap stage2 and later.
6352 is_release=
6353 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6354 is_release=yes
6356 # Check whether --enable-werror or --disable-werror was given.
6357 if test "${enable_werror+set}" = set; then
6358 enableval="$enable_werror"
6360 else
6361 if test x$is_release = x ; then
6362 # Default to "yes" on development branches.
6363 enable_werror=yes
6364 else
6365 # Default to "no" on release branches.
6366 enable_werror=no
6369 if test x$enable_werror = xyes ; then
6370 WERROR=-Werror
6374 # Enable expensive internal checks
6375 # Check whether --enable-checking or --disable-checking was given.
6376 if test "${enable_checking+set}" = set; then
6377 enableval="$enable_checking"
6378 ac_checking_flags="${enableval}"
6379 else
6381 # Determine the default checks.
6382 if test x$is_release = x ; then
6383 ac_checking_flags=yes
6384 else
6385 ac_checking_flags=release
6388 ac_assert_checking=1
6389 ac_checking=
6390 ac_fold_checking=
6391 ac_gc_checking=
6392 ac_gc_always_collect=
6393 ac_rtl_checking=
6394 ac_rtlflag_checking=
6395 ac_runtime_checking=1
6396 ac_tree_checking=
6397 ac_valgrind_checking=
6398 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6399 for check in $ac_checking_flags
6401 case $check in
6402 # these set all the flags to specific states
6403 yes) ac_assert_checking=1 ; ac_checking=1 ;
6404 ac_fold_checking= ; ac_gc_checking=1 ;
6405 ac_gc_always_collect= ; ac_rtl_checking= ;
6406 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6407 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6408 no|none) ac_assert_checking= ; ac_checking= ;
6409 ac_fold_checking= ; ac_gc_checking= ;
6410 ac_gc_always_collect= ; ac_rtl_checking= ;
6411 ac_rtlflag_checking= ; ac_runtime_checking= ;
6412 ac_tree_checking= ; ac_valgrind_checking= ;;
6413 all) ac_assert_checking=1 ; ac_checking=1 ;
6414 ac_fold_checking=1 ; ac_gc_checking=1 ;
6415 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6416 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6417 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6418 release) ac_assert_checking=1 ; ac_checking= ;
6419 ac_fold_checking= ; ac_gc_checking= ;
6420 ac_gc_always_collect= ; ac_rtl_checking= ;
6421 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6422 ac_tree_checking= ; ac_valgrind_checking= ;;
6423 # these enable particular checks
6424 assert) ac_assert_checking=1 ;;
6425 fold) ac_fold_checking=1 ;;
6426 gc) ac_gc_checking=1 ;;
6427 gcac) ac_gc_always_collect=1 ;;
6428 misc) ac_checking=1 ;;
6429 rtl) ac_rtl_checking=1 ;;
6430 rtlflag) ac_rtlflag_checking=1 ;;
6431 runtime) ac_runtime_checking=1 ;;
6432 tree) ac_tree_checking=1 ;;
6433 valgrind) ac_valgrind_checking=1 ;;
6434 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6435 echo "$as_me: error: unknown check category $check" >&2;}
6436 { (exit 1); exit 1; }; } ;;
6437 esac
6438 done
6439 IFS="$ac_save_IFS"
6441 nocommon_flag=""
6442 if test x$ac_checking != x ; then
6444 cat >>confdefs.h <<\_ACEOF
6445 #define ENABLE_CHECKING 1
6446 _ACEOF
6448 nocommon_flag=-fno-common
6451 if test x$ac_assert_checking != x ; then
6453 cat >>confdefs.h <<\_ACEOF
6454 #define ENABLE_ASSERT_CHECKING 1
6455 _ACEOF
6459 if test x$ac_runtime_checking != x ; then
6461 cat >>confdefs.h <<\_ACEOF
6462 #define ENABLE_RUNTIME_CHECKING 1
6463 _ACEOF
6466 if test x$ac_tree_checking != x ; then
6468 cat >>confdefs.h <<\_ACEOF
6469 #define ENABLE_TREE_CHECKING 1
6470 _ACEOF
6472 TREEBROWSER=tree-browser.o
6475 if test x$ac_rtl_checking != x ; then
6477 cat >>confdefs.h <<\_ACEOF
6478 #define ENABLE_RTL_CHECKING 1
6479 _ACEOF
6482 if test x$ac_rtlflag_checking != x ; then
6484 cat >>confdefs.h <<\_ACEOF
6485 #define ENABLE_RTL_FLAG_CHECKING 1
6486 _ACEOF
6489 if test x$ac_gc_checking != x ; then
6491 cat >>confdefs.h <<\_ACEOF
6492 #define ENABLE_GC_CHECKING 1
6493 _ACEOF
6496 if test x$ac_gc_always_collect != x ; then
6498 cat >>confdefs.h <<\_ACEOF
6499 #define ENABLE_GC_ALWAYS_COLLECT 1
6500 _ACEOF
6503 if test x$ac_fold_checking != x ; then
6505 cat >>confdefs.h <<\_ACEOF
6506 #define ENABLE_FOLD_CHECKING 1
6507 _ACEOF
6510 valgrind_path_defines=
6511 valgrind_command=
6513 if test "${ac_cv_header_valgrind_h+set}" = set; then
6514 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6515 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6516 if test "${ac_cv_header_valgrind_h+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6520 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6521 else
6522 # Is the header compilable?
6523 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6524 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 $ac_includes_default
6532 #include <valgrind.h>
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 (eval $ac_try) 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; } &&
6549 { ac_try='test -s conftest.$ac_objext'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 (eval $ac_try) 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
6555 ac_header_compiler=yes
6556 else
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 ac_header_compiler=no
6562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6564 echo "${ECHO_T}$ac_header_compiler" >&6
6566 # Is the header present?
6567 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6568 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 #include <valgrind.h>
6576 _ACEOF
6577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } >/dev/null; then
6585 if test -s conftest.err; then
6586 ac_cpp_err=$ac_c_preproc_warn_flag
6587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6588 else
6589 ac_cpp_err=
6591 else
6592 ac_cpp_err=yes
6594 if test -z "$ac_cpp_err"; then
6595 ac_header_preproc=yes
6596 else
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ac_header_preproc=no
6602 rm -f conftest.err conftest.$ac_ext
6603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6604 echo "${ECHO_T}$ac_header_preproc" >&6
6606 # So? What about this header?
6607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6608 yes:no: )
6609 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6610 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6611 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6612 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6613 ac_header_preproc=yes
6615 no:yes:* )
6616 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6617 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6619 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6621 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6623 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6624 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6625 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6627 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6629 cat <<\_ASBOX
6630 ## ------------------------------------------ ##
6631 ## Report this to the AC_PACKAGE_NAME lists. ##
6632 ## ------------------------------------------ ##
6633 _ASBOX
6635 sed "s/^/$as_me: WARNING: /" >&2
6637 esac
6638 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6639 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6640 if test "${ac_cv_header_valgrind_h+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 ac_cv_header_valgrind_h=$ac_header_preproc
6645 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6646 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6649 if test $ac_cv_header_valgrind_h = yes; then
6650 have_valgrind_h=yes
6651 else
6652 have_valgrind_h=no
6657 if test x$ac_valgrind_checking != x ; then
6658 # It is certainly possible that there's valgrind but no valgrind.h.
6659 # GCC relies on making annotations so we must have both.
6660 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6661 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 #include <valgrind/memcheck.h>
6669 #ifndef VALGRIND_DISCARD
6670 #error VALGRIND_DISCARD not defined
6671 #endif
6672 _ACEOF
6673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } >/dev/null; then
6681 if test -s conftest.err; then
6682 ac_cpp_err=$ac_c_preproc_warn_flag
6683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6684 else
6685 ac_cpp_err=
6687 else
6688 ac_cpp_err=yes
6690 if test -z "$ac_cpp_err"; then
6691 gcc_cv_header_valgrind_memcheck_h=yes
6692 else
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6696 gcc_cv_header_valgrind_memcheck_h=no
6698 rm -f conftest.err conftest.$ac_ext
6699 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6700 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6701 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6702 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6703 cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h. */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 #include <memcheck.h>
6710 #ifndef VALGRIND_DISCARD
6711 #error VALGRIND_DISCARD not defined
6712 #endif
6713 _ACEOF
6714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } >/dev/null; then
6722 if test -s conftest.err; then
6723 ac_cpp_err=$ac_c_preproc_warn_flag
6724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6725 else
6726 ac_cpp_err=
6728 else
6729 ac_cpp_err=yes
6731 if test -z "$ac_cpp_err"; then
6732 gcc_cv_header_memcheck_h=yes
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 gcc_cv_header_memcheck_h=no
6739 rm -f conftest.err conftest.$ac_ext
6740 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6741 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6743 # Prepare PATH_SEPARATOR.
6744 # The user is always right.
6745 if test "${PATH_SEPARATOR+set}" != set; then
6746 echo "#! /bin/sh" >conf$$.sh
6747 echo "exit 0" >>conf$$.sh
6748 chmod +x conf$$.sh
6749 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6750 PATH_SEPARATOR=';'
6751 else
6752 PATH_SEPARATOR=:
6754 rm -f conf$$.sh
6757 # Find out how to test for executable files. Don't use a zero-byte file,
6758 # as systems may use methods other than mode bits to determine executability.
6759 cat >conf$$.file <<_ASEOF
6760 #! /bin/sh
6761 exit 0
6762 _ASEOF
6763 chmod +x conf$$.file
6764 if test -x conf$$.file >/dev/null 2>&1; then
6765 ac_executable_p="test -x"
6766 else
6767 ac_executable_p="test -f"
6769 rm -f conf$$.file
6771 # Extract the first word of "valgrind", so it can be a program name with args.
6772 set dummy valgrind; ac_word=$2
6773 echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6775 if test "${ac_cv_path_valgrind_path+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 case "$valgrind_path" in
6779 [\\/]* | ?:[\\/]*)
6780 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6783 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6784 for ac_dir in $PATH; do
6785 IFS="$ac_save_IFS"
6786 test -z "$ac_dir" && ac_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6789 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6790 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6791 break 2
6794 done
6795 done
6796 IFS="$ac_save_IFS"
6798 esac
6800 valgrind_path="$ac_cv_path_valgrind_path"
6801 if test -n "$valgrind_path"; then
6802 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6803 echo "${ECHO_T}$valgrind_path" >&6
6804 else
6805 echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6
6809 if test "x$valgrind_path" = "x" \
6810 || (test $have_valgrind_h = no \
6811 && test $gcc_cv_header_memcheck_h = no \
6812 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6813 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6814 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6815 { (exit 1); exit 1; }; }
6817 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6818 valgrind_command="$valgrind_path -q"
6820 cat >>confdefs.h <<\_ACEOF
6821 #define ENABLE_VALGRIND_CHECKING 1
6822 _ACEOF
6824 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_VALGRIND_MEMCHECK_H 1
6828 _ACEOF
6831 if test $gcc_cv_header_memcheck_h = yes; then
6833 cat >>confdefs.h <<\_ACEOF
6834 #define HAVE_MEMCHECK_H 1
6835 _ACEOF
6842 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6843 if test "${enable_mapped_location+set}" = set; then
6844 enableval="$enable_mapped_location"
6846 else
6847 enable_mapped_location=no
6850 if test "$enable_mapped_location" = yes ; then
6852 cat >>confdefs.h <<\_ACEOF
6853 #define USE_MAPPED_LOCATION 1
6854 _ACEOF
6858 # Enable code coverage collection
6859 # Check whether --enable-coverage or --disable-coverage was given.
6860 if test "${enable_coverage+set}" = set; then
6861 enableval="$enable_coverage"
6862 case "${enableval}" in
6863 yes|noopt)
6864 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6866 opt)
6867 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6870 # a.k.a. --disable-coverage
6871 coverage_flags=""
6874 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6875 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6876 { (exit 1); exit 1; }; }
6878 esac
6879 else
6880 coverage_flags=""
6884 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6885 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6886 enableval="$enable_gather_detailed_mem_stats"
6888 else
6889 enable_gather_detailed_mem_stats=no
6891 if test x$enable_gather_detailed_mem_stats = xyes ; then
6893 cat >>confdefs.h <<\_ACEOF
6894 #define GATHER_STATISTICS 1
6895 _ACEOF
6899 # -------------------------------
6900 # Miscenalleous configure options
6901 # -------------------------------
6903 # With stabs
6905 # Check whether --with-stabs or --without-stabs was given.
6906 if test "${with_stabs+set}" = set; then
6907 withval="$with_stabs"
6908 stabs="$with_stabs"
6909 else
6910 stabs=no
6913 # Determine whether or not multilibs are enabled.
6914 # Check whether --enable-multilib or --disable-multilib was given.
6915 if test "${enable_multilib+set}" = set; then
6916 enableval="$enable_multilib"
6918 else
6919 enable_multilib=yes
6923 # Enable __cxa_atexit for C++.
6924 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6925 if test "${enable___cxa_atexit+set}" = set; then
6926 enableval="$enable___cxa_atexit"
6930 # Enable C extension for decimal float if target supports it.
6931 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6932 if test "${enable_decimal_float+set}" = set; then
6933 enableval="$enable_decimal_float"
6935 if test x$enablevar = xyes ; then
6936 case $target in
6937 powerpc*-*-linux* | i?86*-*-linux*)
6938 enable_decimal_float=yes
6941 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6942 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6943 enable_decimal_float=no
6945 esac
6948 else
6949 enable_decimal_float=no
6954 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
6956 cat >>confdefs.h <<_ACEOF
6957 #define ENABLE_DECIMAL_FLOAT $dfp
6958 _ACEOF
6961 # Enable threads
6962 # Pass with no value to take the default
6963 # Pass with a value to specify a thread package
6964 # Check whether --enable-threads or --disable-threads was given.
6965 if test "${enable_threads+set}" = set; then
6966 enableval="$enable_threads"
6968 else
6969 enable_threads=''
6972 # Check whether --enable-tls or --disable-tls was given.
6973 if test "${enable_tls+set}" = set; then
6974 enableval="$enable_tls"
6976 case $enable_tls in
6977 yes | no) ;;
6978 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
6979 Valid choices are 'yes' and 'no'." >&5
6980 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
6981 Valid choices are 'yes' and 'no'." >&2;}
6982 { (exit 1); exit 1; }; } ;;
6983 esac
6985 else
6986 enable_tls=''
6989 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6990 if test "${enable_objc_gc+set}" = set; then
6991 enableval="$enable_objc_gc"
6992 if test x$enable_objc_gc = xno; then
6993 objc_boehm_gc=''
6994 else
6995 objc_boehm_gc=1
6997 else
6998 objc_boehm_gc=''
7002 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7003 if test "${with_dwarf2+set}" = set; then
7004 withval="$with_dwarf2"
7005 dwarf2="$with_dwarf2"
7006 else
7007 dwarf2=no
7010 # Check whether --enable-shared or --disable-shared was given.
7011 if test "${enable_shared+set}" = set; then
7012 enableval="$enable_shared"
7014 case $enable_shared in
7015 yes | no) ;;
7017 enable_shared=no
7018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7019 for pkg in $enableval; do
7020 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7021 enable_shared=yes
7023 done
7024 IFS="$ac_save_ifs"
7026 esac
7028 else
7029 enable_shared=yes
7034 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7035 if test "${with_build_sysroot+set}" = set; then
7036 withval="$with_build_sysroot"
7041 # Check whether --with-sysroot or --without-sysroot was given.
7042 if test "${with_sysroot+set}" = set; then
7043 withval="$with_sysroot"
7045 case ${with_sysroot} in
7046 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7047 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7048 esac
7050 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7051 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7053 if test "x$exec_prefix" = xNONE; then
7054 if test "x$prefix" = xNONE; then
7055 test_prefix=/usr/local
7056 else
7057 test_prefix=$prefix
7059 else
7060 test_prefix=$exec_prefix
7062 case ${TARGET_SYSTEM_ROOT} in
7063 "${test_prefix}"|"${test_prefix}/"*|\
7064 '${exec_prefix}'|'${exec_prefix}/'*)
7065 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7066 TARGET_SYSTEM_ROOT_DEFINE="$t"
7068 esac
7070 else
7072 TARGET_SYSTEM_ROOT=
7073 TARGET_SYSTEM_ROOT_DEFINE=
7074 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7081 # Build with intermodule optimisations
7082 # Check whether --enable-intermodule or --disable-intermodule was given.
7083 if test "${enable_intermodule+set}" = set; then
7084 enableval="$enable_intermodule"
7085 case ${enable_intermodule} in
7086 yes) onestep="-onestep";;
7087 *) onestep="";;
7088 esac
7089 else
7090 onestep=""
7094 # Sanity check enable_languages in case someone does not run the toplevel
7095 # configure # script.
7096 # Check whether --enable-languages or --disable-languages was given.
7097 if test "${enable_languages+set}" = set; then
7098 enableval="$enable_languages"
7099 case ,${enable_languages}, in
7100 ,,|,yes,)
7101 # go safe -- we cannot be much sure without the toplevel
7102 # configure's
7103 # analysis of which target libs are present and usable
7104 enable_languages=c
7106 *,all,*)
7107 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7108 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7109 { (exit 1); exit 1; }; }
7111 *,c,*)
7114 enable_languages=c,${enable_languages}
7116 esac
7117 else
7118 enable_languages=c
7121 subdirs=
7122 for lang in ${srcdir}/*/config-lang.in
7124 case $lang in
7125 # The odd quoting in the next line works around
7126 # an apparent bug in bash 1.12 on linux.
7127 ${srcdir}/[*]/config-lang.in) ;;
7129 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7130 if test "x$lang_alias" = x
7131 then
7132 echo "$lang doesn't set \$language." 1>&2
7133 exit 1
7135 case ",$enable_languages," in
7136 *,$lang_alias,*)
7137 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7138 esac
7140 esac
7141 done
7144 # -------------------------
7145 # Checks for other programs
7146 # -------------------------
7148 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7149 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7150 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7151 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154 cat >conftest.make <<\_ACEOF
7155 all:
7156 @echo 'ac_maketemp="$(MAKE)"'
7157 _ACEOF
7158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7159 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7160 if test -n "$ac_maketemp"; then
7161 eval ac_cv_prog_make_${ac_make}_set=yes
7162 else
7163 eval ac_cv_prog_make_${ac_make}_set=no
7165 rm -f conftest.make
7167 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7168 echo "$as_me:$LINENO: result: yes" >&5
7169 echo "${ECHO_T}yes" >&6
7170 SET_MAKE=
7171 else
7172 echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6
7174 SET_MAKE="MAKE=${MAKE-make}"
7178 # Find some useful tools
7179 for ac_prog in gawk mawk nawk awk
7181 # Extract the first word of "$ac_prog", so it can be a program name with args.
7182 set dummy $ac_prog; ac_word=$2
7183 echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7185 if test "${ac_cv_prog_AWK+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 if test -n "$AWK"; then
7189 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_AWK="$ac_prog"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7202 done
7203 done
7207 AWK=$ac_cv_prog_AWK
7208 if test -n "$AWK"; then
7209 echo "$as_me:$LINENO: result: $AWK" >&5
7210 echo "${ECHO_T}$AWK" >&6
7211 else
7212 echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7216 test -n "$AWK" && break
7217 done
7219 # We need awk to create options.c and options.h.
7220 # Bail out if it's missing.
7221 case ${AWK} in
7222 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7223 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7224 { (exit 1); exit 1; }; } ;;
7225 esac
7227 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7228 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7229 if test "${gcc_cv_prog_LN_S+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 rm -f conftestdata_t
7233 echo >conftestdata_f
7234 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7235 then
7236 gcc_cv_prog_LN_S="ln -s"
7237 else
7238 if ln conftestdata_f conftestdata_t 2>/dev/null
7239 then
7240 gcc_cv_prog_LN_S=ln
7241 else
7242 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7243 then
7244 gcc_cv_prog_LN_S="cp -p"
7245 else
7246 gcc_cv_prog_LN_S=cp
7250 rm -f conftestdata_f conftestdata_t
7253 LN_S="$gcc_cv_prog_LN_S"
7254 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7255 echo "$as_me:$LINENO: result: yes" >&5
7256 echo "${ECHO_T}yes" >&6
7257 else
7258 if test "$gcc_cv_prog_LN_S" = "ln"; then
7259 echo "$as_me:$LINENO: result: no, using ln" >&5
7260 echo "${ECHO_T}no, using ln" >&6
7261 else
7262 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7263 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7267 echo "$as_me:$LINENO: checking whether ln works" >&5
7268 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7269 if test "${acx_cv_prog_LN+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272 rm -f conftestdata_t
7273 echo >conftestdata_f
7274 if ln conftestdata_f conftestdata_t 2>/dev/null
7275 then
7276 acx_cv_prog_LN=ln
7277 else
7278 acx_cv_prog_LN=no
7280 rm -f conftestdata_f conftestdata_t
7283 if test $acx_cv_prog_LN = no; then
7284 LN="$LN_S"
7285 echo "$as_me:$LINENO: result: no, using $LN" >&5
7286 echo "${ECHO_T}no, using $LN" >&6
7287 else
7288 LN="$acx_cv_prog_LN"
7289 echo "$as_me:$LINENO: result: yes" >&5
7290 echo "${ECHO_T}yes" >&6
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7296 echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7298 if test "${ac_cv_prog_RANLIB+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301 if test -n "$RANLIB"; then
7302 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7315 done
7316 done
7320 RANLIB=$ac_cv_prog_RANLIB
7321 if test -n "$RANLIB"; then
7322 echo "$as_me:$LINENO: result: $RANLIB" >&5
7323 echo "${ECHO_T}$RANLIB" >&6
7324 else
7325 echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6
7330 if test -z "$ac_cv_prog_RANLIB"; then
7331 ac_ct_RANLIB=$RANLIB
7332 # Extract the first word of "ranlib", so it can be a program name with args.
7333 set dummy ranlib; ac_word=$2
7334 echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339 if test -n "$ac_ct_RANLIB"; then
7340 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349 ac_cv_prog_ac_ct_RANLIB="ranlib"
7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7353 done
7354 done
7356 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7359 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7360 if test -n "$ac_ct_RANLIB"; then
7361 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7362 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7363 else
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7368 RANLIB=$ac_ct_RANLIB
7369 else
7370 RANLIB="$ac_cv_prog_RANLIB"
7373 case "${host}" in
7374 *-*-darwin*)
7375 # By default, the Darwin ranlib will not treat common symbols as
7376 # definitions when building the archive table of contents. Other
7377 # ranlibs do that; pass an option to the Darwin ranlib that makes
7378 # it behave similarly.
7379 ranlib_flags="-c"
7382 ranlib_flags=""
7383 esac
7386 # Find a good install program. We prefer a C program (faster),
7387 # so one script is as good as another. But avoid the broken or
7388 # incompatible versions:
7389 # SysV /etc/install, /usr/sbin/install
7390 # SunOS /usr/etc/install
7391 # IRIX /sbin/install
7392 # AIX /bin/install
7393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7395 # ./install, which can be erroneously created by make from ./install.sh.
7396 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7397 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7398 if test -z "$INSTALL"; then
7399 if test "${ac_cv_path_install+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7403 for ac_dir in $PATH; do
7404 # Account for people who put trailing slashes in PATH elements.
7405 case "$ac_dir/" in
7406 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7408 # OSF1 and SCO ODT 3.0 have their own names for install.
7409 for ac_prog in ginstall scoinst install; do
7410 if test -f $ac_dir/$ac_prog; then
7411 if test $ac_prog = install &&
7412 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7413 # AIX install. It has an incompatible calling convention.
7414 # OSF/1 installbsd also uses dspmsg, but is usable.
7416 else
7417 ac_cv_path_install="$ac_dir/$ac_prog -c"
7418 break 2
7421 done
7423 esac
7424 done
7425 IFS="$ac_save_IFS"
7428 if test "${ac_cv_path_install+set}" = set; then
7429 INSTALL="$ac_cv_path_install"
7430 else
7431 # As a last resort, use the slow shell script. We don't cache a
7432 # path for INSTALL within a source directory, because that will
7433 # break other packages using the cache if that directory is
7434 # removed, or if the path is relative.
7435 INSTALL="$ac_install_sh"
7438 echo "$as_me:$LINENO: result: $INSTALL" >&5
7439 echo "${ECHO_T}$INSTALL" >&6
7441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7442 # It thinks the first close brace ends the variable substitution.
7443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7445 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7448 # See if cmp has --ignore-initial.
7449 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7450 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7451 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454 echo abfoo >t1
7455 echo cdfoo >t2
7456 gcc_cv_prog_cmp_skip=slowcompare
7457 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7458 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7460 else
7461 gcc_cv_prog_cmp_skip=gnucompare
7464 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7465 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7466 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7468 else
7469 gcc_cv_prog_cmp_skip=fastcompare
7473 rm t1 t2
7476 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7477 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7478 make_compare_target=$gcc_cv_prog_cmp_skip
7482 # See if we have the mktemp command.
7483 # Extract the first word of "mktemp", so it can be a program name with args.
7484 set dummy mktemp; ac_word=$2
7485 echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7487 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490 if test -n "$have_mktemp_command"; then
7491 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_have_mktemp_command="yes"
7501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 break 2
7504 done
7505 done
7507 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7510 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7511 if test -n "$have_mktemp_command"; then
7512 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7513 echo "${ECHO_T}$have_mktemp_command" >&6
7514 else
7515 echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6
7520 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7522 # See if makeinfo has been installed and is modern enough
7523 # that we can use it.
7525 ac_executable_extensions="$build_exeext"
7527 # Extract the first word of "makeinfo", so it can be a program name with args.
7528 set dummy makeinfo; ac_word=$2
7529 echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7531 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534 if test -n "$MAKEINFO"; then
7535 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_MAKEINFO="makeinfo"
7545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7548 done
7549 done
7553 MAKEINFO=$ac_cv_prog_MAKEINFO
7554 if test -n "$MAKEINFO"; then
7555 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7556 echo "${ECHO_T}$MAKEINFO" >&6
7557 else
7558 echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6
7562 if test -n "$MAKEINFO"; then
7563 # Found it, now check the version.
7564 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7565 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7566 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569 ac_prog_version=`$MAKEINFO --version 2>&1 |
7570 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7571 echo "configure:7571: version of makeinfo is $ac_prog_version" >&5
7572 case $ac_prog_version in
7573 '') gcc_cv_prog_makeinfo_modern=no;;
7574 4.[4-9]*)
7575 gcc_cv_prog_makeinfo_modern=yes;;
7576 *) gcc_cv_prog_makeinfo_modern=no;;
7577 esac
7580 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7581 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7582 else
7583 gcc_cv_prog_makeinfo_modern=no
7586 if test $gcc_cv_prog_makeinfo_modern = no; then
7587 MAKEINFO="$MISSING makeinfo"
7588 { echo "$as_me:$LINENO: WARNING:
7589 *** Makeinfo is missing or too old.
7590 *** Info documentation will not be built." >&5
7591 echo "$as_me: WARNING:
7592 *** Makeinfo is missing or too old.
7593 *** Info documentation will not be built." >&2;}
7594 BUILD_INFO=
7595 else
7596 BUILD_INFO=info
7600 # Is pod2man recent enough to regenerate manpages?
7601 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7602 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7603 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7604 echo "$as_me:$LINENO: result: yes" >&5
7605 echo "${ECHO_T}yes" >&6
7606 GENERATED_MANPAGES=generated-manpages
7607 else
7608 echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6
7610 GENERATED_MANPAGES=
7614 # How about lex?
7615 for ac_prog in flex
7617 # Extract the first word of "$ac_prog", so it can be a program name with args.
7618 set dummy $ac_prog; ac_word=$2
7619 echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7621 if test "${ac_cv_prog_FLEX+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624 if test -n "$FLEX"; then
7625 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_FLEX="$ac_prog"
7635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7638 done
7639 done
7643 FLEX=$ac_cv_prog_FLEX
7644 if test -n "$FLEX"; then
7645 echo "$as_me:$LINENO: result: $FLEX" >&5
7646 echo "${ECHO_T}$FLEX" >&6
7647 else
7648 echo "$as_me:$LINENO: result: no" >&5
7649 echo "${ECHO_T}no" >&6
7652 test -n "$FLEX" && break
7653 done
7654 test -n "$FLEX" || FLEX="$MISSING flex"
7657 # Bison?
7658 for ac_prog in bison
7660 # Extract the first word of "$ac_prog", so it can be a program name with args.
7661 set dummy $ac_prog; ac_word=$2
7662 echo "$as_me:$LINENO: checking for $ac_word" >&5
7663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7664 if test "${ac_cv_prog_BISON+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667 if test -n "$BISON"; then
7668 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_BISON="$ac_prog"
7678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7681 done
7682 done
7686 BISON=$ac_cv_prog_BISON
7687 if test -n "$BISON"; then
7688 echo "$as_me:$LINENO: result: $BISON" >&5
7689 echo "${ECHO_T}$BISON" >&6
7690 else
7691 echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6
7695 test -n "$BISON" && break
7696 done
7697 test -n "$BISON" || BISON="$MISSING bison"
7700 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7701 # check for build == host before using them.
7703 # NM
7704 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7705 && test -d ../binutils ; then
7706 NM='$(objdir)/../binutils/nm-new'
7707 else
7708 # Extract the first word of "nm", so it can be a program name with args.
7709 set dummy nm; ac_word=$2
7710 echo "$as_me:$LINENO: checking for $ac_word" >&5
7711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7712 if test "${ac_cv_prog_NM+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 if test -n "$NM"; then
7716 ac_cv_prog_NM="$NM" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725 ac_cv_prog_NM="nm"
7726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 break 2
7729 done
7730 done
7732 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7735 NM=$ac_cv_prog_NM
7736 if test -n "$NM"; then
7737 echo "$as_me:$LINENO: result: $NM" >&5
7738 echo "${ECHO_T}$NM" >&6
7739 else
7740 echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6
7746 # AR
7747 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7748 && test -d ../binutils ; then
7749 AR='$(objdir)/../binutils/ar'
7750 else
7751 # Extract the first word of "ar", so it can be a program name with args.
7752 set dummy ar; ac_word=$2
7753 echo "$as_me:$LINENO: checking for $ac_word" >&5
7754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7755 if test "${ac_cv_prog_AR+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758 if test -n "$AR"; then
7759 ac_cv_prog_AR="$AR" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_AR="ar"
7769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7772 done
7773 done
7775 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7778 AR=$ac_cv_prog_AR
7779 if test -n "$AR"; then
7780 echo "$as_me:$LINENO: result: $AR" >&5
7781 echo "${ECHO_T}$AR" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6
7790 # --------------------
7791 # Checks for C headers
7792 # --------------------
7794 echo "$as_me:$LINENO: checking for GNU C library" >&5
7795 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7796 if test "${gcc_cv_glibc+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799 cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h. */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 #include <features.h>
7807 main ()
7810 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7811 #error Not a GNU C library system
7812 #endif
7814 return 0;
7816 _ACEOF
7817 rm -f conftest.$ac_objext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7819 (eval $ac_compile) 2>conftest.er1
7820 ac_status=$?
7821 grep -v '^ *+' conftest.er1 >conftest.err
7822 rm -f conftest.er1
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try='test -s conftest.$ac_objext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 gcc_cv_glibc=yes
7839 else
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 gcc_cv_glibc=no
7845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7848 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7849 echo "${ECHO_T}$gcc_cv_glibc" >&6
7850 if test $gcc_cv_glibc = yes; then
7852 cat >>confdefs.h <<\_ACEOF
7853 #define _GNU_SOURCE 1
7854 _ACEOF
7858 # Need to reject headers which give warnings, so that the -Werror bootstrap
7859 # works later. *sigh* This needs to come before all header checks.
7861 ac_c_preproc_warn_flag=yes
7863 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7864 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7865 if test "${ac_cv_header_stdc+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h. */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 #include <stdlib.h>
7875 #include <stdarg.h>
7876 #include <string.h>
7877 #include <float.h>
7880 main ()
7884 return 0;
7886 _ACEOF
7887 rm -f conftest.$ac_objext
7888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7889 (eval $ac_compile) 2>conftest.er1
7890 ac_status=$?
7891 grep -v '^ *+' conftest.er1 >conftest.err
7892 rm -f conftest.er1
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_cv_header_stdc=yes
7909 else
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 ac_cv_header_stdc=no
7915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7917 if test $ac_cv_header_stdc = yes; then
7918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 #include <string.h>
7927 _ACEOF
7928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7929 $EGREP "memchr" >/dev/null 2>&1; then
7931 else
7932 ac_cv_header_stdc=no
7934 rm -f conftest*
7938 if test $ac_cv_header_stdc = yes; then
7939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <stdlib.h>
7948 _ACEOF
7949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7950 $EGREP "free" >/dev/null 2>&1; then
7952 else
7953 ac_cv_header_stdc=no
7955 rm -f conftest*
7959 if test $ac_cv_header_stdc = yes; then
7960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7961 if test "$cross_compiling" = yes; then
7963 else
7964 cat >conftest.$ac_ext <<_ACEOF
7965 /* confdefs.h. */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h. */
7970 #include <ctype.h>
7971 #if ((' ' & 0x0FF) == 0x020)
7972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7974 #else
7975 # define ISLOWER(c) \
7976 (('a' <= (c) && (c) <= 'i') \
7977 || ('j' <= (c) && (c) <= 'r') \
7978 || ('s' <= (c) && (c) <= 'z'))
7979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7980 #endif
7982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7984 main ()
7986 int i;
7987 for (i = 0; i < 256; i++)
7988 if (XOR (islower (i), ISLOWER (i))
7989 || toupper (i) != TOUPPER (i))
7990 exit(2);
7991 exit (0);
7993 _ACEOF
7994 rm -f conftest$ac_exeext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7996 (eval $ac_link) 2>&5
7997 ac_status=$?
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 (eval $ac_try) 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8006 else
8007 echo "$as_me: program exited with status $ac_status" >&5
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8011 ( exit $ac_status )
8012 ac_cv_header_stdc=no
8014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8018 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8019 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8020 if test $ac_cv_header_stdc = yes; then
8022 cat >>confdefs.h <<\_ACEOF
8023 #define STDC_HEADERS 1
8024 _ACEOF
8028 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8029 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8030 if test "${ac_cv_header_time+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 #include <sys/types.h>
8040 #include <sys/time.h>
8041 #include <time.h>
8044 main ()
8046 if ((struct tm *) 0)
8047 return 0;
8049 return 0;
8051 _ACEOF
8052 rm -f conftest.$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054 (eval $ac_compile) 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 (eval $ac_try) 2>&5
8064 ac_status=$?
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; } &&
8067 { ac_try='test -s conftest.$ac_objext'
8068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069 (eval $ac_try) 2>&5
8070 ac_status=$?
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 ac_cv_header_time=yes
8074 else
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8078 ac_cv_header_time=no
8080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8082 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8083 echo "${ECHO_T}$ac_cv_header_time" >&6
8084 if test $ac_cv_header_time = yes; then
8086 cat >>confdefs.h <<\_ACEOF
8087 #define TIME_WITH_SYS_TIME 1
8088 _ACEOF
8092 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8093 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8094 if test "${gcc_cv_header_string+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <string.h>
8104 #include <strings.h>
8106 main ()
8110 return 0;
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 gcc_cv_header_string=yes
8135 else
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 gcc_cv_header_string=no
8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8144 echo "${ECHO_T}$gcc_cv_header_string" >&6
8145 if test $gcc_cv_header_string = yes; then
8147 cat >>confdefs.h <<\_ACEOF
8148 #define STRING_WITH_STRINGS 1
8149 _ACEOF
8153 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8154 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8155 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158 cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h. */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 #include <sys/types.h>
8165 #include <sys/wait.h>
8166 #ifndef WEXITSTATUS
8167 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8168 #endif
8169 #ifndef WIFEXITED
8170 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8171 #endif
8174 main ()
8176 int s;
8177 wait (&s);
8178 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8180 return 0;
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185 (eval $ac_compile) 2>conftest.er1
8186 ac_status=$?
8187 grep -v '^ *+' conftest.er1 >conftest.err
8188 rm -f conftest.er1
8189 cat conftest.err >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 (eval $ac_try) 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; } &&
8198 { ac_try='test -s conftest.$ac_objext'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; }; then
8204 ac_cv_header_sys_wait_h=yes
8205 else
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8209 ac_cv_header_sys_wait_h=no
8211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8213 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8214 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8215 if test $ac_cv_header_sys_wait_h = yes; then
8217 cat >>confdefs.h <<\_ACEOF
8218 #define HAVE_SYS_WAIT_H 1
8219 _ACEOF
8245 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8246 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8247 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8248 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8251 echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 #include <$ac_header>
8263 _ACEOF
8264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } >/dev/null; then
8272 if test -s conftest.err; then
8273 ac_cpp_err=$ac_c_preproc_warn_flag
8274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8275 else
8276 ac_cpp_err=
8278 else
8279 ac_cpp_err=yes
8281 if test -z "$ac_cpp_err"; then
8282 eval "$as_ac_Header=yes"
8283 else
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8287 eval "$as_ac_Header=no"
8289 rm -f conftest.err conftest.$ac_ext
8291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8294 cat >>confdefs.h <<_ACEOF
8295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8296 _ACEOF
8299 done
8302 # Check for thread headers.
8303 echo "$as_me:$LINENO: checking for thread.h" >&5
8304 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8305 if test "${ac_cv_header_thread_h+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308 cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h. */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 #include <thread.h>
8315 _ACEOF
8316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8318 ac_status=$?
8319 grep -v '^ *+' conftest.er1 >conftest.err
8320 rm -f conftest.er1
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } >/dev/null; then
8324 if test -s conftest.err; then
8325 ac_cpp_err=$ac_c_preproc_warn_flag
8326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8327 else
8328 ac_cpp_err=
8330 else
8331 ac_cpp_err=yes
8333 if test -z "$ac_cpp_err"; then
8334 ac_cv_header_thread_h=yes
8335 else
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8339 ac_cv_header_thread_h=no
8341 rm -f conftest.err conftest.$ac_ext
8343 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8344 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8345 if test $ac_cv_header_thread_h = yes; then
8346 have_thread_h=yes
8347 else
8348 have_thread_h=
8351 echo "$as_me:$LINENO: checking for pthread.h" >&5
8352 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8353 if test "${ac_cv_header_pthread_h+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h. */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 #include <pthread.h>
8363 _ACEOF
8364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } >/dev/null; then
8372 if test -s conftest.err; then
8373 ac_cpp_err=$ac_c_preproc_warn_flag
8374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8375 else
8376 ac_cpp_err=
8378 else
8379 ac_cpp_err=yes
8381 if test -z "$ac_cpp_err"; then
8382 ac_cv_header_pthread_h=yes
8383 else
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 ac_cv_header_pthread_h=no
8389 rm -f conftest.err conftest.$ac_ext
8391 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8392 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8393 if test $ac_cv_header_pthread_h = yes; then
8394 have_pthread_h=yes
8395 else
8396 have_pthread_h=
8400 # These tests can't be done till we know if we have limits.h.
8401 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8402 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8403 if test "${gcc_cv_decl_char_bit+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 #ifdef HAVE_LIMITS_H
8413 #include <limits.h>
8414 #endif
8415 #ifdef CHAR_BIT
8416 found
8417 #endif
8418 _ACEOF
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 $EGREP "found" >/dev/null 2>&1; then
8421 gcc_cv_decl_char_bit=yes
8422 else
8423 gcc_cv_decl_char_bit=no
8425 rm -f conftest*
8429 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8430 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8431 if test $gcc_cv_decl_char_bit = no; then
8432 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8433 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8434 if test "${gcc_cv_c_nbby+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8438 gcc_cv_c_nbby=
8439 while test $i -lt 65; do
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8448 main ()
8450 switch(0) {
8451 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8452 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8455 return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460 (eval $ac_compile) 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 gcc_cv_c_nbby=$i; break
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8486 i=`expr $i + 1`
8487 done
8488 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8491 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8492 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8493 if test $gcc_cv_c_nbby = failed; then
8494 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8495 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8496 { (exit 1); exit 1; }; }
8497 else
8499 cat >>confdefs.h <<_ACEOF
8500 #define CHAR_BIT $gcc_cv_c_nbby
8501 _ACEOF
8505 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8506 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8507 if test "${ac_cv_c_bigendian+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510 # See if sys/param.h defines the BYTE_ORDER macro.
8511 cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h. */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 #include <sys/types.h>
8518 #include <sys/param.h>
8521 main ()
8523 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8524 bogus endian macros
8525 #endif
8528 return 0;
8530 _ACEOF
8531 rm -f conftest.$ac_objext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8533 (eval $ac_compile) 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 (eval $ac_try) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 # It does; now see whether it defined to BIG_ENDIAN or not.
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 #include <sys/types.h>
8560 #include <sys/param.h>
8563 main ()
8565 #if BYTE_ORDER != BIG_ENDIAN
8566 not big endian
8567 #endif
8570 return 0;
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8575 (eval $ac_compile) 2>conftest.er1
8576 ac_status=$?
8577 grep -v '^ *+' conftest.er1 >conftest.err
8578 rm -f conftest.er1
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_cv_c_bigendian=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8599 ac_cv_c_bigendian=no
8601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 # It does not; compile a test program.
8607 if test "$cross_compiling" = yes; then
8608 # try to guess the endianness by grepping values into an object file
8609 ac_cv_c_bigendian=unknown
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8617 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8618 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8619 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8620 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8621 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8623 main ()
8625 _ascii (); _ebcdic ();
8627 return 0;
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632 (eval $ac_compile) 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 (eval $ac_try) 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; } &&
8645 { ac_try='test -s conftest.$ac_objext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8652 ac_cv_c_bigendian=yes
8654 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8655 if test "$ac_cv_c_bigendian" = unknown; then
8656 ac_cv_c_bigendian=no
8657 else
8658 # finding both strings is unlikely to happen, but who knows?
8659 ac_cv_c_bigendian=unknown
8662 else
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8668 else
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h. */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8676 main ()
8678 /* Are we little or big endian? From Harbison&Steele. */
8679 union
8681 long l;
8682 char c[sizeof (long)];
8683 } u;
8684 u.l = 1;
8685 exit (u.c[sizeof (long) - 1] == 1);
8687 _ACEOF
8688 rm -f conftest$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690 (eval $ac_link) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_cv_c_bigendian=no
8700 else
8701 echo "$as_me: program exited with status $ac_status" >&5
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ( exit $ac_status )
8706 ac_cv_c_bigendian=yes
8708 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8713 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8714 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8715 case $ac_cv_c_bigendian in
8716 yes)
8718 cat >>confdefs.h <<\_ACEOF
8719 #define WORDS_BIGENDIAN 1
8720 _ACEOF
8725 { { echo "$as_me:$LINENO: error: unknown endianness
8726 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8727 echo "$as_me: error: unknown endianness
8728 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8729 { (exit 1); exit 1; }; } ;;
8730 esac
8733 # --------
8734 # UNSORTED
8735 # --------
8737 # Stage specific cflags for build.
8738 stage1_cflags=
8739 case $build in
8740 vax-*-*)
8741 if test x$GCC = xyes
8742 then
8743 stage1_cflags="-Wa,-J"
8744 else
8745 stage1_cflags="-J"
8748 powerpc-*-darwin*)
8749 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8750 # sources; use -no-cpp-precomp to get to GNU cpp.
8751 # Apple's GCC has bugs in designated initializer handling, so disable
8752 # that too.
8753 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8755 esac
8758 # These libraries may be used by collect2.
8759 # We may need a special search path to get them linked.
8760 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8761 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8762 if test "${gcc_cv_collect2_libs+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 save_LIBS="$LIBS"
8766 for libs in '' -lld -lmld \
8767 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8768 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8770 LIBS="$libs"
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h. */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8778 /* Override any gcc2 internal prototype to avoid an error. */
8779 #ifdef __cplusplus
8780 extern "C"
8781 #endif
8782 /* We use char because int might match the return type of a gcc2
8783 builtin and then its argument prototype would still apply. */
8784 char ldopen ();
8786 main ()
8788 ldopen ();
8790 return 0;
8792 _ACEOF
8793 rm -f conftest.$ac_objext conftest$ac_exeext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795 (eval $ac_link) 2>conftest.er1
8796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest$ac_exeext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 gcc_cv_collect2_libs="$libs"; break
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8820 rm -f conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
8822 done
8823 LIBS="$save_LIBS"
8824 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8826 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8827 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8828 case $gcc_cv_collect2_libs in
8829 "none required") ;;
8830 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8831 esac
8834 # When building Ada code on Alpha, we need exc_resume which is usually in
8835 # -lexc. So test for it.
8836 save_LIBS="$LIBS"
8837 LIBS=
8838 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8839 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8840 if test "${ac_cv_search_exc_resume+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843 ac_func_search_save_LIBS=$LIBS
8844 ac_cv_search_exc_resume=no
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 /* Override any gcc2 internal prototype to avoid an error. */
8853 #ifdef __cplusplus
8854 extern "C"
8855 #endif
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8858 char exc_resume ();
8860 main ()
8862 exc_resume ();
8864 return 0;
8866 _ACEOF
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest$ac_exeext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_search_exc_resume="none required"
8889 else
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8894 rm -f conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
8896 if test "$ac_cv_search_exc_resume" = no; then
8897 for ac_lib in exc; do
8898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8906 /* Override any gcc2 internal prototype to avoid an error. */
8907 #ifdef __cplusplus
8908 extern "C"
8909 #endif
8910 /* We use char because int might match the return type of a gcc2
8911 builtin and then its argument prototype would still apply. */
8912 char exc_resume ();
8914 main ()
8916 exc_resume ();
8918 return 0;
8920 _ACEOF
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923 (eval $ac_link) 2>conftest.er1
8924 ac_status=$?
8925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_search_exc_resume="-l$ac_lib"
8943 break
8944 else
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8949 rm -f conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 done
8953 LIBS=$ac_func_search_save_LIBS
8955 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8956 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8957 if test "$ac_cv_search_exc_resume" != no; then
8958 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8962 GNAT_LIBEXC="$LIBS"
8963 LIBS="$save_LIBS"
8966 # Some systems put ldexp and frexp in libm instead of libc; assume
8967 # they're both in the same place. jcf-dump needs them.
8968 save_LIBS="$LIBS"
8969 LIBS=
8970 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8971 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8972 if test "${ac_cv_search_ldexp+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975 ac_func_search_save_LIBS=$LIBS
8976 ac_cv_search_ldexp=no
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h. */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8984 /* Override any gcc2 internal prototype to avoid an error. */
8985 #ifdef __cplusplus
8986 extern "C"
8987 #endif
8988 /* We use char because int might match the return type of a gcc2
8989 builtin and then its argument prototype would still apply. */
8990 char ldexp ();
8992 main ()
8994 ldexp ();
8996 return 0;
8998 _ACEOF
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001 (eval $ac_link) 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; } &&
9014 { ac_try='test -s conftest$ac_exeext'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016 (eval $ac_try) 2>&5
9017 ac_status=$?
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9020 ac_cv_search_ldexp="none required"
9021 else
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9026 rm -f conftest.err conftest.$ac_objext \
9027 conftest$ac_exeext conftest.$ac_ext
9028 if test "$ac_cv_search_ldexp" = no; then
9029 for ac_lib in m; do
9030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9038 /* Override any gcc2 internal prototype to avoid an error. */
9039 #ifdef __cplusplus
9040 extern "C"
9041 #endif
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9044 char ldexp ();
9046 main ()
9048 ldexp ();
9050 return 0;
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>conftest.er1
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try='test -s conftest$ac_exeext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 (eval $ac_try) 2>&5
9071 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_search_ldexp="-l$ac_lib"
9075 break
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9081 rm -f conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
9083 done
9085 LIBS=$ac_func_search_save_LIBS
9087 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9088 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9089 if test "$ac_cv_search_ldexp" != no; then
9090 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9094 LDEXP_LIB="$LIBS"
9095 LIBS="$save_LIBS"
9098 # Use <inttypes.h> only if it exists,
9099 # doesn't clash with <sys/types.h>, and declares intmax_t.
9100 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9101 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9102 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105 cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h. */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9111 #include <sys/types.h>
9112 #include <inttypes.h>
9114 main ()
9116 intmax_t i = -1;
9118 return 0;
9120 _ACEOF
9121 rm -f conftest.$ac_objext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123 (eval $ac_compile) 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; } &&
9136 { ac_try='test -s conftest.$ac_objext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 gcc_cv_header_inttypes_h=yes
9143 else
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9147 gcc_cv_header_inttypes_h=no
9149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9152 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9153 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9154 if test $gcc_cv_header_inttypes_h = yes; then
9156 cat >>confdefs.h <<\_ACEOF
9157 #define HAVE_INTTYPES_H 1
9158 _ACEOF
9199 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9200 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9201 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9202 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
9204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9205 echo "$as_me:$LINENO: checking for $ac_func" >&5
9206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9207 if eval "test \"\${$as_ac_var+set}\" = set"; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h. */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9218 #define $ac_func innocuous_$ac_func
9220 /* System header to define __stub macros and hopefully few prototypes,
9221 which can conflict with char $ac_func (); below.
9222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9223 <limits.h> exists even on freestanding compilers. */
9225 #ifdef __STDC__
9226 # include <limits.h>
9227 #else
9228 # include <assert.h>
9229 #endif
9231 #undef $ac_func
9233 /* Override any gcc2 internal prototype to avoid an error. */
9234 #ifdef __cplusplus
9235 extern "C"
9237 #endif
9238 /* We use char because int might match the return type of a gcc2
9239 builtin and then its argument prototype would still apply. */
9240 char $ac_func ();
9241 /* The GNU C library defines this for functions which it implements
9242 to always fail with ENOSYS. Some functions are actually named
9243 something starting with __ and the normal name is an alias. */
9244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9245 choke me
9246 #else
9247 char (*f) () = $ac_func;
9248 #endif
9249 #ifdef __cplusplus
9251 #endif
9254 main ()
9256 return f != $ac_func;
9258 return 0;
9260 _ACEOF
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 (eval $ac_try) 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; } &&
9276 { ac_try='test -s conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 eval "$as_ac_var=yes"
9283 else
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9287 eval "$as_ac_var=no"
9289 rm -f conftest.err conftest.$ac_objext \
9290 conftest$ac_exeext conftest.$ac_ext
9292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9294 if test `eval echo '${'$as_ac_var'}'` = yes; then
9295 cat >>confdefs.h <<_ACEOF
9296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9297 _ACEOF
9300 done
9303 if test x$ac_cv_func_mbstowcs = xyes; then
9304 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9305 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9306 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309 if test "$cross_compiling" = yes; then
9310 gcc_cv_func_mbstowcs_works=yes
9311 else
9312 cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h. */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 #include <stdlib.h>
9319 int main()
9321 mbstowcs(0, "", 0);
9322 return 0;
9324 _ACEOF
9325 rm -f conftest$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 gcc_cv_func_mbstowcs_works=yes
9337 else
9338 echo "$as_me: program exited with status $ac_status" >&5
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ( exit $ac_status )
9343 gcc_cv_func_mbstowcs_works=no
9345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9348 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9349 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9350 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9352 cat >>confdefs.h <<\_ACEOF
9353 #define HAVE_WORKING_MBSTOWCS 1
9354 _ACEOF
9359 echo "$as_me:$LINENO: checking for ssize_t" >&5
9360 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9361 if test "${ac_cv_type_ssize_t+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 else
9364 cat >conftest.$ac_ext <<_ACEOF
9365 /* confdefs.h. */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 $ac_includes_default
9372 main ()
9374 if ((ssize_t *) 0)
9375 return 0;
9376 if (sizeof (ssize_t))
9377 return 0;
9379 return 0;
9381 _ACEOF
9382 rm -f conftest.$ac_objext
9383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9384 (eval $ac_compile) 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; } &&
9397 { ac_try='test -s conftest.$ac_objext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_type_ssize_t=yes
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_cv_type_ssize_t=no
9410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9412 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9413 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9414 if test $ac_cv_type_ssize_t = yes; then
9416 else
9418 cat >>confdefs.h <<_ACEOF
9419 #define ssize_t int
9420 _ACEOF
9425 # Try to determine the array type of the second argument of getgroups
9426 # for the target system (int or gid_t).
9427 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9428 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9429 if test "${ac_cv_type_uid_t+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 #include <sys/types.h>
9440 _ACEOF
9441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9442 $EGREP "uid_t" >/dev/null 2>&1; then
9443 ac_cv_type_uid_t=yes
9444 else
9445 ac_cv_type_uid_t=no
9447 rm -f conftest*
9450 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9451 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9452 if test $ac_cv_type_uid_t = no; then
9454 cat >>confdefs.h <<\_ACEOF
9455 #define uid_t int
9456 _ACEOF
9459 cat >>confdefs.h <<\_ACEOF
9460 #define gid_t int
9461 _ACEOF
9465 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9466 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9467 if test "${ac_cv_type_getgroups+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470 if test "$cross_compiling" = yes; then
9471 ac_cv_type_getgroups=cross
9472 else
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 /* Thanks to Mike Rendell for this test. */
9480 #include <sys/types.h>
9481 #define NGID 256
9482 #undef MAX
9483 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9486 main ()
9488 gid_t gidset[NGID];
9489 int i, n;
9490 union { gid_t gval; long lval; } val;
9492 val.lval = -1;
9493 for (i = 0; i < NGID; i++)
9494 gidset[i] = val.gval;
9495 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9496 gidset);
9497 /* Exit non-zero if getgroups seems to require an array of ints. This
9498 happens when gid_t is short but getgroups modifies an array of ints. */
9499 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9501 _ACEOF
9502 rm -f conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 ac_cv_type_getgroups=gid_t
9514 else
9515 echo "$as_me: program exited with status $ac_status" >&5
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 ( exit $ac_status )
9520 ac_cv_type_getgroups=int
9522 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9524 if test $ac_cv_type_getgroups = cross; then
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 #include <unistd.h>
9533 _ACEOF
9534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9535 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9536 ac_cv_type_getgroups=gid_t
9537 else
9538 ac_cv_type_getgroups=int
9540 rm -f conftest*
9544 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9545 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9547 cat >>confdefs.h <<_ACEOF
9548 #define GETGROUPS_T $ac_cv_type_getgroups
9549 _ACEOF
9552 if test "${target}" = "${build}"; then
9553 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9554 else
9555 case "${target}" in
9556 # This condition may need some tweaking. It should include all
9557 # targets where the array type of the second argument of getgroups
9558 # is int and the type of gid_t is not equivalent to int.
9559 *-*-sunos* | *-*-ultrix*)
9560 TARGET_GETGROUPS_T=int
9563 TARGET_GETGROUPS_T=gid_t
9565 esac
9570 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9571 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9572 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h. */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 #include <sys/mman.h>
9582 _ACEOF
9583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } >/dev/null; then
9591 if test -s conftest.err; then
9592 ac_cpp_err=$ac_c_preproc_warn_flag
9593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9594 else
9595 ac_cpp_err=
9597 else
9598 ac_cpp_err=yes
9600 if test -z "$ac_cpp_err"; then
9601 ac_cv_header_sys_mman_h=yes
9602 else
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_cv_header_sys_mman_h=no
9608 rm -f conftest.err conftest.$ac_ext
9610 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9611 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9612 if test $ac_cv_header_sys_mman_h = yes; then
9613 gcc_header_sys_mman_h=yes
9614 else
9615 gcc_header_sys_mman_h=no
9618 echo "$as_me:$LINENO: checking for mmap" >&5
9619 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9620 if test "${ac_cv_func_mmap+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h. */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9631 #define mmap innocuous_mmap
9633 /* System header to define __stub macros and hopefully few prototypes,
9634 which can conflict with char mmap (); below.
9635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9636 <limits.h> exists even on freestanding compilers. */
9638 #ifdef __STDC__
9639 # include <limits.h>
9640 #else
9641 # include <assert.h>
9642 #endif
9644 #undef mmap
9646 /* Override any gcc2 internal prototype to avoid an error. */
9647 #ifdef __cplusplus
9648 extern "C"
9650 #endif
9651 /* We use char because int might match the return type of a gcc2
9652 builtin and then its argument prototype would still apply. */
9653 char mmap ();
9654 /* The GNU C library defines this for functions which it implements
9655 to always fail with ENOSYS. Some functions are actually named
9656 something starting with __ and the normal name is an alias. */
9657 #if defined (__stub_mmap) || defined (__stub___mmap)
9658 choke me
9659 #else
9660 char (*f) () = mmap;
9661 #endif
9662 #ifdef __cplusplus
9664 #endif
9667 main ()
9669 return f != mmap;
9671 return 0;
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 (eval $ac_try) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_func_mmap=yes
9696 else
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_func_mmap=no
9702 rm -f conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9705 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9706 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9707 if test $ac_cv_func_mmap = yes; then
9708 gcc_func_mmap=yes
9709 else
9710 gcc_func_mmap=no
9713 if test "$gcc_header_sys_mman_h" != yes \
9714 || test "$gcc_func_mmap" != yes; then
9715 gcc_cv_func_mmap_file=no
9716 gcc_cv_func_mmap_dev_zero=no
9717 gcc_cv_func_mmap_anon=no
9718 else
9719 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9720 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9721 if test "${gcc_cv_func_mmap_file+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 # Add a system to this blacklist if
9725 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9726 # memory area containing the same data that you'd get if you applied
9727 # read() to the same fd. The only system known to have a problem here
9728 # is VMS, where text files have record structure.
9729 case "$host_os" in
9730 vms* | ultrix*)
9731 gcc_cv_func_mmap_file=no ;;
9733 gcc_cv_func_mmap_file=yes;;
9734 esac
9736 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9737 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9738 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9739 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9740 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743 # Add a system to this blacklist if it has mmap() but /dev/zero
9744 # does not exist, or if mmapping /dev/zero does not give anonymous
9745 # zeroed pages with both the following properties:
9746 # 1. If you map N consecutive pages in with one call, and then
9747 # unmap any subset of those pages, the pages that were not
9748 # explicitly unmapped remain accessible.
9749 # 2. If you map two adjacent blocks of memory and then unmap them
9750 # both at once, they must both go away.
9751 # Systems known to be in this category are Windows (all variants),
9752 # VMS, and Darwin.
9753 case "$host_os" in
9754 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9755 gcc_cv_func_mmap_dev_zero=no ;;
9757 gcc_cv_func_mmap_dev_zero=yes;;
9758 esac
9760 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9761 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9763 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9764 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9765 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9766 if test "${gcc_cv_decl_map_anon+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769 cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h. */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 #include <sys/types.h>
9776 #include <sys/mman.h>
9777 #include <unistd.h>
9779 #ifndef MAP_ANONYMOUS
9780 #define MAP_ANONYMOUS MAP_ANON
9781 #endif
9784 main ()
9786 int n = MAP_ANONYMOUS;
9788 return 0;
9790 _ACEOF
9791 rm -f conftest.$ac_objext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9793 (eval $ac_compile) 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest.$ac_objext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 gcc_cv_decl_map_anon=yes
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 gcc_cv_decl_map_anon=no
9819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9821 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9822 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9824 if test $gcc_cv_decl_map_anon = no; then
9825 gcc_cv_func_mmap_anon=no
9826 else
9827 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9828 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9829 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9833 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9834 # doesn't give anonymous zeroed pages with the same properties listed
9835 # above for use of /dev/zero.
9836 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9837 case "$host_os" in
9838 vms* | cygwin* | pe | mingw* | sco* | udk* )
9839 gcc_cv_func_mmap_anon=no ;;
9841 gcc_cv_func_mmap_anon=yes;;
9842 esac
9844 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9845 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9849 if test $gcc_cv_func_mmap_file = yes; then
9851 cat >>confdefs.h <<\_ACEOF
9852 #define HAVE_MMAP_FILE 1
9853 _ACEOF
9856 if test $gcc_cv_func_mmap_dev_zero = yes; then
9858 cat >>confdefs.h <<\_ACEOF
9859 #define HAVE_MMAP_DEV_ZERO 1
9860 _ACEOF
9863 if test $gcc_cv_func_mmap_anon = yes; then
9865 cat >>confdefs.h <<\_ACEOF
9866 #define HAVE_MMAP_ANON 1
9867 _ACEOF
9872 case "${host}" in
9873 *-*-*vms*)
9874 # Under VMS, vfork works very differently than on Unix. The standard test
9875 # won't work, and it isn't easily adaptable. It makes more sense to
9876 # just force it.
9877 ac_cv_func_vfork_works=yes
9879 esac
9880 echo "$as_me:$LINENO: checking for pid_t" >&5
9881 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9882 if test "${ac_cv_type_pid_t+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 $ac_includes_default
9893 main ()
9895 if ((pid_t *) 0)
9896 return 0;
9897 if (sizeof (pid_t))
9898 return 0;
9900 return 0;
9902 _ACEOF
9903 rm -f conftest.$ac_objext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9905 (eval $ac_compile) 2>conftest.er1
9906 ac_status=$?
9907 grep -v '^ *+' conftest.er1 >conftest.err
9908 rm -f conftest.er1
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 (eval $ac_try) 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; } &&
9918 { ac_try='test -s conftest.$ac_objext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 (eval $ac_try) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_cv_type_pid_t=yes
9925 else
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 ac_cv_type_pid_t=no
9931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9933 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9934 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9935 if test $ac_cv_type_pid_t = yes; then
9937 else
9939 cat >>confdefs.h <<_ACEOF
9940 #define pid_t int
9941 _ACEOF
9947 for ac_header in unistd.h vfork.h
9949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9950 echo "$as_me:$LINENO: checking for $ac_header" >&5
9951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 #include <$ac_header>
9962 _ACEOF
9963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } >/dev/null; then
9971 if test -s conftest.err; then
9972 ac_cpp_err=$ac_c_preproc_warn_flag
9973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9974 else
9975 ac_cpp_err=
9977 else
9978 ac_cpp_err=yes
9980 if test -z "$ac_cpp_err"; then
9981 eval "$as_ac_Header=yes"
9982 else
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 eval "$as_ac_Header=no"
9988 rm -f conftest.err conftest.$ac_ext
9990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9993 cat >>confdefs.h <<_ACEOF
9994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9995 _ACEOF
9998 done
10002 for ac_func in fork vfork
10004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10005 echo "$as_me:$LINENO: checking for $ac_func" >&5
10006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10007 if eval "test \"\${$as_ac_var+set}\" = set"; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010 cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018 #define $ac_func innocuous_$ac_func
10020 /* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char $ac_func (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10025 #ifdef __STDC__
10026 # include <limits.h>
10027 #else
10028 # include <assert.h>
10029 #endif
10031 #undef $ac_func
10033 /* Override any gcc2 internal prototype to avoid an error. */
10034 #ifdef __cplusplus
10035 extern "C"
10037 #endif
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10040 char $ac_func ();
10041 /* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10045 choke me
10046 #else
10047 char (*f) () = $ac_func;
10048 #endif
10049 #ifdef __cplusplus
10051 #endif
10054 main ()
10056 return f != $ac_func;
10058 return 0;
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10064 ac_status=$?
10065 grep -v '^ *+' conftest.er1 >conftest.err
10066 rm -f conftest.er1
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; } &&
10076 { ac_try='test -s conftest$ac_exeext'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10082 eval "$as_ac_var=yes"
10083 else
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 eval "$as_ac_var=no"
10089 rm -f conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10094 if test `eval echo '${'$as_ac_var'}'` = yes; then
10095 cat >>confdefs.h <<_ACEOF
10096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10097 _ACEOF
10100 done
10102 if test "x$ac_cv_func_fork" = xyes; then
10103 echo "$as_me:$LINENO: checking for working fork" >&5
10104 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10105 if test "${ac_cv_func_fork_works+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108 if test "$cross_compiling" = yes; then
10109 ac_cv_func_fork_works=cross
10110 else
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h. */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 $ac_includes_default
10119 main ()
10122 /* By Ruediger Kuhlmann. */
10123 if (fork() < 0)
10124 exit (1);
10125 exit (0);
10128 return 0;
10130 _ACEOF
10131 rm -f conftest$ac_exeext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10133 (eval $ac_link) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_func_fork_works=yes
10143 else
10144 echo "$as_me: program exited with status $ac_status" >&5
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ( exit $ac_status )
10149 ac_cv_func_fork_works=no
10151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10154 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10155 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10157 else
10158 ac_cv_func_fork_works=$ac_cv_func_fork
10160 if test "x$ac_cv_func_fork_works" = xcross; then
10161 case $host in
10162 *-*-amigaos* | *-*-msdosdjgpp*)
10163 # Override, as these systems have only a dummy fork() stub
10164 ac_cv_func_fork_works=no
10167 ac_cv_func_fork_works=yes
10169 esac
10170 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10171 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10173 ac_cv_func_vfork_works=$ac_cv_func_vfork
10174 if test "x$ac_cv_func_vfork" = xyes; then
10175 echo "$as_me:$LINENO: checking for working vfork" >&5
10176 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10177 if test "${ac_cv_func_vfork_works+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 if test "$cross_compiling" = yes; then
10181 ac_cv_func_vfork_works=cross
10182 else
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 /* Thanks to Paul Eggert for this test. */
10190 #include <stdio.h>
10191 #include <stdlib.h>
10192 #include <sys/types.h>
10193 #include <sys/stat.h>
10194 #include <sys/wait.h>
10195 #if HAVE_UNISTD_H
10196 # include <unistd.h>
10197 #endif
10198 #if HAVE_VFORK_H
10199 # include <vfork.h>
10200 #endif
10201 /* On some sparc systems, changes by the child to local and incoming
10202 argument registers are propagated back to the parent. The compiler
10203 is told about this with #include <vfork.h>, but some compilers
10204 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10205 static variable whose address is put into a register that is
10206 clobbered by the vfork. */
10207 static void
10208 #ifdef __cplusplus
10209 sparc_address_test (int arg)
10210 # else
10211 sparc_address_test (arg) int arg;
10212 #endif
10214 static pid_t child;
10215 if (!child) {
10216 child = vfork ();
10217 if (child < 0) {
10218 perror ("vfork");
10219 _exit(2);
10221 if (!child) {
10222 arg = getpid();
10223 write(-1, "", 0);
10224 _exit (arg);
10230 main ()
10232 pid_t parent = getpid ();
10233 pid_t child;
10235 sparc_address_test (0);
10237 child = vfork ();
10239 if (child == 0) {
10240 /* Here is another test for sparc vfork register problems. This
10241 test uses lots of local variables, at least as many local
10242 variables as main has allocated so far including compiler
10243 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10244 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10245 reuse the register of parent for one of the local variables,
10246 since it will think that parent can't possibly be used any more
10247 in this routine. Assigning to the local variable will thus
10248 munge parent in the parent process. */
10249 pid_t
10250 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10251 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10252 /* Convince the compiler that p..p7 are live; otherwise, it might
10253 use the same hardware register for all 8 local variables. */
10254 if (p != p1 || p != p2 || p != p3 || p != p4
10255 || p != p5 || p != p6 || p != p7)
10256 _exit(1);
10258 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10259 from child file descriptors. If the child closes a descriptor
10260 before it execs or exits, this munges the parent's descriptor
10261 as well. Test for this by closing stdout in the child. */
10262 _exit(close(fileno(stdout)) != 0);
10263 } else {
10264 int status;
10265 struct stat st;
10267 while (wait(&status) != child)
10269 exit(
10270 /* Was there some problem with vforking? */
10271 child < 0
10273 /* Did the child fail? (This shouldn't happen.) */
10274 || status
10276 /* Did the vfork/compiler bug occur? */
10277 || parent != getpid()
10279 /* Did the file descriptor bug occur? */
10280 || fstat(fileno(stdout), &st) != 0
10284 _ACEOF
10285 rm -f conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_cv_func_vfork_works=yes
10297 else
10298 echo "$as_me: program exited with status $ac_status" >&5
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10302 ( exit $ac_status )
10303 ac_cv_func_vfork_works=no
10305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10308 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10309 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10312 if test "x$ac_cv_func_fork_works" = xcross; then
10313 ac_cv_func_vfork_works=$ac_cv_func_vfork
10314 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10315 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10318 if test "x$ac_cv_func_vfork_works" = xyes; then
10320 cat >>confdefs.h <<\_ACEOF
10321 #define HAVE_WORKING_VFORK 1
10322 _ACEOF
10324 else
10326 cat >>confdefs.h <<\_ACEOF
10327 #define vfork fork
10328 _ACEOF
10331 if test "x$ac_cv_func_fork_works" = xyes; then
10333 cat >>confdefs.h <<\_ACEOF
10334 #define HAVE_WORKING_FORK 1
10335 _ACEOF
10341 if test "X$prefix" = "XNONE"; then
10342 acl_final_prefix="$ac_default_prefix"
10343 else
10344 acl_final_prefix="$prefix"
10346 if test "X$exec_prefix" = "XNONE"; then
10347 acl_final_exec_prefix='${prefix}'
10348 else
10349 acl_final_exec_prefix="$exec_prefix"
10351 acl_save_prefix="$prefix"
10352 prefix="$acl_final_prefix"
10353 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10354 prefix="$acl_save_prefix"
10357 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10358 if test "${with_gnu_ld+set}" = set; then
10359 withval="$with_gnu_ld"
10360 test "$withval" = no || with_gnu_ld=yes
10361 else
10362 with_gnu_ld=no
10364 # Prepare PATH_SEPARATOR.
10365 # The user is always right.
10366 if test "${PATH_SEPARATOR+set}" != set; then
10367 echo "#! /bin/sh" >conf$$.sh
10368 echo "exit 0" >>conf$$.sh
10369 chmod +x conf$$.sh
10370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10371 PATH_SEPARATOR=';'
10372 else
10373 PATH_SEPARATOR=:
10375 rm -f conf$$.sh
10377 ac_prog=ld
10378 if test "$GCC" = yes; then
10379 # Check if gcc -print-prog-name=ld gives a path.
10380 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10381 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10382 case $host in
10383 *-*-mingw*)
10384 # gcc leaves a trailing carriage return which upsets mingw
10385 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10387 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10388 esac
10389 case $ac_prog in
10390 # Accept absolute paths.
10391 [\\/]* | [A-Za-z]:[\\/]*)
10392 re_direlt='/[^/][^/]*/\.\./'
10393 # Canonicalize the path of ld
10394 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10395 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10396 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10397 done
10398 test -z "$LD" && LD="$ac_prog"
10401 # If it fails, then pretend we aren't using GCC.
10402 ac_prog=ld
10405 # If it is relative, then search for the first ld in PATH.
10406 with_gnu_ld=unknown
10408 esac
10409 elif test "$with_gnu_ld" = yes; then
10410 echo "$as_me:$LINENO: checking for GNU ld" >&5
10411 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10412 else
10413 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10414 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10416 if test "${acl_cv_path_LD+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419 if test -z "$LD"; then
10420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10421 for ac_dir in $PATH; do
10422 test -z "$ac_dir" && ac_dir=.
10423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10424 acl_cv_path_LD="$ac_dir/$ac_prog"
10425 # Check to see if the program is GNU ld. I'd rather use --version,
10426 # but apparently some GNU ld's only accept -v.
10427 # Break only if it was the GNU/non-GNU ld that we prefer.
10428 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10429 test "$with_gnu_ld" != no && break
10430 else
10431 test "$with_gnu_ld" != yes && break
10434 done
10435 IFS="$ac_save_ifs"
10436 else
10437 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10441 LD="$acl_cv_path_LD"
10442 if test -n "$LD"; then
10443 echo "$as_me:$LINENO: result: $LD" >&5
10444 echo "${ECHO_T}$LD" >&6
10445 else
10446 echo "$as_me:$LINENO: result: no" >&5
10447 echo "${ECHO_T}no" >&6
10449 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10450 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10451 { (exit 1); exit 1; }; }
10452 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10453 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10454 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10458 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10459 acl_cv_prog_gnu_ld=yes
10460 else
10461 acl_cv_prog_gnu_ld=no
10464 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10465 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10466 with_gnu_ld=$acl_cv_prog_gnu_ld
10470 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10471 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10472 if test "${acl_cv_rpath+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10476 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10477 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10478 . ./conftest.sh
10479 rm -f ./conftest.sh
10480 acl_cv_rpath=done
10483 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10484 echo "${ECHO_T}$acl_cv_rpath" >&6
10485 wl="$acl_cv_wl"
10486 libext="$acl_cv_libext"
10487 shlibext="$acl_cv_shlibext"
10488 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10489 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10490 hardcode_direct="$acl_cv_hardcode_direct"
10491 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10492 # Check whether --enable-rpath or --disable-rpath was given.
10493 if test "${enable_rpath+set}" = set; then
10494 enableval="$enable_rpath"
10496 else
10497 enable_rpath=yes
10506 use_additional=yes
10508 acl_save_prefix="$prefix"
10509 prefix="$acl_final_prefix"
10510 acl_save_exec_prefix="$exec_prefix"
10511 exec_prefix="$acl_final_exec_prefix"
10513 eval additional_includedir=\"$includedir\"
10514 eval additional_libdir=\"$libdir\"
10516 exec_prefix="$acl_save_exec_prefix"
10517 prefix="$acl_save_prefix"
10520 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10521 if test "${with_libiconv_prefix+set}" = set; then
10522 withval="$with_libiconv_prefix"
10524 if test "X$withval" = "Xno"; then
10525 use_additional=no
10526 else
10527 if test "X$withval" = "X"; then
10529 acl_save_prefix="$prefix"
10530 prefix="$acl_final_prefix"
10531 acl_save_exec_prefix="$exec_prefix"
10532 exec_prefix="$acl_final_exec_prefix"
10534 eval additional_includedir=\"$includedir\"
10535 eval additional_libdir=\"$libdir\"
10537 exec_prefix="$acl_save_exec_prefix"
10538 prefix="$acl_save_prefix"
10540 else
10541 additional_includedir="$withval/include"
10542 additional_libdir="$withval/lib"
10547 LIBICONV=
10548 LTLIBICONV=
10549 INCICONV=
10550 rpathdirs=
10551 ltrpathdirs=
10552 names_already_handled=
10553 names_next_round='iconv '
10554 while test -n "$names_next_round"; do
10555 names_this_round="$names_next_round"
10556 names_next_round=
10557 for name in $names_this_round; do
10558 already_handled=
10559 for n in $names_already_handled; do
10560 if test "$n" = "$name"; then
10561 already_handled=yes
10562 break
10564 done
10565 if test -z "$already_handled"; then
10566 names_already_handled="$names_already_handled $name"
10567 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10568 eval value=\"\$HAVE_LIB$uppername\"
10569 if test -n "$value"; then
10570 if test "$value" = yes; then
10571 eval value=\"\$LIB$uppername\"
10572 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10573 eval value=\"\$LTLIB$uppername\"
10574 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10575 else
10578 else
10579 found_dir=
10580 found_la=
10581 found_so=
10582 found_a=
10583 if test $use_additional = yes; then
10584 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10585 found_dir="$additional_libdir"
10586 found_so="$additional_libdir/lib$name.$shlibext"
10587 if test -f "$additional_libdir/lib$name.la"; then
10588 found_la="$additional_libdir/lib$name.la"
10590 else
10591 if test -f "$additional_libdir/lib$name.$libext"; then
10592 found_dir="$additional_libdir"
10593 found_a="$additional_libdir/lib$name.$libext"
10594 if test -f "$additional_libdir/lib$name.la"; then
10595 found_la="$additional_libdir/lib$name.la"
10600 if test "X$found_dir" = "X"; then
10601 for x in $LDFLAGS $LTLIBICONV; do
10603 acl_save_prefix="$prefix"
10604 prefix="$acl_final_prefix"
10605 acl_save_exec_prefix="$exec_prefix"
10606 exec_prefix="$acl_final_exec_prefix"
10607 eval x=\"$x\"
10608 exec_prefix="$acl_save_exec_prefix"
10609 prefix="$acl_save_prefix"
10611 case "$x" in
10612 -L*)
10613 dir=`echo "X$x" | sed -e 's/^X-L//'`
10614 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10615 found_dir="$dir"
10616 found_so="$dir/lib$name.$shlibext"
10617 if test -f "$dir/lib$name.la"; then
10618 found_la="$dir/lib$name.la"
10620 else
10621 if test -f "$dir/lib$name.$libext"; then
10622 found_dir="$dir"
10623 found_a="$dir/lib$name.$libext"
10624 if test -f "$dir/lib$name.la"; then
10625 found_la="$dir/lib$name.la"
10630 esac
10631 if test "X$found_dir" != "X"; then
10632 break
10634 done
10636 if test "X$found_dir" != "X"; then
10637 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10638 if test "X$found_so" != "X"; then
10639 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10640 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10641 else
10642 haveit=
10643 for x in $ltrpathdirs; do
10644 if test "X$x" = "X$found_dir"; then
10645 haveit=yes
10646 break
10648 done
10649 if test -z "$haveit"; then
10650 ltrpathdirs="$ltrpathdirs $found_dir"
10652 if test "$hardcode_direct" = yes; then
10653 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10654 else
10655 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10656 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10657 haveit=
10658 for x in $rpathdirs; do
10659 if test "X$x" = "X$found_dir"; then
10660 haveit=yes
10661 break
10663 done
10664 if test -z "$haveit"; then
10665 rpathdirs="$rpathdirs $found_dir"
10667 else
10668 haveit=
10669 for x in $LDFLAGS $LIBICONV; do
10671 acl_save_prefix="$prefix"
10672 prefix="$acl_final_prefix"
10673 acl_save_exec_prefix="$exec_prefix"
10674 exec_prefix="$acl_final_exec_prefix"
10675 eval x=\"$x\"
10676 exec_prefix="$acl_save_exec_prefix"
10677 prefix="$acl_save_prefix"
10679 if test "X$x" = "X-L$found_dir"; then
10680 haveit=yes
10681 break
10683 done
10684 if test -z "$haveit"; then
10685 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10687 if test "$hardcode_minus_L" != no; then
10688 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10689 else
10690 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10695 else
10696 if test "X$found_a" != "X"; then
10697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10698 else
10699 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10702 additional_includedir=
10703 case "$found_dir" in
10704 */lib | */lib/)
10705 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10706 additional_includedir="$basedir/include"
10708 esac
10709 if test "X$additional_includedir" != "X"; then
10710 if test "X$additional_includedir" != "X/usr/include"; then
10711 haveit=
10712 if test "X$additional_includedir" = "X/usr/local/include"; then
10713 if test -n "$GCC"; then
10714 case $host_os in
10715 linux*) haveit=yes;;
10716 esac
10719 if test -z "$haveit"; then
10720 for x in $CPPFLAGS $INCICONV; do
10722 acl_save_prefix="$prefix"
10723 prefix="$acl_final_prefix"
10724 acl_save_exec_prefix="$exec_prefix"
10725 exec_prefix="$acl_final_exec_prefix"
10726 eval x=\"$x\"
10727 exec_prefix="$acl_save_exec_prefix"
10728 prefix="$acl_save_prefix"
10730 if test "X$x" = "X-I$additional_includedir"; then
10731 haveit=yes
10732 break
10734 done
10735 if test -z "$haveit"; then
10736 if test -d "$additional_includedir"; then
10737 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10743 if test -n "$found_la"; then
10744 save_libdir="$libdir"
10745 case "$found_la" in
10746 */* | *\\*) . "$found_la" ;;
10747 *) . "./$found_la" ;;
10748 esac
10749 libdir="$save_libdir"
10750 for dep in $dependency_libs; do
10751 case "$dep" in
10752 -L*)
10753 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10754 if test "X$additional_libdir" != "X/usr/lib"; then
10755 haveit=
10756 if test "X$additional_libdir" = "X/usr/local/lib"; then
10757 if test -n "$GCC"; then
10758 case $host_os in
10759 linux*) haveit=yes;;
10760 esac
10763 if test -z "$haveit"; then
10764 haveit=
10765 for x in $LDFLAGS $LIBICONV; do
10767 acl_save_prefix="$prefix"
10768 prefix="$acl_final_prefix"
10769 acl_save_exec_prefix="$exec_prefix"
10770 exec_prefix="$acl_final_exec_prefix"
10771 eval x=\"$x\"
10772 exec_prefix="$acl_save_exec_prefix"
10773 prefix="$acl_save_prefix"
10775 if test "X$x" = "X-L$additional_libdir"; then
10776 haveit=yes
10777 break
10779 done
10780 if test -z "$haveit"; then
10781 if test -d "$additional_libdir"; then
10782 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10785 haveit=
10786 for x in $LDFLAGS $LTLIBICONV; do
10788 acl_save_prefix="$prefix"
10789 prefix="$acl_final_prefix"
10790 acl_save_exec_prefix="$exec_prefix"
10791 exec_prefix="$acl_final_exec_prefix"
10792 eval x=\"$x\"
10793 exec_prefix="$acl_save_exec_prefix"
10794 prefix="$acl_save_prefix"
10796 if test "X$x" = "X-L$additional_libdir"; then
10797 haveit=yes
10798 break
10800 done
10801 if test -z "$haveit"; then
10802 if test -d "$additional_libdir"; then
10803 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10809 -R*)
10810 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10811 if test "$enable_rpath" != no; then
10812 haveit=
10813 for x in $rpathdirs; do
10814 if test "X$x" = "X$dir"; then
10815 haveit=yes
10816 break
10818 done
10819 if test -z "$haveit"; then
10820 rpathdirs="$rpathdirs $dir"
10822 haveit=
10823 for x in $ltrpathdirs; do
10824 if test "X$x" = "X$dir"; then
10825 haveit=yes
10826 break
10828 done
10829 if test -z "$haveit"; then
10830 ltrpathdirs="$ltrpathdirs $dir"
10834 -l*)
10835 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10837 *.la)
10838 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10841 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10842 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10844 esac
10845 done
10847 else
10848 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10849 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10853 done
10854 done
10855 if test "X$rpathdirs" != "X"; then
10856 if test -n "$hardcode_libdir_separator"; then
10857 alldirs=
10858 for found_dir in $rpathdirs; do
10859 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10860 done
10861 acl_save_libdir="$libdir"
10862 libdir="$alldirs"
10863 eval flag=\"$hardcode_libdir_flag_spec\"
10864 libdir="$acl_save_libdir"
10865 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10866 else
10867 for found_dir in $rpathdirs; do
10868 acl_save_libdir="$libdir"
10869 libdir="$found_dir"
10870 eval flag=\"$hardcode_libdir_flag_spec\"
10871 libdir="$acl_save_libdir"
10872 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10873 done
10876 if test "X$ltrpathdirs" != "X"; then
10877 for found_dir in $ltrpathdirs; do
10878 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10879 done
10888 am_save_CPPFLAGS="$CPPFLAGS"
10890 for element in $INCICONV; do
10891 haveit=
10892 for x in $CPPFLAGS; do
10894 acl_save_prefix="$prefix"
10895 prefix="$acl_final_prefix"
10896 acl_save_exec_prefix="$exec_prefix"
10897 exec_prefix="$acl_final_exec_prefix"
10898 eval x=\"$x\"
10899 exec_prefix="$acl_save_exec_prefix"
10900 prefix="$acl_save_prefix"
10902 if test "X$x" = "X$element"; then
10903 haveit=yes
10904 break
10906 done
10907 if test -z "$haveit"; then
10908 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10910 done
10913 echo "$as_me:$LINENO: checking for iconv" >&5
10914 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10915 if test "${am_cv_func_iconv+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10919 am_cv_func_iconv="no, consider installing GNU libiconv"
10920 am_cv_lib_iconv=no
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 #include <stdlib.h>
10928 #include <iconv.h>
10930 main ()
10932 iconv_t cd = iconv_open("","");
10933 iconv(cd,NULL,NULL,NULL,NULL);
10934 iconv_close(cd);
10936 return 0;
10938 _ACEOF
10939 rm -f conftest.$ac_objext conftest$ac_exeext
10940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10941 (eval $ac_link) 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest$ac_exeext'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 am_cv_func_iconv=yes
10961 else
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10966 rm -f conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10968 if test "$am_cv_func_iconv" != yes; then
10969 am_save_LIBS="$LIBS"
10970 LIBS="$LIBS $LIBICONV"
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h. */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 #include <stdlib.h>
10978 #include <iconv.h>
10980 main ()
10982 iconv_t cd = iconv_open("","");
10983 iconv(cd,NULL,NULL,NULL,NULL);
10984 iconv_close(cd);
10986 return 0;
10988 _ACEOF
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; } &&
11004 { ac_try='test -s conftest$ac_exeext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 am_cv_lib_iconv=yes
11011 am_cv_func_iconv=yes
11012 else
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11017 rm -f conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS="$am_save_LIBS"
11023 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11024 echo "${ECHO_T}$am_cv_func_iconv" >&6
11025 if test "$am_cv_func_iconv" = yes; then
11027 cat >>confdefs.h <<\_ACEOF
11028 #define HAVE_ICONV 1
11029 _ACEOF
11032 if test "$am_cv_lib_iconv" = yes; then
11033 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11034 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11035 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11036 echo "${ECHO_T}$LIBICONV" >&6
11037 else
11038 CPPFLAGS="$am_save_CPPFLAGS"
11039 LIBICONV=
11040 LTLIBICONV=
11045 if test "$am_cv_func_iconv" = yes; then
11046 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11047 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11048 if test "${am_cv_proto_iconv+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h. */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11059 #include <stdlib.h>
11060 #include <iconv.h>
11061 extern
11062 #ifdef __cplusplus
11064 #endif
11065 #if defined(__STDC__) || defined(__cplusplus)
11066 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11067 #else
11068 size_t iconv();
11069 #endif
11072 main ()
11076 return 0;
11078 _ACEOF
11079 rm -f conftest.$ac_objext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11081 (eval $ac_compile) 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try='test -s conftest.$ac_objext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 am_cv_proto_iconv_arg1=""
11101 else
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 am_cv_proto_iconv_arg1="const"
11107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11108 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);"
11111 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11112 echo "$as_me:$LINENO: result: ${ac_t:-
11113 }$am_cv_proto_iconv" >&5
11114 echo "${ECHO_T}${ac_t:-
11115 }$am_cv_proto_iconv" >&6
11117 cat >>confdefs.h <<_ACEOF
11118 #define ICONV_CONST $am_cv_proto_iconv_arg1
11119 _ACEOF
11123 # Until we have in-tree GNU iconv:
11124 LIBICONV_DEP=
11128 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11129 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11130 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 #include <locale.h>
11141 main ()
11143 return LC_MESSAGES
11145 return 0;
11147 _ACEOF
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150 (eval $ac_link) 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 am_cv_val_LC_MESSAGES=yes
11170 else
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 am_cv_val_LC_MESSAGES=no
11176 rm -f conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11179 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11180 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11181 if test $am_cv_val_LC_MESSAGES = yes; then
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_LC_MESSAGES 1
11185 _ACEOF
11191 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11192 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11193 if test "${am_cv_langinfo_codeset+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h. */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #include <langinfo.h>
11204 main ()
11206 char* cs = nl_langinfo(CODESET);
11208 return 0;
11210 _ACEOF
11211 rm -f conftest.$ac_objext conftest$ac_exeext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213 (eval $ac_link) 2>conftest.er1
11214 ac_status=$?
11215 grep -v '^ *+' conftest.er1 >conftest.err
11216 rm -f conftest.er1
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; } &&
11226 { ac_try='test -s conftest$ac_exeext'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }; then
11232 am_cv_langinfo_codeset=yes
11233 else
11234 echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11237 am_cv_langinfo_codeset=no
11239 rm -f conftest.err conftest.$ac_objext \
11240 conftest$ac_exeext conftest.$ac_ext
11243 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11244 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11245 if test $am_cv_langinfo_codeset = yes; then
11247 cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_LANGINFO_CODESET 1
11249 _ACEOF
11254 # We will need to find libiberty.h and ansidecl.h
11255 saved_CFLAGS="$CFLAGS"
11256 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11296 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11297 strsignal strstr strverscmp \
11298 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11299 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
11301 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11302 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11303 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11304 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307 cat >conftest.$ac_ext <<_ACEOF
11308 /* confdefs.h. */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 #undef $ac_tr_decl
11314 #define $ac_tr_decl 1
11316 #include "ansidecl.h"
11317 #include "system.h"
11320 main ()
11322 #ifndef $ac_func
11323 char *(*pfn) = (char *(*)) $ac_func ;
11324 #endif
11326 return 0;
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331 (eval $ac_compile) 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try='test -s conftest.$ac_objext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 eval "gcc_cv_have_decl_$ac_func=yes"
11351 else
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11355 eval "gcc_cv_have_decl_$ac_func=no"
11357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11361 echo "$as_me:$LINENO: result: yes" >&5
11362 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11363 #define $ac_tr_decl 1
11364 _ACEOF
11366 else
11367 echo "$as_me:$LINENO: result: no" >&5
11368 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11369 #define $ac_tr_decl 0
11370 _ACEOF
11374 done
11380 for ac_func in getrlimit setrlimit getrusage
11382 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11383 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11384 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11385 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 #undef $ac_tr_decl
11395 #define $ac_tr_decl 1
11397 #include "ansidecl.h"
11398 #include "system.h"
11399 #ifdef HAVE_SYS_RESOURCE_H
11400 #include <sys/resource.h>
11401 #endif
11405 main ()
11407 #ifndef $ac_func
11408 char *(*pfn) = (char *(*)) $ac_func ;
11409 #endif
11411 return 0;
11413 _ACEOF
11414 rm -f conftest.$ac_objext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11416 (eval $ac_compile) 2>conftest.er1
11417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; } &&
11429 { ac_try='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 eval "gcc_cv_have_decl_$ac_func=yes"
11436 else
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 eval "gcc_cv_have_decl_$ac_func=no"
11442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11445 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11446 echo "$as_me:$LINENO: result: yes" >&5
11447 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11448 #define $ac_tr_decl 1
11449 _ACEOF
11451 else
11452 echo "$as_me:$LINENO: result: no" >&5
11453 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11454 #define $ac_tr_decl 0
11455 _ACEOF
11459 done
11462 cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h. */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11469 #include "ansidecl.h"
11470 #include "system.h"
11471 #ifdef HAVE_SYS_RESOURCE_H
11472 #include <sys/resource.h>
11473 #endif
11476 main ()
11478 rlim_t l = 0;
11480 return 0;
11482 _ACEOF
11483 rm -f conftest.$ac_objext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485 (eval $ac_compile) 2>conftest.er1
11486 ac_status=$?
11487 grep -v '^ *+' conftest.er1 >conftest.err
11488 rm -f conftest.er1
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest.$ac_objext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11505 else
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11510 cat >>confdefs.h <<\_ACEOF
11511 #define rlim_t long
11512 _ACEOF
11515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11517 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11518 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11519 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11520 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11522 for ac_func in ldgetname
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_LDFCN_H
11542 #undef FREAD
11543 #undef FWRITE
11544 #include <ldfcn.h>
11545 #endif
11549 main ()
11551 #ifndef $ac_func
11552 char *(*pfn) = (char *(*)) $ac_func ;
11553 #endif
11555 return 0;
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest.$ac_objext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 eval "gcc_cv_have_decl_$ac_func=yes"
11580 else
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 eval "gcc_cv_have_decl_$ac_func=no"
11586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11589 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11590 echo "$as_me:$LINENO: result: yes" >&5
11591 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11592 #define $ac_tr_decl 1
11593 _ACEOF
11595 else
11596 echo "$as_me:$LINENO: result: no" >&5
11597 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11598 #define $ac_tr_decl 0
11599 _ACEOF
11603 done
11607 for ac_func in times
11609 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11610 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11611 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11612 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615 cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h. */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621 #undef $ac_tr_decl
11622 #define $ac_tr_decl 1
11624 #include "ansidecl.h"
11625 #include "system.h"
11626 #ifdef HAVE_SYS_TIMES_H
11627 #include <sys/times.h>
11628 #endif
11632 main ()
11634 #ifndef $ac_func
11635 char *(*pfn) = (char *(*)) $ac_func ;
11636 #endif
11638 return 0;
11640 _ACEOF
11641 rm -f conftest.$ac_objext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643 (eval $ac_compile) 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } &&
11656 { ac_try='test -s conftest.$ac_objext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 eval "gcc_cv_have_decl_$ac_func=yes"
11663 else
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 eval "gcc_cv_have_decl_$ac_func=no"
11669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11672 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11673 echo "$as_me:$LINENO: result: yes" >&5
11674 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11675 #define $ac_tr_decl 1
11676 _ACEOF
11678 else
11679 echo "$as_me:$LINENO: result: no" >&5
11680 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11681 #define $ac_tr_decl 0
11682 _ACEOF
11686 done
11689 # More time-related stuff.
11690 echo "$as_me:$LINENO: checking for struct tms" >&5
11691 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11692 if test "${ac_cv_struct_tms+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11696 cat >conftest.$ac_ext <<_ACEOF
11697 /* confdefs.h. */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11703 #include "ansidecl.h"
11704 #include "system.h"
11705 #ifdef HAVE_SYS_TIMES_H
11706 #include <sys/times.h>
11707 #endif
11710 main ()
11712 struct tms tms;
11714 return 0;
11716 _ACEOF
11717 rm -f conftest.$ac_objext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719 (eval $ac_compile) 2>conftest.er1
11720 ac_status=$?
11721 grep -v '^ *+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try='test -s conftest.$ac_objext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_cv_struct_tms=yes
11739 else
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 ac_cv_struct_tms=no
11745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11747 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11748 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11749 if test $ac_cv_struct_tms = yes; then
11751 cat >>confdefs.h <<\_ACEOF
11752 #define HAVE_STRUCT_TMS 1
11753 _ACEOF
11757 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11758 # revisit after autoconf 2.50.
11759 echo "$as_me:$LINENO: checking for clock_t" >&5
11760 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11761 if test "${gcc_cv_type_clock_t+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11772 #include "ansidecl.h"
11773 #include "system.h"
11776 main ()
11778 clock_t x;
11780 return 0;
11782 _ACEOF
11783 rm -f conftest.$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785 (eval $ac_compile) 2>conftest.er1
11786 ac_status=$?
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; } &&
11798 { ac_try='test -s conftest.$ac_objext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 gcc_cv_type_clock_t=yes
11805 else
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 gcc_cv_type_clock_t=no
11811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11813 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11814 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11815 if test $gcc_cv_type_clock_t = yes; then
11817 cat >>confdefs.h <<\_ACEOF
11818 #define HAVE_CLOCK_T 1
11819 _ACEOF
11823 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11824 CFLAGS="$saved_CFLAGS"
11826 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11827 if test "${enable_initfini_array+set}" = set; then
11828 enableval="$enable_initfini_array"
11830 else
11832 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11833 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11834 if test "${gcc_cv_initfini_array+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837 if test "$cross_compiling" = yes; then
11838 gcc_cv_initfini_array=no
11839 else
11840 cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h. */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11847 static int x = -1;
11848 int main (void) { return x; }
11849 int foo (void) { x = 0; }
11850 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11851 _ACEOF
11852 rm -f conftest$ac_exeext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11854 (eval $ac_link) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11863 gcc_cv_initfini_array=yes
11864 else
11865 echo "$as_me: program exited with status $ac_status" >&5
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11869 ( exit $ac_status )
11870 gcc_cv_initfini_array=no
11872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11875 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11876 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11877 enable_initfini_array=$gcc_cv_initfini_array
11880 if test $enable_initfini_array = yes; then
11882 cat >>confdefs.h <<\_ACEOF
11883 #define HAVE_INITFINI_ARRAY 1
11884 _ACEOF
11888 # mkdir takes a single argument on some systems.
11889 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11890 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11891 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894 cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h. */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11901 #include <sys/types.h>
11902 #ifdef HAVE_SYS_STAT_H
11903 # include <sys/stat.h>
11904 #endif
11905 #ifdef HAVE_UNISTD_H
11906 # include <unistd.h>
11907 #endif
11908 #ifdef HAVE_DIRECT_H
11909 # include <direct.h>
11910 #endif
11912 main ()
11914 mkdir ("foo", 0);
11916 return 0;
11918 _ACEOF
11919 rm -f conftest.$ac_objext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11921 (eval $ac_compile) 2>conftest.er1
11922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest.$ac_objext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 gcc_cv_mkdir_takes_one_arg=no
11941 else
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 gcc_cv_mkdir_takes_one_arg=yes
11947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11949 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11950 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11951 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11953 cat >>confdefs.h <<\_ACEOF
11954 #define MKDIR_TAKES_ONE_ARG 1
11955 _ACEOF
11960 # File extensions
11961 manext='.1'
11962 objext='.o'
11966 # With Setjmp/Longjmp based exception handling.
11967 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11968 if test "${enable_sjlj_exceptions+set}" = set; then
11969 enableval="$enable_sjlj_exceptions"
11970 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11972 cat >>confdefs.h <<_ACEOF
11973 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11974 _ACEOF
11978 # For platforms with the unwind ABI which includes an unwind library,
11979 # libunwind, we can choose to use the system libunwind.
11981 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11982 if test "${with_system_libunwind+set}" = set; then
11983 withval="$with_system_libunwind"
11987 # --------------------------------------------------------
11988 # Build, host, and target specific configuration fragments
11989 # --------------------------------------------------------
11991 # Collect build-machine-specific information.
11992 . ${srcdir}/config.build
11994 # Collect host-machine-specific information.
11995 . ${srcdir}/config.host
11997 target_gtfiles=
11999 # Collect target-machine-specific information.
12000 . ${srcdir}/config.gcc
12002 extra_objs="${host_extra_objs} ${extra_objs}"
12003 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12005 # Default the target-machine variables that were not explicitly set.
12006 if test x"$tm_file" = x
12007 then tm_file=$cpu_type/$cpu_type.h; fi
12009 if test x"$extra_headers" = x
12010 then extra_headers=; fi
12012 if test x$md_file = x
12013 then md_file=$cpu_type/$cpu_type.md; fi
12015 if test x$out_file = x
12016 then out_file=$cpu_type/$cpu_type.c; fi
12018 if test x"$tmake_file" = x
12019 then tmake_file=$cpu_type/t-$cpu_type
12022 if test x"$dwarf2" = xyes
12023 then tm_file="$tm_file tm-dwarf2.h"
12026 # Say what files are being used for the output code and MD file.
12027 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12028 echo "Using \`$srcdir/config/$md_file' as machine description file."
12030 # If any of the xm_file variables contain nonexistent files, warn
12031 # about them and drop them.
12034 for x in $build_xm_file; do
12035 if test -f $srcdir/config/$x
12036 then bx="$bx $x"
12037 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12038 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12040 done
12041 build_xm_file="$bx"
12044 for x in $host_xm_file; do
12045 if test -f $srcdir/config/$x
12046 then hx="$hx $x"
12047 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12048 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12050 done
12051 host_xm_file="$hx"
12054 for x in $xm_file; do
12055 if test -f $srcdir/config/$x
12056 then tx="$tx $x"
12057 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12058 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12060 done
12061 xm_file="$tx"
12063 count=a
12064 for f in $tm_file; do
12065 count=${count}x
12066 done
12067 if test $count = ax; then
12068 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12069 else
12070 echo "Using the following target machine macro files:"
12071 for f in $tm_file; do
12072 echo " $srcdir/config/$f"
12073 done
12076 if test x$need_64bit_hwint = xyes; then
12078 cat >>confdefs.h <<\_ACEOF
12079 #define NEED_64BIT_HOST_WIDE_INT 1
12080 _ACEOF
12084 if test x$use_long_long_for_widest_fast_int = xyes; then
12086 cat >>confdefs.h <<\_ACEOF
12087 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12088 _ACEOF
12092 count=a
12093 for f in $host_xm_file; do
12094 count=${count}x
12095 done
12096 if test $count = a; then
12098 elif test $count = ax; then
12099 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12100 else
12101 echo "Using the following host machine macro files:"
12102 for f in $host_xm_file; do
12103 echo " $srcdir/config/$f"
12104 done
12106 echo "Using ${out_host_hook_obj} for host machine hooks."
12108 if test "$host_xm_file" != "$build_xm_file"; then
12109 count=a
12110 for f in $build_xm_file; do
12111 count=${count}x
12112 done
12113 if test $count = a; then
12115 elif test $count = ax; then
12116 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12117 else
12118 echo "Using the following build machine macro files:"
12119 for f in $build_xm_file; do
12120 echo " $srcdir/config/$f"
12121 done
12125 # ---------
12126 # Threading
12127 # ---------
12129 # Check if a valid thread package
12130 case ${enable_threads} in
12131 "" | no)
12132 # No threads
12133 target_thread_file='single'
12135 yes)
12136 # default
12137 target_thread_file='single'
12139 aix | dce | gnat | irix | posix | posix95 | rtems | \
12140 single | solaris | vxworks | win32 )
12141 target_thread_file=${enable_threads}
12144 echo "${enable_threads} is an unknown thread package" 1>&2
12145 exit 1
12147 esac
12149 if test x${thread_file} = x; then
12150 # No thread file set by target-specific clauses in config.gcc,
12151 # so use file chosen by default logic above
12152 thread_file=${target_thread_file}
12155 # Make gthr-default.h if we have a thread file.
12156 gthread_flags=
12157 if test $thread_file != single; then
12158 rm -f gthr-default.h
12159 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12160 gthread_flags=-DHAVE_GTHR_DEFAULT
12164 # --------
12165 # UNSORTED
12166 # --------
12168 use_cxa_atexit=no
12169 if test x$enable___cxa_atexit = xyes || \
12170 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12171 if test x$host = x$target; then
12172 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12173 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12174 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12185 #define __cxa_atexit innocuous___cxa_atexit
12187 /* System header to define __stub macros and hopefully few prototypes,
12188 which can conflict with char __cxa_atexit (); below.
12189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190 <limits.h> exists even on freestanding compilers. */
12192 #ifdef __STDC__
12193 # include <limits.h>
12194 #else
12195 # include <assert.h>
12196 #endif
12198 #undef __cxa_atexit
12200 /* Override any gcc2 internal prototype to avoid an error. */
12201 #ifdef __cplusplus
12202 extern "C"
12204 #endif
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207 char __cxa_atexit ();
12208 /* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
12211 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12212 choke me
12213 #else
12214 char (*f) () = __cxa_atexit;
12215 #endif
12216 #ifdef __cplusplus
12218 #endif
12221 main ()
12223 return f != __cxa_atexit;
12225 return 0;
12227 _ACEOF
12228 rm -f conftest.$ac_objext conftest$ac_exeext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230 (eval $ac_link) 2>conftest.er1
12231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
12237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12240 ac_status=$?
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; } &&
12243 { ac_try='test -s conftest$ac_exeext'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 ac_cv_func___cxa_atexit=yes
12250 else
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12254 ac_cv_func___cxa_atexit=no
12256 rm -f conftest.err conftest.$ac_objext \
12257 conftest$ac_exeext conftest.$ac_ext
12259 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12260 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12261 if test $ac_cv_func___cxa_atexit = yes; then
12262 use_cxa_atexit=yes
12263 else
12264 echo "__cxa_atexit can't be enabled on this target"
12267 else
12268 # We can't check for __cxa_atexit when building a cross, so assume
12269 # it is available
12270 use_cxa_atexit=yes
12272 if test x$use_cxa_atexit = xyes; then
12274 cat >>confdefs.h <<\_ACEOF
12275 #define DEFAULT_USE_CXA_ATEXIT 1
12276 _ACEOF
12281 # Look for a file containing extra machine modes.
12282 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12283 extra_modes_file='$(srcdir)'/config/${extra_modes}
12286 cat >>confdefs.h <<_ACEOF
12287 #define EXTRA_MODES_FILE "config/$extra_modes"
12288 _ACEOF
12292 # Convert extra_options into a form suitable for Makefile use.
12293 extra_opt_files=
12294 for f in $extra_options; do
12295 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12296 done
12299 # auto-host.h is the file containing items generated by autoconf and is
12300 # the first file included by config.h.
12301 # If host=build, it is correct to have bconfig include auto-host.h
12302 # as well. If host!=build, we are in error and need to do more
12303 # work to find out the build config parameters.
12304 if test x$host = x$build
12305 then
12306 build_auto=auto-host.h
12307 else
12308 # We create a subdir, then run autoconf in the subdir.
12309 # To prevent recursion we set host and build for the new
12310 # invocation of configure to the build for this invocation
12311 # of configure.
12312 tempdir=build.$$
12313 rm -rf $tempdir
12314 mkdir $tempdir
12315 cd $tempdir
12316 case ${srcdir} in
12317 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12318 *) realsrcdir=../${srcdir};;
12319 esac
12320 saved_CFLAGS="${CFLAGS}"
12321 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12322 ${realsrcdir}/configure \
12323 --enable-languages=${enable_languages-all} \
12324 --target=$target_alias --host=$build_alias --build=$build_alias
12325 CFLAGS="${saved_CFLAGS}"
12327 # We just finished tests for the build machine, so rename
12328 # the file auto-build.h in the gcc directory.
12329 mv auto-host.h ../auto-build.h
12330 cd ..
12331 rm -rf $tempdir
12332 build_auto=auto-build.h
12336 tm_file="${tm_file} defaults.h"
12337 tm_p_file="${tm_p_file} tm-preds.h"
12338 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12339 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12340 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12341 # put this back in temporarily.
12342 xm_file="auto-host.h ansidecl.h ${xm_file}"
12344 # --------
12345 # UNSORTED
12346 # --------
12348 # Compile in configure arguments.
12349 if test -f configargs.h ; then
12350 # Being re-configured.
12351 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12352 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12353 else
12354 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12357 # Double all backslashes and backslash all quotes to turn
12358 # gcc_config_arguments into a C string.
12359 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12360 $gcc_config_arguments
12362 gcc_config_arguments_str=`cat conftest.out`
12363 rm -f conftest.out
12365 cat > configargs.h <<EOF
12366 /* Generated automatically. */
12367 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12368 static const char thread_model[] = "$thread_file";
12370 static const struct {
12371 const char *name, *value;
12372 } configure_default_options[] = $configure_default_options;
12375 # Internationalization
12376 # If we haven't got the data from the intl directory,
12377 # assume NLS is disabled.
12378 USE_NLS=no
12379 LIBINTL=
12380 LIBINTL_DEP=
12381 INCINTL=
12382 XGETTEXT=
12383 GMSGFMT=
12384 POSUB=
12385 if test -f ../intl/config.intl; then
12386 . ../intl/config.intl
12388 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12389 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12390 if test x"$USE_NLS" != xyes; then
12391 echo "$as_me:$LINENO: result: no" >&5
12392 echo "${ECHO_T}no" >&6
12393 else
12394 echo "$as_me:$LINENO: result: yes" >&5
12395 echo "${ECHO_T}yes" >&6
12397 cat >>confdefs.h <<\_ACEOF
12398 #define ENABLE_NLS 1
12399 _ACEOF
12402 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12403 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12404 # Look for .po and .gmo files in the source directory.
12405 CATALOGS=
12406 XLINGUAS=
12407 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12408 # If there aren't any .gmo files the shell will give us the
12409 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12410 # weeded out.
12411 case "$cat" in *\**)
12412 continue;;
12413 esac
12414 # The quadruple backslash is collapsed to a double backslash
12415 # by the backticks, then collapsed again by the double quotes,
12416 # leaving us with one backslash in the sed expression (right
12417 # before the dot that mustn't act as a wildcard).
12418 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12419 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12420 # The user is allowed to set LINGUAS to a list of languages to
12421 # install catalogs for. If it's empty that means "all of them."
12422 if test "x$LINGUAS" = x; then
12423 CATALOGS="$CATALOGS $cat"
12424 XLINGUAS="$XLINGUAS $lang"
12425 else
12426 case "$LINGUAS" in *$lang*)
12427 CATALOGS="$CATALOGS $cat"
12428 XLINGUAS="$XLINGUAS $lang"
12430 esac
12432 done
12433 LINGUAS="$XLINGUAS"
12434 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12435 echo "${ECHO_T}$LINGUAS" >&6
12438 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12439 # -liconv on the link line twice.
12440 case "$LIBINTL" in *$LIBICONV*)
12441 LIBICONV= ;;
12442 esac
12444 # Check whether --enable-secureplt or --disable-secureplt was given.
12445 if test "${enable_secureplt+set}" = set; then
12446 enableval="$enable_secureplt"
12450 # Windows32 Registry support for specifying GCC installation paths.
12451 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12452 if test "${enable_win32_registry+set}" = set; then
12453 enableval="$enable_win32_registry"
12457 case $host_os in
12458 win32 | pe | cygwin* | mingw32* | uwin*)
12459 if test "x$enable_win32_registry" != xno; then
12460 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12461 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12462 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465 ac_func_search_save_LIBS=$LIBS
12466 ac_cv_search_RegOpenKeyExA=no
12467 cat >conftest.$ac_ext <<_ACEOF
12468 /* confdefs.h. */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12474 /* Override any gcc2 internal prototype to avoid an error. */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 /* We use char because int might match the return type of a gcc2
12479 builtin and then its argument prototype would still apply. */
12480 char RegOpenKeyExA ();
12482 main ()
12484 RegOpenKeyExA ();
12486 return 0;
12488 _ACEOF
12489 rm -f conftest.$ac_objext conftest$ac_exeext
12490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12491 (eval $ac_link) 2>conftest.er1
12492 ac_status=$?
12493 grep -v '^ *+' conftest.er1 >conftest.err
12494 rm -f conftest.er1
12495 cat conftest.err >&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } &&
12498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try='test -s conftest$ac_exeext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_search_RegOpenKeyExA="none required"
12511 else
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12516 rm -f conftest.err conftest.$ac_objext \
12517 conftest$ac_exeext conftest.$ac_ext
12518 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12519 for ac_lib in advapi32; do
12520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12528 /* Override any gcc2 internal prototype to avoid an error. */
12529 #ifdef __cplusplus
12530 extern "C"
12531 #endif
12532 /* We use char because int might match the return type of a gcc2
12533 builtin and then its argument prototype would still apply. */
12534 char RegOpenKeyExA ();
12536 main ()
12538 RegOpenKeyExA ();
12540 return 0;
12542 _ACEOF
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12545 (eval $ac_link) 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try='test -s conftest$ac_exeext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12565 break
12566 else
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12571 rm -f conftest.err conftest.$ac_objext \
12572 conftest$ac_exeext conftest.$ac_ext
12573 done
12575 LIBS=$ac_func_search_save_LIBS
12577 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12578 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12579 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12580 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12582 else
12583 enable_win32_registry=no
12588 if test "x$enable_win32_registry" != xno; then
12590 cat >>confdefs.h <<\_ACEOF
12591 #define ENABLE_WIN32_REGISTRY 1
12592 _ACEOF
12595 if test "x$enable_win32_registry" != xyes \
12596 && test "x$enable_win32_registry" != x; then
12598 cat >>confdefs.h <<_ACEOF
12599 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12600 _ACEOF
12605 esac
12607 # Get an absolute path to the GCC top-level source directory
12608 holddir=`${PWDCMD-pwd}`
12609 cd $srcdir
12610 topdir=`${PWDCMD-pwd}`
12611 cd $holddir
12613 # Conditionalize the makefile for this host machine.
12614 xmake_file=
12615 for f in ${host_xmake_file}
12617 if test -f ${srcdir}/config/$f
12618 then
12619 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12621 done
12623 # Conditionalize the makefile for this target machine.
12624 tmake_file_=
12625 for f in ${tmake_file}
12627 if test -f ${srcdir}/config/$f
12628 then
12629 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12631 done
12632 tmake_file="${tmake_file_}"
12634 # If the host doesn't support symlinks, modify CC in
12635 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12636 # Otherwise, we can use "CC=$(CC)".
12637 rm -f symtest.tem
12638 case "$LN_S" in
12639 *-s*)
12640 cc_set_by_configure="\$(CC)"
12641 quoted_cc_set_by_configure="\$(CC)"
12642 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12643 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12646 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12647 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12648 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12649 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12651 esac
12653 # This is a terrible hack which will go away some day.
12654 host_cc_for_libada=${CC}
12657 out_object_file=`basename $out_file .c`.o
12659 tm_file_list="options.h"
12660 tm_include_list="options.h"
12661 for f in $tm_file; do
12662 case $f in
12663 defaults.h )
12664 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12665 tm_include_list="${tm_include_list} $f"
12668 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12669 tm_include_list="${tm_include_list} config/$f"
12671 esac
12672 done
12674 tm_p_file_list=
12675 tm_p_include_list=
12676 for f in $tm_p_file; do
12677 case $f in
12678 tm-preds.h )
12679 tm_p_file_list="${tm_p_file_list} $f"
12680 tm_p_include_list="${tm_p_include_list} $f"
12683 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12684 tm_p_include_list="${tm_p_include_list} config/$f"
12685 esac
12686 done
12688 xm_file_list=
12689 xm_include_list=
12690 for f in $xm_file; do
12691 case $f in
12692 ansidecl.h )
12693 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12694 xm_include_list="${xm_include_list} $f"
12696 auto-host.h )
12697 xm_file_list="${xm_file_list} $f"
12698 xm_include_list="${xm_include_list} $f"
12701 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12702 xm_include_list="${xm_include_list} config/$f"
12704 esac
12705 done
12707 host_xm_file_list=
12708 host_xm_include_list=
12709 for f in $host_xm_file; do
12710 case $f in
12711 ansidecl.h )
12712 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12713 host_xm_include_list="${host_xm_include_list} $f"
12715 auto-host.h )
12716 host_xm_file_list="${host_xm_file_list} $f"
12717 host_xm_include_list="${host_xm_include_list} $f"
12720 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12721 host_xm_include_list="${host_xm_include_list} config/$f"
12723 esac
12724 done
12726 build_xm_file_list=
12727 for f in $build_xm_file; do
12728 case $f in
12729 ansidecl.h )
12730 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12731 build_xm_include_list="${build_xm_include_list} $f"
12733 auto-build.h | auto-host.h )
12734 build_xm_file_list="${build_xm_file_list} $f"
12735 build_xm_include_list="${build_xm_include_list} $f"
12738 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12739 build_xm_include_list="${build_xm_include_list} config/$f"
12741 esac
12742 done
12744 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12745 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12746 CROSS=
12747 ALL=all.internal
12748 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12750 if test "x$with_build_sysroot" != x; then
12751 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12752 else
12753 # This value is used, even on a native system, because
12754 # CROSS_SYSTEM_HEADER_DIR is just
12755 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12756 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12759 if test x$host != x$target
12760 then
12761 CROSS="-DCROSS_COMPILE"
12762 ALL=all.cross
12763 SYSTEM_HEADER_DIR=$build_system_header_dir
12764 case "$host","$target" in
12765 # Darwin crosses can use the host system's libraries and headers,
12766 # because of the fat library support. Of course, it must be the
12767 # same version of Darwin on both sides. Allow the user to
12768 # just say --target=foo-darwin without a version number to mean
12769 # "the version on this system".
12770 *-*-darwin*,*-*-darwin*)
12771 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12772 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12773 if test $hostos = $targetos -o $targetos = darwin ; then
12774 CROSS=
12775 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12776 with_headers=yes
12780 i?86-*-*,x86_64-*-* \
12781 | powerpc*-*-*,powerpc64*-*-*)
12782 CROSS="$CROSS -DNATIVE_CROSS" ;;
12783 esac
12784 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12785 SYSTEM_HEADER_DIR=$build_system_header_dir
12788 # If this is a cross-compiler that does not
12789 # have its own set of headers then define
12790 # inhibit_libc
12792 # If this is using newlib, without having the headers available now,
12793 # then define inhibit_libc in LIBGCC2_CFLAGS.
12794 # This prevents libgcc2 from containing any code which requires libc
12795 # support.
12796 inhibit_libc=false
12797 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12798 test x$with_newlib = xyes ; } &&
12799 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12800 inhibit_libc=true
12804 # When building gcc with a cross-compiler, we need to adjust things so
12805 # that the generator programs are still built with the native compiler.
12806 # Also, we cannot run fixincludes or fix-header.
12808 # These are the normal (build=host) settings:
12809 CC_FOR_BUILD='$(CC)'
12810 BUILD_CFLAGS='$(ALL_CFLAGS)'
12811 STMP_FIXINC=stmp-fixinc
12813 # Possibly disable fixproto, on a per-target basis.
12814 case ${use_fixproto} in
12816 STMP_FIXPROTO=
12818 yes)
12819 STMP_FIXPROTO=stmp-fixproto
12821 esac
12824 # And these apply if build != host, or we are generating coverage data
12825 if test x$build != x$host || test "x$coverage_flags" != x
12826 then
12827 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12829 if test "x$TARGET_SYSTEM_ROOT" = x; then
12830 if test "x$STMP_FIXPROTO" != x; then
12831 STMP_FIXPROTO=stmp-install-fixproto
12836 # Expand extra_headers to include complete path.
12837 # This substitutes for lots of t-* files.
12838 extra_headers_list=
12839 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12840 for file in ${extra_headers} ; do
12841 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12842 done
12844 # Define collect2 in Makefile.
12845 case $host_can_use_collect2 in
12846 no) collect2= ;;
12847 *) collect2='collect2$(exeext)' ;;
12848 esac
12851 # Add a definition of USE_COLLECT2 if system wants one.
12852 case $use_collect2 in
12853 no) use_collect2= ;;
12854 "") ;;
12856 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12857 xm_defines="${xm_defines} USE_COLLECT2"
12858 case $host_can_use_collect2 in
12860 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12861 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12862 { (exit 1); exit 1; }; }
12864 esac
12866 esac
12868 # ---------------------------
12869 # Assembler & linker features
12870 # ---------------------------
12872 # Identify the assembler which will work hand-in-glove with the newly
12873 # built GCC, so that we can examine its features. This is the assembler
12874 # which will be driven by the driver program.
12876 # If build != host, and we aren't building gas in-tree, we identify a
12877 # build->target assembler and hope that it will have the same features
12878 # as the host->target assembler we'll be using.
12879 gcc_cv_gas_major_version=
12880 gcc_cv_gas_minor_version=
12881 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12883 if test "${gcc_cv_as+set}" = set; then
12885 else
12887 if test -x "$DEFAULT_ASSEMBLER"; then
12888 gcc_cv_as="$DEFAULT_ASSEMBLER"
12889 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12890 && test -f ../gas/Makefile \
12891 && test x$build = x$host; then
12892 gcc_cv_as=../gas/as-new$build_exeext
12893 elif test -x as$build_exeext; then
12894 # Build using assembler in the current directory.
12895 gcc_cv_as=./as$build_exeext
12896 elif test -x $AS_FOR_TARGET; then
12897 gcc_cv_as="$AS_FOR_TARGET"
12898 else
12899 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12900 set dummy $AS_FOR_TARGET; ac_word=$2
12901 echo "$as_me:$LINENO: checking for $ac_word" >&5
12902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12903 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906 case $gcc_cv_as in
12907 [\\/]* | ?:[\\/]*)
12908 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $PATH
12914 IFS=$as_save_IFS
12915 test -z "$as_dir" && as_dir=.
12916 for ac_exec_ext in '' $ac_executable_extensions; do
12917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12918 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12920 break 2
12922 done
12923 done
12926 esac
12928 gcc_cv_as=$ac_cv_path_gcc_cv_as
12930 if test -n "$gcc_cv_as"; then
12931 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12932 echo "${ECHO_T}$gcc_cv_as" >&6
12933 else
12934 echo "$as_me:$LINENO: result: no" >&5
12935 echo "${ECHO_T}no" >&6
12942 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
12945 echo "$as_me:$LINENO: checking what assembler to use" >&5
12946 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12947 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
12948 # Single tree build which includes gas. We want to prefer it
12949 # over whatever linker top-level may have detected, since
12950 # we'll use what we're building after installation anyway.
12951 echo "$as_me:$LINENO: result: newly built gas" >&5
12952 echo "${ECHO_T}newly built gas" >&6
12953 in_tree_gas=yes
12954 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12955 for f in $gcc_cv_as_bfd_srcdir/configure \
12956 $gcc_cv_as_gas_srcdir/configure \
12957 $gcc_cv_as_gas_srcdir/configure.in \
12958 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12959 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12960 if test x$gcc_cv_gas_version != x; then
12961 break
12963 done
12964 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12965 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12966 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12967 case $gcc_cv_gas_patch_version in
12968 "") gcc_cv_gas_patch_version="0" ;;
12969 esac
12970 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12971 + $gcc_cv_gas_minor_version \) \* 1000 \
12972 + $gcc_cv_gas_patch_version`
12974 in_tree_gas_is_elf=no
12975 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12976 || (grep 'obj_format = multi' ../gas/Makefile \
12977 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12978 then
12979 in_tree_gas_is_elf=yes
12981 else
12982 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12983 echo "${ECHO_T}$gcc_cv_as" >&6
12984 in_tree_gas=no
12987 # Identify the linker which will work hand-in-glove with the newly
12988 # built GCC, so that we can examine its features. This is the linker
12989 # which will be driven by the driver program.
12991 # If build != host, and we aren't building gas in-tree, we identify a
12992 # build->target linker and hope that it will have the same features
12993 # as the host->target linker we'll be using.
12994 gcc_cv_gld_major_version=
12995 gcc_cv_gld_minor_version=
12996 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12997 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12999 if test "${gcc_cv_ld+set}" = set; then
13001 else
13003 if test -x "$DEFAULT_LINKER"; then
13004 gcc_cv_ld="$DEFAULT_LINKER"
13005 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13006 && test -f ../ld/Makefile \
13007 && test x$build = x$host; then
13008 gcc_cv_ld=../ld/ld-new$build_exeext
13009 elif test -x collect-ld$build_exeext; then
13010 # Build using linker in the current directory.
13011 gcc_cv_ld=./collect-ld$build_exeext
13012 elif test -x $LD_FOR_TARGET; then
13013 gcc_cv_ld="$LD_FOR_TARGET"
13014 else
13015 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13016 set dummy $LD_FOR_TARGET; ac_word=$2
13017 echo "$as_me:$LINENO: checking for $ac_word" >&5
13018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13019 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022 case $gcc_cv_ld in
13023 [\\/]* | ?:[\\/]*)
13024 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028 for as_dir in $PATH
13030 IFS=$as_save_IFS
13031 test -z "$as_dir" && as_dir=.
13032 for ac_exec_ext in '' $ac_executable_extensions; do
13033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13034 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13036 break 2
13038 done
13039 done
13042 esac
13044 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13046 if test -n "$gcc_cv_ld"; then
13047 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13048 echo "${ECHO_T}$gcc_cv_ld" >&6
13049 else
13050 echo "$as_me:$LINENO: result: no" >&5
13051 echo "${ECHO_T}no" >&6
13058 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13061 echo "$as_me:$LINENO: checking what linker to use" >&5
13062 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13063 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13064 # Single tree build which includes ld. We want to prefer it
13065 # over whatever linker top-level may have detected, since
13066 # we'll use what we're building after installation anyway.
13067 echo "$as_me:$LINENO: result: newly built ld" >&5
13068 echo "${ECHO_T}newly built ld" >&6
13069 in_tree_ld=yes
13070 in_tree_ld_is_elf=no
13071 if (grep 'EMUL = .*elf' ../ld/Makefile \
13072 || grep 'EMUL = .*linux' ../ld/Makefile \
13073 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13074 in_tree_ld_is_elf=yes
13076 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
13078 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13079 if test x$gcc_cv_gld_version != x; then
13080 break
13082 done
13083 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13084 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13085 else
13086 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13087 echo "${ECHO_T}$gcc_cv_ld" >&6
13088 in_tree_ld=no
13091 # Figure out what nm we will be using.
13092 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13093 if test "${gcc_cv_nm+set}" = set; then
13095 else
13097 if test -f $gcc_cv_binutils_srcdir/configure.in \
13098 && test -f ../binutils/Makefile; then
13099 gcc_cv_nm=../binutils/nm-new$build_exeext
13100 elif test -x nm$build_exeext; then
13101 gcc_cv_nm=./nm$build_exeext
13102 elif test -x $NM_FOR_TARGET; then
13103 gcc_cv_nm="$NM_FOR_TARGET"
13104 else
13105 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13106 set dummy $NM_FOR_TARGET; ac_word=$2
13107 echo "$as_me:$LINENO: checking for $ac_word" >&5
13108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13109 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112 case $gcc_cv_nm in
13113 [\\/]* | ?:[\\/]*)
13114 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118 for as_dir in $PATH
13120 IFS=$as_save_IFS
13121 test -z "$as_dir" && as_dir=.
13122 for ac_exec_ext in '' $ac_executable_extensions; do
13123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13126 break 2
13128 done
13129 done
13132 esac
13134 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13136 if test -n "$gcc_cv_nm"; then
13137 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13138 echo "${ECHO_T}$gcc_cv_nm" >&6
13139 else
13140 echo "$as_me:$LINENO: result: no" >&5
13141 echo "${ECHO_T}no" >&6
13148 echo "$as_me:$LINENO: checking what nm to use" >&5
13149 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13150 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13151 # Single tree build which includes binutils.
13152 echo "$as_me:$LINENO: result: newly built nm" >&5
13153 echo "${ECHO_T}newly built nm" >&6
13154 in_tree_nm=yes
13155 else
13156 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13157 echo "${ECHO_T}$gcc_cv_nm" >&6
13158 in_tree_nm=no
13161 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13164 # Figure out what objdump we will be using.
13165 if test "${gcc_cv_objdump+set}" = set; then
13167 else
13169 if test -f $gcc_cv_binutils_srcdir/configure.in \
13170 && test -f ../binutils/Makefile; then
13171 # Single tree build which includes binutils.
13172 gcc_cv_objdump=../binutils/objdump$build_exeext
13173 elif test -x objdump$build_exeext; then
13174 gcc_cv_objdump=./objdump$build_exeext
13175 elif test -x $OBJDUMP_FOR_TARGET; then
13176 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13177 else
13178 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13179 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13180 echo "$as_me:$LINENO: checking for $ac_word" >&5
13181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13182 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185 case $gcc_cv_objdump in
13186 [\\/]* | ?:[\\/]*)
13187 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191 for as_dir in $PATH
13193 IFS=$as_save_IFS
13194 test -z "$as_dir" && as_dir=.
13195 for ac_exec_ext in '' $ac_executable_extensions; do
13196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13199 break 2
13201 done
13202 done
13205 esac
13207 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13209 if test -n "$gcc_cv_objdump"; then
13210 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13211 echo "${ECHO_T}$gcc_cv_objdump" >&6
13212 else
13213 echo "$as_me:$LINENO: result: no" >&5
13214 echo "${ECHO_T}no" >&6
13221 echo "$as_me:$LINENO: checking what objdump to use" >&5
13222 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13223 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13224 # Single tree build which includes binutils.
13225 echo "$as_me:$LINENO: result: newly built objdump" >&5
13226 echo "${ECHO_T}newly built objdump" >&6
13227 elif test x$gcc_cv_objdump = x; then
13228 echo "$as_me:$LINENO: result: not found" >&5
13229 echo "${ECHO_T}not found" >&6
13230 else
13231 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13232 echo "${ECHO_T}$gcc_cv_objdump" >&6
13235 # Figure out what assembler alignment features are present.
13236 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13237 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13238 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241 gcc_cv_as_balign_and_p2align=no
13242 if test $in_tree_gas = yes; then
13243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13244 then gcc_cv_as_balign_and_p2align=yes
13246 elif test x$gcc_cv_as != x; then
13247 echo '.balign 4
13248 .p2align 2' > conftest.s
13249 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; }
13255 then
13256 gcc_cv_as_balign_and_p2align=yes
13257 else
13258 echo "configure: failed program was" >&5
13259 cat conftest.s >&5
13261 rm -f conftest.o conftest.s
13264 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13265 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13266 if test $gcc_cv_as_balign_and_p2align = yes; then
13268 cat >>confdefs.h <<\_ACEOF
13269 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13270 _ACEOF
13274 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13275 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13276 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279 gcc_cv_as_max_skip_p2align=no
13280 if test $in_tree_gas = yes; then
13281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13282 then gcc_cv_as_max_skip_p2align=yes
13284 elif test x$gcc_cv_as != x; then
13285 echo '.p2align 4,,7' > conftest.s
13286 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }
13292 then
13293 gcc_cv_as_max_skip_p2align=yes
13294 else
13295 echo "configure: failed program was" >&5
13296 cat conftest.s >&5
13298 rm -f conftest.o conftest.s
13301 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13302 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13303 if test $gcc_cv_as_max_skip_p2align = yes; then
13305 cat >>confdefs.h <<\_ACEOF
13306 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13307 _ACEOF
13311 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13312 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13313 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316 gcc_cv_as_subsection_m1=no
13317 if test $in_tree_gas = yes; then
13318 if test $in_tree_gas_is_elf = yes \
13319 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13320 then gcc_cv_as_subsection_m1=yes
13322 elif test x$gcc_cv_as != x; then
13323 echo 'conftest_label1: .word 0
13324 .subsection -1
13325 conftest_label2: .word 0
13326 .previous' > conftest.s
13327 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }
13333 then
13334 if test x$gcc_cv_nm != x; then
13335 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13336 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13337 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13338 then :
13339 else gcc_cv_as_subsection_m1=yes
13341 rm -f conftest.nm1 conftest.nm2
13343 else
13344 echo "configure: failed program was" >&5
13345 cat conftest.s >&5
13347 rm -f conftest.o conftest.s
13350 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13351 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13352 if test $gcc_cv_as_subsection_m1 = yes; then
13354 cat >>confdefs.h <<\_ACEOF
13355 #define HAVE_GAS_SUBSECTION_ORDERING 1
13356 _ACEOF
13360 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13361 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13362 if test "${gcc_cv_as_weak+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 else
13365 gcc_cv_as_weak=no
13366 if test $in_tree_gas = yes; then
13367 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13368 then gcc_cv_as_weak=yes
13370 elif test x$gcc_cv_as != x; then
13371 echo ' .weak foobar' > conftest.s
13372 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }
13378 then
13379 gcc_cv_as_weak=yes
13380 else
13381 echo "configure: failed program was" >&5
13382 cat conftest.s >&5
13384 rm -f conftest.o conftest.s
13387 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13388 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13389 if test $gcc_cv_as_weak = yes; then
13391 cat >>confdefs.h <<\_ACEOF
13392 #define HAVE_GAS_WEAK 1
13393 _ACEOF
13397 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13398 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13399 if test "${gcc_cv_as_weakref+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402 gcc_cv_as_weakref=no
13403 if test $in_tree_gas = yes; then
13404 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13405 then gcc_cv_as_weakref=yes
13407 elif test x$gcc_cv_as != x; then
13408 echo ' .weakref foobar, barfnot' > conftest.s
13409 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }
13415 then
13416 gcc_cv_as_weakref=yes
13417 else
13418 echo "configure: failed program was" >&5
13419 cat conftest.s >&5
13421 rm -f conftest.o conftest.s
13424 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13425 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13426 if test $gcc_cv_as_weakref = yes; then
13428 cat >>confdefs.h <<\_ACEOF
13429 #define HAVE_GAS_WEAKREF 1
13430 _ACEOF
13434 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13435 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13436 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 else
13439 gcc_cv_as_nsubspa_comdat=no
13440 if test $in_tree_gas = yes; then
13441 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13442 then gcc_cv_as_nsubspa_comdat=yes
13444 elif test x$gcc_cv_as != x; then
13445 echo ' .SPACE $TEXT$
13446 .NSUBSPA $CODE$,COMDAT' > conftest.s
13447 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }
13453 then
13454 gcc_cv_as_nsubspa_comdat=yes
13455 else
13456 echo "configure: failed program was" >&5
13457 cat conftest.s >&5
13459 rm -f conftest.o conftest.s
13462 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13463 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13464 if test $gcc_cv_as_nsubspa_comdat = yes; then
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_GAS_NSUBSPA_COMDAT 1
13468 _ACEOF
13472 # .hidden needs to be supported in both the assembler and the linker,
13473 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13474 # This is irritatingly difficult to feature test for; we have to check the
13475 # date string after the version number. If we've got an in-tree
13476 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13477 # to be safe.
13478 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13479 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13480 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13481 if test "${gcc_cv_as_hidden+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 else
13484 gcc_cv_as_hidden=no
13485 if test $in_tree_gas = yes; then
13486 if test $in_tree_gas_is_elf = yes \
13487 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13488 then gcc_cv_as_hidden=yes
13490 elif test x$gcc_cv_as != x; then
13491 echo ' .hidden foobar
13492 foobar:' > conftest.s
13493 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }
13499 then
13500 gcc_cv_as_hidden=yes
13501 else
13502 echo "configure: failed program was" >&5
13503 cat conftest.s >&5
13505 rm -f conftest.o conftest.s
13508 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13509 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13512 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13513 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13514 if test "${gcc_cv_ld_hidden+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517 if test $in_tree_ld = yes ; then
13518 gcc_cv_ld_hidden=no
13519 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 \
13520 && test $in_tree_ld_is_elf = yes; then
13521 gcc_cv_ld_hidden=yes
13523 else
13524 gcc_cv_ld_hidden=yes
13525 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13526 if echo "$ld_ver" | grep GNU > /dev/null; then
13527 ld_vers=`echo $ld_ver | sed -n \
13528 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13529 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13530 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13531 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13532 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13533 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13534 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13535 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'`
13536 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13537 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13538 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13539 if test 0"$ld_date" -lt 20020404; then
13540 if test -n "$ld_date"; then
13541 # If there was date string, but was earlier than 2002-04-04, fail
13542 gcc_cv_ld_hidden=no
13543 elif test -z "$ld_vers"; then
13544 # If there was no date string nor ld version number, something is wrong
13545 gcc_cv_ld_hidden=no
13546 else
13547 test -z "$ld_vers_patch" && ld_vers_patch=0
13548 if test "$ld_vers_major" -lt 2; then
13549 gcc_cv_ld_hidden=no
13550 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13551 gcc_cv_ld_hidden="no"
13552 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13553 gcc_cv_ld_hidden=no
13557 else
13558 case "${target}" in
13559 hppa64*-*-hpux* | ia64*-*-hpux*)
13560 gcc_cv_ld_hidden=yes
13563 gcc_cv_ld_hidden=no
13565 esac
13569 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13570 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13571 libgcc_visibility=no
13574 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13575 libgcc_visibility=yes
13577 cat >>confdefs.h <<\_ACEOF
13578 #define HAVE_GAS_HIDDEN 1
13579 _ACEOF
13583 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13584 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13585 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13586 if test "${gcc_cv_as_leb128+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589 gcc_cv_as_leb128=no
13590 if test $in_tree_gas = yes; then
13591 if test $in_tree_gas_is_elf = yes \
13592 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13593 then gcc_cv_as_leb128=yes
13595 elif test x$gcc_cv_as != x; then
13596 echo ' .data
13597 .uleb128 L2 - L1
13599 .uleb128 1280
13600 .sleb128 -1010
13601 L2:' > conftest.s
13602 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }
13608 then
13609 # GAS versions before 2.11 do not support uleb128,
13610 # despite appearing to.
13611 # ??? There exists an elf-specific test that will crash
13612 # the assembler. Perhaps it's better to figure out whether
13613 # arbitrary sections are supported and try the test.
13614 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13615 if echo "$as_ver" | grep GNU > /dev/null; then
13616 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13617 as_major=`echo $as_ver | sed 's/\..*//'`
13618 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13619 if test $as_major -eq 2 && test $as_minor -lt 11
13620 then :
13621 else gcc_cv_as_leb128=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_leb128" >&5
13632 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13633 if test $gcc_cv_as_leb128 = yes; then
13635 cat >>confdefs.h <<\_ACEOF
13636 #define HAVE_AS_LEB128 1
13637 _ACEOF
13641 # GAS versions up to and including 2.11.0 may mis-optimize
13642 # .eh_frame data.
13643 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13644 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13645 if test "${gcc_cv_as_eh_frame+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13647 else
13648 gcc_cv_as_eh_frame=no
13649 if test $in_tree_gas = yes; then
13650 if test $in_tree_gas_is_elf = yes \
13651 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13652 then gcc_cv_as_eh_frame=yes
13654 elif test x$gcc_cv_as != x; then
13655 echo ' .text
13656 .LFB1:
13657 .4byte 0
13658 .L1:
13659 .4byte 0
13660 .LFE1:
13661 .section .eh_frame,"aw",@progbits
13662 __FRAME_BEGIN__:
13663 .4byte .LECIE1-.LSCIE1
13664 .LSCIE1:
13665 .4byte 0x0
13666 .byte 0x1
13667 .ascii "z\0"
13668 .byte 0x1
13669 .byte 0x78
13670 .byte 0x1a
13671 .byte 0x0
13672 .byte 0x4
13673 .4byte 1
13674 .p2align 1
13675 .LECIE1:
13676 .LSFDE1:
13677 .4byte .LEFDE1-.LASFDE1
13678 .LASFDE1:
13679 .4byte .LASFDE1-__FRAME_BEGIN__
13680 .4byte .LFB1
13681 .4byte .LFE1-.LFB1
13682 .byte 0x4
13683 .4byte .LFE1-.LFB1
13684 .byte 0x4
13685 .4byte .L1-.LFB1
13686 .LEFDE1:' > conftest.s
13687 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }
13693 then
13694 cat > conftest.lit <<EOF
13695 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13696 0010 01000000 12000000 18000000 00000000 ................
13697 0020 08000000 04080000 0044 .........D
13699 cat > conftest.big <<EOF
13700 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13701 0010 00000001 00000012 00000018 00000000 ................
13702 0020 00000008 04000000 0844 .........D
13704 # If the assembler didn't choke, and we can objdump,
13705 # and we got the correct data, then succeed.
13706 if test x$gcc_cv_objdump != x \
13707 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13708 | tail -3 > conftest.got \
13709 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13710 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13711 then
13712 gcc_cv_as_eh_frame=yes
13713 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 gcc_cv_as_eh_frame=buggy
13720 else
13721 # Uh oh, what do we do now?
13722 gcc_cv_as_eh_frame=no
13724 else
13725 echo "configure: failed program was" >&5
13726 cat conftest.s >&5
13728 rm -f conftest.o conftest.s
13731 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13732 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13735 if test $gcc_cv_as_eh_frame = buggy; then
13737 cat >>confdefs.h <<\_ACEOF
13738 #define USE_AS_TRADITIONAL_FORMAT 1
13739 _ACEOF
13743 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13744 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13745 if test "${gcc_cv_as_shf_merge+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 else
13748 gcc_cv_as_shf_merge=no
13749 if test $in_tree_gas = yes; then
13750 if test $in_tree_gas_is_elf = yes \
13751 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13752 then gcc_cv_as_shf_merge=yes
13754 elif test x$gcc_cv_as != x; then
13755 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13756 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }
13762 then
13763 gcc_cv_as_shf_merge=yes
13764 else
13765 echo "configure: failed program was" >&5
13766 cat conftest.s >&5
13768 rm -f conftest.o conftest.s
13771 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13772 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13774 if test $gcc_cv_as_shf_merge = no; then
13775 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13776 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13777 if test "${gcc_cv_as_shf_merge+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780 gcc_cv_as_shf_merge=no
13781 if test $in_tree_gas = yes; then
13782 if test $in_tree_gas_is_elf = yes \
13783 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13784 then gcc_cv_as_shf_merge=yes
13786 elif test x$gcc_cv_as != x; then
13787 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13788 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }
13794 then
13795 gcc_cv_as_shf_merge=yes
13796 else
13797 echo "configure: failed program was" >&5
13798 cat conftest.s >&5
13800 rm -f conftest.o conftest.s
13803 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13804 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13808 cat >>confdefs.h <<_ACEOF
13809 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13810 _ACEOF
13813 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13814 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13815 if test "${gcc_cv_as_comdat_group+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818 gcc_cv_as_comdat_group=no
13819 if test $in_tree_gas = yes; then
13820 if test $in_tree_gas_is_elf = yes \
13821 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13822 then gcc_cv_as_comdat_group=yes
13824 elif test x$gcc_cv_as != x; then
13825 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13826 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }
13832 then
13833 gcc_cv_as_comdat_group=yes
13834 else
13835 echo "configure: failed program was" >&5
13836 cat conftest.s >&5
13838 rm -f conftest.o conftest.s
13841 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13842 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13844 if test $gcc_cv_as_comdat_group = yes; then
13845 gcc_cv_as_comdat_group_percent=no
13846 else
13847 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13848 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13849 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852 gcc_cv_as_comdat_group_percent=no
13853 if test $in_tree_gas = yes; then
13854 if test $in_tree_gas_is_elf = yes \
13855 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13856 then gcc_cv_as_comdat_group_percent=yes
13858 elif test x$gcc_cv_as != x; then
13859 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13860 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }
13866 then
13867 gcc_cv_as_comdat_group_percent=yes
13868 else
13869 echo "configure: failed program was" >&5
13870 cat conftest.s >&5
13872 rm -f conftest.o conftest.s
13875 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13876 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13879 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
13880 comdat_group=yes
13881 if test 0"$ld_date" -lt 20050308; then
13882 if test -n "$ld_date"; then
13883 # If there was date string, but was earlier than 2005-03-08, fail
13884 comdat_group=no
13885 elif test "$ld_vers_major" -lt 2; then
13886 comdat_group=no
13887 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13888 comdat_group=no
13891 if test $comdat_group = no; then
13892 gcc_cv_as_comdat_group=no
13893 gcc_cv_as_comdat_group_percent=no
13897 cat >>confdefs.h <<_ACEOF
13898 #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`
13899 _ACEOF
13902 # Thread-local storage - the check is heavily parametrized.
13903 conftest_s=
13904 tls_first_major=
13905 tls_first_minor=
13906 tls_as_opt=
13907 case "$target" in
13908 alpha*-*-*)
13909 conftest_s='
13910 .section ".tdata","awT",@progbits
13911 foo: .long 25
13912 .text
13913 ldq $27,__tls_get_addr($29) !literal!1
13914 lda $16,foo($29) !tlsgd!1
13915 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13916 ldq $27,__tls_get_addr($29) !literal!2
13917 lda $16,foo($29) !tlsldm!2
13918 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13919 ldq $1,foo($29) !gotdtprel
13920 ldah $2,foo($29) !dtprelhi
13921 lda $3,foo($2) !dtprello
13922 lda $4,foo($29) !dtprel
13923 ldq $1,foo($29) !gottprel
13924 ldah $2,foo($29) !tprelhi
13925 lda $3,foo($2) !tprello
13926 lda $4,foo($29) !tprel'
13927 tls_first_major=2
13928 tls_first_minor=13
13929 tls_as_opt=--fatal-warnings
13931 frv*-*-*)
13932 conftest_s='
13933 .section ".tdata","awT",@progbits
13934 x: .long 25
13935 .text
13936 call #gettlsoff(x)'
13937 tls_first_major=2
13938 tls_first_minor=14
13940 hppa*-*-linux*)
13941 conftest_s='
13942 t1: .reg %r20
13943 t2: .reg %r21
13944 gp: .reg %r19
13945 .section ".tdata","awT",@progbits
13946 foo: .long 25
13947 .text
13948 .align 4
13949 addil LT%foo-$tls_gdidx$,gp
13950 ldo RT%foo-$tls_gdidx$(%r1),%arg0
13951 b __tls_get_addr
13953 addil LT%foo-$tls_ldidx$,gp
13954 b __tls_get_addr
13955 ldo RT%foo-$tls_ldidx$(%r1),%arg0
13956 addil LR%foo-$tls_dtpoff$,%ret0
13957 ldo RR%foo-$tls_dtpoff$(%r1),%t1
13958 mfctl %cr27,%t1
13959 addil LT%foo-$tls_ieoff$,gp
13960 ldw RT%foo-$tls_ieoff$(%r1),%t2
13961 add %t1,%t2,%t3
13962 mfctl %cr27,%t1
13963 addil LR%foo-$tls_leoff$,%t1
13964 ldo RR%foo-$tls_leoff$(%r1),%t2'
13965 tls_first_major=2
13966 tls_first_minor=15
13967 tls_as_opt=--fatal-warnings
13969 arm*-*-*)
13970 conftest_s='
13971 .section ".tdata","awT",%progbits
13972 foo: .long 25
13973 .text
13974 .word foo(gottpoff)
13975 .word foo(tpoff)
13976 .word foo(tlsgd)
13977 .word foo(tlsldm)
13978 .word foo(tlsldo)'
13979 tls_first_major=2
13980 tls_first_minor=17
13982 i[34567]86-*-*)
13983 conftest_s='
13984 .section ".tdata","awT",@progbits
13985 foo: .long 25
13986 .text
13987 movl %gs:0, %eax
13988 leal foo@TLSGD(,%ebx,1), %eax
13989 leal foo@TLSLDM(%ebx), %eax
13990 leal foo@DTPOFF(%eax), %edx
13991 movl foo@GOTTPOFF(%ebx), %eax
13992 subl foo@GOTTPOFF(%ebx), %eax
13993 addl foo@GOTNTPOFF(%ebx), %eax
13994 movl foo@INDNTPOFF, %eax
13995 movl $foo@TPOFF, %eax
13996 subl $foo@TPOFF, %eax
13997 leal foo@NTPOFF(%ecx), %eax'
13998 tls_first_major=2
13999 tls_first_minor=14
14000 tls_as_opt=--fatal-warnings
14002 x86_64-*-*)
14003 conftest_s='
14004 .section ".tdata","awT",@progbits
14005 foo: .long 25
14006 .text
14007 movq %fs:0, %rax
14008 leaq foo@TLSGD(%rip), %rdi
14009 leaq foo@TLSLD(%rip), %rdi
14010 leaq foo@DTPOFF(%rax), %rdx
14011 movq foo@GOTTPOFF(%rip), %rax
14012 movq $foo@TPOFF, %rax'
14013 tls_first_major=2
14014 tls_first_minor=14
14015 tls_as_opt=--fatal-warnings
14017 ia64-*-*)
14018 conftest_s='
14019 .section ".tdata","awT",@progbits
14020 foo: data8 25
14021 .text
14022 addl r16 = @ltoff(@dtpmod(foo#)), gp
14023 addl r17 = @ltoff(@dtprel(foo#)), gp
14024 addl r18 = @ltoff(@tprel(foo#)), gp
14025 addl r19 = @dtprel(foo#), gp
14026 adds r21 = @dtprel(foo#), r13
14027 movl r23 = @dtprel(foo#)
14028 addl r20 = @tprel(foo#), gp
14029 adds r22 = @tprel(foo#), r13
14030 movl r24 = @tprel(foo#)'
14031 tls_first_major=2
14032 tls_first_minor=13
14033 tls_as_opt=--fatal-warnings
14035 mips*-*-*)
14036 conftest_s='
14037 .section .tdata,"awT",@progbits
14039 .word 2
14040 .text
14041 addiu $4, $28, %tlsgd(x)
14042 addiu $4, $28, %tlsldm(x)
14043 lui $4, %dtprel_hi(x)
14044 addiu $4, $4, %dtprel_lo(x)
14045 lw $4, %gottprel(x)($28)
14046 lui $4, %tprel_hi(x)
14047 addiu $4, $4, %tprel_lo(x)'
14048 tls_first_major=2
14049 tls_first_minor=16
14050 tls_as_opt='-32 --fatal-warnings'
14052 powerpc-*-*)
14053 conftest_s='
14054 .section ".tdata","awT",@progbits
14055 .align 2
14056 ld0: .space 4
14057 ld1: .space 4
14058 x1: .space 4
14059 x2: .space 4
14060 x3: .space 4
14061 .text
14062 addi 3,31,ld0@got@tlsgd
14063 bl __tls_get_addr
14064 addi 3,31,x1@got@tlsld
14065 bl __tls_get_addr
14066 addi 9,3,x1@dtprel
14067 addis 9,3,x2@dtprel@ha
14068 addi 9,9,x2@dtprel@l
14069 lwz 9,x3@got@tprel(31)
14070 add 9,9,x@tls
14071 addi 9,2,x1@tprel
14072 addis 9,2,x2@tprel@ha
14073 addi 9,9,x2@tprel@l'
14074 tls_first_major=2
14075 tls_first_minor=14
14076 tls_as_opt="-a32 --fatal-warnings"
14078 powerpc64-*-*)
14079 conftest_s='
14080 .section ".tdata","awT",@progbits
14081 .align 3
14082 ld0: .space 8
14083 ld1: .space 8
14084 x1: .space 8
14085 x2: .space 8
14086 x3: .space 8
14087 .text
14088 addi 3,2,ld0@got@tlsgd
14089 bl .__tls_get_addr
14091 addi 3,2,ld1@toc
14092 bl .__tls_get_addr
14094 addi 3,2,x1@got@tlsld
14095 bl .__tls_get_addr
14097 addi 9,3,x1@dtprel
14098 bl .__tls_get_addr
14100 addis 9,3,x2@dtprel@ha
14101 addi 9,9,x2@dtprel@l
14102 bl .__tls_get_addr
14104 ld 9,x3@got@dtprel(2)
14105 add 9,9,3
14106 bl .__tls_get_addr
14107 nop'
14108 tls_first_major=2
14109 tls_first_minor=14
14110 tls_as_opt="-a64 --fatal-warnings"
14112 s390-*-*)
14113 conftest_s='
14114 .section ".tdata","awT",@progbits
14115 foo: .long 25
14116 .text
14117 .long foo@TLSGD
14118 .long foo@TLSLDM
14119 .long foo@DTPOFF
14120 .long foo@NTPOFF
14121 .long foo@GOTNTPOFF
14122 .long foo@INDNTPOFF
14123 l %r1,foo@GOTNTPOFF(%r12)
14124 l %r1,0(%r1):tls_load:foo
14125 bas %r14,0(%r1,%r13):tls_gdcall:foo
14126 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14127 tls_first_major=2
14128 tls_first_minor=14
14129 tls_as_opt="-m31 --fatal-warnings"
14131 s390x-*-*)
14132 conftest_s='
14133 .section ".tdata","awT",@progbits
14134 foo: .long 25
14135 .text
14136 .quad foo@TLSGD
14137 .quad foo@TLSLDM
14138 .quad foo@DTPOFF
14139 .quad foo@NTPOFF
14140 .quad foo@GOTNTPOFF
14141 lg %r1,foo@GOTNTPOFF(%r12)
14142 larl %r1,foo@INDNTPOFF
14143 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14144 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14145 tls_first_major=2
14146 tls_first_minor=14
14147 tls_as_opt="-m64 -Aesame --fatal-warnings"
14149 sh-*-* | sh[34]-*-*)
14150 conftest_s='
14151 .section ".tdata","awT",@progbits
14152 foo: .long 25
14153 .text
14154 .long foo@TLSGD
14155 .long foo@TLSLDM
14156 .long foo@DTPOFF
14157 .long foo@GOTTPOFF
14158 .long foo@TPOFF'
14159 tls_first_major=2
14160 tls_first_minor=13
14161 tls_as_opt=--fatal-warnings
14163 sparc*-*-*)
14164 case "$target" in
14165 sparc*-sun-solaris2.*)
14166 on_solaris=yes
14169 on_solaris=no
14171 esac
14172 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14173 conftest_s='
14174 .section ".tdata",#alloc,#write,#tls
14175 foo: .long 25
14176 .text
14177 sethi %tgd_hi22(foo), %o0
14178 add %o0, %tgd_lo10(foo), %o1
14179 add %l7, %o1, %o0, %tgd_add(foo)
14180 call __tls_get_addr, %tgd_call(foo)
14181 sethi %tldm_hi22(foo), %l1
14182 add %l1, %tldm_lo10(foo), %l2
14183 add %l7, %l2, %o0, %tldm_add(foo)
14184 call __tls_get_addr, %tldm_call(foo)
14185 sethi %tldo_hix22(foo), %l3
14186 xor %l3, %tldo_lox10(foo), %l4
14187 add %o0, %l4, %l5, %tldo_add(foo)
14188 sethi %tie_hi22(foo), %o3
14189 add %o3, %tie_lo10(foo), %o3
14190 ld [%l7 + %o3], %o2, %tie_ld(foo)
14191 add %g7, %o2, %o4, %tie_add(foo)
14192 sethi %tle_hix22(foo), %l1
14193 xor %l1, %tle_lox10(foo), %o5
14194 ld [%g7 + %o5], %o1'
14195 tls_first_major=0
14196 tls_first_minor=0
14197 else
14198 conftest_s='
14199 .section ".tdata","awT",@progbits
14200 foo: .long 25
14201 .text
14202 sethi %tgd_hi22(foo), %o0
14203 add %o0, %tgd_lo10(foo), %o1
14204 add %l7, %o1, %o0, %tgd_add(foo)
14205 call __tls_get_addr, %tgd_call(foo)
14206 sethi %tldm_hi22(foo), %l1
14207 add %l1, %tldm_lo10(foo), %l2
14208 add %l7, %l2, %o0, %tldm_add(foo)
14209 call __tls_get_addr, %tldm_call(foo)
14210 sethi %tldo_hix22(foo), %l3
14211 xor %l3, %tldo_lox10(foo), %l4
14212 add %o0, %l4, %l5, %tldo_add(foo)
14213 sethi %tie_hi22(foo), %o3
14214 add %o3, %tie_lo10(foo), %o3
14215 ld [%l7 + %o3], %o2, %tie_ld(foo)
14216 add %g7, %o2, %o4, %tie_add(foo)
14217 sethi %tle_hix22(foo), %l1
14218 xor %l1, %tle_lox10(foo), %o5
14219 ld [%g7 + %o5], %o1'
14220 tls_first_major=2
14221 tls_first_minor=14
14222 tls_as_opt="-32 --fatal-warnings"
14225 esac
14226 set_have_as_tls=no
14227 if test "x$enable_tls" = xno ; then
14228 : # TLS explicitly disabled.
14229 elif test "x$enable_tls" = xyes ; then
14230 set_have_as_tls=yes # TLS explicitly enabled.
14231 elif test -z "$tls_first_major"; then
14232 : # If we don't have a check, assume no support.
14233 else
14234 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14235 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14236 if test "${gcc_cv_as_tls+set}" = set; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 else
14239 gcc_cv_as_tls=no
14240 if test $in_tree_gas = yes; then
14241 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14242 then gcc_cv_as_tls=yes
14244 elif test x$gcc_cv_as != x; then
14245 echo "$conftest_s" > conftest.s
14246 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }
14252 then
14253 gcc_cv_as_tls=yes
14254 else
14255 echo "configure: failed program was" >&5
14256 cat conftest.s >&5
14258 rm -f conftest.o conftest.s
14261 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14262 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14263 if test $gcc_cv_as_tls = yes; then
14264 set_have_as_tls=yes
14267 if test $set_have_as_tls = yes ; then
14269 cat >>confdefs.h <<\_ACEOF
14270 #define HAVE_AS_TLS 1
14271 _ACEOF
14275 # Target-specific assembler checks.
14277 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14278 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14279 gcc_cv_ld_static_dynamic=no
14280 if test $in_tree_ld = yes ; then
14281 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14282 gcc_cv_ld_static_dynamic=yes
14284 elif test x$gcc_cv_ld != x; then
14285 # Check if linker supports -Bstatic/-Bdynamic option
14286 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14287 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14288 gcc_cv_ld_static_dynamic=yes
14291 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14293 cat >>confdefs.h <<\_ACEOF
14294 #define HAVE_LD_STATIC_DYNAMIC 1
14295 _ACEOF
14298 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14299 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14301 if test x"$demangler_in_ld" = xyes; then
14302 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14303 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14304 gcc_cv_ld_demangle=no
14305 if test $in_tree_ld = yes; then
14306 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 \
14307 gcc_cv_ld_demangle=yes
14309 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14310 # Check if the GNU linker supports --demangle option
14311 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14312 gcc_cv_ld_demangle=yes
14315 if test x"$gcc_cv_ld_demangle" = xyes; then
14317 cat >>confdefs.h <<\_ACEOF
14318 #define HAVE_LD_DEMANGLE 1
14319 _ACEOF
14322 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14323 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14326 case "$target" in
14327 # All TARGET_ABI_OSF targets.
14328 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14329 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14330 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14331 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 else
14334 gcc_cv_as_alpha_explicit_relocs=no
14335 if test $in_tree_gas = yes; then
14336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14337 then gcc_cv_as_alpha_explicit_relocs=yes
14339 elif test x$gcc_cv_as != x; then
14340 echo ' .set nomacro
14341 .text
14342 extbl $3, $2, $3 !lituse_bytoff!1
14343 ldq $2, a($29) !literal!1
14344 ldq $4, b($29) !literal!2
14345 ldq_u $3, 0($2) !lituse_base!1
14346 ldq $27, f($29) !literal!5
14347 jsr $26, ($27), f !lituse_jsr!5
14348 ldah $29, 0($26) !gpdisp!3
14349 lda $0, c($29) !gprel
14350 ldah $1, d($29) !gprelhigh
14351 lda $1, d($1) !gprellow
14352 lda $29, 0($29) !gpdisp!3' > conftest.s
14353 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }
14359 then
14360 gcc_cv_as_alpha_explicit_relocs=yes
14361 else
14362 echo "configure: failed program was" >&5
14363 cat conftest.s >&5
14365 rm -f conftest.o conftest.s
14368 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14369 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14370 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14372 cat >>confdefs.h <<\_ACEOF
14373 #define HAVE_AS_EXPLICIT_RELOCS 1
14374 _ACEOF
14377 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14378 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14379 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 else
14382 gcc_cv_as_alpha_jsrdirect_relocs=no
14383 if test $in_tree_gas = yes; then
14384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14385 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14387 elif test x$gcc_cv_as != x; then
14388 echo ' .set nomacro
14389 .text
14390 ldq $27, a($29) !literal!1
14391 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14392 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }
14398 then
14399 gcc_cv_as_alpha_jsrdirect_relocs=yes
14400 else
14401 echo "configure: failed program was" >&5
14402 cat conftest.s >&5
14404 rm -f conftest.o conftest.s
14407 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14408 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14409 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14411 cat >>confdefs.h <<\_ACEOF
14412 #define HAVE_AS_JSRDIRECT_RELOCS 1
14413 _ACEOF
14418 cris-*-*)
14419 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14420 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14421 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424 gcc_cv_as_cris_no_mul_bug=no
14425 if test $in_tree_gas = yes; then
14426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14427 then gcc_cv_as_cris_no_mul_bug=yes
14429 elif test x$gcc_cv_as != x; then
14430 echo '.text' > conftest.s
14431 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }
14437 then
14438 gcc_cv_as_cris_no_mul_bug=yes
14439 else
14440 echo "configure: failed program was" >&5
14441 cat conftest.s >&5
14443 rm -f conftest.o conftest.s
14446 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14447 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14448 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14450 cat >>confdefs.h <<\_ACEOF
14451 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14452 _ACEOF
14457 sparc*-*-*)
14458 echo "$as_me:$LINENO: checking assembler for .register" >&5
14459 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14460 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463 gcc_cv_as_sparc_register_op=no
14464 if test x$gcc_cv_as != x; then
14465 echo '.register %g2, #scratch' > conftest.s
14466 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }
14472 then
14473 gcc_cv_as_sparc_register_op=yes
14474 else
14475 echo "configure: failed program was" >&5
14476 cat conftest.s >&5
14478 rm -f conftest.o conftest.s
14481 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14482 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14483 if test $gcc_cv_as_sparc_register_op = yes; then
14485 cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14487 _ACEOF
14491 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14492 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14493 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496 gcc_cv_as_sparc_relax=no
14497 if test x$gcc_cv_as != x; then
14498 echo '.text' > conftest.s
14499 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }
14505 then
14506 gcc_cv_as_sparc_relax=yes
14507 else
14508 echo "configure: failed program was" >&5
14509 cat conftest.s >&5
14511 rm -f conftest.o conftest.s
14514 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14515 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14516 if test $gcc_cv_as_sparc_relax = yes; then
14518 cat >>confdefs.h <<\_ACEOF
14519 #define HAVE_AS_RELAX_OPTION 1
14520 _ACEOF
14524 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14525 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14526 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529 gcc_cv_as_sparc_ua_pcrel=no
14530 if test x$gcc_cv_as != x; then
14531 echo '.text
14532 foo:
14534 .data
14535 .align 4
14536 .byte 0
14537 .uaword %r_disp32(foo)' > conftest.s
14538 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }
14544 then
14545 if test x$gcc_cv_ld != x \
14546 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14547 gcc_cv_as_sparc_ua_pcrel=yes
14549 rm -f conftest
14550 else
14551 echo "configure: failed program was" >&5
14552 cat conftest.s >&5
14554 rm -f conftest.o conftest.s
14557 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14558 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14559 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_AS_SPARC_UA_PCREL 1
14563 _ACEOF
14566 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14567 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14568 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571 gcc_cv_as_sparc_ua_pcrel_hidden=no
14572 if test x$gcc_cv_as != x; then
14573 echo '.data
14574 .align 4
14575 .byte 0x31
14576 .uaword %r_disp32(foo)
14577 .byte 0x32, 0x33, 0x34
14578 .global foo
14579 .hidden foo
14580 foo:
14581 .skip 4' > conftest.s
14582 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }
14588 then
14589 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14590 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14591 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14592 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14593 if $gcc_cv_objdump -R conftest 2> /dev/null \
14594 | grep 'DISP32' > /dev/null 2>&1; then
14596 else
14597 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14600 rm -f conftest
14601 else
14602 echo "configure: failed program was" >&5
14603 cat conftest.s >&5
14605 rm -f conftest.o conftest.s
14608 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14609 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14610 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14612 cat >>confdefs.h <<\_ACEOF
14613 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14614 _ACEOF
14618 fi # unaligned pcrel relocs
14620 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14621 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14622 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625 gcc_cv_as_sparc_offsetable_lo10=no
14626 if test x$gcc_cv_as != x; then
14627 echo '.text
14628 or %g1, %lo(ab) + 12, %g1
14629 or %g1, %lo(ab + 12), %g1' > conftest.s
14630 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }
14636 then
14637 if test x$gcc_cv_objdump != x \
14638 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14639 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14640 gcc_cv_as_sparc_offsetable_lo10=yes
14642 else
14643 echo "configure: failed program was" >&5
14644 cat conftest.s >&5
14646 rm -f conftest.o conftest.s
14649 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14650 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14651 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14653 cat >>confdefs.h <<\_ACEOF
14654 #define HAVE_AS_OFFSETABLE_LO10 1
14655 _ACEOF
14660 i[34567]86-*-* | x86_64-*-*)
14661 case $target_os in
14662 cygwin* | pe | mingw32*)
14663 # Used for DWARF 2 in PE
14664 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14665 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14666 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 else
14669 gcc_cv_as_ix86_pe_secrel32=no
14670 if test $in_tree_gas = yes; then
14671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14672 then gcc_cv_as_ix86_pe_secrel32=yes
14674 elif test x$gcc_cv_as != x; then
14675 echo '.text
14676 foo: nop
14677 .data
14678 .secrel32 foo' > conftest.s
14679 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14682 ac_status=$?
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }
14685 then
14686 if test x$gcc_cv_ld != x \
14687 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14688 gcc_cv_as_ix86_pe_secrel32=yes
14690 rm -f conftest
14691 else
14692 echo "configure: failed program was" >&5
14693 cat conftest.s >&5
14695 rm -f conftest.o conftest.s
14698 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14699 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14700 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14702 cat >>confdefs.h <<\_ACEOF
14703 #define HAVE_GAS_PE_SECREL32_RELOC 1
14704 _ACEOF
14708 esac
14710 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14711 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14712 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 else
14715 gcc_cv_as_ix86_filds_fists=no
14716 if test $in_tree_gas = yes; then
14717 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14718 then gcc_cv_as_ix86_filds_fists=yes
14720 elif test x$gcc_cv_as != x; then
14721 echo 'filds mem; fists mem' > conftest.s
14722 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }
14728 then
14729 gcc_cv_as_ix86_filds_fists=yes
14730 else
14731 echo "configure: failed program was" >&5
14732 cat conftest.s >&5
14734 rm -f conftest.o conftest.s
14737 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14738 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14739 if test $gcc_cv_as_ix86_filds_fists = yes; then
14741 cat >>confdefs.h <<\_ACEOF
14742 #define HAVE_GAS_FILDS_FISTS 1
14743 _ACEOF
14747 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14748 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14749 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 else
14752 gcc_cv_as_ix86_cmov_sun_syntax=no
14753 if test x$gcc_cv_as != x; then
14754 echo 'cmovl.l %edx, %eax' > conftest.s
14755 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }
14761 then
14762 gcc_cv_as_ix86_cmov_sun_syntax=yes
14763 else
14764 echo "configure: failed program was" >&5
14765 cat conftest.s >&5
14767 rm -f conftest.o conftest.s
14770 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14771 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14772 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14774 cat >>confdefs.h <<\_ACEOF
14775 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14776 _ACEOF
14780 # This one is used unconditionally by i386.[ch]; it is to be defined
14781 # to 1 if the feature is present, 0 otherwise.
14782 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14783 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14784 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787 gcc_cv_as_ix86_gotoff_in_data=no
14788 if test $in_tree_gas = yes; then
14789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14790 then gcc_cv_as_ix86_gotoff_in_data=yes
14792 elif test x$gcc_cv_as != x; then
14793 echo ' .text
14794 .L0:
14796 .data
14797 .long .L0@GOTOFF' > conftest.s
14798 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }
14804 then
14805 gcc_cv_as_ix86_gotoff_in_data=yes
14806 else
14807 echo "configure: failed program was" >&5
14808 cat conftest.s >&5
14810 rm -f conftest.o conftest.s
14813 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14814 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14817 cat >>confdefs.h <<_ACEOF
14818 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14819 _ACEOF
14823 ia64*-*-*)
14824 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14825 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14826 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 else
14829 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14830 if test $in_tree_gas = yes; then
14831 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14832 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14834 elif test x$gcc_cv_as != x; then
14835 echo ' .text
14836 addl r15 = @ltoffx(x#), gp
14838 ld8.mov r16 = [r15], x#' > conftest.s
14839 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }
14845 then
14846 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14847 else
14848 echo "configure: failed program was" >&5
14849 cat conftest.s >&5
14851 rm -f conftest.o conftest.s
14854 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14855 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14856 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14858 cat >>confdefs.h <<\_ACEOF
14859 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14860 _ACEOF
14866 powerpc*-*-*)
14867 case $target in
14868 *-*-aix*) conftest_s=' .machine "pwr5"
14869 .csect .text[PR]
14870 mfcr 3,128';;
14871 *-*-darwin*)
14872 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14873 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14874 if test "${gcc_cv_as_machine_directive+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877 gcc_cv_as_machine_directive=no
14878 if test x$gcc_cv_as != x; then
14879 echo ' .machine ppc7400' > conftest.s
14880 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }
14886 then
14887 gcc_cv_as_machine_directive=yes
14888 else
14889 echo "configure: failed program was" >&5
14890 cat conftest.s >&5
14892 rm -f conftest.o conftest.s
14895 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14896 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14898 if test x$gcc_cv_as_machine_directive != xyes; then
14899 echo "*** This target requires an assembler supporting \".machine\"" >&2
14900 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14901 test x$build = x$target && exit 1
14903 conftest_s=' .text
14904 mfcr r3,128';;
14905 *) conftest_s=' .machine power4
14906 .text
14907 mfcr 3,128';;
14908 esac
14910 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14911 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14912 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 else
14915 gcc_cv_as_powerpc_mfcrf=no
14916 if test $in_tree_gas = yes; then
14917 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14918 then gcc_cv_as_powerpc_mfcrf=yes
14920 elif test x$gcc_cv_as != x; then
14921 echo "$conftest_s" > conftest.s
14922 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }
14928 then
14929 gcc_cv_as_powerpc_mfcrf=yes
14930 else
14931 echo "configure: failed program was" >&5
14932 cat conftest.s >&5
14934 rm -f conftest.o conftest.s
14937 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14938 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14939 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_AS_MFCRF 1
14943 _ACEOF
14947 case $target in
14948 *-*-aix*) conftest_s=' .machine "pwr5"
14949 .csect .text[PR]
14950 popcntb 3,3';;
14951 *) conftest_s=' .machine power5
14952 .text
14953 popcntb 3,3';;
14954 esac
14956 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
14957 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
14958 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961 gcc_cv_as_powerpc_popcntb=no
14962 if test $in_tree_gas = yes; then
14963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14964 then gcc_cv_as_powerpc_popcntb=yes
14966 elif test x$gcc_cv_as != x; then
14967 echo "$conftest_s" > conftest.s
14968 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970 (eval $ac_try) 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }
14974 then
14975 gcc_cv_as_powerpc_popcntb=yes
14976 else
14977 echo "configure: failed program was" >&5
14978 cat conftest.s >&5
14980 rm -f conftest.o conftest.s
14983 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
14984 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
14985 if test $gcc_cv_as_powerpc_popcntb = yes; then
14987 cat >>confdefs.h <<\_ACEOF
14988 #define HAVE_AS_POPCNTB 1
14989 _ACEOF
14993 case $target in
14994 *-*-aix*) conftest_s=' .machine "pwr5x"
14995 .csect .text[PR]
14996 frin 1,1';;
14997 *) conftest_s=' .machine power5
14998 .text
14999 frin 1,1';;
15000 esac
15002 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15003 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15004 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007 gcc_cv_as_powerpc_fprnd=no
15008 if test $in_tree_gas = yes; then
15009 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15010 then gcc_cv_as_powerpc_fprnd=yes
15012 elif test x$gcc_cv_as != x; then
15013 echo "$conftest_s" > conftest.s
15014 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }
15020 then
15021 gcc_cv_as_powerpc_fprnd=yes
15022 else
15023 echo "configure: failed program was" >&5
15024 cat conftest.s >&5
15026 rm -f conftest.o conftest.s
15029 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15030 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15031 if test $gcc_cv_as_powerpc_fprnd = yes; then
15033 cat >>confdefs.h <<\_ACEOF
15034 #define HAVE_AS_FPRND 1
15035 _ACEOF
15039 case $target in
15040 *-*-aix*) conftest_s=' .csect .text[PR]
15041 LCF..0:
15042 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15043 *-*-darwin*)
15044 conftest_s=' .text
15045 LCF0:
15046 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15047 *) conftest_s=' .text
15048 .LCF0:
15049 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15050 esac
15052 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15053 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15054 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057 gcc_cv_as_powerpc_rel16=no
15058 if test $in_tree_gas = yes; then
15059 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15060 then gcc_cv_as_powerpc_rel16=yes
15062 elif test x$gcc_cv_as != x; then
15063 echo "$conftest_s" > conftest.s
15064 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }
15070 then
15071 gcc_cv_as_powerpc_rel16=yes
15072 else
15073 echo "configure: failed program was" >&5
15074 cat conftest.s >&5
15076 rm -f conftest.o conftest.s
15079 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15080 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15081 if test $gcc_cv_as_powerpc_rel16 = yes; then
15083 cat >>confdefs.h <<\_ACEOF
15084 #define HAVE_AS_REL16 1
15085 _ACEOF
15090 mips*-*-*)
15091 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15092 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15093 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 else
15096 gcc_cv_as_mips_explicit_relocs=no
15097 if test $in_tree_gas = yes; then
15098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15099 then gcc_cv_as_mips_explicit_relocs=yes
15101 elif test x$gcc_cv_as != x; then
15102 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15103 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }
15109 then
15110 gcc_cv_as_mips_explicit_relocs=yes
15111 else
15112 echo "configure: failed program was" >&5
15113 cat conftest.s >&5
15115 rm -f conftest.o conftest.s
15118 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15119 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15120 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15121 if test x$target_cpu_default = x
15122 then target_cpu_default=MASK_EXPLICIT_RELOCS
15123 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15127 esac
15129 # Mips and HP-UX need the GNU assembler.
15130 # Linux on IA64 might be able to use the Intel assembler.
15132 case "$target" in
15133 mips*-*-* | *-*-hpux* )
15134 if test x$gas_flag = xyes \
15135 || test x"$host" != x"$build" \
15136 || test ! -x "$gcc_cv_as" \
15137 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15139 else
15140 echo "*** This configuration requires the GNU assembler" >&2
15141 exit 1
15144 esac
15146 # ??? Not all targets support dwarf2 debug_line, even within a version
15147 # of gas. Moreover, we need to emit a valid instruction to trigger any
15148 # info to the output file. So, as supported targets are added to gas 2.11,
15149 # add some instruction here to (also) show we expect this might work.
15150 # ??? Once 2.11 is released, probably need to add first known working
15151 # version to the per-target configury.
15152 case "$target" in
15153 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15154 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15155 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15156 insn="nop"
15158 ia64*-*-* | s390*-*-*)
15159 insn="nop 0"
15161 mmix-*-*)
15162 insn="swym 0"
15164 esac
15165 if test x"$insn" != x; then
15166 conftest_s="\
15167 .file 1 \"conftest.s\"
15168 .loc 1 3 0
15169 $insn"
15170 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15171 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15172 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175 gcc_cv_as_dwarf2_debug_line=no
15176 if test $in_tree_gas = yes; then
15177 if test $in_tree_gas_is_elf = yes \
15178 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15179 then gcc_cv_as_dwarf2_debug_line=yes
15181 elif test x$gcc_cv_as != x; then
15182 echo "$conftest_s" > conftest.s
15183 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }
15189 then
15190 if test x$gcc_cv_objdump != x \
15191 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15192 | grep debug_line > /dev/null 2>&1; then
15193 gcc_cv_as_dwarf2_debug_line=yes
15195 else
15196 echo "configure: failed program was" >&5
15197 cat conftest.s >&5
15199 rm -f conftest.o conftest.s
15202 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15203 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15206 # The .debug_line file table must be in the exact order that
15207 # we specified the files, since these indices are also used
15208 # by DW_AT_decl_file. Approximate this test by testing if
15209 # the assembler bitches if the same index is assigned twice.
15210 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15211 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15212 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215 gcc_cv_as_dwarf2_file_buggy=no
15216 if test x$gcc_cv_as != x; then
15217 echo ' .file 1 "foo.s"
15218 .file 1 "bar.s"' > conftest.s
15219 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }
15225 then
15226 gcc_cv_as_dwarf2_file_buggy=yes
15227 else
15228 echo "configure: failed program was" >&5
15229 cat conftest.s >&5
15231 rm -f conftest.o conftest.s
15234 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15235 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15238 if test $gcc_cv_as_dwarf2_debug_line = yes \
15239 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15241 cat >>confdefs.h <<\_ACEOF
15242 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15243 _ACEOF
15247 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15248 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15249 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252 gcc_cv_as_gdwarf2_flag=no
15253 if test $in_tree_gas = yes; then
15254 if test $in_tree_gas_is_elf = yes \
15255 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15256 then gcc_cv_as_gdwarf2_flag=yes
15258 elif test x$gcc_cv_as != x; then
15259 echo "$insn" > conftest.s
15260 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }
15266 then
15267 gcc_cv_as_gdwarf2_flag=yes
15268 else
15269 echo "configure: failed program was" >&5
15270 cat conftest.s >&5
15272 rm -f conftest.o conftest.s
15275 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15276 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15277 if test $gcc_cv_as_gdwarf2_flag = yes; then
15279 cat >>confdefs.h <<\_ACEOF
15280 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15281 _ACEOF
15285 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15286 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15287 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290 gcc_cv_as_gstabs_flag=no
15291 if test $in_tree_gas = yes; then
15292 if test $in_tree_gas_is_elf = yes \
15293 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15294 then gcc_cv_as_gstabs_flag=yes
15296 elif test x$gcc_cv_as != x; then
15297 echo "$insn" > conftest.s
15298 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }
15304 then
15305 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15306 # and warns about it, but still exits successfully. So check for
15307 # this.
15308 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }
15314 then :
15315 else gcc_cv_as_gstabs_flag=yes
15317 else
15318 echo "configure: failed program was" >&5
15319 cat conftest.s >&5
15321 rm -f conftest.o conftest.s
15324 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15325 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15326 if test $gcc_cv_as_gstabs_flag = yes; then
15328 cat >>confdefs.h <<\_ACEOF
15329 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15330 _ACEOF
15335 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15336 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15337 gcc_cv_ld_ro_rw_mix=unknown
15338 if test $in_tree_ld = yes ; then
15339 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 \
15340 && test $in_tree_ld_is_elf = yes; then
15341 gcc_cv_ld_ro_rw_mix=read-write
15343 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15344 echo '.section myfoosect, "a"' > conftest1.s
15345 echo '.section myfoosect, "aw"' > conftest2.s
15346 echo '.byte 1' >> conftest2.s
15347 echo '.section myfoosect, "a"' > conftest3.s
15348 echo '.byte 0' >> conftest3.s
15349 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15350 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15351 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15352 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15353 conftest2.o conftest3.o > /dev/null 2>&1; then
15354 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15355 | sed -e '/myfoosect/!d' -e N`
15356 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15357 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15358 gcc_cv_ld_ro_rw_mix=read-only
15359 else
15360 gcc_cv_ld_ro_rw_mix=read-write
15364 rm -f conftest.* conftest[123].*
15366 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15368 cat >>confdefs.h <<\_ACEOF
15369 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15370 _ACEOF
15373 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15374 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15376 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15377 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15378 gcc_cv_ld_eh_frame_hdr=no
15379 if test $in_tree_ld = yes ; then
15380 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 \
15381 && test $in_tree_ld_is_elf = yes; then
15382 gcc_cv_ld_eh_frame_hdr=yes
15384 elif test x$gcc_cv_ld != x; then
15385 # Check if linker supports --eh-frame-hdr option
15386 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15387 gcc_cv_ld_eh_frame_hdr=yes
15391 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15393 cat >>confdefs.h <<\_ACEOF
15394 #define HAVE_LD_EH_FRAME_HDR 1
15395 _ACEOF
15398 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15399 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15401 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15402 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15403 gcc_cv_ld_pie=no
15404 if test $in_tree_ld = yes ; then
15405 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 \
15406 && test $in_tree_ld_is_elf = yes; then
15407 gcc_cv_ld_pie=yes
15409 elif test x$gcc_cv_ld != x; then
15410 # Check if linker supports -pie option
15411 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15412 gcc_cv_ld_pie=yes
15415 if test x"$gcc_cv_ld_pie" = xyes; then
15417 cat >>confdefs.h <<\_ACEOF
15418 #define HAVE_LD_PIE 1
15419 _ACEOF
15422 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15423 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15425 # --------
15426 # UNSORTED
15427 # --------
15429 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15430 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15431 if test "${gcc_cv_ld_as_needed+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15433 else
15434 gcc_cv_ld_as_needed=no
15435 if test $in_tree_ld = yes ; then
15436 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 \
15437 && test $in_tree_ld_is_elf = yes; then
15438 gcc_cv_ld_as_needed=yes
15440 elif test x$gcc_cv_ld != x; then
15441 # Check if linker supports --as-needed and --no-as-needed options
15442 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15443 gcc_cv_ld_as_needed=yes
15448 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15449 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15450 if test x"$gcc_cv_ld_as_needed" = xyes; then
15452 cat >>confdefs.h <<\_ACEOF
15453 #define HAVE_LD_AS_NEEDED 1
15454 _ACEOF
15458 case "$target:$tm_file" in
15459 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15460 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15461 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15462 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 else
15465 gcc_cv_ld_no_dot_syms=no
15466 if test $in_tree_ld = yes ; then
15467 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
15468 gcc_cv_ld_no_dot_syms=yes
15470 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15471 cat > conftest1.s <<EOF
15472 .text
15473 bl .foo
15475 cat > conftest2.s <<EOF
15476 .section ".opd","aw"
15477 .align 3
15478 .globl foo
15479 .type foo,@function
15480 foo:
15481 .quad .LEfoo,.TOC.@tocbase,0
15482 .text
15483 .LEfoo:
15485 .size foo,.-.LEfoo
15487 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15488 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15489 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15490 gcc_cv_ld_no_dot_syms=yes
15492 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15496 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15497 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15498 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15500 cat >>confdefs.h <<\_ACEOF
15501 #define HAVE_LD_NO_DOT_SYMS 1
15502 _ACEOF
15506 esac
15508 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15509 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15510 if test "${gcc_cv_ld_sysroot+set}" = set; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15512 else
15513 gcc_cv_ld_sysroot=no
15514 if test $in_tree_ld = yes ; then
15515 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
15516 gcc_cv_ld_sysroot=yes
15518 elif test x$gcc_cv_ld != x; then
15519 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15520 gcc_cv_ld_sysroot=yes
15524 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15525 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15526 if test x"$gcc_cv_ld_sysroot" = xyes; then
15528 cat >>confdefs.h <<\_ACEOF
15529 #define HAVE_LD_SYSROOT 1
15530 _ACEOF
15534 if test x$with_sysroot = x && test x$host = x$target \
15535 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15537 cat >>confdefs.h <<_ACEOF
15538 #define PREFIX_INCLUDE_DIR "$prefix/include"
15539 _ACEOF
15543 # Test for stack protector support in target C library.
15544 case "$target" in
15545 *-*-linux*)
15546 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15547 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15548 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551 gcc_cv_libc_provides_ssp=no
15552 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15553 if test "x$with_sysroot" = x; then
15554 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15555 elif test "x$with_sysroot" = xyes; then
15556 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15557 else
15558 glibc_header_dir="${with_sysroot}/usr/include"
15560 else
15561 glibc_header_dir=/usr/include
15563 # glibc 2.4 and later provides __stack_chk_fail and
15564 # either __stack_chk_guard, or TLS access to stack guard canary.
15565 if test -f $glibc_header_dir/features.h \
15566 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15567 $glibc_header_dir/features.h > /dev/null; then
15568 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15569 $glibc_header_dir/features.h > /dev/null; then
15570 gcc_cv_libc_provides_ssp=yes
15571 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15572 $glibc_header_dir/features.h > /dev/null \
15573 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15574 $glibc_header_dir/features.h > /dev/null; then
15575 gcc_cv_libc_provides_ssp=yes
15579 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15580 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15581 *) gcc_cv_libc_provides_ssp=no ;;
15582 esac
15583 if test x$gcc_cv_libc_provides_ssp = xyes; then
15585 cat >>confdefs.h <<\_ACEOF
15586 #define TARGET_LIBC_PROVIDES_SSP 1
15587 _ACEOF
15591 # Find out what GC implementation we want, or may, use.
15593 # Check whether --with-gc or --without-gc was given.
15594 if test "${with_gc+set}" = set; then
15595 withval="$with_gc"
15596 case "$withval" in
15597 page)
15598 GGC=ggc-$withval
15600 zone)
15601 GGC=ggc-$withval
15603 cat >>confdefs.h <<\_ACEOF
15604 #define GGC_ZONE 1
15605 _ACEOF
15609 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15610 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15611 { (exit 1); exit 1; }; }
15613 esac
15614 else
15615 GGC=ggc-page
15618 echo "Using $GGC for garbage collection."
15620 # Use the system's zlib library.
15621 zlibdir=-L../zlib
15622 zlibinc="-I\$(srcdir)/../zlib"
15624 # Check whether --with-system-zlib or --without-system-zlib was given.
15625 if test "${with_system_zlib+set}" = set; then
15626 withval="$with_system_zlib"
15627 zlibdir=
15628 zlibinc=
15635 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15636 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15637 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15638 if test "${enable_maintainer_mode+set}" = set; then
15639 enableval="$enable_maintainer_mode"
15640 maintainer_mode=$enableval
15641 else
15642 maintainer_mode=no
15645 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15646 echo "${ECHO_T}$maintainer_mode" >&6
15648 if test "$maintainer_mode" = "yes"; then
15649 MAINT=''
15650 else
15651 MAINT='#'
15654 # --------------
15655 # Language hooks
15656 # --------------
15658 # Make empty files to contain the specs and options for each language.
15659 # Then add #include lines to for a compiler that has specs and/or options.
15661 lang_opt_files=
15662 lang_specs_files=
15663 lang_tree_files=
15664 for subdir in . $subdirs
15666 if test -f $srcdir/$subdir/lang.opt; then
15667 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15669 if test -f $srcdir/$subdir/lang-specs.h; then
15670 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15672 if test -f $srcdir/$subdir/$subdir-tree.def; then
15673 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15675 done
15677 # These (without "all_") are set in each config-lang.in.
15678 # `language' must be a single word so is spelled singularly.
15679 all_languages=
15680 all_boot_languages=
15681 all_compilers=
15682 all_stagestuff=
15683 all_outputs='Makefile gccbug mklibgcc libada-mk'
15684 # List of language makefile fragments.
15685 all_lang_makefrags=
15686 # List of language subdirectory makefiles. Deprecated.
15687 all_lang_makefiles=
15688 # Files for gengtype
15689 all_gtfiles="$target_gtfiles"
15690 # Files for gengtype with language
15691 all_gtfiles_files_langs=
15692 all_gtfiles_files_files=
15694 # Add the language fragments.
15695 # Languages are added via two mechanisms. Some information must be
15696 # recorded in makefile variables, these are defined in config-lang.in.
15697 # We accumulate them and plug them into the main Makefile.
15698 # The other mechanism is a set of hooks for each of the main targets
15699 # like `clean', `install', etc.
15701 language_hooks="Make-hooks"
15703 for s in $subdirs
15705 language=
15706 boot_language=
15707 compilers=
15708 stagestuff=
15709 outputs=
15710 gtfiles=
15711 . ${srcdir}/$s/config-lang.in
15712 if test "x$language" = x
15713 then
15714 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15715 exit 1
15717 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15718 if test -f ${srcdir}/$s/Makefile.in
15719 then all_lang_makefiles="$s/Makefile"
15721 all_languages="$all_languages $language"
15722 if test "x$boot_language" = xyes
15723 then
15724 all_boot_languages="$all_boot_languages $language"
15726 all_compilers="$all_compilers $compilers"
15727 all_stagestuff="$all_stagestuff $stagestuff"
15728 all_outputs="$all_outputs $outputs"
15729 all_gtfiles="$all_gtfiles $gtfiles"
15730 for f in $gtfiles
15732 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15733 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15734 done
15735 done
15737 # Pick up gtfiles for c
15738 gtfiles=
15739 s="c"
15740 . ${srcdir}/c-config-lang.in
15741 all_gtfiles="$all_gtfiles $gtfiles"
15742 for f in $gtfiles
15744 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15745 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15746 done
15748 check_languages=
15749 for language in $all_languages
15751 check_languages="$check_languages check-$language"
15752 done
15754 # We link each language in with a set of hooks, reached indirectly via
15755 # lang.${target}.
15757 rm -f Make-hooks
15758 touch Make-hooks
15759 target_list="all.cross start.encap rest.encap tags \
15760 install-common install-man \
15761 uninstall info man srcextra srcman srcinfo \
15762 mostlyclean clean distclean maintainer-clean \
15763 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15764 for t in $target_list
15767 for lang in $all_languages
15769 x="$x $lang.$t"
15770 done
15771 echo "lang.$t: $x" >> Make-hooks
15772 done
15774 # --------
15775 # UNSORTED
15776 # --------
15778 # Create .gdbinit.
15780 echo "dir ." > .gdbinit
15781 echo "dir ${srcdir}" >> .gdbinit
15782 if test x$gdb_needs_out_file_path = xyes
15783 then
15784 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15786 if test "x$subdirs" != x; then
15787 for s in $subdirs
15789 echo "dir ${srcdir}/$s" >> .gdbinit
15790 done
15792 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15794 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15795 # absolute path for gcc_tooldir based on inserting the number of up-directory
15796 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15797 # $(libsubdir)/@(unlibsubdir) based path.
15798 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15799 # make and thus we'd get different behavior depending on where we built the
15800 # sources.
15801 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15802 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15803 else
15804 # An explanation of the sed strings:
15805 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15806 # -e 's|/$||' match a trailing forward slash and eliminates it
15807 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15808 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15810 # (*) Note this pattern overwrites the first character of the string
15811 # with a forward slash if one is not already present. This is not a
15812 # problem because the exact names of the sub-directories concerned is
15813 # unimportant, just the number of them matters.
15815 # The practical upshot of these patterns is like this:
15817 # prefix exec_prefix result
15818 # ------ ----------- ------
15819 # /foo /foo/bar ../
15820 # /foo/ /foo/bar ../
15821 # /foo /foo/bar/ ../
15822 # /foo/ /foo/bar/ ../
15823 # /foo /foo/bar/ugg ../../
15825 dollar='$$'
15826 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15831 # Find a directory in which to install a shared libgcc.
15833 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15834 if test "${enable_version_specific_runtime_libs+set}" = set; then
15835 enableval="$enable_version_specific_runtime_libs"
15840 # Check whether --with-slibdir or --without-slibdir was given.
15841 if test "${with_slibdir+set}" = set; then
15842 withval="$with_slibdir"
15843 slibdir="$with_slibdir"
15844 else
15845 if test "${enable_version_specific_runtime_libs+set}" = set; then
15846 slibdir='$(libsubdir)'
15847 elif test "$host" != "$target"; then
15848 slibdir='$(build_tooldir)/lib'
15849 else
15850 slibdir='$(libdir)'
15855 objdir=`${PWDCMD-pwd}`
15858 # Substitute configuration variables
15922 # Echo link setup.
15923 if test x${build} = x${host} ; then
15924 if test x${host} = x${target} ; then
15925 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15926 else
15927 echo "Links are now set up to build a cross-compiler" 1>&2
15928 echo " from ${host} to ${target}." 1>&2
15930 else
15931 if test x${host} = x${target} ; then
15932 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15933 echo " for ${target}." 1>&2
15934 else
15935 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15936 echo " from ${host} to ${target}." 1>&2
15943 # Configure the subdirectories
15944 # AC_CONFIG_SUBDIRS($subdirs)
15946 # Create the Makefile
15947 # and configure language subdirectories
15948 ac_config_files="$ac_config_files $all_outputs"
15951 ac_config_commands="$ac_config_commands default"
15953 cat >confcache <<\_ACEOF
15954 # This file is a shell script that caches the results of configure
15955 # tests run on this system so they can be shared between configure
15956 # scripts and configure runs, see configure's option --config-cache.
15957 # It is not useful on other systems. If it contains results you don't
15958 # want to keep, you may remove or edit it.
15960 # config.status only pays attention to the cache file if you give it
15961 # the --recheck option to rerun configure.
15963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15965 # following values.
15967 _ACEOF
15969 # The following way of writing the cache mishandles newlines in values,
15970 # but we know of no workaround that is simple, portable, and efficient.
15971 # So, don't put newlines in cache variables' values.
15972 # Ultrix sh set writes to stderr and can't be redirected directly,
15973 # and sets the high bit in the cache file unless we assign to the vars.
15975 (set) 2>&1 |
15976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15977 *ac_space=\ *)
15978 # `set' does not quote correctly, so add quotes (double-quote
15979 # substitution turns \\\\ into \\, and sed turns \\ into \).
15980 sed -n \
15981 "s/'/'\\\\''/g;
15982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15985 # `set' quotes correctly as required by POSIX, so do not add quotes.
15986 sed -n \
15987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15989 esac;
15991 sed '
15992 t clear
15993 : clear
15994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15995 t end
15996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15997 : end' >>confcache
15998 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15999 if test -w $cache_file; then
16000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16001 cat confcache >$cache_file
16002 else
16003 echo "not updating unwritable cache $cache_file"
16006 rm -f confcache
16008 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16009 # Let make expand exec_prefix.
16010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16012 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16013 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16014 # trailing colons and then remove the whole line if VPATH becomes empty
16015 # (actually we leave an empty line to preserve line numbers).
16016 if test "x$srcdir" = x.; then
16017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16018 s/:*\$(srcdir):*/:/;
16019 s/:*\${srcdir}:*/:/;
16020 s/:*@srcdir@:*/:/;
16021 s/^\([^=]*=[ ]*\):*/\1/;
16022 s/:*$//;
16023 s/^[^=]*=[ ]*$//;
16027 DEFS=-DHAVE_CONFIG_H
16029 ac_libobjs=
16030 ac_ltlibobjs=
16031 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16032 # 1. Remove the extension, and $U if already installed.
16033 ac_i=`echo "$ac_i" |
16034 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16035 # 2. Add them.
16036 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16037 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16038 done
16039 LIBOBJS=$ac_libobjs
16041 LTLIBOBJS=$ac_ltlibobjs
16045 : ${CONFIG_STATUS=./config.status}
16046 ac_clean_files_save=$ac_clean_files
16047 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16048 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16049 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16050 cat >$CONFIG_STATUS <<_ACEOF
16051 #! $SHELL
16052 # Generated by $as_me.
16053 # Run this file to recreate the current configuration.
16054 # Compiler output produced by configure, useful for debugging
16055 # configure, is in config.log if it exists.
16057 debug=false
16058 ac_cs_recheck=false
16059 ac_cs_silent=false
16060 SHELL=\${CONFIG_SHELL-$SHELL}
16061 _ACEOF
16063 cat >>$CONFIG_STATUS <<\_ACEOF
16064 ## --------------------- ##
16065 ## M4sh Initialization. ##
16066 ## --------------------- ##
16068 # Be Bourne compatible
16069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16070 emulate sh
16071 NULLCMD=:
16072 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16073 # is contrary to our usage. Disable this feature.
16074 alias -g '${1+"$@"}'='"$@"'
16075 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16076 set -o posix
16078 DUALCASE=1; export DUALCASE # for MKS sh
16080 # Support unset when possible.
16081 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16082 as_unset=unset
16083 else
16084 as_unset=false
16088 # Work around bugs in pre-3.0 UWIN ksh.
16089 $as_unset ENV MAIL MAILPATH
16090 PS1='$ '
16091 PS2='> '
16092 PS4='+ '
16094 # NLS nuisances.
16095 for as_var in \
16096 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16097 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16098 LC_TELEPHONE LC_TIME
16100 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16101 eval $as_var=C; export $as_var
16102 else
16103 $as_unset $as_var
16105 done
16107 # Required to use basename.
16108 if expr a : '\(a\)' >/dev/null 2>&1; then
16109 as_expr=expr
16110 else
16111 as_expr=false
16114 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16115 as_basename=basename
16116 else
16117 as_basename=false
16121 # Name of the executable.
16122 as_me=`$as_basename "$0" ||
16123 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16124 X"$0" : 'X\(//\)$' \| \
16125 X"$0" : 'X\(/\)$' \| \
16126 . : '\(.\)' 2>/dev/null ||
16127 echo X/"$0" |
16128 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16129 /^X\/\(\/\/\)$/{ s//\1/; q; }
16130 /^X\/\(\/\).*/{ s//\1/; q; }
16131 s/.*/./; q'`
16134 # PATH needs CR, and LINENO needs CR and PATH.
16135 # Avoid depending upon Character Ranges.
16136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16139 as_cr_digits='0123456789'
16140 as_cr_alnum=$as_cr_Letters$as_cr_digits
16142 # The user is always right.
16143 if test "${PATH_SEPARATOR+set}" != set; then
16144 echo "#! /bin/sh" >conf$$.sh
16145 echo "exit 0" >>conf$$.sh
16146 chmod +x conf$$.sh
16147 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16148 PATH_SEPARATOR=';'
16149 else
16150 PATH_SEPARATOR=:
16152 rm -f conf$$.sh
16156 as_lineno_1=$LINENO
16157 as_lineno_2=$LINENO
16158 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16159 test "x$as_lineno_1" != "x$as_lineno_2" &&
16160 test "x$as_lineno_3" = "x$as_lineno_2" || {
16161 # Find who we are. Look in the path if we contain no path at all
16162 # relative or not.
16163 case $0 in
16164 *[\\/]* ) as_myself=$0 ;;
16165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in $PATH
16168 IFS=$as_save_IFS
16169 test -z "$as_dir" && as_dir=.
16170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16171 done
16174 esac
16175 # We did not find ourselves, most probably we were run as `sh COMMAND'
16176 # in which case we are not to be found in the path.
16177 if test "x$as_myself" = x; then
16178 as_myself=$0
16180 if test ! -f "$as_myself"; then
16181 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16182 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16183 { (exit 1); exit 1; }; }
16185 case $CONFIG_SHELL in
16187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16190 IFS=$as_save_IFS
16191 test -z "$as_dir" && as_dir=.
16192 for as_base in sh bash ksh sh5; do
16193 case $as_dir in
16195 if ("$as_dir/$as_base" -c '
16196 as_lineno_1=$LINENO
16197 as_lineno_2=$LINENO
16198 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16199 test "x$as_lineno_1" != "x$as_lineno_2" &&
16200 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16201 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16202 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16203 CONFIG_SHELL=$as_dir/$as_base
16204 export CONFIG_SHELL
16205 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16206 fi;;
16207 esac
16208 done
16209 done
16211 esac
16213 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16214 # uniformly replaced by the line number. The first 'sed' inserts a
16215 # line-number line before each line; the second 'sed' does the real
16216 # work. The second script uses 'N' to pair each line-number line
16217 # with the numbered line, and appends trailing '-' during
16218 # substitution so that $LINENO is not a special case at line end.
16219 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16220 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16221 sed '=' <$as_myself |
16222 sed '
16224 s,$,-,
16225 : loop
16226 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16227 t loop
16228 s,-$,,
16229 s,^['$as_cr_digits']*\n,,
16230 ' >$as_me.lineno &&
16231 chmod +x $as_me.lineno ||
16232 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16233 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16234 { (exit 1); exit 1; }; }
16236 # Don't try to exec as it changes $[0], causing all sort of problems
16237 # (the dirname of $[0] is not the place where we might find the
16238 # original and so on. Autoconf is especially sensible to this).
16239 . ./$as_me.lineno
16240 # Exit status is that of the last command.
16241 exit
16245 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16246 *c*,-n*) ECHO_N= ECHO_C='
16247 ' ECHO_T=' ' ;;
16248 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16249 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16250 esac
16252 if expr a : '\(a\)' >/dev/null 2>&1; then
16253 as_expr=expr
16254 else
16255 as_expr=false
16258 rm -f conf$$ conf$$.exe conf$$.file
16259 echo >conf$$.file
16260 if ln -s conf$$.file conf$$ 2>/dev/null; then
16261 # We could just check for DJGPP; but this test a) works b) is more generic
16262 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16263 if test -f conf$$.exe; then
16264 # Don't use ln at all; we don't have any links
16265 as_ln_s='cp -p'
16266 else
16267 as_ln_s='ln -s'
16269 elif ln conf$$.file conf$$ 2>/dev/null; then
16270 as_ln_s=ln
16271 else
16272 as_ln_s='cp -p'
16274 rm -f conf$$ conf$$.exe conf$$.file
16276 if mkdir -p . 2>/dev/null; then
16277 as_mkdir_p=:
16278 else
16279 test -d ./-p && rmdir ./-p
16280 as_mkdir_p=false
16283 as_executable_p="test -f"
16285 # Sed expression to map a string onto a valid CPP name.
16286 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16288 # Sed expression to map a string onto a valid variable name.
16289 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16292 # IFS
16293 # We need space, tab and new line, in precisely that order.
16294 as_nl='
16296 IFS=" $as_nl"
16298 # CDPATH.
16299 $as_unset CDPATH
16301 exec 6>&1
16303 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16304 # report actual input values of CONFIG_FILES etc. instead of their
16305 # values after options handling. Logging --version etc. is OK.
16306 exec 5>>config.log
16308 echo
16309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16310 ## Running $as_me. ##
16311 _ASBOX
16312 } >&5
16313 cat >&5 <<_CSEOF
16315 This file was extended by $as_me, which was
16316 generated by GNU Autoconf 2.59. Invocation command line was
16318 CONFIG_FILES = $CONFIG_FILES
16319 CONFIG_HEADERS = $CONFIG_HEADERS
16320 CONFIG_LINKS = $CONFIG_LINKS
16321 CONFIG_COMMANDS = $CONFIG_COMMANDS
16322 $ $0 $@
16324 _CSEOF
16325 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16326 echo >&5
16327 _ACEOF
16329 # Files that config.status was made for.
16330 if test -n "$ac_config_files"; then
16331 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16334 if test -n "$ac_config_headers"; then
16335 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16338 if test -n "$ac_config_links"; then
16339 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16342 if test -n "$ac_config_commands"; then
16343 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16346 cat >>$CONFIG_STATUS <<\_ACEOF
16348 ac_cs_usage="\
16349 \`$as_me' instantiates files from templates according to the
16350 current configuration.
16352 Usage: $0 [OPTIONS] [FILE]...
16354 -h, --help print this help, then exit
16355 -V, --version print version number, then exit
16356 -q, --quiet do not print progress messages
16357 -d, --debug don't remove temporary files
16358 --recheck update $as_me by reconfiguring in the same conditions
16359 --file=FILE[:TEMPLATE]
16360 instantiate the configuration file FILE
16361 --header=FILE[:TEMPLATE]
16362 instantiate the configuration header FILE
16364 Configuration files:
16365 $config_files
16367 Configuration headers:
16368 $config_headers
16370 Configuration commands:
16371 $config_commands
16373 Report bugs to <bug-autoconf@gnu.org>."
16374 _ACEOF
16376 cat >>$CONFIG_STATUS <<_ACEOF
16377 ac_cs_version="\\
16378 config.status
16379 configured by $0, generated by GNU Autoconf 2.59,
16380 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16382 Copyright (C) 2003 Free Software Foundation, Inc.
16383 This config.status script is free software; the Free Software Foundation
16384 gives unlimited permission to copy, distribute and modify it."
16385 srcdir=$srcdir
16386 _ACEOF
16388 cat >>$CONFIG_STATUS <<\_ACEOF
16389 # If no file are specified by the user, then we need to provide default
16390 # value. By we need to know if files were specified by the user.
16391 ac_need_defaults=:
16392 while test $# != 0
16394 case $1 in
16395 --*=*)
16396 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16398 ac_shift=:
16401 ac_option=$1
16402 ac_optarg=$2
16403 ac_shift=shift
16405 *) # This is not an option, so the user has probably given explicit
16406 # arguments.
16407 ac_option=$1
16408 ac_need_defaults=false;;
16409 esac
16411 case $ac_option in
16412 # Handling of the options.
16413 _ACEOF
16414 cat >>$CONFIG_STATUS <<\_ACEOF
16415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16416 ac_cs_recheck=: ;;
16417 --version | --vers* | -V )
16418 echo "$ac_cs_version"; exit 0 ;;
16419 --he | --h)
16420 # Conflict between --help and --header
16421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16422 Try \`$0 --help' for more information." >&5
16423 echo "$as_me: error: ambiguous option: $1
16424 Try \`$0 --help' for more information." >&2;}
16425 { (exit 1); exit 1; }; };;
16426 --help | --hel | -h )
16427 echo "$ac_cs_usage"; exit 0 ;;
16428 --debug | --d* | -d )
16429 debug=: ;;
16430 --file | --fil | --fi | --f )
16431 $ac_shift
16432 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16433 ac_need_defaults=false;;
16434 --header | --heade | --head | --hea )
16435 $ac_shift
16436 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16437 ac_need_defaults=false;;
16438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16440 ac_cs_silent=: ;;
16442 # This is an error.
16443 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16444 Try \`$0 --help' for more information." >&5
16445 echo "$as_me: error: unrecognized option: $1
16446 Try \`$0 --help' for more information." >&2;}
16447 { (exit 1); exit 1; }; } ;;
16449 *) ac_config_targets="$ac_config_targets $1" ;;
16451 esac
16452 shift
16453 done
16455 ac_configure_extra_args=
16457 if $ac_cs_silent; then
16458 exec 6>/dev/null
16459 ac_configure_extra_args="$ac_configure_extra_args --silent"
16462 _ACEOF
16463 cat >>$CONFIG_STATUS <<_ACEOF
16464 if \$ac_cs_recheck; then
16465 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16466 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16469 _ACEOF
16471 cat >>$CONFIG_STATUS <<_ACEOF
16473 # INIT-COMMANDS section.
16476 subdirs='$subdirs'
16478 _ACEOF
16482 cat >>$CONFIG_STATUS <<\_ACEOF
16483 for ac_config_target in $ac_config_targets
16485 case "$ac_config_target" in
16486 # Handling of arguments.
16487 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16488 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16489 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16491 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16492 { (exit 1); exit 1; }; };;
16493 esac
16494 done
16496 # If the user did not use the arguments to specify the items to instantiate,
16497 # then the envvar interface is used. Set only those that are not.
16498 # We use the long form for the default assignment because of an extremely
16499 # bizarre bug on SunOS 4.1.3.
16500 if $ac_need_defaults; then
16501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16506 # Have a temporary directory for convenience. Make it in the build tree
16507 # simply because there is no reason to put it here, and in addition,
16508 # creating and moving files from /tmp can sometimes cause problems.
16509 # Create a temporary directory, and hook for its removal unless debugging.
16510 $debug ||
16512 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16513 trap '{ (exit 1); exit 1; }' 1 2 13 15
16516 # Create a (secure) tmp directory for tmp files.
16519 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16520 test -n "$tmp" && test -d "$tmp"
16521 } ||
16523 tmp=./confstat$$-$RANDOM
16524 (umask 077 && mkdir $tmp)
16525 } ||
16527 echo "$me: cannot create a temporary directory in ." >&2
16528 { (exit 1); exit 1; }
16531 _ACEOF
16533 cat >>$CONFIG_STATUS <<_ACEOF
16536 # CONFIG_FILES section.
16539 # No need to generate the scripts if there are no CONFIG_FILES.
16540 # This happens for instance when ./config.status config.h
16541 if test -n "\$CONFIG_FILES"; then
16542 # Protect against being on the right side of a sed subst in config.status.
16543 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16544 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16545 s,@SHELL@,$SHELL,;t t
16546 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16547 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16548 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16549 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16550 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16551 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16552 s,@exec_prefix@,$exec_prefix,;t t
16553 s,@prefix@,$prefix,;t t
16554 s,@program_transform_name@,$program_transform_name,;t t
16555 s,@bindir@,$bindir,;t t
16556 s,@sbindir@,$sbindir,;t t
16557 s,@libexecdir@,$libexecdir,;t t
16558 s,@datadir@,$datadir,;t t
16559 s,@sysconfdir@,$sysconfdir,;t t
16560 s,@sharedstatedir@,$sharedstatedir,;t t
16561 s,@localstatedir@,$localstatedir,;t t
16562 s,@libdir@,$libdir,;t t
16563 s,@includedir@,$includedir,;t t
16564 s,@oldincludedir@,$oldincludedir,;t t
16565 s,@infodir@,$infodir,;t t
16566 s,@mandir@,$mandir,;t t
16567 s,@build_alias@,$build_alias,;t t
16568 s,@host_alias@,$host_alias,;t t
16569 s,@target_alias@,$target_alias,;t t
16570 s,@DEFS@,$DEFS,;t t
16571 s,@ECHO_C@,$ECHO_C,;t t
16572 s,@ECHO_N@,$ECHO_N,;t t
16573 s,@ECHO_T@,$ECHO_T,;t t
16574 s,@LIBS@,$LIBS,;t t
16575 s,@build@,$build,;t t
16576 s,@build_cpu@,$build_cpu,;t t
16577 s,@build_vendor@,$build_vendor,;t t
16578 s,@build_os@,$build_os,;t t
16579 s,@host@,$host,;t t
16580 s,@host_cpu@,$host_cpu,;t t
16581 s,@host_vendor@,$host_vendor,;t t
16582 s,@host_os@,$host_os,;t t
16583 s,@target@,$target,;t t
16584 s,@target_cpu@,$target_cpu,;t t
16585 s,@target_vendor@,$target_vendor,;t t
16586 s,@target_os@,$target_os,;t t
16587 s,@target_noncanonical@,$target_noncanonical,;t t
16588 s,@build_subdir@,$build_subdir,;t t
16589 s,@host_subdir@,$host_subdir,;t t
16590 s,@target_subdir@,$target_subdir,;t t
16591 s,@GENINSRC@,$GENINSRC,;t t
16592 s,@CC@,$CC,;t t
16593 s,@CFLAGS@,$CFLAGS,;t t
16594 s,@LDFLAGS@,$LDFLAGS,;t t
16595 s,@CPPFLAGS@,$CPPFLAGS,;t t
16596 s,@ac_ct_CC@,$ac_ct_CC,;t t
16597 s,@EXEEXT@,$EXEEXT,;t t
16598 s,@OBJEXT@,$OBJEXT,;t t
16599 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16600 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16601 s,@CPP@,$CPP,;t t
16602 s,@EGREP@,$EGREP,;t t
16603 s,@strict1_warn@,$strict1_warn,;t t
16604 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16605 s,@warn_cflags@,$warn_cflags,;t t
16606 s,@WERROR@,$WERROR,;t t
16607 s,@nocommon_flag@,$nocommon_flag,;t t
16608 s,@TREEBROWSER@,$TREEBROWSER,;t t
16609 s,@valgrind_path@,$valgrind_path,;t t
16610 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16611 s,@valgrind_command@,$valgrind_command,;t t
16612 s,@coverage_flags@,$coverage_flags,;t t
16613 s,@enable_multilib@,$enable_multilib,;t t
16614 s,@enable_decimal_float@,$enable_decimal_float,;t t
16615 s,@enable_shared@,$enable_shared,;t t
16616 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16617 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16618 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16619 s,@onestep@,$onestep,;t t
16620 s,@SET_MAKE@,$SET_MAKE,;t t
16621 s,@AWK@,$AWK,;t t
16622 s,@LN_S@,$LN_S,;t t
16623 s,@LN@,$LN,;t t
16624 s,@RANLIB@,$RANLIB,;t t
16625 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16626 s,@ranlib_flags@,$ranlib_flags,;t t
16627 s,@INSTALL@,$INSTALL,;t t
16628 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16629 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16630 s,@make_compare_target@,$make_compare_target,;t t
16631 s,@have_mktemp_command@,$have_mktemp_command,;t t
16632 s,@MAKEINFO@,$MAKEINFO,;t t
16633 s,@BUILD_INFO@,$BUILD_INFO,;t t
16634 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16635 s,@FLEX@,$FLEX,;t t
16636 s,@BISON@,$BISON,;t t
16637 s,@NM@,$NM,;t t
16638 s,@AR@,$AR,;t t
16639 s,@stage1_cflags@,$stage1_cflags,;t t
16640 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16641 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16642 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16643 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16644 s,@LIBICONV@,$LIBICONV,;t t
16645 s,@LTLIBICONV@,$LTLIBICONV,;t t
16646 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16647 s,@manext@,$manext,;t t
16648 s,@objext@,$objext,;t t
16649 s,@gthread_flags@,$gthread_flags,;t t
16650 s,@extra_modes_file@,$extra_modes_file,;t t
16651 s,@extra_opt_files@,$extra_opt_files,;t t
16652 s,@USE_NLS@,$USE_NLS,;t t
16653 s,@LIBINTL@,$LIBINTL,;t t
16654 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16655 s,@INCINTL@,$INCINTL,;t t
16656 s,@XGETTEXT@,$XGETTEXT,;t t
16657 s,@GMSGFMT@,$GMSGFMT,;t t
16658 s,@POSUB@,$POSUB,;t t
16659 s,@CATALOGS@,$CATALOGS,;t t
16660 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16661 s,@CROSS@,$CROSS,;t t
16662 s,@ALL@,$ALL,;t t
16663 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16664 s,@inhibit_libc@,$inhibit_libc,;t t
16665 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16666 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16667 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16668 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16669 s,@collect2@,$collect2,;t t
16670 s,@gcc_cv_as@,$gcc_cv_as,;t t
16671 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
16672 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
16673 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
16674 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
16675 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
16676 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
16677 s,@libgcc_visibility@,$libgcc_visibility,;t t
16678 s,@GGC@,$GGC,;t t
16679 s,@zlibdir@,$zlibdir,;t t
16680 s,@zlibinc@,$zlibinc,;t t
16681 s,@MAINT@,$MAINT,;t t
16682 s,@gcc_tooldir@,$gcc_tooldir,;t t
16683 s,@dollar@,$dollar,;t t
16684 s,@slibdir@,$slibdir,;t t
16685 s,@objdir@,$objdir,;t t
16686 s,@subdirs@,$subdirs,;t t
16687 s,@srcdir@,$srcdir,;t t
16688 s,@all_boot_languages@,$all_boot_languages,;t t
16689 s,@all_compilers@,$all_compilers,;t t
16690 s,@all_gtfiles@,$all_gtfiles,;t t
16691 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16692 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16693 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16694 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16695 s,@all_languages@,$all_languages,;t t
16696 s,@all_stagestuff@,$all_stagestuff,;t t
16697 s,@build_exeext@,$build_exeext,;t t
16698 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16699 s,@build_xm_file_list@,$build_xm_file_list,;t t
16700 s,@build_xm_include_list@,$build_xm_include_list,;t t
16701 s,@build_xm_defines@,$build_xm_defines,;t t
16702 s,@check_languages@,$check_languages,;t t
16703 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16704 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16705 s,@cpp_install_dir@,$cpp_install_dir,;t t
16706 s,@xmake_file@,$xmake_file,;t t
16707 s,@tmake_file@,$tmake_file,;t t
16708 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16709 s,@extra_headers_list@,$extra_headers_list,;t t
16710 s,@extra_objs@,$extra_objs,;t t
16711 s,@extra_parts@,$extra_parts,;t t
16712 s,@extra_passes@,$extra_passes,;t t
16713 s,@extra_programs@,$extra_programs,;t t
16714 s,@float_h_file@,$float_h_file,;t t
16715 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16716 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16717 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16718 s,@host_exeext@,$host_exeext,;t t
16719 s,@host_xm_file_list@,$host_xm_file_list,;t t
16720 s,@host_xm_include_list@,$host_xm_include_list,;t t
16721 s,@host_xm_defines@,$host_xm_defines,;t t
16722 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16723 s,@install@,$install,;t t
16724 s,@lang_opt_files@,$lang_opt_files,;t t
16725 s,@lang_specs_files@,$lang_specs_files,;t t
16726 s,@lang_tree_files@,$lang_tree_files,;t t
16727 s,@local_prefix@,$local_prefix,;t t
16728 s,@md_file@,$md_file,;t t
16729 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16730 s,@out_file@,$out_file,;t t
16731 s,@out_object_file@,$out_object_file,;t t
16732 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16733 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16734 s,@thread_file@,$thread_file,;t t
16735 s,@tm_file_list@,$tm_file_list,;t t
16736 s,@tm_include_list@,$tm_include_list,;t t
16737 s,@tm_defines@,$tm_defines,;t t
16738 s,@tm_p_file_list@,$tm_p_file_list,;t t
16739 s,@tm_p_include_list@,$tm_p_include_list,;t t
16740 s,@xm_file_list@,$xm_file_list,;t t
16741 s,@xm_include_list@,$xm_include_list,;t t
16742 s,@xm_defines@,$xm_defines,;t t
16743 s,@c_target_objs@,$c_target_objs,;t t
16744 s,@cxx_target_objs@,$cxx_target_objs,;t t
16745 s,@target_cpu_default@,$target_cpu_default,;t t
16746 s,@GMPLIBS@,$GMPLIBS,;t t
16747 s,@GMPINC@,$GMPINC,;t t
16748 s,@LIBOBJS@,$LIBOBJS,;t t
16749 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16750 /@language_hooks@/r $language_hooks
16751 s,@language_hooks@,,;t t
16752 CEOF
16754 _ACEOF
16756 cat >>$CONFIG_STATUS <<\_ACEOF
16757 # Split the substitutions into bite-sized pieces for seds with
16758 # small command number limits, like on Digital OSF/1 and HP-UX.
16759 ac_max_sed_lines=48
16760 ac_sed_frag=1 # Number of current file.
16761 ac_beg=1 # First line for current file.
16762 ac_end=$ac_max_sed_lines # Line after last line for current file.
16763 ac_more_lines=:
16764 ac_sed_cmds=
16765 while $ac_more_lines; do
16766 if test $ac_beg -gt 1; then
16767 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16768 else
16769 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16771 if test ! -s $tmp/subs.frag; then
16772 ac_more_lines=false
16773 else
16774 # The purpose of the label and of the branching condition is to
16775 # speed up the sed processing (if there are no `@' at all, there
16776 # is no need to browse any of the substitutions).
16777 # These are the two extra sed commands mentioned above.
16778 (echo ':t
16779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16780 if test -z "$ac_sed_cmds"; then
16781 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16782 else
16783 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16785 ac_sed_frag=`expr $ac_sed_frag + 1`
16786 ac_beg=$ac_end
16787 ac_end=`expr $ac_end + $ac_max_sed_lines`
16789 done
16790 if test -z "$ac_sed_cmds"; then
16791 ac_sed_cmds=cat
16793 fi # test -n "$CONFIG_FILES"
16795 _ACEOF
16796 cat >>$CONFIG_STATUS <<\_ACEOF
16797 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16798 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16799 case $ac_file in
16800 - | *:- | *:-:* ) # input from stdin
16801 cat >$tmp/stdin
16802 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16804 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16806 * ) ac_file_in=$ac_file.in ;;
16807 esac
16809 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16810 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16812 X"$ac_file" : 'X\(//\)[^/]' \| \
16813 X"$ac_file" : 'X\(//\)$' \| \
16814 X"$ac_file" : 'X\(/\)' \| \
16815 . : '\(.\)' 2>/dev/null ||
16816 echo X"$ac_file" |
16817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16819 /^X\(\/\/\)$/{ s//\1/; q; }
16820 /^X\(\/\).*/{ s//\1/; q; }
16821 s/.*/./; q'`
16822 { if $as_mkdir_p; then
16823 mkdir -p "$ac_dir"
16824 else
16825 as_dir="$ac_dir"
16826 as_dirs=
16827 while test ! -d "$as_dir"; do
16828 as_dirs="$as_dir $as_dirs"
16829 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16831 X"$as_dir" : 'X\(//\)[^/]' \| \
16832 X"$as_dir" : 'X\(//\)$' \| \
16833 X"$as_dir" : 'X\(/\)' \| \
16834 . : '\(.\)' 2>/dev/null ||
16835 echo X"$as_dir" |
16836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16838 /^X\(\/\/\)$/{ s//\1/; q; }
16839 /^X\(\/\).*/{ s//\1/; q; }
16840 s/.*/./; q'`
16841 done
16842 test ! -n "$as_dirs" || mkdir $as_dirs
16843 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16845 { (exit 1); exit 1; }; }; }
16847 ac_builddir=.
16849 if test "$ac_dir" != .; then
16850 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16851 # A "../" for each directory in $ac_dir_suffix.
16852 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16853 else
16854 ac_dir_suffix= ac_top_builddir=
16857 case $srcdir in
16858 .) # No --srcdir option. We are building in place.
16859 ac_srcdir=.
16860 if test -z "$ac_top_builddir"; then
16861 ac_top_srcdir=.
16862 else
16863 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16864 fi ;;
16865 [\\/]* | ?:[\\/]* ) # Absolute path.
16866 ac_srcdir=$srcdir$ac_dir_suffix;
16867 ac_top_srcdir=$srcdir ;;
16868 *) # Relative path.
16869 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16870 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16871 esac
16873 # Do not use `cd foo && pwd` to compute absolute paths, because
16874 # the directories may not exist.
16875 case `pwd` in
16876 .) ac_abs_builddir="$ac_dir";;
16878 case "$ac_dir" in
16879 .) ac_abs_builddir=`pwd`;;
16880 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16881 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16882 esac;;
16883 esac
16884 case $ac_abs_builddir in
16885 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16887 case ${ac_top_builddir}. in
16888 .) ac_abs_top_builddir=$ac_abs_builddir;;
16889 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16890 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16891 esac;;
16892 esac
16893 case $ac_abs_builddir in
16894 .) ac_abs_srcdir=$ac_srcdir;;
16896 case $ac_srcdir in
16897 .) ac_abs_srcdir=$ac_abs_builddir;;
16898 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16899 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16900 esac;;
16901 esac
16902 case $ac_abs_builddir in
16903 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16905 case $ac_top_srcdir in
16906 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16907 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16908 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16909 esac;;
16910 esac
16914 # Let's still pretend it is `configure' which instantiates (i.e., don't
16915 # use $as_me), people would be surprised to read:
16916 # /* config.h. Generated by config.status. */
16917 if test x"$ac_file" = x-; then
16918 configure_input=
16919 else
16920 configure_input="$ac_file. "
16922 configure_input=$configure_input"Generated from `echo $ac_file_in |
16923 sed 's,.*/,,'` by configure."
16925 # First look for the input files in the build tree, otherwise in the
16926 # src tree.
16927 ac_file_inputs=`IFS=:
16928 for f in $ac_file_in; do
16929 case $f in
16930 -) echo $tmp/stdin ;;
16931 [\\/$]*)
16932 # Absolute (can't be DOS-style, as IFS=:)
16933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16934 echo "$as_me: error: cannot find input file: $f" >&2;}
16935 { (exit 1); exit 1; }; }
16936 echo "$f";;
16937 *) # Relative
16938 if test -f "$f"; then
16939 # Build tree
16940 echo "$f"
16941 elif test -f "$srcdir/$f"; then
16942 # Source tree
16943 echo "$srcdir/$f"
16944 else
16945 # /dev/null tree
16946 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16947 echo "$as_me: error: cannot find input file: $f" >&2;}
16948 { (exit 1); exit 1; }; }
16949 fi;;
16950 esac
16951 done` || { (exit 1); exit 1; }
16953 if test x"$ac_file" != x-; then
16954 { echo "$as_me:$LINENO: creating $ac_file" >&5
16955 echo "$as_me: creating $ac_file" >&6;}
16956 rm -f "$ac_file"
16958 _ACEOF
16959 cat >>$CONFIG_STATUS <<_ACEOF
16960 sed "$ac_vpsub
16961 $extrasub
16962 _ACEOF
16963 cat >>$CONFIG_STATUS <<\_ACEOF
16965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16966 s,@configure_input@,$configure_input,;t t
16967 s,@srcdir@,$ac_srcdir,;t t
16968 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16969 s,@top_srcdir@,$ac_top_srcdir,;t t
16970 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16971 s,@builddir@,$ac_builddir,;t t
16972 s,@abs_builddir@,$ac_abs_builddir,;t t
16973 s,@top_builddir@,$ac_top_builddir,;t t
16974 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16975 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16976 rm -f $tmp/stdin
16977 if test x"$ac_file" != x-; then
16978 mv $tmp/out $ac_file
16979 else
16980 cat $tmp/out
16981 rm -f $tmp/out
16984 done
16985 _ACEOF
16986 cat >>$CONFIG_STATUS <<\_ACEOF
16989 # CONFIG_HEADER section.
16992 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16993 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16995 # ac_d sets the value in "#define NAME VALUE" lines.
16996 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16997 ac_dB='[ ].*$,\1#\2'
16998 ac_dC=' '
16999 ac_dD=',;t'
17000 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17001 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17002 ac_uB='$,\1#\2define\3'
17003 ac_uC=' '
17004 ac_uD=',;t'
17006 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17007 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17008 case $ac_file in
17009 - | *:- | *:-:* ) # input from stdin
17010 cat >$tmp/stdin
17011 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17012 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17013 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17014 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17015 * ) ac_file_in=$ac_file.in ;;
17016 esac
17018 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17019 echo "$as_me: creating $ac_file" >&6;}
17021 # First look for the input files in the build tree, otherwise in the
17022 # src tree.
17023 ac_file_inputs=`IFS=:
17024 for f in $ac_file_in; do
17025 case $f in
17026 -) echo $tmp/stdin ;;
17027 [\\/$]*)
17028 # Absolute (can't be DOS-style, as IFS=:)
17029 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17030 echo "$as_me: error: cannot find input file: $f" >&2;}
17031 { (exit 1); exit 1; }; }
17032 # Do quote $f, to prevent DOS paths from being IFS'd.
17033 echo "$f";;
17034 *) # Relative
17035 if test -f "$f"; then
17036 # Build tree
17037 echo "$f"
17038 elif test -f "$srcdir/$f"; then
17039 # Source tree
17040 echo "$srcdir/$f"
17041 else
17042 # /dev/null tree
17043 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17044 echo "$as_me: error: cannot find input file: $f" >&2;}
17045 { (exit 1); exit 1; }; }
17046 fi;;
17047 esac
17048 done` || { (exit 1); exit 1; }
17049 # Remove the trailing spaces.
17050 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17052 _ACEOF
17054 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17055 # `conftest.undefs', that substitutes the proper values into
17056 # config.h.in to produce config.h. The first handles `#define'
17057 # templates, and the second `#undef' templates.
17058 # And first: Protect against being on the right side of a sed subst in
17059 # config.status. Protect against being in an unquoted here document
17060 # in config.status.
17061 rm -f conftest.defines conftest.undefs
17062 # Using a here document instead of a string reduces the quoting nightmare.
17063 # Putting comments in sed scripts is not portable.
17065 # `end' is used to avoid that the second main sed command (meant for
17066 # 0-ary CPP macros) applies to n-ary macro definitions.
17067 # See the Autoconf documentation for `clear'.
17068 cat >confdef2sed.sed <<\_ACEOF
17069 s/[\\&,]/\\&/g
17070 s,[\\$`],\\&,g
17071 t clear
17072 : clear
17073 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17074 t end
17075 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17076 : end
17077 _ACEOF
17078 # If some macros were called several times there might be several times
17079 # the same #defines, which is useless. Nevertheless, we may not want to
17080 # sort them, since we want the *last* AC-DEFINE to be honored.
17081 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17082 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17083 rm -f confdef2sed.sed
17085 # This sed command replaces #undef with comments. This is necessary, for
17086 # example, in the case of _POSIX_SOURCE, which is predefined and required
17087 # on some systems where configure will not decide to define it.
17088 cat >>conftest.undefs <<\_ACEOF
17089 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17090 _ACEOF
17092 # Break up conftest.defines because some shells have a limit on the size
17093 # of here documents, and old seds have small limits too (100 cmds).
17094 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17095 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17096 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17097 echo ' :' >>$CONFIG_STATUS
17098 rm -f conftest.tail
17099 while grep . conftest.defines >/dev/null
17101 # Write a limited-size here document to $tmp/defines.sed.
17102 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17103 # Speed up: don't consider the non `#define' lines.
17104 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17105 # Work around the forget-to-reset-the-flag bug.
17106 echo 't clr' >>$CONFIG_STATUS
17107 echo ': clr' >>$CONFIG_STATUS
17108 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17109 echo 'CEOF
17110 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17111 rm -f $tmp/in
17112 mv $tmp/out $tmp/in
17113 ' >>$CONFIG_STATUS
17114 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17115 rm -f conftest.defines
17116 mv conftest.tail conftest.defines
17117 done
17118 rm -f conftest.defines
17119 echo ' fi # grep' >>$CONFIG_STATUS
17120 echo >>$CONFIG_STATUS
17122 # Break up conftest.undefs because some shells have a limit on the size
17123 # of here documents, and old seds have small limits too (100 cmds).
17124 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17125 rm -f conftest.tail
17126 while grep . conftest.undefs >/dev/null
17128 # Write a limited-size here document to $tmp/undefs.sed.
17129 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17130 # Speed up: don't consider the non `#undef'
17131 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17132 # Work around the forget-to-reset-the-flag bug.
17133 echo 't clr' >>$CONFIG_STATUS
17134 echo ': clr' >>$CONFIG_STATUS
17135 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17136 echo 'CEOF
17137 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17138 rm -f $tmp/in
17139 mv $tmp/out $tmp/in
17140 ' >>$CONFIG_STATUS
17141 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17142 rm -f conftest.undefs
17143 mv conftest.tail conftest.undefs
17144 done
17145 rm -f conftest.undefs
17147 cat >>$CONFIG_STATUS <<\_ACEOF
17148 # Let's still pretend it is `configure' which instantiates (i.e., don't
17149 # use $as_me), people would be surprised to read:
17150 # /* config.h. Generated by config.status. */
17151 if test x"$ac_file" = x-; then
17152 echo "/* Generated by configure. */" >$tmp/config.h
17153 else
17154 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17156 cat $tmp/in >>$tmp/config.h
17157 rm -f $tmp/in
17158 if test x"$ac_file" != x-; then
17159 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17160 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17161 echo "$as_me: $ac_file is unchanged" >&6;}
17162 else
17163 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17165 X"$ac_file" : 'X\(//\)[^/]' \| \
17166 X"$ac_file" : 'X\(//\)$' \| \
17167 X"$ac_file" : 'X\(/\)' \| \
17168 . : '\(.\)' 2>/dev/null ||
17169 echo X"$ac_file" |
17170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17172 /^X\(\/\/\)$/{ s//\1/; q; }
17173 /^X\(\/\).*/{ s//\1/; q; }
17174 s/.*/./; q'`
17175 { if $as_mkdir_p; then
17176 mkdir -p "$ac_dir"
17177 else
17178 as_dir="$ac_dir"
17179 as_dirs=
17180 while test ! -d "$as_dir"; do
17181 as_dirs="$as_dir $as_dirs"
17182 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17184 X"$as_dir" : 'X\(//\)[^/]' \| \
17185 X"$as_dir" : 'X\(//\)$' \| \
17186 X"$as_dir" : 'X\(/\)' \| \
17187 . : '\(.\)' 2>/dev/null ||
17188 echo X"$as_dir" |
17189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17191 /^X\(\/\/\)$/{ s//\1/; q; }
17192 /^X\(\/\).*/{ s//\1/; q; }
17193 s/.*/./; q'`
17194 done
17195 test ! -n "$as_dirs" || mkdir $as_dirs
17196 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17197 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17198 { (exit 1); exit 1; }; }; }
17200 rm -f $ac_file
17201 mv $tmp/config.h $ac_file
17203 else
17204 cat $tmp/config.h
17205 rm -f $tmp/config.h
17207 done
17208 _ACEOF
17209 cat >>$CONFIG_STATUS <<\_ACEOF
17212 # CONFIG_COMMANDS section.
17214 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17215 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17216 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17217 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17218 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17219 X"$ac_dest" : 'X\(//\)[^/]' \| \
17220 X"$ac_dest" : 'X\(//\)$' \| \
17221 X"$ac_dest" : 'X\(/\)' \| \
17222 . : '\(.\)' 2>/dev/null ||
17223 echo X"$ac_dest" |
17224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17226 /^X\(\/\/\)$/{ s//\1/; q; }
17227 /^X\(\/\).*/{ s//\1/; q; }
17228 s/.*/./; q'`
17229 { if $as_mkdir_p; then
17230 mkdir -p "$ac_dir"
17231 else
17232 as_dir="$ac_dir"
17233 as_dirs=
17234 while test ! -d "$as_dir"; do
17235 as_dirs="$as_dir $as_dirs"
17236 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17238 X"$as_dir" : 'X\(//\)[^/]' \| \
17239 X"$as_dir" : 'X\(//\)$' \| \
17240 X"$as_dir" : 'X\(/\)' \| \
17241 . : '\(.\)' 2>/dev/null ||
17242 echo X"$as_dir" |
17243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17245 /^X\(\/\/\)$/{ s//\1/; q; }
17246 /^X\(\/\).*/{ s//\1/; q; }
17247 s/.*/./; q'`
17248 done
17249 test ! -n "$as_dirs" || mkdir $as_dirs
17250 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17251 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17252 { (exit 1); exit 1; }; }; }
17254 ac_builddir=.
17256 if test "$ac_dir" != .; then
17257 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17258 # A "../" for each directory in $ac_dir_suffix.
17259 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17260 else
17261 ac_dir_suffix= ac_top_builddir=
17264 case $srcdir in
17265 .) # No --srcdir option. We are building in place.
17266 ac_srcdir=.
17267 if test -z "$ac_top_builddir"; then
17268 ac_top_srcdir=.
17269 else
17270 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17271 fi ;;
17272 [\\/]* | ?:[\\/]* ) # Absolute path.
17273 ac_srcdir=$srcdir$ac_dir_suffix;
17274 ac_top_srcdir=$srcdir ;;
17275 *) # Relative path.
17276 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17277 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17278 esac
17280 # Do not use `cd foo && pwd` to compute absolute paths, because
17281 # the directories may not exist.
17282 case `pwd` in
17283 .) ac_abs_builddir="$ac_dir";;
17285 case "$ac_dir" in
17286 .) ac_abs_builddir=`pwd`;;
17287 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17288 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17289 esac;;
17290 esac
17291 case $ac_abs_builddir in
17292 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17294 case ${ac_top_builddir}. in
17295 .) ac_abs_top_builddir=$ac_abs_builddir;;
17296 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17297 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17298 esac;;
17299 esac
17300 case $ac_abs_builddir in
17301 .) ac_abs_srcdir=$ac_srcdir;;
17303 case $ac_srcdir in
17304 .) ac_abs_srcdir=$ac_abs_builddir;;
17305 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17306 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17307 esac;;
17308 esac
17309 case $ac_abs_builddir in
17310 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17312 case $ac_top_srcdir in
17313 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17314 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17315 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17316 esac;;
17317 esac
17320 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17321 echo "$as_me: executing $ac_dest commands" >&6;}
17322 case $ac_dest in
17323 default )
17324 case ${CONFIG_HEADERS} in
17325 *auto-host.h:config.in*)
17326 echo > cstamp-h ;;
17327 esac
17328 # Make sure all the subdirs exist.
17329 for d in $subdirs doc build
17331 test -d $d || mkdir $d
17332 done
17333 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17334 # bootstrapping and the installation procedure can still use
17335 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17336 # FLAGS_TO_PASS has been modified to solve the problem there.
17337 # This is virtually a duplicate of what happens in configure.lang; we do
17338 # an extra check to make sure this only happens if ln -s can be used.
17339 case "$LN_S" in
17340 *-s*)
17341 for d in ${subdirs} ; do
17342 STARTDIR=`${PWDCMD-pwd}`
17343 cd $d
17344 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17346 rm -f $t
17347 $LN_S ../$t $t 2>/dev/null
17348 done
17349 cd $STARTDIR
17350 done
17352 esac
17354 esac
17355 done
17356 _ACEOF
17358 cat >>$CONFIG_STATUS <<\_ACEOF
17360 { (exit 0); exit 0; }
17361 _ACEOF
17362 chmod +x $CONFIG_STATUS
17363 ac_clean_files=$ac_clean_files_save
17366 # configure is writing to config.log, and then calls config.status.
17367 # config.status does its own redirection, appending to config.log.
17368 # Unfortunately, on DOS this fails, as config.log is still kept open
17369 # by configure, so config.status won't be able to write to it; its
17370 # output is simply discarded. So we exec the FD to /dev/null,
17371 # effectively closing config.log, so it can be properly (re)opened and
17372 # appended to by config.status. When coming back to configure, we
17373 # need to make the FD available again.
17374 if test "$no_create" != yes; then
17375 ac_cs_success=:
17376 ac_config_status_args=
17377 test "$silent" = yes &&
17378 ac_config_status_args="$ac_config_status_args --quiet"
17379 exec 5>/dev/null
17380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17381 exec 5>>config.log
17382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17383 # would make configure fail if this is the last instruction.
17384 $ac_cs_success || { (exit 1); exit 1; }