2007-03-01 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / gcc / configure
blobe1f72d78463e5507c847b95f9c86d99609b32c52
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_libsubdir 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 strict_warn cxx_compat_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S 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 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 DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT 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_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file 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-checking=LIST
867 enable expensive run-time checks. With LIST,
868 enable only specific categories of checks.
869 Categories are: yes,no,all,none,release.
870 Flags are: assert,fold,gc,gcac,misc,
871 rtlflag,rtl,runtime,tree,valgrind.
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-decimal-float enable decimal float extension to C
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-tls enable or disable generation of tls code
886 overriding the assembler check for tls support
887 --enable-objc-gc enable the use of Boehm's garbage collector with
888 the GNU Objective-C runtime
889 --disable-shared don't provide a shared libgcc
890 --enable-intermodule build the compiler in one step
891 --enable-languages=LIST specify which front-ends to build
892 --disable-rpath do not hardcode runtime library paths
893 --enable-initfini-array use .init_array/.fini_array sections
894 --enable-sjlj-exceptions
895 arrange to use setjmp/longjmp exception handling
896 --enable-secureplt enable -msecure-plt by default for PowerPC
897 --disable-win32-registry
898 disable lookup of installation paths in the
899 Registry on Windows hosts
900 --enable-win32-registry enable registry lookup (default)
901 --enable-win32-registry=KEY
902 use KEY instead of GCC version as the last portion
903 of the registry key
904 --enable-maintainer-mode
905 enable make rules and dependencies not useful
906 (and sometimes confusing) to the casual installer
907 --enable-version-specific-runtime-libs
908 specify that runtime libraries should be
909 installed in a compiler-specific directory
911 Optional Packages:
912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
914 --with-build-libsubdir=DIR Directory where to find libraries for build system
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search for libiconv in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-long-double-128 Use 128-bit long double by default.
936 --with-gc={page,zone} choose the garbage collection mechanism to use
937 with the compiler
938 --with-system-zlib use installed libz
939 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
940 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
941 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
942 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
944 Some influential environment variables:
945 CC C compiler command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
948 nonstandard directory <lib dir>
949 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
950 headers in a nonstandard directory <include dir>
951 CPP C preprocessor
952 GMPLIBS How to link GMP
953 GMPINC How to find GMP include files
955 Use these variables to override the choices made by `configure' or to help
956 it to find libraries and programs with nonstandard names/locations.
958 _ACEOF
961 if test "$ac_init_help" = "recursive"; then
962 # If there are subdirs, report their specific --help.
963 ac_popdir=`pwd`
964 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
965 test -d $ac_dir || continue
966 ac_builddir=.
968 if test "$ac_dir" != .; then
969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
970 # A "../" for each directory in $ac_dir_suffix.
971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
972 else
973 ac_dir_suffix= ac_top_builddir=
976 case $srcdir in
977 .) # No --srcdir option. We are building in place.
978 ac_srcdir=.
979 if test -z "$ac_top_builddir"; then
980 ac_top_srcdir=.
981 else
982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
983 fi ;;
984 [\\/]* | ?:[\\/]* ) # Absolute path.
985 ac_srcdir=$srcdir$ac_dir_suffix;
986 ac_top_srcdir=$srcdir ;;
987 *) # Relative path.
988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
990 esac
992 # Do not use `cd foo && pwd` to compute absolute paths, because
993 # the directories may not exist.
994 case `pwd` in
995 .) ac_abs_builddir="$ac_dir";;
997 case "$ac_dir" in
998 .) ac_abs_builddir=`pwd`;;
999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1001 esac;;
1002 esac
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 case ${ac_top_builddir}. in
1007 .) ac_abs_top_builddir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1010 esac;;
1011 esac
1012 case $ac_abs_builddir in
1013 .) ac_abs_srcdir=$ac_srcdir;;
1015 case $ac_srcdir in
1016 .) ac_abs_srcdir=$ac_abs_builddir;;
1017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1019 esac;;
1020 esac
1021 case $ac_abs_builddir in
1022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 case $ac_top_srcdir in
1025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1028 esac;;
1029 esac
1031 cd $ac_dir
1032 # Check for guested configure; otherwise get Cygnus style configure.
1033 if test -f $ac_srcdir/configure.gnu; then
1034 echo
1035 $SHELL $ac_srcdir/configure.gnu --help=recursive
1036 elif test -f $ac_srcdir/configure; then
1037 echo
1038 $SHELL $ac_srcdir/configure --help=recursive
1039 elif test -f $ac_srcdir/configure.ac ||
1040 test -f $ac_srcdir/configure.in; then
1041 echo
1042 $ac_configure --help
1043 else
1044 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1046 cd $ac_popdir
1047 done
1050 test -n "$ac_init_help" && exit 0
1051 if $ac_init_version; then
1052 cat <<\_ACEOF
1054 Copyright (C) 2003 Free Software Foundation, Inc.
1055 This configure script is free software; the Free Software Foundation
1056 gives unlimited permission to copy, distribute and modify it.
1057 _ACEOF
1058 exit 0
1060 exec 5>config.log
1061 cat >&5 <<_ACEOF
1062 This file contains any messages produced by compilers while
1063 running configure, to aid debugging if configure makes a mistake.
1065 It was created by $as_me, which was
1066 generated by GNU Autoconf 2.59. Invocation command line was
1068 $ $0 $@
1070 _ACEOF
1072 cat <<_ASUNAME
1073 ## --------- ##
1074 ## Platform. ##
1075 ## --------- ##
1077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1089 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1094 _ASUNAME
1096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1097 for as_dir in $PATH
1099 IFS=$as_save_IFS
1100 test -z "$as_dir" && as_dir=.
1101 echo "PATH: $as_dir"
1102 done
1104 } >&5
1106 cat >&5 <<_ACEOF
1109 ## ----------- ##
1110 ## Core tests. ##
1111 ## ----------- ##
1113 _ACEOF
1116 # Keep a trace of the command line.
1117 # Strip out --no-create and --no-recursion so they do not pile up.
1118 # Strip out --silent because we don't want to record it for future runs.
1119 # Also quote any args containing shell meta-characters.
1120 # Make two passes to allow for proper duplicate-argument suppression.
1121 ac_configure_args=
1122 ac_configure_args0=
1123 ac_configure_args1=
1124 ac_sep=
1125 ac_must_keep_next=false
1126 for ac_pass in 1 2
1128 for ac_arg
1130 case $ac_arg in
1131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 continue ;;
1135 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1136 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1137 esac
1138 case $ac_pass in
1139 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1142 if test $ac_must_keep_next = true; then
1143 ac_must_keep_next=false # Got value, back to normal.
1144 else
1145 case $ac_arg in
1146 *=* | --config-cache | -C | -disable-* | --disable-* \
1147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1149 | -with-* | --with-* | -without-* | --without-* | --x)
1150 case "$ac_configure_args0 " in
1151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1152 esac
1154 -* ) ac_must_keep_next=true ;;
1155 esac
1157 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1158 # Get rid of the leading space.
1159 ac_sep=" "
1161 esac
1162 done
1163 done
1164 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1165 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167 # When interrupted or exit'd, cleanup temporary files, and complete
1168 # config.log. We remove comments because anyway the quotes in there
1169 # would cause problems or look ugly.
1170 # WARNING: Be sure not to use single quotes in there, as some shells,
1171 # such as our DU 5.0 friend, will then `close' the trap.
1172 trap 'exit_status=$?
1173 # Save into config.log some information that might help in debugging.
1175 echo
1177 cat <<\_ASBOX
1178 ## ---------------- ##
1179 ## Cache variables. ##
1180 ## ---------------- ##
1181 _ASBOX
1182 echo
1183 # The following way of writing the cache mishandles newlines in values,
1185 (set) 2>&1 |
1186 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1187 *ac_space=\ *)
1188 sed -n \
1189 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1193 sed -n \
1194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1196 esac;
1198 echo
1200 cat <<\_ASBOX
1201 ## ----------------- ##
1202 ## Output variables. ##
1203 ## ----------------- ##
1204 _ASBOX
1205 echo
1206 for ac_var in $ac_subst_vars
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1210 done | sort
1211 echo
1213 if test -n "$ac_subst_files"; then
1214 cat <<\_ASBOX
1215 ## ------------- ##
1216 ## Output files. ##
1217 ## ------------- ##
1218 _ASBOX
1219 echo
1220 for ac_var in $ac_subst_files
1222 eval ac_val=$`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1224 done | sort
1225 echo
1228 if test -s confdefs.h; then
1229 cat <<\_ASBOX
1230 ## ----------- ##
1231 ## confdefs.h. ##
1232 ## ----------- ##
1233 _ASBOX
1234 echo
1235 sed "/^$/d" confdefs.h | sort
1236 echo
1238 test "$ac_signal" != 0 &&
1239 echo "$as_me: caught signal $ac_signal"
1240 echo "$as_me: exit $exit_status"
1241 } >&5
1242 rm -f core *.core &&
1243 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1244 exit $exit_status
1246 for ac_signal in 1 2 13 15; do
1247 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1248 done
1249 ac_signal=0
1251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1252 rm -rf conftest* confdefs.h
1253 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1254 echo >confdefs.h
1256 # Predefined preprocessor variables.
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_NAME "$PACKAGE_NAME"
1260 _ACEOF
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1265 _ACEOF
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1270 _ACEOF
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_STRING "$PACKAGE_STRING"
1275 _ACEOF
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1280 _ACEOF
1283 # Let the site file select an alternate cache file if it wants to.
1284 # Prefer explicitly selected file to automatically selected ones.
1285 if test -z "$CONFIG_SITE"; then
1286 if test "x$prefix" != xNONE; then
1287 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1288 else
1289 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1292 for ac_site_file in $CONFIG_SITE; do
1293 if test -r "$ac_site_file"; then
1294 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295 echo "$as_me: loading site script $ac_site_file" >&6;}
1296 sed 's/^/| /' "$ac_site_file" >&5
1297 . "$ac_site_file"
1299 done
1301 if test -r "$cache_file"; then
1302 # Some versions of bash will fail to source /dev/null (special
1303 # files actually), so we avoid doing that.
1304 if test -f "$cache_file"; then
1305 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306 echo "$as_me: loading cache $cache_file" >&6;}
1307 case $cache_file in
1308 [\\/]* | ?:[\\/]* ) . $cache_file;;
1309 *) . ./$cache_file;;
1310 esac
1312 else
1313 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314 echo "$as_me: creating cache $cache_file" >&6;}
1315 >$cache_file
1318 # Check that the precious variables saved in the cache have kept the same
1319 # value.
1320 ac_cache_corrupted=false
1321 for ac_var in `(set) 2>&1 |
1322 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324 eval ac_new_set=\$ac_env_${ac_var}_set
1325 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326 eval ac_new_val="\$ac_env_${ac_var}_value"
1327 case $ac_old_set,$ac_new_set in
1328 set,)
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1331 ac_cache_corrupted=: ;;
1332 ,set)
1333 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1336 ,);;
1338 if test "x$ac_old_val" != "x$ac_new_val"; then
1339 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1340 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1341 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1342 echo "$as_me: former value: $ac_old_val" >&2;}
1343 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1344 echo "$as_me: current value: $ac_new_val" >&2;}
1345 ac_cache_corrupted=:
1346 fi;;
1347 esac
1348 # Pass precious variables to config.status.
1349 if test "$ac_new_set" = set; then
1350 case $ac_new_val in
1351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1353 *) ac_arg=$ac_var=$ac_new_val ;;
1354 esac
1355 case " $ac_configure_args " in
1356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1357 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1358 esac
1360 done
1361 if $ac_cache_corrupted; then
1362 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1365 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366 { (exit 1); exit 1; }; }
1369 ac_ext=c
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1394 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1397 gcc_version=`cat $srcdir/BASE-VER`
1399 # Determine the host, build, and target systems
1400 ac_aux_dir=
1401 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1402 if test -f $ac_dir/install-sh; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/install-sh -c"
1405 break
1406 elif test -f $ac_dir/install.sh; then
1407 ac_aux_dir=$ac_dir
1408 ac_install_sh="$ac_aux_dir/install.sh -c"
1409 break
1410 elif test -f $ac_dir/shtool; then
1411 ac_aux_dir=$ac_dir
1412 ac_install_sh="$ac_aux_dir/shtool install -c"
1413 break
1415 done
1416 if test -z "$ac_aux_dir"; then
1417 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1418 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1419 { (exit 1); exit 1; }; }
1421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1423 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425 # Make sure we can run config.sub.
1426 $ac_config_sub sun4 >/dev/null 2>&1 ||
1427 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1428 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1429 { (exit 1); exit 1; }; }
1431 echo "$as_me:$LINENO: checking build system type" >&5
1432 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1433 if test "${ac_cv_build+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 ac_cv_build_alias=$build_alias
1437 test -z "$ac_cv_build_alias" &&
1438 ac_cv_build_alias=`$ac_config_guess`
1439 test -z "$ac_cv_build_alias" &&
1440 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1442 { (exit 1); exit 1; }; }
1443 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1450 echo "${ECHO_T}$ac_cv_build" >&6
1451 build=$ac_cv_build
1452 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457 echo "$as_me:$LINENO: checking host system type" >&5
1458 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1459 if test "${ac_cv_host+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462 ac_cv_host_alias=$host_alias
1463 test -z "$ac_cv_host_alias" &&
1464 ac_cv_host_alias=$ac_cv_build_alias
1465 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1466 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1467 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1468 { (exit 1); exit 1; }; }
1471 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1472 echo "${ECHO_T}$ac_cv_host" >&6
1473 host=$ac_cv_host
1474 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1475 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1476 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1479 echo "$as_me:$LINENO: checking target system type" >&5
1480 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1481 if test "${ac_cv_target+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 ac_cv_target_alias=$target_alias
1485 test "x$ac_cv_target_alias" = "x" &&
1486 ac_cv_target_alias=$ac_cv_host_alias
1487 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1488 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1490 { (exit 1); exit 1; }; }
1493 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1494 echo "${ECHO_T}$ac_cv_target" >&6
1495 target=$ac_cv_target
1496 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1497 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1498 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1501 # The aliases save the names the user supplied, while $host etc.
1502 # will get canonicalized.
1503 test -n "$target_alias" &&
1504 test "$program_prefix$program_suffix$program_transform_name" = \
1505 NONENONEs,x,x, &&
1506 program_prefix=${target_alias}-
1508 # Determine the noncanonical target name, for directory use.
1509 case ${build_alias} in
1510 "") build_noncanonical=${build} ;;
1511 *) build_noncanonical=${build_alias} ;;
1512 esac
1514 case ${host_alias} in
1515 "") host_noncanonical=${build_noncanonical} ;;
1516 *) host_noncanonical=${host_alias} ;;
1517 esac
1519 case ${target_alias} in
1520 "") target_noncanonical=${host_noncanonical} ;;
1521 *) target_noncanonical=${target_alias} ;;
1522 esac
1527 # Determine the target- and build-specific subdirectories
1529 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1530 # have matching libraries, they should use host libraries: Makefile.tpl
1531 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1532 # However, they still use the build modules, because the corresponding
1533 # host modules (e.g. bison) are only built for the host when bootstrap
1534 # finishes. So:
1535 # - build_subdir is where we find build modules, and never changes.
1536 # - build_libsubdir is where we find build libraries, and can be overridden.
1538 # Prefix 'build-' so this never conflicts with target_subdir.
1539 build_subdir="build-${build_noncanonical}"
1541 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1542 if test "${with_build_libsubdir+set}" = set; then
1543 withval="$with_build_libsubdir"
1544 build_libsubdir="$withval"
1545 else
1546 build_libsubdir="$build_subdir"
1548 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1549 if ( test $srcdir = . && test -d gcc ) \
1550 || test -d $srcdir/../host-${host_noncanonical}; then
1551 host_subdir="host-${host_noncanonical}"
1552 else
1553 host_subdir=.
1555 # No prefix.
1556 target_subdir=${target_noncanonical}
1559 # Set program_transform_name
1560 test "$program_prefix" != NONE &&
1561 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1562 # Use a double $ so make ignores it.
1563 test "$program_suffix" != NONE &&
1564 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1565 # Double any \ or $. echo might interpret backslashes.
1566 # By default was `s,x,x', remove it if useless.
1567 cat <<\_ACEOF >conftest.sed
1568 s/[\\$]/&&/g;s/;s,x,x,$//
1569 _ACEOF
1570 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1571 rm conftest.sed
1574 # Check for bogus environment variables.
1575 # Test if LIBRARY_PATH contains the notation for the current directory
1576 # since this would lead to problems installing/building glibc.
1577 # LIBRARY_PATH contains the current directory if one of the following
1578 # is true:
1579 # - one of the terminals (":" and ";") is the first or last sign
1580 # - two terminals occur directly after each other
1581 # - the path contains an element with a dot in it
1582 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1583 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1584 case ${LIBRARY_PATH} in
1585 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1586 library_path_setting="contains current directory"
1589 library_path_setting="ok"
1591 esac
1592 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1593 echo "${ECHO_T}$library_path_setting" >&6
1594 if test "$library_path_setting" != "ok"; then
1595 { { echo "$as_me:$LINENO: error:
1596 *** LIBRARY_PATH shouldn't contain the current directory when
1597 *** building gcc. Please change the environment variable
1598 *** and run configure again." >&5
1599 echo "$as_me: error:
1600 *** LIBRARY_PATH shouldn't contain the current directory when
1601 *** building gcc. Please change the environment variable
1602 *** and run configure again." >&2;}
1603 { (exit 1); exit 1; }; }
1606 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1607 # since this would lead to problems installing/building glibc.
1608 # GCC_EXEC_PREFIX contains the current directory if one of the following
1609 # is true:
1610 # - one of the terminals (":" and ";") is the first or last sign
1611 # - two terminals occur directly after each other
1612 # - the path contains an element with a dot in it
1613 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1614 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1615 case ${GCC_EXEC_PREFIX} in
1616 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1617 gcc_exec_prefix_setting="contains current directory"
1620 gcc_exec_prefix_setting="ok"
1622 esac
1623 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1624 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1625 if test "$gcc_exec_prefix_setting" != "ok"; then
1626 { { echo "$as_me:$LINENO: error:
1627 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1628 *** building gcc. Please change the environment variable
1629 *** and run configure again." >&5
1630 echo "$as_me: error:
1631 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1632 *** building gcc. Please change the environment variable
1633 *** and run configure again." >&2;}
1634 { (exit 1); exit 1; }; }
1637 # -----------
1638 # Directories
1639 # -----------
1641 # Specify the local prefix
1642 local_prefix=
1644 # Check whether --with-local-prefix or --without-local-prefix was given.
1645 if test "${with_local_prefix+set}" = set; then
1646 withval="$with_local_prefix"
1647 case "${withval}" in
1648 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1649 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1650 { (exit 1); exit 1; }; } ;;
1651 no) ;;
1652 *) local_prefix=$with_local_prefix ;;
1653 esac
1656 # Default local prefix if it is empty
1657 if test x$local_prefix = x; then
1658 local_prefix=/usr/local
1661 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1662 # passed in by the toplevel make and thus we'd get different behavior
1663 # depending on where we built the sources.
1664 gcc_gxx_include_dir=
1665 # Specify the g++ header file directory
1667 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1668 if test "${with_gxx_include_dir+set}" = set; then
1669 withval="$with_gxx_include_dir"
1670 case "${withval}" in
1671 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1672 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1673 { (exit 1); exit 1; }; } ;;
1674 no) ;;
1675 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1676 esac
1679 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1680 if test x${gcc_gxx_include_dir} = x; then
1681 if test x${enable_version_specific_runtime_libs} = xyes; then
1682 gcc_gxx_include_dir='${libsubdir}/include/c++'
1683 else
1684 libstdcxx_incdir='include/c++/$(version)'
1685 if test x$host != x$target; then
1686 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1688 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1693 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1694 if test "${with_cpp_install_dir+set}" = set; then
1695 withval="$with_cpp_install_dir"
1696 if test x$withval = xyes; then
1697 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1698 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1699 { (exit 1); exit 1; }; }
1700 elif test x$withval != xno; then
1701 cpp_install_dir=$withval
1705 # We would like to our source tree to be readonly. However when releases or
1706 # pre-releases are generated, the flex/bison generated files as well as the
1707 # various formats of manuals need to be included along with the rest of the
1708 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1709 # just that.
1711 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1712 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1713 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1714 if test "${enable_generated_files_in_srcdir+set}" = set; then
1715 enableval="$enable_generated_files_in_srcdir"
1716 generated_files_in_srcdir=$enableval
1717 else
1718 generated_files_in_srcdir=no
1721 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1722 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1724 if test "$generated_files_in_srcdir" = "yes"; then
1725 GENINSRC=''
1726 else
1727 GENINSRC='#'
1731 # -------------------
1732 # Find default linker
1733 # -------------------
1735 # With GNU ld
1737 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1738 if test "${with_gnu_ld+set}" = set; then
1739 withval="$with_gnu_ld"
1740 gnu_ld_flag="$with_gnu_ld"
1741 else
1742 gnu_ld_flag=no
1745 # With pre-defined ld
1747 # Check whether --with-ld or --without-ld was given.
1748 if test "${with_ld+set}" = set; then
1749 withval="$with_ld"
1750 DEFAULT_LINKER="$with_ld"
1752 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1753 if test ! -x "$DEFAULT_LINKER"; then
1754 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1755 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1756 { (exit 1); exit 1; }; }
1757 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1758 gnu_ld_flag=yes
1761 cat >>confdefs.h <<_ACEOF
1762 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1763 _ACEOF
1767 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1768 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1769 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1770 if test x"$gnu_ld_flag" = x"no"; then
1771 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1772 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1773 else
1774 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1775 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1777 else
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1782 # With demangler in GNU ld
1784 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1785 if test "${with_demangler_in_ld+set}" = set; then
1786 withval="$with_demangler_in_ld"
1787 demangler_in_ld="$with_demangler_in_ld"
1788 else
1789 demangler_in_ld=no
1792 # ----------------------
1793 # Find default assembler
1794 # ----------------------
1796 # With GNU as
1798 # Check whether --with-gnu-as or --without-gnu-as was given.
1799 if test "${with_gnu_as+set}" = set; then
1800 withval="$with_gnu_as"
1801 gas_flag="$with_gnu_as"
1802 else
1803 gas_flag=no
1807 # Check whether --with-as or --without-as was given.
1808 if test "${with_as+set}" = set; then
1809 withval="$with_as"
1810 DEFAULT_ASSEMBLER="$with_as"
1812 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1813 if test ! -x "$DEFAULT_ASSEMBLER"; then
1814 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1815 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1816 { (exit 1); exit 1; }; }
1817 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1818 gas_flag=yes
1821 cat >>confdefs.h <<_ACEOF
1822 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1823 _ACEOF
1827 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1828 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1829 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1830 if test x"$gas_flag" = x"no"; then
1831 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1832 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1833 else
1834 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1835 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1842 # ---------------
1843 # Find C compiler
1844 # ---------------
1846 # If a non-executable a.out is present (e.g. created by GNU as above even if
1847 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1848 # file, even when creating an executable, so an execution test fails.
1849 # Remove possible default executable files to avoid this.
1851 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1852 # Autoconf includes it.
1853 rm -f a.out a.exe b.out
1855 # Find the native compiler
1856 ac_ext=c
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1863 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1883 done
1884 done
1888 CC=$ac_cv_prog_CC
1889 if test -n "$CC"; then
1890 echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1898 if test -z "$ac_cv_prog_CC"; then
1899 ac_ct_CC=$CC
1900 # Extract the first word of "gcc", so it can be a program name with args.
1901 set dummy gcc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 if test -n "$ac_ct_CC"; then
1908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_CC="gcc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1921 done
1922 done
1926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1927 if test -n "$ac_ct_CC"; then
1928 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1929 echo "${ECHO_T}$ac_ct_CC" >&6
1930 else
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1935 CC=$ac_ct_CC
1936 else
1937 CC="$ac_cv_prog_CC"
1940 if test -z "$CC"; then
1941 if test -n "$ac_tool_prefix"; then
1942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}cc; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_CC+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 if test -n "$CC"; then
1950 ac_cv_prog_CC="$CC" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959 ac_cv_prog_CC="${ac_tool_prefix}cc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1963 done
1964 done
1968 CC=$ac_cv_prog_CC
1969 if test -n "$CC"; then
1970 echo "$as_me:$LINENO: result: $CC" >&5
1971 echo "${ECHO_T}$CC" >&6
1972 else
1973 echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1978 if test -z "$ac_cv_prog_CC"; then
1979 ac_ct_CC=$CC
1980 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 if test -n "$ac_ct_CC"; then
1988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
1996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997 ac_cv_prog_ac_ct_CC="cc"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 break 2
2001 done
2002 done
2006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2007 if test -n "$ac_ct_CC"; then
2008 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2009 echo "${ECHO_T}$ac_ct_CC" >&6
2010 else
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2015 CC=$ac_ct_CC
2016 else
2017 CC="$ac_cv_prog_CC"
2021 if test -z "$CC"; then
2022 # Extract the first word of "cc", so it can be a program name with args.
2023 set dummy cc; ac_word=$2
2024 echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026 if test "${ac_cv_prog_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029 if test -n "$CC"; then
2030 ac_cv_prog_CC="$CC" # Let the user override the test.
2031 else
2032 ac_prog_rejected=no
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2041 ac_prog_rejected=yes
2042 continue
2044 ac_cv_prog_CC="cc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2048 done
2049 done
2051 if test $ac_prog_rejected = yes; then
2052 # We found a bogon in the path, so make sure we never use it.
2053 set dummy $ac_cv_prog_CC
2054 shift
2055 if test $# != 0; then
2056 # We chose a different compiler from the bogus one.
2057 # However, it has the same basename, so the bogon will be chosen
2058 # first if we set CC to just the basename; use the full file name.
2059 shift
2060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2065 CC=$ac_cv_prog_CC
2066 if test -n "$CC"; then
2067 echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6
2069 else
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2075 if test -z "$CC"; then
2076 if test -n "$ac_tool_prefix"; then
2077 for ac_prog in cl
2079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2100 done
2101 done
2105 CC=$ac_cv_prog_CC
2106 if test -n "$CC"; then
2107 echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6
2109 else
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 test -n "$CC" && break
2115 done
2117 if test -z "$CC"; then
2118 ac_ct_CC=$CC
2119 for ac_prog in cl
2121 # Extract the first word of "$ac_prog", so it can be a program name with args.
2122 set dummy $ac_prog; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 if test -n "$ac_ct_CC"; then
2129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_ac_ct_CC="$ac_prog"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2142 done
2143 done
2147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 echo "${ECHO_T}$ac_ct_CC" >&6
2151 else
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2156 test -n "$ac_ct_CC" && break
2157 done
2159 CC=$ac_ct_CC
2165 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: no acceptable C compiler found in \$PATH
2168 See \`config.log' for more details." >&2;}
2169 { (exit 1); exit 1; }; }
2171 # Provide some information about the compiler.
2172 echo "$as_me:$LINENO:" \
2173 "checking for C compiler version" >&5
2174 ac_compiler=`set X $ac_compile; echo $2`
2175 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2176 (eval $ac_compiler --version </dev/null >&5) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }
2180 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2181 (eval $ac_compiler -v </dev/null >&5) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }
2185 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2186 (eval $ac_compiler -V </dev/null >&5) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }
2191 cat >conftest.$ac_ext <<_ACEOF
2192 /* confdefs.h. */
2193 _ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h. */
2199 main ()
2203 return 0;
2205 _ACEOF
2206 ac_clean_files_save=$ac_clean_files
2207 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2208 # Try to create an executable without -o first, disregard a.out.
2209 # It will help us diagnose broken compilers, and finding out an intuition
2210 # of exeext.
2211 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2212 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2213 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2214 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2215 (eval $ac_link_default) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; then
2219 # Find the output, starting from the most likely. This scheme is
2220 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2221 # resort.
2223 # Be careful to initialize this variable, since it used to be cached.
2224 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2225 ac_cv_exeext=
2226 # b.out is created by i960 compilers.
2227 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2229 test -f "$ac_file" || continue
2230 case $ac_file in
2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2233 conftest.$ac_ext )
2234 # This is the source file.
2236 [ab].out )
2237 # We found the default executable, but exeext='' is most
2238 # certainly right.
2239 break;;
2240 *.* )
2241 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242 # FIXME: I believe we export ac_cv_exeext for Libtool,
2243 # but it would be cool to find out if it's true. Does anybody
2244 # maintain Libtool? --akim.
2245 export ac_cv_exeext
2246 break;;
2248 break;;
2249 esac
2250 done
2251 else
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2255 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: C compiler cannot create executables
2258 See \`config.log' for more details." >&2;}
2259 { (exit 77); exit 77; }; }
2262 ac_exeext=$ac_cv_exeext
2263 echo "$as_me:$LINENO: result: $ac_file" >&5
2264 echo "${ECHO_T}$ac_file" >&6
2266 # Check the compiler produces executables we can run. If not, either
2267 # the compiler is broken, or we cross compile.
2268 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2269 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2270 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2271 # If not cross compiling, check that we can run a simple program.
2272 if test "$cross_compiling" != yes; then
2273 if { ac_try='./$ac_file'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 cross_compiling=no
2280 else
2281 if test "$cross_compiling" = maybe; then
2282 cross_compiling=yes
2283 else
2284 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285 If you meant to cross compile, use \`--host'.
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot run C compiled programs.
2288 If you meant to cross compile, use \`--host'.
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2294 echo "$as_me:$LINENO: result: yes" >&5
2295 echo "${ECHO_T}yes" >&6
2297 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2298 ac_clean_files=$ac_clean_files_save
2299 # Check the compiler produces executables we can run. If not, either
2300 # the compiler is broken, or we cross compile.
2301 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2303 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304 echo "${ECHO_T}$cross_compiling" >&6
2306 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2309 (eval $ac_link) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
2313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2315 # work properly (i.e., refer to `conftest.exe'), while it won't with
2316 # `rm'.
2317 for ac_file in conftest.exe conftest conftest.*; do
2318 test -f "$ac_file" || continue
2319 case $ac_file in
2320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 export ac_cv_exeext
2323 break;;
2324 * ) break;;
2325 esac
2326 done
2327 else
2328 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2331 See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
2335 rm -f conftest$ac_cv_exeext
2336 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2337 echo "${ECHO_T}$ac_cv_exeext" >&6
2339 rm -f conftest.$ac_ext
2340 EXEEXT=$ac_cv_exeext
2341 ac_exeext=$EXEEXT
2342 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2343 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2344 if test "${ac_cv_objext+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347 cat >conftest.$ac_ext <<_ACEOF
2348 /* confdefs.h. */
2349 _ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2355 main ()
2359 return 0;
2361 _ACEOF
2362 rm -f conftest.o conftest.obj
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364 (eval $ac_compile) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; then
2368 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2369 case $ac_file in
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2372 break;;
2373 esac
2374 done
2375 else
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2388 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6
2390 OBJEXT=$ac_cv_objext
2391 ac_objext=$OBJEXT
2392 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h. */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2405 main ()
2407 #ifndef __GNUC__
2408 choke me
2409 #endif
2412 return 0;
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2418 ac_status=$?
2419 grep -v '^ *+' conftest.er1 >conftest.err
2420 rm -f conftest.er1
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_c_werror_flag"
2425 || test ! -s conftest.err'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2437 ac_compiler_gnu=yes
2438 else
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2442 ac_compiler_gnu=no
2444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2448 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2450 GCC=`test $ac_compiler_gnu = yes && echo yes`
2451 ac_test_CFLAGS=${CFLAGS+set}
2452 ac_save_CFLAGS=$CFLAGS
2453 CFLAGS="-g"
2454 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2456 if test "${ac_cv_prog_cc_g+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459 cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h. */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2467 main ()
2471 return 0;
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -z "$ac_c_werror_flag"
2484 || test ! -s conftest.err'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 ac_cv_prog_cc_g=yes
2497 else
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2501 ac_cv_prog_cc_g=no
2503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2506 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2507 if test "$ac_test_CFLAGS" = set; then
2508 CFLAGS=$ac_save_CFLAGS
2509 elif test $ac_cv_prog_cc_g = yes; then
2510 if test "$GCC" = yes; then
2511 CFLAGS="-g -O2"
2512 else
2513 CFLAGS="-g"
2515 else
2516 if test "$GCC" = yes; then
2517 CFLAGS="-O2"
2518 else
2519 CFLAGS=
2522 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2523 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2524 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 ac_cv_prog_cc_stdc=no
2528 ac_save_CC=$CC
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 #include <stdarg.h>
2536 #include <stdio.h>
2537 #include <sys/types.h>
2538 #include <sys/stat.h>
2539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2540 struct buf { int x; };
2541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2542 static char *e (p, i)
2543 char **p;
2544 int i;
2546 return p[i];
2548 static char *f (char * (*g) (char **, int), char **p, ...)
2550 char *s;
2551 va_list v;
2552 va_start (v,p);
2553 s = g (p, va_arg (v,int));
2554 va_end (v);
2555 return s;
2558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2559 function prototypes and stuff, but not '\xHH' hex character constants.
2560 These don't provoke an error unfortunately, instead are silently treated
2561 as 'x'. The following induces an error, until -std1 is added to get
2562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2563 array size at least. It's necessary to write '\x00'==0 to get something
2564 that's true only with -std1. */
2565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2567 int test (int i, double x);
2568 struct s1 {int (*f) (int a);};
2569 struct s2 {int (*f) (double a);};
2570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2571 int argc;
2572 char **argv;
2574 main ()
2576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2578 return 0;
2580 _ACEOF
2581 # Don't try gcc -ansi; that turns off useful extensions and
2582 # breaks some systems' header files.
2583 # AIX -qlanglvl=ansi
2584 # Ultrix and OSF/1 -std1
2585 # HP-UX 10.20 and later -Ae
2586 # HP-UX older versions -Aa -D_HPUX_SOURCE
2587 # SVR4 -Xc -D__EXTENSIONS__
2588 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2590 CC="$ac_save_CC $ac_arg"
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>conftest.er1
2594 ac_status=$?
2595 grep -v '^ *+' conftest.er1 >conftest.err
2596 rm -f conftest.er1
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -z "$ac_c_werror_flag"
2601 || test ! -s conftest.err'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 ac_cv_prog_cc_stdc=$ac_arg
2614 break
2615 else
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2620 rm -f conftest.err conftest.$ac_objext
2621 done
2622 rm -f conftest.$ac_ext conftest.$ac_objext
2623 CC=$ac_save_CC
2627 case "x$ac_cv_prog_cc_stdc" in
2628 x|xno)
2629 echo "$as_me:$LINENO: result: none needed" >&5
2630 echo "${ECHO_T}none needed" >&6 ;;
2632 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2633 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2634 CC="$CC $ac_cv_prog_cc_stdc" ;;
2635 esac
2637 # Some people use a C++ compiler to compile C. Since we use `exit',
2638 # in C++ we need to declare it. In case someone uses the same compiler
2639 # for both compiling C and C++ we need to have the C++ compiler decide
2640 # the declaration of exit, since it's the most demanding environment.
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #ifndef __cplusplus
2643 choke me
2644 #endif
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 for ac_declaration in \
2669 '' \
2670 'extern "C" void std::exit (int) throw (); using std::exit;' \
2671 'extern "C" void std::exit (int); using std::exit;' \
2672 'extern "C" void exit (int) throw ();' \
2673 'extern "C" void exit (int);' \
2674 'void exit (int);'
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h. */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682 $ac_declaration
2683 #include <stdlib.h>
2685 main ()
2687 exit (42);
2689 return 0;
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2695 ac_status=$?
2696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag"
2702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2719 continue
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728 $ac_declaration
2730 main ()
2732 exit (42);
2734 return 0;
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_c_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 break
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766 done
2767 rm -f conftest*
2768 if test -n "$ac_declaration"; then
2769 echo '#ifdef __cplusplus' >>confdefs.h
2770 echo $ac_declaration >>confdefs.h
2771 echo '#endif' >>confdefs.h
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_ext=c
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 if test "x$CC" != xcc; then
2787 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2788 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2789 else
2790 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2791 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2793 set dummy $CC; ac_cc=`echo $2 |
2794 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2795 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2806 main ()
2810 return 0;
2812 _ACEOF
2813 # Make sure it works both with $CC and with simple cc.
2814 # We do the test twice because some compilers refuse to overwrite an
2815 # existing .o file with -o, though they will create one.
2816 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2817 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); };
2827 then
2828 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2829 if test "x$CC" != xcc; then
2830 # Test first that cc exists at all.
2831 if { ac_try='cc -c conftest.$ac_ext >&5'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2838 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); };
2848 then
2849 # cc works too.
2851 else
2852 # cc exists but doesn't like -o.
2853 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2857 else
2858 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2860 rm -f conftest*
2863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2864 echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6
2866 else
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2870 cat >>confdefs.h <<\_ACEOF
2871 #define NO_MINUS_C_MINUS_O 1
2872 _ACEOF
2876 # expand $ac_aux_dir to an absolute path
2877 am_aux_dir=`cd $ac_aux_dir && pwd`
2879 # FIXME: we rely on the cache variable name because
2880 # there is no other way.
2881 set dummy $CC
2882 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2884 # Losing compiler, so override with the script.
2885 # FIXME: It is wrong to rewrite CC.
2886 # But if we don't then we get into trouble of one sort or another.
2887 # A longer-term fix would be to have automake use am__CC in this case,
2888 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2889 CC="$am_aux_dir/compile $CC"
2892 # autoconf is lame and doesn't give us any substitution variable for this.
2893 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2894 NO_MINUS_C_MINUS_O=yes
2895 else
2896 OUTPUT_OPTION='-o $@'
2901 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2902 # optimizations to be activated explicitly by the toplevel.
2903 case "$CC" in
2904 */prev-gcc/xgcc*) ;;
2905 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2906 esac
2909 # -------------------------
2910 # Check C compiler features
2911 # -------------------------
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2919 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2920 # On Suns, sometimes $CPP names a directory.
2921 if test -n "$CPP" && test -d "$CPP"; then
2922 CPP=
2924 if test -z "$CPP"; then
2925 if test "${ac_cv_prog_CPP+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928 # Double quotes because CPP needs to be expanded
2929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2931 ac_preproc_ok=false
2932 for ac_c_preproc_warn_flag in '' yes
2934 # Use a header file that comes with gcc, so configuring glibc
2935 # with a fresh cross-compiler works.
2936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937 # <limits.h> exists even on freestanding compilers.
2938 # On the NeXT, cc -E runs the code through the compiler's parser,
2939 # not just through cpp. "Syntax error" is here to catch this case.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #ifdef __STDC__
2947 # include <limits.h>
2948 #else
2949 # include <assert.h>
2950 #endif
2951 Syntax error
2952 _ACEOF
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev/null; then
2961 if test -s conftest.err; then
2962 ac_cpp_err=$ac_c_preproc_warn_flag
2963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2964 else
2965 ac_cpp_err=
2967 else
2968 ac_cpp_err=yes
2970 if test -z "$ac_cpp_err"; then
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 # Broken: fails on valid input.
2977 continue
2979 rm -f conftest.err conftest.$ac_ext
2981 # OK, works on sane cases. Now check whether non-existent headers
2982 # can be detected and how.
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <ac_nonexistent.h>
2990 _ACEOF
2991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev/null; then
2999 if test -s conftest.err; then
3000 ac_cpp_err=$ac_c_preproc_warn_flag
3001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3002 else
3003 ac_cpp_err=
3005 else
3006 ac_cpp_err=yes
3008 if test -z "$ac_cpp_err"; then
3009 # Broken: success on invalid input.
3010 continue
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 # Passes both tests.
3016 ac_preproc_ok=:
3017 break
3019 rm -f conftest.err conftest.$ac_ext
3021 done
3022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3023 rm -f conftest.err conftest.$ac_ext
3024 if $ac_preproc_ok; then
3025 break
3028 done
3029 ac_cv_prog_CPP=$CPP
3032 CPP=$ac_cv_prog_CPP
3033 else
3034 ac_cv_prog_CPP=$CPP
3036 echo "$as_me:$LINENO: result: $CPP" >&5
3037 echo "${ECHO_T}$CPP" >&6
3038 ac_preproc_ok=false
3039 for ac_c_preproc_warn_flag in '' yes
3041 # Use a header file that comes with gcc, so configuring glibc
3042 # with a fresh cross-compiler works.
3043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3044 # <limits.h> exists even on freestanding compilers.
3045 # On the NeXT, cc -E runs the code through the compiler's parser,
3046 # not just through cpp. "Syntax error" is here to catch this case.
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #ifdef __STDC__
3054 # include <limits.h>
3055 #else
3056 # include <assert.h>
3057 #endif
3058 Syntax error
3059 _ACEOF
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062 ac_status=$?
3063 grep -v '^ *+' conftest.er1 >conftest.err
3064 rm -f conftest.er1
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
3070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071 else
3072 ac_cpp_err=
3074 else
3075 ac_cpp_err=yes
3077 if test -z "$ac_cpp_err"; then
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 # Broken: fails on valid input.
3084 continue
3086 rm -f conftest.err conftest.$ac_ext
3088 # OK, works on sane cases. Now check whether non-existent headers
3089 # can be detected and how.
3090 cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h. */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3096 #include <ac_nonexistent.h>
3097 _ACEOF
3098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null; then
3106 if test -s conftest.err; then
3107 ac_cpp_err=$ac_c_preproc_warn_flag
3108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109 else
3110 ac_cpp_err=
3112 else
3113 ac_cpp_err=yes
3115 if test -z "$ac_cpp_err"; then
3116 # Broken: success on invalid input.
3117 continue
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 # Passes both tests.
3123 ac_preproc_ok=:
3124 break
3126 rm -f conftest.err conftest.$ac_ext
3128 done
3129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3130 rm -f conftest.err conftest.$ac_ext
3131 if $ac_preproc_ok; then
3133 else
3134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3135 See \`config.log' for more details." >&5
3136 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3137 See \`config.log' for more details." >&2;}
3138 { (exit 1); exit 1; }; }
3141 ac_ext=c
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 echo "$as_me:$LINENO: checking for inline" >&5
3149 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3150 if test "${ac_cv_c_inline+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 ac_cv_c_inline=no
3154 for ac_kw in inline __inline__ __inline; do
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3161 #ifndef __cplusplus
3162 typedef int foo_t;
3163 static $ac_kw foo_t static_foo () {return 0; }
3164 $ac_kw foo_t foo () {return 0; }
3165 #endif
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -z "$ac_c_werror_flag"
3178 || test ! -s conftest.err'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; } &&
3184 { ac_try='test -s conftest.$ac_objext'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 (eval $ac_try) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_cv_c_inline=$ac_kw; break
3191 else
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3197 done
3200 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3201 echo "${ECHO_T}$ac_cv_c_inline" >&6
3204 case $ac_cv_c_inline in
3205 inline | yes) ;;
3207 case $ac_cv_c_inline in
3208 no) ac_val=;;
3209 *) ac_val=$ac_cv_c_inline;;
3210 esac
3211 cat >>confdefs.h <<_ACEOF
3212 #ifndef __cplusplus
3213 #define inline $ac_val
3214 #endif
3215 _ACEOF
3217 esac
3220 # sizeof(char) is 1 by definition.
3222 echo "$as_me:$LINENO: checking for egrep" >&5
3223 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3224 if test "${ac_cv_prog_egrep+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3228 then ac_cv_prog_egrep='grep -E'
3229 else ac_cv_prog_egrep='egrep'
3232 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3233 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3234 EGREP=$ac_cv_prog_egrep
3237 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3238 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3239 if test "${ac_cv_header_stdc+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242 cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h. */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3248 #include <stdlib.h>
3249 #include <stdarg.h>
3250 #include <string.h>
3251 #include <float.h>
3254 main ()
3258 return 0;
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -z "$ac_c_werror_flag"
3271 || test ! -s conftest.err'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3283 ac_cv_header_stdc=yes
3284 else
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 ac_cv_header_stdc=no
3290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292 if test $ac_cv_header_stdc = yes; then
3293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300 #include <string.h>
3302 _ACEOF
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "memchr" >/dev/null 2>&1; then
3306 else
3307 ac_cv_header_stdc=no
3309 rm -f conftest*
3313 if test $ac_cv_header_stdc = yes; then
3314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #include <stdlib.h>
3323 _ACEOF
3324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325 $EGREP "free" >/dev/null 2>&1; then
3327 else
3328 ac_cv_header_stdc=no
3330 rm -f conftest*
3334 if test $ac_cv_header_stdc = yes; then
3335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3336 if test "$cross_compiling" = yes; then
3338 else
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h. */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 #include <ctype.h>
3346 #if ((' ' & 0x0FF) == 0x020)
3347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3349 #else
3350 # define ISLOWER(c) \
3351 (('a' <= (c) && (c) <= 'i') \
3352 || ('j' <= (c) && (c) <= 'r') \
3353 || ('s' <= (c) && (c) <= 'z'))
3354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3355 #endif
3357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3359 main ()
3361 int i;
3362 for (i = 0; i < 256; i++)
3363 if (XOR (islower (i), ISLOWER (i))
3364 || toupper (i) != TOUPPER (i))
3365 exit(2);
3366 exit (0);
3368 _ACEOF
3369 rm -f conftest$ac_exeext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3371 (eval $ac_link) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3381 else
3382 echo "$as_me: program exited with status $ac_status" >&5
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3386 ( exit $ac_status )
3387 ac_cv_header_stdc=no
3389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3393 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3394 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3395 if test $ac_cv_header_stdc = yes; then
3397 cat >>confdefs.h <<\_ACEOF
3398 #define STDC_HEADERS 1
3399 _ACEOF
3403 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3413 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3414 inttypes.h stdint.h unistd.h
3416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3417 echo "$as_me:$LINENO: checking for $ac_header" >&5
3418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422 cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 $ac_includes_default
3430 #include <$ac_header>
3431 _ACEOF
3432 rm -f conftest.$ac_objext
3433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 eval "$as_ac_Header=yes"
3455 else
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 eval "$as_ac_Header=no"
3461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3466 cat >>confdefs.h <<_ACEOF
3467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3468 _ACEOF
3472 done
3475 echo "$as_me:$LINENO: checking for void *" >&5
3476 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3477 if test "${ac_cv_type_void_p+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 $ac_includes_default
3488 main ()
3490 if ((void * *) 0)
3491 return 0;
3492 if (sizeof (void *))
3493 return 0;
3495 return 0;
3497 _ACEOF
3498 rm -f conftest.$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -z "$ac_c_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 ac_cv_type_void_p=yes
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 ac_cv_type_void_p=no
3527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3530 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3532 echo "$as_me:$LINENO: checking size of void *" >&5
3533 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3534 if test "${ac_cv_sizeof_void_p+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 if test "$ac_cv_type_void_p" = yes; then
3538 # The cast to unsigned long works around a bug in the HP C Compiler
3539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3541 # This bug is HP SR number 8606223364.
3542 if test "$cross_compiling" = yes; then
3543 # Depending upon the size, compute the lo and hi bounds.
3544 cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h. */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 $ac_includes_default
3552 main ()
3554 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3555 test_array [0] = 0
3558 return 0;
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_lo=0 ac_mid=0
3584 while :; do
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591 $ac_includes_default
3593 main ()
3595 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3596 test_array [0] = 0
3599 return 0;
3601 _ACEOF
3602 rm -f conftest.$ac_objext
3603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604 (eval $ac_compile) 2>conftest.er1
3605 ac_status=$?
3606 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_c_werror_flag"
3612 || test ! -s conftest.err'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_hi=$ac_mid; break
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 ac_lo=`expr $ac_mid + 1`
3630 if test $ac_lo -le $ac_mid; then
3631 ac_lo= ac_hi=
3632 break
3634 ac_mid=`expr 2 '*' $ac_mid + 1`
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 done
3638 else
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 $ac_includes_default
3650 main ()
3652 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3653 test_array [0] = 0
3656 return 0;
3658 _ACEOF
3659 rm -f conftest.$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_hi=-1 ac_mid=-1
3682 while :; do
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689 $ac_includes_default
3691 main ()
3693 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3694 test_array [0] = 0
3697 return 0;
3699 _ACEOF
3700 rm -f conftest.$ac_objext
3701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -z "$ac_c_werror_flag"
3710 || test ! -s conftest.err'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 ac_lo=$ac_mid; break
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 ac_hi=`expr '(' $ac_mid ')' - 1`
3728 if test $ac_mid -le $ac_hi; then
3729 ac_lo= ac_hi=
3730 break
3732 ac_mid=`expr 2 '*' $ac_mid`
3734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3735 done
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 ac_lo= ac_hi=
3742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 # Binary search between lo and hi bounds.
3746 while test "x$ac_lo" != "x$ac_hi"; do
3747 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h. */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 $ac_includes_default
3756 main ()
3758 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3759 test_array [0] = 0
3762 return 0;
3764 _ACEOF
3765 rm -f conftest.$ac_objext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>conftest.er1
3768 ac_status=$?
3769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try='test -z "$ac_c_werror_flag"
3775 || test ! -s conftest.err'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; } &&
3781 { ac_try='test -s conftest.$ac_objext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_hi=$ac_mid
3788 else
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 ac_lo=`expr '(' $ac_mid ')' + 1`
3794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3795 done
3796 case $ac_lo in
3797 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3798 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3799 See \`config.log' for more details." >&5
3800 echo "$as_me: error: cannot compute sizeof (void *), 77
3801 See \`config.log' for more details." >&2;}
3802 { (exit 1); exit 1; }; } ;;
3803 esac
3804 else
3805 if test "$cross_compiling" = yes; then
3806 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3807 See \`config.log' for more details." >&5
3808 echo "$as_me: error: cannot run test program while cross compiling
3809 See \`config.log' for more details." >&2;}
3810 { (exit 1); exit 1; }; }
3811 else
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 $ac_includes_default
3819 long longval () { return (long) (sizeof (void *)); }
3820 unsigned long ulongval () { return (long) (sizeof (void *)); }
3821 #include <stdio.h>
3822 #include <stdlib.h>
3824 main ()
3827 FILE *f = fopen ("conftest.val", "w");
3828 if (! f)
3829 exit (1);
3830 if (((long) (sizeof (void *))) < 0)
3832 long i = longval ();
3833 if (i != ((long) (sizeof (void *))))
3834 exit (1);
3835 fprintf (f, "%ld\n", i);
3837 else
3839 unsigned long i = ulongval ();
3840 if (i != ((long) (sizeof (void *))))
3841 exit (1);
3842 fprintf (f, "%lu\n", i);
3844 exit (ferror (f) || fclose (f) != 0);
3847 return 0;
3849 _ACEOF
3850 rm -f conftest$ac_exeext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852 (eval $ac_link) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3861 ac_cv_sizeof_void_p=`cat conftest.val`
3862 else
3863 echo "$as_me: program exited with status $ac_status" >&5
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 ( exit $ac_status )
3868 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3869 See \`config.log' for more details." >&5
3870 echo "$as_me: error: cannot compute sizeof (void *), 77
3871 See \`config.log' for more details." >&2;}
3872 { (exit 1); exit 1; }; }
3874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3877 rm -f conftest.val
3878 else
3879 ac_cv_sizeof_void_p=0
3882 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3883 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3884 cat >>confdefs.h <<_ACEOF
3885 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3886 _ACEOF
3889 echo "$as_me:$LINENO: checking for short" >&5
3890 echo $ECHO_N "checking for short... $ECHO_C" >&6
3891 if test "${ac_cv_type_short+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h. */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 $ac_includes_default
3902 main ()
3904 if ((short *) 0)
3905 return 0;
3906 if (sizeof (short))
3907 return 0;
3909 return 0;
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_type_short=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_cv_type_short=no
3941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3943 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3944 echo "${ECHO_T}$ac_cv_type_short" >&6
3946 echo "$as_me:$LINENO: checking size of short" >&5
3947 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3948 if test "${ac_cv_sizeof_short+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951 if test "$ac_cv_type_short" = yes; then
3952 # The cast to unsigned long works around a bug in the HP C Compiler
3953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3955 # This bug is HP SR number 8606223364.
3956 if test "$cross_compiling" = yes; then
3957 # Depending upon the size, compute the lo and hi bounds.
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 $ac_includes_default
3966 main ()
3968 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3969 test_array [0] = 0
3972 return 0;
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag"
3985 || test ! -s conftest.err'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; } &&
3991 { ac_try='test -s conftest.$ac_objext'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 ac_lo=0 ac_mid=0
3998 while :; do
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 $ac_includes_default
4007 main ()
4009 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4010 test_array [0] = 0
4013 return 0;
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_c_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_hi=$ac_mid; break
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 ac_lo=`expr $ac_mid + 1`
4044 if test $ac_lo -le $ac_mid; then
4045 ac_lo= ac_hi=
4046 break
4048 ac_mid=`expr 2 '*' $ac_mid + 1`
4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051 done
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 $ac_includes_default
4064 main ()
4066 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4067 test_array [0] = 0
4070 return 0;
4072 _ACEOF
4073 rm -f conftest.$ac_objext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag"
4083 || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_hi=-1 ac_mid=-1
4096 while :; do
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 $ac_includes_default
4105 main ()
4107 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4108 test_array [0] = 0
4111 return 0;
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_c_werror_flag"
4124 || test ! -s conftest.err'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 (eval $ac_try) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try='test -s conftest.$ac_objext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 ac_lo=$ac_mid; break
4137 else
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4141 ac_hi=`expr '(' $ac_mid ')' - 1`
4142 if test $ac_mid -le $ac_hi; then
4143 ac_lo= ac_hi=
4144 break
4146 ac_mid=`expr 2 '*' $ac_mid`
4148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4149 done
4150 else
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 ac_lo= ac_hi=
4156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159 # Binary search between lo and hi bounds.
4160 while test "x$ac_lo" != "x$ac_hi"; do
4161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 $ac_includes_default
4170 main ()
4172 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4173 test_array [0] = 0
4176 return 0;
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 (eval $ac_try) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_hi=$ac_mid
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_lo=`expr '(' $ac_mid ')' + 1`
4208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209 done
4210 case $ac_lo in
4211 ?*) ac_cv_sizeof_short=$ac_lo;;
4212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4213 See \`config.log' for more details." >&5
4214 echo "$as_me: error: cannot compute sizeof (short), 77
4215 See \`config.log' for more details." >&2;}
4216 { (exit 1); exit 1; }; } ;;
4217 esac
4218 else
4219 if test "$cross_compiling" = yes; then
4220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4221 See \`config.log' for more details." >&5
4222 echo "$as_me: error: cannot run test program while cross compiling
4223 See \`config.log' for more details." >&2;}
4224 { (exit 1); exit 1; }; }
4225 else
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4233 long longval () { return (long) (sizeof (short)); }
4234 unsigned long ulongval () { return (long) (sizeof (short)); }
4235 #include <stdio.h>
4236 #include <stdlib.h>
4238 main ()
4241 FILE *f = fopen ("conftest.val", "w");
4242 if (! f)
4243 exit (1);
4244 if (((long) (sizeof (short))) < 0)
4246 long i = longval ();
4247 if (i != ((long) (sizeof (short))))
4248 exit (1);
4249 fprintf (f, "%ld\n", i);
4251 else
4253 unsigned long i = ulongval ();
4254 if (i != ((long) (sizeof (short))))
4255 exit (1);
4256 fprintf (f, "%lu\n", i);
4258 exit (ferror (f) || fclose (f) != 0);
4261 return 0;
4263 _ACEOF
4264 rm -f conftest$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_sizeof_short=`cat conftest.val`
4276 else
4277 echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 ( exit $ac_status )
4282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4283 See \`config.log' for more details." >&5
4284 echo "$as_me: error: cannot compute sizeof (short), 77
4285 See \`config.log' for more details." >&2;}
4286 { (exit 1); exit 1; }; }
4288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4291 rm -f conftest.val
4292 else
4293 ac_cv_sizeof_short=0
4296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4297 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4298 cat >>confdefs.h <<_ACEOF
4299 #define SIZEOF_SHORT $ac_cv_sizeof_short
4300 _ACEOF
4303 echo "$as_me:$LINENO: checking for int" >&5
4304 echo $ECHO_N "checking for int... $ECHO_C" >&6
4305 if test "${ac_cv_type_int+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h. */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 $ac_includes_default
4316 main ()
4318 if ((int *) 0)
4319 return 0;
4320 if (sizeof (int))
4321 return 0;
4323 return 0;
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_type_int=yes
4349 else
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 ac_cv_type_int=no
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4358 echo "${ECHO_T}$ac_cv_type_int" >&6
4360 echo "$as_me:$LINENO: checking size of int" >&5
4361 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4362 if test "${ac_cv_sizeof_int+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 if test "$ac_cv_type_int" = yes; then
4366 # The cast to unsigned long works around a bug in the HP C Compiler
4367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4369 # This bug is HP SR number 8606223364.
4370 if test "$cross_compiling" = yes; then
4371 # Depending upon the size, compute the lo and hi bounds.
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h. */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4380 main ()
4382 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4383 test_array [0] = 0
4386 return 0;
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } &&
4398 { ac_try='test -z "$ac_c_werror_flag"
4399 || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 (eval $ac_try) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try='test -s conftest.$ac_objext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 (eval $ac_try) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 ac_lo=0 ac_mid=0
4412 while :; do
4413 cat >conftest.$ac_ext <<_ACEOF
4414 /* confdefs.h. */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 $ac_includes_default
4421 main ()
4423 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4424 test_array [0] = 0
4427 return 0;
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
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); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_hi=$ac_mid; break
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 ac_lo=`expr $ac_mid + 1`
4458 if test $ac_lo -le $ac_mid; then
4459 ac_lo= ac_hi=
4460 break
4462 ac_mid=`expr 2 '*' $ac_mid + 1`
4464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4465 done
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h. */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 $ac_includes_default
4478 main ()
4480 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4481 test_array [0] = 0
4484 return 0;
4486 _ACEOF
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -z "$ac_c_werror_flag"
4497 || test ! -s conftest.err'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try='test -s conftest.$ac_objext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 (eval $ac_try) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 ac_hi=-1 ac_mid=-1
4510 while :; do
4511 cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h. */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 $ac_includes_default
4519 main ()
4521 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4522 test_array [0] = 0
4525 return 0;
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -z "$ac_c_werror_flag"
4538 || 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_lo=$ac_mid; break
4551 else
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 ac_hi=`expr '(' $ac_mid ')' - 1`
4556 if test $ac_mid -le $ac_hi; then
4557 ac_lo= ac_hi=
4558 break
4560 ac_mid=`expr 2 '*' $ac_mid`
4562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4563 done
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 ac_lo= ac_hi=
4570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573 # Binary search between lo and hi bounds.
4574 while test "x$ac_lo" != "x$ac_hi"; do
4575 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 $ac_includes_default
4584 main ()
4586 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4587 test_array [0] = 0
4590 return 0;
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_c_werror_flag"
4603 || test ! -s conftest.err'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_hi=$ac_mid
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 ac_lo=`expr '(' $ac_mid ')' + 1`
4622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4623 done
4624 case $ac_lo in
4625 ?*) ac_cv_sizeof_int=$ac_lo;;
4626 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot compute sizeof (int), 77
4629 See \`config.log' for more details." >&2;}
4630 { (exit 1); exit 1; }; } ;;
4631 esac
4632 else
4633 if test "$cross_compiling" = yes; then
4634 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4635 See \`config.log' for more details." >&5
4636 echo "$as_me: error: cannot run test program while cross compiling
4637 See \`config.log' for more details." >&2;}
4638 { (exit 1); exit 1; }; }
4639 else
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 $ac_includes_default
4647 long longval () { return (long) (sizeof (int)); }
4648 unsigned long ulongval () { return (long) (sizeof (int)); }
4649 #include <stdio.h>
4650 #include <stdlib.h>
4652 main ()
4655 FILE *f = fopen ("conftest.val", "w");
4656 if (! f)
4657 exit (1);
4658 if (((long) (sizeof (int))) < 0)
4660 long i = longval ();
4661 if (i != ((long) (sizeof (int))))
4662 exit (1);
4663 fprintf (f, "%ld\n", i);
4665 else
4667 unsigned long i = ulongval ();
4668 if (i != ((long) (sizeof (int))))
4669 exit (1);
4670 fprintf (f, "%lu\n", i);
4672 exit (ferror (f) || fclose (f) != 0);
4675 return 0;
4677 _ACEOF
4678 rm -f conftest$ac_exeext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_cv_sizeof_int=`cat conftest.val`
4690 else
4691 echo "$as_me: program exited with status $ac_status" >&5
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4695 ( exit $ac_status )
4696 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4697 See \`config.log' for more details." >&5
4698 echo "$as_me: error: cannot compute sizeof (int), 77
4699 See \`config.log' for more details." >&2;}
4700 { (exit 1); exit 1; }; }
4702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4705 rm -f conftest.val
4706 else
4707 ac_cv_sizeof_int=0
4710 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4711 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4712 cat >>confdefs.h <<_ACEOF
4713 #define SIZEOF_INT $ac_cv_sizeof_int
4714 _ACEOF
4717 echo "$as_me:$LINENO: checking for long" >&5
4718 echo $ECHO_N "checking for long... $ECHO_C" >&6
4719 if test "${ac_cv_type_long+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4730 main ()
4732 if ((long *) 0)
4733 return 0;
4734 if (sizeof (long))
4735 return 0;
4737 return 0;
4739 _ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_c_werror_flag"
4750 || test ! -s conftest.err'
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); }; } &&
4756 { ac_try='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_cv_type_long=yes
4763 else
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4767 ac_cv_type_long=no
4769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4771 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4772 echo "${ECHO_T}$ac_cv_type_long" >&6
4774 echo "$as_me:$LINENO: checking size of long" >&5
4775 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4776 if test "${ac_cv_sizeof_long+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 if test "$ac_cv_type_long" = yes; then
4780 # The cast to unsigned long works around a bug in the HP C Compiler
4781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4783 # This bug is HP SR number 8606223364.
4784 if test "$cross_compiling" = yes; then
4785 # Depending upon the size, compute the lo and hi bounds.
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4794 main ()
4796 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4797 test_array [0] = 0
4800 return 0;
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 ac_lo=0 ac_mid=0
4826 while :; do
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 $ac_includes_default
4835 main ()
4837 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4838 test_array [0] = 0
4841 return 0;
4843 _ACEOF
4844 rm -f conftest.$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_hi=$ac_mid; break
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 ac_lo=`expr $ac_mid + 1`
4872 if test $ac_lo -le $ac_mid; then
4873 ac_lo= ac_hi=
4874 break
4876 ac_mid=`expr 2 '*' $ac_mid + 1`
4878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4879 done
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 $ac_includes_default
4892 main ()
4894 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4895 test_array [0] = 0
4898 return 0;
4900 _ACEOF
4901 rm -f conftest.$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try='test -z "$ac_c_werror_flag"
4911 || test ! -s conftest.err'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; } &&
4917 { ac_try='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_hi=-1 ac_mid=-1
4924 while :; do
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 $ac_includes_default
4933 main ()
4935 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4936 test_array [0] = 0
4939 return 0;
4941 _ACEOF
4942 rm -f conftest.$ac_objext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4944 (eval $ac_compile) 2>conftest.er1
4945 ac_status=$?
4946 grep -v '^ *+' conftest.er1 >conftest.err
4947 rm -f conftest.er1
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try='test -z "$ac_c_werror_flag"
4952 || test ! -s conftest.err'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; } &&
4958 { ac_try='test -s conftest.$ac_objext'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 ac_lo=$ac_mid; break
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4969 ac_hi=`expr '(' $ac_mid ')' - 1`
4970 if test $ac_mid -le $ac_hi; then
4971 ac_lo= ac_hi=
4972 break
4974 ac_mid=`expr 2 '*' $ac_mid`
4976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4977 done
4978 else
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4982 ac_lo= ac_hi=
4984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4987 # Binary search between lo and hi bounds.
4988 while test "x$ac_lo" != "x$ac_hi"; do
4989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 $ac_includes_default
4998 main ()
5000 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5001 test_array [0] = 0
5004 return 0;
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_hi=$ac_mid
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 ac_lo=`expr '(' $ac_mid ')' + 1`
5036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5037 done
5038 case $ac_lo in
5039 ?*) ac_cv_sizeof_long=$ac_lo;;
5040 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5041 See \`config.log' for more details." >&5
5042 echo "$as_me: error: cannot compute sizeof (long), 77
5043 See \`config.log' for more details." >&2;}
5044 { (exit 1); exit 1; }; } ;;
5045 esac
5046 else
5047 if test "$cross_compiling" = yes; then
5048 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5049 See \`config.log' for more details." >&5
5050 echo "$as_me: error: cannot run test program while cross compiling
5051 See \`config.log' for more details." >&2;}
5052 { (exit 1); exit 1; }; }
5053 else
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 $ac_includes_default
5061 long longval () { return (long) (sizeof (long)); }
5062 unsigned long ulongval () { return (long) (sizeof (long)); }
5063 #include <stdio.h>
5064 #include <stdlib.h>
5066 main ()
5069 FILE *f = fopen ("conftest.val", "w");
5070 if (! f)
5071 exit (1);
5072 if (((long) (sizeof (long))) < 0)
5074 long i = longval ();
5075 if (i != ((long) (sizeof (long))))
5076 exit (1);
5077 fprintf (f, "%ld\n", i);
5079 else
5081 unsigned long i = ulongval ();
5082 if (i != ((long) (sizeof (long))))
5083 exit (1);
5084 fprintf (f, "%lu\n", i);
5086 exit (ferror (f) || fclose (f) != 0);
5089 return 0;
5091 _ACEOF
5092 rm -f conftest$ac_exeext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 ac_cv_sizeof_long=`cat conftest.val`
5104 else
5105 echo "$as_me: program exited with status $ac_status" >&5
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 ( exit $ac_status )
5110 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot compute sizeof (long), 77
5113 See \`config.log' for more details." >&2;}
5114 { (exit 1); exit 1; }; }
5116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5119 rm -f conftest.val
5120 else
5121 ac_cv_sizeof_long=0
5124 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5125 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5126 cat >>confdefs.h <<_ACEOF
5127 #define SIZEOF_LONG $ac_cv_sizeof_long
5128 _ACEOF
5131 echo "$as_me:$LINENO: checking for long long" >&5
5132 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5133 if test "${ac_cv_type_long_long+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h. */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 $ac_includes_default
5144 main ()
5146 if ((long long *) 0)
5147 return 0;
5148 if (sizeof (long long))
5149 return 0;
5151 return 0;
5153 _ACEOF
5154 rm -f conftest.$ac_objext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5156 (eval $ac_compile) 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -z "$ac_c_werror_flag"
5164 || test ! -s conftest.err'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; } &&
5170 { ac_try='test -s conftest.$ac_objext'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 (eval $ac_try) 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; }; then
5176 ac_cv_type_long_long=yes
5177 else
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 ac_cv_type_long_long=no
5183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5185 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5186 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5187 if test $ac_cv_type_long_long = yes; then
5189 cat >>confdefs.h <<_ACEOF
5190 #define HAVE_LONG_LONG 1
5191 _ACEOF
5193 echo "$as_me:$LINENO: checking for long long" >&5
5194 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5195 if test "${ac_cv_type_long_long+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h. */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 $ac_includes_default
5206 main ()
5208 if ((long long *) 0)
5209 return 0;
5210 if (sizeof (long long))
5211 return 0;
5213 return 0;
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -z "$ac_c_werror_flag"
5226 || test ! -s conftest.err'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 (eval $ac_try) 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try='test -s conftest.$ac_objext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 (eval $ac_try) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 ac_cv_type_long_long=yes
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 ac_cv_type_long_long=no
5245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5248 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5250 echo "$as_me:$LINENO: checking size of long long" >&5
5251 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5252 if test "${ac_cv_sizeof_long_long+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 if test "$ac_cv_type_long_long" = yes; then
5256 # The cast to unsigned long works around a bug in the HP C Compiler
5257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5259 # This bug is HP SR number 8606223364.
5260 if test "$cross_compiling" = yes; then
5261 # Depending upon the size, compute the lo and hi bounds.
5262 cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5270 main ()
5272 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5273 test_array [0] = 0
5276 return 0;
5278 _ACEOF
5279 rm -f conftest.$ac_objext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>conftest.er1
5282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try='test -z "$ac_c_werror_flag"
5289 || test ! -s conftest.err'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; } &&
5295 { ac_try='test -s conftest.$ac_objext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 ac_lo=0 ac_mid=0
5302 while :; do
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h. */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309 $ac_includes_default
5311 main ()
5313 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5314 test_array [0] = 0
5317 return 0;
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -z "$ac_c_werror_flag"
5330 || test ! -s conftest.err'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 (eval $ac_try) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; } &&
5336 { ac_try='test -s conftest.$ac_objext'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 (eval $ac_try) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; }; then
5342 ac_hi=$ac_mid; break
5343 else
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5347 ac_lo=`expr $ac_mid + 1`
5348 if test $ac_lo -le $ac_mid; then
5349 ac_lo= ac_hi=
5350 break
5352 ac_mid=`expr 2 '*' $ac_mid + 1`
5354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5355 done
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 $ac_includes_default
5368 main ()
5370 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5371 test_array [0] = 0
5374 return 0;
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379 (eval $ac_compile) 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try='test -z "$ac_c_werror_flag"
5387 || test ! -s conftest.err'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 (eval $ac_try) 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_hi=-1 ac_mid=-1
5400 while :; do
5401 cat >conftest.$ac_ext <<_ACEOF
5402 /* confdefs.h. */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 $ac_includes_default
5409 main ()
5411 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5412 test_array [0] = 0
5415 return 0;
5417 _ACEOF
5418 rm -f conftest.$ac_objext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -z "$ac_c_werror_flag"
5428 || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 ac_lo=$ac_mid; break
5441 else
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 ac_hi=`expr '(' $ac_mid ')' - 1`
5446 if test $ac_mid -le $ac_hi; then
5447 ac_lo= ac_hi=
5448 break
5450 ac_mid=`expr 2 '*' $ac_mid`
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453 done
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_lo= ac_hi=
5460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463 # Binary search between lo and hi bounds.
5464 while test "x$ac_lo" != "x$ac_hi"; do
5465 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 $ac_includes_default
5474 main ()
5476 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5477 test_array [0] = 0
5480 return 0;
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -z "$ac_c_werror_flag"
5493 || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 (eval $ac_try) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest.$ac_objext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_hi=$ac_mid
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_lo=`expr '(' $ac_mid ')' + 1`
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5513 done
5514 case $ac_lo in
5515 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5516 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5517 See \`config.log' for more details." >&5
5518 echo "$as_me: error: cannot compute sizeof (long long), 77
5519 See \`config.log' for more details." >&2;}
5520 { (exit 1); exit 1; }; } ;;
5521 esac
5522 else
5523 if test "$cross_compiling" = yes; then
5524 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5525 See \`config.log' for more details." >&5
5526 echo "$as_me: error: cannot run test program while cross compiling
5527 See \`config.log' for more details." >&2;}
5528 { (exit 1); exit 1; }; }
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
5537 long longval () { return (long) (sizeof (long long)); }
5538 unsigned long ulongval () { return (long) (sizeof (long long)); }
5539 #include <stdio.h>
5540 #include <stdlib.h>
5542 main ()
5545 FILE *f = fopen ("conftest.val", "w");
5546 if (! f)
5547 exit (1);
5548 if (((long) (sizeof (long long))) < 0)
5550 long i = longval ();
5551 if (i != ((long) (sizeof (long long))))
5552 exit (1);
5553 fprintf (f, "%ld\n", i);
5555 else
5557 unsigned long i = ulongval ();
5558 if (i != ((long) (sizeof (long long))))
5559 exit (1);
5560 fprintf (f, "%lu\n", i);
5562 exit (ferror (f) || fclose (f) != 0);
5565 return 0;
5567 _ACEOF
5568 rm -f conftest$ac_exeext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570 (eval $ac_link) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_cv_sizeof_long_long=`cat conftest.val`
5580 else
5581 echo "$as_me: program exited with status $ac_status" >&5
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5585 ( exit $ac_status )
5586 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5587 See \`config.log' for more details." >&5
5588 echo "$as_me: error: cannot compute sizeof (long long), 77
5589 See \`config.log' for more details." >&2;}
5590 { (exit 1); exit 1; }; }
5592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5595 rm -f conftest.val
5596 else
5597 ac_cv_sizeof_long_long=0
5600 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5601 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5602 cat >>confdefs.h <<_ACEOF
5603 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5604 _ACEOF
5609 echo "$as_me:$LINENO: checking for __int64" >&5
5610 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5611 if test "${ac_cv_type___int64+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h. */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5622 main ()
5624 if ((__int64 *) 0)
5625 return 0;
5626 if (sizeof (__int64))
5627 return 0;
5629 return 0;
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_c_werror_flag"
5642 || test ! -s conftest.err'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; } &&
5648 { ac_try='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_type___int64=yes
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5659 ac_cv_type___int64=no
5661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5664 echo "${ECHO_T}$ac_cv_type___int64" >&6
5665 if test $ac_cv_type___int64 = yes; then
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE___INT64 1
5669 _ACEOF
5671 echo "$as_me:$LINENO: checking for __int64" >&5
5672 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5673 if test "${ac_cv_type___int64+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676 cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h. */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 $ac_includes_default
5684 main ()
5686 if ((__int64 *) 0)
5687 return 0;
5688 if (sizeof (__int64))
5689 return 0;
5691 return 0;
5693 _ACEOF
5694 rm -f conftest.$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -z "$ac_c_werror_flag"
5704 || test ! -s conftest.err'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 (eval $ac_try) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; } &&
5710 { ac_try='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 (eval $ac_try) 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_cv_type___int64=yes
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 ac_cv_type___int64=no
5723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5725 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5726 echo "${ECHO_T}$ac_cv_type___int64" >&6
5728 echo "$as_me:$LINENO: checking size of __int64" >&5
5729 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5730 if test "${ac_cv_sizeof___int64+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 if test "$ac_cv_type___int64" = yes; then
5734 # The cast to unsigned long works around a bug in the HP C Compiler
5735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5737 # This bug is HP SR number 8606223364.
5738 if test "$cross_compiling" = yes; then
5739 # Depending upon the size, compute the lo and hi bounds.
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 $ac_includes_default
5748 main ()
5750 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5751 test_array [0] = 0
5754 return 0;
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_lo=0 ac_mid=0
5780 while :; do
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 $ac_includes_default
5789 main ()
5791 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5792 test_array [0] = 0
5795 return 0;
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800 (eval $ac_compile) 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -z "$ac_c_werror_flag"
5808 || test ! -s conftest.err'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_hi=$ac_mid; break
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 ac_lo=`expr $ac_mid + 1`
5826 if test $ac_lo -le $ac_mid; then
5827 ac_lo= ac_hi=
5828 break
5830 ac_mid=`expr 2 '*' $ac_mid + 1`
5832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5833 done
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 $ac_includes_default
5846 main ()
5848 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5849 test_array [0] = 0
5852 return 0;
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_hi=-1 ac_mid=-1
5878 while :; do
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 $ac_includes_default
5887 main ()
5889 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5890 test_array [0] = 0
5893 return 0;
5895 _ACEOF
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 (eval $ac_try) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_lo=$ac_mid; break
5919 else
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 ac_hi=`expr '(' $ac_mid ')' - 1`
5924 if test $ac_mid -le $ac_hi; then
5925 ac_lo= ac_hi=
5926 break
5928 ac_mid=`expr 2 '*' $ac_mid`
5930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5931 done
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 ac_lo= ac_hi=
5938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941 # Binary search between lo and hi bounds.
5942 while test "x$ac_lo" != "x$ac_hi"; do
5943 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 $ac_includes_default
5952 main ()
5954 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5955 test_array [0] = 0
5958 return 0;
5960 _ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>conftest.er1
5964 ac_status=$?
5965 grep -v '^ *+' conftest.er1 >conftest.err
5966 rm -f conftest.er1
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } &&
5970 { ac_try='test -z "$ac_c_werror_flag"
5971 || test ! -s conftest.err'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 (eval $ac_try) 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_hi=$ac_mid
5984 else
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 ac_lo=`expr '(' $ac_mid ')' + 1`
5990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5991 done
5992 case $ac_lo in
5993 ?*) ac_cv_sizeof___int64=$ac_lo;;
5994 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5995 See \`config.log' for more details." >&5
5996 echo "$as_me: error: cannot compute sizeof (__int64), 77
5997 See \`config.log' for more details." >&2;}
5998 { (exit 1); exit 1; }; } ;;
5999 esac
6000 else
6001 if test "$cross_compiling" = yes; then
6002 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6003 See \`config.log' for more details." >&5
6004 echo "$as_me: error: cannot run test program while cross compiling
6005 See \`config.log' for more details." >&2;}
6006 { (exit 1); exit 1; }; }
6007 else
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 $ac_includes_default
6015 long longval () { return (long) (sizeof (__int64)); }
6016 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6017 #include <stdio.h>
6018 #include <stdlib.h>
6020 main ()
6023 FILE *f = fopen ("conftest.val", "w");
6024 if (! f)
6025 exit (1);
6026 if (((long) (sizeof (__int64))) < 0)
6028 long i = longval ();
6029 if (i != ((long) (sizeof (__int64))))
6030 exit (1);
6031 fprintf (f, "%ld\n", i);
6033 else
6035 unsigned long i = ulongval ();
6036 if (i != ((long) (sizeof (__int64))))
6037 exit (1);
6038 fprintf (f, "%lu\n", i);
6040 exit (ferror (f) || fclose (f) != 0);
6043 return 0;
6045 _ACEOF
6046 rm -f conftest$ac_exeext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6048 (eval $ac_link) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_sizeof___int64=`cat conftest.val`
6058 else
6059 echo "$as_me: program exited with status $ac_status" >&5
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6063 ( exit $ac_status )
6064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6065 See \`config.log' for more details." >&5
6066 echo "$as_me: error: cannot compute sizeof (__int64), 77
6067 See \`config.log' for more details." >&2;}
6068 { (exit 1); exit 1; }; }
6070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6073 rm -f conftest.val
6074 else
6075 ac_cv_sizeof___int64=0
6078 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6079 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6080 cat >>confdefs.h <<_ACEOF
6081 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6082 _ACEOF
6088 # ---------------------
6089 # Warnings and checking
6090 # ---------------------
6092 # Check $CC warning features (if it's GCC).
6093 # We want to use -pedantic, but we don't want warnings about
6094 # * 'long long'
6095 # * variadic macros
6096 # * overlong strings
6097 # So, we only use -pedantic if we can disable those warnings.
6099 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6100 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6101 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 save_CFLAGS="$CFLAGS"
6105 CFLAGS="-Wno-long-long"
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag"
6124 || test ! -s conftest.err'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6136 ac_cv_prog_cc_w_no_long_long=yes
6137 else
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 ac_cv_prog_cc_w_no_long_long=no
6143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6144 CFLAGS="$save_CFLAGS"
6147 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6148 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6150 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6151 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6152 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 save_CFLAGS="$CFLAGS"
6156 CFLAGS="-Wno-variadic-macros"
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -z "$ac_c_werror_flag"
6175 || test ! -s conftest.err'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try='test -s conftest.$ac_objext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_prog_cc_w_no_variadic_macros=yes
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 ac_cv_prog_cc_w_no_variadic_macros=no
6194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6195 CFLAGS="$save_CFLAGS"
6198 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6199 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6201 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6202 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6203 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 save_CFLAGS="$CFLAGS"
6207 CFLAGS="-Wno-overlength-strings"
6208 cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h. */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>conftest.er1
6219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 (eval $ac_try) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_prog_cc_w_no_overlength_strings=yes
6239 else
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 ac_cv_prog_cc_w_no_overlength_strings=no
6245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6246 CFLAGS="$save_CFLAGS"
6249 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6250 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6252 strict_warn=
6253 if test $ac_cv_prog_cc_w_no_long_long = yes \
6254 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6255 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6256 strict_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6259 # Add -Wold-style-definition if it's accepted
6260 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6261 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6262 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 save_CFLAGS="$CFLAGS"
6266 CFLAGS="-Wold-style-definition"
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6274 _ACEOF
6275 rm -f conftest.$ac_objext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -z "$ac_c_werror_flag"
6285 || test ! -s conftest.err'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest.$ac_objext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_prog_cc_w_old_style_definition=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ac_cv_prog_cc_w_old_style_definition=no
6304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6305 CFLAGS="$save_CFLAGS"
6308 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6309 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6310 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6311 strict_warn="${strict_warn} -Wold-style-definition"
6314 # Add -Wmissing-format-attribute if it's accepted
6315 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6316 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6317 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320 save_CFLAGS="$CFLAGS"
6321 CFLAGS="-Wmissing-format-attribute"
6322 cat >conftest.$ac_ext <<_ACEOF
6323 /* confdefs.h. */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_cv_prog_cc_w_missing_format_attribute=yes
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_cv_prog_cc_w_missing_format_attribute=no
6359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6360 CFLAGS="$save_CFLAGS"
6363 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6364 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6365 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6366 strict_warn="${strict_warn} -Wmissing-format-attribute"
6369 # Enable -Werror, period.
6370 # Check whether --enable-werror_always or --disable-werror_always was given.
6371 if test "${enable_werror_always+set}" = set; then
6372 enableval="$enable_werror_always"
6374 else
6375 enable_werror_always=no
6377 if test x${enable_werror_always} = xyes ; then
6378 strict_warn="${strict_warn} -Werror"
6382 # Get C++ compatibility warning flag, if supported.
6383 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6384 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6385 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388 save_CFLAGS="$CFLAGS"
6389 CFLAGS="-Wc++-compat"
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_cv_prog_cc_w_cxx_compat=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 ac_cv_prog_cc_w_cxx_compat=no
6427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428 CFLAGS="$save_CFLAGS"
6431 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6432 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6433 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6434 cxx_compat_warn="-Wc++-compat"
6439 # If the native compiler is GCC, we can enable warnings even in stage1.
6440 # That's useful for people building cross-compilers, or just running a
6441 # quick `make'.
6442 warn_cflags=
6443 if test "x$GCC" = "xyes"; then
6444 warn_cflags='$(GCC_WARN_CFLAGS)'
6448 # Enable expensive internal checks
6449 is_release=
6450 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6451 is_release=yes
6454 # Check whether --enable-checking or --disable-checking was given.
6455 if test "${enable_checking+set}" = set; then
6456 enableval="$enable_checking"
6457 ac_checking_flags="${enableval}"
6458 else
6460 # Determine the default checks.
6461 if test x$is_release = x ; then
6462 ac_checking_flags=yes
6463 else
6464 ac_checking_flags=release
6467 ac_assert_checking=1
6468 ac_checking=
6469 ac_fold_checking=
6470 ac_gc_checking=
6471 ac_gc_always_collect=
6472 ac_rtl_checking=
6473 ac_rtlflag_checking=
6474 ac_runtime_checking=1
6475 ac_tree_checking=
6476 ac_valgrind_checking=
6477 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6478 for check in $ac_checking_flags
6480 case $check in
6481 # these set all the flags to specific states
6482 yes) ac_assert_checking=1 ; ac_checking=1 ;
6483 ac_fold_checking= ; ac_gc_checking=1 ;
6484 ac_gc_always_collect= ; ac_rtl_checking= ;
6485 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6486 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6487 no|none) ac_assert_checking= ; ac_checking= ;
6488 ac_fold_checking= ; ac_gc_checking= ;
6489 ac_gc_always_collect= ; ac_rtl_checking= ;
6490 ac_rtlflag_checking= ; ac_runtime_checking= ;
6491 ac_tree_checking= ; ac_valgrind_checking= ;;
6492 all) ac_assert_checking=1 ; ac_checking=1 ;
6493 ac_fold_checking=1 ; ac_gc_checking=1 ;
6494 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6495 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6496 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6497 release) ac_assert_checking=1 ; ac_checking= ;
6498 ac_fold_checking= ; ac_gc_checking= ;
6499 ac_gc_always_collect= ; ac_rtl_checking= ;
6500 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6501 ac_tree_checking= ; ac_valgrind_checking= ;;
6502 # these enable particular checks
6503 assert) ac_assert_checking=1 ;;
6504 fold) ac_fold_checking=1 ;;
6505 gc) ac_gc_checking=1 ;;
6506 gcac) ac_gc_always_collect=1 ;;
6507 misc) ac_checking=1 ;;
6508 rtl) ac_rtl_checking=1 ;;
6509 rtlflag) ac_rtlflag_checking=1 ;;
6510 runtime) ac_runtime_checking=1 ;;
6511 tree) ac_tree_checking=1 ;;
6512 valgrind) ac_valgrind_checking=1 ;;
6513 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6514 echo "$as_me: error: unknown check category $check" >&2;}
6515 { (exit 1); exit 1; }; } ;;
6516 esac
6517 done
6518 IFS="$ac_save_IFS"
6520 nocommon_flag=""
6521 if test x$ac_checking != x ; then
6523 cat >>confdefs.h <<\_ACEOF
6524 #define ENABLE_CHECKING 1
6525 _ACEOF
6527 nocommon_flag=-fno-common
6530 if test x$ac_assert_checking != x ; then
6532 cat >>confdefs.h <<\_ACEOF
6533 #define ENABLE_ASSERT_CHECKING 1
6534 _ACEOF
6538 if test x$ac_runtime_checking != x ; then
6540 cat >>confdefs.h <<\_ACEOF
6541 #define ENABLE_RUNTIME_CHECKING 1
6542 _ACEOF
6545 if test x$ac_tree_checking != x ; then
6547 cat >>confdefs.h <<\_ACEOF
6548 #define ENABLE_TREE_CHECKING 1
6549 _ACEOF
6551 TREEBROWSER=tree-browser.o
6554 if test x$ac_rtl_checking != x ; then
6556 cat >>confdefs.h <<\_ACEOF
6557 #define ENABLE_RTL_CHECKING 1
6558 _ACEOF
6561 if test x$ac_rtlflag_checking != x ; then
6563 cat >>confdefs.h <<\_ACEOF
6564 #define ENABLE_RTL_FLAG_CHECKING 1
6565 _ACEOF
6568 if test x$ac_gc_checking != x ; then
6570 cat >>confdefs.h <<\_ACEOF
6571 #define ENABLE_GC_CHECKING 1
6572 _ACEOF
6575 if test x$ac_gc_always_collect != x ; then
6577 cat >>confdefs.h <<\_ACEOF
6578 #define ENABLE_GC_ALWAYS_COLLECT 1
6579 _ACEOF
6582 if test x$ac_fold_checking != x ; then
6584 cat >>confdefs.h <<\_ACEOF
6585 #define ENABLE_FOLD_CHECKING 1
6586 _ACEOF
6589 valgrind_path_defines=
6590 valgrind_command=
6592 if test "${ac_cv_header_valgrind_h+set}" = set; then
6593 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6594 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6595 if test "${ac_cv_header_valgrind_h+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6599 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6600 else
6601 # Is the header compilable?
6602 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6603 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 $ac_includes_default
6611 #include <valgrind.h>
6612 _ACEOF
6613 rm -f conftest.$ac_objext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -z "$ac_c_werror_flag"
6623 || test ! -s conftest.err'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 (eval $ac_try) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; } &&
6629 { ac_try='test -s conftest.$ac_objext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_header_compiler=yes
6636 else
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6640 ac_header_compiler=no
6642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6644 echo "${ECHO_T}$ac_header_compiler" >&6
6646 # Is the header present?
6647 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6648 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6649 cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h. */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 #include <valgrind.h>
6656 _ACEOF
6657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6659 ac_status=$?
6660 grep -v '^ *+' conftest.er1 >conftest.err
6661 rm -f conftest.er1
6662 cat conftest.err >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } >/dev/null; then
6665 if test -s conftest.err; then
6666 ac_cpp_err=$ac_c_preproc_warn_flag
6667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6668 else
6669 ac_cpp_err=
6671 else
6672 ac_cpp_err=yes
6674 if test -z "$ac_cpp_err"; then
6675 ac_header_preproc=yes
6676 else
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6680 ac_header_preproc=no
6682 rm -f conftest.err conftest.$ac_ext
6683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6684 echo "${ECHO_T}$ac_header_preproc" >&6
6686 # So? What about this header?
6687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6688 yes:no: )
6689 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6690 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6692 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6693 ac_header_preproc=yes
6695 no:yes:* )
6696 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6697 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6698 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6699 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6700 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6701 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6703 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6705 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6707 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6709 cat <<\_ASBOX
6710 ## ------------------------------------------ ##
6711 ## Report this to the AC_PACKAGE_NAME lists. ##
6712 ## ------------------------------------------ ##
6713 _ASBOX
6715 sed "s/^/$as_me: WARNING: /" >&2
6717 esac
6718 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6719 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6720 if test "${ac_cv_header_valgrind_h+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723 ac_cv_header_valgrind_h=$ac_header_preproc
6725 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6726 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6729 if test $ac_cv_header_valgrind_h = yes; then
6730 have_valgrind_h=yes
6731 else
6732 have_valgrind_h=no
6737 if test x$ac_valgrind_checking != x ; then
6738 # It is certainly possible that there's valgrind but no valgrind.h.
6739 # GCC relies on making annotations so we must have both.
6740 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6741 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 #include <valgrind/memcheck.h>
6749 #ifndef VALGRIND_DISCARD
6750 #error VALGRIND_DISCARD not defined
6751 #endif
6752 _ACEOF
6753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6755 ac_status=$?
6756 grep -v '^ *+' conftest.er1 >conftest.err
6757 rm -f conftest.er1
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } >/dev/null; then
6761 if test -s conftest.err; then
6762 ac_cpp_err=$ac_c_preproc_warn_flag
6763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6764 else
6765 ac_cpp_err=
6767 else
6768 ac_cpp_err=yes
6770 if test -z "$ac_cpp_err"; then
6771 gcc_cv_header_valgrind_memcheck_h=yes
6772 else
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 gcc_cv_header_valgrind_memcheck_h=no
6778 rm -f conftest.err conftest.$ac_ext
6779 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6780 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6781 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6782 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h. */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <memcheck.h>
6790 #ifndef VALGRIND_DISCARD
6791 #error VALGRIND_DISCARD not defined
6792 #endif
6793 _ACEOF
6794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } >/dev/null; then
6802 if test -s conftest.err; then
6803 ac_cpp_err=$ac_c_preproc_warn_flag
6804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6805 else
6806 ac_cpp_err=
6808 else
6809 ac_cpp_err=yes
6811 if test -z "$ac_cpp_err"; then
6812 gcc_cv_header_memcheck_h=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 gcc_cv_header_memcheck_h=no
6819 rm -f conftest.err conftest.$ac_ext
6820 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6821 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6823 # Prepare PATH_SEPARATOR.
6824 # The user is always right.
6825 if test "${PATH_SEPARATOR+set}" != set; then
6826 echo "#! /bin/sh" >conf$$.sh
6827 echo "exit 0" >>conf$$.sh
6828 chmod +x conf$$.sh
6829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6830 PATH_SEPARATOR=';'
6831 else
6832 PATH_SEPARATOR=:
6834 rm -f conf$$.sh
6837 # Find out how to test for executable files. Don't use a zero-byte file,
6838 # as systems may use methods other than mode bits to determine executability.
6839 cat >conf$$.file <<_ASEOF
6840 #! /bin/sh
6841 exit 0
6842 _ASEOF
6843 chmod +x conf$$.file
6844 if test -x conf$$.file >/dev/null 2>&1; then
6845 ac_executable_p="test -x"
6846 else
6847 ac_executable_p="test -f"
6849 rm -f conf$$.file
6851 # Extract the first word of "valgrind", so it can be a program name with args.
6852 set dummy valgrind; ac_word=$2
6853 echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6855 if test "${ac_cv_path_valgrind_path+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 case "$valgrind_path" in
6859 [\\/]* | ?:[\\/]*)
6860 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6863 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6864 for ac_dir in $PATH; do
6865 IFS="$ac_save_IFS"
6866 test -z "$ac_dir" && ac_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6869 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6870 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6871 break 2
6874 done
6875 done
6876 IFS="$ac_save_IFS"
6878 esac
6880 valgrind_path="$ac_cv_path_valgrind_path"
6881 if test -n "$valgrind_path"; then
6882 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6883 echo "${ECHO_T}$valgrind_path" >&6
6884 else
6885 echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6
6889 if test "x$valgrind_path" = "x" \
6890 || (test $have_valgrind_h = no \
6891 && test $gcc_cv_header_memcheck_h = no \
6892 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6893 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6894 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6895 { (exit 1); exit 1; }; }
6897 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6898 valgrind_command="$valgrind_path -q"
6900 cat >>confdefs.h <<\_ACEOF
6901 #define ENABLE_VALGRIND_CHECKING 1
6902 _ACEOF
6904 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6906 cat >>confdefs.h <<\_ACEOF
6907 #define HAVE_VALGRIND_MEMCHECK_H 1
6908 _ACEOF
6911 if test $gcc_cv_header_memcheck_h = yes; then
6913 cat >>confdefs.h <<\_ACEOF
6914 #define HAVE_MEMCHECK_H 1
6915 _ACEOF
6922 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6923 if test "${enable_mapped_location+set}" = set; then
6924 enableval="$enable_mapped_location"
6926 else
6927 enable_mapped_location=no
6930 if test "$enable_mapped_location" = yes ; then
6932 cat >>confdefs.h <<\_ACEOF
6933 #define USE_MAPPED_LOCATION 1
6934 _ACEOF
6938 # Enable code coverage collection
6939 # Check whether --enable-coverage or --disable-coverage was given.
6940 if test "${enable_coverage+set}" = set; then
6941 enableval="$enable_coverage"
6942 case "${enableval}" in
6943 yes|noopt)
6944 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6946 opt)
6947 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6950 # a.k.a. --disable-coverage
6951 coverage_flags=""
6954 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6955 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6956 { (exit 1); exit 1; }; }
6958 esac
6959 else
6960 coverage_flags=""
6964 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6965 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6966 enableval="$enable_gather_detailed_mem_stats"
6968 else
6969 enable_gather_detailed_mem_stats=no
6971 if test x$enable_gather_detailed_mem_stats = xyes ; then
6973 cat >>confdefs.h <<\_ACEOF
6974 #define GATHER_STATISTICS 1
6975 _ACEOF
6979 # -------------------------------
6980 # Miscenalleous configure options
6981 # -------------------------------
6983 # With stabs
6985 # Check whether --with-stabs or --without-stabs was given.
6986 if test "${with_stabs+set}" = set; then
6987 withval="$with_stabs"
6988 stabs="$with_stabs"
6989 else
6990 stabs=no
6993 # Determine whether or not multilibs are enabled.
6994 # Check whether --enable-multilib or --disable-multilib was given.
6995 if test "${enable_multilib+set}" = set; then
6996 enableval="$enable_multilib"
6998 else
6999 enable_multilib=yes
7003 # Enable __cxa_atexit for C++.
7004 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7005 if test "${enable___cxa_atexit+set}" = set; then
7006 enableval="$enable___cxa_atexit"
7010 # Enable C extension for decimal float if target supports it.
7011 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7012 if test "${enable_decimal_float+set}" = set; then
7013 enableval="$enable_decimal_float"
7015 if test x$enablevar = xyes ; then
7016 case $target in
7017 powerpc*-*-linux* | i?86*-*-linux*)
7018 enable_decimal_float=yes
7021 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7022 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7023 enable_decimal_float=no
7025 esac
7028 else
7029 enable_decimal_float=no
7034 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7036 cat >>confdefs.h <<_ACEOF
7037 #define ENABLE_DECIMAL_FLOAT $dfp
7038 _ACEOF
7041 # Enable threads
7042 # Pass with no value to take the default
7043 # Pass with a value to specify a thread package
7044 # Check whether --enable-threads or --disable-threads was given.
7045 if test "${enable_threads+set}" = set; then
7046 enableval="$enable_threads"
7048 else
7049 enable_threads=''
7052 # Check whether --enable-tls or --disable-tls was given.
7053 if test "${enable_tls+set}" = set; then
7054 enableval="$enable_tls"
7056 case $enable_tls in
7057 yes | no) ;;
7058 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7059 Valid choices are 'yes' and 'no'." >&5
7060 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7061 Valid choices are 'yes' and 'no'." >&2;}
7062 { (exit 1); exit 1; }; } ;;
7063 esac
7065 else
7066 enable_tls=''
7069 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7070 if test "${enable_objc_gc+set}" = set; then
7071 enableval="$enable_objc_gc"
7072 if test x$enable_objc_gc = xno; then
7073 objc_boehm_gc=''
7074 else
7075 objc_boehm_gc=1
7077 else
7078 objc_boehm_gc=''
7082 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7083 if test "${with_dwarf2+set}" = set; then
7084 withval="$with_dwarf2"
7085 dwarf2="$with_dwarf2"
7086 else
7087 dwarf2=no
7090 # Check whether --enable-shared or --disable-shared was given.
7091 if test "${enable_shared+set}" = set; then
7092 enableval="$enable_shared"
7094 case $enable_shared in
7095 yes | no) ;;
7097 enable_shared=no
7098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7099 for pkg in $enableval; do
7100 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7101 enable_shared=yes
7103 done
7104 IFS="$ac_save_ifs"
7106 esac
7108 else
7109 enable_shared=yes
7114 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7115 if test "${with_build_sysroot+set}" = set; then
7116 withval="$with_build_sysroot"
7121 # Check whether --with-sysroot or --without-sysroot was given.
7122 if test "${with_sysroot+set}" = set; then
7123 withval="$with_sysroot"
7125 case ${with_sysroot} in
7126 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7127 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7128 esac
7130 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7131 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7133 if test "x$exec_prefix" = xNONE; then
7134 if test "x$prefix" = xNONE; then
7135 test_prefix=/usr/local
7136 else
7137 test_prefix=$prefix
7139 else
7140 test_prefix=$exec_prefix
7142 case ${TARGET_SYSTEM_ROOT} in
7143 "${test_prefix}"|"${test_prefix}/"*|\
7144 '${exec_prefix}'|'${exec_prefix}/'*)
7145 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7146 TARGET_SYSTEM_ROOT_DEFINE="$t"
7148 esac
7150 else
7152 TARGET_SYSTEM_ROOT=
7153 TARGET_SYSTEM_ROOT_DEFINE=
7154 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7161 # Build with intermodule optimisations
7162 # Check whether --enable-intermodule or --disable-intermodule was given.
7163 if test "${enable_intermodule+set}" = set; then
7164 enableval="$enable_intermodule"
7165 case ${enable_intermodule} in
7166 yes) onestep="-onestep";;
7167 *) onestep="";;
7168 esac
7169 else
7170 onestep=""
7174 # Sanity check enable_languages in case someone does not run the toplevel
7175 # configure # script.
7176 # Check whether --enable-languages or --disable-languages was given.
7177 if test "${enable_languages+set}" = set; then
7178 enableval="$enable_languages"
7179 case ,${enable_languages}, in
7180 ,,|,yes,)
7181 # go safe -- we cannot be much sure without the toplevel
7182 # configure's
7183 # analysis of which target libs are present and usable
7184 enable_languages=c
7186 *,all,*)
7187 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7188 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7189 { (exit 1); exit 1; }; }
7191 *,c,*)
7194 enable_languages=c,${enable_languages}
7196 esac
7197 else
7198 enable_languages=c
7201 # Used by documentation targets
7206 # -------------------------
7207 # Checks for other programs
7208 # -------------------------
7210 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7212 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7213 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216 cat >conftest.make <<\_ACEOF
7217 all:
7218 @echo 'ac_maketemp="$(MAKE)"'
7219 _ACEOF
7220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7221 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7222 if test -n "$ac_maketemp"; then
7223 eval ac_cv_prog_make_${ac_make}_set=yes
7224 else
7225 eval ac_cv_prog_make_${ac_make}_set=no
7227 rm -f conftest.make
7229 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7230 echo "$as_me:$LINENO: result: yes" >&5
7231 echo "${ECHO_T}yes" >&6
7232 SET_MAKE=
7233 else
7234 echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6
7236 SET_MAKE="MAKE=${MAKE-make}"
7240 # Find some useful tools
7241 for ac_prog in gawk mawk nawk awk
7243 # Extract the first word of "$ac_prog", so it can be a program name with args.
7244 set dummy $ac_prog; ac_word=$2
7245 echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7247 if test "${ac_cv_prog_AWK+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250 if test -n "$AWK"; then
7251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_AWK="$ac_prog"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7264 done
7265 done
7269 AWK=$ac_cv_prog_AWK
7270 if test -n "$AWK"; then
7271 echo "$as_me:$LINENO: result: $AWK" >&5
7272 echo "${ECHO_T}$AWK" >&6
7273 else
7274 echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6
7278 test -n "$AWK" && break
7279 done
7281 # We need awk to create options.c and options.h.
7282 # Bail out if it's missing.
7283 case ${AWK} in
7284 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7285 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7286 { (exit 1); exit 1; }; } ;;
7287 esac
7289 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7290 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7291 if test "${gcc_cv_prog_LN_S+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294 rm -f conftestdata_t
7295 echo >conftestdata_f
7296 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7297 then
7298 gcc_cv_prog_LN_S="ln -s"
7299 else
7300 if ln conftestdata_f conftestdata_t 2>/dev/null
7301 then
7302 gcc_cv_prog_LN_S=ln
7303 else
7304 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7305 then
7306 gcc_cv_prog_LN_S="cp -p"
7307 else
7308 gcc_cv_prog_LN_S=cp
7312 rm -f conftestdata_f conftestdata_t
7315 LN_S="$gcc_cv_prog_LN_S"
7316 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7317 echo "$as_me:$LINENO: result: yes" >&5
7318 echo "${ECHO_T}yes" >&6
7319 else
7320 if test "$gcc_cv_prog_LN_S" = "ln"; then
7321 echo "$as_me:$LINENO: result: no, using ln" >&5
7322 echo "${ECHO_T}no, using ln" >&6
7323 else
7324 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7325 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7329 echo "$as_me:$LINENO: checking whether ln works" >&5
7330 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7331 if test "${acx_cv_prog_LN+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 rm -f conftestdata_t
7335 echo >conftestdata_f
7336 if ln conftestdata_f conftestdata_t 2>/dev/null
7337 then
7338 acx_cv_prog_LN=ln
7339 else
7340 acx_cv_prog_LN=no
7342 rm -f conftestdata_f conftestdata_t
7345 if test $acx_cv_prog_LN = no; then
7346 LN="$LN_S"
7347 echo "$as_me:$LINENO: result: no, using $LN" >&5
7348 echo "${ECHO_T}no, using $LN" >&6
7349 else
7350 LN="$acx_cv_prog_LN"
7351 echo "$as_me:$LINENO: result: yes" >&5
7352 echo "${ECHO_T}yes" >&6
7355 if test -n "$ac_tool_prefix"; then
7356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7358 echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7360 if test "${ac_cv_prog_RANLIB+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 if test -n "$RANLIB"; then
7364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7377 done
7378 done
7382 RANLIB=$ac_cv_prog_RANLIB
7383 if test -n "$RANLIB"; then
7384 echo "$as_me:$LINENO: result: $RANLIB" >&5
7385 echo "${ECHO_T}$RANLIB" >&6
7386 else
7387 echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6
7392 if test -z "$ac_cv_prog_RANLIB"; then
7393 ac_ct_RANLIB=$RANLIB
7394 # Extract the first word of "ranlib", so it can be a program name with args.
7395 set dummy ranlib; ac_word=$2
7396 echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 if test -n "$ac_ct_RANLIB"; then
7402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_ac_ct_RANLIB="ranlib"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7415 done
7416 done
7418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7422 if test -n "$ac_ct_RANLIB"; then
7423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7424 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7425 else
7426 echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6
7430 RANLIB=$ac_ct_RANLIB
7431 else
7432 RANLIB="$ac_cv_prog_RANLIB"
7435 case "${host}" in
7436 *-*-darwin*)
7437 # By default, the Darwin ranlib will not treat common symbols as
7438 # definitions when building the archive table of contents. Other
7439 # ranlibs do that; pass an option to the Darwin ranlib that makes
7440 # it behave similarly.
7441 ranlib_flags="-c"
7444 ranlib_flags=""
7445 esac
7448 # Find a good install program. We prefer a C program (faster),
7449 # so one script is as good as another. But avoid the broken or
7450 # incompatible versions:
7451 # SysV /etc/install, /usr/sbin/install
7452 # SunOS /usr/etc/install
7453 # IRIX /sbin/install
7454 # AIX /bin/install
7455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7457 # ./install, which can be erroneously created by make from ./install.sh.
7458 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7459 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7460 if test -z "$INSTALL"; then
7461 if test "${ac_cv_path_install+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7465 for ac_dir in $PATH; do
7466 # Account for people who put trailing slashes in PATH elements.
7467 case "$ac_dir/" in
7468 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7470 # OSF1 and SCO ODT 3.0 have their own names for install.
7471 for ac_prog in ginstall scoinst install; do
7472 if test -f $ac_dir/$ac_prog; then
7473 if test $ac_prog = install &&
7474 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7475 # AIX install. It has an incompatible calling convention.
7476 # OSF/1 installbsd also uses dspmsg, but is usable.
7478 else
7479 ac_cv_path_install="$ac_dir/$ac_prog -c"
7480 break 2
7483 done
7485 esac
7486 done
7487 IFS="$ac_save_IFS"
7490 if test "${ac_cv_path_install+set}" = set; then
7491 INSTALL="$ac_cv_path_install"
7492 else
7493 # As a last resort, use the slow shell script. We don't cache a
7494 # path for INSTALL within a source directory, because that will
7495 # break other packages using the cache if that directory is
7496 # removed, or if the path is relative.
7497 INSTALL="$ac_install_sh"
7500 echo "$as_me:$LINENO: result: $INSTALL" >&5
7501 echo "${ECHO_T}$INSTALL" >&6
7503 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7504 # It thinks the first close brace ends the variable substitution.
7505 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7507 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7510 # See if cmp has --ignore-initial.
7511 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7512 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7513 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 echo abfoo >t1
7517 echo cdfoo >t2
7518 gcc_cv_prog_cmp_skip=slowcompare
7519 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7520 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7522 else
7523 gcc_cv_prog_cmp_skip=gnucompare
7526 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7527 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7528 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7530 else
7531 gcc_cv_prog_cmp_skip=fastcompare
7535 rm t1 t2
7538 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7539 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7540 make_compare_target=$gcc_cv_prog_cmp_skip
7544 # See if we have the mktemp command.
7545 # Extract the first word of "mktemp", so it can be a program name with args.
7546 set dummy mktemp; ac_word=$2
7547 echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7549 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552 if test -n "$have_mktemp_command"; then
7553 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_have_mktemp_command="yes"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7566 done
7567 done
7569 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7572 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7573 if test -n "$have_mktemp_command"; then
7574 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7575 echo "${ECHO_T}$have_mktemp_command" >&6
7576 else
7577 echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7582 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7584 # See if makeinfo has been installed and is modern enough
7585 # that we can use it.
7587 ac_executable_extensions="$build_exeext"
7589 # Extract the first word of "makeinfo", so it can be a program name with args.
7590 set dummy makeinfo; ac_word=$2
7591 echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596 if test -n "$MAKEINFO"; then
7597 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_MAKEINFO="makeinfo"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7610 done
7611 done
7615 MAKEINFO=$ac_cv_prog_MAKEINFO
7616 if test -n "$MAKEINFO"; then
7617 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7618 echo "${ECHO_T}$MAKEINFO" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6
7624 if test -n "$MAKEINFO"; then
7625 # Found it, now check the version.
7626 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7627 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7628 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631 ac_prog_version=`$MAKEINFO --version 2>&1 |
7632 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7633 echo "configure:7633: version of makeinfo is $ac_prog_version" >&5
7634 case $ac_prog_version in
7635 '') gcc_cv_prog_makeinfo_modern=no;;
7636 4.[4-9]*)
7637 gcc_cv_prog_makeinfo_modern=yes;;
7638 *) gcc_cv_prog_makeinfo_modern=no;;
7639 esac
7642 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7643 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7644 else
7645 gcc_cv_prog_makeinfo_modern=no
7648 if test $gcc_cv_prog_makeinfo_modern = no; then
7649 MAKEINFO="$MISSING makeinfo"
7650 { echo "$as_me:$LINENO: WARNING:
7651 *** Makeinfo is missing or too old.
7652 *** Info documentation will not be built." >&5
7653 echo "$as_me: WARNING:
7654 *** Makeinfo is missing or too old.
7655 *** Info documentation will not be built." >&2;}
7656 BUILD_INFO=
7657 else
7658 BUILD_INFO=info
7662 # Is pod2man recent enough to regenerate manpages?
7663 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7664 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7665 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7666 echo "$as_me:$LINENO: result: yes" >&5
7667 echo "${ECHO_T}yes" >&6
7668 GENERATED_MANPAGES=generated-manpages
7669 else
7670 echo "$as_me:$LINENO: result: no" >&5
7671 echo "${ECHO_T}no" >&6
7672 GENERATED_MANPAGES=
7676 # How about lex?
7677 for ac_prog in flex
7679 # Extract the first word of "$ac_prog", so it can be a program name with args.
7680 set dummy $ac_prog; ac_word=$2
7681 echo "$as_me:$LINENO: checking for $ac_word" >&5
7682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7683 if test "${ac_cv_prog_FLEX+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686 if test -n "$FLEX"; then
7687 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_FLEX="$ac_prog"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7700 done
7701 done
7705 FLEX=$ac_cv_prog_FLEX
7706 if test -n "$FLEX"; then
7707 echo "$as_me:$LINENO: result: $FLEX" >&5
7708 echo "${ECHO_T}$FLEX" >&6
7709 else
7710 echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6
7714 test -n "$FLEX" && break
7715 done
7716 test -n "$FLEX" || FLEX="$MISSING flex"
7719 # Bison?
7720 for ac_prog in bison
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7726 if test "${ac_cv_prog_BISON+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729 if test -n "$BISON"; then
7730 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 ac_cv_prog_BISON="$ac_prog"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 break 2
7743 done
7744 done
7748 BISON=$ac_cv_prog_BISON
7749 if test -n "$BISON"; then
7750 echo "$as_me:$LINENO: result: $BISON" >&5
7751 echo "${ECHO_T}$BISON" >&6
7752 else
7753 echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6
7757 test -n "$BISON" && break
7758 done
7759 test -n "$BISON" || BISON="$MISSING bison"
7762 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7763 # check for build == host before using them.
7765 # NM
7766 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7767 && test -d ../binutils ; then
7768 NM='$(objdir)/../binutils/nm-new'
7769 else
7770 # Extract the first word of "nm", so it can be a program name with args.
7771 set dummy nm; ac_word=$2
7772 echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7774 if test "${ac_cv_prog_NM+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777 if test -n "$NM"; then
7778 ac_cv_prog_NM="$NM" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_NM="nm"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7791 done
7792 done
7794 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7797 NM=$ac_cv_prog_NM
7798 if test -n "$NM"; then
7799 echo "$as_me:$LINENO: result: $NM" >&5
7800 echo "${ECHO_T}$NM" >&6
7801 else
7802 echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6
7808 # AR
7809 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7810 && test -d ../binutils ; then
7811 AR='$(objdir)/../binutils/ar'
7812 else
7813 # Extract the first word of "ar", so it can be a program name with args.
7814 set dummy ar; ac_word=$2
7815 echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7817 if test "${ac_cv_prog_AR+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 if test -n "$AR"; then
7821 ac_cv_prog_AR="$AR" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_AR="ar"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7834 done
7835 done
7837 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7840 AR=$ac_cv_prog_AR
7841 if test -n "$AR"; then
7842 echo "$as_me:$LINENO: result: $AR" >&5
7843 echo "${ECHO_T}$AR" >&6
7844 else
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7852 # --------------------
7853 # Checks for C headers
7854 # --------------------
7856 echo "$as_me:$LINENO: checking for GNU C library" >&5
7857 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7858 if test "${gcc_cv_glibc+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <features.h>
7869 main ()
7872 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7873 #error Not a GNU C library system
7874 #endif
7876 return 0;
7878 _ACEOF
7879 rm -f conftest.$ac_objext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881 (eval $ac_compile) 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -z "$ac_c_werror_flag"
7889 || test ! -s conftest.err'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try='test -s conftest.$ac_objext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 gcc_cv_glibc=yes
7902 else
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 gcc_cv_glibc=no
7908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7912 echo "${ECHO_T}$gcc_cv_glibc" >&6
7913 if test $gcc_cv_glibc = yes; then
7915 cat >>confdefs.h <<\_ACEOF
7916 #define _GNU_SOURCE 1
7917 _ACEOF
7921 # Need to reject headers which give warnings, so that the -Werror bootstrap
7922 # works later. *sigh* This needs to come before all header checks.
7924 ac_c_preproc_warn_flag=yes
7926 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7927 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7928 if test "${ac_cv_header_stdc+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <stdlib.h>
7938 #include <stdarg.h>
7939 #include <string.h>
7940 #include <float.h>
7943 main ()
7947 return 0;
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952 (eval $ac_compile) 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_c_werror_flag"
7960 || test ! -s conftest.err'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try='test -s conftest.$ac_objext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_header_stdc=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_cv_header_stdc=no
7979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7981 if test $ac_cv_header_stdc = yes; then
7982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <string.h>
7991 _ACEOF
7992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7993 $EGREP "memchr" >/dev/null 2>&1; then
7995 else
7996 ac_cv_header_stdc=no
7998 rm -f conftest*
8002 if test $ac_cv_header_stdc = yes; then
8003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 #include <stdlib.h>
8012 _ACEOF
8013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014 $EGREP "free" >/dev/null 2>&1; then
8016 else
8017 ac_cv_header_stdc=no
8019 rm -f conftest*
8023 if test $ac_cv_header_stdc = yes; then
8024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8025 if test "$cross_compiling" = yes; then
8027 else
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 #include <ctype.h>
8035 #if ((' ' & 0x0FF) == 0x020)
8036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8038 #else
8039 # define ISLOWER(c) \
8040 (('a' <= (c) && (c) <= 'i') \
8041 || ('j' <= (c) && (c) <= 'r') \
8042 || ('s' <= (c) && (c) <= 'z'))
8043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8044 #endif
8046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8048 main ()
8050 int i;
8051 for (i = 0; i < 256; i++)
8052 if (XOR (islower (i), ISLOWER (i))
8053 || toupper (i) != TOUPPER (i))
8054 exit(2);
8055 exit (0);
8057 _ACEOF
8058 rm -f conftest$ac_exeext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060 (eval $ac_link) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8070 else
8071 echo "$as_me: program exited with status $ac_status" >&5
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ( exit $ac_status )
8076 ac_cv_header_stdc=no
8078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8084 if test $ac_cv_header_stdc = yes; then
8086 cat >>confdefs.h <<\_ACEOF
8087 #define STDC_HEADERS 1
8088 _ACEOF
8092 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8093 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8094 if test "${ac_cv_header_time+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 <sys/types.h>
8104 #include <sys/time.h>
8105 #include <time.h>
8108 main ()
8110 if ((struct tm *) 0)
8111 return 0;
8113 return 0;
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -z "$ac_c_werror_flag"
8126 || test ! -s conftest.err'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; } &&
8132 { ac_try='test -s conftest.$ac_objext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_cv_header_time=yes
8139 else
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8143 ac_cv_header_time=no
8145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8148 echo "${ECHO_T}$ac_cv_header_time" >&6
8149 if test $ac_cv_header_time = yes; then
8151 cat >>confdefs.h <<\_ACEOF
8152 #define TIME_WITH_SYS_TIME 1
8153 _ACEOF
8157 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8158 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8159 if test "${gcc_cv_header_string+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h. */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 #include <string.h>
8169 #include <strings.h>
8171 main ()
8175 return 0;
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -z "$ac_c_werror_flag"
8188 || test ! -s conftest.err'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try='test -s conftest.$ac_objext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 gcc_cv_header_string=yes
8201 else
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 gcc_cv_header_string=no
8207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8209 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8210 echo "${ECHO_T}$gcc_cv_header_string" >&6
8211 if test $gcc_cv_header_string = yes; then
8213 cat >>confdefs.h <<\_ACEOF
8214 #define STRING_WITH_STRINGS 1
8215 _ACEOF
8219 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8220 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8221 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224 cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h. */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8230 #include <sys/types.h>
8231 #include <sys/wait.h>
8232 #ifndef WEXITSTATUS
8233 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8234 #endif
8235 #ifndef WIFEXITED
8236 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8237 #endif
8240 main ()
8242 int s;
8243 wait (&s);
8244 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8246 return 0;
8248 _ACEOF
8249 rm -f conftest.$ac_objext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251 (eval $ac_compile) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -z "$ac_c_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest.$ac_objext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_header_sys_wait_h=yes
8272 else
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8276 ac_cv_header_sys_wait_h=no
8278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8281 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8282 if test $ac_cv_header_sys_wait_h = yes; then
8284 cat >>confdefs.h <<\_ACEOF
8285 #define HAVE_SYS_WAIT_H 1
8286 _ACEOF
8312 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8313 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8314 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8315 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8318 echo "$as_me:$LINENO: checking for $ac_header" >&5
8319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 #include <$ac_header>
8330 _ACEOF
8331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8333 ac_status=$?
8334 grep -v '^ *+' conftest.er1 >conftest.err
8335 rm -f conftest.er1
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } >/dev/null; then
8339 if test -s conftest.err; then
8340 ac_cpp_err=$ac_c_preproc_warn_flag
8341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8342 else
8343 ac_cpp_err=
8345 else
8346 ac_cpp_err=yes
8348 if test -z "$ac_cpp_err"; then
8349 eval "$as_ac_Header=yes"
8350 else
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 eval "$as_ac_Header=no"
8356 rm -f conftest.err conftest.$ac_ext
8358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8361 cat >>confdefs.h <<_ACEOF
8362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8363 _ACEOF
8366 done
8369 # Check for thread headers.
8370 echo "$as_me:$LINENO: checking for thread.h" >&5
8371 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8372 if test "${ac_cv_header_thread_h+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h. */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 #include <thread.h>
8382 _ACEOF
8383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } >/dev/null; then
8391 if test -s conftest.err; then
8392 ac_cpp_err=$ac_c_preproc_warn_flag
8393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8394 else
8395 ac_cpp_err=
8397 else
8398 ac_cpp_err=yes
8400 if test -z "$ac_cpp_err"; then
8401 ac_cv_header_thread_h=yes
8402 else
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8406 ac_cv_header_thread_h=no
8408 rm -f conftest.err conftest.$ac_ext
8410 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8411 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8412 if test $ac_cv_header_thread_h = yes; then
8413 have_thread_h=yes
8414 else
8415 have_thread_h=
8418 echo "$as_me:$LINENO: checking for pthread.h" >&5
8419 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8420 if test "${ac_cv_header_pthread_h+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 #include <pthread.h>
8430 _ACEOF
8431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } >/dev/null; then
8439 if test -s conftest.err; then
8440 ac_cpp_err=$ac_c_preproc_warn_flag
8441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8442 else
8443 ac_cpp_err=
8445 else
8446 ac_cpp_err=yes
8448 if test -z "$ac_cpp_err"; then
8449 ac_cv_header_pthread_h=yes
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_cv_header_pthread_h=no
8456 rm -f conftest.err conftest.$ac_ext
8458 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8459 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8460 if test $ac_cv_header_pthread_h = yes; then
8461 have_pthread_h=yes
8462 else
8463 have_pthread_h=
8467 # These tests can't be done till we know if we have limits.h.
8468 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8469 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8470 if test "${gcc_cv_decl_char_bit+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 #ifdef HAVE_LIMITS_H
8480 #include <limits.h>
8481 #endif
8482 #ifdef CHAR_BIT
8483 found
8484 #endif
8485 _ACEOF
8486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8487 $EGREP "found" >/dev/null 2>&1; then
8488 gcc_cv_decl_char_bit=yes
8489 else
8490 gcc_cv_decl_char_bit=no
8492 rm -f conftest*
8496 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8497 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8498 if test $gcc_cv_decl_char_bit = no; then
8499 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8500 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8501 if test "${gcc_cv_c_nbby+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8505 gcc_cv_c_nbby=
8506 while test $i -lt 65; do
8507 cat >conftest.$ac_ext <<_ACEOF
8508 /* confdefs.h. */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8515 main ()
8517 switch(0) {
8518 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8519 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8522 return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 gcc_cv_c_nbby=$i; break
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8554 i=`expr $i + 1`
8555 done
8556 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8559 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8560 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8561 if test $gcc_cv_c_nbby = failed; then
8562 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8563 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8564 { (exit 1); exit 1; }; }
8565 else
8567 cat >>confdefs.h <<_ACEOF
8568 #define CHAR_BIT $gcc_cv_c_nbby
8569 _ACEOF
8573 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8574 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8575 if test "${ac_cv_c_bigendian+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578 # See if sys/param.h defines the BYTE_ORDER macro.
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h. */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <sys/types.h>
8586 #include <sys/param.h>
8589 main ()
8591 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8592 bogus endian macros
8593 #endif
8596 return 0;
8598 _ACEOF
8599 rm -f conftest.$ac_objext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601 (eval $ac_compile) 2>conftest.er1
8602 ac_status=$?
8603 grep -v '^ *+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -z "$ac_c_werror_flag"
8609 || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest.$ac_objext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 # It does; now see whether it defined to BIG_ENDIAN or not.
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 #include <sys/types.h>
8629 #include <sys/param.h>
8632 main ()
8634 #if BYTE_ORDER != BIG_ENDIAN
8635 not big endian
8636 #endif
8639 return 0;
8641 _ACEOF
8642 rm -f conftest.$ac_objext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try='test -z "$ac_c_werror_flag"
8652 || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest.$ac_objext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_cv_c_bigendian=yes
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8669 ac_cv_c_bigendian=no
8671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8672 else
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8676 # It does not; compile a test program.
8677 if test "$cross_compiling" = yes; then
8678 # try to guess the endianness by grepping values into an object file
8679 ac_cv_c_bigendian=unknown
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8687 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8688 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8689 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8690 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8691 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8693 main ()
8695 _ascii (); _ebcdic ();
8697 return 0;
8699 _ACEOF
8700 rm -f conftest.$ac_objext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702 (eval $ac_compile) 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest.$ac_objext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8723 ac_cv_c_bigendian=yes
8725 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8726 if test "$ac_cv_c_bigendian" = unknown; then
8727 ac_cv_c_bigendian=no
8728 else
8729 # finding both strings is unlikely to happen, but who knows?
8730 ac_cv_c_bigendian=unknown
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8739 else
8740 cat >conftest.$ac_ext <<_ACEOF
8741 /* confdefs.h. */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8747 main ()
8749 /* Are we little or big endian? From Harbison&Steele. */
8750 union
8752 long l;
8753 char c[sizeof (long)];
8754 } u;
8755 u.l = 1;
8756 exit (u.c[sizeof (long) - 1] == 1);
8758 _ACEOF
8759 rm -f conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_c_bigendian=no
8771 else
8772 echo "$as_me: program exited with status $ac_status" >&5
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ( exit $ac_status )
8777 ac_cv_c_bigendian=yes
8779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8784 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8785 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8786 case $ac_cv_c_bigendian in
8787 yes)
8789 cat >>confdefs.h <<\_ACEOF
8790 #define WORDS_BIGENDIAN 1
8791 _ACEOF
8796 { { echo "$as_me:$LINENO: error: unknown endianness
8797 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8798 echo "$as_me: error: unknown endianness
8799 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8800 { (exit 1); exit 1; }; } ;;
8801 esac
8804 # --------
8805 # UNSORTED
8806 # --------
8809 # These libraries may be used by collect2.
8810 # We may need a special search path to get them linked.
8811 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8812 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8813 if test "${gcc_cv_collect2_libs+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816 save_LIBS="$LIBS"
8817 for libs in '' -lld -lmld \
8818 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8819 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8821 LIBS="$libs"
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h. */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 /* Override any gcc2 internal prototype to avoid an error. */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8835 char ldopen ();
8837 main ()
8839 ldopen ();
8841 return 0;
8843 _ACEOF
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -z "$ac_c_werror_flag"
8854 || test ! -s conftest.err'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 (eval $ac_try) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; } &&
8860 { ac_try='test -s conftest$ac_exeext'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
8866 gcc_cv_collect2_libs="$libs"; break
8867 else
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8872 rm -f conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874 done
8875 LIBS="$save_LIBS"
8876 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8878 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8879 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8880 case $gcc_cv_collect2_libs in
8881 "none required") ;;
8882 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8883 esac
8886 # When building Ada code on Alpha, we need exc_resume which is usually in
8887 # -lexc. So test for it.
8888 save_LIBS="$LIBS"
8889 LIBS=
8890 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8891 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8892 if test "${ac_cv_search_exc_resume+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895 ac_func_search_save_LIBS=$LIBS
8896 ac_cv_search_exc_resume=no
8897 cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h. */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8904 /* Override any gcc2 internal prototype to avoid an error. */
8905 #ifdef __cplusplus
8906 extern "C"
8907 #endif
8908 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8910 char exc_resume ();
8912 main ()
8914 exc_resume ();
8916 return 0;
8918 _ACEOF
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921 (eval $ac_link) 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -z "$ac_c_werror_flag"
8929 || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest$ac_exeext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_search_exc_resume="none required"
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8947 rm -f conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 if test "$ac_cv_search_exc_resume" = no; then
8950 for ac_lib in exc; do
8951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8959 /* Override any gcc2 internal prototype to avoid an error. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 /* We use char because int might match the return type of a gcc2
8964 builtin and then its argument prototype would still apply. */
8965 char exc_resume ();
8967 main ()
8969 exc_resume ();
8971 return 0;
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -z "$ac_c_werror_flag"
8984 || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_search_exc_resume="-l$ac_lib"
8997 break
8998 else
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9003 rm -f conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005 done
9007 LIBS=$ac_func_search_save_LIBS
9009 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9010 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9011 if test "$ac_cv_search_exc_resume" != no; then
9012 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9016 GNAT_LIBEXC="$LIBS"
9017 LIBS="$save_LIBS"
9020 # Some systems put ldexp and frexp in libm instead of libc; assume
9021 # they're both in the same place. jcf-dump needs them.
9022 save_LIBS="$LIBS"
9023 LIBS=
9024 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9025 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9026 if test "${ac_cv_search_ldexp+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029 ac_func_search_save_LIBS=$LIBS
9030 ac_cv_search_ldexp=no
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"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_search_ldexp="none required"
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 if test "$ac_cv_search_ldexp" = no; then
9084 for ac_lib in m; do
9085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9093 /* Override any gcc2 internal prototype to avoid an error. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9099 char ldexp ();
9101 main ()
9103 ldexp ();
9105 return 0;
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag"
9118 || test ! -s conftest.err'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_search_ldexp="-l$ac_lib"
9131 break
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9137 rm -f conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139 done
9141 LIBS=$ac_func_search_save_LIBS
9143 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9144 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9145 if test "$ac_cv_search_ldexp" != no; then
9146 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9150 LDEXP_LIB="$LIBS"
9151 LIBS="$save_LIBS"
9154 # Use <inttypes.h> only if it exists,
9155 # doesn't clash with <sys/types.h>, and declares intmax_t.
9156 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9157 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9158 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9168 #include <inttypes.h>
9170 main ()
9172 intmax_t i = -1;
9174 return 0;
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 gcc_cv_header_inttypes_h=yes
9200 else
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 gcc_cv_header_inttypes_h=no
9206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9209 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9210 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9211 if test $gcc_cv_header_inttypes_h = yes; then
9213 cat >>confdefs.h <<\_ACEOF
9214 #define HAVE_INTTYPES_H 1
9215 _ACEOF
9256 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9257 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9258 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9259 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
9261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9262 echo "$as_me:$LINENO: checking for $ac_func" >&5
9263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9264 if eval "test \"\${$as_ac_var+set}\" = set"; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h. */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9275 #define $ac_func innocuous_$ac_func
9277 /* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char $ac_func (); below.
9279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280 <limits.h> exists even on freestanding compilers. */
9282 #ifdef __STDC__
9283 # include <limits.h>
9284 #else
9285 # include <assert.h>
9286 #endif
9288 #undef $ac_func
9290 /* Override any gcc2 internal prototype to avoid an error. */
9291 #ifdef __cplusplus
9292 extern "C"
9294 #endif
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9297 char $ac_func ();
9298 /* The GNU C library defines this for functions which it implements
9299 to always fail with ENOSYS. Some functions are actually named
9300 something starting with __ and the normal name is an alias. */
9301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9302 choke me
9303 #else
9304 char (*f) () = $ac_func;
9305 #endif
9306 #ifdef __cplusplus
9308 #endif
9311 main ()
9313 return f != $ac_func;
9315 return 0;
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>conftest.er1
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 eval "$as_ac_var=yes"
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 eval "$as_ac_var=no"
9347 rm -f conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9352 if test `eval echo '${'$as_ac_var'}'` = yes; then
9353 cat >>confdefs.h <<_ACEOF
9354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9355 _ACEOF
9358 done
9361 if test x$ac_cv_func_mbstowcs = xyes; then
9362 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9363 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9364 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367 if test "$cross_compiling" = yes; then
9368 gcc_cv_func_mbstowcs_works=yes
9369 else
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376 #include <stdlib.h>
9377 int main()
9379 mbstowcs(0, "", 0);
9380 return 0;
9382 _ACEOF
9383 rm -f conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 gcc_cv_func_mbstowcs_works=yes
9395 else
9396 echo "$as_me: program exited with status $ac_status" >&5
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9400 ( exit $ac_status )
9401 gcc_cv_func_mbstowcs_works=no
9403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9406 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9407 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9408 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9410 cat >>confdefs.h <<\_ACEOF
9411 #define HAVE_WORKING_MBSTOWCS 1
9412 _ACEOF
9417 echo "$as_me:$LINENO: checking for ssize_t" >&5
9418 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9419 if test "${ac_cv_type_ssize_t+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 $ac_includes_default
9430 main ()
9432 if ((ssize_t *) 0)
9433 return 0;
9434 if (sizeof (ssize_t))
9435 return 0;
9437 return 0;
9439 _ACEOF
9440 rm -f conftest.$ac_objext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9442 (eval $ac_compile) 2>conftest.er1
9443 ac_status=$?
9444 grep -v '^ *+' conftest.er1 >conftest.err
9445 rm -f conftest.er1
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try='test -z "$ac_c_werror_flag"
9450 || test ! -s conftest.err'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_type_ssize_t=yes
9463 else
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_cv_type_ssize_t=no
9469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9471 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9472 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9473 if test $ac_cv_type_ssize_t = yes; then
9475 else
9477 cat >>confdefs.h <<_ACEOF
9478 #define ssize_t int
9479 _ACEOF
9484 # Try to determine the array type of the second argument of getgroups
9485 # for the target system (int or gid_t).
9486 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9487 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9488 if test "${ac_cv_type_uid_t+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 #include <sys/types.h>
9499 _ACEOF
9500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9501 $EGREP "uid_t" >/dev/null 2>&1; then
9502 ac_cv_type_uid_t=yes
9503 else
9504 ac_cv_type_uid_t=no
9506 rm -f conftest*
9509 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9510 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9511 if test $ac_cv_type_uid_t = no; then
9513 cat >>confdefs.h <<\_ACEOF
9514 #define uid_t int
9515 _ACEOF
9518 cat >>confdefs.h <<\_ACEOF
9519 #define gid_t int
9520 _ACEOF
9524 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9525 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9526 if test "${ac_cv_type_getgroups+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529 if test "$cross_compiling" = yes; then
9530 ac_cv_type_getgroups=cross
9531 else
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 /* Thanks to Mike Rendell for this test. */
9539 #include <sys/types.h>
9540 #define NGID 256
9541 #undef MAX
9542 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9545 main ()
9547 gid_t gidset[NGID];
9548 int i, n;
9549 union { gid_t gval; long lval; } val;
9551 val.lval = -1;
9552 for (i = 0; i < NGID; i++)
9553 gidset[i] = val.gval;
9554 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9555 gidset);
9556 /* Exit non-zero if getgroups seems to require an array of ints. This
9557 happens when gid_t is short but getgroups modifies an array of ints. */
9558 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9560 _ACEOF
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_type_getgroups=gid_t
9573 else
9574 echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9578 ( exit $ac_status )
9579 ac_cv_type_getgroups=int
9581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9583 if test $ac_cv_type_getgroups = cross; then
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 #include <unistd.h>
9592 _ACEOF
9593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9594 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9595 ac_cv_type_getgroups=gid_t
9596 else
9597 ac_cv_type_getgroups=int
9599 rm -f conftest*
9603 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9604 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9606 cat >>confdefs.h <<_ACEOF
9607 #define GETGROUPS_T $ac_cv_type_getgroups
9608 _ACEOF
9611 if test "${target}" = "${build}"; then
9612 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9613 else
9614 case "${target}" in
9615 # This condition may need some tweaking. It should include all
9616 # targets where the array type of the second argument of getgroups
9617 # is int and the type of gid_t is not equivalent to int.
9618 *-*-sunos* | *-*-ultrix*)
9619 TARGET_GETGROUPS_T=int
9622 TARGET_GETGROUPS_T=gid_t
9624 esac
9629 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9630 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9631 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 #include <sys/mman.h>
9641 _ACEOF
9642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } >/dev/null; then
9650 if test -s conftest.err; then
9651 ac_cpp_err=$ac_c_preproc_warn_flag
9652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9653 else
9654 ac_cpp_err=
9656 else
9657 ac_cpp_err=yes
9659 if test -z "$ac_cpp_err"; then
9660 ac_cv_header_sys_mman_h=yes
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 ac_cv_header_sys_mman_h=no
9667 rm -f conftest.err conftest.$ac_ext
9669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9670 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9671 if test $ac_cv_header_sys_mman_h = yes; then
9672 gcc_header_sys_mman_h=yes
9673 else
9674 gcc_header_sys_mman_h=no
9677 echo "$as_me:$LINENO: checking for mmap" >&5
9678 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9679 if test "${ac_cv_func_mmap+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 else
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h. */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9690 #define mmap innocuous_mmap
9692 /* System header to define __stub macros and hopefully few prototypes,
9693 which can conflict with char mmap (); below.
9694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9695 <limits.h> exists even on freestanding compilers. */
9697 #ifdef __STDC__
9698 # include <limits.h>
9699 #else
9700 # include <assert.h>
9701 #endif
9703 #undef mmap
9705 /* Override any gcc2 internal prototype to avoid an error. */
9706 #ifdef __cplusplus
9707 extern "C"
9709 #endif
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9712 char mmap ();
9713 /* The GNU C library defines this for functions which it implements
9714 to always fail with ENOSYS. Some functions are actually named
9715 something starting with __ and the normal name is an alias. */
9716 #if defined (__stub_mmap) || defined (__stub___mmap)
9717 choke me
9718 #else
9719 char (*f) () = mmap;
9720 #endif
9721 #ifdef __cplusplus
9723 #endif
9726 main ()
9728 return f != mmap;
9730 return 0;
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_func_mmap=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_func_mmap=no
9762 rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9765 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9766 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9767 if test $ac_cv_func_mmap = yes; then
9768 gcc_func_mmap=yes
9769 else
9770 gcc_func_mmap=no
9773 if test "$gcc_header_sys_mman_h" != yes \
9774 || test "$gcc_func_mmap" != yes; then
9775 gcc_cv_func_mmap_file=no
9776 gcc_cv_func_mmap_dev_zero=no
9777 gcc_cv_func_mmap_anon=no
9778 else
9779 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9780 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9781 if test "${gcc_cv_func_mmap_file+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 # Add a system to this blacklist if
9785 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9786 # memory area containing the same data that you'd get if you applied
9787 # read() to the same fd. The only system known to have a problem here
9788 # is VMS, where text files have record structure.
9789 case "$host_os" in
9790 vms* | ultrix*)
9791 gcc_cv_func_mmap_file=no ;;
9793 gcc_cv_func_mmap_file=yes;;
9794 esac
9796 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9797 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9798 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9799 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9800 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 # Add a system to this blacklist if it has mmap() but /dev/zero
9804 # does not exist, or if mmapping /dev/zero does not give anonymous
9805 # zeroed pages with both the following properties:
9806 # 1. If you map N consecutive pages in with one call, and then
9807 # unmap any subset of those pages, the pages that were not
9808 # explicitly unmapped remain accessible.
9809 # 2. If you map two adjacent blocks of memory and then unmap them
9810 # both at once, they must both go away.
9811 # Systems known to be in this category are Windows (all variants),
9812 # VMS, and Darwin.
9813 case "$host_os" in
9814 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9815 gcc_cv_func_mmap_dev_zero=no ;;
9817 gcc_cv_func_mmap_dev_zero=yes;;
9818 esac
9820 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9821 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9823 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9824 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9825 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9826 if test "${gcc_cv_decl_map_anon+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <sys/types.h>
9836 #include <sys/mman.h>
9837 #include <unistd.h>
9839 #ifndef MAP_ANONYMOUS
9840 #define MAP_ANONYMOUS MAP_ANON
9841 #endif
9844 main ()
9846 int n = MAP_ANONYMOUS;
9848 return 0;
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 gcc_cv_decl_map_anon=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 gcc_cv_decl_map_anon=no
9880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9882 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9883 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9885 if test $gcc_cv_decl_map_anon = no; then
9886 gcc_cv_func_mmap_anon=no
9887 else
9888 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9889 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9890 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9894 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9895 # doesn't give anonymous zeroed pages with the same properties listed
9896 # above for use of /dev/zero.
9897 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9898 case "$host_os" in
9899 vms* | cygwin* | pe | mingw* | sco* | udk* )
9900 gcc_cv_func_mmap_anon=no ;;
9902 gcc_cv_func_mmap_anon=yes;;
9903 esac
9905 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9906 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9910 if test $gcc_cv_func_mmap_file = yes; then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_MMAP_FILE 1
9914 _ACEOF
9917 if test $gcc_cv_func_mmap_dev_zero = yes; then
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_MMAP_DEV_ZERO 1
9921 _ACEOF
9924 if test $gcc_cv_func_mmap_anon = yes; then
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_MMAP_ANON 1
9928 _ACEOF
9933 case "${host}" in
9934 *-*-*vms*)
9935 # Under VMS, vfork works very differently than on Unix. The standard test
9936 # won't work, and it isn't easily adaptable. It makes more sense to
9937 # just force it.
9938 ac_cv_func_vfork_works=yes
9940 esac
9941 echo "$as_me:$LINENO: checking for pid_t" >&5
9942 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9943 if test "${ac_cv_type_pid_t+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9954 main ()
9956 if ((pid_t *) 0)
9957 return 0;
9958 if (sizeof (pid_t))
9959 return 0;
9961 return 0;
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest.$ac_objext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_type_pid_t=yes
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_cv_type_pid_t=no
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9995 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9996 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9997 if test $ac_cv_type_pid_t = yes; then
9999 else
10001 cat >>confdefs.h <<_ACEOF
10002 #define pid_t int
10003 _ACEOF
10009 for ac_header in unistd.h vfork.h
10011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10012 echo "$as_me:$LINENO: checking for $ac_header" >&5
10013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <$ac_header>
10024 _ACEOF
10025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } >/dev/null; then
10033 if test -s conftest.err; then
10034 ac_cpp_err=$ac_c_preproc_warn_flag
10035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10036 else
10037 ac_cpp_err=
10039 else
10040 ac_cpp_err=yes
10042 if test -z "$ac_cpp_err"; then
10043 eval "$as_ac_Header=yes"
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 eval "$as_ac_Header=no"
10050 rm -f conftest.err conftest.$ac_ext
10052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10055 cat >>confdefs.h <<_ACEOF
10056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10057 _ACEOF
10060 done
10064 for ac_func in fork vfork
10066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10067 echo "$as_me:$LINENO: checking for $ac_func" >&5
10068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10069 if eval "test \"\${$as_ac_var+set}\" = set"; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10080 #define $ac_func innocuous_$ac_func
10082 /* System header to define __stub macros and hopefully few prototypes,
10083 which can conflict with char $ac_func (); below.
10084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10085 <limits.h> exists even on freestanding compilers. */
10087 #ifdef __STDC__
10088 # include <limits.h>
10089 #else
10090 # include <assert.h>
10091 #endif
10093 #undef $ac_func
10095 /* Override any gcc2 internal prototype to avoid an error. */
10096 #ifdef __cplusplus
10097 extern "C"
10099 #endif
10100 /* We use char because int might match the return type of a gcc2
10101 builtin and then its argument prototype would still apply. */
10102 char $ac_func ();
10103 /* The GNU C library defines this for functions which it implements
10104 to always fail with ENOSYS. Some functions are actually named
10105 something starting with __ and the normal name is an alias. */
10106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10107 choke me
10108 #else
10109 char (*f) () = $ac_func;
10110 #endif
10111 #ifdef __cplusplus
10113 #endif
10116 main ()
10118 return f != $ac_func;
10120 return 0;
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10125 (eval $ac_link) 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_c_werror_flag"
10133 || test ! -s conftest.err'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; } &&
10139 { ac_try='test -s conftest$ac_exeext'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10142 ac_status=$?
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; }; then
10145 eval "$as_ac_var=yes"
10146 else
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 eval "$as_ac_var=no"
10152 rm -f conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10157 if test `eval echo '${'$as_ac_var'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10160 _ACEOF
10163 done
10165 if test "x$ac_cv_func_fork" = xyes; then
10166 echo "$as_me:$LINENO: checking for working fork" >&5
10167 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10168 if test "${ac_cv_func_fork_works+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171 if test "$cross_compiling" = yes; then
10172 ac_cv_func_fork_works=cross
10173 else
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* By Ruediger Kuhlmann. */
10176 #include <sys/types.h>
10177 #if HAVE_UNISTD_H
10178 # include <unistd.h>
10179 #endif
10180 /* Some systems only have a dummy stub for fork() */
10181 int main ()
10183 if (fork() < 0)
10184 exit (1);
10185 exit (0);
10187 _ACEOF
10188 rm -f conftest$ac_exeext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190 (eval $ac_link) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_func_fork_works=yes
10200 else
10201 echo "$as_me: program exited with status $ac_status" >&5
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ( exit $ac_status )
10206 ac_cv_func_fork_works=no
10208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10211 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10212 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10214 else
10215 ac_cv_func_fork_works=$ac_cv_func_fork
10217 if test "x$ac_cv_func_fork_works" = xcross; then
10218 case $host in
10219 *-*-amigaos* | *-*-msdosdjgpp*)
10220 # Override, as these systems have only a dummy fork() stub
10221 ac_cv_func_fork_works=no
10224 ac_cv_func_fork_works=yes
10226 esac
10227 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10228 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10230 ac_cv_func_vfork_works=$ac_cv_func_vfork
10231 if test "x$ac_cv_func_vfork" = xyes; then
10232 echo "$as_me:$LINENO: checking for working vfork" >&5
10233 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10234 if test "${ac_cv_func_vfork_works+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 if test "$cross_compiling" = yes; then
10238 ac_cv_func_vfork_works=cross
10239 else
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 /* Thanks to Paul Eggert for this test. */
10247 #include <stdio.h>
10248 #include <stdlib.h>
10249 #include <sys/types.h>
10250 #include <sys/stat.h>
10251 #include <sys/wait.h>
10252 #if HAVE_UNISTD_H
10253 # include <unistd.h>
10254 #endif
10255 #if HAVE_VFORK_H
10256 # include <vfork.h>
10257 #endif
10258 /* On some sparc systems, changes by the child to local and incoming
10259 argument registers are propagated back to the parent. The compiler
10260 is told about this with #include <vfork.h>, but some compilers
10261 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10262 static variable whose address is put into a register that is
10263 clobbered by the vfork. */
10264 static void
10265 #ifdef __cplusplus
10266 sparc_address_test (int arg)
10267 # else
10268 sparc_address_test (arg) int arg;
10269 #endif
10271 static pid_t child;
10272 if (!child) {
10273 child = vfork ();
10274 if (child < 0) {
10275 perror ("vfork");
10276 _exit(2);
10278 if (!child) {
10279 arg = getpid();
10280 write(-1, "", 0);
10281 _exit (arg);
10287 main ()
10289 pid_t parent = getpid ();
10290 pid_t child;
10292 sparc_address_test (0);
10294 child = vfork ();
10296 if (child == 0) {
10297 /* Here is another test for sparc vfork register problems. This
10298 test uses lots of local variables, at least as many local
10299 variables as main has allocated so far including compiler
10300 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10301 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10302 reuse the register of parent for one of the local variables,
10303 since it will think that parent can't possibly be used any more
10304 in this routine. Assigning to the local variable will thus
10305 munge parent in the parent process. */
10306 pid_t
10307 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10308 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10309 /* Convince the compiler that p..p7 are live; otherwise, it might
10310 use the same hardware register for all 8 local variables. */
10311 if (p != p1 || p != p2 || p != p3 || p != p4
10312 || p != p5 || p != p6 || p != p7)
10313 _exit(1);
10315 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10316 from child file descriptors. If the child closes a descriptor
10317 before it execs or exits, this munges the parent's descriptor
10318 as well. Test for this by closing stdout in the child. */
10319 _exit(close(fileno(stdout)) != 0);
10320 } else {
10321 int status;
10322 struct stat st;
10324 while (wait(&status) != child)
10326 exit(
10327 /* Was there some problem with vforking? */
10328 child < 0
10330 /* Did the child fail? (This shouldn't happen.) */
10331 || status
10333 /* Did the vfork/compiler bug occur? */
10334 || parent != getpid()
10336 /* Did the file descriptor bug occur? */
10337 || fstat(fileno(stdout), &st) != 0
10341 _ACEOF
10342 rm -f conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_cv_func_vfork_works=yes
10354 else
10355 echo "$as_me: program exited with status $ac_status" >&5
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ( exit $ac_status )
10360 ac_cv_func_vfork_works=no
10362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10365 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10366 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10369 if test "x$ac_cv_func_fork_works" = xcross; then
10370 ac_cv_func_vfork_works=$ac_cv_func_vfork
10371 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10372 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10375 if test "x$ac_cv_func_vfork_works" = xyes; then
10377 cat >>confdefs.h <<\_ACEOF
10378 #define HAVE_WORKING_VFORK 1
10379 _ACEOF
10381 else
10383 cat >>confdefs.h <<\_ACEOF
10384 #define vfork fork
10385 _ACEOF
10388 if test "x$ac_cv_func_fork_works" = xyes; then
10390 cat >>confdefs.h <<\_ACEOF
10391 #define HAVE_WORKING_FORK 1
10392 _ACEOF
10398 if test "X$prefix" = "XNONE"; then
10399 acl_final_prefix="$ac_default_prefix"
10400 else
10401 acl_final_prefix="$prefix"
10403 if test "X$exec_prefix" = "XNONE"; then
10404 acl_final_exec_prefix='${prefix}'
10405 else
10406 acl_final_exec_prefix="$exec_prefix"
10408 acl_save_prefix="$prefix"
10409 prefix="$acl_final_prefix"
10410 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10411 prefix="$acl_save_prefix"
10414 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10415 if test "${with_gnu_ld+set}" = set; then
10416 withval="$with_gnu_ld"
10417 test "$withval" = no || with_gnu_ld=yes
10418 else
10419 with_gnu_ld=no
10421 # Prepare PATH_SEPARATOR.
10422 # The user is always right.
10423 if test "${PATH_SEPARATOR+set}" != set; then
10424 echo "#! /bin/sh" >conf$$.sh
10425 echo "exit 0" >>conf$$.sh
10426 chmod +x conf$$.sh
10427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10428 PATH_SEPARATOR=';'
10429 else
10430 PATH_SEPARATOR=:
10432 rm -f conf$$.sh
10434 ac_prog=ld
10435 if test "$GCC" = yes; then
10436 # Check if gcc -print-prog-name=ld gives a path.
10437 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10438 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10439 case $host in
10440 *-*-mingw*)
10441 # gcc leaves a trailing carriage return which upsets mingw
10442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10445 esac
10446 case $ac_prog in
10447 # Accept absolute paths.
10448 [\\/]* | [A-Za-z]:[\\/]*)
10449 re_direlt='/[^/][^/]*/\.\./'
10450 # Canonicalize the path of ld
10451 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10452 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10453 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10454 done
10455 test -z "$LD" && LD="$ac_prog"
10458 # If it fails, then pretend we aren't using GCC.
10459 ac_prog=ld
10462 # If it is relative, then search for the first ld in PATH.
10463 with_gnu_ld=unknown
10465 esac
10466 elif test "$with_gnu_ld" = yes; then
10467 echo "$as_me:$LINENO: checking for GNU ld" >&5
10468 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10469 else
10470 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10471 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10473 if test "${acl_cv_path_LD+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 if test -z "$LD"; then
10477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10478 for ac_dir in $PATH; do
10479 test -z "$ac_dir" && ac_dir=.
10480 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10481 acl_cv_path_LD="$ac_dir/$ac_prog"
10482 # Check to see if the program is GNU ld. I'd rather use --version,
10483 # but apparently some GNU ld's only accept -v.
10484 # Break only if it was the GNU/non-GNU ld that we prefer.
10485 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10486 test "$with_gnu_ld" != no && break
10487 else
10488 test "$with_gnu_ld" != yes && break
10491 done
10492 IFS="$ac_save_ifs"
10493 else
10494 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10498 LD="$acl_cv_path_LD"
10499 if test -n "$LD"; then
10500 echo "$as_me:$LINENO: result: $LD" >&5
10501 echo "${ECHO_T}$LD" >&6
10502 else
10503 echo "$as_me:$LINENO: result: no" >&5
10504 echo "${ECHO_T}no" >&6
10506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10508 { (exit 1); exit 1; }; }
10509 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10511 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10515 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10516 acl_cv_prog_gnu_ld=yes
10517 else
10518 acl_cv_prog_gnu_ld=no
10521 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10523 with_gnu_ld=$acl_cv_prog_gnu_ld
10527 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10528 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10529 if test "${acl_cv_rpath+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10533 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10534 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10535 . ./conftest.sh
10536 rm -f ./conftest.sh
10537 acl_cv_rpath=done
10540 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10541 echo "${ECHO_T}$acl_cv_rpath" >&6
10542 wl="$acl_cv_wl"
10543 libext="$acl_cv_libext"
10544 shlibext="$acl_cv_shlibext"
10545 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10546 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10547 hardcode_direct="$acl_cv_hardcode_direct"
10548 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10549 # Check whether --enable-rpath or --disable-rpath was given.
10550 if test "${enable_rpath+set}" = set; then
10551 enableval="$enable_rpath"
10553 else
10554 enable_rpath=yes
10563 use_additional=yes
10565 acl_save_prefix="$prefix"
10566 prefix="$acl_final_prefix"
10567 acl_save_exec_prefix="$exec_prefix"
10568 exec_prefix="$acl_final_exec_prefix"
10570 eval additional_includedir=\"$includedir\"
10571 eval additional_libdir=\"$libdir\"
10573 exec_prefix="$acl_save_exec_prefix"
10574 prefix="$acl_save_prefix"
10577 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10578 if test "${with_libiconv_prefix+set}" = set; then
10579 withval="$with_libiconv_prefix"
10581 if test "X$withval" = "Xno"; then
10582 use_additional=no
10583 else
10584 if test "X$withval" = "X"; then
10586 acl_save_prefix="$prefix"
10587 prefix="$acl_final_prefix"
10588 acl_save_exec_prefix="$exec_prefix"
10589 exec_prefix="$acl_final_exec_prefix"
10591 eval additional_includedir=\"$includedir\"
10592 eval additional_libdir=\"$libdir\"
10594 exec_prefix="$acl_save_exec_prefix"
10595 prefix="$acl_save_prefix"
10597 else
10598 additional_includedir="$withval/include"
10599 additional_libdir="$withval/lib"
10604 LIBICONV=
10605 LTLIBICONV=
10606 INCICONV=
10607 rpathdirs=
10608 ltrpathdirs=
10609 names_already_handled=
10610 names_next_round='iconv '
10611 while test -n "$names_next_round"; do
10612 names_this_round="$names_next_round"
10613 names_next_round=
10614 for name in $names_this_round; do
10615 already_handled=
10616 for n in $names_already_handled; do
10617 if test "$n" = "$name"; then
10618 already_handled=yes
10619 break
10621 done
10622 if test -z "$already_handled"; then
10623 names_already_handled="$names_already_handled $name"
10624 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10625 eval value=\"\$HAVE_LIB$uppername\"
10626 if test -n "$value"; then
10627 if test "$value" = yes; then
10628 eval value=\"\$LIB$uppername\"
10629 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10630 eval value=\"\$LTLIB$uppername\"
10631 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10632 else
10635 else
10636 found_dir=
10637 found_la=
10638 found_so=
10639 found_a=
10640 if test $use_additional = yes; then
10641 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10642 found_dir="$additional_libdir"
10643 found_so="$additional_libdir/lib$name.$shlibext"
10644 if test -f "$additional_libdir/lib$name.la"; then
10645 found_la="$additional_libdir/lib$name.la"
10647 else
10648 if test -f "$additional_libdir/lib$name.$libext"; then
10649 found_dir="$additional_libdir"
10650 found_a="$additional_libdir/lib$name.$libext"
10651 if test -f "$additional_libdir/lib$name.la"; then
10652 found_la="$additional_libdir/lib$name.la"
10657 if test "X$found_dir" = "X"; then
10658 for x in $LDFLAGS $LTLIBICONV; do
10660 acl_save_prefix="$prefix"
10661 prefix="$acl_final_prefix"
10662 acl_save_exec_prefix="$exec_prefix"
10663 exec_prefix="$acl_final_exec_prefix"
10664 eval x=\"$x\"
10665 exec_prefix="$acl_save_exec_prefix"
10666 prefix="$acl_save_prefix"
10668 case "$x" in
10669 -L*)
10670 dir=`echo "X$x" | sed -e 's/^X-L//'`
10671 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10672 found_dir="$dir"
10673 found_so="$dir/lib$name.$shlibext"
10674 if test -f "$dir/lib$name.la"; then
10675 found_la="$dir/lib$name.la"
10677 else
10678 if test -f "$dir/lib$name.$libext"; then
10679 found_dir="$dir"
10680 found_a="$dir/lib$name.$libext"
10681 if test -f "$dir/lib$name.la"; then
10682 found_la="$dir/lib$name.la"
10687 esac
10688 if test "X$found_dir" != "X"; then
10689 break
10691 done
10693 if test "X$found_dir" != "X"; then
10694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10695 if test "X$found_so" != "X"; then
10696 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10698 else
10699 haveit=
10700 for x in $ltrpathdirs; do
10701 if test "X$x" = "X$found_dir"; then
10702 haveit=yes
10703 break
10705 done
10706 if test -z "$haveit"; then
10707 ltrpathdirs="$ltrpathdirs $found_dir"
10709 if test "$hardcode_direct" = yes; then
10710 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10711 else
10712 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10713 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10714 haveit=
10715 for x in $rpathdirs; do
10716 if test "X$x" = "X$found_dir"; then
10717 haveit=yes
10718 break
10720 done
10721 if test -z "$haveit"; then
10722 rpathdirs="$rpathdirs $found_dir"
10724 else
10725 haveit=
10726 for x in $LDFLAGS $LIBICONV; do
10728 acl_save_prefix="$prefix"
10729 prefix="$acl_final_prefix"
10730 acl_save_exec_prefix="$exec_prefix"
10731 exec_prefix="$acl_final_exec_prefix"
10732 eval x=\"$x\"
10733 exec_prefix="$acl_save_exec_prefix"
10734 prefix="$acl_save_prefix"
10736 if test "X$x" = "X-L$found_dir"; then
10737 haveit=yes
10738 break
10740 done
10741 if test -z "$haveit"; then
10742 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10744 if test "$hardcode_minus_L" != no; then
10745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10746 else
10747 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10752 else
10753 if test "X$found_a" != "X"; then
10754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10755 else
10756 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10759 additional_includedir=
10760 case "$found_dir" in
10761 */lib | */lib/)
10762 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10763 additional_includedir="$basedir/include"
10765 esac
10766 if test "X$additional_includedir" != "X"; then
10767 if test "X$additional_includedir" != "X/usr/include"; then
10768 haveit=
10769 if test "X$additional_includedir" = "X/usr/local/include"; then
10770 if test -n "$GCC"; then
10771 case $host_os in
10772 linux*) haveit=yes;;
10773 esac
10776 if test -z "$haveit"; then
10777 for x in $CPPFLAGS $INCICONV; do
10779 acl_save_prefix="$prefix"
10780 prefix="$acl_final_prefix"
10781 acl_save_exec_prefix="$exec_prefix"
10782 exec_prefix="$acl_final_exec_prefix"
10783 eval x=\"$x\"
10784 exec_prefix="$acl_save_exec_prefix"
10785 prefix="$acl_save_prefix"
10787 if test "X$x" = "X-I$additional_includedir"; then
10788 haveit=yes
10789 break
10791 done
10792 if test -z "$haveit"; then
10793 if test -d "$additional_includedir"; then
10794 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10800 if test -n "$found_la"; then
10801 save_libdir="$libdir"
10802 case "$found_la" in
10803 */* | *\\*) . "$found_la" ;;
10804 *) . "./$found_la" ;;
10805 esac
10806 libdir="$save_libdir"
10807 for dep in $dependency_libs; do
10808 case "$dep" in
10809 -L*)
10810 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10811 if test "X$additional_libdir" != "X/usr/lib"; then
10812 haveit=
10813 if test "X$additional_libdir" = "X/usr/local/lib"; then
10814 if test -n "$GCC"; then
10815 case $host_os in
10816 linux*) haveit=yes;;
10817 esac
10820 if test -z "$haveit"; then
10821 haveit=
10822 for x in $LDFLAGS $LIBICONV; do
10824 acl_save_prefix="$prefix"
10825 prefix="$acl_final_prefix"
10826 acl_save_exec_prefix="$exec_prefix"
10827 exec_prefix="$acl_final_exec_prefix"
10828 eval x=\"$x\"
10829 exec_prefix="$acl_save_exec_prefix"
10830 prefix="$acl_save_prefix"
10832 if test "X$x" = "X-L$additional_libdir"; then
10833 haveit=yes
10834 break
10836 done
10837 if test -z "$haveit"; then
10838 if test -d "$additional_libdir"; then
10839 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10842 haveit=
10843 for x in $LDFLAGS $LTLIBICONV; do
10845 acl_save_prefix="$prefix"
10846 prefix="$acl_final_prefix"
10847 acl_save_exec_prefix="$exec_prefix"
10848 exec_prefix="$acl_final_exec_prefix"
10849 eval x=\"$x\"
10850 exec_prefix="$acl_save_exec_prefix"
10851 prefix="$acl_save_prefix"
10853 if test "X$x" = "X-L$additional_libdir"; then
10854 haveit=yes
10855 break
10857 done
10858 if test -z "$haveit"; then
10859 if test -d "$additional_libdir"; then
10860 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10866 -R*)
10867 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10868 if test "$enable_rpath" != no; then
10869 haveit=
10870 for x in $rpathdirs; do
10871 if test "X$x" = "X$dir"; then
10872 haveit=yes
10873 break
10875 done
10876 if test -z "$haveit"; then
10877 rpathdirs="$rpathdirs $dir"
10879 haveit=
10880 for x in $ltrpathdirs; do
10881 if test "X$x" = "X$dir"; then
10882 haveit=yes
10883 break
10885 done
10886 if test -z "$haveit"; then
10887 ltrpathdirs="$ltrpathdirs $dir"
10891 -l*)
10892 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10894 *.la)
10895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10898 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10901 esac
10902 done
10904 else
10905 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10910 done
10911 done
10912 if test "X$rpathdirs" != "X"; then
10913 if test -n "$hardcode_libdir_separator"; then
10914 alldirs=
10915 for found_dir in $rpathdirs; do
10916 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10917 done
10918 acl_save_libdir="$libdir"
10919 libdir="$alldirs"
10920 eval flag=\"$hardcode_libdir_flag_spec\"
10921 libdir="$acl_save_libdir"
10922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10923 else
10924 for found_dir in $rpathdirs; do
10925 acl_save_libdir="$libdir"
10926 libdir="$found_dir"
10927 eval flag=\"$hardcode_libdir_flag_spec\"
10928 libdir="$acl_save_libdir"
10929 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10930 done
10933 if test "X$ltrpathdirs" != "X"; then
10934 for found_dir in $ltrpathdirs; do
10935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10936 done
10945 am_save_CPPFLAGS="$CPPFLAGS"
10947 for element in $INCICONV; do
10948 haveit=
10949 for x in $CPPFLAGS; do
10951 acl_save_prefix="$prefix"
10952 prefix="$acl_final_prefix"
10953 acl_save_exec_prefix="$exec_prefix"
10954 exec_prefix="$acl_final_exec_prefix"
10955 eval x=\"$x\"
10956 exec_prefix="$acl_save_exec_prefix"
10957 prefix="$acl_save_prefix"
10959 if test "X$x" = "X$element"; then
10960 haveit=yes
10961 break
10963 done
10964 if test -z "$haveit"; then
10965 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10967 done
10970 echo "$as_me:$LINENO: checking for iconv" >&5
10971 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10972 if test "${am_cv_func_iconv+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10976 am_cv_func_iconv="no, consider installing GNU libiconv"
10977 am_cv_lib_iconv=no
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <stdlib.h>
10985 #include <iconv.h>
10987 main ()
10989 iconv_t cd = iconv_open("","");
10990 iconv(cd,NULL,NULL,NULL,NULL);
10991 iconv_close(cd);
10993 return 0;
10995 _ACEOF
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10998 (eval $ac_link) 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try='test -s conftest$ac_exeext'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 am_cv_func_iconv=yes
11019 else
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11024 rm -f conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
11026 if test "$am_cv_func_iconv" != yes; then
11027 am_save_LIBS="$LIBS"
11028 LIBS="$LIBS $LIBICONV"
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 #include <stdlib.h>
11036 #include <iconv.h>
11038 main ()
11040 iconv_t cd = iconv_open("","");
11041 iconv(cd,NULL,NULL,NULL,NULL);
11042 iconv_close(cd);
11044 return 0;
11046 _ACEOF
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11049 (eval $ac_link) 2>conftest.er1
11050 ac_status=$?
11051 grep -v '^ *+' conftest.er1 >conftest.err
11052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try='test -z "$ac_c_werror_flag"
11057 || test ! -s conftest.err'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; } &&
11063 { ac_try='test -s conftest$ac_exeext'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; }; then
11069 am_cv_lib_iconv=yes
11070 am_cv_func_iconv=yes
11071 else
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11076 rm -f conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11078 LIBS="$am_save_LIBS"
11082 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11083 echo "${ECHO_T}$am_cv_func_iconv" >&6
11084 if test "$am_cv_func_iconv" = yes; then
11086 cat >>confdefs.h <<\_ACEOF
11087 #define HAVE_ICONV 1
11088 _ACEOF
11091 if test "$am_cv_lib_iconv" = yes; then
11092 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11093 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11094 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11095 echo "${ECHO_T}$LIBICONV" >&6
11096 else
11097 CPPFLAGS="$am_save_CPPFLAGS"
11098 LIBICONV=
11099 LTLIBICONV=
11104 if test "$am_cv_func_iconv" = yes; then
11105 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11106 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11107 if test "${am_cv_proto_iconv+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11118 #include <stdlib.h>
11119 #include <iconv.h>
11120 extern
11121 #ifdef __cplusplus
11123 #endif
11124 #if defined(__STDC__) || defined(__cplusplus)
11125 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11126 #else
11127 size_t iconv();
11128 #endif
11131 main ()
11135 return 0;
11137 _ACEOF
11138 rm -f conftest.$ac_objext
11139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11140 (eval $ac_compile) 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -z "$ac_c_werror_flag"
11148 || test ! -s conftest.err'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest.$ac_objext'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11160 am_cv_proto_iconv_arg1=""
11161 else
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 am_cv_proto_iconv_arg1="const"
11167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11168 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);"
11171 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11172 echo "$as_me:$LINENO: result: ${ac_t:-
11173 }$am_cv_proto_iconv" >&5
11174 echo "${ECHO_T}${ac_t:-
11175 }$am_cv_proto_iconv" >&6
11177 cat >>confdefs.h <<_ACEOF
11178 #define ICONV_CONST $am_cv_proto_iconv_arg1
11179 _ACEOF
11183 # Until we have in-tree GNU iconv:
11184 LIBICONV_DEP=
11188 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11189 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11190 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <locale.h>
11201 main ()
11203 return LC_MESSAGES
11205 return 0;
11207 _ACEOF
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try='test -z "$ac_c_werror_flag"
11218 || test ! -s conftest.err'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try='test -s conftest$ac_exeext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 am_cv_val_LC_MESSAGES=yes
11231 else
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 am_cv_val_LC_MESSAGES=no
11237 rm -f conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext conftest.$ac_ext
11240 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11241 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11242 if test $am_cv_val_LC_MESSAGES = yes; then
11244 cat >>confdefs.h <<\_ACEOF
11245 #define HAVE_LC_MESSAGES 1
11246 _ACEOF
11252 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11253 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11254 if test "${am_cv_langinfo_codeset+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <langinfo.h>
11265 main ()
11267 char* cs = nl_langinfo(CODESET);
11269 return 0;
11271 _ACEOF
11272 rm -f conftest.$ac_objext conftest$ac_exeext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274 (eval $ac_link) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest$ac_exeext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 am_cv_langinfo_codeset=yes
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 am_cv_langinfo_codeset=no
11301 rm -f conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11305 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11306 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11307 if test $am_cv_langinfo_codeset = yes; then
11309 cat >>confdefs.h <<\_ACEOF
11310 #define HAVE_LANGINFO_CODESET 1
11311 _ACEOF
11316 # We will need to find libiberty.h and ansidecl.h
11317 saved_CFLAGS="$CFLAGS"
11318 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11358 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11359 strsignal strstr strverscmp \
11360 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11361 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
11363 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11364 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11365 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11366 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 #undef $ac_tr_decl
11376 #define $ac_tr_decl 1
11378 #include "ansidecl.h"
11379 #include "system.h"
11382 main ()
11384 #ifndef $ac_func
11385 char *(*pfn) = (char *(*)) $ac_func ;
11386 #endif
11388 return 0;
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 eval "gcc_cv_have_decl_$ac_func=yes"
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 eval "gcc_cv_have_decl_$ac_func=no"
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11423 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11424 echo "$as_me:$LINENO: result: yes" >&5
11425 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11426 #define $ac_tr_decl 1
11427 _ACEOF
11429 else
11430 echo "$as_me:$LINENO: result: no" >&5
11431 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11432 #define $ac_tr_decl 0
11433 _ACEOF
11437 done
11443 for ac_func in getrlimit setrlimit getrusage
11445 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11446 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11447 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11448 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 #undef $ac_tr_decl
11458 #define $ac_tr_decl 1
11460 #include "ansidecl.h"
11461 #include "system.h"
11462 #ifdef HAVE_SYS_RESOURCE_H
11463 #include <sys/resource.h>
11464 #endif
11468 main ()
11470 #ifndef $ac_func
11471 char *(*pfn) = (char *(*)) $ac_func ;
11472 #endif
11474 return 0;
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 eval "gcc_cv_have_decl_$ac_func=yes"
11500 else
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 eval "gcc_cv_have_decl_$ac_func=no"
11506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11509 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11510 echo "$as_me:$LINENO: result: yes" >&5
11511 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11512 #define $ac_tr_decl 1
11513 _ACEOF
11515 else
11516 echo "$as_me:$LINENO: result: no" >&5
11517 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11518 #define $ac_tr_decl 0
11519 _ACEOF
11523 done
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11533 #include "ansidecl.h"
11534 #include "system.h"
11535 #ifdef HAVE_SYS_RESOURCE_H
11536 #include <sys/resource.h>
11537 #endif
11540 main ()
11542 rlim_t l = 0;
11544 return 0;
11546 _ACEOF
11547 rm -f conftest.$ac_objext
11548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11549 (eval $ac_compile) 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -z "$ac_c_werror_flag"
11557 || test ! -s conftest.err'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; } &&
11563 { ac_try='test -s conftest.$ac_objext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11570 else
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11575 cat >>confdefs.h <<\_ACEOF
11576 #define rlim_t long
11577 _ACEOF
11580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11582 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11583 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11584 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11585 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11587 for ac_func in ldgetname
11589 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11590 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11591 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11592 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595 cat >conftest.$ac_ext <<_ACEOF
11596 /* confdefs.h. */
11597 _ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11601 #undef $ac_tr_decl
11602 #define $ac_tr_decl 1
11604 #include "ansidecl.h"
11605 #include "system.h"
11606 #ifdef HAVE_LDFCN_H
11607 #undef FREAD
11608 #undef FWRITE
11609 #include <ldfcn.h>
11610 #endif
11614 main ()
11616 #ifndef $ac_func
11617 char *(*pfn) = (char *(*)) $ac_func ;
11618 #endif
11620 return 0;
11622 _ACEOF
11623 rm -f conftest.$ac_objext
11624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_c_werror_flag"
11633 || test ! -s conftest.err'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest.$ac_objext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 eval "gcc_cv_have_decl_$ac_func=yes"
11646 else
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11650 eval "gcc_cv_have_decl_$ac_func=no"
11652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11655 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11656 echo "$as_me:$LINENO: result: yes" >&5
11657 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11658 #define $ac_tr_decl 1
11659 _ACEOF
11661 else
11662 echo "$as_me:$LINENO: result: no" >&5
11663 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11664 #define $ac_tr_decl 0
11665 _ACEOF
11669 done
11673 for ac_func in times
11675 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11676 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11677 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11678 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 #undef $ac_tr_decl
11688 #define $ac_tr_decl 1
11690 #include "ansidecl.h"
11691 #include "system.h"
11692 #ifdef HAVE_SYS_TIMES_H
11693 #include <sys/times.h>
11694 #endif
11698 main ()
11700 #ifndef $ac_func
11701 char *(*pfn) = (char *(*)) $ac_func ;
11702 #endif
11704 return 0;
11706 _ACEOF
11707 rm -f conftest.$ac_objext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709 (eval $ac_compile) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest.$ac_objext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 eval "gcc_cv_have_decl_$ac_func=yes"
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 eval "gcc_cv_have_decl_$ac_func=no"
11736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11739 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11740 echo "$as_me:$LINENO: result: yes" >&5
11741 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11742 #define $ac_tr_decl 1
11743 _ACEOF
11745 else
11746 echo "$as_me:$LINENO: result: no" >&5
11747 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11748 #define $ac_tr_decl 0
11749 _ACEOF
11753 done
11757 for ac_func in sigaltstack
11759 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11760 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11761 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11762 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 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. */
11771 #undef $ac_tr_decl
11772 #define $ac_tr_decl 1
11774 #include "ansidecl.h"
11775 #include "system.h"
11776 #include <signal.h>
11780 main ()
11782 #ifndef $ac_func
11783 char *(*pfn) = (char *(*)) $ac_func ;
11784 #endif
11786 return 0;
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 eval "gcc_cv_have_decl_$ac_func=yes"
11812 else
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 eval "gcc_cv_have_decl_$ac_func=no"
11818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11821 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11822 echo "$as_me:$LINENO: result: yes" >&5
11823 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11824 #define $ac_tr_decl 1
11825 _ACEOF
11827 else
11828 echo "$as_me:$LINENO: result: no" >&5
11829 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11830 #define $ac_tr_decl 0
11831 _ACEOF
11835 done
11838 # More time-related stuff.
11839 echo "$as_me:$LINENO: checking for struct tms" >&5
11840 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11841 if test "${ac_cv_struct_tms+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11852 #include "ansidecl.h"
11853 #include "system.h"
11854 #ifdef HAVE_SYS_TIMES_H
11855 #include <sys/times.h>
11856 #endif
11859 main ()
11861 struct tms tms;
11863 return 0;
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868 (eval $ac_compile) 2>conftest.er1
11869 ac_status=$?
11870 grep -v '^ *+' conftest.er1 >conftest.err
11871 rm -f conftest.er1
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } &&
11875 { ac_try='test -z "$ac_c_werror_flag"
11876 || test ! -s conftest.err'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest.$ac_objext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_struct_tms=yes
11889 else
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ac_cv_struct_tms=no
11895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11897 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11898 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11899 if test $ac_cv_struct_tms = yes; then
11901 cat >>confdefs.h <<\_ACEOF
11902 #define HAVE_STRUCT_TMS 1
11903 _ACEOF
11907 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11908 # revisit after autoconf 2.50.
11909 echo "$as_me:$LINENO: checking for clock_t" >&5
11910 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11911 if test "${gcc_cv_type_clock_t+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h. */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11922 #include "ansidecl.h"
11923 #include "system.h"
11926 main ()
11928 clock_t x;
11930 return 0;
11932 _ACEOF
11933 rm -f conftest.$ac_objext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11935 (eval $ac_compile) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 gcc_cv_type_clock_t=yes
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11960 gcc_cv_type_clock_t=no
11962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11964 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11965 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11966 if test $gcc_cv_type_clock_t = yes; then
11968 cat >>confdefs.h <<\_ACEOF
11969 #define HAVE_CLOCK_T 1
11970 _ACEOF
11974 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11975 CFLAGS="$saved_CFLAGS"
11977 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11978 if test "${enable_initfini_array+set}" = set; then
11979 enableval="$enable_initfini_array"
11981 else
11983 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11984 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11985 if test "${gcc_cv_initfini_array+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988 if test "$cross_compiling" = yes; then
11989 gcc_cv_initfini_array=no
11990 else
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11998 static int x = -1;
11999 int main (void) { return x; }
12000 int foo (void) { x = 0; }
12001 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12002 _ACEOF
12003 rm -f conftest$ac_exeext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005 (eval $ac_link) 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 gcc_cv_initfini_array=yes
12015 else
12016 echo "$as_me: program exited with status $ac_status" >&5
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ( exit $ac_status )
12021 gcc_cv_initfini_array=no
12023 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12026 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12027 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12028 enable_initfini_array=$gcc_cv_initfini_array
12031 if test $enable_initfini_array = yes; then
12033 cat >>confdefs.h <<\_ACEOF
12034 #define HAVE_INITFINI_ARRAY 1
12035 _ACEOF
12039 # mkdir takes a single argument on some systems.
12040 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12041 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12042 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h. */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12052 #include <sys/types.h>
12053 #ifdef HAVE_SYS_STAT_H
12054 # include <sys/stat.h>
12055 #endif
12056 #ifdef HAVE_UNISTD_H
12057 # include <unistd.h>
12058 #endif
12059 #ifdef HAVE_DIRECT_H
12060 # include <direct.h>
12061 #endif
12063 main ()
12065 mkdir ("foo", 0);
12067 return 0;
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072 (eval $ac_compile) 2>conftest.er1
12073 ac_status=$?
12074 grep -v '^ *+' conftest.er1 >conftest.err
12075 rm -f conftest.er1
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -z "$ac_c_werror_flag"
12080 || test ! -s conftest.err'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest.$ac_objext'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 gcc_cv_mkdir_takes_one_arg=no
12093 else
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 gcc_cv_mkdir_takes_one_arg=yes
12099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12101 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12102 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12103 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12105 cat >>confdefs.h <<\_ACEOF
12106 #define MKDIR_TAKES_ONE_ARG 1
12107 _ACEOF
12112 # File extensions
12113 manext='.1'
12114 objext='.o'
12118 # With Setjmp/Longjmp based exception handling.
12119 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12120 if test "${enable_sjlj_exceptions+set}" = set; then
12121 enableval="$enable_sjlj_exceptions"
12122 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12124 cat >>confdefs.h <<_ACEOF
12125 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12126 _ACEOF
12130 # For platforms with the unwind ABI which includes an unwind library,
12131 # libunwind, we can choose to use the system libunwind.
12133 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12134 if test "${with_system_libunwind+set}" = set; then
12135 withval="$with_system_libunwind"
12139 # config.gcc also contains tests of with_system_libunwind.
12140 if test x$with_system_libunwind = xyes; then
12142 cat >>confdefs.h <<\_ACEOF
12143 #define HAVE_GETIPINFO 1
12144 _ACEOF
12148 # --------------------------------------------------------
12149 # Build, host, and target specific configuration fragments
12150 # --------------------------------------------------------
12152 # Collect build-machine-specific information.
12153 . ${srcdir}/config.build
12155 # Collect host-machine-specific information.
12156 . ${srcdir}/config.host
12158 target_gtfiles=
12160 # Collect target-machine-specific information.
12161 . ${srcdir}/config.gcc
12163 extra_objs="${host_extra_objs} ${extra_objs}"
12164 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12166 # Default the target-machine variables that were not explicitly set.
12167 if test x"$tm_file" = x
12168 then tm_file=$cpu_type/$cpu_type.h; fi
12170 if test x"$extra_headers" = x
12171 then extra_headers=; fi
12173 if test x$md_file = x
12174 then md_file=$cpu_type/$cpu_type.md; fi
12176 if test x$out_file = x
12177 then out_file=$cpu_type/$cpu_type.c; fi
12179 if test x"$tmake_file" = x
12180 then tmake_file=$cpu_type/t-$cpu_type
12183 if test x"$dwarf2" = xyes
12184 then tm_file="$tm_file tm-dwarf2.h"
12187 # Say what files are being used for the output code and MD file.
12188 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12189 echo "Using \`$srcdir/config/$md_file' as machine description file."
12191 # If any of the xm_file variables contain nonexistent files, warn
12192 # about them and drop them.
12195 for x in $build_xm_file; do
12196 if test -f $srcdir/config/$x
12197 then bx="$bx $x"
12198 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12199 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12201 done
12202 build_xm_file="$bx"
12205 for x in $host_xm_file; do
12206 if test -f $srcdir/config/$x
12207 then hx="$hx $x"
12208 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12209 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12211 done
12212 host_xm_file="$hx"
12215 for x in $xm_file; do
12216 if test -f $srcdir/config/$x
12217 then tx="$tx $x"
12218 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12219 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12221 done
12222 xm_file="$tx"
12224 count=a
12225 for f in $tm_file; do
12226 count=${count}x
12227 done
12228 if test $count = ax; then
12229 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12230 else
12231 echo "Using the following target machine macro files:"
12232 for f in $tm_file; do
12233 echo " $srcdir/config/$f"
12234 done
12237 if test x$need_64bit_hwint = xyes; then
12239 cat >>confdefs.h <<\_ACEOF
12240 #define NEED_64BIT_HOST_WIDE_INT 1
12241 _ACEOF
12245 if test x$use_long_long_for_widest_fast_int = xyes; then
12247 cat >>confdefs.h <<\_ACEOF
12248 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12249 _ACEOF
12253 count=a
12254 for f in $host_xm_file; do
12255 count=${count}x
12256 done
12257 if test $count = a; then
12259 elif test $count = ax; then
12260 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12261 else
12262 echo "Using the following host machine macro files:"
12263 for f in $host_xm_file; do
12264 echo " $srcdir/config/$f"
12265 done
12267 echo "Using ${out_host_hook_obj} for host machine hooks."
12269 if test "$host_xm_file" != "$build_xm_file"; then
12270 count=a
12271 for f in $build_xm_file; do
12272 count=${count}x
12273 done
12274 if test $count = a; then
12276 elif test $count = ax; then
12277 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12278 else
12279 echo "Using the following build machine macro files:"
12280 for f in $build_xm_file; do
12281 echo " $srcdir/config/$f"
12282 done
12286 case ${host} in
12287 powerpc*-*-darwin*)
12288 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12289 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12290 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293 cat >conftest.$ac_ext <<_ACEOF
12295 #include <sys/cdefs.h>
12296 #include <sys/signal.h>
12297 #include <ucontext.h>
12298 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12300 _ACEOF
12301 rm -f conftest.$ac_objext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303 (eval $ac_compile) 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag"
12311 || test ! -s conftest.err'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest.$ac_objext'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 gcc_cv_mcontext_underscores=no
12324 else
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 gcc_cv_mcontext_underscores=yes
12330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12332 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12333 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12334 if test $gcc_cv_mcontext_underscores = yes; then
12336 cat >>confdefs.h <<\_ACEOF
12337 #define HAS_MCONTEXT_T_UNDERSCORES
12338 _ACEOF
12342 esac
12344 # ---------
12345 # Threading
12346 # ---------
12348 # Check if a valid thread package
12349 case ${enable_threads} in
12350 "" | no)
12351 # No threads
12352 target_thread_file='single'
12354 yes)
12355 # default
12356 target_thread_file='single'
12358 aix | dce | gnat | irix | posix | posix95 | rtems | \
12359 single | solaris | vxworks | win32 )
12360 target_thread_file=${enable_threads}
12363 echo "${enable_threads} is an unknown thread package" 1>&2
12364 exit 1
12366 esac
12368 if test x${thread_file} = x; then
12369 # No thread file set by target-specific clauses in config.gcc,
12370 # so use file chosen by default logic above
12371 thread_file=${target_thread_file}
12374 # Make gthr-default.h if we have a thread file.
12375 gthread_flags=
12376 if test $thread_file != single; then
12377 rm -f gthr-default.h
12378 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12379 gthread_flags=-DHAVE_GTHR_DEFAULT
12383 # --------
12384 # UNSORTED
12385 # --------
12387 use_cxa_atexit=no
12388 if test x$enable___cxa_atexit = xyes || \
12389 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12390 if test x$host = x$target; then
12391 case $host in
12392 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12393 # keyed to flag_use_cxa_atexit
12394 *-*-mingw32*)
12395 use_cxa_atexit=yes
12398 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12399 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12400 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12411 #define __cxa_atexit innocuous___cxa_atexit
12413 /* System header to define __stub macros and hopefully few prototypes,
12414 which can conflict with char __cxa_atexit (); below.
12415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12416 <limits.h> exists even on freestanding compilers. */
12418 #ifdef __STDC__
12419 # include <limits.h>
12420 #else
12421 # include <assert.h>
12422 #endif
12424 #undef __cxa_atexit
12426 /* Override any gcc2 internal prototype to avoid an error. */
12427 #ifdef __cplusplus
12428 extern "C"
12430 #endif
12431 /* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12433 char __cxa_atexit ();
12434 /* The GNU C library defines this for functions which it implements
12435 to always fail with ENOSYS. Some functions are actually named
12436 something starting with __ and the normal name is an alias. */
12437 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12438 choke me
12439 #else
12440 char (*f) () = __cxa_atexit;
12441 #endif
12442 #ifdef __cplusplus
12444 #endif
12447 main ()
12449 return f != __cxa_atexit;
12451 return 0;
12453 _ACEOF
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_c_werror_flag"
12464 || test ! -s conftest.err'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_cv_func___cxa_atexit=yes
12477 else
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12481 ac_cv_func___cxa_atexit=no
12483 rm -f conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12486 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12487 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12488 if test $ac_cv_func___cxa_atexit = yes; then
12489 use_cxa_atexit=yes
12490 else
12491 echo "__cxa_atexit can't be enabled on this target"
12495 esac
12496 else
12497 # We can't check for __cxa_atexit when building a cross, so assume
12498 # it is available
12499 use_cxa_atexit=yes
12501 if test x$use_cxa_atexit = xyes; then
12503 cat >>confdefs.h <<\_ACEOF
12504 #define DEFAULT_USE_CXA_ATEXIT 2
12505 _ACEOF
12510 use_getipinfo=yes
12511 if test x$with_system_libunwind = xyes; then
12512 if test x$host = x$target; then
12513 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12514 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12515 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518 ac_func_search_save_LIBS=$LIBS
12519 ac_cv_search__Unwind_GetIPInfo=no
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12527 /* Override any gcc2 internal prototype to avoid an error. */
12528 #ifdef __cplusplus
12529 extern "C"
12530 #endif
12531 /* We use char because int might match the return type of a gcc2
12532 builtin and then its argument prototype would still apply. */
12533 char _Unwind_GetIPInfo ();
12535 main ()
12537 _Unwind_GetIPInfo ();
12539 return 0;
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag"
12552 || 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__Unwind_GetIPInfo="none required"
12565 else
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12570 rm -f conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12573 for ac_lib in unwind; do
12574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12582 /* Override any gcc2 internal prototype to avoid an error. */
12583 #ifdef __cplusplus
12584 extern "C"
12585 #endif
12586 /* We use char because int might match the return type of a gcc2
12587 builtin and then its argument prototype would still apply. */
12588 char _Unwind_GetIPInfo ();
12590 main ()
12592 _Unwind_GetIPInfo ();
12594 return 0;
12596 _ACEOF
12597 rm -f conftest.$ac_objext conftest$ac_exeext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12599 (eval $ac_link) 2>conftest.er1
12600 ac_status=$?
12601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -z "$ac_c_werror_flag"
12607 || test ! -s conftest.err'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest$ac_exeext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12620 break
12621 else
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12626 rm -f conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12628 done
12630 LIBS=$ac_func_search_save_LIBS
12632 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12633 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12634 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12635 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12637 else
12638 use_getipinfo=no
12644 if test x$use_getipinfo = xyes; then
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_GETIPINFO 1
12648 _ACEOF
12650 else
12651 echo "The system unwind library does not support _Unwind_GetIPInfo."
12654 # Look for a file containing extra machine modes.
12655 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12656 extra_modes_file='$(srcdir)'/config/${extra_modes}
12659 cat >>confdefs.h <<_ACEOF
12660 #define EXTRA_MODES_FILE "config/$extra_modes"
12661 _ACEOF
12665 # Convert extra_options into a form suitable for Makefile use.
12666 extra_opt_files=
12667 for f in $extra_options; do
12668 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12669 done
12672 # auto-host.h is the file containing items generated by autoconf and is
12673 # the first file included by config.h.
12674 # If host=build, it is correct to have bconfig include auto-host.h
12675 # as well. If host!=build, we are in error and need to do more
12676 # work to find out the build config parameters.
12677 if test x$host = x$build
12678 then
12679 build_auto=auto-host.h
12680 else
12681 # We create a subdir, then run autoconf in the subdir.
12682 # To prevent recursion we set host and build for the new
12683 # invocation of configure to the build for this invocation
12684 # of configure.
12685 tempdir=build.$$
12686 rm -rf $tempdir
12687 mkdir $tempdir
12688 cd $tempdir
12689 case ${srcdir} in
12690 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12691 *) realsrcdir=../${srcdir};;
12692 esac
12693 saved_CFLAGS="${CFLAGS}"
12694 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12695 ${realsrcdir}/configure \
12696 --enable-languages=${enable_languages-all} \
12697 --target=$target_alias --host=$build_alias --build=$build_alias
12698 CFLAGS="${saved_CFLAGS}"
12700 # We just finished tests for the build machine, so rename
12701 # the file auto-build.h in the gcc directory.
12702 mv auto-host.h ../auto-build.h
12703 cd ..
12704 rm -rf $tempdir
12705 build_auto=auto-build.h
12709 tm_file="${tm_file} defaults.h"
12710 tm_p_file="${tm_p_file} tm-preds.h"
12711 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12712 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12713 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12714 # put this back in temporarily.
12715 xm_file="auto-host.h ansidecl.h ${xm_file}"
12717 # --------
12718 # UNSORTED
12719 # --------
12721 # Compile in configure arguments.
12722 if test -f configargs.h ; then
12723 # Being re-configured.
12724 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12725 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12726 else
12727 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12730 # Double all backslashes and backslash all quotes to turn
12731 # gcc_config_arguments into a C string.
12732 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12733 $gcc_config_arguments
12735 gcc_config_arguments_str=`cat conftest.out`
12736 rm -f conftest.out
12738 cat > configargs.h <<EOF
12739 /* Generated automatically. */
12740 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12741 static const char thread_model[] = "$thread_file";
12743 static const struct {
12744 const char *name, *value;
12745 } configure_default_options[] = $configure_default_options;
12748 # Internationalization
12749 # If we haven't got the data from the intl directory,
12750 # assume NLS is disabled.
12751 USE_NLS=no
12752 LIBINTL=
12753 LIBINTL_DEP=
12754 INCINTL=
12755 XGETTEXT=
12756 GMSGFMT=
12757 POSUB=
12759 if test -f ../intl/config.intl; then
12760 . ../intl/config.intl
12762 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12763 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12764 if test x"$USE_NLS" != xyes; then
12765 echo "$as_me:$LINENO: result: no" >&5
12766 echo "${ECHO_T}no" >&6
12767 else
12768 echo "$as_me:$LINENO: result: yes" >&5
12769 echo "${ECHO_T}yes" >&6
12771 cat >>confdefs.h <<\_ACEOF
12772 #define ENABLE_NLS 1
12773 _ACEOF
12776 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12777 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12778 # Look for .po and .gmo files in the source directory.
12779 CATALOGS=
12780 XLINGUAS=
12781 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12782 # If there aren't any .gmo files the shell will give us the
12783 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12784 # weeded out.
12785 case "$cat" in *\**)
12786 continue;;
12787 esac
12788 # The quadruple backslash is collapsed to a double backslash
12789 # by the backticks, then collapsed again by the double quotes,
12790 # leaving us with one backslash in the sed expression (right
12791 # before the dot that mustn't act as a wildcard).
12792 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12793 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12794 # The user is allowed to set LINGUAS to a list of languages to
12795 # install catalogs for. If it's empty that means "all of them."
12796 if test "x$LINGUAS" = x; then
12797 CATALOGS="$CATALOGS $cat"
12798 XLINGUAS="$XLINGUAS $lang"
12799 else
12800 case "$LINGUAS" in *$lang*)
12801 CATALOGS="$CATALOGS $cat"
12802 XLINGUAS="$XLINGUAS $lang"
12804 esac
12806 done
12807 LINGUAS="$XLINGUAS"
12808 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12809 echo "${ECHO_T}$LINGUAS" >&6
12812 DATADIRNAME=share
12814 INSTOBJEXT=.mo
12816 GENCAT=gencat
12818 CATOBJEXT=.gmo
12822 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12823 # -liconv on the link line twice.
12824 case "$LIBINTL" in *$LIBICONV*)
12825 LIBICONV= ;;
12826 esac
12828 # Check whether --enable-secureplt or --disable-secureplt was given.
12829 if test "${enable_secureplt+set}" = set; then
12830 enableval="$enable_secureplt"
12834 # Windows32 Registry support for specifying GCC installation paths.
12835 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12836 if test "${enable_win32_registry+set}" = set; then
12837 enableval="$enable_win32_registry"
12841 case $host_os in
12842 win32 | pe | cygwin* | mingw32* | uwin*)
12843 if test "x$enable_win32_registry" != xno; then
12844 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12845 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12846 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849 ac_func_search_save_LIBS=$LIBS
12850 ac_cv_search_RegOpenKeyExA=no
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h. */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12858 /* Override any gcc2 internal prototype to avoid an error. */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 /* We use char because int might match the return type of a gcc2
12863 builtin and then its argument prototype would still apply. */
12864 char RegOpenKeyExA ();
12866 main ()
12868 RegOpenKeyExA ();
12870 return 0;
12872 _ACEOF
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 ac_cv_search_RegOpenKeyExA="none required"
12896 else
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12901 rm -f conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12904 for ac_lib in advapi32; do
12905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12906 cat >conftest.$ac_ext <<_ACEOF
12907 /* confdefs.h. */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12913 /* Override any gcc2 internal prototype to avoid an error. */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12919 char RegOpenKeyExA ();
12921 main ()
12923 RegOpenKeyExA ();
12925 return 0;
12927 _ACEOF
12928 rm -f conftest.$ac_objext conftest$ac_exeext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930 (eval $ac_link) 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest$ac_exeext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12951 break
12952 else
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12957 rm -f conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959 done
12961 LIBS=$ac_func_search_save_LIBS
12963 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12964 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12965 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12966 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12968 else
12969 enable_win32_registry=no
12974 if test "x$enable_win32_registry" != xno; then
12976 cat >>confdefs.h <<\_ACEOF
12977 #define ENABLE_WIN32_REGISTRY 1
12978 _ACEOF
12981 if test "x$enable_win32_registry" != xyes \
12982 && test "x$enable_win32_registry" != x; then
12984 cat >>confdefs.h <<_ACEOF
12985 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12986 _ACEOF
12991 esac
12993 # Get an absolute path to the GCC top-level source directory
12994 holddir=`${PWDCMD-pwd}`
12995 cd $srcdir
12996 topdir=`${PWDCMD-pwd}`
12997 cd $holddir
12999 # Conditionalize the makefile for this host machine.
13000 xmake_file=
13001 for f in ${host_xmake_file}
13003 if test -f ${srcdir}/config/$f
13004 then
13005 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13007 done
13009 # Conditionalize the makefile for this target machine.
13010 tmake_file_=
13011 for f in ${tmake_file}
13013 if test -f ${srcdir}/config/$f
13014 then
13015 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13017 done
13018 tmake_file="${tmake_file_}"
13020 # This is a terrible hack which will go away some day.
13021 host_cc_for_libada=${CC}
13024 out_object_file=`basename $out_file .c`.o
13026 tm_file_list="options.h"
13027 tm_include_list="options.h"
13028 for f in $tm_file; do
13029 case $f in
13030 defaults.h )
13031 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13032 tm_include_list="${tm_include_list} $f"
13035 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13036 tm_include_list="${tm_include_list} config/$f"
13038 esac
13039 done
13041 tm_p_file_list=
13042 tm_p_include_list=
13043 for f in $tm_p_file; do
13044 case $f in
13045 tm-preds.h )
13046 tm_p_file_list="${tm_p_file_list} $f"
13047 tm_p_include_list="${tm_p_include_list} $f"
13050 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13051 tm_p_include_list="${tm_p_include_list} config/$f"
13052 esac
13053 done
13055 xm_file_list=
13056 xm_include_list=
13057 for f in $xm_file; do
13058 case $f in
13059 ansidecl.h )
13060 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13061 xm_include_list="${xm_include_list} $f"
13063 auto-host.h )
13064 xm_file_list="${xm_file_list} $f"
13065 xm_include_list="${xm_include_list} $f"
13068 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13069 xm_include_list="${xm_include_list} config/$f"
13071 esac
13072 done
13074 host_xm_file_list=
13075 host_xm_include_list=
13076 for f in $host_xm_file; do
13077 case $f in
13078 ansidecl.h )
13079 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13080 host_xm_include_list="${host_xm_include_list} $f"
13082 auto-host.h )
13083 host_xm_file_list="${host_xm_file_list} $f"
13084 host_xm_include_list="${host_xm_include_list} $f"
13087 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13088 host_xm_include_list="${host_xm_include_list} config/$f"
13090 esac
13091 done
13093 build_xm_file_list=
13094 for f in $build_xm_file; do
13095 case $f in
13096 ansidecl.h )
13097 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13098 build_xm_include_list="${build_xm_include_list} $f"
13100 auto-build.h | auto-host.h )
13101 build_xm_file_list="${build_xm_file_list} $f"
13102 build_xm_include_list="${build_xm_include_list} $f"
13105 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13106 build_xm_include_list="${build_xm_include_list} config/$f"
13108 esac
13109 done
13111 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13112 # cross-compiler which does not use the native headers and libraries.
13113 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13114 CROSS=
13115 ALL=all.internal
13116 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13118 if test "x$with_build_sysroot" != x; then
13119 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13120 else
13121 # This value is used, even on a native system, because
13122 # CROSS_SYSTEM_HEADER_DIR is just
13123 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13124 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13127 if test x$host != x$target
13128 then
13129 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13130 ALL=all.cross
13131 SYSTEM_HEADER_DIR=$build_system_header_dir
13132 case "$host","$target" in
13133 # Darwin crosses can use the host system's libraries and headers,
13134 # because of the fat library support. Of course, it must be the
13135 # same version of Darwin on both sides. Allow the user to
13136 # just say --target=foo-darwin without a version number to mean
13137 # "the version on this system".
13138 *-*-darwin*,*-*-darwin*)
13139 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13140 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13141 if test $hostos = $targetos -o $targetos = darwin ; then
13142 CROSS=
13143 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13144 with_headers=yes
13148 i?86-*-*,x86_64-*-* \
13149 | powerpc*-*-*,powerpc64*-*-*)
13150 CROSS="$CROSS -DNATIVE_CROSS" ;;
13151 esac
13152 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13153 SYSTEM_HEADER_DIR=$build_system_header_dir
13156 # If this is a cross-compiler that does not
13157 # have its own set of headers then define
13158 # inhibit_libc
13160 # If this is using newlib, without having the headers available now,
13161 # then define inhibit_libc in LIBGCC2_CFLAGS.
13162 # This prevents libgcc2 from containing any code which requires libc
13163 # support.
13164 inhibit_libc=false
13165 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13166 test x$with_newlib = xyes ; } &&
13167 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13168 inhibit_libc=true
13172 # When building gcc with a cross-compiler, we need to adjust things so
13173 # that the generator programs are still built with the native compiler.
13174 # Also, we cannot run fixincludes or fix-header.
13176 # These are the normal (build=host) settings:
13177 CC_FOR_BUILD='$(CC)'
13178 BUILD_CFLAGS='$(ALL_CFLAGS)'
13179 STMP_FIXINC=stmp-fixinc
13181 # Possibly disable fixproto, on a per-target basis.
13182 case ${use_fixproto} in
13184 STMP_FIXPROTO=
13186 yes)
13187 STMP_FIXPROTO=stmp-fixproto
13189 esac
13192 # And these apply if build != host, or we are generating coverage data
13193 if test x$build != x$host || test "x$coverage_flags" != x
13194 then
13195 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13197 if test "x$TARGET_SYSTEM_ROOT" = x; then
13198 if test "x$STMP_FIXPROTO" != x; then
13199 STMP_FIXPROTO=stmp-install-fixproto
13204 # Expand extra_headers to include complete path.
13205 # This substitutes for lots of t-* files.
13206 extra_headers_list=
13207 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13208 for file in ${extra_headers} ; do
13209 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13210 done
13212 # Define collect2 in Makefile.
13213 case $host_can_use_collect2 in
13214 no) collect2= ;;
13215 *) collect2='collect2$(exeext)' ;;
13216 esac
13219 # Add a definition of USE_COLLECT2 if system wants one.
13220 case $use_collect2 in
13221 no) use_collect2= ;;
13222 "") ;;
13224 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13225 xm_defines="${xm_defines} USE_COLLECT2"
13226 case $host_can_use_collect2 in
13228 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13229 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13230 { (exit 1); exit 1; }; }
13232 esac
13234 esac
13236 # ---------------------------
13237 # Assembler & linker features
13238 # ---------------------------
13240 # Identify the assembler which will work hand-in-glove with the newly
13241 # built GCC, so that we can examine its features. This is the assembler
13242 # which will be driven by the driver program.
13244 # If build != host, and we aren't building gas in-tree, we identify a
13245 # build->target assembler and hope that it will have the same features
13246 # as the host->target assembler we'll be using.
13247 gcc_cv_gas_major_version=
13248 gcc_cv_gas_minor_version=
13249 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13251 if test "${gcc_cv_as+set}" = set; then
13253 else
13255 if test -x "$DEFAULT_ASSEMBLER"; then
13256 gcc_cv_as="$DEFAULT_ASSEMBLER"
13257 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13258 && test -f ../gas/Makefile \
13259 && test x$build = x$host; then
13260 gcc_cv_as=../gas/as-new$build_exeext
13261 elif test -x as$build_exeext; then
13262 # Build using assembler in the current directory.
13263 gcc_cv_as=./as$build_exeext
13264 elif test -x $AS_FOR_TARGET; then
13265 gcc_cv_as="$AS_FOR_TARGET"
13266 else
13267 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13268 set dummy $AS_FOR_TARGET; ac_word=$2
13269 echo "$as_me:$LINENO: checking for $ac_word" >&5
13270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13271 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274 case $gcc_cv_as in
13275 [\\/]* | ?:[\\/]*)
13276 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280 for as_dir in $PATH
13282 IFS=$as_save_IFS
13283 test -z "$as_dir" && as_dir=.
13284 for ac_exec_ext in '' $ac_executable_extensions; do
13285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13286 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13288 break 2
13290 done
13291 done
13294 esac
13296 gcc_cv_as=$ac_cv_path_gcc_cv_as
13298 if test -n "$gcc_cv_as"; then
13299 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13300 echo "${ECHO_T}$gcc_cv_as" >&6
13301 else
13302 echo "$as_me:$LINENO: result: no" >&5
13303 echo "${ECHO_T}no" >&6
13310 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13313 echo "$as_me:$LINENO: checking what assembler to use" >&5
13314 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13315 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13316 # Single tree build which includes gas. We want to prefer it
13317 # over whatever linker top-level may have detected, since
13318 # we'll use what we're building after installation anyway.
13319 echo "$as_me:$LINENO: result: newly built gas" >&5
13320 echo "${ECHO_T}newly built gas" >&6
13321 in_tree_gas=yes
13322 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13323 for f in $gcc_cv_as_bfd_srcdir/configure \
13324 $gcc_cv_as_gas_srcdir/configure \
13325 $gcc_cv_as_gas_srcdir/configure.in \
13326 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13327 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13328 if test x$gcc_cv_gas_version != x; then
13329 break
13331 done
13332 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13333 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13334 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13335 case $gcc_cv_gas_patch_version in
13336 "") gcc_cv_gas_patch_version="0" ;;
13337 esac
13338 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13339 + $gcc_cv_gas_minor_version \) \* 1000 \
13340 + $gcc_cv_gas_patch_version`
13342 in_tree_gas_is_elf=no
13343 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13344 || (grep 'obj_format = multi' ../gas/Makefile \
13345 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13346 then
13347 in_tree_gas_is_elf=yes
13349 else
13350 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13351 echo "${ECHO_T}$gcc_cv_as" >&6
13352 in_tree_gas=no
13355 # Identify the linker which will work hand-in-glove with the newly
13356 # built GCC, so that we can examine its features. This is the linker
13357 # which will be driven by the driver program.
13359 # If build != host, and we aren't building gas in-tree, we identify a
13360 # build->target linker and hope that it will have the same features
13361 # as the host->target linker we'll be using.
13362 gcc_cv_gld_major_version=
13363 gcc_cv_gld_minor_version=
13364 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13365 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13367 if test "${gcc_cv_ld+set}" = set; then
13369 else
13371 if test -x "$DEFAULT_LINKER"; then
13372 gcc_cv_ld="$DEFAULT_LINKER"
13373 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13374 && test -f ../ld/Makefile \
13375 && test x$build = x$host; then
13376 gcc_cv_ld=../ld/ld-new$build_exeext
13377 elif test -x collect-ld$build_exeext; then
13378 # Build using linker in the current directory.
13379 gcc_cv_ld=./collect-ld$build_exeext
13380 elif test -x $LD_FOR_TARGET; then
13381 gcc_cv_ld="$LD_FOR_TARGET"
13382 else
13383 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13384 set dummy $LD_FOR_TARGET; ac_word=$2
13385 echo "$as_me:$LINENO: checking for $ac_word" >&5
13386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13387 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390 case $gcc_cv_ld in
13391 [\\/]* | ?:[\\/]*)
13392 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396 for as_dir in $PATH
13398 IFS=$as_save_IFS
13399 test -z "$as_dir" && as_dir=.
13400 for ac_exec_ext in '' $ac_executable_extensions; do
13401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13402 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13404 break 2
13406 done
13407 done
13410 esac
13412 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13414 if test -n "$gcc_cv_ld"; then
13415 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13416 echo "${ECHO_T}$gcc_cv_ld" >&6
13417 else
13418 echo "$as_me:$LINENO: result: no" >&5
13419 echo "${ECHO_T}no" >&6
13426 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13429 echo "$as_me:$LINENO: checking what linker to use" >&5
13430 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13431 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13432 # Single tree build which includes ld. We want to prefer it
13433 # over whatever linker top-level may have detected, since
13434 # we'll use what we're building after installation anyway.
13435 echo "$as_me:$LINENO: result: newly built ld" >&5
13436 echo "${ECHO_T}newly built ld" >&6
13437 in_tree_ld=yes
13438 in_tree_ld_is_elf=no
13439 if (grep 'EMUL = .*elf' ../ld/Makefile \
13440 || grep 'EMUL = .*linux' ../ld/Makefile \
13441 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13442 in_tree_ld_is_elf=yes
13444 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
13446 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13447 if test x$gcc_cv_gld_version != x; then
13448 break
13450 done
13451 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13452 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13453 else
13454 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13455 echo "${ECHO_T}$gcc_cv_ld" >&6
13456 in_tree_ld=no
13459 # Figure out what nm we will be using.
13460 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13461 if test "${gcc_cv_nm+set}" = set; then
13463 else
13465 if test -f $gcc_cv_binutils_srcdir/configure.in \
13466 && test -f ../binutils/Makefile \
13467 && test x$build = x$host; then
13468 gcc_cv_nm=../binutils/nm-new$build_exeext
13469 elif test -x nm$build_exeext; then
13470 gcc_cv_nm=./nm$build_exeext
13471 elif test -x $NM_FOR_TARGET; then
13472 gcc_cv_nm="$NM_FOR_TARGET"
13473 else
13474 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13475 set dummy $NM_FOR_TARGET; ac_word=$2
13476 echo "$as_me:$LINENO: checking for $ac_word" >&5
13477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13478 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481 case $gcc_cv_nm in
13482 [\\/]* | ?:[\\/]*)
13483 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13487 for as_dir in $PATH
13489 IFS=$as_save_IFS
13490 test -z "$as_dir" && as_dir=.
13491 for ac_exec_ext in '' $ac_executable_extensions; do
13492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13493 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13495 break 2
13497 done
13498 done
13501 esac
13503 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13505 if test -n "$gcc_cv_nm"; then
13506 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13507 echo "${ECHO_T}$gcc_cv_nm" >&6
13508 else
13509 echo "$as_me:$LINENO: result: no" >&5
13510 echo "${ECHO_T}no" >&6
13517 echo "$as_me:$LINENO: checking what nm to use" >&5
13518 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13519 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13520 # Single tree build which includes binutils.
13521 echo "$as_me:$LINENO: result: newly built nm" >&5
13522 echo "${ECHO_T}newly built nm" >&6
13523 in_tree_nm=yes
13524 else
13525 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13526 echo "${ECHO_T}$gcc_cv_nm" >&6
13527 in_tree_nm=no
13530 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13533 # Figure out what objdump we will be using.
13534 if test "${gcc_cv_objdump+set}" = set; then
13536 else
13538 if test -f $gcc_cv_binutils_srcdir/configure.in \
13539 && test -f ../binutils/Makefile \
13540 && test x$build = x$host; then
13541 # Single tree build which includes binutils.
13542 gcc_cv_objdump=../binutils/objdump$build_exeext
13543 elif test -x objdump$build_exeext; then
13544 gcc_cv_objdump=./objdump$build_exeext
13545 elif test -x $OBJDUMP_FOR_TARGET; then
13546 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13547 else
13548 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13549 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13550 echo "$as_me:$LINENO: checking for $ac_word" >&5
13551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13552 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13555 case $gcc_cv_objdump in
13556 [\\/]* | ?:[\\/]*)
13557 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13561 for as_dir in $PATH
13563 IFS=$as_save_IFS
13564 test -z "$as_dir" && as_dir=.
13565 for ac_exec_ext in '' $ac_executable_extensions; do
13566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13567 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13569 break 2
13571 done
13572 done
13575 esac
13577 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13579 if test -n "$gcc_cv_objdump"; then
13580 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13581 echo "${ECHO_T}$gcc_cv_objdump" >&6
13582 else
13583 echo "$as_me:$LINENO: result: no" >&5
13584 echo "${ECHO_T}no" >&6
13591 echo "$as_me:$LINENO: checking what objdump to use" >&5
13592 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13593 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13594 # Single tree build which includes binutils.
13595 echo "$as_me:$LINENO: result: newly built objdump" >&5
13596 echo "${ECHO_T}newly built objdump" >&6
13597 elif test x$gcc_cv_objdump = x; then
13598 echo "$as_me:$LINENO: result: not found" >&5
13599 echo "${ECHO_T}not found" >&6
13600 else
13601 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13602 echo "${ECHO_T}$gcc_cv_objdump" >&6
13605 # Figure out what assembler alignment features are present.
13606 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13607 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13608 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611 gcc_cv_as_balign_and_p2align=no
13612 if test $in_tree_gas = yes; then
13613 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13614 then gcc_cv_as_balign_and_p2align=yes
13616 elif test x$gcc_cv_as != x; then
13617 echo '.balign 4
13618 .p2align 2' > conftest.s
13619 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }
13625 then
13626 gcc_cv_as_balign_and_p2align=yes
13627 else
13628 echo "configure: failed program was" >&5
13629 cat conftest.s >&5
13631 rm -f conftest.o conftest.s
13634 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13635 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13636 if test $gcc_cv_as_balign_and_p2align = yes; then
13638 cat >>confdefs.h <<\_ACEOF
13639 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13640 _ACEOF
13644 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13645 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13646 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649 gcc_cv_as_max_skip_p2align=no
13650 if test $in_tree_gas = yes; then
13651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13652 then gcc_cv_as_max_skip_p2align=yes
13654 elif test x$gcc_cv_as != x; then
13655 echo '.p2align 4,,7' > conftest.s
13656 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }
13662 then
13663 gcc_cv_as_max_skip_p2align=yes
13664 else
13665 echo "configure: failed program was" >&5
13666 cat conftest.s >&5
13668 rm -f conftest.o conftest.s
13671 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13672 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13673 if test $gcc_cv_as_max_skip_p2align = yes; then
13675 cat >>confdefs.h <<\_ACEOF
13676 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13677 _ACEOF
13681 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13682 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13683 if test "${gcc_cv_as_literal16+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686 gcc_cv_as_literal16=no
13687 if test $in_tree_gas = yes; then
13688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13689 then gcc_cv_as_literal16=yes
13691 elif test x$gcc_cv_as != x; then
13692 echo '.literal16' > conftest.s
13693 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }
13699 then
13700 gcc_cv_as_literal16=yes
13701 else
13702 echo "configure: failed program was" >&5
13703 cat conftest.s >&5
13705 rm -f conftest.o conftest.s
13708 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13709 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13710 if test $gcc_cv_as_literal16 = yes; then
13712 cat >>confdefs.h <<\_ACEOF
13713 #define HAVE_GAS_LITERAL16 1
13714 _ACEOF
13718 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13719 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13720 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13722 else
13723 gcc_cv_as_subsection_m1=no
13724 if test $in_tree_gas = yes; then
13725 if test $in_tree_gas_is_elf = yes \
13726 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13727 then gcc_cv_as_subsection_m1=yes
13729 elif test x$gcc_cv_as != x; then
13730 echo 'conftest_label1: .word 0
13731 .subsection -1
13732 conftest_label2: .word 0
13733 .previous' > conftest.s
13734 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }
13740 then
13741 if test x$gcc_cv_nm != x; then
13742 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13743 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13744 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13745 then :
13746 else gcc_cv_as_subsection_m1=yes
13748 rm -f conftest.nm1 conftest.nm2
13750 else
13751 echo "configure: failed program was" >&5
13752 cat conftest.s >&5
13754 rm -f conftest.o conftest.s
13757 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13758 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13759 if test $gcc_cv_as_subsection_m1 = yes; then
13761 cat >>confdefs.h <<\_ACEOF
13762 #define HAVE_GAS_SUBSECTION_ORDERING 1
13763 _ACEOF
13767 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13768 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13769 if test "${gcc_cv_as_weak+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772 gcc_cv_as_weak=no
13773 if test $in_tree_gas = yes; then
13774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13775 then gcc_cv_as_weak=yes
13777 elif test x$gcc_cv_as != x; then
13778 echo ' .weak foobar' > conftest.s
13779 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }
13785 then
13786 gcc_cv_as_weak=yes
13787 else
13788 echo "configure: failed program was" >&5
13789 cat conftest.s >&5
13791 rm -f conftest.o conftest.s
13794 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13795 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13796 if test $gcc_cv_as_weak = yes; then
13798 cat >>confdefs.h <<\_ACEOF
13799 #define HAVE_GAS_WEAK 1
13800 _ACEOF
13804 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13805 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13806 if test "${gcc_cv_as_weakref+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 gcc_cv_as_weakref=no
13810 if test $in_tree_gas = yes; then
13811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13812 then gcc_cv_as_weakref=yes
13814 elif test x$gcc_cv_as != x; then
13815 echo ' .weakref foobar, barfnot' > conftest.s
13816 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }
13822 then
13823 gcc_cv_as_weakref=yes
13824 else
13825 echo "configure: failed program was" >&5
13826 cat conftest.s >&5
13828 rm -f conftest.o conftest.s
13831 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13832 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13833 if test $gcc_cv_as_weakref = yes; then
13835 cat >>confdefs.h <<\_ACEOF
13836 #define HAVE_GAS_WEAKREF 1
13837 _ACEOF
13841 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13842 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13843 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 else
13846 gcc_cv_as_nsubspa_comdat=no
13847 if test $in_tree_gas = yes; then
13848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13849 then gcc_cv_as_nsubspa_comdat=yes
13851 elif test x$gcc_cv_as != x; then
13852 echo ' .SPACE $TEXT$
13853 .NSUBSPA $CODE$,COMDAT' > conftest.s
13854 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }
13860 then
13861 gcc_cv_as_nsubspa_comdat=yes
13862 else
13863 echo "configure: failed program was" >&5
13864 cat conftest.s >&5
13866 rm -f conftest.o conftest.s
13869 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13870 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13871 if test $gcc_cv_as_nsubspa_comdat = yes; then
13873 cat >>confdefs.h <<\_ACEOF
13874 #define HAVE_GAS_NSUBSPA_COMDAT 1
13875 _ACEOF
13879 # .hidden needs to be supported in both the assembler and the linker,
13880 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13881 # This is irritatingly difficult to feature test for; we have to check the
13882 # date string after the version number. If we've got an in-tree
13883 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13884 # to be safe.
13885 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13886 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13887 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13888 if test "${gcc_cv_as_hidden+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891 gcc_cv_as_hidden=no
13892 if test $in_tree_gas = yes; then
13893 if test $in_tree_gas_is_elf = yes \
13894 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13895 then gcc_cv_as_hidden=yes
13897 elif test x$gcc_cv_as != x; then
13898 echo ' .hidden foobar
13899 foobar:' > conftest.s
13900 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }
13906 then
13907 gcc_cv_as_hidden=yes
13908 else
13909 echo "configure: failed program was" >&5
13910 cat conftest.s >&5
13912 rm -f conftest.o conftest.s
13915 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13916 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13919 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13920 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13921 if test "${gcc_cv_ld_hidden+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 else
13924 if test $in_tree_ld = yes ; then
13925 gcc_cv_ld_hidden=no
13926 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 \
13927 && test $in_tree_ld_is_elf = yes; then
13928 gcc_cv_ld_hidden=yes
13930 else
13931 gcc_cv_ld_hidden=yes
13932 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13933 if echo "$ld_ver" | grep GNU > /dev/null; then
13934 ld_vers=`echo $ld_ver | sed -n \
13935 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13936 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13937 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13938 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13939 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13940 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13941 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
13942 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'`
13943 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13944 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13945 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13946 if test 0"$ld_date" -lt 20020404; then
13947 if test -n "$ld_date"; then
13948 # If there was date string, but was earlier than 2002-04-04, fail
13949 gcc_cv_ld_hidden=no
13950 elif test -z "$ld_vers"; then
13951 # If there was no date string nor ld version number, something is wrong
13952 gcc_cv_ld_hidden=no
13953 else
13954 test -z "$ld_vers_patch" && ld_vers_patch=0
13955 if test "$ld_vers_major" -lt 2; then
13956 gcc_cv_ld_hidden=no
13957 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13958 gcc_cv_ld_hidden="no"
13959 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13960 gcc_cv_ld_hidden=no
13964 else
13965 case "${target}" in
13966 hppa64*-*-hpux* | ia64*-*-hpux*)
13967 gcc_cv_ld_hidden=yes
13970 gcc_cv_ld_hidden=no
13972 esac
13976 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13977 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13978 libgcc_visibility=no
13981 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13982 libgcc_visibility=yes
13984 cat >>confdefs.h <<\_ACEOF
13985 #define HAVE_GAS_HIDDEN 1
13986 _ACEOF
13990 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13991 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13992 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13993 if test "${gcc_cv_as_leb128+set}" = set; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 else
13996 gcc_cv_as_leb128=no
13997 if test $in_tree_gas = yes; then
13998 if test $in_tree_gas_is_elf = yes \
13999 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14000 then gcc_cv_as_leb128=yes
14002 elif test x$gcc_cv_as != x; then
14003 echo ' .data
14004 .uleb128 L2 - L1
14006 .uleb128 1280
14007 .sleb128 -1010
14008 L2:' > conftest.s
14009 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }
14015 then
14016 # GAS versions before 2.11 do not support uleb128,
14017 # despite appearing to.
14018 # ??? There exists an elf-specific test that will crash
14019 # the assembler. Perhaps it's better to figure out whether
14020 # arbitrary sections are supported and try the test.
14021 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14022 if echo "$as_ver" | grep GNU > /dev/null; then
14023 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14024 as_major=`echo $as_ver | sed 's/\..*//'`
14025 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14026 if test $as_major -eq 2 && test $as_minor -lt 11
14027 then :
14028 else gcc_cv_as_leb128=yes
14031 else
14032 echo "configure: failed program was" >&5
14033 cat conftest.s >&5
14035 rm -f conftest.o conftest.s
14038 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14039 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14040 if test $gcc_cv_as_leb128 = yes; then
14042 cat >>confdefs.h <<\_ACEOF
14043 #define HAVE_AS_LEB128 1
14044 _ACEOF
14048 # GAS versions up to and including 2.11.0 may mis-optimize
14049 # .eh_frame data.
14050 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14051 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14052 if test "${gcc_cv_as_eh_frame+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055 gcc_cv_as_eh_frame=no
14056 if test $in_tree_gas = yes; then
14057 if test $in_tree_gas_is_elf = yes \
14058 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14059 then gcc_cv_as_eh_frame=yes
14061 elif test x$gcc_cv_as != x; then
14062 echo ' .text
14063 .LFB1:
14064 .4byte 0
14065 .L1:
14066 .4byte 0
14067 .LFE1:
14068 .section .eh_frame,"aw",@progbits
14069 __FRAME_BEGIN__:
14070 .4byte .LECIE1-.LSCIE1
14071 .LSCIE1:
14072 .4byte 0x0
14073 .byte 0x1
14074 .ascii "z\0"
14075 .byte 0x1
14076 .byte 0x78
14077 .byte 0x1a
14078 .byte 0x0
14079 .byte 0x4
14080 .4byte 1
14081 .p2align 1
14082 .LECIE1:
14083 .LSFDE1:
14084 .4byte .LEFDE1-.LASFDE1
14085 .LASFDE1:
14086 .4byte .LASFDE1-__FRAME_BEGIN__
14087 .4byte .LFB1
14088 .4byte .LFE1-.LFB1
14089 .byte 0x4
14090 .4byte .LFE1-.LFB1
14091 .byte 0x4
14092 .4byte .L1-.LFB1
14093 .LEFDE1:' > conftest.s
14094 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }
14100 then
14101 cat > conftest.lit <<EOF
14102 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14103 0010 01000000 12000000 18000000 00000000 ................
14104 0020 08000000 04080000 0044 .........D
14106 cat > conftest.big <<EOF
14107 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14108 0010 00000001 00000012 00000018 00000000 ................
14109 0020 00000008 04000000 0844 .........D
14111 # If the assembler didn't choke, and we can objdump,
14112 # and we got the correct data, then succeed.
14113 # The text in the here-document typically retains its unix-style line
14114 # endings, while the output of objdump will use host line endings.
14115 # Therefore, use diff -b for the comparisons.
14116 if test x$gcc_cv_objdump != x \
14117 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14118 | tail -3 > conftest.got \
14119 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14120 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14121 then
14122 gcc_cv_as_eh_frame=yes
14123 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 gcc_cv_as_eh_frame=buggy
14130 else
14131 # Uh oh, what do we do now?
14132 gcc_cv_as_eh_frame=no
14134 else
14135 echo "configure: failed program was" >&5
14136 cat conftest.s >&5
14138 rm -f conftest.o conftest.s
14141 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14142 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14145 if test $gcc_cv_as_eh_frame = buggy; then
14147 cat >>confdefs.h <<\_ACEOF
14148 #define USE_AS_TRADITIONAL_FORMAT 1
14149 _ACEOF
14153 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14154 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14155 if test "${gcc_cv_as_shf_merge+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 else
14158 gcc_cv_as_shf_merge=no
14159 if test $in_tree_gas = yes; then
14160 if test $in_tree_gas_is_elf = yes \
14161 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14162 then gcc_cv_as_shf_merge=yes
14164 elif test x$gcc_cv_as != x; then
14165 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14166 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }
14172 then
14173 gcc_cv_as_shf_merge=yes
14174 else
14175 echo "configure: failed program was" >&5
14176 cat conftest.s >&5
14178 rm -f conftest.o conftest.s
14181 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14182 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14184 if test $gcc_cv_as_shf_merge = no; then
14185 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14186 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14187 if test "${gcc_cv_as_shf_merge+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 else
14190 gcc_cv_as_shf_merge=no
14191 if test $in_tree_gas = yes; then
14192 if test $in_tree_gas_is_elf = yes \
14193 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14194 then gcc_cv_as_shf_merge=yes
14196 elif test x$gcc_cv_as != x; then
14197 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14198 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }
14204 then
14205 gcc_cv_as_shf_merge=yes
14206 else
14207 echo "configure: failed program was" >&5
14208 cat conftest.s >&5
14210 rm -f conftest.o conftest.s
14213 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14214 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14218 cat >>confdefs.h <<_ACEOF
14219 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14220 _ACEOF
14223 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14224 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14225 if test "${gcc_cv_as_comdat_group+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228 gcc_cv_as_comdat_group=no
14229 if test $in_tree_gas = yes; then
14230 if test $in_tree_gas_is_elf = yes \
14231 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14232 then gcc_cv_as_comdat_group=yes
14234 elif test x$gcc_cv_as != x; then
14235 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14236 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }
14242 then
14243 gcc_cv_as_comdat_group=yes
14244 else
14245 echo "configure: failed program was" >&5
14246 cat conftest.s >&5
14248 rm -f conftest.o conftest.s
14251 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14252 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14254 if test $gcc_cv_as_comdat_group = yes; then
14255 gcc_cv_as_comdat_group_percent=no
14256 else
14257 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14258 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14259 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262 gcc_cv_as_comdat_group_percent=no
14263 if test $in_tree_gas = yes; then
14264 if test $in_tree_gas_is_elf = yes \
14265 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14266 then gcc_cv_as_comdat_group_percent=yes
14268 elif test x$gcc_cv_as != x; then
14269 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14270 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; }
14276 then
14277 gcc_cv_as_comdat_group_percent=yes
14278 else
14279 echo "configure: failed program was" >&5
14280 cat conftest.s >&5
14282 rm -f conftest.o conftest.s
14285 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14286 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14289 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14290 comdat_group=yes
14291 if test 0"$ld_date" -lt 20050308; then
14292 if test -n "$ld_date"; then
14293 # If there was date string, but was earlier than 2005-03-08, fail
14294 comdat_group=no
14295 elif test "$ld_vers_major" -lt 2; then
14296 comdat_group=no
14297 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14298 comdat_group=no
14301 else
14302 # assume linkers other than GNU ld don't support COMDAT group
14303 comdat_group=no
14305 if test $comdat_group = no; then
14306 gcc_cv_as_comdat_group=no
14307 gcc_cv_as_comdat_group_percent=no
14310 cat >>confdefs.h <<_ACEOF
14311 #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`
14312 _ACEOF
14315 # Thread-local storage - the check is heavily parametrized.
14316 conftest_s=
14317 tls_first_major=
14318 tls_first_minor=
14319 tls_as_opt=
14320 case "$target" in
14321 alpha*-*-*)
14322 conftest_s='
14323 .section ".tdata","awT",@progbits
14324 foo: .long 25
14325 .text
14326 ldq $27,__tls_get_addr($29) !literal!1
14327 lda $16,foo($29) !tlsgd!1
14328 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14329 ldq $27,__tls_get_addr($29) !literal!2
14330 lda $16,foo($29) !tlsldm!2
14331 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14332 ldq $1,foo($29) !gotdtprel
14333 ldah $2,foo($29) !dtprelhi
14334 lda $3,foo($2) !dtprello
14335 lda $4,foo($29) !dtprel
14336 ldq $1,foo($29) !gottprel
14337 ldah $2,foo($29) !tprelhi
14338 lda $3,foo($2) !tprello
14339 lda $4,foo($29) !tprel'
14340 tls_first_major=2
14341 tls_first_minor=13
14342 tls_as_opt=--fatal-warnings
14344 frv*-*-*)
14345 conftest_s='
14346 .section ".tdata","awT",@progbits
14347 x: .long 25
14348 .text
14349 call #gettlsoff(x)'
14350 tls_first_major=2
14351 tls_first_minor=14
14353 hppa*-*-linux*)
14354 conftest_s='
14355 t1: .reg %r20
14356 t2: .reg %r21
14357 gp: .reg %r19
14358 .section ".tdata","awT",@progbits
14359 foo: .long 25
14360 .text
14361 .align 4
14362 addil LT%foo-$tls_gdidx$,gp
14363 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14364 b __tls_get_addr
14366 addil LT%foo-$tls_ldidx$,gp
14367 b __tls_get_addr
14368 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14369 addil LR%foo-$tls_dtpoff$,%ret0
14370 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14371 mfctl %cr27,%t1
14372 addil LT%foo-$tls_ieoff$,gp
14373 ldw RT%foo-$tls_ieoff$(%r1),%t2
14374 add %t1,%t2,%t3
14375 mfctl %cr27,%t1
14376 addil LR%foo-$tls_leoff$,%t1
14377 ldo RR%foo-$tls_leoff$(%r1),%t2'
14378 tls_first_major=2
14379 tls_first_minor=15
14380 tls_as_opt=--fatal-warnings
14382 arm*-*-*)
14383 conftest_s='
14384 .section ".tdata","awT",%progbits
14385 foo: .long 25
14386 .text
14387 .word foo(gottpoff)
14388 .word foo(tpoff)
14389 .word foo(tlsgd)
14390 .word foo(tlsldm)
14391 .word foo(tlsldo)'
14392 tls_first_major=2
14393 tls_first_minor=17
14395 i[34567]86-*-*)
14396 conftest_s='
14397 .section ".tdata","awT",@progbits
14398 foo: .long 25
14399 .text
14400 movl %gs:0, %eax
14401 leal foo@TLSGD(,%ebx,1), %eax
14402 leal foo@TLSLDM(%ebx), %eax
14403 leal foo@DTPOFF(%eax), %edx
14404 movl foo@GOTTPOFF(%ebx), %eax
14405 subl foo@GOTTPOFF(%ebx), %eax
14406 addl foo@GOTNTPOFF(%ebx), %eax
14407 movl foo@INDNTPOFF, %eax
14408 movl $foo@TPOFF, %eax
14409 subl $foo@TPOFF, %eax
14410 leal foo@NTPOFF(%ecx), %eax'
14411 tls_first_major=2
14412 tls_first_minor=14
14413 tls_as_opt=--fatal-warnings
14415 x86_64-*-*)
14416 conftest_s='
14417 .section ".tdata","awT",@progbits
14418 foo: .long 25
14419 .text
14420 movq %fs:0, %rax
14421 leaq foo@TLSGD(%rip), %rdi
14422 leaq foo@TLSLD(%rip), %rdi
14423 leaq foo@DTPOFF(%rax), %rdx
14424 movq foo@GOTTPOFF(%rip), %rax
14425 movq $foo@TPOFF, %rax'
14426 tls_first_major=2
14427 tls_first_minor=14
14428 tls_as_opt=--fatal-warnings
14430 ia64-*-*)
14431 conftest_s='
14432 .section ".tdata","awT",@progbits
14433 foo: data8 25
14434 .text
14435 addl r16 = @ltoff(@dtpmod(foo#)), gp
14436 addl r17 = @ltoff(@dtprel(foo#)), gp
14437 addl r18 = @ltoff(@tprel(foo#)), gp
14438 addl r19 = @dtprel(foo#), gp
14439 adds r21 = @dtprel(foo#), r13
14440 movl r23 = @dtprel(foo#)
14441 addl r20 = @tprel(foo#), gp
14442 adds r22 = @tprel(foo#), r13
14443 movl r24 = @tprel(foo#)'
14444 tls_first_major=2
14445 tls_first_minor=13
14446 tls_as_opt=--fatal-warnings
14448 mips*-*-*)
14449 conftest_s='
14450 .section .tdata,"awT",@progbits
14452 .word 2
14453 .text
14454 addiu $4, $28, %tlsgd(x)
14455 addiu $4, $28, %tlsldm(x)
14456 lui $4, %dtprel_hi(x)
14457 addiu $4, $4, %dtprel_lo(x)
14458 lw $4, %gottprel(x)($28)
14459 lui $4, %tprel_hi(x)
14460 addiu $4, $4, %tprel_lo(x)'
14461 tls_first_major=2
14462 tls_first_minor=16
14463 tls_as_opt='-32 --fatal-warnings'
14465 powerpc-*-*)
14466 conftest_s='
14467 .section ".tdata","awT",@progbits
14468 .align 2
14469 ld0: .space 4
14470 ld1: .space 4
14471 x1: .space 4
14472 x2: .space 4
14473 x3: .space 4
14474 .text
14475 addi 3,31,ld0@got@tlsgd
14476 bl __tls_get_addr
14477 addi 3,31,x1@got@tlsld
14478 bl __tls_get_addr
14479 addi 9,3,x1@dtprel
14480 addis 9,3,x2@dtprel@ha
14481 addi 9,9,x2@dtprel@l
14482 lwz 9,x3@got@tprel(31)
14483 add 9,9,x@tls
14484 addi 9,2,x1@tprel
14485 addis 9,2,x2@tprel@ha
14486 addi 9,9,x2@tprel@l'
14487 tls_first_major=2
14488 tls_first_minor=14
14489 tls_as_opt="-a32 --fatal-warnings"
14491 powerpc64-*-*)
14492 conftest_s='
14493 .section ".tdata","awT",@progbits
14494 .align 3
14495 ld0: .space 8
14496 ld1: .space 8
14497 x1: .space 8
14498 x2: .space 8
14499 x3: .space 8
14500 .text
14501 addi 3,2,ld0@got@tlsgd
14502 bl .__tls_get_addr
14504 addi 3,2,ld1@toc
14505 bl .__tls_get_addr
14507 addi 3,2,x1@got@tlsld
14508 bl .__tls_get_addr
14510 addi 9,3,x1@dtprel
14511 bl .__tls_get_addr
14513 addis 9,3,x2@dtprel@ha
14514 addi 9,9,x2@dtprel@l
14515 bl .__tls_get_addr
14517 ld 9,x3@got@dtprel(2)
14518 add 9,9,3
14519 bl .__tls_get_addr
14520 nop'
14521 tls_first_major=2
14522 tls_first_minor=14
14523 tls_as_opt="-a64 --fatal-warnings"
14525 s390-*-*)
14526 conftest_s='
14527 .section ".tdata","awT",@progbits
14528 foo: .long 25
14529 .text
14530 .long foo@TLSGD
14531 .long foo@TLSLDM
14532 .long foo@DTPOFF
14533 .long foo@NTPOFF
14534 .long foo@GOTNTPOFF
14535 .long foo@INDNTPOFF
14536 l %r1,foo@GOTNTPOFF(%r12)
14537 l %r1,0(%r1):tls_load:foo
14538 bas %r14,0(%r1,%r13):tls_gdcall:foo
14539 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14540 tls_first_major=2
14541 tls_first_minor=14
14542 tls_as_opt="-m31 --fatal-warnings"
14544 s390x-*-*)
14545 conftest_s='
14546 .section ".tdata","awT",@progbits
14547 foo: .long 25
14548 .text
14549 .quad foo@TLSGD
14550 .quad foo@TLSLDM
14551 .quad foo@DTPOFF
14552 .quad foo@NTPOFF
14553 .quad foo@GOTNTPOFF
14554 lg %r1,foo@GOTNTPOFF(%r12)
14555 larl %r1,foo@INDNTPOFF
14556 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14557 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14558 tls_first_major=2
14559 tls_first_minor=14
14560 tls_as_opt="-m64 -Aesame --fatal-warnings"
14562 sh-*-* | sh[34]-*-*)
14563 conftest_s='
14564 .section ".tdata","awT",@progbits
14565 foo: .long 25
14566 .text
14567 .long foo@TLSGD
14568 .long foo@TLSLDM
14569 .long foo@DTPOFF
14570 .long foo@GOTTPOFF
14571 .long foo@TPOFF'
14572 tls_first_major=2
14573 tls_first_minor=13
14574 tls_as_opt=--fatal-warnings
14576 sparc*-*-*)
14577 case "$target" in
14578 sparc*-sun-solaris2.[56789]*)
14579 # TLS was introduced in the Solaris 9 4/04 release but
14580 # we do not enable it by default on Solaris 9 either.
14581 if test "x$enable_tls" = xyes ; then
14582 on_solaris=yes
14583 else
14584 enable_tls=no;
14587 sparc*-sun-solaris2.*)
14588 on_solaris=yes
14591 on_solaris=no
14593 esac
14594 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14595 conftest_s='
14596 .section ".tdata",#alloc,#write,#tls
14597 foo: .long 25
14598 .text
14599 sethi %tgd_hi22(foo), %o0
14600 add %o0, %tgd_lo10(foo), %o1
14601 add %l7, %o1, %o0, %tgd_add(foo)
14602 call __tls_get_addr, %tgd_call(foo)
14603 sethi %tldm_hi22(foo), %l1
14604 add %l1, %tldm_lo10(foo), %l2
14605 add %l7, %l2, %o0, %tldm_add(foo)
14606 call __tls_get_addr, %tldm_call(foo)
14607 sethi %tldo_hix22(foo), %l3
14608 xor %l3, %tldo_lox10(foo), %l4
14609 add %o0, %l4, %l5, %tldo_add(foo)
14610 sethi %tie_hi22(foo), %o3
14611 add %o3, %tie_lo10(foo), %o3
14612 ld [%l7 + %o3], %o2, %tie_ld(foo)
14613 add %g7, %o2, %o4, %tie_add(foo)
14614 sethi %tle_hix22(foo), %l1
14615 xor %l1, %tle_lox10(foo), %o5
14616 ld [%g7 + %o5], %o1'
14617 tls_first_major=0
14618 tls_first_minor=0
14619 else
14620 conftest_s='
14621 .section ".tdata","awT",@progbits
14622 foo: .long 25
14623 .text
14624 sethi %tgd_hi22(foo), %o0
14625 add %o0, %tgd_lo10(foo), %o1
14626 add %l7, %o1, %o0, %tgd_add(foo)
14627 call __tls_get_addr, %tgd_call(foo)
14628 sethi %tldm_hi22(foo), %l1
14629 add %l1, %tldm_lo10(foo), %l2
14630 add %l7, %l2, %o0, %tldm_add(foo)
14631 call __tls_get_addr, %tldm_call(foo)
14632 sethi %tldo_hix22(foo), %l3
14633 xor %l3, %tldo_lox10(foo), %l4
14634 add %o0, %l4, %l5, %tldo_add(foo)
14635 sethi %tie_hi22(foo), %o3
14636 add %o3, %tie_lo10(foo), %o3
14637 ld [%l7 + %o3], %o2, %tie_ld(foo)
14638 add %g7, %o2, %o4, %tie_add(foo)
14639 sethi %tle_hix22(foo), %l1
14640 xor %l1, %tle_lox10(foo), %o5
14641 ld [%g7 + %o5], %o1'
14642 tls_first_major=2
14643 tls_first_minor=14
14644 tls_as_opt="-32 --fatal-warnings"
14647 esac
14648 set_have_as_tls=no
14649 if test "x$enable_tls" = xno ; then
14650 : # TLS explicitly disabled.
14651 elif test "x$enable_tls" = xyes ; then
14652 set_have_as_tls=yes # TLS explicitly enabled.
14653 elif test -z "$tls_first_major"; then
14654 : # If we don't have a check, assume no support.
14655 else
14656 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14657 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14658 if test "${gcc_cv_as_tls+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661 gcc_cv_as_tls=no
14662 if test $in_tree_gas = yes; then
14663 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14664 then gcc_cv_as_tls=yes
14666 elif test x$gcc_cv_as != x; then
14667 echo "$conftest_s" > conftest.s
14668 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }
14674 then
14675 gcc_cv_as_tls=yes
14676 else
14677 echo "configure: failed program was" >&5
14678 cat conftest.s >&5
14680 rm -f conftest.o conftest.s
14683 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14684 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14685 if test $gcc_cv_as_tls = yes; then
14686 set_have_as_tls=yes
14689 if test $set_have_as_tls = yes ; then
14691 cat >>confdefs.h <<\_ACEOF
14692 #define HAVE_AS_TLS 1
14693 _ACEOF
14697 # Target-specific assembler checks.
14699 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14700 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14701 gcc_cv_ld_static_dynamic=no
14702 if test $in_tree_ld = yes ; then
14703 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14704 gcc_cv_ld_static_dynamic=yes
14706 elif test x$gcc_cv_ld != x; then
14707 # Check if linker supports -Bstatic/-Bdynamic option
14708 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14709 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14710 gcc_cv_ld_static_dynamic=yes
14713 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14715 cat >>confdefs.h <<\_ACEOF
14716 #define HAVE_LD_STATIC_DYNAMIC 1
14717 _ACEOF
14720 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14721 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14723 if test x"$demangler_in_ld" = xyes; then
14724 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14725 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14726 gcc_cv_ld_demangle=no
14727 if test $in_tree_ld = yes; then
14728 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 \
14729 gcc_cv_ld_demangle=yes
14731 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14732 # Check if the GNU linker supports --demangle option
14733 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14734 gcc_cv_ld_demangle=yes
14737 if test x"$gcc_cv_ld_demangle" = xyes; then
14739 cat >>confdefs.h <<\_ACEOF
14740 #define HAVE_LD_DEMANGLE 1
14741 _ACEOF
14744 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14745 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14748 case "$target" in
14749 # All TARGET_ABI_OSF targets.
14750 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14751 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14752 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14753 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 else
14756 gcc_cv_as_alpha_explicit_relocs=no
14757 if test $in_tree_gas = yes; then
14758 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14759 then gcc_cv_as_alpha_explicit_relocs=yes
14761 elif test x$gcc_cv_as != x; then
14762 echo ' .set nomacro
14763 .text
14764 extbl $3, $2, $3 !lituse_bytoff!1
14765 ldq $2, a($29) !literal!1
14766 ldq $4, b($29) !literal!2
14767 ldq_u $3, 0($2) !lituse_base!1
14768 ldq $27, f($29) !literal!5
14769 jsr $26, ($27), f !lituse_jsr!5
14770 ldah $29, 0($26) !gpdisp!3
14771 lda $0, c($29) !gprel
14772 ldah $1, d($29) !gprelhigh
14773 lda $1, d($1) !gprellow
14774 lda $29, 0($29) !gpdisp!3' > conftest.s
14775 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }
14781 then
14782 gcc_cv_as_alpha_explicit_relocs=yes
14783 else
14784 echo "configure: failed program was" >&5
14785 cat conftest.s >&5
14787 rm -f conftest.o conftest.s
14790 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14791 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14792 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14794 cat >>confdefs.h <<\_ACEOF
14795 #define HAVE_AS_EXPLICIT_RELOCS 1
14796 _ACEOF
14799 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14800 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14801 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804 gcc_cv_as_alpha_jsrdirect_relocs=no
14805 if test $in_tree_gas = yes; then
14806 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14807 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14809 elif test x$gcc_cv_as != x; then
14810 echo ' .set nomacro
14811 .text
14812 ldq $27, a($29) !literal!1
14813 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14814 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }
14820 then
14821 gcc_cv_as_alpha_jsrdirect_relocs=yes
14822 else
14823 echo "configure: failed program was" >&5
14824 cat conftest.s >&5
14826 rm -f conftest.o conftest.s
14829 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14830 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14831 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14833 cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_AS_JSRDIRECT_RELOCS 1
14835 _ACEOF
14840 cris-*-*)
14841 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14842 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14843 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 else
14846 gcc_cv_as_cris_no_mul_bug=no
14847 if test $in_tree_gas = yes; then
14848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14849 then gcc_cv_as_cris_no_mul_bug=yes
14851 elif test x$gcc_cv_as != x; then
14852 echo '.text' > conftest.s
14853 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }
14859 then
14860 gcc_cv_as_cris_no_mul_bug=yes
14861 else
14862 echo "configure: failed program was" >&5
14863 cat conftest.s >&5
14865 rm -f conftest.o conftest.s
14868 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14869 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14870 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14874 _ACEOF
14879 sparc*-*-*)
14880 echo "$as_me:$LINENO: checking assembler for .register" >&5
14881 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14882 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14884 else
14885 gcc_cv_as_sparc_register_op=no
14886 if test x$gcc_cv_as != x; then
14887 echo '.register %g2, #scratch' > conftest.s
14888 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }
14894 then
14895 gcc_cv_as_sparc_register_op=yes
14896 else
14897 echo "configure: failed program was" >&5
14898 cat conftest.s >&5
14900 rm -f conftest.o conftest.s
14903 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14904 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14905 if test $gcc_cv_as_sparc_register_op = yes; then
14907 cat >>confdefs.h <<\_ACEOF
14908 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14909 _ACEOF
14913 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14914 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14915 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918 gcc_cv_as_sparc_relax=no
14919 if test x$gcc_cv_as != x; then
14920 echo '.text' > conftest.s
14921 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }
14927 then
14928 gcc_cv_as_sparc_relax=yes
14929 else
14930 echo "configure: failed program was" >&5
14931 cat conftest.s >&5
14933 rm -f conftest.o conftest.s
14936 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14937 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14938 if test $gcc_cv_as_sparc_relax = yes; then
14940 cat >>confdefs.h <<\_ACEOF
14941 #define HAVE_AS_RELAX_OPTION 1
14942 _ACEOF
14946 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14947 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14948 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 else
14951 gcc_cv_as_sparc_ua_pcrel=no
14952 if test x$gcc_cv_as != x; then
14953 echo '.text
14954 foo:
14956 .data
14957 .align 4
14958 .byte 0
14959 .uaword %r_disp32(foo)' > conftest.s
14960 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; }
14966 then
14967 if test x$gcc_cv_ld != x \
14968 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14969 gcc_cv_as_sparc_ua_pcrel=yes
14971 rm -f conftest
14972 else
14973 echo "configure: failed program was" >&5
14974 cat conftest.s >&5
14976 rm -f conftest.o conftest.s
14979 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14980 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14981 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14983 cat >>confdefs.h <<\_ACEOF
14984 #define HAVE_AS_SPARC_UA_PCREL 1
14985 _ACEOF
14988 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14989 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14990 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993 gcc_cv_as_sparc_ua_pcrel_hidden=no
14994 if test x$gcc_cv_as != x; then
14995 echo '.data
14996 .align 4
14997 .byte 0x31
14998 .uaword %r_disp32(foo)
14999 .byte 0x32, 0x33, 0x34
15000 .global foo
15001 .hidden foo
15002 foo:
15003 .skip 4' > conftest.s
15004 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }
15010 then
15011 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15012 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15013 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15014 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15015 if $gcc_cv_objdump -R conftest 2> /dev/null \
15016 | grep 'DISP32' > /dev/null 2>&1; then
15018 else
15019 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15022 rm -f conftest
15023 else
15024 echo "configure: failed program was" >&5
15025 cat conftest.s >&5
15027 rm -f conftest.o conftest.s
15030 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15031 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15032 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15034 cat >>confdefs.h <<\_ACEOF
15035 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15036 _ACEOF
15040 fi # unaligned pcrel relocs
15042 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15043 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15044 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 else
15047 gcc_cv_as_sparc_offsetable_lo10=no
15048 if test x$gcc_cv_as != x; then
15049 echo '.text
15050 or %g1, %lo(ab) + 12, %g1
15051 or %g1, %lo(ab + 12), %g1' > conftest.s
15052 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }
15058 then
15059 if test x$gcc_cv_objdump != x \
15060 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15061 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15062 gcc_cv_as_sparc_offsetable_lo10=yes
15064 else
15065 echo "configure: failed program was" >&5
15066 cat conftest.s >&5
15068 rm -f conftest.o conftest.s
15071 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15072 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15073 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15075 cat >>confdefs.h <<\_ACEOF
15076 #define HAVE_AS_OFFSETABLE_LO10 1
15077 _ACEOF
15082 i[34567]86-*-* | x86_64-*-*)
15083 case $target_os in
15084 cygwin* | pe | mingw32*)
15085 # Used for DWARF 2 in PE
15086 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15087 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15088 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091 gcc_cv_as_ix86_pe_secrel32=no
15092 if test $in_tree_gas = yes; then
15093 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15094 then gcc_cv_as_ix86_pe_secrel32=yes
15096 elif test x$gcc_cv_as != x; then
15097 echo '.text
15098 foo: nop
15099 .data
15100 .secrel32 foo' > conftest.s
15101 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }
15107 then
15108 if test x$gcc_cv_ld != x \
15109 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15110 gcc_cv_as_ix86_pe_secrel32=yes
15112 rm -f conftest
15113 else
15114 echo "configure: failed program was" >&5
15115 cat conftest.s >&5
15117 rm -f conftest.o conftest.s
15120 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15121 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15122 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15124 cat >>confdefs.h <<\_ACEOF
15125 #define HAVE_GAS_PE_SECREL32_RELOC 1
15126 _ACEOF
15130 esac
15132 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15133 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15134 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137 gcc_cv_as_ix86_filds_fists=no
15138 if test $in_tree_gas = yes; then
15139 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15140 then gcc_cv_as_ix86_filds_fists=yes
15142 elif test x$gcc_cv_as != x; then
15143 echo 'filds mem; fists mem' > conftest.s
15144 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }
15150 then
15151 gcc_cv_as_ix86_filds_fists=yes
15152 else
15153 echo "configure: failed program was" >&5
15154 cat conftest.s >&5
15156 rm -f conftest.o conftest.s
15159 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15160 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15161 if test $gcc_cv_as_ix86_filds_fists = yes; then
15163 cat >>confdefs.h <<\_ACEOF
15164 #define HAVE_GAS_FILDS_FISTS 1
15165 _ACEOF
15169 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15170 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15171 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 else
15174 gcc_cv_as_ix86_cmov_sun_syntax=no
15175 if test x$gcc_cv_as != x; then
15176 echo 'cmovl.l %edx, %eax' > conftest.s
15177 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }
15183 then
15184 gcc_cv_as_ix86_cmov_sun_syntax=yes
15185 else
15186 echo "configure: failed program was" >&5
15187 cat conftest.s >&5
15189 rm -f conftest.o conftest.s
15192 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15193 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15194 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15198 _ACEOF
15202 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15203 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15204 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207 gcc_cv_as_ix86_ffreep=no
15208 if test x$gcc_cv_as != x; then
15209 echo 'ffreep %st(1)' > conftest.s
15210 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }
15216 then
15217 gcc_cv_as_ix86_ffreep=yes
15218 else
15219 echo "configure: failed program was" >&5
15220 cat conftest.s >&5
15222 rm -f conftest.o conftest.s
15225 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15226 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15227 if test $gcc_cv_as_ix86_ffreep = yes; then
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_AS_IX86_FFREEP 1
15231 _ACEOF
15235 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15236 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15237 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240 gcc_cv_as_ix86_diff_sect_delta=no
15241 if test x$gcc_cv_as != x; then
15242 echo '.section .rodata
15243 .L1:
15244 .long .L2-.L1
15245 .long .L3-.L1
15246 .text
15247 .L3: nop
15248 .L2: nop' > conftest.s
15249 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }
15255 then
15256 gcc_cv_as_ix86_diff_sect_delta=yes
15257 else
15258 echo "configure: failed program was" >&5
15259 cat conftest.s >&5
15261 rm -f conftest.o conftest.s
15264 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15265 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15266 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15268 cat >>confdefs.h <<\_ACEOF
15269 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15270 _ACEOF
15274 # This one is used unconditionally by i386.[ch]; it is to be defined
15275 # to 1 if the feature is present, 0 otherwise.
15276 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15277 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15278 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281 gcc_cv_as_ix86_gotoff_in_data=no
15282 if test $in_tree_gas = yes; then
15283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15284 then gcc_cv_as_ix86_gotoff_in_data=yes
15286 elif test x$gcc_cv_as != x; then
15287 echo ' .text
15288 .L0:
15290 .data
15291 .long .L0@GOTOFF' > conftest.s
15292 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }
15298 then
15299 gcc_cv_as_ix86_gotoff_in_data=yes
15300 else
15301 echo "configure: failed program was" >&5
15302 cat conftest.s >&5
15304 rm -f conftest.o conftest.s
15307 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15308 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15311 cat >>confdefs.h <<_ACEOF
15312 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15313 _ACEOF
15317 ia64*-*-*)
15318 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15319 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15320 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15321 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 else
15323 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15324 if test $in_tree_gas = yes; then
15325 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15326 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15328 elif test x$gcc_cv_as != x; then
15329 echo ' .text
15330 addl r15 = @ltoffx(x#), gp
15332 ld8.mov r16 = [r15], x#' > conftest.s
15333 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }
15339 then
15340 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15341 else
15342 echo "configure: failed program was" >&5
15343 cat conftest.s >&5
15345 rm -f conftest.o conftest.s
15348 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15349 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15350 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15352 cat >>confdefs.h <<\_ACEOF
15353 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15354 _ACEOF
15360 powerpc*-*-*)
15361 case $target in
15362 *-*-aix*) conftest_s=' .machine "pwr5"
15363 .csect .text[PR]
15364 mfcr 3,128';;
15365 *-*-darwin*)
15366 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15367 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15368 if test "${gcc_cv_as_machine_directive+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371 gcc_cv_as_machine_directive=no
15372 if test x$gcc_cv_as != x; then
15373 echo ' .machine ppc7400' > conftest.s
15374 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }
15380 then
15381 gcc_cv_as_machine_directive=yes
15382 else
15383 echo "configure: failed program was" >&5
15384 cat conftest.s >&5
15386 rm -f conftest.o conftest.s
15389 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15390 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15392 if test x$gcc_cv_as_machine_directive != xyes; then
15393 echo "*** This target requires an assembler supporting \".machine\"" >&2
15394 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15395 test x$build = x$target && exit 1
15397 conftest_s=' .text
15398 mfcr r3,128';;
15399 *) conftest_s=' .machine power4
15400 .text
15401 mfcr 3,128';;
15402 esac
15404 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15405 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15406 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409 gcc_cv_as_powerpc_mfcrf=no
15410 if test $in_tree_gas = yes; then
15411 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15412 then gcc_cv_as_powerpc_mfcrf=yes
15414 elif test x$gcc_cv_as != x; then
15415 echo "$conftest_s" > conftest.s
15416 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }
15422 then
15423 gcc_cv_as_powerpc_mfcrf=yes
15424 else
15425 echo "configure: failed program was" >&5
15426 cat conftest.s >&5
15428 rm -f conftest.o conftest.s
15431 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15432 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15433 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE_AS_MFCRF 1
15437 _ACEOF
15441 case $target in
15442 *-*-aix*) conftest_s=' .machine "pwr5"
15443 .csect .text[PR]
15444 popcntb 3,3';;
15445 *) conftest_s=' .machine power5
15446 .text
15447 popcntb 3,3';;
15448 esac
15450 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15451 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15452 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 else
15455 gcc_cv_as_powerpc_popcntb=no
15456 if test $in_tree_gas = yes; then
15457 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15458 then gcc_cv_as_powerpc_popcntb=yes
15460 elif test x$gcc_cv_as != x; then
15461 echo "$conftest_s" > conftest.s
15462 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }
15468 then
15469 gcc_cv_as_powerpc_popcntb=yes
15470 else
15471 echo "configure: failed program was" >&5
15472 cat conftest.s >&5
15474 rm -f conftest.o conftest.s
15477 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15478 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15479 if test $gcc_cv_as_powerpc_popcntb = yes; then
15481 cat >>confdefs.h <<\_ACEOF
15482 #define HAVE_AS_POPCNTB 1
15483 _ACEOF
15487 case $target in
15488 *-*-aix*) conftest_s=' .machine "pwr5x"
15489 .csect .text[PR]
15490 frin 1,1';;
15491 *) conftest_s=' .machine power5
15492 .text
15493 frin 1,1';;
15494 esac
15496 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15497 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15498 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501 gcc_cv_as_powerpc_fprnd=no
15502 if test $in_tree_gas = yes; then
15503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15504 then gcc_cv_as_powerpc_fprnd=yes
15506 elif test x$gcc_cv_as != x; then
15507 echo "$conftest_s" > conftest.s
15508 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }
15514 then
15515 gcc_cv_as_powerpc_fprnd=yes
15516 else
15517 echo "configure: failed program was" >&5
15518 cat conftest.s >&5
15520 rm -f conftest.o conftest.s
15523 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15524 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15525 if test $gcc_cv_as_powerpc_fprnd = yes; then
15527 cat >>confdefs.h <<\_ACEOF
15528 #define HAVE_AS_FPRND 1
15529 _ACEOF
15533 case $target in
15534 *-*-aix*) conftest_s=' .machine "pwr6"
15535 .csect .text[PR]
15536 mffgpr 1,3';;
15537 *) conftest_s=' .machine power6
15538 .text
15539 mffgpr 1,3';;
15540 esac
15542 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15543 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15544 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547 gcc_cv_as_powerpc_mfpgpr=no
15548 if test $in_tree_gas = yes; then
15549 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15550 then gcc_cv_as_powerpc_mfpgpr=yes
15552 elif test x$gcc_cv_as != x; then
15553 echo "$conftest_s" > conftest.s
15554 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }
15560 then
15561 gcc_cv_as_powerpc_mfpgpr=yes
15562 else
15563 echo "configure: failed program was" >&5
15564 cat conftest.s >&5
15566 rm -f conftest.o conftest.s
15569 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15570 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15571 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15573 cat >>confdefs.h <<\_ACEOF
15574 #define HAVE_AS_MFPGPR 1
15575 _ACEOF
15579 case $target in
15580 *-*-aix*) conftest_s=' .csect .text[PR]
15581 LCF..0:
15582 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15583 *-*-darwin*)
15584 conftest_s=' .text
15585 LCF0:
15586 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15587 *) conftest_s=' .text
15588 .LCF0:
15589 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15590 esac
15592 case $target in
15593 *-*-aix*) conftest_s=' .machine "pwr6"
15594 .csect .text[PR]
15595 cmpb 3,4,5';;
15596 *) conftest_s=' .machine power6
15597 .text
15598 cmpb 3,4,5';;
15599 esac
15601 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15602 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15603 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606 gcc_cv_as_powerpc_cmpb=no
15607 if test $in_tree_gas = yes; then
15608 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15609 then gcc_cv_as_powerpc_cmpb=yes
15611 elif test x$gcc_cv_as != x; then
15612 echo "$conftest_s" > conftest.s
15613 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }
15619 then
15620 gcc_cv_as_powerpc_cmpb=yes
15621 else
15622 echo "configure: failed program was" >&5
15623 cat conftest.s >&5
15625 rm -f conftest.o conftest.s
15628 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15629 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15630 if test $gcc_cv_as_powerpc_cmpb = yes; then
15632 cat >>confdefs.h <<\_ACEOF
15633 #define HAVE_AS_CMPB 1
15634 _ACEOF
15638 case $target in
15639 *-*-aix*) conftest_s=' .machine "pwr6"
15640 .csect .text[PR]
15641 dadd 1,3';;
15642 *) conftest_s=' .machine power6
15643 .text
15644 dadd 1,3';;
15645 esac
15647 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15648 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15649 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 else
15652 gcc_cv_as_powerpc_dfp=no
15653 if test $in_tree_gas = yes; then
15654 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15655 then gcc_cv_as_powerpc_dfp=yes
15657 elif test x$gcc_cv_as != x; then
15658 echo "$conftest_s" > conftest.s
15659 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }
15665 then
15666 gcc_cv_as_powerpc_dfp=yes
15667 else
15668 echo "configure: failed program was" >&5
15669 cat conftest.s >&5
15671 rm -f conftest.o conftest.s
15674 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15675 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15676 if test $gcc_cv_as_powerpc_dfp = yes; then
15678 cat >>confdefs.h <<\_ACEOF
15679 #define HAVE_AS_DFP 1
15680 _ACEOF
15684 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15685 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15686 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 else
15689 gcc_cv_as_powerpc_rel16=no
15690 if test $in_tree_gas = yes; then
15691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15692 then gcc_cv_as_powerpc_rel16=yes
15694 elif test x$gcc_cv_as != x; then
15695 echo "$conftest_s" > conftest.s
15696 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }
15702 then
15703 gcc_cv_as_powerpc_rel16=yes
15704 else
15705 echo "configure: failed program was" >&5
15706 cat conftest.s >&5
15708 rm -f conftest.o conftest.s
15711 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15712 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15713 if test $gcc_cv_as_powerpc_rel16 = yes; then
15715 cat >>confdefs.h <<\_ACEOF
15716 #define HAVE_AS_REL16 1
15717 _ACEOF
15722 mips*-*-*)
15723 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15724 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15725 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 else
15728 gcc_cv_as_mips_explicit_relocs=no
15729 if test $in_tree_gas = yes; then
15730 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15731 then gcc_cv_as_mips_explicit_relocs=yes
15733 elif test x$gcc_cv_as != x; then
15734 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15735 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; }
15741 then
15742 gcc_cv_as_mips_explicit_relocs=yes
15743 else
15744 echo "configure: failed program was" >&5
15745 cat conftest.s >&5
15747 rm -f conftest.o conftest.s
15750 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15751 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15752 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15753 if test x$target_cpu_default = x
15754 then target_cpu_default=MASK_EXPLICIT_RELOCS
15755 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15758 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15759 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15760 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763 gcc_cv_as_mips_no_shared=no
15764 if test $in_tree_gas = yes; then
15765 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15766 then gcc_cv_as_mips_no_shared=yes
15768 elif test x$gcc_cv_as != x; then
15769 echo 'nop' > conftest.s
15770 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }
15776 then
15777 gcc_cv_as_mips_no_shared=yes
15778 else
15779 echo "configure: failed program was" >&5
15780 cat conftest.s >&5
15782 rm -f conftest.o conftest.s
15785 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15786 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15787 if test $gcc_cv_as_mips_no_shared = yes; then
15789 cat >>confdefs.h <<\_ACEOF
15790 #define HAVE_AS_NO_SHARED 1
15791 _ACEOF
15795 esac
15797 # Mips and HP-UX need the GNU assembler.
15798 # Linux on IA64 might be able to use the Intel assembler.
15800 case "$target" in
15801 mips*-*-* | *-*-hpux* )
15802 if test x$gas_flag = xyes \
15803 || test x"$host" != x"$build" \
15804 || test ! -x "$gcc_cv_as" \
15805 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15807 else
15808 echo "*** This configuration requires the GNU assembler" >&2
15809 exit 1
15812 esac
15814 # ??? Not all targets support dwarf2 debug_line, even within a version
15815 # of gas. Moreover, we need to emit a valid instruction to trigger any
15816 # info to the output file. So, as supported targets are added to gas 2.11,
15817 # add some instruction here to (also) show we expect this might work.
15818 # ??? Once 2.11 is released, probably need to add first known working
15819 # version to the per-target configury.
15820 case "$target" in
15821 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15822 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15823 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
15824 insn="nop"
15826 ia64*-*-* | s390*-*-*)
15827 insn="nop 0"
15829 mmix-*-*)
15830 insn="swym 0"
15832 esac
15833 if test x"$insn" != x; then
15834 conftest_s="\
15835 .file 1 \"conftest.s\"
15836 .loc 1 3 0
15837 $insn"
15838 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15839 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15840 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 else
15843 gcc_cv_as_dwarf2_debug_line=no
15844 if test $in_tree_gas = yes; then
15845 if test $in_tree_gas_is_elf = yes \
15846 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15847 then gcc_cv_as_dwarf2_debug_line=yes
15849 elif test x$gcc_cv_as != x; then
15850 echo "$conftest_s" > conftest.s
15851 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }
15857 then
15858 if test x$gcc_cv_objdump != x \
15859 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15860 | grep debug_line > /dev/null 2>&1; then
15861 gcc_cv_as_dwarf2_debug_line=yes
15863 else
15864 echo "configure: failed program was" >&5
15865 cat conftest.s >&5
15867 rm -f conftest.o conftest.s
15870 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15871 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15874 # The .debug_line file table must be in the exact order that
15875 # we specified the files, since these indices are also used
15876 # by DW_AT_decl_file. Approximate this test by testing if
15877 # the assembler bitches if the same index is assigned twice.
15878 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15879 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15880 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883 gcc_cv_as_dwarf2_file_buggy=no
15884 if test x$gcc_cv_as != x; then
15885 echo ' .file 1 "foo.s"
15886 .file 1 "bar.s"' > conftest.s
15887 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }
15893 then
15894 gcc_cv_as_dwarf2_file_buggy=yes
15895 else
15896 echo "configure: failed program was" >&5
15897 cat conftest.s >&5
15899 rm -f conftest.o conftest.s
15902 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15903 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15906 if test $gcc_cv_as_dwarf2_debug_line = yes \
15907 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15909 cat >>confdefs.h <<\_ACEOF
15910 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15911 _ACEOF
15915 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15916 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15917 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920 gcc_cv_as_gdwarf2_flag=no
15921 if test $in_tree_gas = yes; then
15922 if test $in_tree_gas_is_elf = yes \
15923 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15924 then gcc_cv_as_gdwarf2_flag=yes
15926 elif test x$gcc_cv_as != x; then
15927 echo "$insn" > conftest.s
15928 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }
15934 then
15935 gcc_cv_as_gdwarf2_flag=yes
15936 else
15937 echo "configure: failed program was" >&5
15938 cat conftest.s >&5
15940 rm -f conftest.o conftest.s
15943 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15944 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15945 if test $gcc_cv_as_gdwarf2_flag = yes; then
15947 cat >>confdefs.h <<\_ACEOF
15948 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15949 _ACEOF
15953 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15954 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15955 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15957 else
15958 gcc_cv_as_gstabs_flag=no
15959 if test $in_tree_gas = yes; then
15960 if test $in_tree_gas_is_elf = yes \
15961 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15962 then gcc_cv_as_gstabs_flag=yes
15964 elif test x$gcc_cv_as != x; then
15965 echo "$insn" > conftest.s
15966 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; }
15972 then
15973 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15974 # and warns about it, but still exits successfully. So check for
15975 # this.
15976 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }
15982 then :
15983 else gcc_cv_as_gstabs_flag=yes
15985 else
15986 echo "configure: failed program was" >&5
15987 cat conftest.s >&5
15989 rm -f conftest.o conftest.s
15992 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15993 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15994 if test $gcc_cv_as_gstabs_flag = yes; then
15996 cat >>confdefs.h <<\_ACEOF
15997 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15998 _ACEOF
16003 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16004 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16005 gcc_cv_ld_ro_rw_mix=unknown
16006 if test $in_tree_ld = yes ; then
16007 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 \
16008 && test $in_tree_ld_is_elf = yes; then
16009 gcc_cv_ld_ro_rw_mix=read-write
16011 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16012 echo '.section myfoosect, "a"' > conftest1.s
16013 echo '.section myfoosect, "aw"' > conftest2.s
16014 echo '.byte 1' >> conftest2.s
16015 echo '.section myfoosect, "a"' > conftest3.s
16016 echo '.byte 0' >> conftest3.s
16017 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16018 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16019 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16020 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16021 conftest2.o conftest3.o > /dev/null 2>&1; then
16022 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16023 | sed -e '/myfoosect/!d' -e N`
16024 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16025 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16026 gcc_cv_ld_ro_rw_mix=read-only
16027 else
16028 gcc_cv_ld_ro_rw_mix=read-write
16032 rm -f conftest.* conftest[123].*
16034 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16036 cat >>confdefs.h <<\_ACEOF
16037 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16038 _ACEOF
16041 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16042 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16044 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16045 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16046 gcc_cv_ld_eh_frame_hdr=no
16047 if test $in_tree_ld = yes ; then
16048 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 \
16049 && test $in_tree_ld_is_elf = yes; then
16050 gcc_cv_ld_eh_frame_hdr=yes
16052 elif test x$gcc_cv_ld != x; then
16053 # Check if linker supports --eh-frame-hdr option
16054 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16055 gcc_cv_ld_eh_frame_hdr=yes
16059 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16061 cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_LD_EH_FRAME_HDR 1
16063 _ACEOF
16066 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16067 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16069 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16070 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16071 gcc_cv_ld_pie=no
16072 if test $in_tree_ld = yes ; then
16073 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 \
16074 && test $in_tree_ld_is_elf = yes; then
16075 gcc_cv_ld_pie=yes
16077 elif test x$gcc_cv_ld != x; then
16078 # Check if linker supports -pie option
16079 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16080 gcc_cv_ld_pie=yes
16083 if test x"$gcc_cv_ld_pie" = xyes; then
16085 cat >>confdefs.h <<\_ACEOF
16086 #define HAVE_LD_PIE 1
16087 _ACEOF
16090 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16091 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16093 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16094 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16095 gcc_cv_ld_eh_gc_sections=no
16096 if test $in_tree_ld = yes ; then
16097 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16098 && test $in_tree_ld_is_elf = yes; then
16099 gcc_cv_ld_eh_gc_sections=yes
16101 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16102 cat > conftest.s <<EOF
16103 .section .text
16104 .globl _start
16105 .type _start, @function
16106 _start:
16107 .long foo
16108 .size _start, .-_start
16109 .section .text.foo,"ax",@progbits
16110 .type foo, @function
16111 foo:
16112 .long 0
16113 .size foo, .-foo
16114 .section .gcc_except_table.foo,"a",@progbits
16115 .L0:
16116 .long 0
16117 .section .eh_frame,"a",@progbits
16118 .long .L0
16120 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16121 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16122 | grep "gc-sections option ignored" > /dev/null; then
16123 gcc_cv_ld_eh_gc_sections=no
16124 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16125 gcc_cv_ld_eh_gc_sections=yes
16126 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16127 if test x$gcc_cv_as_comdat_group != xyes; then
16128 gcc_cv_ld_eh_gc_sections=no
16129 cat > conftest.s <<EOF
16130 .section .text
16131 .globl _start
16132 .type _start, @function
16133 _start:
16134 .long foo
16135 .size _start, .-_start
16136 .section .gnu.linkonce.t.foo,"ax",@progbits
16137 .type foo, @function
16138 foo:
16139 .long 0
16140 .size foo, .-foo
16141 .section .gcc_except_table.foo,"a",@progbits
16142 .L0:
16143 .long 0
16144 .section .eh_frame,"a",@progbits
16145 .long .L0
16147 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16148 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16149 | grep "gc-sections option ignored" > /dev/null; then
16150 gcc_cv_ld_eh_gc_sections=no
16151 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16152 gcc_cv_ld_eh_gc_sections=yes
16158 rm -f conftest.s conftest.o conftest
16160 case "$target" in
16161 hppa*-*-linux*)
16162 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16163 gcc_cv_ld_eh_gc_sections=no
16165 esac
16166 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16168 cat >>confdefs.h <<\_ACEOF
16169 #define HAVE_LD_EH_GC_SECTIONS 1
16170 _ACEOF
16173 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16174 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16176 # --------
16177 # UNSORTED
16178 # --------
16180 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16181 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16182 if test "${gcc_cv_ld_as_needed+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185 gcc_cv_ld_as_needed=no
16186 if test $in_tree_ld = yes ; then
16187 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 \
16188 && test $in_tree_ld_is_elf = yes; then
16189 gcc_cv_ld_as_needed=yes
16191 elif test x$gcc_cv_ld != x; then
16192 # Check if linker supports --as-needed and --no-as-needed options
16193 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16194 gcc_cv_ld_as_needed=yes
16199 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16200 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16201 if test x"$gcc_cv_ld_as_needed" = xyes; then
16203 cat >>confdefs.h <<\_ACEOF
16204 #define HAVE_LD_AS_NEEDED 1
16205 _ACEOF
16209 case "$target:$tm_file" in
16210 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16211 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16212 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16213 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 else
16216 gcc_cv_ld_no_dot_syms=no
16217 if test $in_tree_ld = yes ; then
16218 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
16219 gcc_cv_ld_no_dot_syms=yes
16221 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16222 cat > conftest1.s <<EOF
16223 .text
16224 bl .foo
16226 cat > conftest2.s <<EOF
16227 .section ".opd","aw"
16228 .align 3
16229 .globl foo
16230 .type foo,@function
16231 foo:
16232 .quad .LEfoo,.TOC.@tocbase,0
16233 .text
16234 .LEfoo:
16236 .size foo,.-.LEfoo
16238 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16239 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16240 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16241 gcc_cv_ld_no_dot_syms=yes
16243 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16247 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16248 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16249 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16251 cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_LD_NO_DOT_SYMS 1
16253 _ACEOF
16257 esac
16259 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16260 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16261 if test "${gcc_cv_ld_sysroot+set}" = set; then
16262 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 else
16264 gcc_cv_ld_sysroot=no
16265 if test $in_tree_ld = yes ; then
16266 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
16267 gcc_cv_ld_sysroot=yes
16269 elif test x$gcc_cv_ld != x; then
16270 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16271 gcc_cv_ld_sysroot=yes
16275 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16276 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16277 if test x"$gcc_cv_ld_sysroot" = xyes; then
16279 cat >>confdefs.h <<\_ACEOF
16280 #define HAVE_LD_SYSROOT 1
16281 _ACEOF
16285 if test x$with_sysroot = x && test x$host = x$target \
16286 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16287 && test "$prefix" != "NONE"; then
16289 cat >>confdefs.h <<_ACEOF
16290 #define PREFIX_INCLUDE_DIR "$prefix/include"
16291 _ACEOF
16295 # Test for stack protector support in target C library.
16296 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16297 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16298 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301 gcc_cv_libc_provides_ssp=no
16302 case "$target" in
16303 *-*-linux*)
16304 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16305 if test "x$with_sysroot" = x; then
16306 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16307 elif test "x$with_sysroot" = xyes; then
16308 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16309 else
16310 glibc_header_dir="${with_sysroot}/usr/include"
16312 else
16313 glibc_header_dir=/usr/include
16315 # glibc 2.4 and later provides __stack_chk_fail and
16316 # either __stack_chk_guard, or TLS access to stack guard canary.
16317 if test -f $glibc_header_dir/features.h \
16318 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16319 $glibc_header_dir/features.h > /dev/null; then
16320 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16321 $glibc_header_dir/features.h > /dev/null; then
16322 gcc_cv_libc_provides_ssp=yes
16323 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16324 $glibc_header_dir/features.h > /dev/null \
16325 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16326 $glibc_header_dir/features.h > /dev/null; then
16327 gcc_cv_libc_provides_ssp=yes
16331 *-*-darwin*)
16332 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16333 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16334 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16335 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 else
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h. */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16345 #define __stack_chk_fail innocuous___stack_chk_fail
16347 /* System header to define __stub macros and hopefully few prototypes,
16348 which can conflict with char __stack_chk_fail (); below.
16349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16350 <limits.h> exists even on freestanding compilers. */
16352 #ifdef __STDC__
16353 # include <limits.h>
16354 #else
16355 # include <assert.h>
16356 #endif
16358 #undef __stack_chk_fail
16360 /* Override any gcc2 internal prototype to avoid an error. */
16361 #ifdef __cplusplus
16362 extern "C"
16364 #endif
16365 /* We use char because int might match the return type of a gcc2
16366 builtin and then its argument prototype would still apply. */
16367 char __stack_chk_fail ();
16368 /* The GNU C library defines this for functions which it implements
16369 to always fail with ENOSYS. Some functions are actually named
16370 something starting with __ and the normal name is an alias. */
16371 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16372 choke me
16373 #else
16374 char (*f) () = __stack_chk_fail;
16375 #endif
16376 #ifdef __cplusplus
16378 #endif
16381 main ()
16383 return f != __stack_chk_fail;
16385 return 0;
16387 _ACEOF
16388 rm -f conftest.$ac_objext conftest$ac_exeext
16389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16390 (eval $ac_link) 2>conftest.er1
16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -z "$ac_c_werror_flag"
16398 || test ! -s conftest.err'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest$ac_exeext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_cv_func___stack_chk_fail=yes
16411 else
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 ac_cv_func___stack_chk_fail=no
16417 rm -f conftest.err conftest.$ac_objext \
16418 conftest$ac_exeext conftest.$ac_ext
16420 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16421 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16422 if test $ac_cv_func___stack_chk_fail = yes; then
16423 gcc_cv_libc_provides_ssp=yes
16424 else
16425 echo "no __stack_chk_fail on this target"
16429 *) gcc_cv_libc_provides_ssp=no ;;
16430 esac
16432 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16433 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16435 if test x$gcc_cv_libc_provides_ssp = xyes; then
16437 cat >>confdefs.h <<\_ACEOF
16438 #define TARGET_LIBC_PROVIDES_SSP 1
16439 _ACEOF
16443 # Check if TFmode long double should be used by default or not.
16444 # Some glibc targets used DFmode long double, but with glibc 2.4
16445 # and later they can use TFmode.
16446 case "$target" in
16447 powerpc*-*-*gnu* | \
16448 sparc*-*-linux* | \
16449 s390*-*-linux* | \
16450 alpha*-*-linux*)
16452 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16453 if test "${with_long_double_128+set}" = set; then
16454 withval="$with_long_double_128"
16455 gcc_cv_target_ldbl128="$with_long_double_128"
16456 else
16457 gcc_cv_target_ldbl128=no
16458 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16459 if test "x$with_sysroot" = x; then
16460 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16461 elif test "x$with_sysroot" = xyes; then
16462 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16463 else
16464 glibc_header_dir="${with_sysroot}/usr/include"
16466 else
16467 glibc_header_dir=/usr/include
16469 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16470 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16471 && gcc_cv_target_ldbl128=yes
16475 esac
16476 if test x$gcc_cv_target_ldbl128 = xyes; then
16478 cat >>confdefs.h <<\_ACEOF
16479 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16480 _ACEOF
16484 # Find out what GC implementation we want, or may, use.
16486 # Check whether --with-gc or --without-gc was given.
16487 if test "${with_gc+set}" = set; then
16488 withval="$with_gc"
16489 case "$withval" in
16490 page)
16491 GGC=ggc-$withval
16493 zone)
16494 GGC=ggc-$withval
16496 cat >>confdefs.h <<\_ACEOF
16497 #define GGC_ZONE 1
16498 _ACEOF
16502 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16503 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16504 { (exit 1); exit 1; }; }
16506 esac
16507 else
16508 GGC=ggc-page
16511 echo "Using $GGC for garbage collection."
16513 # Use the system's zlib library.
16514 zlibdir=-L../zlib
16515 zlibinc="-I\$(srcdir)/../zlib"
16517 # Check whether --with-system-zlib or --without-system-zlib was given.
16518 if test "${with_system_zlib+set}" = set; then
16519 withval="$with_system_zlib"
16520 zlibdir=
16521 zlibinc=
16528 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16529 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16530 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16531 if test "${enable_maintainer_mode+set}" = set; then
16532 enableval="$enable_maintainer_mode"
16533 maintainer_mode=$enableval
16534 else
16535 maintainer_mode=no
16538 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16539 echo "${ECHO_T}$maintainer_mode" >&6
16541 if test "$maintainer_mode" = "yes"; then
16542 MAINT=''
16543 else
16544 MAINT='#'
16547 # --------------
16548 # Language hooks
16549 # --------------
16551 # Make empty files to contain the specs and options for each language.
16552 # Then add #include lines to for a compiler that has specs and/or options.
16554 subdirs=
16555 lang_opt_files=
16556 lang_specs_files=
16557 lang_tree_files=
16558 # These (without "all_") are set in each config-lang.in.
16559 # `language' must be a single word so is spelled singularly.
16560 all_languages=
16561 all_compilers=
16562 all_outputs='Makefile gccbug libada-mk'
16563 # List of language makefile fragments.
16564 all_lang_makefrags=
16565 # List of language subdirectory makefiles. Deprecated.
16566 all_lang_makefiles=
16567 # Files for gengtype
16568 all_gtfiles="$target_gtfiles"
16569 # Files for gengtype with language
16570 all_gtfiles_files_langs=
16571 all_gtfiles_files_files=
16573 # These are the languages that are set in --enable-languages,
16574 # and are available in the GCC tree.
16575 all_selected_languages=
16577 # Add the language fragments.
16578 # Languages are added via two mechanisms. Some information must be
16579 # recorded in makefile variables, these are defined in config-lang.in.
16580 # We accumulate them and plug them into the main Makefile.
16581 # The other mechanism is a set of hooks for each of the main targets
16582 # like `clean', `install', etc.
16584 language_hooks="Make-hooks"
16586 for lang in ${srcdir}/*/config-lang.in
16588 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16590 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16591 if test "x$lang_alias" = x
16592 then
16593 echo "$lang doesn't set \$language." 1>&2
16594 exit 1
16596 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16597 subdirs="$subdirs $subdir"
16598 case ",$enable_languages," in
16599 *,$lang_alias,*)
16600 all_selected_languages="$all_selected_languages $lang_alias"
16601 if test -f $srcdir/$subdir/lang-specs.h; then
16602 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16605 esac
16607 language=
16608 boot_language=
16609 compilers=
16610 outputs=
16611 gtfiles=
16612 subdir_requires=
16613 . ${srcdir}/$subdir/config-lang.in
16614 if test "x$language" = x
16615 then
16616 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16617 exit 1
16620 ok=:
16621 case ",$enable_languages," in
16622 *,$lang_alias,*) ;;
16624 for i in $subdir_requires; do
16625 test -f "${srcdir}/$i/config-lang.in" && continue
16626 ok=false
16627 break
16628 done
16630 esac
16631 $ok || continue
16633 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16634 if test -f $srcdir/$subdir/lang.opt; then
16635 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16637 if test -f $srcdir/$subdir/$subdir-tree.def; then
16638 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16640 if test -f ${srcdir}/$subdir/Makefile.in
16641 then all_lang_makefiles="$subdir/Makefile"
16643 all_languages="$all_languages $language"
16644 all_compilers="$all_compilers $compilers"
16645 all_outputs="$all_outputs $outputs"
16646 all_gtfiles="$all_gtfiles $gtfiles"
16647 for f in $gtfiles
16649 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16650 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16651 done
16652 done
16654 # Pick up gtfiles for c
16655 gtfiles=
16656 subdir="c"
16657 . ${srcdir}/c-config-lang.in
16658 all_gtfiles="$all_gtfiles $gtfiles"
16659 for f in $gtfiles
16661 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16662 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16663 done
16665 check_languages=
16666 for language in $all_selected_languages
16668 check_languages="$check_languages check-$language"
16669 done
16671 # We link each language in with a set of hooks, reached indirectly via
16672 # lang.${target}. Only do so for selected languages.
16674 rm -f Make-hooks
16675 touch Make-hooks
16676 target_list="all.cross start.encap rest.encap tags \
16677 install-common install-man install-info dvi pdf html \
16678 uninstall info man srcextra srcman srcinfo \
16679 mostlyclean clean distclean maintainer-clean"
16681 for t in $target_list
16684 for lang in $all_selected_languages
16686 x="$x $lang.$t"
16687 done
16688 echo "lang.$t: $x" >> Make-hooks
16689 done
16691 # --------
16692 # UNSORTED
16693 # --------
16695 # Create .gdbinit.
16697 echo "dir ." > .gdbinit
16698 echo "dir ${srcdir}" >> .gdbinit
16699 if test x$gdb_needs_out_file_path = xyes
16700 then
16701 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16703 if test "x$subdirs" != x; then
16704 for s in $subdirs
16706 echo "dir ${srcdir}/$s" >> .gdbinit
16707 done
16709 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16711 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16712 # absolute path for gcc_tooldir based on inserting the number of up-directory
16713 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16714 # $(libsubdir)/@(unlibsubdir) based path.
16715 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16716 # make and thus we'd get different behavior depending on where we built the
16717 # sources.
16718 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16719 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16720 else
16721 # An explanation of the sed strings:
16722 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16723 # -e 's|/$||' match a trailing forward slash and eliminates it
16724 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16725 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16727 # (*) Note this pattern overwrites the first character of the string
16728 # with a forward slash if one is not already present. This is not a
16729 # problem because the exact names of the sub-directories concerned is
16730 # unimportant, just the number of them matters.
16732 # The practical upshot of these patterns is like this:
16734 # prefix exec_prefix result
16735 # ------ ----------- ------
16736 # /foo /foo/bar ../
16737 # /foo/ /foo/bar ../
16738 # /foo /foo/bar/ ../
16739 # /foo/ /foo/bar/ ../
16740 # /foo /foo/bar/ugg ../../
16742 dollar='$$'
16743 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16748 # Find a directory in which to install a shared libgcc.
16750 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16751 if test "${enable_version_specific_runtime_libs+set}" = set; then
16752 enableval="$enable_version_specific_runtime_libs"
16757 # Check whether --with-slibdir or --without-slibdir was given.
16758 if test "${with_slibdir+set}" = set; then
16759 withval="$with_slibdir"
16760 slibdir="$with_slibdir"
16761 else
16762 if test "${enable_version_specific_runtime_libs+set}" = set; then
16763 slibdir='$(libsubdir)'
16764 elif test "$host" != "$target"; then
16765 slibdir='$(build_tooldir)/lib'
16766 else
16767 slibdir='$(libdir)'
16772 objdir=`${PWDCMD-pwd}`
16776 # Check whether --with-datarootdir or --without-datarootdir was given.
16777 if test "${with_datarootdir+set}" = set; then
16778 withval="$with_datarootdir"
16779 datarootdir="\${prefix}/$with_datarootdir"
16780 else
16781 datarootdir='$(prefix)/share'
16786 # Check whether --with-docdir or --without-docdir was given.
16787 if test "${with_docdir+set}" = set; then
16788 withval="$with_docdir"
16789 docdir="\${prefix}/$with_docdir"
16790 else
16791 docdir='$(datarootdir)'
16796 # Check whether --with-htmldir or --without-htmldir was given.
16797 if test "${with_htmldir+set}" = set; then
16798 withval="$with_htmldir"
16799 htmldir="\${prefix}/$with_htmldir"
16800 else
16801 htmldir='$(docdir)'
16805 # Substitute configuration variables
16863 # Echo link setup.
16864 if test x${build} = x${host} ; then
16865 if test x${host} = x${target} ; then
16866 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16867 else
16868 echo "Links are now set up to build a cross-compiler" 1>&2
16869 echo " from ${host} to ${target}." 1>&2
16871 else
16872 if test x${host} = x${target} ; then
16873 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16874 echo " for ${target}." 1>&2
16875 else
16876 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16877 echo " from ${host} to ${target}." 1>&2
16884 # Configure the subdirectories
16885 # AC_CONFIG_SUBDIRS($subdirs)
16887 # Create the Makefile
16888 # and configure language subdirectories
16889 ac_config_files="$ac_config_files $all_outputs"
16892 ac_config_commands="$ac_config_commands default"
16894 cat >confcache <<\_ACEOF
16895 # This file is a shell script that caches the results of configure
16896 # tests run on this system so they can be shared between configure
16897 # scripts and configure runs, see configure's option --config-cache.
16898 # It is not useful on other systems. If it contains results you don't
16899 # want to keep, you may remove or edit it.
16901 # config.status only pays attention to the cache file if you give it
16902 # the --recheck option to rerun configure.
16904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16906 # following values.
16908 _ACEOF
16910 # The following way of writing the cache mishandles newlines in values,
16911 # but we know of no workaround that is simple, portable, and efficient.
16912 # So, don't put newlines in cache variables' values.
16913 # Ultrix sh set writes to stderr and can't be redirected directly,
16914 # and sets the high bit in the cache file unless we assign to the vars.
16916 (set) 2>&1 |
16917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16918 *ac_space=\ *)
16919 # `set' does not quote correctly, so add quotes (double-quote
16920 # substitution turns \\\\ into \\, and sed turns \\ into \).
16921 sed -n \
16922 "s/'/'\\\\''/g;
16923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16926 # `set' quotes correctly as required by POSIX, so do not add quotes.
16927 sed -n \
16928 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16930 esac;
16932 sed '
16933 t clear
16934 : clear
16935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16936 t end
16937 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16938 : end' >>confcache
16939 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16940 if test -w $cache_file; then
16941 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16942 cat confcache >$cache_file
16943 else
16944 echo "not updating unwritable cache $cache_file"
16947 rm -f confcache
16949 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16950 # Let make expand exec_prefix.
16951 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16953 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16954 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16955 # trailing colons and then remove the whole line if VPATH becomes empty
16956 # (actually we leave an empty line to preserve line numbers).
16957 if test "x$srcdir" = x.; then
16958 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16959 s/:*\$(srcdir):*/:/;
16960 s/:*\${srcdir}:*/:/;
16961 s/:*@srcdir@:*/:/;
16962 s/^\([^=]*=[ ]*\):*/\1/;
16963 s/:*$//;
16964 s/^[^=]*=[ ]*$//;
16968 DEFS=-DHAVE_CONFIG_H
16970 ac_libobjs=
16971 ac_ltlibobjs=
16972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16973 # 1. Remove the extension, and $U if already installed.
16974 ac_i=`echo "$ac_i" |
16975 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16976 # 2. Add them.
16977 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16978 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16979 done
16980 LIBOBJS=$ac_libobjs
16982 LTLIBOBJS=$ac_ltlibobjs
16986 : ${CONFIG_STATUS=./config.status}
16987 ac_clean_files_save=$ac_clean_files
16988 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16989 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16990 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16991 cat >$CONFIG_STATUS <<_ACEOF
16992 #! $SHELL
16993 # Generated by $as_me.
16994 # Run this file to recreate the current configuration.
16995 # Compiler output produced by configure, useful for debugging
16996 # configure, is in config.log if it exists.
16998 debug=false
16999 ac_cs_recheck=false
17000 ac_cs_silent=false
17001 SHELL=\${CONFIG_SHELL-$SHELL}
17002 _ACEOF
17004 cat >>$CONFIG_STATUS <<\_ACEOF
17005 ## --------------------- ##
17006 ## M4sh Initialization. ##
17007 ## --------------------- ##
17009 # Be Bourne compatible
17010 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17011 emulate sh
17012 NULLCMD=:
17013 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17014 # is contrary to our usage. Disable this feature.
17015 alias -g '${1+"$@"}'='"$@"'
17016 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17017 set -o posix
17019 DUALCASE=1; export DUALCASE # for MKS sh
17021 # Support unset when possible.
17022 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17023 as_unset=unset
17024 else
17025 as_unset=false
17029 # Work around bugs in pre-3.0 UWIN ksh.
17030 $as_unset ENV MAIL MAILPATH
17031 PS1='$ '
17032 PS2='> '
17033 PS4='+ '
17035 # NLS nuisances.
17036 for as_var in \
17037 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17038 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17039 LC_TELEPHONE LC_TIME
17041 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17042 eval $as_var=C; export $as_var
17043 else
17044 $as_unset $as_var
17046 done
17048 # Required to use basename.
17049 if expr a : '\(a\)' >/dev/null 2>&1; then
17050 as_expr=expr
17051 else
17052 as_expr=false
17055 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17056 as_basename=basename
17057 else
17058 as_basename=false
17062 # Name of the executable.
17063 as_me=`$as_basename "$0" ||
17064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17065 X"$0" : 'X\(//\)$' \| \
17066 X"$0" : 'X\(/\)$' \| \
17067 . : '\(.\)' 2>/dev/null ||
17068 echo X/"$0" |
17069 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17070 /^X\/\(\/\/\)$/{ s//\1/; q; }
17071 /^X\/\(\/\).*/{ s//\1/; q; }
17072 s/.*/./; q'`
17075 # PATH needs CR, and LINENO needs CR and PATH.
17076 # Avoid depending upon Character Ranges.
17077 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17078 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17079 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17080 as_cr_digits='0123456789'
17081 as_cr_alnum=$as_cr_Letters$as_cr_digits
17083 # The user is always right.
17084 if test "${PATH_SEPARATOR+set}" != set; then
17085 echo "#! /bin/sh" >conf$$.sh
17086 echo "exit 0" >>conf$$.sh
17087 chmod +x conf$$.sh
17088 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17089 PATH_SEPARATOR=';'
17090 else
17091 PATH_SEPARATOR=:
17093 rm -f conf$$.sh
17097 as_lineno_1=$LINENO
17098 as_lineno_2=$LINENO
17099 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17100 test "x$as_lineno_1" != "x$as_lineno_2" &&
17101 test "x$as_lineno_3" = "x$as_lineno_2" || {
17102 # Find who we are. Look in the path if we contain no path at all
17103 # relative or not.
17104 case $0 in
17105 *[\\/]* ) as_myself=$0 ;;
17106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17107 for as_dir in $PATH
17109 IFS=$as_save_IFS
17110 test -z "$as_dir" && as_dir=.
17111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17112 done
17115 esac
17116 # We did not find ourselves, most probably we were run as `sh COMMAND'
17117 # in which case we are not to be found in the path.
17118 if test "x$as_myself" = x; then
17119 as_myself=$0
17121 if test ! -f "$as_myself"; then
17122 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17123 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17124 { (exit 1); exit 1; }; }
17126 case $CONFIG_SHELL in
17128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17131 IFS=$as_save_IFS
17132 test -z "$as_dir" && as_dir=.
17133 for as_base in sh bash ksh sh5; do
17134 case $as_dir in
17136 if ("$as_dir/$as_base" -c '
17137 as_lineno_1=$LINENO
17138 as_lineno_2=$LINENO
17139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17140 test "x$as_lineno_1" != "x$as_lineno_2" &&
17141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17142 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17143 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17144 CONFIG_SHELL=$as_dir/$as_base
17145 export CONFIG_SHELL
17146 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17147 fi;;
17148 esac
17149 done
17150 done
17152 esac
17154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17155 # uniformly replaced by the line number. The first 'sed' inserts a
17156 # line-number line before each line; the second 'sed' does the real
17157 # work. The second script uses 'N' to pair each line-number line
17158 # with the numbered line, and appends trailing '-' during
17159 # substitution so that $LINENO is not a special case at line end.
17160 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17161 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17162 sed '=' <$as_myself |
17163 sed '
17165 s,$,-,
17166 : loop
17167 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17168 t loop
17169 s,-$,,
17170 s,^['$as_cr_digits']*\n,,
17171 ' >$as_me.lineno &&
17172 chmod +x $as_me.lineno ||
17173 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17174 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17175 { (exit 1); exit 1; }; }
17177 # Don't try to exec as it changes $[0], causing all sort of problems
17178 # (the dirname of $[0] is not the place where we might find the
17179 # original and so on. Autoconf is especially sensible to this).
17180 . ./$as_me.lineno
17181 # Exit status is that of the last command.
17182 exit
17186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17187 *c*,-n*) ECHO_N= ECHO_C='
17188 ' ECHO_T=' ' ;;
17189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17191 esac
17193 if expr a : '\(a\)' >/dev/null 2>&1; then
17194 as_expr=expr
17195 else
17196 as_expr=false
17199 rm -f conf$$ conf$$.exe conf$$.file
17200 echo >conf$$.file
17201 if ln -s conf$$.file conf$$ 2>/dev/null; then
17202 # We could just check for DJGPP; but this test a) works b) is more generic
17203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17204 if test -f conf$$.exe; then
17205 # Don't use ln at all; we don't have any links
17206 as_ln_s='cp -p'
17207 else
17208 as_ln_s='ln -s'
17210 elif ln conf$$.file conf$$ 2>/dev/null; then
17211 as_ln_s=ln
17212 else
17213 as_ln_s='cp -p'
17215 rm -f conf$$ conf$$.exe conf$$.file
17217 if mkdir -p . 2>/dev/null; then
17218 as_mkdir_p=:
17219 else
17220 test -d ./-p && rmdir ./-p
17221 as_mkdir_p=false
17224 as_executable_p="test -f"
17226 # Sed expression to map a string onto a valid CPP name.
17227 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17229 # Sed expression to map a string onto a valid variable name.
17230 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17233 # IFS
17234 # We need space, tab and new line, in precisely that order.
17235 as_nl='
17237 IFS=" $as_nl"
17239 # CDPATH.
17240 $as_unset CDPATH
17242 exec 6>&1
17244 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17245 # report actual input values of CONFIG_FILES etc. instead of their
17246 # values after options handling. Logging --version etc. is OK.
17247 exec 5>>config.log
17249 echo
17250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17251 ## Running $as_me. ##
17252 _ASBOX
17253 } >&5
17254 cat >&5 <<_CSEOF
17256 This file was extended by $as_me, which was
17257 generated by GNU Autoconf 2.59. Invocation command line was
17259 CONFIG_FILES = $CONFIG_FILES
17260 CONFIG_HEADERS = $CONFIG_HEADERS
17261 CONFIG_LINKS = $CONFIG_LINKS
17262 CONFIG_COMMANDS = $CONFIG_COMMANDS
17263 $ $0 $@
17265 _CSEOF
17266 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17267 echo >&5
17268 _ACEOF
17270 # Files that config.status was made for.
17271 if test -n "$ac_config_files"; then
17272 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17275 if test -n "$ac_config_headers"; then
17276 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17279 if test -n "$ac_config_links"; then
17280 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17283 if test -n "$ac_config_commands"; then
17284 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17287 cat >>$CONFIG_STATUS <<\_ACEOF
17289 ac_cs_usage="\
17290 \`$as_me' instantiates files from templates according to the
17291 current configuration.
17293 Usage: $0 [OPTIONS] [FILE]...
17295 -h, --help print this help, then exit
17296 -V, --version print version number, then exit
17297 -q, --quiet do not print progress messages
17298 -d, --debug don't remove temporary files
17299 --recheck update $as_me by reconfiguring in the same conditions
17300 --file=FILE[:TEMPLATE]
17301 instantiate the configuration file FILE
17302 --header=FILE[:TEMPLATE]
17303 instantiate the configuration header FILE
17305 Configuration files:
17306 $config_files
17308 Configuration headers:
17309 $config_headers
17311 Configuration commands:
17312 $config_commands
17314 Report bugs to <bug-autoconf@gnu.org>."
17315 _ACEOF
17317 cat >>$CONFIG_STATUS <<_ACEOF
17318 ac_cs_version="\\
17319 config.status
17320 configured by $0, generated by GNU Autoconf 2.59,
17321 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17323 Copyright (C) 2003 Free Software Foundation, Inc.
17324 This config.status script is free software; the Free Software Foundation
17325 gives unlimited permission to copy, distribute and modify it."
17326 srcdir=$srcdir
17327 _ACEOF
17329 cat >>$CONFIG_STATUS <<\_ACEOF
17330 # If no file are specified by the user, then we need to provide default
17331 # value. By we need to know if files were specified by the user.
17332 ac_need_defaults=:
17333 while test $# != 0
17335 case $1 in
17336 --*=*)
17337 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17338 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17339 ac_shift=:
17342 ac_option=$1
17343 ac_optarg=$2
17344 ac_shift=shift
17346 *) # This is not an option, so the user has probably given explicit
17347 # arguments.
17348 ac_option=$1
17349 ac_need_defaults=false;;
17350 esac
17352 case $ac_option in
17353 # Handling of the options.
17354 _ACEOF
17355 cat >>$CONFIG_STATUS <<\_ACEOF
17356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17357 ac_cs_recheck=: ;;
17358 --version | --vers* | -V )
17359 echo "$ac_cs_version"; exit 0 ;;
17360 --he | --h)
17361 # Conflict between --help and --header
17362 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17363 Try \`$0 --help' for more information." >&5
17364 echo "$as_me: error: ambiguous option: $1
17365 Try \`$0 --help' for more information." >&2;}
17366 { (exit 1); exit 1; }; };;
17367 --help | --hel | -h )
17368 echo "$ac_cs_usage"; exit 0 ;;
17369 --debug | --d* | -d )
17370 debug=: ;;
17371 --file | --fil | --fi | --f )
17372 $ac_shift
17373 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17374 ac_need_defaults=false;;
17375 --header | --heade | --head | --hea )
17376 $ac_shift
17377 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17378 ac_need_defaults=false;;
17379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17380 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17381 ac_cs_silent=: ;;
17383 # This is an error.
17384 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17385 Try \`$0 --help' for more information." >&5
17386 echo "$as_me: error: unrecognized option: $1
17387 Try \`$0 --help' for more information." >&2;}
17388 { (exit 1); exit 1; }; } ;;
17390 *) ac_config_targets="$ac_config_targets $1" ;;
17392 esac
17393 shift
17394 done
17396 ac_configure_extra_args=
17398 if $ac_cs_silent; then
17399 exec 6>/dev/null
17400 ac_configure_extra_args="$ac_configure_extra_args --silent"
17403 _ACEOF
17404 cat >>$CONFIG_STATUS <<_ACEOF
17405 if \$ac_cs_recheck; then
17406 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17407 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17410 _ACEOF
17412 cat >>$CONFIG_STATUS <<_ACEOF
17414 # INIT-COMMANDS section.
17417 subdirs='$subdirs'
17419 _ACEOF
17423 cat >>$CONFIG_STATUS <<\_ACEOF
17424 for ac_config_target in $ac_config_targets
17426 case "$ac_config_target" in
17427 # Handling of arguments.
17428 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17429 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17430 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17431 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17432 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17433 { (exit 1); exit 1; }; };;
17434 esac
17435 done
17437 # If the user did not use the arguments to specify the items to instantiate,
17438 # then the envvar interface is used. Set only those that are not.
17439 # We use the long form for the default assignment because of an extremely
17440 # bizarre bug on SunOS 4.1.3.
17441 if $ac_need_defaults; then
17442 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17443 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17444 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17447 # Have a temporary directory for convenience. Make it in the build tree
17448 # simply because there is no reason to put it here, and in addition,
17449 # creating and moving files from /tmp can sometimes cause problems.
17450 # Create a temporary directory, and hook for its removal unless debugging.
17451 $debug ||
17453 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17454 trap '{ (exit 1); exit 1; }' 1 2 13 15
17457 # Create a (secure) tmp directory for tmp files.
17460 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17461 test -n "$tmp" && test -d "$tmp"
17462 } ||
17464 tmp=./confstat$$-$RANDOM
17465 (umask 077 && mkdir $tmp)
17466 } ||
17468 echo "$me: cannot create a temporary directory in ." >&2
17469 { (exit 1); exit 1; }
17472 _ACEOF
17474 cat >>$CONFIG_STATUS <<_ACEOF
17477 # CONFIG_FILES section.
17480 # No need to generate the scripts if there are no CONFIG_FILES.
17481 # This happens for instance when ./config.status config.h
17482 if test -n "\$CONFIG_FILES"; then
17483 # Protect against being on the right side of a sed subst in config.status.
17484 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17485 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17486 s,@SHELL@,$SHELL,;t t
17487 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17488 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17489 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17490 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17491 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17492 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17493 s,@exec_prefix@,$exec_prefix,;t t
17494 s,@prefix@,$prefix,;t t
17495 s,@program_transform_name@,$program_transform_name,;t t
17496 s,@bindir@,$bindir,;t t
17497 s,@sbindir@,$sbindir,;t t
17498 s,@libexecdir@,$libexecdir,;t t
17499 s,@datadir@,$datadir,;t t
17500 s,@sysconfdir@,$sysconfdir,;t t
17501 s,@sharedstatedir@,$sharedstatedir,;t t
17502 s,@localstatedir@,$localstatedir,;t t
17503 s,@libdir@,$libdir,;t t
17504 s,@includedir@,$includedir,;t t
17505 s,@oldincludedir@,$oldincludedir,;t t
17506 s,@infodir@,$infodir,;t t
17507 s,@mandir@,$mandir,;t t
17508 s,@build_alias@,$build_alias,;t t
17509 s,@host_alias@,$host_alias,;t t
17510 s,@target_alias@,$target_alias,;t t
17511 s,@DEFS@,$DEFS,;t t
17512 s,@ECHO_C@,$ECHO_C,;t t
17513 s,@ECHO_N@,$ECHO_N,;t t
17514 s,@ECHO_T@,$ECHO_T,;t t
17515 s,@LIBS@,$LIBS,;t t
17516 s,@build@,$build,;t t
17517 s,@build_cpu@,$build_cpu,;t t
17518 s,@build_vendor@,$build_vendor,;t t
17519 s,@build_os@,$build_os,;t t
17520 s,@host@,$host,;t t
17521 s,@host_cpu@,$host_cpu,;t t
17522 s,@host_vendor@,$host_vendor,;t t
17523 s,@host_os@,$host_os,;t t
17524 s,@target@,$target,;t t
17525 s,@target_cpu@,$target_cpu,;t t
17526 s,@target_vendor@,$target_vendor,;t t
17527 s,@target_os@,$target_os,;t t
17528 s,@target_noncanonical@,$target_noncanonical,;t t
17529 s,@build_libsubdir@,$build_libsubdir,;t t
17530 s,@build_subdir@,$build_subdir,;t t
17531 s,@host_subdir@,$host_subdir,;t t
17532 s,@target_subdir@,$target_subdir,;t t
17533 s,@GENINSRC@,$GENINSRC,;t t
17534 s,@CC@,$CC,;t t
17535 s,@CFLAGS@,$CFLAGS,;t t
17536 s,@LDFLAGS@,$LDFLAGS,;t t
17537 s,@CPPFLAGS@,$CPPFLAGS,;t t
17538 s,@ac_ct_CC@,$ac_ct_CC,;t t
17539 s,@EXEEXT@,$EXEEXT,;t t
17540 s,@OBJEXT@,$OBJEXT,;t t
17541 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17542 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17543 s,@CPP@,$CPP,;t t
17544 s,@EGREP@,$EGREP,;t t
17545 s,@strict_warn@,$strict_warn,;t t
17546 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17547 s,@warn_cflags@,$warn_cflags,;t t
17548 s,@nocommon_flag@,$nocommon_flag,;t t
17549 s,@TREEBROWSER@,$TREEBROWSER,;t t
17550 s,@valgrind_path@,$valgrind_path,;t t
17551 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17552 s,@valgrind_command@,$valgrind_command,;t t
17553 s,@coverage_flags@,$coverage_flags,;t t
17554 s,@enable_multilib@,$enable_multilib,;t t
17555 s,@enable_decimal_float@,$enable_decimal_float,;t t
17556 s,@enable_shared@,$enable_shared,;t t
17557 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17558 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17559 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17560 s,@onestep@,$onestep,;t t
17561 s,@datarootdir@,$datarootdir,;t t
17562 s,@docdir@,$docdir,;t t
17563 s,@htmldir@,$htmldir,;t t
17564 s,@SET_MAKE@,$SET_MAKE,;t t
17565 s,@AWK@,$AWK,;t t
17566 s,@LN_S@,$LN_S,;t t
17567 s,@LN@,$LN,;t t
17568 s,@RANLIB@,$RANLIB,;t t
17569 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17570 s,@ranlib_flags@,$ranlib_flags,;t t
17571 s,@INSTALL@,$INSTALL,;t t
17572 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17573 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17574 s,@make_compare_target@,$make_compare_target,;t t
17575 s,@have_mktemp_command@,$have_mktemp_command,;t t
17576 s,@MAKEINFO@,$MAKEINFO,;t t
17577 s,@BUILD_INFO@,$BUILD_INFO,;t t
17578 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17579 s,@FLEX@,$FLEX,;t t
17580 s,@BISON@,$BISON,;t t
17581 s,@NM@,$NM,;t t
17582 s,@AR@,$AR,;t t
17583 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17584 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17585 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17586 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17587 s,@LIBICONV@,$LIBICONV,;t t
17588 s,@LTLIBICONV@,$LTLIBICONV,;t t
17589 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17590 s,@manext@,$manext,;t t
17591 s,@objext@,$objext,;t t
17592 s,@gthread_flags@,$gthread_flags,;t t
17593 s,@extra_modes_file@,$extra_modes_file,;t t
17594 s,@extra_opt_files@,$extra_opt_files,;t t
17595 s,@USE_NLS@,$USE_NLS,;t t
17596 s,@LIBINTL@,$LIBINTL,;t t
17597 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17598 s,@INCINTL@,$INCINTL,;t t
17599 s,@XGETTEXT@,$XGETTEXT,;t t
17600 s,@GMSGFMT@,$GMSGFMT,;t t
17601 s,@POSUB@,$POSUB,;t t
17602 s,@CATALOGS@,$CATALOGS,;t t
17603 s,@DATADIRNAME@,$DATADIRNAME,;t t
17604 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17605 s,@GENCAT@,$GENCAT,;t t
17606 s,@CATOBJEXT@,$CATOBJEXT,;t t
17607 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17608 s,@CROSS@,$CROSS,;t t
17609 s,@ALL@,$ALL,;t t
17610 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17611 s,@inhibit_libc@,$inhibit_libc,;t t
17612 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17613 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17614 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17615 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17616 s,@collect2@,$collect2,;t t
17617 s,@gcc_cv_as@,$gcc_cv_as,;t t
17618 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17619 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17620 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17621 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17622 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17623 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17624 s,@libgcc_visibility@,$libgcc_visibility,;t t
17625 s,@GGC@,$GGC,;t t
17626 s,@zlibdir@,$zlibdir,;t t
17627 s,@zlibinc@,$zlibinc,;t t
17628 s,@MAINT@,$MAINT,;t t
17629 s,@gcc_tooldir@,$gcc_tooldir,;t t
17630 s,@dollar@,$dollar,;t t
17631 s,@slibdir@,$slibdir,;t t
17632 s,@objdir@,$objdir,;t t
17633 s,@subdirs@,$subdirs,;t t
17634 s,@srcdir@,$srcdir,;t t
17635 s,@all_compilers@,$all_compilers,;t t
17636 s,@all_gtfiles@,$all_gtfiles,;t t
17637 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17638 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17639 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17640 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17641 s,@all_languages@,$all_languages,;t t
17642 s,@all_selected_languages@,$all_selected_languages,;t t
17643 s,@build_exeext@,$build_exeext,;t t
17644 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17645 s,@build_xm_file_list@,$build_xm_file_list,;t t
17646 s,@build_xm_include_list@,$build_xm_include_list,;t t
17647 s,@build_xm_defines@,$build_xm_defines,;t t
17648 s,@check_languages@,$check_languages,;t t
17649 s,@cpp_install_dir@,$cpp_install_dir,;t t
17650 s,@xmake_file@,$xmake_file,;t t
17651 s,@tmake_file@,$tmake_file,;t t
17652 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17653 s,@extra_headers_list@,$extra_headers_list,;t t
17654 s,@extra_objs@,$extra_objs,;t t
17655 s,@extra_parts@,$extra_parts,;t t
17656 s,@extra_passes@,$extra_passes,;t t
17657 s,@extra_programs@,$extra_programs,;t t
17658 s,@float_h_file@,$float_h_file,;t t
17659 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17660 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17661 s,@host_exeext@,$host_exeext,;t t
17662 s,@host_xm_file_list@,$host_xm_file_list,;t t
17663 s,@host_xm_include_list@,$host_xm_include_list,;t t
17664 s,@host_xm_defines@,$host_xm_defines,;t t
17665 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17666 s,@install@,$install,;t t
17667 s,@lang_opt_files@,$lang_opt_files,;t t
17668 s,@lang_specs_files@,$lang_specs_files,;t t
17669 s,@lang_tree_files@,$lang_tree_files,;t t
17670 s,@local_prefix@,$local_prefix,;t t
17671 s,@md_file@,$md_file,;t t
17672 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17673 s,@out_file@,$out_file,;t t
17674 s,@out_object_file@,$out_object_file,;t t
17675 s,@thread_file@,$thread_file,;t t
17676 s,@tm_file_list@,$tm_file_list,;t t
17677 s,@tm_include_list@,$tm_include_list,;t t
17678 s,@tm_defines@,$tm_defines,;t t
17679 s,@tm_p_file_list@,$tm_p_file_list,;t t
17680 s,@tm_p_include_list@,$tm_p_include_list,;t t
17681 s,@xm_file_list@,$xm_file_list,;t t
17682 s,@xm_include_list@,$xm_include_list,;t t
17683 s,@xm_defines@,$xm_defines,;t t
17684 s,@c_target_objs@,$c_target_objs,;t t
17685 s,@cxx_target_objs@,$cxx_target_objs,;t t
17686 s,@target_cpu_default@,$target_cpu_default,;t t
17687 s,@GMPLIBS@,$GMPLIBS,;t t
17688 s,@GMPINC@,$GMPINC,;t t
17689 s,@LIBOBJS@,$LIBOBJS,;t t
17690 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17691 /@language_hooks@/r $language_hooks
17692 s,@language_hooks@,,;t t
17693 CEOF
17695 _ACEOF
17697 cat >>$CONFIG_STATUS <<\_ACEOF
17698 # Split the substitutions into bite-sized pieces for seds with
17699 # small command number limits, like on Digital OSF/1 and HP-UX.
17700 ac_max_sed_lines=48
17701 ac_sed_frag=1 # Number of current file.
17702 ac_beg=1 # First line for current file.
17703 ac_end=$ac_max_sed_lines # Line after last line for current file.
17704 ac_more_lines=:
17705 ac_sed_cmds=
17706 while $ac_more_lines; do
17707 if test $ac_beg -gt 1; then
17708 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17709 else
17710 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17712 if test ! -s $tmp/subs.frag; then
17713 ac_more_lines=false
17714 else
17715 # The purpose of the label and of the branching condition is to
17716 # speed up the sed processing (if there are no `@' at all, there
17717 # is no need to browse any of the substitutions).
17718 # These are the two extra sed commands mentioned above.
17719 (echo ':t
17720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17721 if test -z "$ac_sed_cmds"; then
17722 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17723 else
17724 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17726 ac_sed_frag=`expr $ac_sed_frag + 1`
17727 ac_beg=$ac_end
17728 ac_end=`expr $ac_end + $ac_max_sed_lines`
17730 done
17731 if test -z "$ac_sed_cmds"; then
17732 ac_sed_cmds=cat
17734 fi # test -n "$CONFIG_FILES"
17736 _ACEOF
17737 cat >>$CONFIG_STATUS <<\_ACEOF
17738 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17739 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17740 case $ac_file in
17741 - | *:- | *:-:* ) # input from stdin
17742 cat >$tmp/stdin
17743 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17744 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17745 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17747 * ) ac_file_in=$ac_file.in ;;
17748 esac
17750 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17751 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17752 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17753 X"$ac_file" : 'X\(//\)[^/]' \| \
17754 X"$ac_file" : 'X\(//\)$' \| \
17755 X"$ac_file" : 'X\(/\)' \| \
17756 . : '\(.\)' 2>/dev/null ||
17757 echo X"$ac_file" |
17758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17760 /^X\(\/\/\)$/{ s//\1/; q; }
17761 /^X\(\/\).*/{ s//\1/; q; }
17762 s/.*/./; q'`
17763 { if $as_mkdir_p; then
17764 mkdir -p "$ac_dir"
17765 else
17766 as_dir="$ac_dir"
17767 as_dirs=
17768 while test ! -d "$as_dir"; do
17769 as_dirs="$as_dir $as_dirs"
17770 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17772 X"$as_dir" : 'X\(//\)[^/]' \| \
17773 X"$as_dir" : 'X\(//\)$' \| \
17774 X"$as_dir" : 'X\(/\)' \| \
17775 . : '\(.\)' 2>/dev/null ||
17776 echo X"$as_dir" |
17777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17779 /^X\(\/\/\)$/{ s//\1/; q; }
17780 /^X\(\/\).*/{ s//\1/; q; }
17781 s/.*/./; q'`
17782 done
17783 test ! -n "$as_dirs" || mkdir $as_dirs
17784 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17785 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17786 { (exit 1); exit 1; }; }; }
17788 ac_builddir=.
17790 if test "$ac_dir" != .; then
17791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17792 # A "../" for each directory in $ac_dir_suffix.
17793 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17794 else
17795 ac_dir_suffix= ac_top_builddir=
17798 case $srcdir in
17799 .) # No --srcdir option. We are building in place.
17800 ac_srcdir=.
17801 if test -z "$ac_top_builddir"; then
17802 ac_top_srcdir=.
17803 else
17804 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17805 fi ;;
17806 [\\/]* | ?:[\\/]* ) # Absolute path.
17807 ac_srcdir=$srcdir$ac_dir_suffix;
17808 ac_top_srcdir=$srcdir ;;
17809 *) # Relative path.
17810 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17811 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17812 esac
17814 # Do not use `cd foo && pwd` to compute absolute paths, because
17815 # the directories may not exist.
17816 case `pwd` in
17817 .) ac_abs_builddir="$ac_dir";;
17819 case "$ac_dir" in
17820 .) ac_abs_builddir=`pwd`;;
17821 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17822 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17823 esac;;
17824 esac
17825 case $ac_abs_builddir in
17826 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17828 case ${ac_top_builddir}. in
17829 .) ac_abs_top_builddir=$ac_abs_builddir;;
17830 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17831 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17832 esac;;
17833 esac
17834 case $ac_abs_builddir in
17835 .) ac_abs_srcdir=$ac_srcdir;;
17837 case $ac_srcdir in
17838 .) ac_abs_srcdir=$ac_abs_builddir;;
17839 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17840 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17841 esac;;
17842 esac
17843 case $ac_abs_builddir in
17844 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17846 case $ac_top_srcdir in
17847 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17848 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17849 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17850 esac;;
17851 esac
17855 if test x"$ac_file" != x-; then
17856 { echo "$as_me:$LINENO: creating $ac_file" >&5
17857 echo "$as_me: creating $ac_file" >&6;}
17858 rm -f "$ac_file"
17860 # Let's still pretend it is `configure' which instantiates (i.e., don't
17861 # use $as_me), people would be surprised to read:
17862 # /* config.h. Generated by config.status. */
17863 if test x"$ac_file" = x-; then
17864 configure_input=
17865 else
17866 configure_input="$ac_file. "
17868 configure_input=$configure_input"Generated from `echo $ac_file_in |
17869 sed 's,.*/,,'` by configure."
17871 # First look for the input files in the build tree, otherwise in the
17872 # src tree.
17873 ac_file_inputs=`IFS=:
17874 for f in $ac_file_in; do
17875 case $f in
17876 -) echo $tmp/stdin ;;
17877 [\\/$]*)
17878 # Absolute (can't be DOS-style, as IFS=:)
17879 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17880 echo "$as_me: error: cannot find input file: $f" >&2;}
17881 { (exit 1); exit 1; }; }
17882 echo "$f";;
17883 *) # Relative
17884 if test -f "$f"; then
17885 # Build tree
17886 echo "$f"
17887 elif test -f "$srcdir/$f"; then
17888 # Source tree
17889 echo "$srcdir/$f"
17890 else
17891 # /dev/null tree
17892 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17893 echo "$as_me: error: cannot find input file: $f" >&2;}
17894 { (exit 1); exit 1; }; }
17895 fi;;
17896 esac
17897 done` || { (exit 1); exit 1; }
17898 _ACEOF
17899 cat >>$CONFIG_STATUS <<_ACEOF
17900 sed "$ac_vpsub
17901 $extrasub
17902 _ACEOF
17903 cat >>$CONFIG_STATUS <<\_ACEOF
17905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17906 s,@configure_input@,$configure_input,;t t
17907 s,@srcdir@,$ac_srcdir,;t t
17908 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17909 s,@top_srcdir@,$ac_top_srcdir,;t t
17910 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17911 s,@builddir@,$ac_builddir,;t t
17912 s,@abs_builddir@,$ac_abs_builddir,;t t
17913 s,@top_builddir@,$ac_top_builddir,;t t
17914 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17915 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17916 rm -f $tmp/stdin
17917 if test x"$ac_file" != x-; then
17918 mv $tmp/out $ac_file
17919 else
17920 cat $tmp/out
17921 rm -f $tmp/out
17924 done
17925 _ACEOF
17926 cat >>$CONFIG_STATUS <<\_ACEOF
17929 # CONFIG_HEADER section.
17932 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17933 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17935 # ac_d sets the value in "#define NAME VALUE" lines.
17936 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17937 ac_dB='[ ].*$,\1#\2'
17938 ac_dC=' '
17939 ac_dD=',;t'
17940 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17941 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17942 ac_uB='$,\1#\2define\3'
17943 ac_uC=' '
17944 ac_uD=',;t'
17946 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17948 case $ac_file in
17949 - | *:- | *:-:* ) # input from stdin
17950 cat >$tmp/stdin
17951 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17952 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17953 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17955 * ) ac_file_in=$ac_file.in ;;
17956 esac
17958 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17959 echo "$as_me: creating $ac_file" >&6;}
17961 # First look for the input files in the build tree, otherwise in the
17962 # src tree.
17963 ac_file_inputs=`IFS=:
17964 for f in $ac_file_in; do
17965 case $f in
17966 -) echo $tmp/stdin ;;
17967 [\\/$]*)
17968 # Absolute (can't be DOS-style, as IFS=:)
17969 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17970 echo "$as_me: error: cannot find input file: $f" >&2;}
17971 { (exit 1); exit 1; }; }
17972 # Do quote $f, to prevent DOS paths from being IFS'd.
17973 echo "$f";;
17974 *) # Relative
17975 if test -f "$f"; then
17976 # Build tree
17977 echo "$f"
17978 elif test -f "$srcdir/$f"; then
17979 # Source tree
17980 echo "$srcdir/$f"
17981 else
17982 # /dev/null tree
17983 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17984 echo "$as_me: error: cannot find input file: $f" >&2;}
17985 { (exit 1); exit 1; }; }
17986 fi;;
17987 esac
17988 done` || { (exit 1); exit 1; }
17989 # Remove the trailing spaces.
17990 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17992 _ACEOF
17994 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17995 # `conftest.undefs', that substitutes the proper values into
17996 # config.h.in to produce config.h. The first handles `#define'
17997 # templates, and the second `#undef' templates.
17998 # And first: Protect against being on the right side of a sed subst in
17999 # config.status. Protect against being in an unquoted here document
18000 # in config.status.
18001 rm -f conftest.defines conftest.undefs
18002 # Using a here document instead of a string reduces the quoting nightmare.
18003 # Putting comments in sed scripts is not portable.
18005 # `end' is used to avoid that the second main sed command (meant for
18006 # 0-ary CPP macros) applies to n-ary macro definitions.
18007 # See the Autoconf documentation for `clear'.
18008 cat >confdef2sed.sed <<\_ACEOF
18009 s/[\\&,]/\\&/g
18010 s,[\\$`],\\&,g
18011 t clear
18012 : clear
18013 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18014 t end
18015 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18016 : end
18017 _ACEOF
18018 # If some macros were called several times there might be several times
18019 # the same #defines, which is useless. Nevertheless, we may not want to
18020 # sort them, since we want the *last* AC-DEFINE to be honored.
18021 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18022 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18023 rm -f confdef2sed.sed
18025 # This sed command replaces #undef with comments. This is necessary, for
18026 # example, in the case of _POSIX_SOURCE, which is predefined and required
18027 # on some systems where configure will not decide to define it.
18028 cat >>conftest.undefs <<\_ACEOF
18029 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18030 _ACEOF
18032 # Break up conftest.defines because some shells have a limit on the size
18033 # of here documents, and old seds have small limits too (100 cmds).
18034 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18035 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18036 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18037 echo ' :' >>$CONFIG_STATUS
18038 rm -f conftest.tail
18039 while grep . conftest.defines >/dev/null
18041 # Write a limited-size here document to $tmp/defines.sed.
18042 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18043 # Speed up: don't consider the non `#define' lines.
18044 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18045 # Work around the forget-to-reset-the-flag bug.
18046 echo 't clr' >>$CONFIG_STATUS
18047 echo ': clr' >>$CONFIG_STATUS
18048 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18049 echo 'CEOF
18050 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18051 rm -f $tmp/in
18052 mv $tmp/out $tmp/in
18053 ' >>$CONFIG_STATUS
18054 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18055 rm -f conftest.defines
18056 mv conftest.tail conftest.defines
18057 done
18058 rm -f conftest.defines
18059 echo ' fi # grep' >>$CONFIG_STATUS
18060 echo >>$CONFIG_STATUS
18062 # Break up conftest.undefs because some shells have a limit on the size
18063 # of here documents, and old seds have small limits too (100 cmds).
18064 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18065 rm -f conftest.tail
18066 while grep . conftest.undefs >/dev/null
18068 # Write a limited-size here document to $tmp/undefs.sed.
18069 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18070 # Speed up: don't consider the non `#undef'
18071 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18072 # Work around the forget-to-reset-the-flag bug.
18073 echo 't clr' >>$CONFIG_STATUS
18074 echo ': clr' >>$CONFIG_STATUS
18075 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18076 echo 'CEOF
18077 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18078 rm -f $tmp/in
18079 mv $tmp/out $tmp/in
18080 ' >>$CONFIG_STATUS
18081 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18082 rm -f conftest.undefs
18083 mv conftest.tail conftest.undefs
18084 done
18085 rm -f conftest.undefs
18087 cat >>$CONFIG_STATUS <<\_ACEOF
18088 # Let's still pretend it is `configure' which instantiates (i.e., don't
18089 # use $as_me), people would be surprised to read:
18090 # /* config.h. Generated by config.status. */
18091 if test x"$ac_file" = x-; then
18092 echo "/* Generated by configure. */" >$tmp/config.h
18093 else
18094 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18096 cat $tmp/in >>$tmp/config.h
18097 rm -f $tmp/in
18098 if test x"$ac_file" != x-; then
18099 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18100 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18101 echo "$as_me: $ac_file is unchanged" >&6;}
18102 else
18103 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18105 X"$ac_file" : 'X\(//\)[^/]' \| \
18106 X"$ac_file" : 'X\(//\)$' \| \
18107 X"$ac_file" : 'X\(/\)' \| \
18108 . : '\(.\)' 2>/dev/null ||
18109 echo X"$ac_file" |
18110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18112 /^X\(\/\/\)$/{ s//\1/; q; }
18113 /^X\(\/\).*/{ s//\1/; q; }
18114 s/.*/./; q'`
18115 { if $as_mkdir_p; then
18116 mkdir -p "$ac_dir"
18117 else
18118 as_dir="$ac_dir"
18119 as_dirs=
18120 while test ! -d "$as_dir"; do
18121 as_dirs="$as_dir $as_dirs"
18122 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18124 X"$as_dir" : 'X\(//\)[^/]' \| \
18125 X"$as_dir" : 'X\(//\)$' \| \
18126 X"$as_dir" : 'X\(/\)' \| \
18127 . : '\(.\)' 2>/dev/null ||
18128 echo X"$as_dir" |
18129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18131 /^X\(\/\/\)$/{ s//\1/; q; }
18132 /^X\(\/\).*/{ s//\1/; q; }
18133 s/.*/./; q'`
18134 done
18135 test ! -n "$as_dirs" || mkdir $as_dirs
18136 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18138 { (exit 1); exit 1; }; }; }
18140 rm -f $ac_file
18141 mv $tmp/config.h $ac_file
18143 else
18144 cat $tmp/config.h
18145 rm -f $tmp/config.h
18147 done
18148 _ACEOF
18149 cat >>$CONFIG_STATUS <<\_ACEOF
18152 # CONFIG_COMMANDS section.
18154 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18155 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18156 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18157 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18158 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18159 X"$ac_dest" : 'X\(//\)[^/]' \| \
18160 X"$ac_dest" : 'X\(//\)$' \| \
18161 X"$ac_dest" : 'X\(/\)' \| \
18162 . : '\(.\)' 2>/dev/null ||
18163 echo X"$ac_dest" |
18164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18166 /^X\(\/\/\)$/{ s//\1/; q; }
18167 /^X\(\/\).*/{ s//\1/; q; }
18168 s/.*/./; q'`
18169 { if $as_mkdir_p; then
18170 mkdir -p "$ac_dir"
18171 else
18172 as_dir="$ac_dir"
18173 as_dirs=
18174 while test ! -d "$as_dir"; do
18175 as_dirs="$as_dir $as_dirs"
18176 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18178 X"$as_dir" : 'X\(//\)[^/]' \| \
18179 X"$as_dir" : 'X\(//\)$' \| \
18180 X"$as_dir" : 'X\(/\)' \| \
18181 . : '\(.\)' 2>/dev/null ||
18182 echo X"$as_dir" |
18183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18185 /^X\(\/\/\)$/{ s//\1/; q; }
18186 /^X\(\/\).*/{ s//\1/; q; }
18187 s/.*/./; q'`
18188 done
18189 test ! -n "$as_dirs" || mkdir $as_dirs
18190 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18192 { (exit 1); exit 1; }; }; }
18194 ac_builddir=.
18196 if test "$ac_dir" != .; then
18197 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18198 # A "../" for each directory in $ac_dir_suffix.
18199 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18200 else
18201 ac_dir_suffix= ac_top_builddir=
18204 case $srcdir in
18205 .) # No --srcdir option. We are building in place.
18206 ac_srcdir=.
18207 if test -z "$ac_top_builddir"; then
18208 ac_top_srcdir=.
18209 else
18210 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18211 fi ;;
18212 [\\/]* | ?:[\\/]* ) # Absolute path.
18213 ac_srcdir=$srcdir$ac_dir_suffix;
18214 ac_top_srcdir=$srcdir ;;
18215 *) # Relative path.
18216 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18217 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18218 esac
18220 # Do not use `cd foo && pwd` to compute absolute paths, because
18221 # the directories may not exist.
18222 case `pwd` in
18223 .) ac_abs_builddir="$ac_dir";;
18225 case "$ac_dir" in
18226 .) ac_abs_builddir=`pwd`;;
18227 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18228 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18229 esac;;
18230 esac
18231 case $ac_abs_builddir in
18232 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18234 case ${ac_top_builddir}. in
18235 .) ac_abs_top_builddir=$ac_abs_builddir;;
18236 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18237 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18238 esac;;
18239 esac
18240 case $ac_abs_builddir in
18241 .) ac_abs_srcdir=$ac_srcdir;;
18243 case $ac_srcdir in
18244 .) ac_abs_srcdir=$ac_abs_builddir;;
18245 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18246 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18247 esac;;
18248 esac
18249 case $ac_abs_builddir in
18250 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18252 case $ac_top_srcdir in
18253 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18254 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18255 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18256 esac;;
18257 esac
18260 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18261 echo "$as_me: executing $ac_dest commands" >&6;}
18262 case $ac_dest in
18263 default )
18264 case ${CONFIG_HEADERS} in
18265 *auto-host.h:config.in*)
18266 echo > cstamp-h ;;
18267 esac
18268 # Make sure all the subdirs exist.
18269 for d in $subdirs doc build
18271 test -d $d || mkdir $d
18272 done
18274 esac
18275 done
18276 _ACEOF
18278 cat >>$CONFIG_STATUS <<\_ACEOF
18280 { (exit 0); exit 0; }
18281 _ACEOF
18282 chmod +x $CONFIG_STATUS
18283 ac_clean_files=$ac_clean_files_save
18286 # configure is writing to config.log, and then calls config.status.
18287 # config.status does its own redirection, appending to config.log.
18288 # Unfortunately, on DOS this fails, as config.log is still kept open
18289 # by configure, so config.status won't be able to write to it; its
18290 # output is simply discarded. So we exec the FD to /dev/null,
18291 # effectively closing config.log, so it can be properly (re)opened and
18292 # appended to by config.status. When coming back to configure, we
18293 # need to make the FD available again.
18294 if test "$no_create" != yes; then
18295 ac_cs_success=:
18296 ac_config_status_args=
18297 test "$silent" = yes &&
18298 ac_config_status_args="$ac_config_status_args --quiet"
18299 exec 5>/dev/null
18300 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18301 exec 5>>config.log
18302 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18303 # would make configure fail if this is the last instruction.
18304 $ac_cs_success || { (exit 1); exit 1; }