]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
re PR bootstrap/26053 (Misdetection of COMDAT group support with GNU as and non-GNU ld)
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 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
781
782 #
783 # Report the --help message.
784 #
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.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
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.
795
796 Defaults for the options are specified in brackets.
797
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 \`..']
808
809 _ACEOF
810
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]
817
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'.
822
823 For better control, use the options below.
824
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
839
840 cat <<\_ACEOF
841
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
846
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
852 fi
853
854 if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: yes,no,all,none,release.
871 Flags are: assert,fold,gc,gcac,misc,
872 rtlflag,rtl,runtime,tree,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
879 default is noopt
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-decimal-float enable decimal float extension to C
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
898 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
904 of the registry key
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
911
912 Optional Packages:
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search for libiconv in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-gc={page,zone} choose the garbage collection mechanism to use
936 with the compiler
937 --with-system-zlib use installed libz
938 --with-slibdir=DIR shared libraries in DIR LIBDIR
939
940 Some influential environment variables:
941 CC C compiler command
942 CFLAGS C compiler flags
943 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
944 nonstandard directory <lib dir>
945 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
946 headers in a nonstandard directory <include dir>
947 CPP C preprocessor
948 GMPLIBS How to link GMP
949 GMPINC How to find GMP include files
950
951 Use these variables to override the choices made by `configure' or to help
952 it to find libraries and programs with nonstandard names/locations.
953
954 _ACEOF
955 fi
956
957 if test "$ac_init_help" = "recursive"; then
958 # If there are subdirs, report their specific --help.
959 ac_popdir=`pwd`
960 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
961 test -d $ac_dir || continue
962 ac_builddir=.
963
964 if test "$ac_dir" != .; then
965 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
966 # A "../" for each directory in $ac_dir_suffix.
967 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
968 else
969 ac_dir_suffix= ac_top_builddir=
970 fi
971
972 case $srcdir in
973 .) # No --srcdir option. We are building in place.
974 ac_srcdir=.
975 if test -z "$ac_top_builddir"; then
976 ac_top_srcdir=.
977 else
978 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
979 fi ;;
980 [\\/]* | ?:[\\/]* ) # Absolute path.
981 ac_srcdir=$srcdir$ac_dir_suffix;
982 ac_top_srcdir=$srcdir ;;
983 *) # Relative path.
984 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
985 ac_top_srcdir=$ac_top_builddir$srcdir ;;
986 esac
987
988 # Do not use `cd foo && pwd` to compute absolute paths, because
989 # the directories may not exist.
990 case `pwd` in
991 .) ac_abs_builddir="$ac_dir";;
992 *)
993 case "$ac_dir" in
994 .) ac_abs_builddir=`pwd`;;
995 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
996 *) ac_abs_builddir=`pwd`/"$ac_dir";;
997 esac;;
998 esac
999 case $ac_abs_builddir in
1000 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1001 *)
1002 case ${ac_top_builddir}. in
1003 .) ac_abs_top_builddir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1005 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1006 esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_srcdir=$ac_srcdir;;
1010 *)
1011 case $ac_srcdir in
1012 .) ac_abs_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1014 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1015 esac;;
1016 esac
1017 case $ac_abs_builddir in
1018 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1019 *)
1020 case $ac_top_srcdir in
1021 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1022 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1023 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1024 esac;;
1025 esac
1026
1027 cd $ac_dir
1028 # Check for guested configure; otherwise get Cygnus style configure.
1029 if test -f $ac_srcdir/configure.gnu; then
1030 echo
1031 $SHELL $ac_srcdir/configure.gnu --help=recursive
1032 elif test -f $ac_srcdir/configure; then
1033 echo
1034 $SHELL $ac_srcdir/configure --help=recursive
1035 elif test -f $ac_srcdir/configure.ac ||
1036 test -f $ac_srcdir/configure.in; then
1037 echo
1038 $ac_configure --help
1039 else
1040 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1041 fi
1042 cd $ac_popdir
1043 done
1044 fi
1045
1046 test -n "$ac_init_help" && exit 0
1047 if $ac_init_version; then
1048 cat <<\_ACEOF
1049
1050 Copyright (C) 2003 Free Software Foundation, Inc.
1051 This configure script is free software; the Free Software Foundation
1052 gives unlimited permission to copy, distribute and modify it.
1053 _ACEOF
1054 exit 0
1055 fi
1056 exec 5>config.log
1057 cat >&5 <<_ACEOF
1058 This file contains any messages produced by compilers while
1059 running configure, to aid debugging if configure makes a mistake.
1060
1061 It was created by $as_me, which was
1062 generated by GNU Autoconf 2.59. Invocation command line was
1063
1064 $ $0 $@
1065
1066 _ACEOF
1067 {
1068 cat <<_ASUNAME
1069 ## --------- ##
1070 ## Platform. ##
1071 ## --------- ##
1072
1073 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1074 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1075 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1076 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1077 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1078
1079 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1080 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1081
1082 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1083 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1084 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1085 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1086 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1087 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1088 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1089
1090 _ASUNAME
1091
1092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1093 for as_dir in $PATH
1094 do
1095 IFS=$as_save_IFS
1096 test -z "$as_dir" && as_dir=.
1097 echo "PATH: $as_dir"
1098 done
1099
1100 } >&5
1101
1102 cat >&5 <<_ACEOF
1103
1104
1105 ## ----------- ##
1106 ## Core tests. ##
1107 ## ----------- ##
1108
1109 _ACEOF
1110
1111
1112 # Keep a trace of the command line.
1113 # Strip out --no-create and --no-recursion so they do not pile up.
1114 # Strip out --silent because we don't want to record it for future runs.
1115 # Also quote any args containing shell meta-characters.
1116 # Make two passes to allow for proper duplicate-argument suppression.
1117 ac_configure_args=
1118 ac_configure_args0=
1119 ac_configure_args1=
1120 ac_sep=
1121 ac_must_keep_next=false
1122 for ac_pass in 1 2
1123 do
1124 for ac_arg
1125 do
1126 case $ac_arg in
1127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 continue ;;
1131 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1132 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1133 esac
1134 case $ac_pass in
1135 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1136 2)
1137 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1138 if test $ac_must_keep_next = true; then
1139 ac_must_keep_next=false # Got value, back to normal.
1140 else
1141 case $ac_arg in
1142 *=* | --config-cache | -C | -disable-* | --disable-* \
1143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1145 | -with-* | --with-* | -without-* | --without-* | --x)
1146 case "$ac_configure_args0 " in
1147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1148 esac
1149 ;;
1150 -* ) ac_must_keep_next=true ;;
1151 esac
1152 fi
1153 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1154 # Get rid of the leading space.
1155 ac_sep=" "
1156 ;;
1157 esac
1158 done
1159 done
1160 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1161 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1162
1163 # When interrupted or exit'd, cleanup temporary files, and complete
1164 # config.log. We remove comments because anyway the quotes in there
1165 # would cause problems or look ugly.
1166 # WARNING: Be sure not to use single quotes in there, as some shells,
1167 # such as our DU 5.0 friend, will then `close' the trap.
1168 trap 'exit_status=$?
1169 # Save into config.log some information that might help in debugging.
1170 {
1171 echo
1172
1173 cat <<\_ASBOX
1174 ## ---------------- ##
1175 ## Cache variables. ##
1176 ## ---------------- ##
1177 _ASBOX
1178 echo
1179 # The following way of writing the cache mishandles newlines in values,
1180 {
1181 (set) 2>&1 |
1182 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1183 *ac_space=\ *)
1184 sed -n \
1185 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1187 ;;
1188 *)
1189 sed -n \
1190 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1191 ;;
1192 esac;
1193 }
1194 echo
1195
1196 cat <<\_ASBOX
1197 ## ----------------- ##
1198 ## Output variables. ##
1199 ## ----------------- ##
1200 _ASBOX
1201 echo
1202 for ac_var in $ac_subst_vars
1203 do
1204 eval ac_val=$`echo $ac_var`
1205 echo "$ac_var='"'"'$ac_val'"'"'"
1206 done | sort
1207 echo
1208
1209 if test -n "$ac_subst_files"; then
1210 cat <<\_ASBOX
1211 ## ------------- ##
1212 ## Output files. ##
1213 ## ------------- ##
1214 _ASBOX
1215 echo
1216 for ac_var in $ac_subst_files
1217 do
1218 eval ac_val=$`echo $ac_var`
1219 echo "$ac_var='"'"'$ac_val'"'"'"
1220 done | sort
1221 echo
1222 fi
1223
1224 if test -s confdefs.h; then
1225 cat <<\_ASBOX
1226 ## ----------- ##
1227 ## confdefs.h. ##
1228 ## ----------- ##
1229 _ASBOX
1230 echo
1231 sed "/^$/d" confdefs.h | sort
1232 echo
1233 fi
1234 test "$ac_signal" != 0 &&
1235 echo "$as_me: caught signal $ac_signal"
1236 echo "$as_me: exit $exit_status"
1237 } >&5
1238 rm -f core *.core &&
1239 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1240 exit $exit_status
1241 ' 0
1242 for ac_signal in 1 2 13 15; do
1243 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1244 done
1245 ac_signal=0
1246
1247 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1248 rm -rf conftest* confdefs.h
1249 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250 echo >confdefs.h
1251
1252 # Predefined preprocessor variables.
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_NAME "$PACKAGE_NAME"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_STRING "$PACKAGE_STRING"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1276 _ACEOF
1277
1278
1279 # Let the site file select an alternate cache file if it wants to.
1280 # Prefer explicitly selected file to automatically selected ones.
1281 if test -z "$CONFIG_SITE"; then
1282 if test "x$prefix" != xNONE; then
1283 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1284 else
1285 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1286 fi
1287 fi
1288 for ac_site_file in $CONFIG_SITE; do
1289 if test -r "$ac_site_file"; then
1290 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1291 echo "$as_me: loading site script $ac_site_file" >&6;}
1292 sed 's/^/| /' "$ac_site_file" >&5
1293 . "$ac_site_file"
1294 fi
1295 done
1296
1297 if test -r "$cache_file"; then
1298 # Some versions of bash will fail to source /dev/null (special
1299 # files actually), so we avoid doing that.
1300 if test -f "$cache_file"; then
1301 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1302 echo "$as_me: loading cache $cache_file" >&6;}
1303 case $cache_file in
1304 [\\/]* | ?:[\\/]* ) . $cache_file;;
1305 *) . ./$cache_file;;
1306 esac
1307 fi
1308 else
1309 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1310 echo "$as_me: creating cache $cache_file" >&6;}
1311 >$cache_file
1312 fi
1313
1314 # Check that the precious variables saved in the cache have kept the same
1315 # value.
1316 ac_cache_corrupted=false
1317 for ac_var in `(set) 2>&1 |
1318 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1319 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1320 eval ac_new_set=\$ac_env_${ac_var}_set
1321 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1322 eval ac_new_val="\$ac_env_${ac_var}_value"
1323 case $ac_old_set,$ac_new_set in
1324 set,)
1325 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1327 ac_cache_corrupted=: ;;
1328 ,set)
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1331 ac_cache_corrupted=: ;;
1332 ,);;
1333 *)
1334 if test "x$ac_old_val" != "x$ac_new_val"; then
1335 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1336 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1337 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1338 echo "$as_me: former value: $ac_old_val" >&2;}
1339 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1340 echo "$as_me: current value: $ac_new_val" >&2;}
1341 ac_cache_corrupted=:
1342 fi;;
1343 esac
1344 # Pass precious variables to config.status.
1345 if test "$ac_new_set" = set; then
1346 case $ac_new_val in
1347 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1348 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1349 *) ac_arg=$ac_var=$ac_new_val ;;
1350 esac
1351 case " $ac_configure_args " in
1352 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1353 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1354 esac
1355 fi
1356 done
1357 if $ac_cache_corrupted; then
1358 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1359 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1360 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1361 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1362 { (exit 1); exit 1; }; }
1363 fi
1364
1365 ac_ext=c
1366 ac_cpp='$CPP $CPPFLAGS'
1367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1391
1392
1393 gcc_version=`cat $srcdir/BASE-VER`
1394
1395 # Determine the host, build, and target systems
1396 ac_aux_dir=
1397 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1398 if test -f $ac_dir/install-sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install-sh -c"
1401 break
1402 elif test -f $ac_dir/install.sh; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/install.sh -c"
1405 break
1406 elif test -f $ac_dir/shtool; then
1407 ac_aux_dir=$ac_dir
1408 ac_install_sh="$ac_aux_dir/shtool install -c"
1409 break
1410 fi
1411 done
1412 if test -z "$ac_aux_dir"; then
1413 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1414 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1415 { (exit 1); exit 1; }; }
1416 fi
1417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1420
1421 # Make sure we can run config.sub.
1422 $ac_config_sub sun4 >/dev/null 2>&1 ||
1423 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1424 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1425 { (exit 1); exit 1; }; }
1426
1427 echo "$as_me:$LINENO: checking build system type" >&5
1428 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1429 if test "${ac_cv_build+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432 ac_cv_build_alias=$build_alias
1433 test -z "$ac_cv_build_alias" &&
1434 ac_cv_build_alias=`$ac_config_guess`
1435 test -z "$ac_cv_build_alias" &&
1436 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1438 { (exit 1); exit 1; }; }
1439 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1443
1444 fi
1445 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1446 echo "${ECHO_T}$ac_cv_build" >&6
1447 build=$ac_cv_build
1448 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451
1452
1453 echo "$as_me:$LINENO: checking host system type" >&5
1454 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1455 if test "${ac_cv_host+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458 ac_cv_host_alias=$host_alias
1459 test -z "$ac_cv_host_alias" &&
1460 ac_cv_host_alias=$ac_cv_build_alias
1461 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1462 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1463 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1464 { (exit 1); exit 1; }; }
1465
1466 fi
1467 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1468 echo "${ECHO_T}$ac_cv_host" >&6
1469 host=$ac_cv_host
1470 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1473
1474
1475 echo "$as_me:$LINENO: checking target system type" >&5
1476 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1477 if test "${ac_cv_target+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480 ac_cv_target_alias=$target_alias
1481 test "x$ac_cv_target_alias" = "x" &&
1482 ac_cv_target_alias=$ac_cv_host_alias
1483 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1484 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1485 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1486 { (exit 1); exit 1; }; }
1487
1488 fi
1489 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1490 echo "${ECHO_T}$ac_cv_target" >&6
1491 target=$ac_cv_target
1492 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1493 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1494 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1495
1496
1497 # The aliases save the names the user supplied, while $host etc.
1498 # will get canonicalized.
1499 test -n "$target_alias" &&
1500 test "$program_prefix$program_suffix$program_transform_name" = \
1501 NONENONEs,x,x, &&
1502 program_prefix=${target_alias}-
1503
1504 # Determine the noncanonical target name, for directory use.
1505 case ${build_alias} in
1506 "") build_noncanonical=${build} ;;
1507 *) build_noncanonical=${build_alias} ;;
1508 esac
1509
1510 case ${host_alias} in
1511 "") host_noncanonical=${build_noncanonical} ;;
1512 *) host_noncanonical=${host_alias} ;;
1513 esac
1514
1515 case ${target_alias} in
1516 "") target_noncanonical=${host_noncanonical} ;;
1517 *) target_noncanonical=${target_alias} ;;
1518 esac
1519
1520
1521
1522
1523 # Determine the target- and build-specific subdirectories
1524 # Prefix 'build-' so this never conflicts with target_subdir.
1525 build_subdir="build-${build_noncanonical}"
1526 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1527 if ( test $srcdir = . && test -d gcc ) \
1528 || test -d $srcdir/../host-${host_noncanonical}; then
1529 host_subdir="host-${host_noncanonical}"
1530 else
1531 host_subdir=.
1532 fi
1533 # No prefix.
1534 target_subdir=${target_noncanonical}
1535
1536
1537 # Set program_transform_name
1538 test "$program_prefix" != NONE &&
1539 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1540 # Use a double $ so make ignores it.
1541 test "$program_suffix" != NONE &&
1542 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1543 # Double any \ or $. echo might interpret backslashes.
1544 # By default was `s,x,x', remove it if useless.
1545 cat <<\_ACEOF >conftest.sed
1546 s/[\\$]/&&/g;s/;s,x,x,$//
1547 _ACEOF
1548 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1549 rm conftest.sed
1550
1551
1552 # Check for bogus environment variables.
1553 # Test if LIBRARY_PATH contains the notation for the current directory
1554 # since this would lead to problems installing/building glibc.
1555 # LIBRARY_PATH contains the current directory if one of the following
1556 # is true:
1557 # - one of the terminals (":" and ";") is the first or last sign
1558 # - two terminals occur directly after each other
1559 # - the path contains an element with a dot in it
1560 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1561 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1562 case ${LIBRARY_PATH} in
1563 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1564 library_path_setting="contains current directory"
1565 ;;
1566 *)
1567 library_path_setting="ok"
1568 ;;
1569 esac
1570 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1571 echo "${ECHO_T}$library_path_setting" >&6
1572 if test "$library_path_setting" != "ok"; then
1573 { { echo "$as_me:$LINENO: error:
1574 *** LIBRARY_PATH shouldn't contain the current directory when
1575 *** building gcc. Please change the environment variable
1576 *** and run configure again." >&5
1577 echo "$as_me: error:
1578 *** LIBRARY_PATH shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&2;}
1581 { (exit 1); exit 1; }; }
1582 fi
1583
1584 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1585 # since this would lead to problems installing/building glibc.
1586 # GCC_EXEC_PREFIX contains the current directory if one of the following
1587 # is true:
1588 # - one of the terminals (":" and ";") is the first or last sign
1589 # - two terminals occur directly after each other
1590 # - the path contains an element with a dot in it
1591 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1592 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1593 case ${GCC_EXEC_PREFIX} in
1594 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1595 gcc_exec_prefix_setting="contains current directory"
1596 ;;
1597 *)
1598 gcc_exec_prefix_setting="ok"
1599 ;;
1600 esac
1601 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1602 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1603 if test "$gcc_exec_prefix_setting" != "ok"; then
1604 { { echo "$as_me:$LINENO: error:
1605 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&5
1608 echo "$as_me: error:
1609 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1610 *** building gcc. Please change the environment variable
1611 *** and run configure again." >&2;}
1612 { (exit 1); exit 1; }; }
1613 fi
1614
1615 # -----------
1616 # Directories
1617 # -----------
1618
1619 # Specify the local prefix
1620 local_prefix=
1621
1622 # Check whether --with-local-prefix or --without-local-prefix was given.
1623 if test "${with_local_prefix+set}" = set; then
1624 withval="$with_local_prefix"
1625 case "${withval}" in
1626 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1627 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1628 { (exit 1); exit 1; }; } ;;
1629 no) ;;
1630 *) local_prefix=$with_local_prefix ;;
1631 esac
1632 fi;
1633
1634 # Default local prefix if it is empty
1635 if test x$local_prefix = x; then
1636 local_prefix=/usr/local
1637 fi
1638
1639 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1640 # passed in by the toplevel make and thus we'd get different behavior
1641 # depending on where we built the sources.
1642 gcc_gxx_include_dir=
1643 # Specify the g++ header file directory
1644
1645 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1646 if test "${with_gxx_include_dir+set}" = set; then
1647 withval="$with_gxx_include_dir"
1648 case "${withval}" in
1649 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1650 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1651 { (exit 1); exit 1; }; } ;;
1652 no) ;;
1653 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1654 esac
1655 fi;
1656
1657 if test x${gcc_gxx_include_dir} = x; then
1658 if test x${enable_version_specific_runtime_libs} = xyes; then
1659 gcc_gxx_include_dir='${libsubdir}/include/c++'
1660 else
1661 libstdcxx_incdir='c++/$(version)'
1662 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1663 fi
1664 fi
1665
1666
1667 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1668 if test "${with_cpp_install_dir+set}" = set; then
1669 withval="$with_cpp_install_dir"
1670 if test x$withval = xyes; then
1671 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1672 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1673 { (exit 1); exit 1; }; }
1674 elif test x$withval != xno; then
1675 cpp_install_dir=$withval
1676 fi
1677 fi;
1678
1679 # We would like to our source tree to be readonly. However when releases or
1680 # pre-releases are generated, the flex/bison generated files as well as the
1681 # various formats of manuals need to be included along with the rest of the
1682 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1683 # just that.
1684
1685 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1686 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1687 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1688 if test "${enable_generated_files_in_srcdir+set}" = set; then
1689 enableval="$enable_generated_files_in_srcdir"
1690 generated_files_in_srcdir=$enableval
1691 else
1692 generated_files_in_srcdir=no
1693 fi;
1694
1695 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1696 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1697
1698 if test "$generated_files_in_srcdir" = "yes"; then
1699 GENINSRC=''
1700 else
1701 GENINSRC='#'
1702 fi
1703
1704
1705 # -------------------
1706 # Find default linker
1707 # -------------------
1708
1709 # With GNU ld
1710
1711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1712 if test "${with_gnu_ld+set}" = set; then
1713 withval="$with_gnu_ld"
1714 gnu_ld_flag="$with_gnu_ld"
1715 else
1716 gnu_ld_flag=no
1717 fi;
1718
1719 # With pre-defined ld
1720
1721 # Check whether --with-ld or --without-ld was given.
1722 if test "${with_ld+set}" = set; then
1723 withval="$with_ld"
1724 DEFAULT_LINKER="$with_ld"
1725 fi;
1726 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1727 if test ! -x "$DEFAULT_LINKER"; then
1728 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1729 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1730 { (exit 1); exit 1; }; }
1731 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1732 gnu_ld_flag=yes
1733 fi
1734
1735 cat >>confdefs.h <<_ACEOF
1736 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1737 _ACEOF
1738
1739 fi
1740
1741 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1742 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1743 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1744 if test x"$gnu_ld_flag" = x"no"; then
1745 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1746 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1747 else
1748 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1749 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1750 fi
1751 else
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1754 fi
1755
1756 # With demangler in GNU ld
1757
1758 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1759 if test "${with_demangler_in_ld+set}" = set; then
1760 withval="$with_demangler_in_ld"
1761 demangler_in_ld="$with_demangler_in_ld"
1762 else
1763 demangler_in_ld=no
1764 fi;
1765
1766 # ----------------------
1767 # Find default assembler
1768 # ----------------------
1769
1770 # With GNU as
1771
1772 # Check whether --with-gnu-as or --without-gnu-as was given.
1773 if test "${with_gnu_as+set}" = set; then
1774 withval="$with_gnu_as"
1775 gas_flag="$with_gnu_as"
1776 else
1777 gas_flag=no
1778 fi;
1779
1780
1781 # Check whether --with-as or --without-as was given.
1782 if test "${with_as+set}" = set; then
1783 withval="$with_as"
1784 DEFAULT_ASSEMBLER="$with_as"
1785 fi;
1786 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1787 if test ! -x "$DEFAULT_ASSEMBLER"; then
1788 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1789 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1790 { (exit 1); exit 1; }; }
1791 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1792 gas_flag=yes
1793 fi
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1797 _ACEOF
1798
1799 fi
1800
1801 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1802 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1803 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1804 if test x"$gas_flag" = x"no"; then
1805 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1806 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1807 else
1808 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1809 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1810 fi
1811 else
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 fi
1815
1816 # ---------------
1817 # Find C compiler
1818 # ---------------
1819
1820 # If a non-executable a.out is present (e.g. created by GNU as above even if
1821 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1822 # file, even when creating an executable, so an execution test fails.
1823 # Remove possible default executable files to avoid this.
1824 #
1825 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1826 # Autoconf includes it.
1827 rm -f a.out a.exe b.out
1828
1829 # Find the native compiler
1830 ac_ext=c
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC="$CC" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1856 fi
1857 done
1858 done
1859
1860 fi
1861 fi
1862 CC=$ac_cv_prog_CC
1863 if test -n "$CC"; then
1864 echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6
1866 else
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1869 fi
1870
1871 fi
1872 if test -z "$ac_cv_prog_CC"; then
1873 ac_ct_CC=$CC
1874 # Extract the first word of "gcc", so it can be a program name with args.
1875 set dummy gcc; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="gcc"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909 CC=$ac_ct_CC
1910 else
1911 CC="$ac_cv_prog_CC"
1912 fi
1913
1914 if test -z "$CC"; then
1915 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}cc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 if test -n "$CC"; then
1924 ac_cv_prog_CC="$CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929 IFS=$as_save_IFS
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_CC="${ac_tool_prefix}cc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 break 2
1936 fi
1937 done
1938 done
1939
1940 fi
1941 fi
1942 CC=$ac_cv_prog_CC
1943 if test -n "$CC"; then
1944 echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1946 else
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951 fi
1952 if test -z "$ac_cv_prog_CC"; then
1953 ac_ct_CC=$CC
1954 # Extract the first word of "cc", so it can be a program name with args.
1955 set dummy cc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_CC="cc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989 CC=$ac_ct_CC
1990 else
1991 CC="$ac_cv_prog_CC"
1992 fi
1993
1994 fi
1995 if test -z "$CC"; then
1996 # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006 ac_prog_rejected=no
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015 ac_prog_rejected=yes
2016 continue
2017 fi
2018 ac_cv_prog_CC="cc"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 break 2
2021 fi
2022 done
2023 done
2024
2025 if test $ac_prog_rejected = yes; then
2026 # We found a bogon in the path, so make sure we never use it.
2027 set dummy $ac_cv_prog_CC
2028 shift
2029 if test $# != 0; then
2030 # We chose a different compiler from the bogus one.
2031 # However, it has the same basename, so the bogon will be chosen
2032 # first if we set CC to just the basename; use the full file name.
2033 shift
2034 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2035 fi
2036 fi
2037 fi
2038 fi
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048 fi
2049 if test -z "$CC"; then
2050 if test -n "$ac_tool_prefix"; then
2051 for ac_prog in cl
2052 do
2053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2065 do
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2073 fi
2074 done
2075 done
2076
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081 echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2083 else
2084 echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2086 fi
2087
2088 test -n "$CC" && break
2089 done
2090 fi
2091 if test -z "$CC"; then
2092 ac_ct_CC=$CC
2093 for ac_prog in cl
2094 do
2095 # Extract the first word of "$ac_prog", so it can be a program name with args.
2096 set dummy $ac_prog; ac_word=$2
2097 echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 if test -n "$ac_ct_CC"; then
2103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112 ac_cv_prog_ac_ct_CC="$ac_prog"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 break 2
2115 fi
2116 done
2117 done
2118
2119 fi
2120 fi
2121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2122 if test -n "$ac_ct_CC"; then
2123 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2124 echo "${ECHO_T}$ac_ct_CC" >&6
2125 else
2126 echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6
2128 fi
2129
2130 test -n "$ac_ct_CC" && break
2131 done
2132
2133 CC=$ac_ct_CC
2134 fi
2135
2136 fi
2137
2138
2139 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: no acceptable C compiler found in \$PATH
2142 See \`config.log' for more details." >&2;}
2143 { (exit 1); exit 1; }; }
2144
2145 # Provide some information about the compiler.
2146 echo "$as_me:$LINENO:" \
2147 "checking for C compiler version" >&5
2148 ac_compiler=`set X $ac_compile; echo $2`
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150 (eval $ac_compiler --version </dev/null >&5) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155 (eval $ac_compiler -v </dev/null >&5) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160 (eval $ac_compiler -V </dev/null >&5) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }
2164
2165 cat >conftest.$ac_ext <<_ACEOF
2166 /* confdefs.h. */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h. */
2171
2172 int
2173 main ()
2174 {
2175
2176 ;
2177 return 0;
2178 }
2179 _ACEOF
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2184 # of exeext.
2185 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189 (eval $ac_link_default) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; then
2193 # Find the output, starting from the most likely. This scheme is
2194 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2195 # resort.
2196
2197 # Be careful to initialize this variable, since it used to be cached.
2198 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2199 ac_cv_exeext=
2200 # b.out is created by i960 compilers.
2201 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2202 do
2203 test -f "$ac_file" || continue
2204 case $ac_file in
2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2206 ;;
2207 conftest.$ac_ext )
2208 # This is the source file.
2209 ;;
2210 [ab].out )
2211 # We found the default executable, but exeext='' is most
2212 # certainly right.
2213 break;;
2214 *.* )
2215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 # FIXME: I believe we export ac_cv_exeext for Libtool,
2217 # but it would be cool to find out if it's true. Does anybody
2218 # maintain Libtool? --akim.
2219 export ac_cv_exeext
2220 break;;
2221 * )
2222 break;;
2223 esac
2224 done
2225 else
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2228
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233 { (exit 77); exit 77; }; }
2234 fi
2235
2236 ac_exeext=$ac_cv_exeext
2237 echo "$as_me:$LINENO: result: $ac_file" >&5
2238 echo "${ECHO_T}$ac_file" >&6
2239
2240 # Check the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245 # If not cross compiling, check that we can run a simple program.
2246 if test "$cross_compiling" != yes; then
2247 if { ac_try='./$ac_file'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2253 cross_compiling=no
2254 else
2255 if test "$cross_compiling" = maybe; then
2256 cross_compiling=yes
2257 else
2258 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }
2265 fi
2266 fi
2267 fi
2268 echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6
2270
2271 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272 ac_clean_files=$ac_clean_files_save
2273 # Check the compiler produces executables we can run. If not, either
2274 # the compiler is broken, or we cross compile.
2275 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278 echo "${ECHO_T}$cross_compiling" >&6
2279
2280 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283 (eval $ac_link) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; then
2287 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2289 # work properly (i.e., refer to `conftest.exe'), while it won't with
2290 # `rm'.
2291 for ac_file in conftest.exe conftest conftest.*; do
2292 test -f "$ac_file" || continue
2293 case $ac_file in
2294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2295 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296 export ac_cv_exeext
2297 break;;
2298 * ) break;;
2299 esac
2300 done
2301 else
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2307 fi
2308
2309 rm -f conftest$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6
2312
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2315 ac_exeext=$EXEEXT
2316 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h. */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2327
2328 int
2329 main ()
2330 {
2331
2332 ;
2333 return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.o conftest.obj
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; then
2342 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2343 case $ac_file in
2344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346 break;;
2347 esac
2348 done
2349 else
2350 echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356 See \`config.log' for more details." >&2;}
2357 { (exit 1); exit 1; }; }
2358 fi
2359
2360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361 fi
2362 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363 echo "${ECHO_T}$ac_cv_objext" >&6
2364 OBJEXT=$ac_cv_objext
2365 ac_objext=$OBJEXT
2366 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2377
2378 int
2379 main ()
2380 {
2381 #ifndef __GNUC__
2382 choke me
2383 #endif
2384
2385 ;
2386 return 0;
2387 }
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_compiler_gnu=yes
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416 ac_compiler_gnu=no
2417 fi
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421 fi
2422 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2427 CFLAGS="-g"
2428 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_g+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h. */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2439
2440 int
2441 main ()
2442 {
2443
2444 ;
2445 return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_prog_cc_g=yes
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 ac_cv_prog_cc_g=no
2476 fi
2477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478 fi
2479 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2480 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2481 if test "$ac_test_CFLAGS" = set; then
2482 CFLAGS=$ac_save_CFLAGS
2483 elif test $ac_cv_prog_cc_g = yes; then
2484 if test "$GCC" = yes; then
2485 CFLAGS="-g -O2"
2486 else
2487 CFLAGS="-g"
2488 fi
2489 else
2490 if test "$GCC" = yes; then
2491 CFLAGS="-O2"
2492 else
2493 CFLAGS=
2494 fi
2495 fi
2496 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2497 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2498 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 ac_cv_prog_cc_stdc=no
2502 ac_save_CC=$CC
2503 cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h. */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2509 #include <stdarg.h>
2510 #include <stdio.h>
2511 #include <sys/types.h>
2512 #include <sys/stat.h>
2513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2514 struct buf { int x; };
2515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2516 static char *e (p, i)
2517 char **p;
2518 int i;
2519 {
2520 return p[i];
2521 }
2522 static char *f (char * (*g) (char **, int), char **p, ...)
2523 {
2524 char *s;
2525 va_list v;
2526 va_start (v,p);
2527 s = g (p, va_arg (v,int));
2528 va_end (v);
2529 return s;
2530 }
2531
2532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2533 function prototypes and stuff, but not '\xHH' hex character constants.
2534 These don't provoke an error unfortunately, instead are silently treated
2535 as 'x'. The following induces an error, until -std1 is added to get
2536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2537 array size at least. It's necessary to write '\x00'==0 to get something
2538 that's true only with -std1. */
2539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2540
2541 int test (int i, double x);
2542 struct s1 {int (*f) (int a);};
2543 struct s2 {int (*f) (double a);};
2544 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545 int argc;
2546 char **argv;
2547 int
2548 main ()
2549 {
2550 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2551 ;
2552 return 0;
2553 }
2554 _ACEOF
2555 # Don't try gcc -ansi; that turns off useful extensions and
2556 # breaks some systems' header files.
2557 # AIX -qlanglvl=ansi
2558 # Ultrix and OSF/1 -std1
2559 # HP-UX 10.20 and later -Ae
2560 # HP-UX older versions -Aa -D_HPUX_SOURCE
2561 # SVR4 -Xc -D__EXTENSIONS__
2562 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2563 do
2564 CC="$ac_save_CC $ac_arg"
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag"
2575 || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_prog_cc_stdc=$ac_arg
2588 break
2589 else
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593 fi
2594 rm -f conftest.err conftest.$ac_objext
2595 done
2596 rm -f conftest.$ac_ext conftest.$ac_objext
2597 CC=$ac_save_CC
2598
2599 fi
2600
2601 case "x$ac_cv_prog_cc_stdc" in
2602 x|xno)
2603 echo "$as_me:$LINENO: result: none needed" >&5
2604 echo "${ECHO_T}none needed" >&6 ;;
2605 *)
2606 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2608 CC="$CC $ac_cv_prog_cc_stdc" ;;
2609 esac
2610
2611 # Some people use a C++ compiler to compile C. Since we use `exit',
2612 # in C++ we need to declare it. In case someone uses the same compiler
2613 # for both compiling C and C++ we need to have the C++ compiler decide
2614 # the declaration of exit, since it's the most demanding environment.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #ifndef __cplusplus
2617 choke me
2618 #endif
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>conftest.er1
2623 ac_status=$?
2624 grep -v '^ *+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -z "$ac_c_werror_flag"
2630 || test ! -s conftest.err'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; } &&
2636 { ac_try='test -s conftest.$ac_objext'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 for ac_declaration in \
2643 '' \
2644 'extern "C" void std::exit (int) throw (); using std::exit;' \
2645 'extern "C" void std::exit (int); using std::exit;' \
2646 'extern "C" void exit (int) throw ();' \
2647 'extern "C" void exit (int);' \
2648 'void exit (int);'
2649 do
2650 cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h. */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2656 $ac_declaration
2657 #include <stdlib.h>
2658 int
2659 main ()
2660 {
2661 exit (42);
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 :
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 continue
2694 fi
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h. */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2702 $ac_declaration
2703 int
2704 main ()
2705 {
2706 exit (42);
2707 ;
2708 return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2714 ac_status=$?
2715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 break
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 done
2741 rm -f conftest*
2742 if test -n "$ac_declaration"; then
2743 echo '#ifdef __cplusplus' >>confdefs.h
2744 echo $ac_declaration >>confdefs.h
2745 echo '#endif' >>confdefs.h
2746 fi
2747
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 fi
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 ac_ext=c
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760 if test "x$CC" != xcc; then
2761 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2762 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2763 else
2764 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2765 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2766 fi
2767 set dummy $CC; ac_cc=`echo $2 |
2768 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2769 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772 cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h. */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2778
2779 int
2780 main ()
2781 {
2782
2783 ;
2784 return 0;
2785 }
2786 _ACEOF
2787 # Make sure it works both with $CC and with simple cc.
2788 # We do the test twice because some compilers refuse to overwrite an
2789 # existing .o file with -o, though they will create one.
2790 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2791 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); };
2801 then
2802 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2803 if test "x$CC" != xcc; then
2804 # Test first that cc exists at all.
2805 if { ac_try='cc -c conftest.$ac_ext >&5'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2812 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 test -f conftest.$ac_objext && { (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 then
2823 # cc works too.
2824 :
2825 else
2826 # cc exists but doesn't like -o.
2827 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2828 fi
2829 fi
2830 fi
2831 else
2832 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2833 fi
2834 rm -f conftest*
2835
2836 fi
2837 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2838 echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6
2840 else
2841 echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2843
2844 cat >>confdefs.h <<\_ACEOF
2845 #define NO_MINUS_C_MINUS_O 1
2846 _ACEOF
2847
2848 fi
2849
2850 # expand $ac_aux_dir to an absolute path
2851 am_aux_dir=`cd $ac_aux_dir && pwd`
2852
2853 # FIXME: we rely on the cache variable name because
2854 # there is no other way.
2855 set dummy $CC
2856 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2858 # Losing compiler, so override with the script.
2859 # FIXME: It is wrong to rewrite CC.
2860 # But if we don't then we get into trouble of one sort or another.
2861 # A longer-term fix would be to have automake use am__CC in this case,
2862 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2863 CC="$am_aux_dir/compile $CC"
2864 fi
2865
2866 # autoconf is lame and doesn't give us any substitution variable for this.
2867 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2868 NO_MINUS_C_MINUS_O=yes
2869 else
2870 OUTPUT_OPTION='-o $@'
2871 fi
2872
2873
2874
2875 # -------------------------
2876 # Check C compiler features
2877 # -------------------------
2878
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2885 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2886 # On Suns, sometimes $CPP names a directory.
2887 if test -n "$CPP" && test -d "$CPP"; then
2888 CPP=
2889 fi
2890 if test -z "$CPP"; then
2891 if test "${ac_cv_prog_CPP+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894 # Double quotes because CPP needs to be expanded
2895 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2896 do
2897 ac_preproc_ok=false
2898 for ac_c_preproc_warn_flag in '' yes
2899 do
2900 # Use a header file that comes with gcc, so configuring glibc
2901 # with a fresh cross-compiler works.
2902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903 # <limits.h> exists even on freestanding compilers.
2904 # On the NeXT, cc -E runs the code through the compiler's parser,
2905 # not just through cpp. "Syntax error" is here to catch this case.
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912 #ifdef __STDC__
2913 # include <limits.h>
2914 #else
2915 # include <assert.h>
2916 #endif
2917 Syntax error
2918 _ACEOF
2919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } >/dev/null; then
2927 if test -s conftest.err; then
2928 ac_cpp_err=$ac_c_preproc_warn_flag
2929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2930 else
2931 ac_cpp_err=
2932 fi
2933 else
2934 ac_cpp_err=yes
2935 fi
2936 if test -z "$ac_cpp_err"; then
2937 :
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 # Broken: fails on valid input.
2943 continue
2944 fi
2945 rm -f conftest.err conftest.$ac_ext
2946
2947 # OK, works on sane cases. Now check whether non-existent headers
2948 # can be detected and how.
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955 #include <ac_nonexistent.h>
2956 _ACEOF
2957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } >/dev/null; then
2965 if test -s conftest.err; then
2966 ac_cpp_err=$ac_c_preproc_warn_flag
2967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2968 else
2969 ac_cpp_err=
2970 fi
2971 else
2972 ac_cpp_err=yes
2973 fi
2974 if test -z "$ac_cpp_err"; then
2975 # Broken: success on invalid input.
2976 continue
2977 else
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 # Passes both tests.
2982 ac_preproc_ok=:
2983 break
2984 fi
2985 rm -f conftest.err conftest.$ac_ext
2986
2987 done
2988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2989 rm -f conftest.err conftest.$ac_ext
2990 if $ac_preproc_ok; then
2991 break
2992 fi
2993
2994 done
2995 ac_cv_prog_CPP=$CPP
2996
2997 fi
2998 CPP=$ac_cv_prog_CPP
2999 else
3000 ac_cv_prog_CPP=$CPP
3001 fi
3002 echo "$as_me:$LINENO: result: $CPP" >&5
3003 echo "${ECHO_T}$CPP" >&6
3004 ac_preproc_ok=false
3005 for ac_c_preproc_warn_flag in '' yes
3006 do
3007 # Use a header file that comes with gcc, so configuring glibc
3008 # with a fresh cross-compiler works.
3009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3010 # <limits.h> exists even on freestanding compilers.
3011 # On the NeXT, cc -E runs the code through the compiler's parser,
3012 # not just through cpp. "Syntax error" is here to catch this case.
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 #ifdef __STDC__
3020 # include <limits.h>
3021 #else
3022 # include <assert.h>
3023 #endif
3024 Syntax error
3025 _ACEOF
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
3036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3037 else
3038 ac_cpp_err=
3039 fi
3040 else
3041 ac_cpp_err=yes
3042 fi
3043 if test -z "$ac_cpp_err"; then
3044 :
3045 else
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049 # Broken: fails on valid input.
3050 continue
3051 fi
3052 rm -f conftest.err conftest.$ac_ext
3053
3054 # OK, works on sane cases. Now check whether non-existent headers
3055 # can be detected and how.
3056 cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #include <ac_nonexistent.h>
3063 _ACEOF
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null; then
3072 if test -s conftest.err; then
3073 ac_cpp_err=$ac_c_preproc_warn_flag
3074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3075 else
3076 ac_cpp_err=
3077 fi
3078 else
3079 ac_cpp_err=yes
3080 fi
3081 if test -z "$ac_cpp_err"; then
3082 # Broken: success on invalid input.
3083 continue
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 # Passes both tests.
3089 ac_preproc_ok=:
3090 break
3091 fi
3092 rm -f conftest.err conftest.$ac_ext
3093
3094 done
3095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096 rm -f conftest.err conftest.$ac_ext
3097 if $ac_preproc_ok; then
3098 :
3099 else
3100 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3105 fi
3106
3107 ac_ext=c
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112
3113
3114 echo "$as_me:$LINENO: checking for inline" >&5
3115 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3116 if test "${ac_cv_c_inline+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 ac_cv_c_inline=no
3120 for ac_kw in inline __inline__ __inline; do
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #ifndef __cplusplus
3128 typedef int foo_t;
3129 static $ac_kw foo_t static_foo () {return 0; }
3130 $ac_kw foo_t foo () {return 0; }
3131 #endif
3132
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136 (eval $ac_compile) 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag"
3144 || test ! -s conftest.err'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 (eval $ac_try) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; } &&
3150 { ac_try='test -s conftest.$ac_objext'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 ac_cv_c_inline=$ac_kw; break
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 fi
3162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3163 done
3164
3165 fi
3166 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3167 echo "${ECHO_T}$ac_cv_c_inline" >&6
3168
3169
3170 case $ac_cv_c_inline in
3171 inline | yes) ;;
3172 *)
3173 case $ac_cv_c_inline in
3174 no) ac_val=;;
3175 *) ac_val=$ac_cv_c_inline;;
3176 esac
3177 cat >>confdefs.h <<_ACEOF
3178 #ifndef __cplusplus
3179 #define inline $ac_val
3180 #endif
3181 _ACEOF
3182 ;;
3183 esac
3184
3185
3186 # sizeof(char) is 1 by definition.
3187
3188 echo "$as_me:$LINENO: checking for egrep" >&5
3189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3190 if test "${ac_cv_prog_egrep+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3194 then ac_cv_prog_egrep='grep -E'
3195 else ac_cv_prog_egrep='egrep'
3196 fi
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3199 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3200 EGREP=$ac_cv_prog_egrep
3201
3202
3203 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3204 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3205 if test "${ac_cv_header_stdc+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214 #include <stdlib.h>
3215 #include <stdarg.h>
3216 #include <string.h>
3217 #include <float.h>
3218
3219 int
3220 main ()
3221 {
3222
3223 ;
3224 return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -z "$ac_c_werror_flag"
3237 || test ! -s conftest.err'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 ac_cv_header_stdc=yes
3250 else
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 ac_cv_header_stdc=no
3255 fi
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257
3258 if test $ac_cv_header_stdc = yes; then
3259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266 #include <string.h>
3267
3268 _ACEOF
3269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270 $EGREP "memchr" >/dev/null 2>&1; then
3271 :
3272 else
3273 ac_cv_header_stdc=no
3274 fi
3275 rm -f conftest*
3276
3277 fi
3278
3279 if test $ac_cv_header_stdc = yes; then
3280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <stdlib.h>
3288
3289 _ACEOF
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291 $EGREP "free" >/dev/null 2>&1; then
3292 :
3293 else
3294 ac_cv_header_stdc=no
3295 fi
3296 rm -f conftest*
3297
3298 fi
3299
3300 if test $ac_cv_header_stdc = yes; then
3301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3302 if test "$cross_compiling" = yes; then
3303 :
3304 else
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #include <ctype.h>
3312 #if ((' ' & 0x0FF) == 0x020)
3313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3315 #else
3316 # define ISLOWER(c) \
3317 (('a' <= (c) && (c) <= 'i') \
3318 || ('j' <= (c) && (c) <= 'r') \
3319 || ('s' <= (c) && (c) <= 'z'))
3320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3321 #endif
3322
3323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3324 int
3325 main ()
3326 {
3327 int i;
3328 for (i = 0; i < 256; i++)
3329 if (XOR (islower (i), ISLOWER (i))
3330 || toupper (i) != TOUPPER (i))
3331 exit(2);
3332 exit (0);
3333 }
3334 _ACEOF
3335 rm -f conftest$ac_exeext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3337 (eval $ac_link) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 :
3347 else
3348 echo "$as_me: program exited with status $ac_status" >&5
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 ( exit $ac_status )
3353 ac_cv_header_stdc=no
3354 fi
3355 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3356 fi
3357 fi
3358 fi
3359 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3360 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3361 if test $ac_cv_header_stdc = yes; then
3362
3363 cat >>confdefs.h <<\_ACEOF
3364 #define STDC_HEADERS 1
3365 _ACEOF
3366
3367 fi
3368
3369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3380 inttypes.h stdint.h unistd.h
3381 do
3382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3383 echo "$as_me:$LINENO: checking for $ac_header" >&5
3384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 $ac_includes_default
3395
3396 #include <$ac_header>
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag"
3408 || test ! -s conftest.err'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 eval "$as_ac_Header=yes"
3421 else
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425 eval "$as_ac_Header=no"
3426 fi
3427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428 fi
3429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3432 cat >>confdefs.h <<_ACEOF
3433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3434 _ACEOF
3435
3436 fi
3437
3438 done
3439
3440
3441 echo "$as_me:$LINENO: checking for void *" >&5
3442 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3443 if test "${ac_cv_type_void_p+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 $ac_includes_default
3453 int
3454 main ()
3455 {
3456 if ((void * *) 0)
3457 return 0;
3458 if (sizeof (void *))
3459 return 0;
3460 ;
3461 return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_cv_type_void_p=yes
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 ac_cv_type_void_p=no
3492 fi
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 fi
3495 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3496 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3497
3498 echo "$as_me:$LINENO: checking size of void *" >&5
3499 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3500 if test "${ac_cv_sizeof_void_p+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test "$ac_cv_type_void_p" = yes; then
3504 # The cast to unsigned long works around a bug in the HP C Compiler
3505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3507 # This bug is HP SR number 8606223364.
3508 if test "$cross_compiling" = yes; then
3509 # Depending upon the size, compute the lo and hi bounds.
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 $ac_includes_default
3517 int
3518 main ()
3519 {
3520 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3521 test_array [0] = 0
3522
3523 ;
3524 return 0;
3525 }
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529 (eval $ac_compile) 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -z "$ac_c_werror_flag"
3537 || test ! -s conftest.err'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; } &&
3543 { ac_try='test -s conftest.$ac_objext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 ac_lo=0 ac_mid=0
3550 while :; do
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 $ac_includes_default
3558 int
3559 main ()
3560 {
3561 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3562 test_array [0] = 0
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570 (eval $ac_compile) 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -z "$ac_c_werror_flag"
3578 || test ! -s conftest.err'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; } &&
3584 { ac_try='test -s conftest.$ac_objext'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; }; then
3590 ac_hi=$ac_mid; break
3591 else
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595 ac_lo=`expr $ac_mid + 1`
3596 if test $ac_lo -le $ac_mid; then
3597 ac_lo= ac_hi=
3598 break
3599 fi
3600 ac_mid=`expr 2 '*' $ac_mid + 1`
3601 fi
3602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603 done
3604 else
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 $ac_includes_default
3615 int
3616 main ()
3617 {
3618 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3619 test_array [0] = 0
3620
3621 ;
3622 return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>conftest.er1
3628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -z "$ac_c_werror_flag"
3635 || test ! -s conftest.err'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 (eval $ac_try) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3647 ac_hi=-1 ac_mid=-1
3648 while :; do
3649 cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h. */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655 $ac_includes_default
3656 int
3657 main ()
3658 {
3659 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3660 test_array [0] = 0
3661
3662 ;
3663 return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_c_werror_flag"
3676 || test ! -s conftest.err'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; } &&
3682 { ac_try='test -s conftest.$ac_objext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_lo=$ac_mid; break
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 ac_hi=`expr '(' $ac_mid ')' - 1`
3694 if test $ac_mid -le $ac_hi; then
3695 ac_lo= ac_hi=
3696 break
3697 fi
3698 ac_mid=`expr 2 '*' $ac_mid`
3699 fi
3700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701 done
3702 else
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 ac_lo= ac_hi=
3707 fi
3708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3709 fi
3710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3711 # Binary search between lo and hi bounds.
3712 while test "x$ac_lo" != "x$ac_hi"; do
3713 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h. */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720 $ac_includes_default
3721 int
3722 main ()
3723 {
3724 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3725 test_array [0] = 0
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>conftest.er1
3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 { ac_try='test -z "$ac_c_werror_flag"
3741 || test ! -s conftest.err'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 (eval $ac_try) 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; } &&
3747 { ac_try='test -s conftest.$ac_objext'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 ac_hi=$ac_mid
3754 else
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 ac_lo=`expr '(' $ac_mid ')' + 1`
3759 fi
3760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761 done
3762 case $ac_lo in
3763 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3764 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3765 See \`config.log' for more details." >&5
3766 echo "$as_me: error: cannot compute sizeof (void *), 77
3767 See \`config.log' for more details." >&2;}
3768 { (exit 1); exit 1; }; } ;;
3769 esac
3770 else
3771 if test "$cross_compiling" = yes; then
3772 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3773 See \`config.log' for more details." >&5
3774 echo "$as_me: error: cannot run test program while cross compiling
3775 See \`config.log' for more details." >&2;}
3776 { (exit 1); exit 1; }; }
3777 else
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 $ac_includes_default
3785 long longval () { return (long) (sizeof (void *)); }
3786 unsigned long ulongval () { return (long) (sizeof (void *)); }
3787 #include <stdio.h>
3788 #include <stdlib.h>
3789 int
3790 main ()
3791 {
3792
3793 FILE *f = fopen ("conftest.val", "w");
3794 if (! f)
3795 exit (1);
3796 if (((long) (sizeof (void *))) < 0)
3797 {
3798 long i = longval ();
3799 if (i != ((long) (sizeof (void *))))
3800 exit (1);
3801 fprintf (f, "%ld\n", i);
3802 }
3803 else
3804 {
3805 unsigned long i = ulongval ();
3806 if (i != ((long) (sizeof (void *))))
3807 exit (1);
3808 fprintf (f, "%lu\n", i);
3809 }
3810 exit (ferror (f) || fclose (f) != 0);
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 rm -f conftest$ac_exeext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818 (eval $ac_link) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_cv_sizeof_void_p=`cat conftest.val`
3828 else
3829 echo "$as_me: program exited with status $ac_status" >&5
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833 ( exit $ac_status )
3834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3835 See \`config.log' for more details." >&5
3836 echo "$as_me: error: cannot compute sizeof (void *), 77
3837 See \`config.log' for more details." >&2;}
3838 { (exit 1); exit 1; }; }
3839 fi
3840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3841 fi
3842 fi
3843 rm -f conftest.val
3844 else
3845 ac_cv_sizeof_void_p=0
3846 fi
3847 fi
3848 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3849 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3850 cat >>confdefs.h <<_ACEOF
3851 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3852 _ACEOF
3853
3854
3855 echo "$as_me:$LINENO: checking for short" >&5
3856 echo $ECHO_N "checking for short... $ECHO_C" >&6
3857 if test "${ac_cv_type_short+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 $ac_includes_default
3867 int
3868 main ()
3869 {
3870 if ((short *) 0)
3871 return 0;
3872 if (sizeof (short))
3873 return 0;
3874 ;
3875 return 0;
3876 }
3877 _ACEOF
3878 rm -f conftest.$ac_objext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880 (eval $ac_compile) 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -z "$ac_c_werror_flag"
3888 || test ! -s conftest.err'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; } &&
3894 { ac_try='test -s conftest.$ac_objext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_cv_type_short=yes
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 ac_cv_type_short=no
3906 fi
3907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3908 fi
3909 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3910 echo "${ECHO_T}$ac_cv_type_short" >&6
3911
3912 echo "$as_me:$LINENO: checking size of short" >&5
3913 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3914 if test "${ac_cv_sizeof_short+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 if test "$ac_cv_type_short" = yes; then
3918 # The cast to unsigned long works around a bug in the HP C Compiler
3919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3921 # This bug is HP SR number 8606223364.
3922 if test "$cross_compiling" = yes; then
3923 # Depending upon the size, compute the lo and hi bounds.
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930 $ac_includes_default
3931 int
3932 main ()
3933 {
3934 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3935 test_array [0] = 0
3936
3937 ;
3938 return 0;
3939 }
3940 _ACEOF
3941 rm -f conftest.$ac_objext
3942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943 (eval $ac_compile) 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -z "$ac_c_werror_flag"
3951 || test ! -s conftest.err'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; } &&
3957 { ac_try='test -s conftest.$ac_objext'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3963 ac_lo=0 ac_mid=0
3964 while :; do
3965 cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h. */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3971 $ac_includes_default
3972 int
3973 main ()
3974 {
3975 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3976 test_array [0] = 0
3977
3978 ;
3979 return 0;
3980 }
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -z "$ac_c_werror_flag"
3992 || test ! -s conftest.err'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; } &&
3998 { ac_try='test -s conftest.$ac_objext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_hi=$ac_mid; break
4005 else
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 ac_lo=`expr $ac_mid + 1`
4010 if test $ac_lo -le $ac_mid; then
4011 ac_lo= ac_hi=
4012 break
4013 fi
4014 ac_mid=`expr 2 '*' $ac_mid + 1`
4015 fi
4016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017 done
4018 else
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4021
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h. */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028 $ac_includes_default
4029 int
4030 main ()
4031 {
4032 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4033 test_array [0] = 0
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag"
4049 || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 ac_hi=-1 ac_mid=-1
4062 while :; do
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 $ac_includes_default
4070 int
4071 main ()
4072 {
4073 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4074 test_array [0] = 0
4075
4076 ;
4077 return 0;
4078 }
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } &&
4089 { ac_try='test -z "$ac_c_werror_flag"
4090 || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_lo=$ac_mid; break
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ac_hi=`expr '(' $ac_mid ')' - 1`
4108 if test $ac_mid -le $ac_hi; then
4109 ac_lo= ac_hi=
4110 break
4111 fi
4112 ac_mid=`expr 2 '*' $ac_mid`
4113 fi
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115 done
4116 else
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 ac_lo= ac_hi=
4121 fi
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4123 fi
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4125 # Binary search between lo and hi bounds.
4126 while test "x$ac_lo" != "x$ac_hi"; do
4127 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 $ac_includes_default
4135 int
4136 main ()
4137 {
4138 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4139 test_array [0] = 0
4140
4141 ;
4142 return 0;
4143 }
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_c_werror_flag"
4155 || test ! -s conftest.err'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_hi=$ac_mid
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 ac_lo=`expr '(' $ac_mid ')' + 1`
4173 fi
4174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4175 done
4176 case $ac_lo in
4177 ?*) ac_cv_sizeof_short=$ac_lo;;
4178 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4179 See \`config.log' for more details." >&5
4180 echo "$as_me: error: cannot compute sizeof (short), 77
4181 See \`config.log' for more details." >&2;}
4182 { (exit 1); exit 1; }; } ;;
4183 esac
4184 else
4185 if test "$cross_compiling" = yes; then
4186 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4187 See \`config.log' for more details." >&5
4188 echo "$as_me: error: cannot run test program while cross compiling
4189 See \`config.log' for more details." >&2;}
4190 { (exit 1); exit 1; }; }
4191 else
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 $ac_includes_default
4199 long longval () { return (long) (sizeof (short)); }
4200 unsigned long ulongval () { return (long) (sizeof (short)); }
4201 #include <stdio.h>
4202 #include <stdlib.h>
4203 int
4204 main ()
4205 {
4206
4207 FILE *f = fopen ("conftest.val", "w");
4208 if (! f)
4209 exit (1);
4210 if (((long) (sizeof (short))) < 0)
4211 {
4212 long i = longval ();
4213 if (i != ((long) (sizeof (short))))
4214 exit (1);
4215 fprintf (f, "%ld\n", i);
4216 }
4217 else
4218 {
4219 unsigned long i = ulongval ();
4220 if (i != ((long) (sizeof (short))))
4221 exit (1);
4222 fprintf (f, "%lu\n", i);
4223 }
4224 exit (ferror (f) || fclose (f) != 0);
4225
4226 ;
4227 return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest$ac_exeext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4232 (eval $ac_link) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 ac_cv_sizeof_short=`cat conftest.val`
4242 else
4243 echo "$as_me: program exited with status $ac_status" >&5
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247 ( exit $ac_status )
4248 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4249 See \`config.log' for more details." >&5
4250 echo "$as_me: error: cannot compute sizeof (short), 77
4251 See \`config.log' for more details." >&2;}
4252 { (exit 1); exit 1; }; }
4253 fi
4254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4255 fi
4256 fi
4257 rm -f conftest.val
4258 else
4259 ac_cv_sizeof_short=0
4260 fi
4261 fi
4262 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4263 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4264 cat >>confdefs.h <<_ACEOF
4265 #define SIZEOF_SHORT $ac_cv_sizeof_short
4266 _ACEOF
4267
4268
4269 echo "$as_me:$LINENO: checking for int" >&5
4270 echo $ECHO_N "checking for int... $ECHO_C" >&6
4271 if test "${ac_cv_type_int+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h. */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 $ac_includes_default
4281 int
4282 main ()
4283 {
4284 if ((int *) 0)
4285 return 0;
4286 if (sizeof (int))
4287 return 0;
4288 ;
4289 return 0;
4290 }
4291 _ACEOF
4292 rm -f conftest.$ac_objext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294 (eval $ac_compile) 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -z "$ac_c_werror_flag"
4302 || test ! -s conftest.err'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; } &&
4308 { ac_try='test -s conftest.$ac_objext'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 ac_cv_type_int=yes
4315 else
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319 ac_cv_type_int=no
4320 fi
4321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4322 fi
4323 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4324 echo "${ECHO_T}$ac_cv_type_int" >&6
4325
4326 echo "$as_me:$LINENO: checking size of int" >&5
4327 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4328 if test "${ac_cv_sizeof_int+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 if test "$ac_cv_type_int" = yes; then
4332 # The cast to unsigned long works around a bug in the HP C Compiler
4333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4335 # This bug is HP SR number 8606223364.
4336 if test "$cross_compiling" = yes; then
4337 # Depending upon the size, compute the lo and hi bounds.
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 $ac_includes_default
4345 int
4346 main ()
4347 {
4348 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4349 test_array [0] = 0
4350
4351 ;
4352 return 0;
4353 }
4354 _ACEOF
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } &&
4364 { ac_try='test -z "$ac_c_werror_flag"
4365 || test ! -s conftest.err'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_lo=0 ac_mid=0
4378 while :; do
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h. */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 $ac_includes_default
4386 int
4387 main ()
4388 {
4389 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4390 test_array [0] = 0
4391
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 rm -f conftest.$ac_objext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try='test -z "$ac_c_werror_flag"
4406 || test ! -s conftest.err'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_hi=$ac_mid; break
4419 else
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 ac_lo=`expr $ac_mid + 1`
4424 if test $ac_lo -le $ac_mid; then
4425 ac_lo= ac_hi=
4426 break
4427 fi
4428 ac_mid=`expr 2 '*' $ac_mid + 1`
4429 fi
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431 done
4432 else
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 $ac_includes_default
4443 int
4444 main ()
4445 {
4446 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4447 test_array [0] = 0
4448
4449 ;
4450 return 0;
4451 }
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag"
4463 || test ! -s conftest.err'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; } &&
4469 { ac_try='test -s conftest.$ac_objext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_hi=-1 ac_mid=-1
4476 while :; do
4477 cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h. */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 $ac_includes_default
4484 int
4485 main ()
4486 {
4487 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4488 test_array [0] = 0
4489
4490 ;
4491 return 0;
4492 }
4493 _ACEOF
4494 rm -f conftest.$ac_objext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>conftest.er1
4497 ac_status=$?
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try='test -z "$ac_c_werror_flag"
4504 || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_lo=$ac_mid; break
4517 else
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4520
4521 ac_hi=`expr '(' $ac_mid ')' - 1`
4522 if test $ac_mid -le $ac_hi; then
4523 ac_lo= ac_hi=
4524 break
4525 fi
4526 ac_mid=`expr 2 '*' $ac_mid`
4527 fi
4528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4529 done
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 ac_lo= ac_hi=
4535 fi
4536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 fi
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4539 # Binary search between lo and hi bounds.
4540 while test "x$ac_lo" != "x$ac_hi"; do
4541 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h. */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 $ac_includes_default
4549 int
4550 main ()
4551 {
4552 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4553 test_array [0] = 0
4554
4555 ;
4556 return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try='test -z "$ac_c_werror_flag"
4569 || test ! -s conftest.err'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_hi=$ac_mid
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 ac_lo=`expr '(' $ac_mid ')' + 1`
4587 fi
4588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4589 done
4590 case $ac_lo in
4591 ?*) ac_cv_sizeof_int=$ac_lo;;
4592 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4593 See \`config.log' for more details." >&5
4594 echo "$as_me: error: cannot compute sizeof (int), 77
4595 See \`config.log' for more details." >&2;}
4596 { (exit 1); exit 1; }; } ;;
4597 esac
4598 else
4599 if test "$cross_compiling" = yes; then
4600 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4601 See \`config.log' for more details." >&5
4602 echo "$as_me: error: cannot run test program while cross compiling
4603 See \`config.log' for more details." >&2;}
4604 { (exit 1); exit 1; }; }
4605 else
4606 cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h. */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4612 $ac_includes_default
4613 long longval () { return (long) (sizeof (int)); }
4614 unsigned long ulongval () { return (long) (sizeof (int)); }
4615 #include <stdio.h>
4616 #include <stdlib.h>
4617 int
4618 main ()
4619 {
4620
4621 FILE *f = fopen ("conftest.val", "w");
4622 if (! f)
4623 exit (1);
4624 if (((long) (sizeof (int))) < 0)
4625 {
4626 long i = longval ();
4627 if (i != ((long) (sizeof (int))))
4628 exit (1);
4629 fprintf (f, "%ld\n", i);
4630 }
4631 else
4632 {
4633 unsigned long i = ulongval ();
4634 if (i != ((long) (sizeof (int))))
4635 exit (1);
4636 fprintf (f, "%lu\n", i);
4637 }
4638 exit (ferror (f) || fclose (f) != 0);
4639
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 rm -f conftest$ac_exeext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646 (eval $ac_link) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 ac_cv_sizeof_int=`cat conftest.val`
4656 else
4657 echo "$as_me: program exited with status $ac_status" >&5
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 ( exit $ac_status )
4662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4663 See \`config.log' for more details." >&5
4664 echo "$as_me: error: cannot compute sizeof (int), 77
4665 See \`config.log' for more details." >&2;}
4666 { (exit 1); exit 1; }; }
4667 fi
4668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4669 fi
4670 fi
4671 rm -f conftest.val
4672 else
4673 ac_cv_sizeof_int=0
4674 fi
4675 fi
4676 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4677 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4678 cat >>confdefs.h <<_ACEOF
4679 #define SIZEOF_INT $ac_cv_sizeof_int
4680 _ACEOF
4681
4682
4683 echo "$as_me:$LINENO: checking for long" >&5
4684 echo $ECHO_N "checking for long... $ECHO_C" >&6
4685 if test "${ac_cv_type_long+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 $ac_includes_default
4695 int
4696 main ()
4697 {
4698 if ((long *) 0)
4699 return 0;
4700 if (sizeof (long))
4701 return 0;
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag"
4716 || test ! -s conftest.err'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; } &&
4722 { ac_try='test -s conftest.$ac_objext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 ac_cv_type_long=yes
4729 else
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 ac_cv_type_long=no
4734 fi
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4738 echo "${ECHO_T}$ac_cv_type_long" >&6
4739
4740 echo "$as_me:$LINENO: checking size of long" >&5
4741 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4742 if test "${ac_cv_sizeof_long+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745 if test "$ac_cv_type_long" = yes; then
4746 # The cast to unsigned long works around a bug in the HP C Compiler
4747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4749 # This bug is HP SR number 8606223364.
4750 if test "$cross_compiling" = yes; then
4751 # Depending upon the size, compute the lo and hi bounds.
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h. */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 $ac_includes_default
4759 int
4760 main ()
4761 {
4762 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4763 test_array [0] = 0
4764
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -z "$ac_c_werror_flag"
4779 || test ! -s conftest.err'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; } &&
4785 { ac_try='test -s conftest.$ac_objext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_lo=0 ac_mid=0
4792 while :; do
4793 cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h. */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 $ac_includes_default
4800 int
4801 main ()
4802 {
4803 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4804 test_array [0] = 0
4805
4806 ;
4807 return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_c_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_hi=$ac_mid; break
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 ac_lo=`expr $ac_mid + 1`
4838 if test $ac_lo -le $ac_mid; then
4839 ac_lo= ac_hi=
4840 break
4841 fi
4842 ac_mid=`expr 2 '*' $ac_mid + 1`
4843 fi
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 done
4846 else
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850 cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h. */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 $ac_includes_default
4857 int
4858 main ()
4859 {
4860 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4861 test_array [0] = 0
4862
4863 ;
4864 return 0;
4865 }
4866 _ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -z "$ac_c_werror_flag"
4877 || test ! -s conftest.err'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 (eval $ac_try) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; } &&
4883 { ac_try='test -s conftest.$ac_objext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4889 ac_hi=-1 ac_mid=-1
4890 while :; do
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 $ac_includes_default
4898 int
4899 main ()
4900 {
4901 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4902 test_array [0] = 0
4903
4904 ;
4905 return 0;
4906 }
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -z "$ac_c_werror_flag"
4918 || test ! -s conftest.err'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 ac_lo=$ac_mid; break
4931 else
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4934
4935 ac_hi=`expr '(' $ac_mid ')' - 1`
4936 if test $ac_mid -le $ac_hi; then
4937 ac_lo= ac_hi=
4938 break
4939 fi
4940 ac_mid=`expr 2 '*' $ac_mid`
4941 fi
4942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4943 done
4944 else
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 ac_lo= ac_hi=
4949 fi
4950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4951 fi
4952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4953 # Binary search between lo and hi bounds.
4954 while test "x$ac_lo" != "x$ac_hi"; do
4955 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 $ac_includes_default
4963 int
4964 main ()
4965 {
4966 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4967 test_array [0] = 0
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>conftest.er1
4976 ac_status=$?
4977 grep -v '^ *+' conftest.er1 >conftest.err
4978 rm -f conftest.er1
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -z "$ac_c_werror_flag"
4983 || test ! -s conftest.err'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; } &&
4989 { ac_try='test -s conftest.$ac_objext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 ac_hi=$ac_mid
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 ac_lo=`expr '(' $ac_mid ')' + 1`
5001 fi
5002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5003 done
5004 case $ac_lo in
5005 ?*) ac_cv_sizeof_long=$ac_lo;;
5006 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5007 See \`config.log' for more details." >&5
5008 echo "$as_me: error: cannot compute sizeof (long), 77
5009 See \`config.log' for more details." >&2;}
5010 { (exit 1); exit 1; }; } ;;
5011 esac
5012 else
5013 if test "$cross_compiling" = yes; then
5014 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5015 See \`config.log' for more details." >&5
5016 echo "$as_me: error: cannot run test program while cross compiling
5017 See \`config.log' for more details." >&2;}
5018 { (exit 1); exit 1; }; }
5019 else
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 $ac_includes_default
5027 long longval () { return (long) (sizeof (long)); }
5028 unsigned long ulongval () { return (long) (sizeof (long)); }
5029 #include <stdio.h>
5030 #include <stdlib.h>
5031 int
5032 main ()
5033 {
5034
5035 FILE *f = fopen ("conftest.val", "w");
5036 if (! f)
5037 exit (1);
5038 if (((long) (sizeof (long))) < 0)
5039 {
5040 long i = longval ();
5041 if (i != ((long) (sizeof (long))))
5042 exit (1);
5043 fprintf (f, "%ld\n", i);
5044 }
5045 else
5046 {
5047 unsigned long i = ulongval ();
5048 if (i != ((long) (sizeof (long))))
5049 exit (1);
5050 fprintf (f, "%lu\n", i);
5051 }
5052 exit (ferror (f) || fclose (f) != 0);
5053
5054 ;
5055 return 0;
5056 }
5057 _ACEOF
5058 rm -f conftest$ac_exeext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060 (eval $ac_link) 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5069 ac_cv_sizeof_long=`cat conftest.val`
5070 else
5071 echo "$as_me: program exited with status $ac_status" >&5
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5074
5075 ( exit $ac_status )
5076 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5077 See \`config.log' for more details." >&5
5078 echo "$as_me: error: cannot compute sizeof (long), 77
5079 See \`config.log' for more details." >&2;}
5080 { (exit 1); exit 1; }; }
5081 fi
5082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5083 fi
5084 fi
5085 rm -f conftest.val
5086 else
5087 ac_cv_sizeof_long=0
5088 fi
5089 fi
5090 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5091 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5092 cat >>confdefs.h <<_ACEOF
5093 #define SIZEOF_LONG $ac_cv_sizeof_long
5094 _ACEOF
5095
5096
5097 echo "$as_me:$LINENO: checking for long long" >&5
5098 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5099 if test "${ac_cv_type_long_long+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 $ac_includes_default
5109 int
5110 main ()
5111 {
5112 if ((long long *) 0)
5113 return 0;
5114 if (sizeof (long long))
5115 return 0;
5116 ;
5117 return 0;
5118 }
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122 (eval $ac_compile) 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -z "$ac_c_werror_flag"
5130 || test ! -s conftest.err'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; } &&
5136 { ac_try='test -s conftest.$ac_objext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_cv_type_long_long=yes
5143 else
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 ac_cv_type_long_long=no
5148 fi
5149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5150 fi
5151 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5152 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5153 if test $ac_cv_type_long_long = yes; then
5154
5155 cat >>confdefs.h <<_ACEOF
5156 #define HAVE_LONG_LONG 1
5157 _ACEOF
5158
5159 echo "$as_me:$LINENO: checking for long long" >&5
5160 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5161 if test "${ac_cv_type_long_long+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h. */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5170 $ac_includes_default
5171 int
5172 main ()
5173 {
5174 if ((long long *) 0)
5175 return 0;
5176 if (sizeof (long long))
5177 return 0;
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_c_werror_flag"
5192 || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 (eval $ac_try) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_cv_type_long_long=yes
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 ac_cv_type_long_long=no
5210 fi
5211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5212 fi
5213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5214 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5215
5216 echo "$as_me:$LINENO: checking size of long long" >&5
5217 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5218 if test "${ac_cv_sizeof_long_long+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 if test "$ac_cv_type_long_long" = yes; then
5222 # The cast to unsigned long works around a bug in the HP C Compiler
5223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5225 # This bug is HP SR number 8606223364.
5226 if test "$cross_compiling" = yes; then
5227 # Depending upon the size, compute the lo and hi bounds.
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h. */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 $ac_includes_default
5235 int
5236 main ()
5237 {
5238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5239 test_array [0] = 0
5240
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -z "$ac_c_werror_flag"
5255 || test ! -s conftest.err'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; } &&
5261 { ac_try='test -s conftest.$ac_objext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_lo=0 ac_mid=0
5268 while :; do
5269 cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h. */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 $ac_includes_default
5276 int
5277 main ()
5278 {
5279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5280 test_array [0] = 0
5281
5282 ;
5283 return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>conftest.er1
5289 ac_status=$?
5290 grep -v '^ *+' conftest.er1 >conftest.err
5291 rm -f conftest.er1
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -z "$ac_c_werror_flag"
5296 || test ! -s conftest.err'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; } &&
5302 { ac_try='test -s conftest.$ac_objext'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 (eval $ac_try) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 ac_hi=$ac_mid; break
5309 else
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 ac_lo=`expr $ac_mid + 1`
5314 if test $ac_lo -le $ac_mid; then
5315 ac_lo= ac_hi=
5316 break
5317 fi
5318 ac_mid=`expr 2 '*' $ac_mid + 1`
5319 fi
5320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5321 done
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h. */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 $ac_includes_default
5333 int
5334 main ()
5335 {
5336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5337 test_array [0] = 0
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345 (eval $ac_compile) 2>conftest.er1
5346 ac_status=$?
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
5352 { ac_try='test -z "$ac_c_werror_flag"
5353 || test ! -s conftest.err'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; } &&
5359 { ac_try='test -s conftest.$ac_objext'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365 ac_hi=-1 ac_mid=-1
5366 while :; do
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 $ac_includes_default
5374 int
5375 main ()
5376 {
5377 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5378 test_array [0] = 0
5379
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>conftest.er1
5387 ac_status=$?
5388 grep -v '^ *+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -z "$ac_c_werror_flag"
5394 || test ! -s conftest.err'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; } &&
5400 { ac_try='test -s conftest.$ac_objext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_lo=$ac_mid; break
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 ac_hi=`expr '(' $ac_mid ')' - 1`
5412 if test $ac_mid -le $ac_hi; then
5413 ac_lo= ac_hi=
5414 break
5415 fi
5416 ac_mid=`expr 2 '*' $ac_mid`
5417 fi
5418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5419 done
5420 else
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5423
5424 ac_lo= ac_hi=
5425 fi
5426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5427 fi
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429 # Binary search between lo and hi bounds.
5430 while test "x$ac_lo" != "x$ac_hi"; do
5431 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5439 int
5440 main ()
5441 {
5442 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5443 test_array [0] = 0
5444
5445 ;
5446 return 0;
5447 }
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -z "$ac_c_werror_flag"
5459 || test ! -s conftest.err'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 (eval $ac_try) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; } &&
5465 { ac_try='test -s conftest.$ac_objext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_hi=$ac_mid
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476 ac_lo=`expr '(' $ac_mid ')' + 1`
5477 fi
5478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5479 done
5480 case $ac_lo in
5481 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5482 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: cannot compute sizeof (long long), 77
5485 See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; } ;;
5487 esac
5488 else
5489 if test "$cross_compiling" = yes; then
5490 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5491 See \`config.log' for more details." >&5
5492 echo "$as_me: error: cannot run test program while cross compiling
5493 See \`config.log' for more details." >&2;}
5494 { (exit 1); exit 1; }; }
5495 else
5496 cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h. */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 $ac_includes_default
5503 long longval () { return (long) (sizeof (long long)); }
5504 unsigned long ulongval () { return (long) (sizeof (long long)); }
5505 #include <stdio.h>
5506 #include <stdlib.h>
5507 int
5508 main ()
5509 {
5510
5511 FILE *f = fopen ("conftest.val", "w");
5512 if (! f)
5513 exit (1);
5514 if (((long) (sizeof (long long))) < 0)
5515 {
5516 long i = longval ();
5517 if (i != ((long) (sizeof (long long))))
5518 exit (1);
5519 fprintf (f, "%ld\n", i);
5520 }
5521 else
5522 {
5523 unsigned long i = ulongval ();
5524 if (i != ((long) (sizeof (long long))))
5525 exit (1);
5526 fprintf (f, "%lu\n", i);
5527 }
5528 exit (ferror (f) || fclose (f) != 0);
5529
5530 ;
5531 return 0;
5532 }
5533 _ACEOF
5534 rm -f conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 ac_cv_sizeof_long_long=`cat conftest.val`
5546 else
5547 echo "$as_me: program exited with status $ac_status" >&5
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5550
5551 ( exit $ac_status )
5552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5553 See \`config.log' for more details." >&5
5554 echo "$as_me: error: cannot compute sizeof (long long), 77
5555 See \`config.log' for more details." >&2;}
5556 { (exit 1); exit 1; }; }
5557 fi
5558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5559 fi
5560 fi
5561 rm -f conftest.val
5562 else
5563 ac_cv_sizeof_long_long=0
5564 fi
5565 fi
5566 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5567 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5568 cat >>confdefs.h <<_ACEOF
5569 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5570 _ACEOF
5571
5572
5573 fi
5574
5575 echo "$as_me:$LINENO: checking for __int64" >&5
5576 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5577 if test "${ac_cv_type___int64+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 $ac_includes_default
5587 int
5588 main ()
5589 {
5590 if ((__int64 *) 0)
5591 return 0;
5592 if (sizeof (__int64))
5593 return 0;
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600 (eval $ac_compile) 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try='test -z "$ac_c_werror_flag"
5608 || test ! -s conftest.err'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 (eval $ac_try) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try='test -s conftest.$ac_objext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 (eval $ac_try) 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_cv_type___int64=yes
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5624
5625 ac_cv_type___int64=no
5626 fi
5627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5628 fi
5629 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5630 echo "${ECHO_T}$ac_cv_type___int64" >&6
5631 if test $ac_cv_type___int64 = yes; then
5632
5633 cat >>confdefs.h <<_ACEOF
5634 #define HAVE___INT64 1
5635 _ACEOF
5636
5637 echo "$as_me:$LINENO: checking for __int64" >&5
5638 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5639 if test "${ac_cv_type___int64+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5649 int
5650 main ()
5651 {
5652 if ((__int64 *) 0)
5653 return 0;
5654 if (sizeof (__int64))
5655 return 0;
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag"
5670 || test ! -s conftest.err'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try='test -s conftest.$ac_objext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 (eval $ac_try) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 ac_cv_type___int64=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687 ac_cv_type___int64=no
5688 fi
5689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5692 echo "${ECHO_T}$ac_cv_type___int64" >&6
5693
5694 echo "$as_me:$LINENO: checking size of __int64" >&5
5695 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5696 if test "${ac_cv_sizeof___int64+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699 if test "$ac_cv_type___int64" = yes; then
5700 # The cast to unsigned long works around a bug in the HP C Compiler
5701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5703 # This bug is HP SR number 8606223364.
5704 if test "$cross_compiling" = yes; then
5705 # Depending upon the size, compute the lo and hi bounds.
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 $ac_includes_default
5713 int
5714 main ()
5715 {
5716 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5717 test_array [0] = 0
5718
5719 ;
5720 return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -z "$ac_c_werror_flag"
5733 || test ! -s conftest.err'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; } &&
5739 { ac_try='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 ac_lo=0 ac_mid=0
5746 while :; do
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h. */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 $ac_includes_default
5754 int
5755 main ()
5756 {
5757 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5758 test_array [0] = 0
5759
5760 ;
5761 return 0;
5762 }
5763 _ACEOF
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>conftest.er1
5767 ac_status=$?
5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_c_werror_flag"
5774 || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_hi=$ac_mid; break
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791 ac_lo=`expr $ac_mid + 1`
5792 if test $ac_lo -le $ac_mid; then
5793 ac_lo= ac_hi=
5794 break
5795 fi
5796 ac_mid=`expr 2 '*' $ac_mid + 1`
5797 fi
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5799 done
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 $ac_includes_default
5811 int
5812 main ()
5813 {
5814 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5815 test_array [0] = 0
5816
5817 ;
5818 return 0;
5819 }
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_hi=-1 ac_mid=-1
5844 while :; do
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 $ac_includes_default
5852 int
5853 main ()
5854 {
5855 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5856 test_array [0] = 0
5857
5858 ;
5859 return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try='test -z "$ac_c_werror_flag"
5872 || test ! -s conftest.err'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; } &&
5878 { ac_try='test -s conftest.$ac_objext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 (eval $ac_try) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_lo=$ac_mid; break
5885 else
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5888
5889 ac_hi=`expr '(' $ac_mid ')' - 1`
5890 if test $ac_mid -le $ac_hi; then
5891 ac_lo= ac_hi=
5892 break
5893 fi
5894 ac_mid=`expr 2 '*' $ac_mid`
5895 fi
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 done
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5901
5902 ac_lo= ac_hi=
5903 fi
5904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5905 fi
5906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907 # Binary search between lo and hi bounds.
5908 while test "x$ac_lo" != "x$ac_hi"; do
5909 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5917 int
5918 main ()
5919 {
5920 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5921 test_array [0] = 0
5922
5923 ;
5924 return 0;
5925 }
5926 _ACEOF
5927 rm -f conftest.$ac_objext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929 (eval $ac_compile) 2>conftest.er1
5930 ac_status=$?
5931 grep -v '^ *+' conftest.er1 >conftest.err
5932 rm -f conftest.er1
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -z "$ac_c_werror_flag"
5937 || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest.$ac_objext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 ac_hi=$ac_mid
5950 else
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 ac_lo=`expr '(' $ac_mid ')' + 1`
5955 fi
5956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957 done
5958 case $ac_lo in
5959 ?*) ac_cv_sizeof___int64=$ac_lo;;
5960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5961 See \`config.log' for more details." >&5
5962 echo "$as_me: error: cannot compute sizeof (__int64), 77
5963 See \`config.log' for more details." >&2;}
5964 { (exit 1); exit 1; }; } ;;
5965 esac
5966 else
5967 if test "$cross_compiling" = yes; then
5968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5969 See \`config.log' for more details." >&5
5970 echo "$as_me: error: cannot run test program while cross compiling
5971 See \`config.log' for more details." >&2;}
5972 { (exit 1); exit 1; }; }
5973 else
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 $ac_includes_default
5981 long longval () { return (long) (sizeof (__int64)); }
5982 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5983 #include <stdio.h>
5984 #include <stdlib.h>
5985 int
5986 main ()
5987 {
5988
5989 FILE *f = fopen ("conftest.val", "w");
5990 if (! f)
5991 exit (1);
5992 if (((long) (sizeof (__int64))) < 0)
5993 {
5994 long i = longval ();
5995 if (i != ((long) (sizeof (__int64))))
5996 exit (1);
5997 fprintf (f, "%ld\n", i);
5998 }
5999 else
6000 {
6001 unsigned long i = ulongval ();
6002 if (i != ((long) (sizeof (__int64))))
6003 exit (1);
6004 fprintf (f, "%lu\n", i);
6005 }
6006 exit (ferror (f) || fclose (f) != 0);
6007
6008 ;
6009 return 0;
6010 }
6011 _ACEOF
6012 rm -f conftest$ac_exeext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014 (eval $ac_link) 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 ac_cv_sizeof___int64=`cat conftest.val`
6024 else
6025 echo "$as_me: program exited with status $ac_status" >&5
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029 ( exit $ac_status )
6030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6031 See \`config.log' for more details." >&5
6032 echo "$as_me: error: cannot compute sizeof (__int64), 77
6033 See \`config.log' for more details." >&2;}
6034 { (exit 1); exit 1; }; }
6035 fi
6036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6037 fi
6038 fi
6039 rm -f conftest.val
6040 else
6041 ac_cv_sizeof___int64=0
6042 fi
6043 fi
6044 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6045 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6046 cat >>confdefs.h <<_ACEOF
6047 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6048 _ACEOF
6049
6050
6051 fi
6052
6053
6054 # ---------------------
6055 # Warnings and checking
6056 # ---------------------
6057
6058 # Check $CC warning features (if it's GCC).
6059 # We want to use -pedantic, but we don't want warnings about
6060 # * 'long long'
6061 # * variadic macros
6062 # * overlong strings
6063 # So, we only use -pedantic if we can disable those warnings.
6064
6065 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6066 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6067 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070 save_CFLAGS="$CFLAGS"
6071 CFLAGS="-Wno-long-long"
6072 cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h. */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6078
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082 (eval $ac_compile) 2>conftest.er1
6083 ac_status=$?
6084 grep -v '^ *+' conftest.er1 >conftest.err
6085 rm -f conftest.er1
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -z "$ac_c_werror_flag"
6090 || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_prog_cc_w_no_long_long=yes
6103 else
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107 ac_cv_prog_cc_w_no_long_long=no
6108 fi
6109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6110 CFLAGS="$save_CFLAGS"
6111
6112 fi
6113 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6114 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6115
6116 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6117 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6118 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 save_CFLAGS="$CFLAGS"
6122 CFLAGS="-Wno-variadic-macros"
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133 (eval $ac_compile) 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try='test -z "$ac_c_werror_flag"
6141 || test ! -s conftest.err'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; } &&
6147 { ac_try='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 ac_cv_prog_cc_w_no_variadic_macros=yes
6154 else
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 ac_cv_prog_cc_w_no_variadic_macros=no
6159 fi
6160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6161 CFLAGS="$save_CFLAGS"
6162
6163 fi
6164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6165 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6166
6167 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6168 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6169 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 save_CFLAGS="$CFLAGS"
6173 CFLAGS="-Wno-overlength-strings"
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180
6181 _ACEOF
6182 rm -f conftest.$ac_objext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184 (eval $ac_compile) 2>conftest.er1
6185 ac_status=$?
6186 grep -v '^ *+' conftest.er1 >conftest.err
6187 rm -f conftest.er1
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -z "$ac_c_werror_flag"
6192 || test ! -s conftest.err'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; } &&
6198 { ac_try='test -s conftest.$ac_objext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_prog_cc_w_no_overlength_strings=yes
6205 else
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209 ac_cv_prog_cc_w_no_overlength_strings=no
6210 fi
6211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6212 CFLAGS="$save_CFLAGS"
6213
6214 fi
6215 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6216 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6217
6218 strict1_warn=
6219 if test $ac_cv_prog_cc_w_no_long_long = yes \
6220 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6221 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6222 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6223 fi
6224
6225 # Add -Wold-style-definition if it's accepted
6226 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6227 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6228 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 save_CFLAGS="$CFLAGS"
6232 CFLAGS="-Wold-style-definition"
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h. */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>conftest.er1
6244 ac_status=$?
6245 grep -v '^ *+' conftest.er1 >conftest.err
6246 rm -f conftest.er1
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -z "$ac_c_werror_flag"
6251 || test ! -s conftest.err'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try='test -s conftest.$ac_objext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 ac_cv_prog_cc_w_old_style_definition=yes
6264 else
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6267
6268 ac_cv_prog_cc_w_old_style_definition=no
6269 fi
6270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6271 CFLAGS="$save_CFLAGS"
6272
6273 fi
6274 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6275 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6276 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6277 strict1_warn="${strict1_warn} -Wold-style-definition"
6278 fi
6279
6280 # Add -Wmissing-format-attribute if it's accepted
6281 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6282 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6283 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 save_CFLAGS="$CFLAGS"
6287 CFLAGS="-Wmissing-format-attribute"
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_c_werror_flag"
6306 || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 (eval $ac_try) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_cv_prog_cc_w_missing_format_attribute=yes
6319 else
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6322
6323 ac_cv_prog_cc_w_missing_format_attribute=no
6324 fi
6325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6326 CFLAGS="$save_CFLAGS"
6327
6328 fi
6329 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6330 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6331 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6332 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6333 fi
6334
6335 # Enable -Werror, period.
6336 # Check whether --enable-werror_always or --disable-werror_always was given.
6337 if test "${enable_werror_always+set}" = set; then
6338 enableval="$enable_werror_always"
6339
6340 else
6341 enable_werror_always=no
6342 fi;
6343 if test x${enable_werror_always} = xyes ; then
6344 strict1_warn="${strict1_warn} -Werror"
6345 WERROR=-Werror
6346 fi
6347
6348
6349
6350 # Get C++ compatibility warning flag, if supported.
6351 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6352 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6353 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 save_CFLAGS="$CFLAGS"
6357 CFLAGS="-Wc++-compat"
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h. */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_c_werror_flag"
6376 || test ! -s conftest.err'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest.$ac_objext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 (eval $ac_try) 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6388 ac_cv_prog_cc_w_cxx_compat=yes
6389 else
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 ac_cv_prog_cc_w_cxx_compat=no
6394 fi
6395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6396 CFLAGS="$save_CFLAGS"
6397
6398 fi
6399 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6400 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6401 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6402 cxx_compat_warn="-Wc++-compat"
6403 fi
6404
6405
6406
6407 # If the native compiler is GCC, we can enable warnings even in stage1.
6408 # That's useful for people building cross-compilers, or just running a
6409 # quick `make'.
6410 warn_cflags=
6411 if test "x$GCC" = "xyes"; then
6412 warn_cflags='$(GCC_WARN_CFLAGS)'
6413 fi
6414
6415
6416 # Enable -Werror in bootstrap stage2 and later.
6417 is_release=
6418 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6419 is_release=yes
6420 fi
6421 # Check whether --enable-werror or --disable-werror was given.
6422 if test "${enable_werror+set}" = set; then
6423 enableval="$enable_werror"
6424
6425 else
6426 if test x$is_release = x ; then
6427 # Default to "yes" on development branches.
6428 enable_werror=yes
6429 else
6430 # Default to "no" on release branches.
6431 enable_werror=no
6432 fi
6433 fi;
6434 if test x$enable_werror = xyes ; then
6435 WERROR=-Werror
6436 fi
6437
6438
6439 # Enable expensive internal checks
6440 # Check whether --enable-checking or --disable-checking was given.
6441 if test "${enable_checking+set}" = set; then
6442 enableval="$enable_checking"
6443 ac_checking_flags="${enableval}"
6444 else
6445
6446 # Determine the default checks.
6447 if test x$is_release = x ; then
6448 ac_checking_flags=yes
6449 else
6450 ac_checking_flags=release
6451 fi
6452 fi;
6453 ac_assert_checking=1
6454 ac_checking=
6455 ac_fold_checking=
6456 ac_gc_checking=
6457 ac_gc_always_collect=
6458 ac_rtl_checking=
6459 ac_rtlflag_checking=
6460 ac_runtime_checking=1
6461 ac_tree_checking=
6462 ac_valgrind_checking=
6463 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6464 for check in $ac_checking_flags
6465 do
6466 case $check in
6467 # these set all the flags to specific states
6468 yes) ac_assert_checking=1 ; ac_checking=1 ;
6469 ac_fold_checking= ; ac_gc_checking=1 ;
6470 ac_gc_always_collect= ; ac_rtl_checking= ;
6471 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6472 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6473 no|none) ac_assert_checking= ; ac_checking= ;
6474 ac_fold_checking= ; ac_gc_checking= ;
6475 ac_gc_always_collect= ; ac_rtl_checking= ;
6476 ac_rtlflag_checking= ; ac_runtime_checking= ;
6477 ac_tree_checking= ; ac_valgrind_checking= ;;
6478 all) ac_assert_checking=1 ; ac_checking=1 ;
6479 ac_fold_checking=1 ; ac_gc_checking=1 ;
6480 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6481 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6482 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6483 release) ac_assert_checking=1 ; ac_checking= ;
6484 ac_fold_checking= ; ac_gc_checking= ;
6485 ac_gc_always_collect= ; ac_rtl_checking= ;
6486 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6487 ac_tree_checking= ; ac_valgrind_checking= ;;
6488 # these enable particular checks
6489 assert) ac_assert_checking=1 ;;
6490 fold) ac_fold_checking=1 ;;
6491 gc) ac_gc_checking=1 ;;
6492 gcac) ac_gc_always_collect=1 ;;
6493 misc) ac_checking=1 ;;
6494 rtl) ac_rtl_checking=1 ;;
6495 rtlflag) ac_rtlflag_checking=1 ;;
6496 runtime) ac_runtime_checking=1 ;;
6497 tree) ac_tree_checking=1 ;;
6498 valgrind) ac_valgrind_checking=1 ;;
6499 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6500 echo "$as_me: error: unknown check category $check" >&2;}
6501 { (exit 1); exit 1; }; } ;;
6502 esac
6503 done
6504 IFS="$ac_save_IFS"
6505
6506 nocommon_flag=""
6507 if test x$ac_checking != x ; then
6508
6509 cat >>confdefs.h <<\_ACEOF
6510 #define ENABLE_CHECKING 1
6511 _ACEOF
6512
6513 nocommon_flag=-fno-common
6514 fi
6515
6516 if test x$ac_assert_checking != x ; then
6517
6518 cat >>confdefs.h <<\_ACEOF
6519 #define ENABLE_ASSERT_CHECKING 1
6520 _ACEOF
6521
6522 fi
6523
6524 if test x$ac_runtime_checking != x ; then
6525
6526 cat >>confdefs.h <<\_ACEOF
6527 #define ENABLE_RUNTIME_CHECKING 1
6528 _ACEOF
6529
6530 fi
6531 if test x$ac_tree_checking != x ; then
6532
6533 cat >>confdefs.h <<\_ACEOF
6534 #define ENABLE_TREE_CHECKING 1
6535 _ACEOF
6536
6537 TREEBROWSER=tree-browser.o
6538 fi
6539
6540 if test x$ac_rtl_checking != x ; then
6541
6542 cat >>confdefs.h <<\_ACEOF
6543 #define ENABLE_RTL_CHECKING 1
6544 _ACEOF
6545
6546 fi
6547 if test x$ac_rtlflag_checking != x ; then
6548
6549 cat >>confdefs.h <<\_ACEOF
6550 #define ENABLE_RTL_FLAG_CHECKING 1
6551 _ACEOF
6552
6553 fi
6554 if test x$ac_gc_checking != x ; then
6555
6556 cat >>confdefs.h <<\_ACEOF
6557 #define ENABLE_GC_CHECKING 1
6558 _ACEOF
6559
6560 fi
6561 if test x$ac_gc_always_collect != x ; then
6562
6563 cat >>confdefs.h <<\_ACEOF
6564 #define ENABLE_GC_ALWAYS_COLLECT 1
6565 _ACEOF
6566
6567 fi
6568 if test x$ac_fold_checking != x ; then
6569
6570 cat >>confdefs.h <<\_ACEOF
6571 #define ENABLE_FOLD_CHECKING 1
6572 _ACEOF
6573
6574 fi
6575 valgrind_path_defines=
6576 valgrind_command=
6577
6578 if test "${ac_cv_header_valgrind_h+set}" = set; then
6579 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6580 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6581 if test "${ac_cv_header_valgrind_h+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 fi
6584 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6585 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6586 else
6587 # Is the header compilable?
6588 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6589 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6590 cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h. */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6596 $ac_includes_default
6597 #include <valgrind.h>
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601 (eval $ac_compile) 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -z "$ac_c_werror_flag"
6609 || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_header_compiler=yes
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 ac_header_compiler=no
6627 fi
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6630 echo "${ECHO_T}$ac_header_compiler" >&6
6631
6632 # Is the header present?
6633 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6634 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 #include <valgrind.h>
6642 _ACEOF
6643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } >/dev/null; then
6651 if test -s conftest.err; then
6652 ac_cpp_err=$ac_c_preproc_warn_flag
6653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6654 else
6655 ac_cpp_err=
6656 fi
6657 else
6658 ac_cpp_err=yes
6659 fi
6660 if test -z "$ac_cpp_err"; then
6661 ac_header_preproc=yes
6662 else
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 ac_header_preproc=no
6667 fi
6668 rm -f conftest.err conftest.$ac_ext
6669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6670 echo "${ECHO_T}$ac_header_preproc" >&6
6671
6672 # So? What about this header?
6673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6674 yes:no: )
6675 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6676 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6678 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6679 ac_header_preproc=yes
6680 ;;
6681 no:yes:* )
6682 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6683 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6685 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6687 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6688 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6689 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6690 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6691 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6693 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6694 (
6695 cat <<\_ASBOX
6696 ## ------------------------------------------ ##
6697 ## Report this to the AC_PACKAGE_NAME lists. ##
6698 ## ------------------------------------------ ##
6699 _ASBOX
6700 ) |
6701 sed "s/^/$as_me: WARNING: /" >&2
6702 ;;
6703 esac
6704 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6705 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6706 if test "${ac_cv_header_valgrind_h+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709 ac_cv_header_valgrind_h=$ac_header_preproc
6710 fi
6711 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6712 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6713
6714 fi
6715 if test $ac_cv_header_valgrind_h = yes; then
6716 have_valgrind_h=yes
6717 else
6718 have_valgrind_h=no
6719 fi
6720
6721
6722
6723 if test x$ac_valgrind_checking != x ; then
6724 # It is certainly possible that there's valgrind but no valgrind.h.
6725 # GCC relies on making annotations so we must have both.
6726 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6727 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6728 cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h. */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6734 #include <valgrind/memcheck.h>
6735 #ifndef VALGRIND_DISCARD
6736 #error VALGRIND_DISCARD not defined
6737 #endif
6738 _ACEOF
6739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } >/dev/null; then
6747 if test -s conftest.err; then
6748 ac_cpp_err=$ac_c_preproc_warn_flag
6749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6750 else
6751 ac_cpp_err=
6752 fi
6753 else
6754 ac_cpp_err=yes
6755 fi
6756 if test -z "$ac_cpp_err"; then
6757 gcc_cv_header_valgrind_memcheck_h=yes
6758 else
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762 gcc_cv_header_valgrind_memcheck_h=no
6763 fi
6764 rm -f conftest.err conftest.$ac_ext
6765 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6766 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6767 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6768 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 #include <memcheck.h>
6776 #ifndef VALGRIND_DISCARD
6777 #error VALGRIND_DISCARD not defined
6778 #endif
6779 _ACEOF
6780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } >/dev/null; then
6788 if test -s conftest.err; then
6789 ac_cpp_err=$ac_c_preproc_warn_flag
6790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6791 else
6792 ac_cpp_err=
6793 fi
6794 else
6795 ac_cpp_err=yes
6796 fi
6797 if test -z "$ac_cpp_err"; then
6798 gcc_cv_header_memcheck_h=yes
6799 else
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 gcc_cv_header_memcheck_h=no
6804 fi
6805 rm -f conftest.err conftest.$ac_ext
6806 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6807 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6808
6809 # Prepare PATH_SEPARATOR.
6810 # The user is always right.
6811 if test "${PATH_SEPARATOR+set}" != set; then
6812 echo "#! /bin/sh" >conf$$.sh
6813 echo "exit 0" >>conf$$.sh
6814 chmod +x conf$$.sh
6815 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6816 PATH_SEPARATOR=';'
6817 else
6818 PATH_SEPARATOR=:
6819 fi
6820 rm -f conf$$.sh
6821 fi
6822
6823 # Find out how to test for executable files. Don't use a zero-byte file,
6824 # as systems may use methods other than mode bits to determine executability.
6825 cat >conf$$.file <<_ASEOF
6826 #! /bin/sh
6827 exit 0
6828 _ASEOF
6829 chmod +x conf$$.file
6830 if test -x conf$$.file >/dev/null 2>&1; then
6831 ac_executable_p="test -x"
6832 else
6833 ac_executable_p="test -f"
6834 fi
6835 rm -f conf$$.file
6836
6837 # Extract the first word of "valgrind", so it can be a program name with args.
6838 set dummy valgrind; ac_word=$2
6839 echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6841 if test "${ac_cv_path_valgrind_path+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 case "$valgrind_path" in
6845 [\\/]* | ?:[\\/]*)
6846 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6847 ;;
6848 *)
6849 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6850 for ac_dir in $PATH; do
6851 IFS="$ac_save_IFS"
6852 test -z "$ac_dir" && ac_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6855 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6856 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6857 break 2
6858 fi
6859 fi
6860 done
6861 done
6862 IFS="$ac_save_IFS"
6863 ;;
6864 esac
6865 fi
6866 valgrind_path="$ac_cv_path_valgrind_path"
6867 if test -n "$valgrind_path"; then
6868 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6869 echo "${ECHO_T}$valgrind_path" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6
6873 fi
6874
6875 if test "x$valgrind_path" = "x" \
6876 || (test $have_valgrind_h = no \
6877 && test $gcc_cv_header_memcheck_h = no \
6878 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6879 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6880 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6881 { (exit 1); exit 1; }; }
6882 fi
6883 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6884 valgrind_command="$valgrind_path -q"
6885
6886 cat >>confdefs.h <<\_ACEOF
6887 #define ENABLE_VALGRIND_CHECKING 1
6888 _ACEOF
6889
6890 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6891
6892 cat >>confdefs.h <<\_ACEOF
6893 #define HAVE_VALGRIND_MEMCHECK_H 1
6894 _ACEOF
6895
6896 fi
6897 if test $gcc_cv_header_memcheck_h = yes; then
6898
6899 cat >>confdefs.h <<\_ACEOF
6900 #define HAVE_MEMCHECK_H 1
6901 _ACEOF
6902
6903 fi
6904 fi
6905
6906
6907
6908 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6909 if test "${enable_mapped_location+set}" = set; then
6910 enableval="$enable_mapped_location"
6911
6912 else
6913 enable_mapped_location=no
6914 fi;
6915
6916 if test "$enable_mapped_location" = yes ; then
6917
6918 cat >>confdefs.h <<\_ACEOF
6919 #define USE_MAPPED_LOCATION 1
6920 _ACEOF
6921
6922 fi
6923
6924 # Enable code coverage collection
6925 # Check whether --enable-coverage or --disable-coverage was given.
6926 if test "${enable_coverage+set}" = set; then
6927 enableval="$enable_coverage"
6928 case "${enableval}" in
6929 yes|noopt)
6930 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6931 ;;
6932 opt)
6933 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6934 ;;
6935 no)
6936 # a.k.a. --disable-coverage
6937 coverage_flags=""
6938 ;;
6939 *)
6940 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6941 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6942 { (exit 1); exit 1; }; }
6943 ;;
6944 esac
6945 else
6946 coverage_flags=""
6947 fi;
6948
6949
6950 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6951 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6952 enableval="$enable_gather_detailed_mem_stats"
6953
6954 else
6955 enable_gather_detailed_mem_stats=no
6956 fi;
6957 if test x$enable_gather_detailed_mem_stats = xyes ; then
6958
6959 cat >>confdefs.h <<\_ACEOF
6960 #define GATHER_STATISTICS 1
6961 _ACEOF
6962
6963 fi
6964
6965 # -------------------------------
6966 # Miscenalleous configure options
6967 # -------------------------------
6968
6969 # With stabs
6970
6971 # Check whether --with-stabs or --without-stabs was given.
6972 if test "${with_stabs+set}" = set; then
6973 withval="$with_stabs"
6974 stabs="$with_stabs"
6975 else
6976 stabs=no
6977 fi;
6978
6979 # Determine whether or not multilibs are enabled.
6980 # Check whether --enable-multilib or --disable-multilib was given.
6981 if test "${enable_multilib+set}" = set; then
6982 enableval="$enable_multilib"
6983
6984 else
6985 enable_multilib=yes
6986 fi;
6987
6988
6989 # Enable __cxa_atexit for C++.
6990 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6991 if test "${enable___cxa_atexit+set}" = set; then
6992 enableval="$enable___cxa_atexit"
6993
6994 fi;
6995
6996 # Enable C extension for decimal float if target supports it.
6997 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6998 if test "${enable_decimal_float+set}" = set; then
6999 enableval="$enable_decimal_float"
7000
7001 if test x$enablevar = xyes ; then
7002 case $target in
7003 powerpc*-*-linux* | i?86*-*-linux*)
7004 enable_decimal_float=yes
7005 ;;
7006 *)
7007 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7008 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7009 enable_decimal_float=no
7010 ;;
7011 esac
7012 fi
7013
7014 else
7015 enable_decimal_float=no
7016 fi;
7017
7018
7019
7020 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7021
7022 cat >>confdefs.h <<_ACEOF
7023 #define ENABLE_DECIMAL_FLOAT $dfp
7024 _ACEOF
7025
7026
7027 # Enable threads
7028 # Pass with no value to take the default
7029 # Pass with a value to specify a thread package
7030 # Check whether --enable-threads or --disable-threads was given.
7031 if test "${enable_threads+set}" = set; then
7032 enableval="$enable_threads"
7033
7034 else
7035 enable_threads=''
7036 fi;
7037
7038 # Check whether --enable-tls or --disable-tls was given.
7039 if test "${enable_tls+set}" = set; then
7040 enableval="$enable_tls"
7041
7042 case $enable_tls in
7043 yes | no) ;;
7044 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7045 Valid choices are 'yes' and 'no'." >&5
7046 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7047 Valid choices are 'yes' and 'no'." >&2;}
7048 { (exit 1); exit 1; }; } ;;
7049 esac
7050
7051 else
7052 enable_tls=''
7053 fi;
7054
7055 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7056 if test "${enable_objc_gc+set}" = set; then
7057 enableval="$enable_objc_gc"
7058 if test x$enable_objc_gc = xno; then
7059 objc_boehm_gc=''
7060 else
7061 objc_boehm_gc=1
7062 fi
7063 else
7064 objc_boehm_gc=''
7065 fi;
7066
7067
7068 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7069 if test "${with_dwarf2+set}" = set; then
7070 withval="$with_dwarf2"
7071 dwarf2="$with_dwarf2"
7072 else
7073 dwarf2=no
7074 fi;
7075
7076 # Check whether --enable-shared or --disable-shared was given.
7077 if test "${enable_shared+set}" = set; then
7078 enableval="$enable_shared"
7079
7080 case $enable_shared in
7081 yes | no) ;;
7082 *)
7083 enable_shared=no
7084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7085 for pkg in $enableval; do
7086 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7087 enable_shared=yes
7088 fi
7089 done
7090 IFS="$ac_save_ifs"
7091 ;;
7092 esac
7093
7094 else
7095 enable_shared=yes
7096 fi;
7097
7098
7099
7100 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7101 if test "${with_build_sysroot+set}" = set; then
7102 withval="$with_build_sysroot"
7103
7104 fi;
7105
7106
7107 # Check whether --with-sysroot or --without-sysroot was given.
7108 if test "${with_sysroot+set}" = set; then
7109 withval="$with_sysroot"
7110
7111 case ${with_sysroot} in
7112 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7113 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7114 esac
7115
7116 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7117 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7118
7119 if test "x$exec_prefix" = xNONE; then
7120 if test "x$prefix" = xNONE; then
7121 test_prefix=/usr/local
7122 else
7123 test_prefix=$prefix
7124 fi
7125 else
7126 test_prefix=$exec_prefix
7127 fi
7128 case ${TARGET_SYSTEM_ROOT} in
7129 "${test_prefix}"|"${test_prefix}/"*|\
7130 '${exec_prefix}'|'${exec_prefix}/'*)
7131 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7132 TARGET_SYSTEM_ROOT_DEFINE="$t"
7133 ;;
7134 esac
7135
7136 else
7137
7138 TARGET_SYSTEM_ROOT=
7139 TARGET_SYSTEM_ROOT_DEFINE=
7140 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7141
7142 fi;
7143
7144
7145
7146
7147 # Build with intermodule optimisations
7148 # Check whether --enable-intermodule or --disable-intermodule was given.
7149 if test "${enable_intermodule+set}" = set; then
7150 enableval="$enable_intermodule"
7151 case ${enable_intermodule} in
7152 yes) onestep="-onestep";;
7153 *) onestep="";;
7154 esac
7155 else
7156 onestep=""
7157 fi;
7158
7159
7160 # Sanity check enable_languages in case someone does not run the toplevel
7161 # configure # script.
7162 # Check whether --enable-languages or --disable-languages was given.
7163 if test "${enable_languages+set}" = set; then
7164 enableval="$enable_languages"
7165 case ,${enable_languages}, in
7166 ,,|,yes,)
7167 # go safe -- we cannot be much sure without the toplevel
7168 # configure's
7169 # analysis of which target libs are present and usable
7170 enable_languages=c
7171 ;;
7172 *,all,*)
7173 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7174 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7175 { (exit 1); exit 1; }; }
7176 ;;
7177 *,c,*)
7178 ;;
7179 *)
7180 enable_languages=c,${enable_languages}
7181 ;;
7182 esac
7183 else
7184 enable_languages=c
7185 fi;
7186
7187 subdirs=
7188 for lang in ${srcdir}/*/config-lang.in
7189 do
7190 case $lang in
7191 # The odd quoting in the next line works around
7192 # an apparent bug in bash 1.12 on linux.
7193 ${srcdir}/[*]/config-lang.in) ;;
7194 *)
7195 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7196 if test "x$lang_alias" = x
7197 then
7198 echo "$lang doesn't set \$language." 1>&2
7199 exit 1
7200 fi
7201 case ",$enable_languages," in
7202 *,$lang_alias,*)
7203 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7204 esac
7205 ;;
7206 esac
7207 done
7208
7209
7210 # -------------------------
7211 # Checks for other programs
7212 # -------------------------
7213
7214 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7215 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7216 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7217 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 cat >conftest.make <<\_ACEOF
7221 all:
7222 @echo 'ac_maketemp="$(MAKE)"'
7223 _ACEOF
7224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7225 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7226 if test -n "$ac_maketemp"; then
7227 eval ac_cv_prog_make_${ac_make}_set=yes
7228 else
7229 eval ac_cv_prog_make_${ac_make}_set=no
7230 fi
7231 rm -f conftest.make
7232 fi
7233 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7234 echo "$as_me:$LINENO: result: yes" >&5
7235 echo "${ECHO_T}yes" >&6
7236 SET_MAKE=
7237 else
7238 echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6
7240 SET_MAKE="MAKE=${MAKE-make}"
7241 fi
7242
7243
7244 # Find some useful tools
7245 for ac_prog in gawk mawk nawk awk
7246 do
7247 # Extract the first word of "$ac_prog", so it can be a program name with args.
7248 set dummy $ac_prog; ac_word=$2
7249 echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7251 if test "${ac_cv_prog_AWK+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254 if test -n "$AWK"; then
7255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264 ac_cv_prog_AWK="$ac_prog"
7265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 break 2
7267 fi
7268 done
7269 done
7270
7271 fi
7272 fi
7273 AWK=$ac_cv_prog_AWK
7274 if test -n "$AWK"; then
7275 echo "$as_me:$LINENO: result: $AWK" >&5
7276 echo "${ECHO_T}$AWK" >&6
7277 else
7278 echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6
7280 fi
7281
7282 test -n "$AWK" && break
7283 done
7284
7285 # We need awk to create options.c and options.h.
7286 # Bail out if it's missing.
7287 case ${AWK} in
7288 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7289 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7290 { (exit 1); exit 1; }; } ;;
7291 esac
7292
7293 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7294 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7295 if test "${gcc_cv_prog_LN_S+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 rm -f conftestdata_t
7299 echo >conftestdata_f
7300 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7301 then
7302 gcc_cv_prog_LN_S="ln -s"
7303 else
7304 if ln conftestdata_f conftestdata_t 2>/dev/null
7305 then
7306 gcc_cv_prog_LN_S=ln
7307 else
7308 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7309 then
7310 gcc_cv_prog_LN_S="cp -p"
7311 else
7312 gcc_cv_prog_LN_S=cp
7313 fi
7314 fi
7315 fi
7316 rm -f conftestdata_f conftestdata_t
7317
7318 fi
7319 LN_S="$gcc_cv_prog_LN_S"
7320 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7321 echo "$as_me:$LINENO: result: yes" >&5
7322 echo "${ECHO_T}yes" >&6
7323 else
7324 if test "$gcc_cv_prog_LN_S" = "ln"; then
7325 echo "$as_me:$LINENO: result: no, using ln" >&5
7326 echo "${ECHO_T}no, using ln" >&6
7327 else
7328 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7329 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7330 fi
7331 fi
7332
7333 echo "$as_me:$LINENO: checking whether ln works" >&5
7334 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7335 if test "${acx_cv_prog_LN+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 rm -f conftestdata_t
7339 echo >conftestdata_f
7340 if ln conftestdata_f conftestdata_t 2>/dev/null
7341 then
7342 acx_cv_prog_LN=ln
7343 else
7344 acx_cv_prog_LN=no
7345 fi
7346 rm -f conftestdata_f conftestdata_t
7347
7348 fi
7349 if test $acx_cv_prog_LN = no; then
7350 LN="$LN_S"
7351 echo "$as_me:$LINENO: result: no, using $LN" >&5
7352 echo "${ECHO_T}no, using $LN" >&6
7353 else
7354 LN="$acx_cv_prog_LN"
7355 echo "$as_me:$LINENO: result: yes" >&5
7356 echo "${ECHO_T}yes" >&6
7357 fi
7358
7359 if test -n "$ac_tool_prefix"; then
7360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7362 echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7364 if test "${ac_cv_prog_RANLIB+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367 if test -n "$RANLIB"; then
7368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381 done
7382 done
7383
7384 fi
7385 fi
7386 RANLIB=$ac_cv_prog_RANLIB
7387 if test -n "$RANLIB"; then
7388 echo "$as_me:$LINENO: result: $RANLIB" >&5
7389 echo "${ECHO_T}$RANLIB" >&6
7390 else
7391 echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6
7393 fi
7394
7395 fi
7396 if test -z "$ac_cv_prog_RANLIB"; then
7397 ac_ct_RANLIB=$RANLIB
7398 # Extract the first word of "ranlib", so it can be a program name with args.
7399 set dummy ranlib; ac_word=$2
7400 echo "$as_me:$LINENO: checking for $ac_word" >&5
7401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7402 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405 if test -n "$ac_ct_RANLIB"; then
7406 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7407 else
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 for as_dir in $PATH
7410 do
7411 IFS=$as_save_IFS
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415 ac_cv_prog_ac_ct_RANLIB="ranlib"
7416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 break 2
7418 fi
7419 done
7420 done
7421
7422 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7423 fi
7424 fi
7425 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7426 if test -n "$ac_ct_RANLIB"; then
7427 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7428 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7429 else
7430 echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6
7432 fi
7433
7434 RANLIB=$ac_ct_RANLIB
7435 else
7436 RANLIB="$ac_cv_prog_RANLIB"
7437 fi
7438
7439 case "${host}" in
7440 *-*-darwin*)
7441 # By default, the Darwin ranlib will not treat common symbols as
7442 # definitions when building the archive table of contents. Other
7443 # ranlibs do that; pass an option to the Darwin ranlib that makes
7444 # it behave similarly.
7445 ranlib_flags="-c"
7446 ;;
7447 *)
7448 ranlib_flags=""
7449 esac
7450
7451
7452 # Find a good install program. We prefer a C program (faster),
7453 # so one script is as good as another. But avoid the broken or
7454 # incompatible versions:
7455 # SysV /etc/install, /usr/sbin/install
7456 # SunOS /usr/etc/install
7457 # IRIX /sbin/install
7458 # AIX /bin/install
7459 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7460 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7461 # ./install, which can be erroneously created by make from ./install.sh.
7462 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7463 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7464 if test -z "$INSTALL"; then
7465 if test "${ac_cv_path_install+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7469 for ac_dir in $PATH; do
7470 # Account for people who put trailing slashes in PATH elements.
7471 case "$ac_dir/" in
7472 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7473 *)
7474 # OSF1 and SCO ODT 3.0 have their own names for install.
7475 for ac_prog in ginstall scoinst install; do
7476 if test -f $ac_dir/$ac_prog; then
7477 if test $ac_prog = install &&
7478 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7479 # AIX install. It has an incompatible calling convention.
7480 # OSF/1 installbsd also uses dspmsg, but is usable.
7481 :
7482 else
7483 ac_cv_path_install="$ac_dir/$ac_prog -c"
7484 break 2
7485 fi
7486 fi
7487 done
7488 ;;
7489 esac
7490 done
7491 IFS="$ac_save_IFS"
7492
7493 fi
7494 if test "${ac_cv_path_install+set}" = set; then
7495 INSTALL="$ac_cv_path_install"
7496 else
7497 # As a last resort, use the slow shell script. We don't cache a
7498 # path for INSTALL within a source directory, because that will
7499 # break other packages using the cache if that directory is
7500 # removed, or if the path is relative.
7501 INSTALL="$ac_install_sh"
7502 fi
7503 fi
7504 echo "$as_me:$LINENO: result: $INSTALL" >&5
7505 echo "${ECHO_T}$INSTALL" >&6
7506
7507 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7508 # It thinks the first close brace ends the variable substitution.
7509 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7510
7511 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7512
7513
7514 # See if cmp has --ignore-initial.
7515 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7516 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7517 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520 echo abfoo >t1
7521 echo cdfoo >t2
7522 gcc_cv_prog_cmp_skip=slowcompare
7523 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7524 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7525 :
7526 else
7527 gcc_cv_prog_cmp_skip=gnucompare
7528 fi
7529 fi
7530 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7531 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7532 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7533 :
7534 else
7535 gcc_cv_prog_cmp_skip=fastcompare
7536 fi
7537 fi
7538 fi
7539 rm t1 t2
7540
7541 fi
7542 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7543 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7544 make_compare_target=$gcc_cv_prog_cmp_skip
7545
7546
7547
7548 # See if we have the mktemp command.
7549 # Extract the first word of "mktemp", so it can be a program name with args.
7550 set dummy mktemp; ac_word=$2
7551 echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7553 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556 if test -n "$have_mktemp_command"; then
7557 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_prog_have_mktemp_command="yes"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570 done
7571 done
7572
7573 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7574 fi
7575 fi
7576 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7577 if test -n "$have_mktemp_command"; then
7578 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7579 echo "${ECHO_T}$have_mktemp_command" >&6
7580 else
7581 echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6
7583 fi
7584
7585
7586 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7587
7588 # See if makeinfo has been installed and is modern enough
7589 # that we can use it.
7590
7591 ac_executable_extensions="$build_exeext"
7592
7593 # Extract the first word of "makeinfo", so it can be a program name with args.
7594 set dummy makeinfo; ac_word=$2
7595 echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7597 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 if test -n "$MAKEINFO"; then
7601 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_MAKEINFO="makeinfo"
7611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7613 fi
7614 done
7615 done
7616
7617 fi
7618 fi
7619 MAKEINFO=$ac_cv_prog_MAKEINFO
7620 if test -n "$MAKEINFO"; then
7621 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7622 echo "${ECHO_T}$MAKEINFO" >&6
7623 else
7624 echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6
7626 fi
7627
7628 if test -n "$MAKEINFO"; then
7629 # Found it, now check the version.
7630 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7631 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7632 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635 ac_prog_version=`$MAKEINFO --version 2>&1 |
7636 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7637 echo "configure:7637: version of makeinfo is $ac_prog_version" >&5
7638 case $ac_prog_version in
7639 '') gcc_cv_prog_makeinfo_modern=no;;
7640 4.[4-9]*)
7641 gcc_cv_prog_makeinfo_modern=yes;;
7642 *) gcc_cv_prog_makeinfo_modern=no;;
7643 esac
7644
7645 fi
7646 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7647 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7648 else
7649 gcc_cv_prog_makeinfo_modern=no
7650 fi
7651
7652 if test $gcc_cv_prog_makeinfo_modern = no; then
7653 MAKEINFO="$MISSING makeinfo"
7654 { echo "$as_me:$LINENO: WARNING:
7655 *** Makeinfo is missing or too old.
7656 *** Info documentation will not be built." >&5
7657 echo "$as_me: WARNING:
7658 *** Makeinfo is missing or too old.
7659 *** Info documentation will not be built." >&2;}
7660 BUILD_INFO=
7661 else
7662 BUILD_INFO=info
7663 fi
7664
7665
7666 # Is pod2man recent enough to regenerate manpages?
7667 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7668 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7669 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7670 echo "$as_me:$LINENO: result: yes" >&5
7671 echo "${ECHO_T}yes" >&6
7672 GENERATED_MANPAGES=generated-manpages
7673 else
7674 echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6
7676 GENERATED_MANPAGES=
7677 fi
7678
7679
7680 # How about lex?
7681 for ac_prog in flex
7682 do
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7687 if test "${ac_cv_prog_FLEX+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690 if test -n "$FLEX"; then
7691 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700 ac_cv_prog_FLEX="$ac_prog"
7701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 break 2
7703 fi
7704 done
7705 done
7706
7707 fi
7708 fi
7709 FLEX=$ac_cv_prog_FLEX
7710 if test -n "$FLEX"; then
7711 echo "$as_me:$LINENO: result: $FLEX" >&5
7712 echo "${ECHO_T}$FLEX" >&6
7713 else
7714 echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6
7716 fi
7717
7718 test -n "$FLEX" && break
7719 done
7720 test -n "$FLEX" || FLEX="$MISSING flex"
7721
7722
7723 # Bison?
7724 for ac_prog in bison
7725 do
7726 # Extract the first word of "$ac_prog", so it can be a program name with args.
7727 set dummy $ac_prog; ac_word=$2
7728 echo "$as_me:$LINENO: checking for $ac_word" >&5
7729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7730 if test "${ac_cv_prog_BISON+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733 if test -n "$BISON"; then
7734 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_BISON="$ac_prog"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747 done
7748 done
7749
7750 fi
7751 fi
7752 BISON=$ac_cv_prog_BISON
7753 if test -n "$BISON"; then
7754 echo "$as_me:$LINENO: result: $BISON" >&5
7755 echo "${ECHO_T}$BISON" >&6
7756 else
7757 echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6
7759 fi
7760
7761 test -n "$BISON" && break
7762 done
7763 test -n "$BISON" || BISON="$MISSING bison"
7764
7765
7766 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7767 # check for build == host before using them.
7768
7769 # NM
7770 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7771 && test -d ../binutils ; then
7772 NM='$(objdir)/../binutils/nm-new'
7773 else
7774 # Extract the first word of "nm", so it can be a program name with args.
7775 set dummy nm; ac_word=$2
7776 echo "$as_me:$LINENO: checking for $ac_word" >&5
7777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7778 if test "${ac_cv_prog_NM+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781 if test -n "$NM"; then
7782 ac_cv_prog_NM="$NM" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791 ac_cv_prog_NM="nm"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7794 fi
7795 done
7796 done
7797
7798 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7799 fi
7800 fi
7801 NM=$ac_cv_prog_NM
7802 if test -n "$NM"; then
7803 echo "$as_me:$LINENO: result: $NM" >&5
7804 echo "${ECHO_T}$NM" >&6
7805 else
7806 echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7808 fi
7809
7810 fi
7811
7812 # AR
7813 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7814 && test -d ../binutils ; then
7815 AR='$(objdir)/../binutils/ar'
7816 else
7817 # Extract the first word of "ar", so it can be a program name with args.
7818 set dummy ar; ac_word=$2
7819 echo "$as_me:$LINENO: checking for $ac_word" >&5
7820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7821 if test "${ac_cv_prog_AR+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 if test -n "$AR"; then
7825 ac_cv_prog_AR="$AR" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_AR="ar"
7835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838 done
7839 done
7840
7841 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7842 fi
7843 fi
7844 AR=$ac_cv_prog_AR
7845 if test -n "$AR"; then
7846 echo "$as_me:$LINENO: result: $AR" >&5
7847 echo "${ECHO_T}$AR" >&6
7848 else
7849 echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6
7851 fi
7852
7853 fi
7854
7855
7856 # --------------------
7857 # Checks for C headers
7858 # --------------------
7859
7860 echo "$as_me:$LINENO: checking for GNU C library" >&5
7861 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7862 if test "${gcc_cv_glibc+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h. */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 #include <features.h>
7872 int
7873 main ()
7874 {
7875
7876 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7877 #error Not a GNU C library system
7878 #endif
7879 ;
7880 return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7885 (eval $ac_compile) 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -z "$ac_c_werror_flag"
7893 || test ! -s conftest.err'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest.$ac_objext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 gcc_cv_glibc=yes
7906 else
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 gcc_cv_glibc=no
7911 fi
7912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7913 fi
7914
7915 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7916 echo "${ECHO_T}$gcc_cv_glibc" >&6
7917 if test $gcc_cv_glibc = yes; then
7918
7919 cat >>confdefs.h <<\_ACEOF
7920 #define _GNU_SOURCE 1
7921 _ACEOF
7922
7923 fi
7924
7925 # Need to reject headers which give warnings, so that the -Werror bootstrap
7926 # works later. *sigh* This needs to come before all header checks.
7927
7928 ac_c_preproc_warn_flag=yes
7929
7930 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7931 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7932 if test "${ac_cv_header_stdc+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935 cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h. */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7941 #include <stdlib.h>
7942 #include <stdarg.h>
7943 #include <string.h>
7944 #include <float.h>
7945
7946 int
7947 main ()
7948 {
7949
7950 ;
7951 return 0;
7952 }
7953 _ACEOF
7954 rm -f conftest.$ac_objext
7955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7956 (eval $ac_compile) 2>conftest.er1
7957 ac_status=$?
7958 grep -v '^ *+' conftest.er1 >conftest.err
7959 rm -f conftest.er1
7960 cat conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } &&
7963 { ac_try='test -z "$ac_c_werror_flag"
7964 || test ! -s conftest.err'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 (eval $ac_try) 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; } &&
7970 { ac_try='test -s conftest.$ac_objext'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7976 ac_cv_header_stdc=yes
7977 else
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 ac_cv_header_stdc=no
7982 fi
7983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7984
7985 if test $ac_cv_header_stdc = yes; then
7986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7987 cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 #include <string.h>
7994
7995 _ACEOF
7996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7997 $EGREP "memchr" >/dev/null 2>&1; then
7998 :
7999 else
8000 ac_cv_header_stdc=no
8001 fi
8002 rm -f conftest*
8003
8004 fi
8005
8006 if test $ac_cv_header_stdc = yes; then
8007 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8008 cat >conftest.$ac_ext <<_ACEOF
8009 /* confdefs.h. */
8010 _ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8014 #include <stdlib.h>
8015
8016 _ACEOF
8017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8018 $EGREP "free" >/dev/null 2>&1; then
8019 :
8020 else
8021 ac_cv_header_stdc=no
8022 fi
8023 rm -f conftest*
8024
8025 fi
8026
8027 if test $ac_cv_header_stdc = yes; then
8028 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8029 if test "$cross_compiling" = yes; then
8030 :
8031 else
8032 cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h. */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h. */
8038 #include <ctype.h>
8039 #if ((' ' & 0x0FF) == 0x020)
8040 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8041 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8042 #else
8043 # define ISLOWER(c) \
8044 (('a' <= (c) && (c) <= 'i') \
8045 || ('j' <= (c) && (c) <= 'r') \
8046 || ('s' <= (c) && (c) <= 'z'))
8047 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8048 #endif
8049
8050 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8051 int
8052 main ()
8053 {
8054 int i;
8055 for (i = 0; i < 256; i++)
8056 if (XOR (islower (i), ISLOWER (i))
8057 || toupper (i) != TOUPPER (i))
8058 exit(2);
8059 exit (0);
8060 }
8061 _ACEOF
8062 rm -f conftest$ac_exeext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8064 (eval $ac_link) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069 (eval $ac_try) 2>&5
8070 ac_status=$?
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 :
8074 else
8075 echo "$as_me: program exited with status $ac_status" >&5
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8078
8079 ( exit $ac_status )
8080 ac_cv_header_stdc=no
8081 fi
8082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8083 fi
8084 fi
8085 fi
8086 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8087 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8088 if test $ac_cv_header_stdc = yes; then
8089
8090 cat >>confdefs.h <<\_ACEOF
8091 #define STDC_HEADERS 1
8092 _ACEOF
8093
8094 fi
8095
8096 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8097 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8098 if test "${ac_cv_header_time+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101 cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h. */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 #include <sys/types.h>
8108 #include <sys/time.h>
8109 #include <time.h>
8110
8111 int
8112 main ()
8113 {
8114 if ((struct tm *) 0)
8115 return 0;
8116 ;
8117 return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8122 (eval $ac_compile) 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -z "$ac_c_werror_flag"
8130 || test ! -s conftest.err'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; } &&
8136 { ac_try='test -s conftest.$ac_objext'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 ac_cv_header_time=yes
8143 else
8144 echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147 ac_cv_header_time=no
8148 fi
8149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8150 fi
8151 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8152 echo "${ECHO_T}$ac_cv_header_time" >&6
8153 if test $ac_cv_header_time = yes; then
8154
8155 cat >>confdefs.h <<\_ACEOF
8156 #define TIME_WITH_SYS_TIME 1
8157 _ACEOF
8158
8159 fi
8160
8161 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8162 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8163 if test "${gcc_cv_header_string+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h. */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 #include <string.h>
8173 #include <strings.h>
8174 int
8175 main ()
8176 {
8177
8178 ;
8179 return 0;
8180 }
8181 _ACEOF
8182 rm -f conftest.$ac_objext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8184 (eval $ac_compile) 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } &&
8191 { ac_try='test -z "$ac_c_werror_flag"
8192 || test ! -s conftest.err'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 (eval $ac_try) 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; } &&
8198 { ac_try='test -s conftest.$ac_objext'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; }; then
8204 gcc_cv_header_string=yes
8205 else
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209 gcc_cv_header_string=no
8210 fi
8211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8212 fi
8213 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8214 echo "${ECHO_T}$gcc_cv_header_string" >&6
8215 if test $gcc_cv_header_string = yes; then
8216
8217 cat >>confdefs.h <<\_ACEOF
8218 #define STRING_WITH_STRINGS 1
8219 _ACEOF
8220
8221 fi
8222
8223 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8224 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8225 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h. */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 #include <sys/types.h>
8235 #include <sys/wait.h>
8236 #ifndef WEXITSTATUS
8237 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8238 #endif
8239 #ifndef WIFEXITED
8240 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8241 #endif
8242
8243 int
8244 main ()
8245 {
8246 int s;
8247 wait (&s);
8248 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8249 ;
8250 return 0;
8251 }
8252 _ACEOF
8253 rm -f conftest.$ac_objext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8255 (eval $ac_compile) 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag"
8263 || test ! -s conftest.err'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 (eval $ac_try) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest.$ac_objext'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 (eval $ac_try) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 ac_cv_header_sys_wait_h=yes
8276 else
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280 ac_cv_header_sys_wait_h=no
8281 fi
8282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8283 fi
8284 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8285 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8286 if test $ac_cv_header_sys_wait_h = yes; then
8287
8288 cat >>confdefs.h <<\_ACEOF
8289 #define HAVE_SYS_WAIT_H 1
8290 _ACEOF
8291
8292 fi
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8317 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8318 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8319 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8320 do
8321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8322 echo "$as_me:$LINENO: checking for $ac_header" >&5
8323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327 cat >conftest.$ac_ext <<_ACEOF
8328 /* confdefs.h. */
8329 _ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8333 #include <$ac_header>
8334 _ACEOF
8335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } >/dev/null; then
8343 if test -s conftest.err; then
8344 ac_cpp_err=$ac_c_preproc_warn_flag
8345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8346 else
8347 ac_cpp_err=
8348 fi
8349 else
8350 ac_cpp_err=yes
8351 fi
8352 if test -z "$ac_cpp_err"; then
8353 eval "$as_ac_Header=yes"
8354 else
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358 eval "$as_ac_Header=no"
8359 fi
8360 rm -f conftest.err conftest.$ac_ext
8361 fi
8362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8365 cat >>confdefs.h <<_ACEOF
8366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8367 _ACEOF
8368
8369 fi
8370 done
8371
8372
8373 # Check for thread headers.
8374 echo "$as_me:$LINENO: checking for thread.h" >&5
8375 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8376 if test "${ac_cv_header_thread_h+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h. */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 #include <thread.h>
8386 _ACEOF
8387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } >/dev/null; then
8395 if test -s conftest.err; then
8396 ac_cpp_err=$ac_c_preproc_warn_flag
8397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8398 else
8399 ac_cpp_err=
8400 fi
8401 else
8402 ac_cpp_err=yes
8403 fi
8404 if test -z "$ac_cpp_err"; then
8405 ac_cv_header_thread_h=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8409
8410 ac_cv_header_thread_h=no
8411 fi
8412 rm -f conftest.err conftest.$ac_ext
8413 fi
8414 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8415 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8416 if test $ac_cv_header_thread_h = yes; then
8417 have_thread_h=yes
8418 else
8419 have_thread_h=
8420 fi
8421
8422 echo "$as_me:$LINENO: checking for pthread.h" >&5
8423 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8424 if test "${ac_cv_header_pthread_h+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 #include <pthread.h>
8434 _ACEOF
8435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } >/dev/null; then
8443 if test -s conftest.err; then
8444 ac_cpp_err=$ac_c_preproc_warn_flag
8445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8446 else
8447 ac_cpp_err=
8448 fi
8449 else
8450 ac_cpp_err=yes
8451 fi
8452 if test -z "$ac_cpp_err"; then
8453 ac_cv_header_pthread_h=yes
8454 else
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458 ac_cv_header_pthread_h=no
8459 fi
8460 rm -f conftest.err conftest.$ac_ext
8461 fi
8462 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8463 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8464 if test $ac_cv_header_pthread_h = yes; then
8465 have_pthread_h=yes
8466 else
8467 have_pthread_h=
8468 fi
8469
8470
8471 # These tests can't be done till we know if we have limits.h.
8472 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8473 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8474 if test "${gcc_cv_decl_char_bit+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 else
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 #ifdef HAVE_LIMITS_H
8484 #include <limits.h>
8485 #endif
8486 #ifdef CHAR_BIT
8487 found
8488 #endif
8489 _ACEOF
8490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8491 $EGREP "found" >/dev/null 2>&1; then
8492 gcc_cv_decl_char_bit=yes
8493 else
8494 gcc_cv_decl_char_bit=no
8495 fi
8496 rm -f conftest*
8497
8498
8499 fi
8500 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8501 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8502 if test $gcc_cv_decl_char_bit = no; then
8503 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8504 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8505 if test "${gcc_cv_c_nbby+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 else
8508 i=8
8509 gcc_cv_c_nbby=
8510 while test $i -lt 65; do
8511 cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h. */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517
8518 int
8519 main ()
8520 {
8521 switch(0) {
8522 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8523 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8524 ; }
8525 ;
8526 return 0;
8527 }
8528 _ACEOF
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531 (eval $ac_compile) 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try='test -z "$ac_c_werror_flag"
8539 || test ! -s conftest.err'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try='test -s conftest.$ac_objext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 gcc_cv_c_nbby=$i; break
8552 else
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8555
8556 fi
8557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8558 i=`expr $i + 1`
8559 done
8560 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8561
8562 fi
8563 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8564 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8565 if test $gcc_cv_c_nbby = failed; then
8566 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8567 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8568 { (exit 1); exit 1; }; }
8569 else
8570
8571 cat >>confdefs.h <<_ACEOF
8572 #define CHAR_BIT $gcc_cv_c_nbby
8573 _ACEOF
8574
8575 fi
8576 fi
8577 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8578 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8579 if test "${ac_cv_c_bigendian+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582 # See if sys/param.h defines the BYTE_ORDER macro.
8583 cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h. */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8589 #include <sys/types.h>
8590 #include <sys/param.h>
8591
8592 int
8593 main ()
8594 {
8595 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8596 bogus endian macros
8597 #endif
8598
8599 ;
8600 return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag"
8613 || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 # It does; now see whether it defined to BIG_ENDIAN or not.
8626 cat >conftest.$ac_ext <<_ACEOF
8627 /* confdefs.h. */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8632 #include <sys/types.h>
8633 #include <sys/param.h>
8634
8635 int
8636 main ()
8637 {
8638 #if BYTE_ORDER != BIG_ENDIAN
8639 not big endian
8640 #endif
8641
8642 ;
8643 return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8648 (eval $ac_compile) 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag"
8656 || test ! -s conftest.err'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest.$ac_objext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_c_bigendian=yes
8669 else
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 ac_cv_c_bigendian=no
8674 fi
8675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8676 else
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8679
8680 # It does not; compile a test program.
8681 if test "$cross_compiling" = yes; then
8682 # try to guess the endianness by grepping values into an object file
8683 ac_cv_c_bigendian=unknown
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8691 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8692 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8693 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8694 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8695 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8696 int
8697 main ()
8698 {
8699 _ascii (); _ebcdic ();
8700 ;
8701 return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8706 (eval $ac_compile) 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag"
8714 || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest.$ac_objext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8727 ac_cv_c_bigendian=yes
8728 fi
8729 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8730 if test "$ac_cv_c_bigendian" = unknown; then
8731 ac_cv_c_bigendian=no
8732 else
8733 # finding both strings is unlikely to happen, but who knows?
8734 ac_cv_c_bigendian=unknown
8735 fi
8736 fi
8737 else
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8740
8741 fi
8742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8743 else
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 int
8751 main ()
8752 {
8753 /* Are we little or big endian? From Harbison&Steele. */
8754 union
8755 {
8756 long l;
8757 char c[sizeof (long)];
8758 } u;
8759 u.l = 1;
8760 exit (u.c[sizeof (long) - 1] == 1);
8761 }
8762 _ACEOF
8763 rm -f conftest$ac_exeext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765 (eval $ac_link) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_cv_c_bigendian=no
8775 else
8776 echo "$as_me: program exited with status $ac_status" >&5
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 ( exit $ac_status )
8781 ac_cv_c_bigendian=yes
8782 fi
8783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8784 fi
8785 fi
8786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8787 fi
8788 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8789 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8790 case $ac_cv_c_bigendian in
8791 yes)
8792
8793 cat >>confdefs.h <<\_ACEOF
8794 #define WORDS_BIGENDIAN 1
8795 _ACEOF
8796 ;;
8797 no)
8798 ;;
8799 *)
8800 { { echo "$as_me:$LINENO: error: unknown endianness
8801 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8802 echo "$as_me: error: unknown endianness
8803 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8804 { (exit 1); exit 1; }; } ;;
8805 esac
8806
8807
8808 # --------
8809 # UNSORTED
8810 # --------
8811
8812 # Stage specific cflags for build.
8813 stage1_cflags=
8814 case $build in
8815 vax-*-*)
8816 if test x$GCC = xyes
8817 then
8818 stage1_cflags="-Wa,-J"
8819 else
8820 stage1_cflags="-J"
8821 fi
8822 ;;
8823 powerpc-*-darwin*)
8824 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8825 # sources; use -no-cpp-precomp to get to GNU cpp.
8826 # Apple's GCC has bugs in designated initializer handling, so disable
8827 # that too.
8828 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8829 ;;
8830 esac
8831
8832
8833 # These libraries may be used by collect2.
8834 # We may need a special search path to get them linked.
8835 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8836 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8837 if test "${gcc_cv_collect2_libs+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840 save_LIBS="$LIBS"
8841 for libs in '' -lld -lmld \
8842 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8843 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8844 do
8845 LIBS="$libs"
8846 cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h. */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8852
8853 /* Override any gcc2 internal prototype to avoid an error. */
8854 #ifdef __cplusplus
8855 extern "C"
8856 #endif
8857 /* We use char because int might match the return type of a gcc2
8858 builtin and then its argument prototype would still apply. */
8859 char ldopen ();
8860 int
8861 main ()
8862 {
8863 ldopen ();
8864 ;
8865 return 0;
8866 }
8867 _ACEOF
8868 rm -f conftest.$ac_objext conftest$ac_exeext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8870 (eval $ac_link) 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
8877 { ac_try='test -z "$ac_c_werror_flag"
8878 || test ! -s conftest.err'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; } &&
8884 { ac_try='test -s conftest$ac_exeext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 (eval $ac_try) 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 gcc_cv_collect2_libs="$libs"; break
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 fi
8896 rm -f conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898 done
8899 LIBS="$save_LIBS"
8900 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8901 fi
8902 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8903 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8904 case $gcc_cv_collect2_libs in
8905 "none required") ;;
8906 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8907 esac
8908
8909
8910 # When building Ada code on Alpha, we need exc_resume which is usually in
8911 # -lexc. So test for it.
8912 save_LIBS="$LIBS"
8913 LIBS=
8914 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8915 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8916 if test "${ac_cv_search_exc_resume+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919 ac_func_search_save_LIBS=$LIBS
8920 ac_cv_search_exc_resume=no
8921 cat >conftest.$ac_ext <<_ACEOF
8922 /* confdefs.h. */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8927
8928 /* Override any gcc2 internal prototype to avoid an error. */
8929 #ifdef __cplusplus
8930 extern "C"
8931 #endif
8932 /* We use char because int might match the return type of a gcc2
8933 builtin and then its argument prototype would still apply. */
8934 char exc_resume ();
8935 int
8936 main ()
8937 {
8938 exc_resume ();
8939 ;
8940 return 0;
8941 }
8942 _ACEOF
8943 rm -f conftest.$ac_objext conftest$ac_exeext
8944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945 (eval $ac_link) 2>conftest.er1
8946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } &&
8952 { ac_try='test -z "$ac_c_werror_flag"
8953 || test ! -s conftest.err'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 (eval $ac_try) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; } &&
8959 { ac_try='test -s conftest$ac_exeext'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 (eval $ac_try) 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; }; then
8965 ac_cv_search_exc_resume="none required"
8966 else
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8969
8970 fi
8971 rm -f conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8973 if test "$ac_cv_search_exc_resume" = no; then
8974 for ac_lib in exc; do
8975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982
8983 /* Override any gcc2 internal prototype to avoid an error. */
8984 #ifdef __cplusplus
8985 extern "C"
8986 #endif
8987 /* We use char because int might match the return type of a gcc2
8988 builtin and then its argument prototype would still apply. */
8989 char exc_resume ();
8990 int
8991 main ()
8992 {
8993 exc_resume ();
8994 ;
8995 return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000 (eval $ac_link) 2>conftest.er1
9001 ac_status=$?
9002 grep -v '^ *+' conftest.er1 >conftest.err
9003 rm -f conftest.er1
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -z "$ac_c_werror_flag"
9008 || test ! -s conftest.err'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; } &&
9014 { ac_try='test -s conftest$ac_exeext'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016 (eval $ac_try) 2>&5
9017 ac_status=$?
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9020 ac_cv_search_exc_resume="-l$ac_lib"
9021 break
9022 else
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9025
9026 fi
9027 rm -f conftest.err conftest.$ac_objext \
9028 conftest$ac_exeext conftest.$ac_ext
9029 done
9030 fi
9031 LIBS=$ac_func_search_save_LIBS
9032 fi
9033 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9034 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9035 if test "$ac_cv_search_exc_resume" != no; then
9036 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9037
9038 fi
9039
9040 GNAT_LIBEXC="$LIBS"
9041 LIBS="$save_LIBS"
9042
9043
9044 # Some systems put ldexp and frexp in libm instead of libc; assume
9045 # they're both in the same place. jcf-dump needs them.
9046 save_LIBS="$LIBS"
9047 LIBS=
9048 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9049 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9050 if test "${ac_cv_search_ldexp+set}" = set; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 else
9053 ac_func_search_save_LIBS=$LIBS
9054 ac_cv_search_ldexp=no
9055 cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h. */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061
9062 /* Override any gcc2 internal prototype to avoid an error. */
9063 #ifdef __cplusplus
9064 extern "C"
9065 #endif
9066 /* We use char because int might match the return type of a gcc2
9067 builtin and then its argument prototype would still apply. */
9068 char ldexp ();
9069 int
9070 main ()
9071 {
9072 ldexp ();
9073 ;
9074 return 0;
9075 }
9076 _ACEOF
9077 rm -f conftest.$ac_objext conftest$ac_exeext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079 (eval $ac_link) 2>conftest.er1
9080 ac_status=$?
9081 grep -v '^ *+' conftest.er1 >conftest.err
9082 rm -f conftest.er1
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } &&
9086 { ac_try='test -z "$ac_c_werror_flag"
9087 || test ! -s conftest.err'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 (eval $ac_try) 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest$ac_exeext'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 (eval $ac_try) 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9099 ac_cv_search_ldexp="none required"
9100 else
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9103
9104 fi
9105 rm -f conftest.err conftest.$ac_objext \
9106 conftest$ac_exeext conftest.$ac_ext
9107 if test "$ac_cv_search_ldexp" = no; then
9108 for ac_lib in m; do
9109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h. */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9116
9117 /* Override any gcc2 internal prototype to avoid an error. */
9118 #ifdef __cplusplus
9119 extern "C"
9120 #endif
9121 /* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9123 char ldexp ();
9124 int
9125 main ()
9126 {
9127 ldexp ();
9128 ;
9129 return 0;
9130 }
9131 _ACEOF
9132 rm -f conftest.$ac_objext conftest$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try='test -z "$ac_c_werror_flag"
9142 || test ! -s conftest.err'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_search_ldexp="-l$ac_lib"
9155 break
9156 else
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9159
9160 fi
9161 rm -f conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9163 done
9164 fi
9165 LIBS=$ac_func_search_save_LIBS
9166 fi
9167 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9168 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9169 if test "$ac_cv_search_ldexp" != no; then
9170 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9171
9172 fi
9173
9174 LDEXP_LIB="$LIBS"
9175 LIBS="$save_LIBS"
9176
9177
9178 # Use <inttypes.h> only if it exists,
9179 # doesn't clash with <sys/types.h>, and declares intmax_t.
9180 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9181 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9182 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <sys/types.h>
9192 #include <inttypes.h>
9193 int
9194 main ()
9195 {
9196 intmax_t i = -1;
9197 ;
9198 return 0;
9199 }
9200 _ACEOF
9201 rm -f conftest.$ac_objext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203 (eval $ac_compile) 2>conftest.er1
9204 ac_status=$?
9205 grep -v '^ *+' conftest.er1 >conftest.err
9206 rm -f conftest.er1
9207 cat conftest.err >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } &&
9210 { ac_try='test -z "$ac_c_werror_flag"
9211 || test ! -s conftest.err'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } &&
9217 { ac_try='test -s conftest.$ac_objext'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9223 gcc_cv_header_inttypes_h=yes
9224 else
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9227
9228 gcc_cv_header_inttypes_h=no
9229 fi
9230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231 fi
9232
9233 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9234 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9235 if test $gcc_cv_header_inttypes_h = yes; then
9236
9237 cat >>confdefs.h <<\_ACEOF
9238 #define HAVE_INTTYPES_H 1
9239 _ACEOF
9240
9241 fi
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9281 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9282 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9283 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
9284 do
9285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9286 echo "$as_me:$LINENO: checking for $ac_func" >&5
9287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9288 if eval "test \"\${$as_ac_var+set}\" = set"; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9299 #define $ac_func innocuous_$ac_func
9300
9301 /* System header to define __stub macros and hopefully few prototypes,
9302 which can conflict with char $ac_func (); below.
9303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9304 <limits.h> exists even on freestanding compilers. */
9305
9306 #ifdef __STDC__
9307 # include <limits.h>
9308 #else
9309 # include <assert.h>
9310 #endif
9311
9312 #undef $ac_func
9313
9314 /* Override any gcc2 internal prototype to avoid an error. */
9315 #ifdef __cplusplus
9316 extern "C"
9317 {
9318 #endif
9319 /* We use char because int might match the return type of a gcc2
9320 builtin and then its argument prototype would still apply. */
9321 char $ac_func ();
9322 /* The GNU C library defines this for functions which it implements
9323 to always fail with ENOSYS. Some functions are actually named
9324 something starting with __ and the normal name is an alias. */
9325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9326 choke me
9327 #else
9328 char (*f) () = $ac_func;
9329 #endif
9330 #ifdef __cplusplus
9331 }
9332 #endif
9333
9334 int
9335 main ()
9336 {
9337 return f != $ac_func;
9338 ;
9339 return 0;
9340 }
9341 _ACEOF
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9344 (eval $ac_link) 2>conftest.er1
9345 ac_status=$?
9346 grep -v '^ *+' conftest.er1 >conftest.err
9347 rm -f conftest.er1
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -z "$ac_c_werror_flag"
9352 || test ! -s conftest.err'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 (eval $ac_try) 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; } &&
9358 { ac_try='test -s conftest$ac_exeext'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; }; then
9364 eval "$as_ac_var=yes"
9365 else
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369 eval "$as_ac_var=no"
9370 fi
9371 rm -f conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
9373 fi
9374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9376 if test `eval echo '${'$as_ac_var'}'` = yes; then
9377 cat >>confdefs.h <<_ACEOF
9378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9379 _ACEOF
9380
9381 fi
9382 done
9383
9384
9385 if test x$ac_cv_func_mbstowcs = xyes; then
9386 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9387 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9388 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391 if test "$cross_compiling" = yes; then
9392 gcc_cv_func_mbstowcs_works=yes
9393 else
9394 cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h. */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 #include <stdlib.h>
9401 int main()
9402 {
9403 mbstowcs(0, "", 0);
9404 return 0;
9405 }
9406 _ACEOF
9407 rm -f conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 gcc_cv_func_mbstowcs_works=yes
9419 else
9420 echo "$as_me: program exited with status $ac_status" >&5
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 ( exit $ac_status )
9425 gcc_cv_func_mbstowcs_works=no
9426 fi
9427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9428 fi
9429 fi
9430 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9431 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9432 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9433
9434 cat >>confdefs.h <<\_ACEOF
9435 #define HAVE_WORKING_MBSTOWCS 1
9436 _ACEOF
9437
9438 fi
9439 fi
9440
9441 echo "$as_me:$LINENO: checking for ssize_t" >&5
9442 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9443 if test "${ac_cv_type_ssize_t+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446 cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h. */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 $ac_includes_default
9453 int
9454 main ()
9455 {
9456 if ((ssize_t *) 0)
9457 return 0;
9458 if (sizeof (ssize_t))
9459 return 0;
9460 ;
9461 return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9466 (eval $ac_compile) 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest.$ac_objext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_cv_type_ssize_t=yes
9487 else
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 ac_cv_type_ssize_t=no
9492 fi
9493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9494 fi
9495 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9496 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9497 if test $ac_cv_type_ssize_t = yes; then
9498 :
9499 else
9500
9501 cat >>confdefs.h <<_ACEOF
9502 #define ssize_t int
9503 _ACEOF
9504
9505 fi
9506
9507
9508 # Try to determine the array type of the second argument of getgroups
9509 # for the target system (int or gid_t).
9510 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9511 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9512 if test "${ac_cv_type_uid_t+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515 cat >conftest.$ac_ext <<_ACEOF
9516 /* confdefs.h. */
9517 _ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9521 #include <sys/types.h>
9522
9523 _ACEOF
9524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9525 $EGREP "uid_t" >/dev/null 2>&1; then
9526 ac_cv_type_uid_t=yes
9527 else
9528 ac_cv_type_uid_t=no
9529 fi
9530 rm -f conftest*
9531
9532 fi
9533 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9534 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9535 if test $ac_cv_type_uid_t = no; then
9536
9537 cat >>confdefs.h <<\_ACEOF
9538 #define uid_t int
9539 _ACEOF
9540
9541
9542 cat >>confdefs.h <<\_ACEOF
9543 #define gid_t int
9544 _ACEOF
9545
9546 fi
9547
9548 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9549 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9550 if test "${ac_cv_type_getgroups+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 if test "$cross_compiling" = yes; then
9554 ac_cv_type_getgroups=cross
9555 else
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h. */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 /* Thanks to Mike Rendell for this test. */
9563 #include <sys/types.h>
9564 #define NGID 256
9565 #undef MAX
9566 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9567
9568 int
9569 main ()
9570 {
9571 gid_t gidset[NGID];
9572 int i, n;
9573 union { gid_t gval; long lval; } val;
9574
9575 val.lval = -1;
9576 for (i = 0; i < NGID; i++)
9577 gidset[i] = val.gval;
9578 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9579 gidset);
9580 /* Exit non-zero if getgroups seems to require an array of ints. This
9581 happens when gid_t is short but getgroups modifies an array of ints. */
9582 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9583 }
9584 _ACEOF
9585 rm -f conftest$ac_exeext
9586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9587 (eval $ac_link) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 (eval $ac_try) 2>&5
9593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; }; then
9596 ac_cv_type_getgroups=gid_t
9597 else
9598 echo "$as_me: program exited with status $ac_status" >&5
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9601
9602 ( exit $ac_status )
9603 ac_cv_type_getgroups=int
9604 fi
9605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9606 fi
9607 if test $ac_cv_type_getgroups = cross; then
9608 cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h. */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 #include <unistd.h>
9615
9616 _ACEOF
9617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9618 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9619 ac_cv_type_getgroups=gid_t
9620 else
9621 ac_cv_type_getgroups=int
9622 fi
9623 rm -f conftest*
9624
9625 fi
9626 fi
9627 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9628 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9629
9630 cat >>confdefs.h <<_ACEOF
9631 #define GETGROUPS_T $ac_cv_type_getgroups
9632 _ACEOF
9633
9634
9635 if test "${target}" = "${build}"; then
9636 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9637 else
9638 case "${target}" in
9639 # This condition may need some tweaking. It should include all
9640 # targets where the array type of the second argument of getgroups
9641 # is int and the type of gid_t is not equivalent to int.
9642 *-*-sunos* | *-*-ultrix*)
9643 TARGET_GETGROUPS_T=int
9644 ;;
9645 *)
9646 TARGET_GETGROUPS_T=gid_t
9647 ;;
9648 esac
9649 fi
9650
9651
9652
9653 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9654 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9655 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 #include <sys/mman.h>
9665 _ACEOF
9666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } >/dev/null; then
9674 if test -s conftest.err; then
9675 ac_cpp_err=$ac_c_preproc_warn_flag
9676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9677 else
9678 ac_cpp_err=
9679 fi
9680 else
9681 ac_cpp_err=yes
9682 fi
9683 if test -z "$ac_cpp_err"; then
9684 ac_cv_header_sys_mman_h=yes
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689 ac_cv_header_sys_mman_h=no
9690 fi
9691 rm -f conftest.err conftest.$ac_ext
9692 fi
9693 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9694 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9695 if test $ac_cv_header_sys_mman_h = yes; then
9696 gcc_header_sys_mman_h=yes
9697 else
9698 gcc_header_sys_mman_h=no
9699 fi
9700
9701 echo "$as_me:$LINENO: checking for mmap" >&5
9702 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9703 if test "${ac_cv_func_mmap+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9714 #define mmap innocuous_mmap
9715
9716 /* System header to define __stub macros and hopefully few prototypes,
9717 which can conflict with char mmap (); below.
9718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9719 <limits.h> exists even on freestanding compilers. */
9720
9721 #ifdef __STDC__
9722 # include <limits.h>
9723 #else
9724 # include <assert.h>
9725 #endif
9726
9727 #undef mmap
9728
9729 /* Override any gcc2 internal prototype to avoid an error. */
9730 #ifdef __cplusplus
9731 extern "C"
9732 {
9733 #endif
9734 /* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736 char mmap ();
9737 /* The GNU C library defines this for functions which it implements
9738 to always fail with ENOSYS. Some functions are actually named
9739 something starting with __ and the normal name is an alias. */
9740 #if defined (__stub_mmap) || defined (__stub___mmap)
9741 choke me
9742 #else
9743 char (*f) () = mmap;
9744 #endif
9745 #ifdef __cplusplus
9746 }
9747 #endif
9748
9749 int
9750 main ()
9751 {
9752 return f != mmap;
9753 ;
9754 return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>conftest.er1
9760 ac_status=$?
9761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag"
9767 || test ! -s conftest.err'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779 ac_cv_func_mmap=yes
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 ac_cv_func_mmap=no
9785 fi
9786 rm -f conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
9788 fi
9789 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9790 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9791 if test $ac_cv_func_mmap = yes; then
9792 gcc_func_mmap=yes
9793 else
9794 gcc_func_mmap=no
9795 fi
9796
9797 if test "$gcc_header_sys_mman_h" != yes \
9798 || test "$gcc_func_mmap" != yes; then
9799 gcc_cv_func_mmap_file=no
9800 gcc_cv_func_mmap_dev_zero=no
9801 gcc_cv_func_mmap_anon=no
9802 else
9803 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9804 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9805 if test "${gcc_cv_func_mmap_file+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808 # Add a system to this blacklist if
9809 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9810 # memory area containing the same data that you'd get if you applied
9811 # read() to the same fd. The only system known to have a problem here
9812 # is VMS, where text files have record structure.
9813 case "$host_os" in
9814 vms* | ultrix*)
9815 gcc_cv_func_mmap_file=no ;;
9816 *)
9817 gcc_cv_func_mmap_file=yes;;
9818 esac
9819 fi
9820 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9821 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9822 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9823 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9824 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827 # Add a system to this blacklist if it has mmap() but /dev/zero
9828 # does not exist, or if mmapping /dev/zero does not give anonymous
9829 # zeroed pages with both the following properties:
9830 # 1. If you map N consecutive pages in with one call, and then
9831 # unmap any subset of those pages, the pages that were not
9832 # explicitly unmapped remain accessible.
9833 # 2. If you map two adjacent blocks of memory and then unmap them
9834 # both at once, they must both go away.
9835 # Systems known to be in this category are Windows (all variants),
9836 # VMS, and Darwin.
9837 case "$host_os" in
9838 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9839 gcc_cv_func_mmap_dev_zero=no ;;
9840 *)
9841 gcc_cv_func_mmap_dev_zero=yes;;
9842 esac
9843 fi
9844 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9845 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9846
9847 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9848 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9849 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9850 if test "${gcc_cv_decl_map_anon+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h. */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 #include <sys/types.h>
9860 #include <sys/mman.h>
9861 #include <unistd.h>
9862
9863 #ifndef MAP_ANONYMOUS
9864 #define MAP_ANONYMOUS MAP_ANON
9865 #endif
9866
9867 int
9868 main ()
9869 {
9870 int n = MAP_ANONYMOUS;
9871 ;
9872 return 0;
9873 }
9874 _ACEOF
9875 rm -f conftest.$ac_objext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9877 (eval $ac_compile) 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest.$ac_objext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 gcc_cv_decl_map_anon=yes
9898 else
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9901
9902 gcc_cv_decl_map_anon=no
9903 fi
9904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9905 fi
9906 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9907 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9908
9909 if test $gcc_cv_decl_map_anon = no; then
9910 gcc_cv_func_mmap_anon=no
9911 else
9912 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9913 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9914 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9918 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9919 # doesn't give anonymous zeroed pages with the same properties listed
9920 # above for use of /dev/zero.
9921 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9922 case "$host_os" in
9923 vms* | cygwin* | pe | mingw* | sco* | udk* )
9924 gcc_cv_func_mmap_anon=no ;;
9925 *)
9926 gcc_cv_func_mmap_anon=yes;;
9927 esac
9928 fi
9929 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9930 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9931 fi
9932 fi
9933
9934 if test $gcc_cv_func_mmap_file = yes; then
9935
9936 cat >>confdefs.h <<\_ACEOF
9937 #define HAVE_MMAP_FILE 1
9938 _ACEOF
9939
9940 fi
9941 if test $gcc_cv_func_mmap_dev_zero = yes; then
9942
9943 cat >>confdefs.h <<\_ACEOF
9944 #define HAVE_MMAP_DEV_ZERO 1
9945 _ACEOF
9946
9947 fi
9948 if test $gcc_cv_func_mmap_anon = yes; then
9949
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_MMAP_ANON 1
9952 _ACEOF
9953
9954 fi
9955
9956
9957 case "${host}" in
9958 *-*-*vms*)
9959 # Under VMS, vfork works very differently than on Unix. The standard test
9960 # won't work, and it isn't easily adaptable. It makes more sense to
9961 # just force it.
9962 ac_cv_func_vfork_works=yes
9963 ;;
9964 esac
9965 echo "$as_me:$LINENO: checking for pid_t" >&5
9966 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9967 if test "${ac_cv_type_pid_t+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 $ac_includes_default
9977 int
9978 main ()
9979 {
9980 if ((pid_t *) 0)
9981 return 0;
9982 if (sizeof (pid_t))
9983 return 0;
9984 ;
9985 return 0;
9986 }
9987 _ACEOF
9988 rm -f conftest.$ac_objext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9990 (eval $ac_compile) 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_c_werror_flag"
9998 || test ! -s conftest.err'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest.$ac_objext'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_cv_type_pid_t=yes
10011 else
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 ac_cv_type_pid_t=no
10016 fi
10017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10018 fi
10019 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10020 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10021 if test $ac_cv_type_pid_t = yes; then
10022 :
10023 else
10024
10025 cat >>confdefs.h <<_ACEOF
10026 #define pid_t int
10027 _ACEOF
10028
10029 fi
10030
10031
10032
10033 for ac_header in unistd.h vfork.h
10034 do
10035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10036 echo "$as_me:$LINENO: checking for $ac_header" >&5
10037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h. */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 #include <$ac_header>
10048 _ACEOF
10049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } >/dev/null; then
10057 if test -s conftest.err; then
10058 ac_cpp_err=$ac_c_preproc_warn_flag
10059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10060 else
10061 ac_cpp_err=
10062 fi
10063 else
10064 ac_cpp_err=yes
10065 fi
10066 if test -z "$ac_cpp_err"; then
10067 eval "$as_ac_Header=yes"
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 eval "$as_ac_Header=no"
10073 fi
10074 rm -f conftest.err conftest.$ac_ext
10075 fi
10076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10079 cat >>confdefs.h <<_ACEOF
10080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10081 _ACEOF
10082
10083 fi
10084 done
10085
10086
10087
10088 for ac_func in fork vfork
10089 do
10090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10091 echo "$as_me:$LINENO: checking for $ac_func" >&5
10092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10093 if eval "test \"\${$as_ac_var+set}\" = set"; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10104 #define $ac_func innocuous_$ac_func
10105
10106 /* System header to define __stub macros and hopefully few prototypes,
10107 which can conflict with char $ac_func (); below.
10108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10109 <limits.h> exists even on freestanding compilers. */
10110
10111 #ifdef __STDC__
10112 # include <limits.h>
10113 #else
10114 # include <assert.h>
10115 #endif
10116
10117 #undef $ac_func
10118
10119 /* Override any gcc2 internal prototype to avoid an error. */
10120 #ifdef __cplusplus
10121 extern "C"
10122 {
10123 #endif
10124 /* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */
10126 char $ac_func ();
10127 /* The GNU C library defines this for functions which it implements
10128 to always fail with ENOSYS. Some functions are actually named
10129 something starting with __ and the normal name is an alias. */
10130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10131 choke me
10132 #else
10133 char (*f) () = $ac_func;
10134 #endif
10135 #ifdef __cplusplus
10136 }
10137 #endif
10138
10139 int
10140 main ()
10141 {
10142 return f != $ac_func;
10143 ;
10144 return 0;
10145 }
10146 _ACEOF
10147 rm -f conftest.$ac_objext conftest$ac_exeext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10149 (eval $ac_link) 2>conftest.er1
10150 ac_status=$?
10151 grep -v '^ *+' conftest.er1 >conftest.err
10152 rm -f conftest.er1
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag"
10157 || test ! -s conftest.err'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; } &&
10163 { ac_try='test -s conftest$ac_exeext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 eval "$as_ac_var=yes"
10170 else
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10173
10174 eval "$as_ac_var=no"
10175 fi
10176 rm -f conftest.err conftest.$ac_objext \
10177 conftest$ac_exeext conftest.$ac_ext
10178 fi
10179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10181 if test `eval echo '${'$as_ac_var'}'` = yes; then
10182 cat >>confdefs.h <<_ACEOF
10183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10184 _ACEOF
10185
10186 fi
10187 done
10188
10189 if test "x$ac_cv_func_fork" = xyes; then
10190 echo "$as_me:$LINENO: checking for working fork" >&5
10191 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10192 if test "${ac_cv_func_fork_works+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195 if test "$cross_compiling" = yes; then
10196 ac_cv_func_fork_works=cross
10197 else
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* By Ruediger Kuhlmann. */
10200 #include <sys/types.h>
10201 #if HAVE_UNISTD_H
10202 # include <unistd.h>
10203 #endif
10204 /* Some systems only have a dummy stub for fork() */
10205 int main ()
10206 {
10207 if (fork() < 0)
10208 exit (1);
10209 exit (0);
10210 }
10211 _ACEOF
10212 rm -f conftest$ac_exeext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214 (eval $ac_link) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 ac_cv_func_fork_works=yes
10224 else
10225 echo "$as_me: program exited with status $ac_status" >&5
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ( exit $ac_status )
10230 ac_cv_func_fork_works=no
10231 fi
10232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 fi
10235 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10236 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10237
10238 else
10239 ac_cv_func_fork_works=$ac_cv_func_fork
10240 fi
10241 if test "x$ac_cv_func_fork_works" = xcross; then
10242 case $host in
10243 *-*-amigaos* | *-*-msdosdjgpp*)
10244 # Override, as these systems have only a dummy fork() stub
10245 ac_cv_func_fork_works=no
10246 ;;
10247 *)
10248 ac_cv_func_fork_works=yes
10249 ;;
10250 esac
10251 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10252 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10253 fi
10254 ac_cv_func_vfork_works=$ac_cv_func_vfork
10255 if test "x$ac_cv_func_vfork" = xyes; then
10256 echo "$as_me:$LINENO: checking for working vfork" >&5
10257 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10258 if test "${ac_cv_func_vfork_works+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 else
10261 if test "$cross_compiling" = yes; then
10262 ac_cv_func_vfork_works=cross
10263 else
10264 cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h. */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270 /* Thanks to Paul Eggert for this test. */
10271 #include <stdio.h>
10272 #include <stdlib.h>
10273 #include <sys/types.h>
10274 #include <sys/stat.h>
10275 #include <sys/wait.h>
10276 #if HAVE_UNISTD_H
10277 # include <unistd.h>
10278 #endif
10279 #if HAVE_VFORK_H
10280 # include <vfork.h>
10281 #endif
10282 /* On some sparc systems, changes by the child to local and incoming
10283 argument registers are propagated back to the parent. The compiler
10284 is told about this with #include <vfork.h>, but some compilers
10285 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10286 static variable whose address is put into a register that is
10287 clobbered by the vfork. */
10288 static void
10289 #ifdef __cplusplus
10290 sparc_address_test (int arg)
10291 # else
10292 sparc_address_test (arg) int arg;
10293 #endif
10294 {
10295 static pid_t child;
10296 if (!child) {
10297 child = vfork ();
10298 if (child < 0) {
10299 perror ("vfork");
10300 _exit(2);
10301 }
10302 if (!child) {
10303 arg = getpid();
10304 write(-1, "", 0);
10305 _exit (arg);
10306 }
10307 }
10308 }
10309
10310 int
10311 main ()
10312 {
10313 pid_t parent = getpid ();
10314 pid_t child;
10315
10316 sparc_address_test (0);
10317
10318 child = vfork ();
10319
10320 if (child == 0) {
10321 /* Here is another test for sparc vfork register problems. This
10322 test uses lots of local variables, at least as many local
10323 variables as main has allocated so far including compiler
10324 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10325 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10326 reuse the register of parent for one of the local variables,
10327 since it will think that parent can't possibly be used any more
10328 in this routine. Assigning to the local variable will thus
10329 munge parent in the parent process. */
10330 pid_t
10331 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10332 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10333 /* Convince the compiler that p..p7 are live; otherwise, it might
10334 use the same hardware register for all 8 local variables. */
10335 if (p != p1 || p != p2 || p != p3 || p != p4
10336 || p != p5 || p != p6 || p != p7)
10337 _exit(1);
10338
10339 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10340 from child file descriptors. If the child closes a descriptor
10341 before it execs or exits, this munges the parent's descriptor
10342 as well. Test for this by closing stdout in the child. */
10343 _exit(close(fileno(stdout)) != 0);
10344 } else {
10345 int status;
10346 struct stat st;
10347
10348 while (wait(&status) != child)
10349 ;
10350 exit(
10351 /* Was there some problem with vforking? */
10352 child < 0
10353
10354 /* Did the child fail? (This shouldn't happen.) */
10355 || status
10356
10357 /* Did the vfork/compiler bug occur? */
10358 || parent != getpid()
10359
10360 /* Did the file descriptor bug occur? */
10361 || fstat(fileno(stdout), &st) != 0
10362 );
10363 }
10364 }
10365 _ACEOF
10366 rm -f conftest$ac_exeext
10367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 ac_cv_func_vfork_works=yes
10378 else
10379 echo "$as_me: program exited with status $ac_status" >&5
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10382
10383 ( exit $ac_status )
10384 ac_cv_func_vfork_works=no
10385 fi
10386 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10387 fi
10388 fi
10389 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10390 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10391
10392 fi;
10393 if test "x$ac_cv_func_fork_works" = xcross; then
10394 ac_cv_func_vfork_works=$ac_cv_func_vfork
10395 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10396 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10397 fi
10398
10399 if test "x$ac_cv_func_vfork_works" = xyes; then
10400
10401 cat >>confdefs.h <<\_ACEOF
10402 #define HAVE_WORKING_VFORK 1
10403 _ACEOF
10404
10405 else
10406
10407 cat >>confdefs.h <<\_ACEOF
10408 #define vfork fork
10409 _ACEOF
10410
10411 fi
10412 if test "x$ac_cv_func_fork_works" = xyes; then
10413
10414 cat >>confdefs.h <<\_ACEOF
10415 #define HAVE_WORKING_FORK 1
10416 _ACEOF
10417
10418 fi
10419
10420
10421
10422 if test "X$prefix" = "XNONE"; then
10423 acl_final_prefix="$ac_default_prefix"
10424 else
10425 acl_final_prefix="$prefix"
10426 fi
10427 if test "X$exec_prefix" = "XNONE"; then
10428 acl_final_exec_prefix='${prefix}'
10429 else
10430 acl_final_exec_prefix="$exec_prefix"
10431 fi
10432 acl_save_prefix="$prefix"
10433 prefix="$acl_final_prefix"
10434 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10435 prefix="$acl_save_prefix"
10436
10437
10438 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10439 if test "${with_gnu_ld+set}" = set; then
10440 withval="$with_gnu_ld"
10441 test "$withval" = no || with_gnu_ld=yes
10442 else
10443 with_gnu_ld=no
10444 fi;
10445 # Prepare PATH_SEPARATOR.
10446 # The user is always right.
10447 if test "${PATH_SEPARATOR+set}" != set; then
10448 echo "#! /bin/sh" >conf$$.sh
10449 echo "exit 0" >>conf$$.sh
10450 chmod +x conf$$.sh
10451 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10452 PATH_SEPARATOR=';'
10453 else
10454 PATH_SEPARATOR=:
10455 fi
10456 rm -f conf$$.sh
10457 fi
10458 ac_prog=ld
10459 if test "$GCC" = yes; then
10460 # Check if gcc -print-prog-name=ld gives a path.
10461 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10462 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10463 case $host in
10464 *-*-mingw*)
10465 # gcc leaves a trailing carriage return which upsets mingw
10466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10467 *)
10468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10469 esac
10470 case $ac_prog in
10471 # Accept absolute paths.
10472 [\\/]* | [A-Za-z]:[\\/]*)
10473 re_direlt='/[^/][^/]*/\.\./'
10474 # Canonicalize the path of ld
10475 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10476 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10477 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10478 done
10479 test -z "$LD" && LD="$ac_prog"
10480 ;;
10481 "")
10482 # If it fails, then pretend we aren't using GCC.
10483 ac_prog=ld
10484 ;;
10485 *)
10486 # If it is relative, then search for the first ld in PATH.
10487 with_gnu_ld=unknown
10488 ;;
10489 esac
10490 elif test "$with_gnu_ld" = yes; then
10491 echo "$as_me:$LINENO: checking for GNU ld" >&5
10492 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10493 else
10494 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10495 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10496 fi
10497 if test "${acl_cv_path_LD+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500 if test -z "$LD"; then
10501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10502 for ac_dir in $PATH; do
10503 test -z "$ac_dir" && ac_dir=.
10504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10505 acl_cv_path_LD="$ac_dir/$ac_prog"
10506 # Check to see if the program is GNU ld. I'd rather use --version,
10507 # but apparently some GNU ld's only accept -v.
10508 # Break only if it was the GNU/non-GNU ld that we prefer.
10509 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10510 test "$with_gnu_ld" != no && break
10511 else
10512 test "$with_gnu_ld" != yes && break
10513 fi
10514 fi
10515 done
10516 IFS="$ac_save_ifs"
10517 else
10518 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10519 fi
10520 fi
10521
10522 LD="$acl_cv_path_LD"
10523 if test -n "$LD"; then
10524 echo "$as_me:$LINENO: result: $LD" >&5
10525 echo "${ECHO_T}$LD" >&6
10526 else
10527 echo "$as_me:$LINENO: result: no" >&5
10528 echo "${ECHO_T}no" >&6
10529 fi
10530 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10531 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10532 { (exit 1); exit 1; }; }
10533 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10534 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10535 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10539 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10540 acl_cv_prog_gnu_ld=yes
10541 else
10542 acl_cv_prog_gnu_ld=no
10543 fi
10544 fi
10545 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10546 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10547 with_gnu_ld=$acl_cv_prog_gnu_ld
10548
10549
10550
10551 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10552 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10553 if test "${acl_cv_rpath+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556
10557 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10558 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10559 . ./conftest.sh
10560 rm -f ./conftest.sh
10561 acl_cv_rpath=done
10562
10563 fi
10564 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10565 echo "${ECHO_T}$acl_cv_rpath" >&6
10566 wl="$acl_cv_wl"
10567 libext="$acl_cv_libext"
10568 shlibext="$acl_cv_shlibext"
10569 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10570 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10571 hardcode_direct="$acl_cv_hardcode_direct"
10572 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10573 # Check whether --enable-rpath or --disable-rpath was given.
10574 if test "${enable_rpath+set}" = set; then
10575 enableval="$enable_rpath"
10576 :
10577 else
10578 enable_rpath=yes
10579 fi;
10580
10581
10582
10583
10584
10585
10586
10587 use_additional=yes
10588
10589 acl_save_prefix="$prefix"
10590 prefix="$acl_final_prefix"
10591 acl_save_exec_prefix="$exec_prefix"
10592 exec_prefix="$acl_final_exec_prefix"
10593
10594 eval additional_includedir=\"$includedir\"
10595 eval additional_libdir=\"$libdir\"
10596
10597 exec_prefix="$acl_save_exec_prefix"
10598 prefix="$acl_save_prefix"
10599
10600
10601 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10602 if test "${with_libiconv_prefix+set}" = set; then
10603 withval="$with_libiconv_prefix"
10604
10605 if test "X$withval" = "Xno"; then
10606 use_additional=no
10607 else
10608 if test "X$withval" = "X"; then
10609
10610 acl_save_prefix="$prefix"
10611 prefix="$acl_final_prefix"
10612 acl_save_exec_prefix="$exec_prefix"
10613 exec_prefix="$acl_final_exec_prefix"
10614
10615 eval additional_includedir=\"$includedir\"
10616 eval additional_libdir=\"$libdir\"
10617
10618 exec_prefix="$acl_save_exec_prefix"
10619 prefix="$acl_save_prefix"
10620
10621 else
10622 additional_includedir="$withval/include"
10623 additional_libdir="$withval/lib"
10624 fi
10625 fi
10626
10627 fi;
10628 LIBICONV=
10629 LTLIBICONV=
10630 INCICONV=
10631 rpathdirs=
10632 ltrpathdirs=
10633 names_already_handled=
10634 names_next_round='iconv '
10635 while test -n "$names_next_round"; do
10636 names_this_round="$names_next_round"
10637 names_next_round=
10638 for name in $names_this_round; do
10639 already_handled=
10640 for n in $names_already_handled; do
10641 if test "$n" = "$name"; then
10642 already_handled=yes
10643 break
10644 fi
10645 done
10646 if test -z "$already_handled"; then
10647 names_already_handled="$names_already_handled $name"
10648 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10649 eval value=\"\$HAVE_LIB$uppername\"
10650 if test -n "$value"; then
10651 if test "$value" = yes; then
10652 eval value=\"\$LIB$uppername\"
10653 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10654 eval value=\"\$LTLIB$uppername\"
10655 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10656 else
10657 :
10658 fi
10659 else
10660 found_dir=
10661 found_la=
10662 found_so=
10663 found_a=
10664 if test $use_additional = yes; then
10665 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10666 found_dir="$additional_libdir"
10667 found_so="$additional_libdir/lib$name.$shlibext"
10668 if test -f "$additional_libdir/lib$name.la"; then
10669 found_la="$additional_libdir/lib$name.la"
10670 fi
10671 else
10672 if test -f "$additional_libdir/lib$name.$libext"; then
10673 found_dir="$additional_libdir"
10674 found_a="$additional_libdir/lib$name.$libext"
10675 if test -f "$additional_libdir/lib$name.la"; then
10676 found_la="$additional_libdir/lib$name.la"
10677 fi
10678 fi
10679 fi
10680 fi
10681 if test "X$found_dir" = "X"; then
10682 for x in $LDFLAGS $LTLIBICONV; do
10683
10684 acl_save_prefix="$prefix"
10685 prefix="$acl_final_prefix"
10686 acl_save_exec_prefix="$exec_prefix"
10687 exec_prefix="$acl_final_exec_prefix"
10688 eval x=\"$x\"
10689 exec_prefix="$acl_save_exec_prefix"
10690 prefix="$acl_save_prefix"
10691
10692 case "$x" in
10693 -L*)
10694 dir=`echo "X$x" | sed -e 's/^X-L//'`
10695 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10696 found_dir="$dir"
10697 found_so="$dir/lib$name.$shlibext"
10698 if test -f "$dir/lib$name.la"; then
10699 found_la="$dir/lib$name.la"
10700 fi
10701 else
10702 if test -f "$dir/lib$name.$libext"; then
10703 found_dir="$dir"
10704 found_a="$dir/lib$name.$libext"
10705 if test -f "$dir/lib$name.la"; then
10706 found_la="$dir/lib$name.la"
10707 fi
10708 fi
10709 fi
10710 ;;
10711 esac
10712 if test "X$found_dir" != "X"; then
10713 break
10714 fi
10715 done
10716 fi
10717 if test "X$found_dir" != "X"; then
10718 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10719 if test "X$found_so" != "X"; then
10720 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10721 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10722 else
10723 haveit=
10724 for x in $ltrpathdirs; do
10725 if test "X$x" = "X$found_dir"; then
10726 haveit=yes
10727 break
10728 fi
10729 done
10730 if test -z "$haveit"; then
10731 ltrpathdirs="$ltrpathdirs $found_dir"
10732 fi
10733 if test "$hardcode_direct" = yes; then
10734 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10735 else
10736 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10737 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10738 haveit=
10739 for x in $rpathdirs; do
10740 if test "X$x" = "X$found_dir"; then
10741 haveit=yes
10742 break
10743 fi
10744 done
10745 if test -z "$haveit"; then
10746 rpathdirs="$rpathdirs $found_dir"
10747 fi
10748 else
10749 haveit=
10750 for x in $LDFLAGS $LIBICONV; do
10751
10752 acl_save_prefix="$prefix"
10753 prefix="$acl_final_prefix"
10754 acl_save_exec_prefix="$exec_prefix"
10755 exec_prefix="$acl_final_exec_prefix"
10756 eval x=\"$x\"
10757 exec_prefix="$acl_save_exec_prefix"
10758 prefix="$acl_save_prefix"
10759
10760 if test "X$x" = "X-L$found_dir"; then
10761 haveit=yes
10762 break
10763 fi
10764 done
10765 if test -z "$haveit"; then
10766 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10767 fi
10768 if test "$hardcode_minus_L" != no; then
10769 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10770 else
10771 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10772 fi
10773 fi
10774 fi
10775 fi
10776 else
10777 if test "X$found_a" != "X"; then
10778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10779 else
10780 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10781 fi
10782 fi
10783 additional_includedir=
10784 case "$found_dir" in
10785 */lib | */lib/)
10786 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10787 additional_includedir="$basedir/include"
10788 ;;
10789 esac
10790 if test "X$additional_includedir" != "X"; then
10791 if test "X$additional_includedir" != "X/usr/include"; then
10792 haveit=
10793 if test "X$additional_includedir" = "X/usr/local/include"; then
10794 if test -n "$GCC"; then
10795 case $host_os in
10796 linux*) haveit=yes;;
10797 esac
10798 fi
10799 fi
10800 if test -z "$haveit"; then
10801 for x in $CPPFLAGS $INCICONV; do
10802
10803 acl_save_prefix="$prefix"
10804 prefix="$acl_final_prefix"
10805 acl_save_exec_prefix="$exec_prefix"
10806 exec_prefix="$acl_final_exec_prefix"
10807 eval x=\"$x\"
10808 exec_prefix="$acl_save_exec_prefix"
10809 prefix="$acl_save_prefix"
10810
10811 if test "X$x" = "X-I$additional_includedir"; then
10812 haveit=yes
10813 break
10814 fi
10815 done
10816 if test -z "$haveit"; then
10817 if test -d "$additional_includedir"; then
10818 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10819 fi
10820 fi
10821 fi
10822 fi
10823 fi
10824 if test -n "$found_la"; then
10825 save_libdir="$libdir"
10826 case "$found_la" in
10827 */* | *\\*) . "$found_la" ;;
10828 *) . "./$found_la" ;;
10829 esac
10830 libdir="$save_libdir"
10831 for dep in $dependency_libs; do
10832 case "$dep" in
10833 -L*)
10834 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10835 if test "X$additional_libdir" != "X/usr/lib"; then
10836 haveit=
10837 if test "X$additional_libdir" = "X/usr/local/lib"; then
10838 if test -n "$GCC"; then
10839 case $host_os in
10840 linux*) haveit=yes;;
10841 esac
10842 fi
10843 fi
10844 if test -z "$haveit"; then
10845 haveit=
10846 for x in $LDFLAGS $LIBICONV; do
10847
10848 acl_save_prefix="$prefix"
10849 prefix="$acl_final_prefix"
10850 acl_save_exec_prefix="$exec_prefix"
10851 exec_prefix="$acl_final_exec_prefix"
10852 eval x=\"$x\"
10853 exec_prefix="$acl_save_exec_prefix"
10854 prefix="$acl_save_prefix"
10855
10856 if test "X$x" = "X-L$additional_libdir"; then
10857 haveit=yes
10858 break
10859 fi
10860 done
10861 if test -z "$haveit"; then
10862 if test -d "$additional_libdir"; then
10863 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10864 fi
10865 fi
10866 haveit=
10867 for x in $LDFLAGS $LTLIBICONV; do
10868
10869 acl_save_prefix="$prefix"
10870 prefix="$acl_final_prefix"
10871 acl_save_exec_prefix="$exec_prefix"
10872 exec_prefix="$acl_final_exec_prefix"
10873 eval x=\"$x\"
10874 exec_prefix="$acl_save_exec_prefix"
10875 prefix="$acl_save_prefix"
10876
10877 if test "X$x" = "X-L$additional_libdir"; then
10878 haveit=yes
10879 break
10880 fi
10881 done
10882 if test -z "$haveit"; then
10883 if test -d "$additional_libdir"; then
10884 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10885 fi
10886 fi
10887 fi
10888 fi
10889 ;;
10890 -R*)
10891 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10892 if test "$enable_rpath" != no; then
10893 haveit=
10894 for x in $rpathdirs; do
10895 if test "X$x" = "X$dir"; then
10896 haveit=yes
10897 break
10898 fi
10899 done
10900 if test -z "$haveit"; then
10901 rpathdirs="$rpathdirs $dir"
10902 fi
10903 haveit=
10904 for x in $ltrpathdirs; do
10905 if test "X$x" = "X$dir"; then
10906 haveit=yes
10907 break
10908 fi
10909 done
10910 if test -z "$haveit"; then
10911 ltrpathdirs="$ltrpathdirs $dir"
10912 fi
10913 fi
10914 ;;
10915 -l*)
10916 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10917 ;;
10918 *.la)
10919 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10920 ;;
10921 *)
10922 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10923 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10924 ;;
10925 esac
10926 done
10927 fi
10928 else
10929 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10930 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10931 fi
10932 fi
10933 fi
10934 done
10935 done
10936 if test "X$rpathdirs" != "X"; then
10937 if test -n "$hardcode_libdir_separator"; then
10938 alldirs=
10939 for found_dir in $rpathdirs; do
10940 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10941 done
10942 acl_save_libdir="$libdir"
10943 libdir="$alldirs"
10944 eval flag=\"$hardcode_libdir_flag_spec\"
10945 libdir="$acl_save_libdir"
10946 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10947 else
10948 for found_dir in $rpathdirs; do
10949 acl_save_libdir="$libdir"
10950 libdir="$found_dir"
10951 eval flag=\"$hardcode_libdir_flag_spec\"
10952 libdir="$acl_save_libdir"
10953 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10954 done
10955 fi
10956 fi
10957 if test "X$ltrpathdirs" != "X"; then
10958 for found_dir in $ltrpathdirs; do
10959 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10960 done
10961 fi
10962
10963
10964
10965
10966
10967
10968
10969 am_save_CPPFLAGS="$CPPFLAGS"
10970
10971 for element in $INCICONV; do
10972 haveit=
10973 for x in $CPPFLAGS; do
10974
10975 acl_save_prefix="$prefix"
10976 prefix="$acl_final_prefix"
10977 acl_save_exec_prefix="$exec_prefix"
10978 exec_prefix="$acl_final_exec_prefix"
10979 eval x=\"$x\"
10980 exec_prefix="$acl_save_exec_prefix"
10981 prefix="$acl_save_prefix"
10982
10983 if test "X$x" = "X$element"; then
10984 haveit=yes
10985 break
10986 fi
10987 done
10988 if test -z "$haveit"; then
10989 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10990 fi
10991 done
10992
10993
10994 echo "$as_me:$LINENO: checking for iconv" >&5
10995 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10996 if test "${am_cv_func_iconv+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 else
10999
11000 am_cv_func_iconv="no, consider installing GNU libiconv"
11001 am_cv_lib_iconv=no
11002 cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h. */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11008 #include <stdlib.h>
11009 #include <iconv.h>
11010 int
11011 main ()
11012 {
11013 iconv_t cd = iconv_open("","");
11014 iconv(cd,NULL,NULL,NULL,NULL);
11015 iconv_close(cd);
11016 ;
11017 return 0;
11018 }
11019 _ACEOF
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022 (eval $ac_link) 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try='test -z "$ac_c_werror_flag"
11030 || test ! -s conftest.err'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try='test -s conftest$ac_exeext'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11042 am_cv_func_iconv=yes
11043 else
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047 fi
11048 rm -f conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 if test "$am_cv_func_iconv" != yes; then
11051 am_save_LIBS="$LIBS"
11052 LIBS="$LIBS $LIBICONV"
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h. */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 #include <stdlib.h>
11060 #include <iconv.h>
11061 int
11062 main ()
11063 {
11064 iconv_t cd = iconv_open("","");
11065 iconv(cd,NULL,NULL,NULL,NULL);
11066 iconv_close(cd);
11067 ;
11068 return 0;
11069 }
11070 _ACEOF
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11073 (eval $ac_link) 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try='test -z "$ac_c_werror_flag"
11081 || test ! -s conftest.err'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; } &&
11087 { ac_try='test -s conftest$ac_exeext'
11088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; }; then
11093 am_cv_lib_iconv=yes
11094 am_cv_func_iconv=yes
11095 else
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 fi
11100 rm -f conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LIBS="$am_save_LIBS"
11103 fi
11104
11105 fi
11106 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11107 echo "${ECHO_T}$am_cv_func_iconv" >&6
11108 if test "$am_cv_func_iconv" = yes; then
11109
11110 cat >>confdefs.h <<\_ACEOF
11111 #define HAVE_ICONV 1
11112 _ACEOF
11113
11114 fi
11115 if test "$am_cv_lib_iconv" = yes; then
11116 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11117 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11118 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11119 echo "${ECHO_T}$LIBICONV" >&6
11120 else
11121 CPPFLAGS="$am_save_CPPFLAGS"
11122 LIBICONV=
11123 LTLIBICONV=
11124 fi
11125
11126
11127
11128 if test "$am_cv_func_iconv" = yes; then
11129 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11130 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11131 if test "${am_cv_proto_iconv+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134
11135 cat >conftest.$ac_ext <<_ACEOF
11136 /* confdefs.h. */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141
11142 #include <stdlib.h>
11143 #include <iconv.h>
11144 extern
11145 #ifdef __cplusplus
11146 "C"
11147 #endif
11148 #if defined(__STDC__) || defined(__cplusplus)
11149 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11150 #else
11151 size_t iconv();
11152 #endif
11153
11154 int
11155 main ()
11156 {
11157
11158 ;
11159 return 0;
11160 }
11161 _ACEOF
11162 rm -f conftest.$ac_objext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164 (eval $ac_compile) 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -z "$ac_c_werror_flag"
11172 || test ! -s conftest.err'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; } &&
11178 { ac_try='test -s conftest.$ac_objext'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then
11184 am_cv_proto_iconv_arg1=""
11185 else
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 am_cv_proto_iconv_arg1="const"
11190 fi
11191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11192 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);"
11193 fi
11194
11195 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11196 echo "$as_me:$LINENO: result: ${ac_t:-
11197 }$am_cv_proto_iconv" >&5
11198 echo "${ECHO_T}${ac_t:-
11199 }$am_cv_proto_iconv" >&6
11200
11201 cat >>confdefs.h <<_ACEOF
11202 #define ICONV_CONST $am_cv_proto_iconv_arg1
11203 _ACEOF
11204
11205 fi
11206
11207 # Until we have in-tree GNU iconv:
11208 LIBICONV_DEP=
11209
11210
11211
11212 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11213 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11214 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217 cat >conftest.$ac_ext <<_ACEOF
11218 /* confdefs.h. */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 #include <locale.h>
11224 int
11225 main ()
11226 {
11227 return LC_MESSAGES
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 rm -f conftest.$ac_objext conftest$ac_exeext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11234 (eval $ac_link) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest$ac_exeext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 am_cv_val_LC_MESSAGES=yes
11255 else
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259 am_cv_val_LC_MESSAGES=no
11260 fi
11261 rm -f conftest.err conftest.$ac_objext \
11262 conftest$ac_exeext conftest.$ac_ext
11263 fi
11264 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11265 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11266 if test $am_cv_val_LC_MESSAGES = yes; then
11267
11268 cat >>confdefs.h <<\_ACEOF
11269 #define HAVE_LC_MESSAGES 1
11270 _ACEOF
11271
11272 fi
11273
11274
11275
11276 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11277 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11278 if test "${am_cv_langinfo_codeset+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281 cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h. */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 #include <langinfo.h>
11288 int
11289 main ()
11290 {
11291 char* cs = nl_langinfo(CODESET);
11292 ;
11293 return 0;
11294 }
11295 _ACEOF
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298 (eval $ac_link) 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag"
11306 || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest$ac_exeext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 am_cv_langinfo_codeset=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11322
11323 am_cv_langinfo_codeset=no
11324 fi
11325 rm -f conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327
11328 fi
11329 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11330 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11331 if test $am_cv_langinfo_codeset = yes; then
11332
11333 cat >>confdefs.h <<\_ACEOF
11334 #define HAVE_LANGINFO_CODESET 1
11335 _ACEOF
11336
11337 fi
11338
11339
11340 # We will need to find libiberty.h and ansidecl.h
11341 saved_CFLAGS="$CFLAGS"
11342 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11383 strsignal strstr strverscmp \
11384 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11385 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
11386 do
11387 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11388 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11389 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11390 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393 cat >conftest.$ac_ext <<_ACEOF
11394 /* confdefs.h. */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 #undef $ac_tr_decl
11400 #define $ac_tr_decl 1
11401
11402 #include "ansidecl.h"
11403 #include "system.h"
11404
11405 int
11406 main ()
11407 {
11408 #ifndef $ac_func
11409 char *(*pfn) = (char *(*)) $ac_func ;
11410 #endif
11411 ;
11412 return 0;
11413 }
11414 _ACEOF
11415 rm -f conftest.$ac_objext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11417 (eval $ac_compile) 2>conftest.er1
11418 ac_status=$?
11419 grep -v '^ *+' conftest.er1 >conftest.err
11420 rm -f conftest.er1
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } &&
11424 { ac_try='test -z "$ac_c_werror_flag"
11425 || test ! -s conftest.err'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11428 ac_status=$?
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; } &&
11431 { ac_try='test -s conftest.$ac_objext'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; }; then
11437 eval "gcc_cv_have_decl_$ac_func=yes"
11438 else
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11441
11442 eval "gcc_cv_have_decl_$ac_func=no"
11443 fi
11444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11445 fi
11446
11447 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11448 echo "$as_me:$LINENO: result: yes" >&5
11449 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11450 #define $ac_tr_decl 1
11451 _ACEOF
11452
11453 else
11454 echo "$as_me:$LINENO: result: no" >&5
11455 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11456 #define $ac_tr_decl 0
11457 _ACEOF
11458
11459 fi
11460
11461 done
11462
11463
11464
11465
11466
11467 for ac_func in getrlimit setrlimit getrusage
11468 do
11469 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11470 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11471 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11472 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475 cat >conftest.$ac_ext <<_ACEOF
11476 /* confdefs.h. */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 #undef $ac_tr_decl
11482 #define $ac_tr_decl 1
11483
11484 #include "ansidecl.h"
11485 #include "system.h"
11486 #ifdef HAVE_SYS_RESOURCE_H
11487 #include <sys/resource.h>
11488 #endif
11489
11490
11491 int
11492 main ()
11493 {
11494 #ifndef $ac_func
11495 char *(*pfn) = (char *(*)) $ac_func ;
11496 #endif
11497 ;
11498 return 0;
11499 }
11500 _ACEOF
11501 rm -f conftest.$ac_objext
11502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11503 (eval $ac_compile) 2>conftest.er1
11504 ac_status=$?
11505 grep -v '^ *+' conftest.er1 >conftest.err
11506 rm -f conftest.er1
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } &&
11510 { ac_try='test -z "$ac_c_werror_flag"
11511 || test ! -s conftest.err'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; } &&
11517 { ac_try='test -s conftest.$ac_objext'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; }; then
11523 eval "gcc_cv_have_decl_$ac_func=yes"
11524 else
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11527
11528 eval "gcc_cv_have_decl_$ac_func=no"
11529 fi
11530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11531 fi
11532
11533 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11534 echo "$as_me:$LINENO: result: yes" >&5
11535 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11536 #define $ac_tr_decl 1
11537 _ACEOF
11538
11539 else
11540 echo "$as_me:$LINENO: result: no" >&5
11541 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11542 #define $ac_tr_decl 0
11543 _ACEOF
11544
11545 fi
11546
11547 done
11548
11549
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h. */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556
11557 #include "ansidecl.h"
11558 #include "system.h"
11559 #ifdef HAVE_SYS_RESOURCE_H
11560 #include <sys/resource.h>
11561 #endif
11562
11563 int
11564 main ()
11565 {
11566 rlim_t l = 0;
11567 ;
11568 return 0;
11569 }
11570 _ACEOF
11571 rm -f conftest.$ac_objext
11572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11573 (eval $ac_compile) 2>conftest.er1
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try='test -z "$ac_c_werror_flag"
11581 || test ! -s conftest.err'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; } &&
11587 { ac_try='test -s conftest.$ac_objext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }; then
11593 :
11594 else
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598
11599 cat >>confdefs.h <<\_ACEOF
11600 #define rlim_t long
11601 _ACEOF
11602
11603 fi
11604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11605
11606 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11607 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11608 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11609 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11610
11611 for ac_func in ldgetname
11612 do
11613 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11614 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11615 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11616 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619 cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h. */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 #undef $ac_tr_decl
11626 #define $ac_tr_decl 1
11627
11628 #include "ansidecl.h"
11629 #include "system.h"
11630 #ifdef HAVE_LDFCN_H
11631 #undef FREAD
11632 #undef FWRITE
11633 #include <ldfcn.h>
11634 #endif
11635
11636
11637 int
11638 main ()
11639 {
11640 #ifndef $ac_func
11641 char *(*pfn) = (char *(*)) $ac_func ;
11642 #endif
11643 ;
11644 return 0;
11645 }
11646 _ACEOF
11647 rm -f conftest.$ac_objext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11649 (eval $ac_compile) 2>conftest.er1
11650 ac_status=$?
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -z "$ac_c_werror_flag"
11657 || test ! -s conftest.err'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; } &&
11663 { ac_try='test -s conftest.$ac_objext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 eval "gcc_cv_have_decl_$ac_func=yes"
11670 else
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11673
11674 eval "gcc_cv_have_decl_$ac_func=no"
11675 fi
11676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11677 fi
11678
11679 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11680 echo "$as_me:$LINENO: result: yes" >&5
11681 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11682 #define $ac_tr_decl 1
11683 _ACEOF
11684
11685 else
11686 echo "$as_me:$LINENO: result: no" >&5
11687 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11688 #define $ac_tr_decl 0
11689 _ACEOF
11690
11691 fi
11692
11693 done
11694
11695
11696
11697 for ac_func in times
11698 do
11699 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11700 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11701 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11702 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 else
11705 cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h. */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11711 #undef $ac_tr_decl
11712 #define $ac_tr_decl 1
11713
11714 #include "ansidecl.h"
11715 #include "system.h"
11716 #ifdef HAVE_SYS_TIMES_H
11717 #include <sys/times.h>
11718 #endif
11719
11720
11721 int
11722 main ()
11723 {
11724 #ifndef $ac_func
11725 char *(*pfn) = (char *(*)) $ac_func ;
11726 #endif
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 eval "gcc_cv_have_decl_$ac_func=yes"
11754 else
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758 eval "gcc_cv_have_decl_$ac_func=no"
11759 fi
11760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11761 fi
11762
11763 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11764 echo "$as_me:$LINENO: result: yes" >&5
11765 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11766 #define $ac_tr_decl 1
11767 _ACEOF
11768
11769 else
11770 echo "$as_me:$LINENO: result: no" >&5
11771 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11772 #define $ac_tr_decl 0
11773 _ACEOF
11774
11775 fi
11776
11777 done
11778
11779
11780 # More time-related stuff.
11781 echo "$as_me:$LINENO: checking for struct tms" >&5
11782 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11783 if test "${ac_cv_struct_tms+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786
11787 cat >conftest.$ac_ext <<_ACEOF
11788 /* confdefs.h. */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793
11794 #include "ansidecl.h"
11795 #include "system.h"
11796 #ifdef HAVE_SYS_TIMES_H
11797 #include <sys/times.h>
11798 #endif
11799
11800 int
11801 main ()
11802 {
11803 struct tms tms;
11804 ;
11805 return 0;
11806 }
11807 _ACEOF
11808 rm -f conftest.$ac_objext
11809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11810 (eval $ac_compile) 2>conftest.er1
11811 ac_status=$?
11812 grep -v '^ *+' conftest.er1 >conftest.err
11813 rm -f conftest.er1
11814 cat conftest.err >&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } &&
11817 { ac_try='test -z "$ac_c_werror_flag"
11818 || test ! -s conftest.err'
11819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; } &&
11824 { ac_try='test -s conftest.$ac_objext'
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; }; then
11830 ac_cv_struct_tms=yes
11831 else
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11834
11835 ac_cv_struct_tms=no
11836 fi
11837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11838 fi
11839 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11840 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11841 if test $ac_cv_struct_tms = yes; then
11842
11843 cat >>confdefs.h <<\_ACEOF
11844 #define HAVE_STRUCT_TMS 1
11845 _ACEOF
11846
11847 fi
11848
11849 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11850 # revisit after autoconf 2.50.
11851 echo "$as_me:$LINENO: checking for clock_t" >&5
11852 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11853 if test "${gcc_cv_type_clock_t+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863
11864 #include "ansidecl.h"
11865 #include "system.h"
11866
11867 int
11868 main ()
11869 {
11870 clock_t x;
11871 ;
11872 return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11877 (eval $ac_compile) 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest.$ac_objext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 gcc_cv_type_clock_t=yes
11898 else
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 gcc_cv_type_clock_t=no
11903 fi
11904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11905 fi
11906 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11907 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11908 if test $gcc_cv_type_clock_t = yes; then
11909
11910 cat >>confdefs.h <<\_ACEOF
11911 #define HAVE_CLOCK_T 1
11912 _ACEOF
11913
11914 fi
11915
11916 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11917 CFLAGS="$saved_CFLAGS"
11918
11919 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11920 if test "${enable_initfini_array+set}" = set; then
11921 enableval="$enable_initfini_array"
11922
11923 else
11924
11925 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11926 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11927 if test "${gcc_cv_initfini_array+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 else
11930 if test "$cross_compiling" = yes; then
11931 gcc_cv_initfini_array=no
11932 else
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h. */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939
11940 static int x = -1;
11941 int main (void) { return x; }
11942 int foo (void) { x = 0; }
11943 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11944 _ACEOF
11945 rm -f conftest$ac_exeext
11946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11947 (eval $ac_link) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 gcc_cv_initfini_array=yes
11957 else
11958 echo "$as_me: program exited with status $ac_status" >&5
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962 ( exit $ac_status )
11963 gcc_cv_initfini_array=no
11964 fi
11965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11966 fi
11967 fi
11968 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11969 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11970 enable_initfini_array=$gcc_cv_initfini_array
11971
11972 fi;
11973 if test $enable_initfini_array = yes; then
11974
11975 cat >>confdefs.h <<\_ACEOF
11976 #define HAVE_INITFINI_ARRAY 1
11977 _ACEOF
11978
11979 fi
11980
11981 # mkdir takes a single argument on some systems.
11982 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11983 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11984 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h. */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993
11994 #include <sys/types.h>
11995 #ifdef HAVE_SYS_STAT_H
11996 # include <sys/stat.h>
11997 #endif
11998 #ifdef HAVE_UNISTD_H
11999 # include <unistd.h>
12000 #endif
12001 #ifdef HAVE_DIRECT_H
12002 # include <direct.h>
12003 #endif
12004 int
12005 main ()
12006 {
12007 mkdir ("foo", 0);
12008 ;
12009 return 0;
12010 }
12011 _ACEOF
12012 rm -f conftest.$ac_objext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12014 (eval $ac_compile) 2>conftest.er1
12015 ac_status=$?
12016 grep -v '^ *+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try='test -z "$ac_c_werror_flag"
12022 || test ! -s conftest.err'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try='test -s conftest.$ac_objext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 gcc_cv_mkdir_takes_one_arg=no
12035 else
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12038
12039 gcc_cv_mkdir_takes_one_arg=yes
12040 fi
12041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12042 fi
12043 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12044 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12045 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12046
12047 cat >>confdefs.h <<\_ACEOF
12048 #define MKDIR_TAKES_ONE_ARG 1
12049 _ACEOF
12050
12051 fi
12052
12053
12054 # File extensions
12055 manext='.1'
12056 objext='.o'
12057
12058
12059
12060 # With Setjmp/Longjmp based exception handling.
12061 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12062 if test "${enable_sjlj_exceptions+set}" = set; then
12063 enableval="$enable_sjlj_exceptions"
12064 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12065
12066 cat >>confdefs.h <<_ACEOF
12067 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12068 _ACEOF
12069
12070 fi;
12071
12072 # For platforms with the unwind ABI which includes an unwind library,
12073 # libunwind, we can choose to use the system libunwind.
12074
12075 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12076 if test "${with_system_libunwind+set}" = set; then
12077 withval="$with_system_libunwind"
12078
12079 fi;
12080
12081 # --------------------------------------------------------
12082 # Build, host, and target specific configuration fragments
12083 # --------------------------------------------------------
12084
12085 # Collect build-machine-specific information.
12086 . ${srcdir}/config.build
12087
12088 # Collect host-machine-specific information.
12089 . ${srcdir}/config.host
12090
12091 target_gtfiles=
12092
12093 # Collect target-machine-specific information.
12094 . ${srcdir}/config.gcc
12095
12096 extra_objs="${host_extra_objs} ${extra_objs}"
12097 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12098
12099 # Default the target-machine variables that were not explicitly set.
12100 if test x"$tm_file" = x
12101 then tm_file=$cpu_type/$cpu_type.h; fi
12102
12103 if test x"$extra_headers" = x
12104 then extra_headers=; fi
12105
12106 if test x$md_file = x
12107 then md_file=$cpu_type/$cpu_type.md; fi
12108
12109 if test x$out_file = x
12110 then out_file=$cpu_type/$cpu_type.c; fi
12111
12112 if test x"$tmake_file" = x
12113 then tmake_file=$cpu_type/t-$cpu_type
12114 fi
12115
12116 if test x"$dwarf2" = xyes
12117 then tm_file="$tm_file tm-dwarf2.h"
12118 fi
12119
12120 # Say what files are being used for the output code and MD file.
12121 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12122 echo "Using \`$srcdir/config/$md_file' as machine description file."
12123
12124 # If any of the xm_file variables contain nonexistent files, warn
12125 # about them and drop them.
12126
12127 bx=
12128 for x in $build_xm_file; do
12129 if test -f $srcdir/config/$x
12130 then bx="$bx $x"
12131 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12132 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12133 fi
12134 done
12135 build_xm_file="$bx"
12136
12137 hx=
12138 for x in $host_xm_file; do
12139 if test -f $srcdir/config/$x
12140 then hx="$hx $x"
12141 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12142 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12143 fi
12144 done
12145 host_xm_file="$hx"
12146
12147 tx=
12148 for x in $xm_file; do
12149 if test -f $srcdir/config/$x
12150 then tx="$tx $x"
12151 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12152 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12153 fi
12154 done
12155 xm_file="$tx"
12156
12157 count=a
12158 for f in $tm_file; do
12159 count=${count}x
12160 done
12161 if test $count = ax; then
12162 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12163 else
12164 echo "Using the following target machine macro files:"
12165 for f in $tm_file; do
12166 echo " $srcdir/config/$f"
12167 done
12168 fi
12169
12170 if test x$need_64bit_hwint = xyes; then
12171
12172 cat >>confdefs.h <<\_ACEOF
12173 #define NEED_64BIT_HOST_WIDE_INT 1
12174 _ACEOF
12175
12176 fi
12177
12178 if test x$use_long_long_for_widest_fast_int = xyes; then
12179
12180 cat >>confdefs.h <<\_ACEOF
12181 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12182 _ACEOF
12183
12184 fi
12185
12186 count=a
12187 for f in $host_xm_file; do
12188 count=${count}x
12189 done
12190 if test $count = a; then
12191 :
12192 elif test $count = ax; then
12193 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12194 else
12195 echo "Using the following host machine macro files:"
12196 for f in $host_xm_file; do
12197 echo " $srcdir/config/$f"
12198 done
12199 fi
12200 echo "Using ${out_host_hook_obj} for host machine hooks."
12201
12202 if test "$host_xm_file" != "$build_xm_file"; then
12203 count=a
12204 for f in $build_xm_file; do
12205 count=${count}x
12206 done
12207 if test $count = a; then
12208 :
12209 elif test $count = ax; then
12210 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12211 else
12212 echo "Using the following build machine macro files:"
12213 for f in $build_xm_file; do
12214 echo " $srcdir/config/$f"
12215 done
12216 fi
12217 fi
12218
12219 # ---------
12220 # Threading
12221 # ---------
12222
12223 # Check if a valid thread package
12224 case ${enable_threads} in
12225 "" | no)
12226 # No threads
12227 target_thread_file='single'
12228 ;;
12229 yes)
12230 # default
12231 target_thread_file='single'
12232 ;;
12233 aix | dce | gnat | irix | posix | posix95 | rtems | \
12234 single | solaris | vxworks | win32 )
12235 target_thread_file=${enable_threads}
12236 ;;
12237 *)
12238 echo "${enable_threads} is an unknown thread package" 1>&2
12239 exit 1
12240 ;;
12241 esac
12242
12243 if test x${thread_file} = x; then
12244 # No thread file set by target-specific clauses in config.gcc,
12245 # so use file chosen by default logic above
12246 thread_file=${target_thread_file}
12247 fi
12248
12249 # Make gthr-default.h if we have a thread file.
12250 gthread_flags=
12251 if test $thread_file != single; then
12252 rm -f gthr-default.h
12253 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12254 gthread_flags=-DHAVE_GTHR_DEFAULT
12255 fi
12256
12257
12258 # --------
12259 # UNSORTED
12260 # --------
12261
12262 use_cxa_atexit=no
12263 if test x$enable___cxa_atexit = xyes || \
12264 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12265 if test x$host = x$target; then
12266 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12267 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12268 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271 cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h. */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12279 #define __cxa_atexit innocuous___cxa_atexit
12280
12281 /* System header to define __stub macros and hopefully few prototypes,
12282 which can conflict with char __cxa_atexit (); below.
12283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12284 <limits.h> exists even on freestanding compilers. */
12285
12286 #ifdef __STDC__
12287 # include <limits.h>
12288 #else
12289 # include <assert.h>
12290 #endif
12291
12292 #undef __cxa_atexit
12293
12294 /* Override any gcc2 internal prototype to avoid an error. */
12295 #ifdef __cplusplus
12296 extern "C"
12297 {
12298 #endif
12299 /* We use char because int might match the return type of a gcc2
12300 builtin and then its argument prototype would still apply. */
12301 char __cxa_atexit ();
12302 /* The GNU C library defines this for functions which it implements
12303 to always fail with ENOSYS. Some functions are actually named
12304 something starting with __ and the normal name is an alias. */
12305 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12306 choke me
12307 #else
12308 char (*f) () = __cxa_atexit;
12309 #endif
12310 #ifdef __cplusplus
12311 }
12312 #endif
12313
12314 int
12315 main ()
12316 {
12317 return f != __cxa_atexit;
12318 ;
12319 return 0;
12320 }
12321 _ACEOF
12322 rm -f conftest.$ac_objext conftest$ac_exeext
12323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12324 (eval $ac_link) 2>conftest.er1
12325 ac_status=$?
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
12331 { ac_try='test -z "$ac_c_werror_flag"
12332 || test ! -s conftest.err'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try='test -s conftest$ac_exeext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_cv_func___cxa_atexit=yes
12345 else
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349 ac_cv_func___cxa_atexit=no
12350 fi
12351 rm -f conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12353 fi
12354 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12355 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12356 if test $ac_cv_func___cxa_atexit = yes; then
12357 use_cxa_atexit=yes
12358 else
12359 echo "__cxa_atexit can't be enabled on this target"
12360 fi
12361
12362 else
12363 # We can't check for __cxa_atexit when building a cross, so assume
12364 # it is available
12365 use_cxa_atexit=yes
12366 fi
12367 if test x$use_cxa_atexit = xyes; then
12368
12369 cat >>confdefs.h <<\_ACEOF
12370 #define DEFAULT_USE_CXA_ATEXIT 1
12371 _ACEOF
12372
12373 fi
12374 fi
12375
12376 # Look for a file containing extra machine modes.
12377 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12378 extra_modes_file='$(srcdir)'/config/${extra_modes}
12379
12380
12381 cat >>confdefs.h <<_ACEOF
12382 #define EXTRA_MODES_FILE "config/$extra_modes"
12383 _ACEOF
12384
12385 fi
12386
12387 # Convert extra_options into a form suitable for Makefile use.
12388 extra_opt_files=
12389 for f in $extra_options; do
12390 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12391 done
12392
12393
12394 # auto-host.h is the file containing items generated by autoconf and is
12395 # the first file included by config.h.
12396 # If host=build, it is correct to have bconfig include auto-host.h
12397 # as well. If host!=build, we are in error and need to do more
12398 # work to find out the build config parameters.
12399 if test x$host = x$build
12400 then
12401 build_auto=auto-host.h
12402 else
12403 # We create a subdir, then run autoconf in the subdir.
12404 # To prevent recursion we set host and build for the new
12405 # invocation of configure to the build for this invocation
12406 # of configure.
12407 tempdir=build.$$
12408 rm -rf $tempdir
12409 mkdir $tempdir
12410 cd $tempdir
12411 case ${srcdir} in
12412 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12413 *) realsrcdir=../${srcdir};;
12414 esac
12415 saved_CFLAGS="${CFLAGS}"
12416 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12417 ${realsrcdir}/configure \
12418 --enable-languages=${enable_languages-all} \
12419 --target=$target_alias --host=$build_alias --build=$build_alias
12420 CFLAGS="${saved_CFLAGS}"
12421
12422 # We just finished tests for the build machine, so rename
12423 # the file auto-build.h in the gcc directory.
12424 mv auto-host.h ../auto-build.h
12425 cd ..
12426 rm -rf $tempdir
12427 build_auto=auto-build.h
12428 fi
12429
12430
12431 tm_file="${tm_file} defaults.h"
12432 tm_p_file="${tm_p_file} tm-preds.h"
12433 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12434 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12435 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12436 # put this back in temporarily.
12437 xm_file="auto-host.h ansidecl.h ${xm_file}"
12438
12439 # --------
12440 # UNSORTED
12441 # --------
12442
12443 # Compile in configure arguments.
12444 if test -f configargs.h ; then
12445 # Being re-configured.
12446 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12447 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12448 else
12449 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12450 fi
12451
12452 # Double all backslashes and backslash all quotes to turn
12453 # gcc_config_arguments into a C string.
12454 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12455 $gcc_config_arguments
12456 EOF
12457 gcc_config_arguments_str=`cat conftest.out`
12458 rm -f conftest.out
12459
12460 cat > configargs.h <<EOF
12461 /* Generated automatically. */
12462 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12463 static const char thread_model[] = "$thread_file";
12464
12465 static const struct {
12466 const char *name, *value;
12467 } configure_default_options[] = $configure_default_options;
12468 EOF
12469
12470 # Internationalization
12471 # If we haven't got the data from the intl directory,
12472 # assume NLS is disabled.
12473 USE_NLS=no
12474 LIBINTL=
12475 LIBINTL_DEP=
12476 INCINTL=
12477 XGETTEXT=
12478 GMSGFMT=
12479 POSUB=
12480 if test -f ../intl/config.intl; then
12481 . ../intl/config.intl
12482 fi
12483 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12484 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12485 if test x"$USE_NLS" != xyes; then
12486 echo "$as_me:$LINENO: result: no" >&5
12487 echo "${ECHO_T}no" >&6
12488 else
12489 echo "$as_me:$LINENO: result: yes" >&5
12490 echo "${ECHO_T}yes" >&6
12491
12492 cat >>confdefs.h <<\_ACEOF
12493 #define ENABLE_NLS 1
12494 _ACEOF
12495
12496
12497 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12498 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12499 # Look for .po and .gmo files in the source directory.
12500 CATALOGS=
12501 XLINGUAS=
12502 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12503 # If there aren't any .gmo files the shell will give us the
12504 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12505 # weeded out.
12506 case "$cat" in *\**)
12507 continue;;
12508 esac
12509 # The quadruple backslash is collapsed to a double backslash
12510 # by the backticks, then collapsed again by the double quotes,
12511 # leaving us with one backslash in the sed expression (right
12512 # before the dot that mustn't act as a wildcard).
12513 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12514 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12515 # The user is allowed to set LINGUAS to a list of languages to
12516 # install catalogs for. If it's empty that means "all of them."
12517 if test "x$LINGUAS" = x; then
12518 CATALOGS="$CATALOGS $cat"
12519 XLINGUAS="$XLINGUAS $lang"
12520 else
12521 case "$LINGUAS" in *$lang*)
12522 CATALOGS="$CATALOGS $cat"
12523 XLINGUAS="$XLINGUAS $lang"
12524 ;;
12525 esac
12526 fi
12527 done
12528 LINGUAS="$XLINGUAS"
12529 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12530 echo "${ECHO_T}$LINGUAS" >&6
12531 fi
12532
12533 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12534 # -liconv on the link line twice.
12535 case "$LIBINTL" in *$LIBICONV*)
12536 LIBICONV= ;;
12537 esac
12538
12539 # Check whether --enable-secureplt or --disable-secureplt was given.
12540 if test "${enable_secureplt+set}" = set; then
12541 enableval="$enable_secureplt"
12542
12543 fi;
12544
12545 # Windows32 Registry support for specifying GCC installation paths.
12546 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12547 if test "${enable_win32_registry+set}" = set; then
12548 enableval="$enable_win32_registry"
12549
12550 fi;
12551
12552 case $host_os in
12553 win32 | pe | cygwin* | mingw32* | uwin*)
12554 if test "x$enable_win32_registry" != xno; then
12555 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12556 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12557 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560 ac_func_search_save_LIBS=$LIBS
12561 ac_cv_search_RegOpenKeyExA=no
12562 cat >conftest.$ac_ext <<_ACEOF
12563 /* confdefs.h. */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568
12569 /* Override any gcc2 internal prototype to avoid an error. */
12570 #ifdef __cplusplus
12571 extern "C"
12572 #endif
12573 /* We use char because int might match the return type of a gcc2
12574 builtin and then its argument prototype would still apply. */
12575 char RegOpenKeyExA ();
12576 int
12577 main ()
12578 {
12579 RegOpenKeyExA ();
12580 ;
12581 return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586 (eval $ac_link) 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 ac_cv_search_RegOpenKeyExA="none required"
12607 else
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 fi
12612 rm -f conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12614 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12615 for ac_lib in advapi32; do
12616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12617 cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h. */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623
12624 /* Override any gcc2 internal prototype to avoid an error. */
12625 #ifdef __cplusplus
12626 extern "C"
12627 #endif
12628 /* We use char because int might match the return type of a gcc2
12629 builtin and then its argument prototype would still apply. */
12630 char RegOpenKeyExA ();
12631 int
12632 main ()
12633 {
12634 RegOpenKeyExA ();
12635 ;
12636 return 0;
12637 }
12638 _ACEOF
12639 rm -f conftest.$ac_objext conftest$ac_exeext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12641 (eval $ac_link) 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try='test -z "$ac_c_werror_flag"
12649 || test ! -s conftest.err'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try='test -s conftest$ac_exeext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12662 break
12663 else
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 fi
12668 rm -f conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670 done
12671 fi
12672 LIBS=$ac_func_search_save_LIBS
12673 fi
12674 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12675 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12676 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12677 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12678
12679 else
12680 enable_win32_registry=no
12681 fi
12682
12683 fi
12684
12685 if test "x$enable_win32_registry" != xno; then
12686
12687 cat >>confdefs.h <<\_ACEOF
12688 #define ENABLE_WIN32_REGISTRY 1
12689 _ACEOF
12690
12691
12692 if test "x$enable_win32_registry" != xyes \
12693 && test "x$enable_win32_registry" != x; then
12694
12695 cat >>confdefs.h <<_ACEOF
12696 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12697 _ACEOF
12698
12699 fi
12700 fi
12701 ;;
12702 esac
12703
12704 # Get an absolute path to the GCC top-level source directory
12705 holddir=`${PWDCMD-pwd}`
12706 cd $srcdir
12707 topdir=`${PWDCMD-pwd}`
12708 cd $holddir
12709
12710 # Conditionalize the makefile for this host machine.
12711 xmake_file=
12712 for f in ${host_xmake_file}
12713 do
12714 if test -f ${srcdir}/config/$f
12715 then
12716 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12717 fi
12718 done
12719
12720 # Conditionalize the makefile for this target machine.
12721 tmake_file_=
12722 for f in ${tmake_file}
12723 do
12724 if test -f ${srcdir}/config/$f
12725 then
12726 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12727 fi
12728 done
12729 tmake_file="${tmake_file_}"
12730
12731 # If the host doesn't support symlinks, modify CC in
12732 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12733 # Otherwise, we can use "CC=$(CC)".
12734 rm -f symtest.tem
12735 case "$LN_S" in
12736 *-s*)
12737 cc_set_by_configure="\$(CC)"
12738 quoted_cc_set_by_configure="\$(CC)"
12739 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12740 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12741 ;;
12742 *)
12743 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12744 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12745 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12746 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12747 ;;
12748 esac
12749
12750 # This is a terrible hack which will go away some day.
12751 host_cc_for_libada=${CC}
12752
12753
12754 out_object_file=`basename $out_file .c`.o
12755
12756 tm_file_list="options.h"
12757 tm_include_list="options.h"
12758 for f in $tm_file; do
12759 case $f in
12760 defaults.h )
12761 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12762 tm_include_list="${tm_include_list} $f"
12763 ;;
12764 * )
12765 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12766 tm_include_list="${tm_include_list} config/$f"
12767 ;;
12768 esac
12769 done
12770
12771 tm_p_file_list=
12772 tm_p_include_list=
12773 for f in $tm_p_file; do
12774 case $f in
12775 tm-preds.h )
12776 tm_p_file_list="${tm_p_file_list} $f"
12777 tm_p_include_list="${tm_p_include_list} $f"
12778 ;;
12779 * )
12780 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12781 tm_p_include_list="${tm_p_include_list} config/$f"
12782 esac
12783 done
12784
12785 xm_file_list=
12786 xm_include_list=
12787 for f in $xm_file; do
12788 case $f in
12789 ansidecl.h )
12790 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12791 xm_include_list="${xm_include_list} $f"
12792 ;;
12793 auto-host.h )
12794 xm_file_list="${xm_file_list} $f"
12795 xm_include_list="${xm_include_list} $f"
12796 ;;
12797 * )
12798 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12799 xm_include_list="${xm_include_list} config/$f"
12800 ;;
12801 esac
12802 done
12803
12804 host_xm_file_list=
12805 host_xm_include_list=
12806 for f in $host_xm_file; do
12807 case $f in
12808 ansidecl.h )
12809 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12810 host_xm_include_list="${host_xm_include_list} $f"
12811 ;;
12812 auto-host.h )
12813 host_xm_file_list="${host_xm_file_list} $f"
12814 host_xm_include_list="${host_xm_include_list} $f"
12815 ;;
12816 * )
12817 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12818 host_xm_include_list="${host_xm_include_list} config/$f"
12819 ;;
12820 esac
12821 done
12822
12823 build_xm_file_list=
12824 for f in $build_xm_file; do
12825 case $f in
12826 ansidecl.h )
12827 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12828 build_xm_include_list="${build_xm_include_list} $f"
12829 ;;
12830 auto-build.h | auto-host.h )
12831 build_xm_file_list="${build_xm_file_list} $f"
12832 build_xm_include_list="${build_xm_include_list} $f"
12833 ;;
12834 * )
12835 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12836 build_xm_include_list="${build_xm_include_list} config/$f"
12837 ;;
12838 esac
12839 done
12840
12841 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12842 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12843 CROSS=
12844 ALL=all.internal
12845 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12846
12847 if test "x$with_build_sysroot" != x; then
12848 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12849 else
12850 # This value is used, even on a native system, because
12851 # CROSS_SYSTEM_HEADER_DIR is just
12852 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12853 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12854 fi
12855
12856 if test x$host != x$target
12857 then
12858 CROSS="-DCROSS_COMPILE"
12859 ALL=all.cross
12860 SYSTEM_HEADER_DIR=$build_system_header_dir
12861 case "$host","$target" in
12862 # Darwin crosses can use the host system's libraries and headers,
12863 # because of the fat library support. Of course, it must be the
12864 # same version of Darwin on both sides. Allow the user to
12865 # just say --target=foo-darwin without a version number to mean
12866 # "the version on this system".
12867 *-*-darwin*,*-*-darwin*)
12868 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12869 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12870 if test $hostos = $targetos -o $targetos = darwin ; then
12871 CROSS=
12872 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12873 with_headers=yes
12874 fi
12875 ;;
12876
12877 i?86-*-*,x86_64-*-* \
12878 | powerpc*-*-*,powerpc64*-*-*)
12879 CROSS="$CROSS -DNATIVE_CROSS" ;;
12880 esac
12881 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12882 SYSTEM_HEADER_DIR=$build_system_header_dir
12883 fi
12884
12885 # If this is a cross-compiler that does not
12886 # have its own set of headers then define
12887 # inhibit_libc
12888
12889 # If this is using newlib, without having the headers available now,
12890 # then define inhibit_libc in LIBGCC2_CFLAGS.
12891 # This prevents libgcc2 from containing any code which requires libc
12892 # support.
12893 inhibit_libc=false
12894 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12895 test x$with_newlib = xyes ; } &&
12896 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12897 inhibit_libc=true
12898 fi
12899
12900
12901 # When building gcc with a cross-compiler, we need to adjust things so
12902 # that the generator programs are still built with the native compiler.
12903 # Also, we cannot run fixincludes or fix-header.
12904
12905 # These are the normal (build=host) settings:
12906 CC_FOR_BUILD='$(CC)'
12907 BUILD_CFLAGS='$(ALL_CFLAGS)'
12908 STMP_FIXINC=stmp-fixinc
12909
12910 # Possibly disable fixproto, on a per-target basis.
12911 case ${use_fixproto} in
12912 no)
12913 STMP_FIXPROTO=
12914 ;;
12915 yes)
12916 STMP_FIXPROTO=stmp-fixproto
12917 ;;
12918 esac
12919
12920
12921 # And these apply if build != host, or we are generating coverage data
12922 if test x$build != x$host || test "x$coverage_flags" != x
12923 then
12924 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12925
12926 if test "x$TARGET_SYSTEM_ROOT" = x; then
12927 if test "x$STMP_FIXPROTO" != x; then
12928 STMP_FIXPROTO=stmp-install-fixproto
12929 fi
12930 fi
12931 fi
12932
12933 # Expand extra_headers to include complete path.
12934 # This substitutes for lots of t-* files.
12935 extra_headers_list=
12936 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12937 for file in ${extra_headers} ; do
12938 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12939 done
12940
12941 # Define collect2 in Makefile.
12942 case $host_can_use_collect2 in
12943 no) collect2= ;;
12944 *) collect2='collect2$(exeext)' ;;
12945 esac
12946
12947
12948 # Add a definition of USE_COLLECT2 if system wants one.
12949 case $use_collect2 in
12950 no) use_collect2= ;;
12951 "") ;;
12952 *)
12953 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12954 xm_defines="${xm_defines} USE_COLLECT2"
12955 case $host_can_use_collect2 in
12956 no)
12957 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12958 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12959 { (exit 1); exit 1; }; }
12960 ;;
12961 esac
12962 ;;
12963 esac
12964
12965 # ---------------------------
12966 # Assembler & linker features
12967 # ---------------------------
12968
12969 # Identify the assembler which will work hand-in-glove with the newly
12970 # built GCC, so that we can examine its features. This is the assembler
12971 # which will be driven by the driver program.
12972 #
12973 # If build != host, and we aren't building gas in-tree, we identify a
12974 # build->target assembler and hope that it will have the same features
12975 # as the host->target assembler we'll be using.
12976 gcc_cv_gas_major_version=
12977 gcc_cv_gas_minor_version=
12978 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12979
12980 if test "${gcc_cv_as+set}" = set; then
12981 :
12982 else
12983
12984 if test -x "$DEFAULT_ASSEMBLER"; then
12985 gcc_cv_as="$DEFAULT_ASSEMBLER"
12986 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12987 && test -f ../gas/Makefile \
12988 && test x$build = x$host; then
12989 gcc_cv_as=../gas/as-new$build_exeext
12990 elif test -x as$build_exeext; then
12991 # Build using assembler in the current directory.
12992 gcc_cv_as=./as$build_exeext
12993 elif test -x $AS_FOR_TARGET; then
12994 gcc_cv_as="$AS_FOR_TARGET"
12995 else
12996 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12997 set dummy $AS_FOR_TARGET; ac_word=$2
12998 echo "$as_me:$LINENO: checking for $ac_word" >&5
12999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13000 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 case $gcc_cv_as in
13004 [\\/]* | ?:[\\/]*)
13005 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13006 ;;
13007 *)
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13010 do
13011 IFS=$as_save_IFS
13012 test -z "$as_dir" && as_dir=.
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13015 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13017 break 2
13018 fi
13019 done
13020 done
13021
13022 ;;
13023 esac
13024 fi
13025 gcc_cv_as=$ac_cv_path_gcc_cv_as
13026
13027 if test -n "$gcc_cv_as"; then
13028 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13029 echo "${ECHO_T}$gcc_cv_as" >&6
13030 else
13031 echo "$as_me:$LINENO: result: no" >&5
13032 echo "${ECHO_T}no" >&6
13033 fi
13034
13035 fi
13036 fi
13037
13038
13039 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13040
13041
13042 echo "$as_me:$LINENO: checking what assembler to use" >&5
13043 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13044 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13045 # Single tree build which includes gas. We want to prefer it
13046 # over whatever linker top-level may have detected, since
13047 # we'll use what we're building after installation anyway.
13048 echo "$as_me:$LINENO: result: newly built gas" >&5
13049 echo "${ECHO_T}newly built gas" >&6
13050 in_tree_gas=yes
13051 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13052 for f in $gcc_cv_as_bfd_srcdir/configure \
13053 $gcc_cv_as_gas_srcdir/configure \
13054 $gcc_cv_as_gas_srcdir/configure.in \
13055 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13056 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13057 if test x$gcc_cv_gas_version != x; then
13058 break
13059 fi
13060 done
13061 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13062 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13063 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13064 case $gcc_cv_gas_patch_version in
13065 "") gcc_cv_gas_patch_version="0" ;;
13066 esac
13067 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13068 + $gcc_cv_gas_minor_version \) \* 1000 \
13069 + $gcc_cv_gas_patch_version`
13070
13071 in_tree_gas_is_elf=no
13072 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13073 || (grep 'obj_format = multi' ../gas/Makefile \
13074 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13075 then
13076 in_tree_gas_is_elf=yes
13077 fi
13078 else
13079 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13080 echo "${ECHO_T}$gcc_cv_as" >&6
13081 in_tree_gas=no
13082 fi
13083
13084 # Identify the linker which will work hand-in-glove with the newly
13085 # built GCC, so that we can examine its features. This is the linker
13086 # which will be driven by the driver program.
13087 #
13088 # If build != host, and we aren't building gas in-tree, we identify a
13089 # build->target linker and hope that it will have the same features
13090 # as the host->target linker we'll be using.
13091 gcc_cv_gld_major_version=
13092 gcc_cv_gld_minor_version=
13093 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13094 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13095
13096 if test "${gcc_cv_ld+set}" = set; then
13097 :
13098 else
13099
13100 if test -x "$DEFAULT_LINKER"; then
13101 gcc_cv_ld="$DEFAULT_LINKER"
13102 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13103 && test -f ../ld/Makefile \
13104 && test x$build = x$host; then
13105 gcc_cv_ld=../ld/ld-new$build_exeext
13106 elif test -x collect-ld$build_exeext; then
13107 # Build using linker in the current directory.
13108 gcc_cv_ld=./collect-ld$build_exeext
13109 elif test -x $LD_FOR_TARGET; then
13110 gcc_cv_ld="$LD_FOR_TARGET"
13111 else
13112 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13113 set dummy $LD_FOR_TARGET; ac_word=$2
13114 echo "$as_me:$LINENO: checking for $ac_word" >&5
13115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13116 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119 case $gcc_cv_ld in
13120 [\\/]* | ?:[\\/]*)
13121 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13122 ;;
13123 *)
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $PATH
13126 do
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13131 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
13134 fi
13135 done
13136 done
13137
13138 ;;
13139 esac
13140 fi
13141 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13142
13143 if test -n "$gcc_cv_ld"; then
13144 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13145 echo "${ECHO_T}$gcc_cv_ld" >&6
13146 else
13147 echo "$as_me:$LINENO: result: no" >&5
13148 echo "${ECHO_T}no" >&6
13149 fi
13150
13151 fi
13152 fi
13153
13154
13155 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13156
13157
13158 echo "$as_me:$LINENO: checking what linker to use" >&5
13159 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13160 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13161 # Single tree build which includes ld. We want to prefer it
13162 # over whatever linker top-level may have detected, since
13163 # we'll use what we're building after installation anyway.
13164 echo "$as_me:$LINENO: result: newly built ld" >&5
13165 echo "${ECHO_T}newly built ld" >&6
13166 in_tree_ld=yes
13167 in_tree_ld_is_elf=no
13168 if (grep 'EMUL = .*elf' ../ld/Makefile \
13169 || grep 'EMUL = .*linux' ../ld/Makefile \
13170 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13171 in_tree_ld_is_elf=yes
13172 fi
13173 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
13174 do
13175 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13176 if test x$gcc_cv_gld_version != x; then
13177 break
13178 fi
13179 done
13180 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13181 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13182 else
13183 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13184 echo "${ECHO_T}$gcc_cv_ld" >&6
13185 in_tree_ld=no
13186 fi
13187
13188 # Figure out what nm we will be using.
13189 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13190 if test "${gcc_cv_nm+set}" = set; then
13191 :
13192 else
13193
13194 if test -f $gcc_cv_binutils_srcdir/configure.in \
13195 && test -f ../binutils/Makefile; then
13196 gcc_cv_nm=../binutils/nm-new$build_exeext
13197 elif test -x nm$build_exeext; then
13198 gcc_cv_nm=./nm$build_exeext
13199 elif test -x $NM_FOR_TARGET; then
13200 gcc_cv_nm="$NM_FOR_TARGET"
13201 else
13202 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13203 set dummy $NM_FOR_TARGET; ac_word=$2
13204 echo "$as_me:$LINENO: checking for $ac_word" >&5
13205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13206 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209 case $gcc_cv_nm in
13210 [\\/]* | ?:[\\/]*)
13211 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13212 ;;
13213 *)
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13216 do
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 break 2
13224 fi
13225 done
13226 done
13227
13228 ;;
13229 esac
13230 fi
13231 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13232
13233 if test -n "$gcc_cv_nm"; then
13234 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13235 echo "${ECHO_T}$gcc_cv_nm" >&6
13236 else
13237 echo "$as_me:$LINENO: result: no" >&5
13238 echo "${ECHO_T}no" >&6
13239 fi
13240
13241 fi
13242 fi
13243
13244
13245 echo "$as_me:$LINENO: checking what nm to use" >&5
13246 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13247 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13248 # Single tree build which includes binutils.
13249 echo "$as_me:$LINENO: result: newly built nm" >&5
13250 echo "${ECHO_T}newly built nm" >&6
13251 in_tree_nm=yes
13252 else
13253 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13254 echo "${ECHO_T}$gcc_cv_nm" >&6
13255 in_tree_nm=no
13256 fi
13257
13258 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13259
13260
13261 # Figure out what objdump we will be using.
13262 if test "${gcc_cv_objdump+set}" = set; then
13263 :
13264 else
13265
13266 if test -f $gcc_cv_binutils_srcdir/configure.in \
13267 && test -f ../binutils/Makefile; then
13268 # Single tree build which includes binutils.
13269 gcc_cv_objdump=../binutils/objdump$build_exeext
13270 elif test -x objdump$build_exeext; then
13271 gcc_cv_objdump=./objdump$build_exeext
13272 elif test -x $OBJDUMP_FOR_TARGET; then
13273 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13274 else
13275 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13276 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13277 echo "$as_me:$LINENO: checking for $ac_word" >&5
13278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13279 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282 case $gcc_cv_objdump in
13283 [\\/]* | ?:[\\/]*)
13284 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13285 ;;
13286 *)
13287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $PATH
13289 do
13290 IFS=$as_save_IFS
13291 test -z "$as_dir" && as_dir=.
13292 for ac_exec_ext in '' $ac_executable_extensions; do
13293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13294 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13296 break 2
13297 fi
13298 done
13299 done
13300
13301 ;;
13302 esac
13303 fi
13304 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13305
13306 if test -n "$gcc_cv_objdump"; then
13307 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13308 echo "${ECHO_T}$gcc_cv_objdump" >&6
13309 else
13310 echo "$as_me:$LINENO: result: no" >&5
13311 echo "${ECHO_T}no" >&6
13312 fi
13313
13314 fi
13315 fi
13316
13317
13318 echo "$as_me:$LINENO: checking what objdump to use" >&5
13319 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13320 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13321 # Single tree build which includes binutils.
13322 echo "$as_me:$LINENO: result: newly built objdump" >&5
13323 echo "${ECHO_T}newly built objdump" >&6
13324 elif test x$gcc_cv_objdump = x; then
13325 echo "$as_me:$LINENO: result: not found" >&5
13326 echo "${ECHO_T}not found" >&6
13327 else
13328 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13329 echo "${ECHO_T}$gcc_cv_objdump" >&6
13330 fi
13331
13332 # Figure out what assembler alignment features are present.
13333 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13334 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13335 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 else
13338 gcc_cv_as_balign_and_p2align=no
13339 if test $in_tree_gas = yes; then
13340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13341 then gcc_cv_as_balign_and_p2align=yes
13342 fi
13343 elif test x$gcc_cv_as != x; then
13344 echo '.balign 4
13345 .p2align 2' > conftest.s
13346 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }
13352 then
13353 gcc_cv_as_balign_and_p2align=yes
13354 else
13355 echo "configure: failed program was" >&5
13356 cat conftest.s >&5
13357 fi
13358 rm -f conftest.o conftest.s
13359 fi
13360 fi
13361 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13362 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13363 if test $gcc_cv_as_balign_and_p2align = yes; then
13364
13365 cat >>confdefs.h <<\_ACEOF
13366 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13367 _ACEOF
13368
13369 fi
13370
13371 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13372 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13373 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376 gcc_cv_as_max_skip_p2align=no
13377 if test $in_tree_gas = yes; then
13378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13379 then gcc_cv_as_max_skip_p2align=yes
13380 fi
13381 elif test x$gcc_cv_as != x; then
13382 echo '.p2align 4,,7' > conftest.s
13383 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }
13389 then
13390 gcc_cv_as_max_skip_p2align=yes
13391 else
13392 echo "configure: failed program was" >&5
13393 cat conftest.s >&5
13394 fi
13395 rm -f conftest.o conftest.s
13396 fi
13397 fi
13398 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13399 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13400 if test $gcc_cv_as_max_skip_p2align = yes; then
13401
13402 cat >>confdefs.h <<\_ACEOF
13403 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13404 _ACEOF
13405
13406 fi
13407
13408 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13409 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13410 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 else
13413 gcc_cv_as_subsection_m1=no
13414 if test $in_tree_gas = yes; then
13415 if test $in_tree_gas_is_elf = yes \
13416 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13417 then gcc_cv_as_subsection_m1=yes
13418 fi
13419 elif test x$gcc_cv_as != x; then
13420 echo 'conftest_label1: .word 0
13421 .subsection -1
13422 conftest_label2: .word 0
13423 .previous' > conftest.s
13424 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }
13430 then
13431 if test x$gcc_cv_nm != x; then
13432 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13433 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13434 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13435 then :
13436 else gcc_cv_as_subsection_m1=yes
13437 fi
13438 rm -f conftest.nm1 conftest.nm2
13439 fi
13440 else
13441 echo "configure: failed program was" >&5
13442 cat conftest.s >&5
13443 fi
13444 rm -f conftest.o conftest.s
13445 fi
13446 fi
13447 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13448 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13449 if test $gcc_cv_as_subsection_m1 = yes; then
13450
13451 cat >>confdefs.h <<\_ACEOF
13452 #define HAVE_GAS_SUBSECTION_ORDERING 1
13453 _ACEOF
13454
13455 fi
13456
13457 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13458 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13459 if test "${gcc_cv_as_weak+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462 gcc_cv_as_weak=no
13463 if test $in_tree_gas = yes; then
13464 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13465 then gcc_cv_as_weak=yes
13466 fi
13467 elif test x$gcc_cv_as != x; then
13468 echo ' .weak foobar' > conftest.s
13469 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }
13475 then
13476 gcc_cv_as_weak=yes
13477 else
13478 echo "configure: failed program was" >&5
13479 cat conftest.s >&5
13480 fi
13481 rm -f conftest.o conftest.s
13482 fi
13483 fi
13484 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13485 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13486 if test $gcc_cv_as_weak = yes; then
13487
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_GAS_WEAK 1
13490 _ACEOF
13491
13492 fi
13493
13494 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13495 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13496 if test "${gcc_cv_as_weakref+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 else
13499 gcc_cv_as_weakref=no
13500 if test $in_tree_gas = yes; then
13501 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13502 then gcc_cv_as_weakref=yes
13503 fi
13504 elif test x$gcc_cv_as != x; then
13505 echo ' .weakref foobar, barfnot' > conftest.s
13506 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }
13512 then
13513 gcc_cv_as_weakref=yes
13514 else
13515 echo "configure: failed program was" >&5
13516 cat conftest.s >&5
13517 fi
13518 rm -f conftest.o conftest.s
13519 fi
13520 fi
13521 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13522 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13523 if test $gcc_cv_as_weakref = yes; then
13524
13525 cat >>confdefs.h <<\_ACEOF
13526 #define HAVE_GAS_WEAKREF 1
13527 _ACEOF
13528
13529 fi
13530
13531 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13532 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13533 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536 gcc_cv_as_nsubspa_comdat=no
13537 if test $in_tree_gas = yes; then
13538 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13539 then gcc_cv_as_nsubspa_comdat=yes
13540 fi
13541 elif test x$gcc_cv_as != x; then
13542 echo ' .SPACE $TEXT$
13543 .NSUBSPA $CODE$,COMDAT' > conftest.s
13544 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }
13550 then
13551 gcc_cv_as_nsubspa_comdat=yes
13552 else
13553 echo "configure: failed program was" >&5
13554 cat conftest.s >&5
13555 fi
13556 rm -f conftest.o conftest.s
13557 fi
13558 fi
13559 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13560 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13561 if test $gcc_cv_as_nsubspa_comdat = yes; then
13562
13563 cat >>confdefs.h <<\_ACEOF
13564 #define HAVE_GAS_NSUBSPA_COMDAT 1
13565 _ACEOF
13566
13567 fi
13568
13569 # .hidden needs to be supported in both the assembler and the linker,
13570 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13571 # This is irritatingly difficult to feature test for; we have to check the
13572 # date string after the version number. If we've got an in-tree
13573 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13574 # to be safe.
13575 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13576 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13577 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13578 if test "${gcc_cv_as_hidden+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581 gcc_cv_as_hidden=no
13582 if test $in_tree_gas = yes; then
13583 if test $in_tree_gas_is_elf = yes \
13584 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13585 then gcc_cv_as_hidden=yes
13586 fi
13587 elif test x$gcc_cv_as != x; then
13588 echo ' .hidden foobar
13589 foobar:' > conftest.s
13590 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }
13596 then
13597 gcc_cv_as_hidden=yes
13598 else
13599 echo "configure: failed program was" >&5
13600 cat conftest.s >&5
13601 fi
13602 rm -f conftest.o conftest.s
13603 fi
13604 fi
13605 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13606 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13607
13608
13609 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13610 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13611 if test "${gcc_cv_ld_hidden+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614 if test $in_tree_ld = yes ; then
13615 gcc_cv_ld_hidden=no
13616 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 \
13617 && test $in_tree_ld_is_elf = yes; then
13618 gcc_cv_ld_hidden=yes
13619 fi
13620 else
13621 gcc_cv_ld_hidden=yes
13622 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13623 if echo "$ld_ver" | grep GNU > /dev/null; then
13624 ld_vers=`echo $ld_ver | sed -n \
13625 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13626 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13627 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13628 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13629 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13630 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13631 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13632 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'`
13633 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13634 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13635 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13636 if test 0"$ld_date" -lt 20020404; then
13637 if test -n "$ld_date"; then
13638 # If there was date string, but was earlier than 2002-04-04, fail
13639 gcc_cv_ld_hidden=no
13640 elif test -z "$ld_vers"; then
13641 # If there was no date string nor ld version number, something is wrong
13642 gcc_cv_ld_hidden=no
13643 else
13644 test -z "$ld_vers_patch" && ld_vers_patch=0
13645 if test "$ld_vers_major" -lt 2; then
13646 gcc_cv_ld_hidden=no
13647 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13648 gcc_cv_ld_hidden="no"
13649 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13650 gcc_cv_ld_hidden=no
13651 fi
13652 fi
13653 fi
13654 else
13655 case "${target}" in
13656 hppa64*-*-hpux* | ia64*-*-hpux*)
13657 gcc_cv_ld_hidden=yes
13658 ;;
13659 *)
13660 gcc_cv_ld_hidden=no
13661 ;;
13662 esac
13663 fi
13664 fi
13665 fi
13666 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13667 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13668 libgcc_visibility=no
13669
13670
13671 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13672 libgcc_visibility=yes
13673
13674 cat >>confdefs.h <<\_ACEOF
13675 #define HAVE_GAS_HIDDEN 1
13676 _ACEOF
13677
13678 fi
13679
13680 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13681 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13682 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13683 if test "${gcc_cv_as_leb128+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686 gcc_cv_as_leb128=no
13687 if test $in_tree_gas = yes; then
13688 if test $in_tree_gas_is_elf = yes \
13689 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13690 then gcc_cv_as_leb128=yes
13691 fi
13692 elif test x$gcc_cv_as != x; then
13693 echo ' .data
13694 .uleb128 L2 - L1
13695 L1:
13696 .uleb128 1280
13697 .sleb128 -1010
13698 L2:' > conftest.s
13699 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }
13705 then
13706 # GAS versions before 2.11 do not support uleb128,
13707 # despite appearing to.
13708 # ??? There exists an elf-specific test that will crash
13709 # the assembler. Perhaps it's better to figure out whether
13710 # arbitrary sections are supported and try the test.
13711 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13712 if echo "$as_ver" | grep GNU > /dev/null; then
13713 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13714 as_major=`echo $as_ver | sed 's/\..*//'`
13715 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13716 if test $as_major -eq 2 && test $as_minor -lt 11
13717 then :
13718 else gcc_cv_as_leb128=yes
13719 fi
13720 fi
13721 else
13722 echo "configure: failed program was" >&5
13723 cat conftest.s >&5
13724 fi
13725 rm -f conftest.o conftest.s
13726 fi
13727 fi
13728 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13729 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13730 if test $gcc_cv_as_leb128 = yes; then
13731
13732 cat >>confdefs.h <<\_ACEOF
13733 #define HAVE_AS_LEB128 1
13734 _ACEOF
13735
13736 fi
13737
13738 # GAS versions up to and including 2.11.0 may mis-optimize
13739 # .eh_frame data.
13740 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13741 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13742 if test "${gcc_cv_as_eh_frame+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 else
13745 gcc_cv_as_eh_frame=no
13746 if test $in_tree_gas = yes; then
13747 if test $in_tree_gas_is_elf = yes \
13748 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13749 then gcc_cv_as_eh_frame=yes
13750 fi
13751 elif test x$gcc_cv_as != x; then
13752 echo ' .text
13753 .LFB1:
13754 .4byte 0
13755 .L1:
13756 .4byte 0
13757 .LFE1:
13758 .section .eh_frame,"aw",@progbits
13759 __FRAME_BEGIN__:
13760 .4byte .LECIE1-.LSCIE1
13761 .LSCIE1:
13762 .4byte 0x0
13763 .byte 0x1
13764 .ascii "z\0"
13765 .byte 0x1
13766 .byte 0x78
13767 .byte 0x1a
13768 .byte 0x0
13769 .byte 0x4
13770 .4byte 1
13771 .p2align 1
13772 .LECIE1:
13773 .LSFDE1:
13774 .4byte .LEFDE1-.LASFDE1
13775 .LASFDE1:
13776 .4byte .LASFDE1-__FRAME_BEGIN__
13777 .4byte .LFB1
13778 .4byte .LFE1-.LFB1
13779 .byte 0x4
13780 .4byte .LFE1-.LFB1
13781 .byte 0x4
13782 .4byte .L1-.LFB1
13783 .LEFDE1:' > conftest.s
13784 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }
13790 then
13791 cat > conftest.lit <<EOF
13792 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13793 0010 01000000 12000000 18000000 00000000 ................
13794 0020 08000000 04080000 0044 .........D
13795 EOF
13796 cat > conftest.big <<EOF
13797 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13798 0010 00000001 00000012 00000018 00000000 ................
13799 0020 00000008 04000000 0844 .........D
13800 EOF
13801 # If the assembler didn't choke, and we can objdump,
13802 # and we got the correct data, then succeed.
13803 if test x$gcc_cv_objdump != x \
13804 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13805 | tail -3 > conftest.got \
13806 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13807 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13808 then
13809 gcc_cv_as_eh_frame=yes
13810 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13816 gcc_cv_as_eh_frame=buggy
13817 else
13818 # Uh oh, what do we do now?
13819 gcc_cv_as_eh_frame=no
13820 fi
13821 else
13822 echo "configure: failed program was" >&5
13823 cat conftest.s >&5
13824 fi
13825 rm -f conftest.o conftest.s
13826 fi
13827 fi
13828 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13829 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13830
13831
13832 if test $gcc_cv_as_eh_frame = buggy; then
13833
13834 cat >>confdefs.h <<\_ACEOF
13835 #define USE_AS_TRADITIONAL_FORMAT 1
13836 _ACEOF
13837
13838 fi
13839
13840 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13841 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13842 if test "${gcc_cv_as_shf_merge+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13844 else
13845 gcc_cv_as_shf_merge=no
13846 if test $in_tree_gas = yes; then
13847 if test $in_tree_gas_is_elf = yes \
13848 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13849 then gcc_cv_as_shf_merge=yes
13850 fi
13851 elif test x$gcc_cv_as != x; then
13852 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13853 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }
13859 then
13860 gcc_cv_as_shf_merge=yes
13861 else
13862 echo "configure: failed program was" >&5
13863 cat conftest.s >&5
13864 fi
13865 rm -f conftest.o conftest.s
13866 fi
13867 fi
13868 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13869 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13870
13871 if test $gcc_cv_as_shf_merge = no; then
13872 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13873 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13874 if test "${gcc_cv_as_shf_merge+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877 gcc_cv_as_shf_merge=no
13878 if test $in_tree_gas = yes; then
13879 if test $in_tree_gas_is_elf = yes \
13880 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13881 then gcc_cv_as_shf_merge=yes
13882 fi
13883 elif test x$gcc_cv_as != x; then
13884 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13885 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }
13891 then
13892 gcc_cv_as_shf_merge=yes
13893 else
13894 echo "configure: failed program was" >&5
13895 cat conftest.s >&5
13896 fi
13897 rm -f conftest.o conftest.s
13898 fi
13899 fi
13900 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13901 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13902
13903 fi
13904
13905 cat >>confdefs.h <<_ACEOF
13906 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13907 _ACEOF
13908
13909
13910 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13911 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13912 if test "${gcc_cv_as_comdat_group+set}" = set; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 else
13915 gcc_cv_as_comdat_group=no
13916 if test $in_tree_gas = yes; then
13917 if test $in_tree_gas_is_elf = yes \
13918 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13919 then gcc_cv_as_comdat_group=yes
13920 fi
13921 elif test x$gcc_cv_as != x; then
13922 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13923 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }
13929 then
13930 gcc_cv_as_comdat_group=yes
13931 else
13932 echo "configure: failed program was" >&5
13933 cat conftest.s >&5
13934 fi
13935 rm -f conftest.o conftest.s
13936 fi
13937 fi
13938 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13939 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13940
13941 if test $gcc_cv_as_comdat_group = yes; then
13942 gcc_cv_as_comdat_group_percent=no
13943 else
13944 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13945 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13946 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13949 gcc_cv_as_comdat_group_percent=no
13950 if test $in_tree_gas = yes; then
13951 if test $in_tree_gas_is_elf = yes \
13952 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13953 then gcc_cv_as_comdat_group_percent=yes
13954 fi
13955 elif test x$gcc_cv_as != x; then
13956 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13957 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }
13963 then
13964 gcc_cv_as_comdat_group_percent=yes
13965 else
13966 echo "configure: failed program was" >&5
13967 cat conftest.s >&5
13968 fi
13969 rm -f conftest.o conftest.s
13970 fi
13971 fi
13972 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13973 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13974
13975 fi
13976 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
13977 comdat_group=yes
13978 if test 0"$ld_date" -lt 20050308; then
13979 if test -n "$ld_date"; then
13980 # If there was date string, but was earlier than 2005-03-08, fail
13981 comdat_group=no
13982 elif test "$ld_vers_major" -lt 2; then
13983 comdat_group=no
13984 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13985 comdat_group=no
13986 fi
13987 fi
13988 else
13989 # assume linkers other than GNU ld don't support COMDAT group
13990 comdat_group=no
13991 fi
13992 if test $comdat_group = no; then
13993 gcc_cv_as_comdat_group=no
13994 gcc_cv_as_comdat_group_percent=no
13995 fi
13996
13997 cat >>confdefs.h <<_ACEOF
13998 #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`
13999 _ACEOF
14000
14001
14002 # Thread-local storage - the check is heavily parametrized.
14003 conftest_s=
14004 tls_first_major=
14005 tls_first_minor=
14006 tls_as_opt=
14007 case "$target" in
14008 alpha*-*-*)
14009 conftest_s='
14010 .section ".tdata","awT",@progbits
14011 foo: .long 25
14012 .text
14013 ldq $27,__tls_get_addr($29) !literal!1
14014 lda $16,foo($29) !tlsgd!1
14015 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14016 ldq $27,__tls_get_addr($29) !literal!2
14017 lda $16,foo($29) !tlsldm!2
14018 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14019 ldq $1,foo($29) !gotdtprel
14020 ldah $2,foo($29) !dtprelhi
14021 lda $3,foo($2) !dtprello
14022 lda $4,foo($29) !dtprel
14023 ldq $1,foo($29) !gottprel
14024 ldah $2,foo($29) !tprelhi
14025 lda $3,foo($2) !tprello
14026 lda $4,foo($29) !tprel'
14027 tls_first_major=2
14028 tls_first_minor=13
14029 tls_as_opt=--fatal-warnings
14030 ;;
14031 frv*-*-*)
14032 conftest_s='
14033 .section ".tdata","awT",@progbits
14034 x: .long 25
14035 .text
14036 call #gettlsoff(x)'
14037 tls_first_major=2
14038 tls_first_minor=14
14039 ;;
14040 hppa*-*-linux*)
14041 conftest_s='
14042 t1: .reg %r20
14043 t2: .reg %r21
14044 gp: .reg %r19
14045 .section ".tdata","awT",@progbits
14046 foo: .long 25
14047 .text
14048 .align 4
14049 addil LT%foo-$tls_gdidx$,gp
14050 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14051 b __tls_get_addr
14052 nop
14053 addil LT%foo-$tls_ldidx$,gp
14054 b __tls_get_addr
14055 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14056 addil LR%foo-$tls_dtpoff$,%ret0
14057 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14058 mfctl %cr27,%t1
14059 addil LT%foo-$tls_ieoff$,gp
14060 ldw RT%foo-$tls_ieoff$(%r1),%t2
14061 add %t1,%t2,%t3
14062 mfctl %cr27,%t1
14063 addil LR%foo-$tls_leoff$,%t1
14064 ldo RR%foo-$tls_leoff$(%r1),%t2'
14065 tls_first_major=2
14066 tls_first_minor=15
14067 tls_as_opt=--fatal-warnings
14068 ;;
14069 arm*-*-*)
14070 conftest_s='
14071 .section ".tdata","awT",%progbits
14072 foo: .long 25
14073 .text
14074 .word foo(gottpoff)
14075 .word foo(tpoff)
14076 .word foo(tlsgd)
14077 .word foo(tlsldm)
14078 .word foo(tlsldo)'
14079 tls_first_major=2
14080 tls_first_minor=17
14081 ;;
14082 i[34567]86-*-*)
14083 conftest_s='
14084 .section ".tdata","awT",@progbits
14085 foo: .long 25
14086 .text
14087 movl %gs:0, %eax
14088 leal foo@TLSGD(,%ebx,1), %eax
14089 leal foo@TLSLDM(%ebx), %eax
14090 leal foo@DTPOFF(%eax), %edx
14091 movl foo@GOTTPOFF(%ebx), %eax
14092 subl foo@GOTTPOFF(%ebx), %eax
14093 addl foo@GOTNTPOFF(%ebx), %eax
14094 movl foo@INDNTPOFF, %eax
14095 movl $foo@TPOFF, %eax
14096 subl $foo@TPOFF, %eax
14097 leal foo@NTPOFF(%ecx), %eax'
14098 tls_first_major=2
14099 tls_first_minor=14
14100 tls_as_opt=--fatal-warnings
14101 ;;
14102 x86_64-*-*)
14103 conftest_s='
14104 .section ".tdata","awT",@progbits
14105 foo: .long 25
14106 .text
14107 movq %fs:0, %rax
14108 leaq foo@TLSGD(%rip), %rdi
14109 leaq foo@TLSLD(%rip), %rdi
14110 leaq foo@DTPOFF(%rax), %rdx
14111 movq foo@GOTTPOFF(%rip), %rax
14112 movq $foo@TPOFF, %rax'
14113 tls_first_major=2
14114 tls_first_minor=14
14115 tls_as_opt=--fatal-warnings
14116 ;;
14117 ia64-*-*)
14118 conftest_s='
14119 .section ".tdata","awT",@progbits
14120 foo: data8 25
14121 .text
14122 addl r16 = @ltoff(@dtpmod(foo#)), gp
14123 addl r17 = @ltoff(@dtprel(foo#)), gp
14124 addl r18 = @ltoff(@tprel(foo#)), gp
14125 addl r19 = @dtprel(foo#), gp
14126 adds r21 = @dtprel(foo#), r13
14127 movl r23 = @dtprel(foo#)
14128 addl r20 = @tprel(foo#), gp
14129 adds r22 = @tprel(foo#), r13
14130 movl r24 = @tprel(foo#)'
14131 tls_first_major=2
14132 tls_first_minor=13
14133 tls_as_opt=--fatal-warnings
14134 ;;
14135 mips*-*-*)
14136 conftest_s='
14137 .section .tdata,"awT",@progbits
14138 x:
14139 .word 2
14140 .text
14141 addiu $4, $28, %tlsgd(x)
14142 addiu $4, $28, %tlsldm(x)
14143 lui $4, %dtprel_hi(x)
14144 addiu $4, $4, %dtprel_lo(x)
14145 lw $4, %gottprel(x)($28)
14146 lui $4, %tprel_hi(x)
14147 addiu $4, $4, %tprel_lo(x)'
14148 tls_first_major=2
14149 tls_first_minor=16
14150 tls_as_opt='-32 --fatal-warnings'
14151 ;;
14152 powerpc-*-*)
14153 conftest_s='
14154 .section ".tdata","awT",@progbits
14155 .align 2
14156 ld0: .space 4
14157 ld1: .space 4
14158 x1: .space 4
14159 x2: .space 4
14160 x3: .space 4
14161 .text
14162 addi 3,31,ld0@got@tlsgd
14163 bl __tls_get_addr
14164 addi 3,31,x1@got@tlsld
14165 bl __tls_get_addr
14166 addi 9,3,x1@dtprel
14167 addis 9,3,x2@dtprel@ha
14168 addi 9,9,x2@dtprel@l
14169 lwz 9,x3@got@tprel(31)
14170 add 9,9,x@tls
14171 addi 9,2,x1@tprel
14172 addis 9,2,x2@tprel@ha
14173 addi 9,9,x2@tprel@l'
14174 tls_first_major=2
14175 tls_first_minor=14
14176 tls_as_opt="-a32 --fatal-warnings"
14177 ;;
14178 powerpc64-*-*)
14179 conftest_s='
14180 .section ".tdata","awT",@progbits
14181 .align 3
14182 ld0: .space 8
14183 ld1: .space 8
14184 x1: .space 8
14185 x2: .space 8
14186 x3: .space 8
14187 .text
14188 addi 3,2,ld0@got@tlsgd
14189 bl .__tls_get_addr
14190 nop
14191 addi 3,2,ld1@toc
14192 bl .__tls_get_addr
14193 nop
14194 addi 3,2,x1@got@tlsld
14195 bl .__tls_get_addr
14196 nop
14197 addi 9,3,x1@dtprel
14198 bl .__tls_get_addr
14199 nop
14200 addis 9,3,x2@dtprel@ha
14201 addi 9,9,x2@dtprel@l
14202 bl .__tls_get_addr
14203 nop
14204 ld 9,x3@got@dtprel(2)
14205 add 9,9,3
14206 bl .__tls_get_addr
14207 nop'
14208 tls_first_major=2
14209 tls_first_minor=14
14210 tls_as_opt="-a64 --fatal-warnings"
14211 ;;
14212 s390-*-*)
14213 conftest_s='
14214 .section ".tdata","awT",@progbits
14215 foo: .long 25
14216 .text
14217 .long foo@TLSGD
14218 .long foo@TLSLDM
14219 .long foo@DTPOFF
14220 .long foo@NTPOFF
14221 .long foo@GOTNTPOFF
14222 .long foo@INDNTPOFF
14223 l %r1,foo@GOTNTPOFF(%r12)
14224 l %r1,0(%r1):tls_load:foo
14225 bas %r14,0(%r1,%r13):tls_gdcall:foo
14226 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14227 tls_first_major=2
14228 tls_first_minor=14
14229 tls_as_opt="-m31 --fatal-warnings"
14230 ;;
14231 s390x-*-*)
14232 conftest_s='
14233 .section ".tdata","awT",@progbits
14234 foo: .long 25
14235 .text
14236 .quad foo@TLSGD
14237 .quad foo@TLSLDM
14238 .quad foo@DTPOFF
14239 .quad foo@NTPOFF
14240 .quad foo@GOTNTPOFF
14241 lg %r1,foo@GOTNTPOFF(%r12)
14242 larl %r1,foo@INDNTPOFF
14243 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14244 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14245 tls_first_major=2
14246 tls_first_minor=14
14247 tls_as_opt="-m64 -Aesame --fatal-warnings"
14248 ;;
14249 sh-*-* | sh[34]-*-*)
14250 conftest_s='
14251 .section ".tdata","awT",@progbits
14252 foo: .long 25
14253 .text
14254 .long foo@TLSGD
14255 .long foo@TLSLDM
14256 .long foo@DTPOFF
14257 .long foo@GOTTPOFF
14258 .long foo@TPOFF'
14259 tls_first_major=2
14260 tls_first_minor=13
14261 tls_as_opt=--fatal-warnings
14262 ;;
14263 sparc*-*-*)
14264 case "$target" in
14265 sparc*-sun-solaris2.[56789]*)
14266 # TLS was introduced in the Solaris 9 4/04 release but
14267 # we do not enable it by default on Solaris 9 either.
14268 if test "x$enable_tls" = xyes ; then
14269 on_solaris=yes
14270 else
14271 enable_tls=no;
14272 fi
14273 ;;
14274 sparc*-sun-solaris2.*)
14275 on_solaris=yes
14276 ;;
14277 *)
14278 on_solaris=no
14279 ;;
14280 esac
14281 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14282 conftest_s='
14283 .section ".tdata",#alloc,#write,#tls
14284 foo: .long 25
14285 .text
14286 sethi %tgd_hi22(foo), %o0
14287 add %o0, %tgd_lo10(foo), %o1
14288 add %l7, %o1, %o0, %tgd_add(foo)
14289 call __tls_get_addr, %tgd_call(foo)
14290 sethi %tldm_hi22(foo), %l1
14291 add %l1, %tldm_lo10(foo), %l2
14292 add %l7, %l2, %o0, %tldm_add(foo)
14293 call __tls_get_addr, %tldm_call(foo)
14294 sethi %tldo_hix22(foo), %l3
14295 xor %l3, %tldo_lox10(foo), %l4
14296 add %o0, %l4, %l5, %tldo_add(foo)
14297 sethi %tie_hi22(foo), %o3
14298 add %o3, %tie_lo10(foo), %o3
14299 ld [%l7 + %o3], %o2, %tie_ld(foo)
14300 add %g7, %o2, %o4, %tie_add(foo)
14301 sethi %tle_hix22(foo), %l1
14302 xor %l1, %tle_lox10(foo), %o5
14303 ld [%g7 + %o5], %o1'
14304 tls_first_major=0
14305 tls_first_minor=0
14306 else
14307 conftest_s='
14308 .section ".tdata","awT",@progbits
14309 foo: .long 25
14310 .text
14311 sethi %tgd_hi22(foo), %o0
14312 add %o0, %tgd_lo10(foo), %o1
14313 add %l7, %o1, %o0, %tgd_add(foo)
14314 call __tls_get_addr, %tgd_call(foo)
14315 sethi %tldm_hi22(foo), %l1
14316 add %l1, %tldm_lo10(foo), %l2
14317 add %l7, %l2, %o0, %tldm_add(foo)
14318 call __tls_get_addr, %tldm_call(foo)
14319 sethi %tldo_hix22(foo), %l3
14320 xor %l3, %tldo_lox10(foo), %l4
14321 add %o0, %l4, %l5, %tldo_add(foo)
14322 sethi %tie_hi22(foo), %o3
14323 add %o3, %tie_lo10(foo), %o3
14324 ld [%l7 + %o3], %o2, %tie_ld(foo)
14325 add %g7, %o2, %o4, %tie_add(foo)
14326 sethi %tle_hix22(foo), %l1
14327 xor %l1, %tle_lox10(foo), %o5
14328 ld [%g7 + %o5], %o1'
14329 tls_first_major=2
14330 tls_first_minor=14
14331 tls_as_opt="-32 --fatal-warnings"
14332 fi
14333 ;;
14334 esac
14335 set_have_as_tls=no
14336 if test "x$enable_tls" = xno ; then
14337 : # TLS explicitly disabled.
14338 elif test "x$enable_tls" = xyes ; then
14339 set_have_as_tls=yes # TLS explicitly enabled.
14340 elif test -z "$tls_first_major"; then
14341 : # If we don't have a check, assume no support.
14342 else
14343 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14344 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14345 if test "${gcc_cv_as_tls+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348 gcc_cv_as_tls=no
14349 if test $in_tree_gas = yes; then
14350 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14351 then gcc_cv_as_tls=yes
14352 fi
14353 elif test x$gcc_cv_as != x; then
14354 echo "$conftest_s" > conftest.s
14355 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }
14361 then
14362 gcc_cv_as_tls=yes
14363 else
14364 echo "configure: failed program was" >&5
14365 cat conftest.s >&5
14366 fi
14367 rm -f conftest.o conftest.s
14368 fi
14369 fi
14370 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14371 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14372 if test $gcc_cv_as_tls = yes; then
14373 set_have_as_tls=yes
14374 fi
14375 fi
14376 if test $set_have_as_tls = yes ; then
14377
14378 cat >>confdefs.h <<\_ACEOF
14379 #define HAVE_AS_TLS 1
14380 _ACEOF
14381
14382 fi
14383
14384 # Target-specific assembler checks.
14385
14386 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14387 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14388 gcc_cv_ld_static_dynamic=no
14389 if test $in_tree_ld = yes ; then
14390 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14391 gcc_cv_ld_static_dynamic=yes
14392 fi
14393 elif test x$gcc_cv_ld != x; then
14394 # Check if linker supports -Bstatic/-Bdynamic option
14395 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14396 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14397 gcc_cv_ld_static_dynamic=yes
14398 fi
14399 fi
14400 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14401
14402 cat >>confdefs.h <<\_ACEOF
14403 #define HAVE_LD_STATIC_DYNAMIC 1
14404 _ACEOF
14405
14406 fi
14407 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14408 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14409
14410 if test x"$demangler_in_ld" = xyes; then
14411 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14412 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14413 gcc_cv_ld_demangle=no
14414 if test $in_tree_ld = yes; then
14415 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 \
14416 gcc_cv_ld_demangle=yes
14417 fi
14418 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14419 # Check if the GNU linker supports --demangle option
14420 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14421 gcc_cv_ld_demangle=yes
14422 fi
14423 fi
14424 if test x"$gcc_cv_ld_demangle" = xyes; then
14425
14426 cat >>confdefs.h <<\_ACEOF
14427 #define HAVE_LD_DEMANGLE 1
14428 _ACEOF
14429
14430 fi
14431 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14432 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14433 fi
14434
14435 case "$target" in
14436 # All TARGET_ABI_OSF targets.
14437 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14438 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14439 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14440 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 else
14443 gcc_cv_as_alpha_explicit_relocs=no
14444 if test $in_tree_gas = yes; then
14445 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14446 then gcc_cv_as_alpha_explicit_relocs=yes
14447 fi
14448 elif test x$gcc_cv_as != x; then
14449 echo ' .set nomacro
14450 .text
14451 extbl $3, $2, $3 !lituse_bytoff!1
14452 ldq $2, a($29) !literal!1
14453 ldq $4, b($29) !literal!2
14454 ldq_u $3, 0($2) !lituse_base!1
14455 ldq $27, f($29) !literal!5
14456 jsr $26, ($27), f !lituse_jsr!5
14457 ldah $29, 0($26) !gpdisp!3
14458 lda $0, c($29) !gprel
14459 ldah $1, d($29) !gprelhigh
14460 lda $1, d($1) !gprellow
14461 lda $29, 0($29) !gpdisp!3' > conftest.s
14462 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14465 ac_status=$?
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }
14468 then
14469 gcc_cv_as_alpha_explicit_relocs=yes
14470 else
14471 echo "configure: failed program was" >&5
14472 cat conftest.s >&5
14473 fi
14474 rm -f conftest.o conftest.s
14475 fi
14476 fi
14477 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14478 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14479 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14480
14481 cat >>confdefs.h <<\_ACEOF
14482 #define HAVE_AS_EXPLICIT_RELOCS 1
14483 _ACEOF
14484
14485 fi
14486 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14487 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14488 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491 gcc_cv_as_alpha_jsrdirect_relocs=no
14492 if test $in_tree_gas = yes; then
14493 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14494 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14495 fi
14496 elif test x$gcc_cv_as != x; then
14497 echo ' .set nomacro
14498 .text
14499 ldq $27, a($29) !literal!1
14500 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14501 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }
14507 then
14508 gcc_cv_as_alpha_jsrdirect_relocs=yes
14509 else
14510 echo "configure: failed program was" >&5
14511 cat conftest.s >&5
14512 fi
14513 rm -f conftest.o conftest.s
14514 fi
14515 fi
14516 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14517 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14518 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14519
14520 cat >>confdefs.h <<\_ACEOF
14521 #define HAVE_AS_JSRDIRECT_RELOCS 1
14522 _ACEOF
14523
14524 fi
14525 ;;
14526
14527 cris-*-*)
14528 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14529 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14530 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 else
14533 gcc_cv_as_cris_no_mul_bug=no
14534 if test $in_tree_gas = yes; then
14535 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14536 then gcc_cv_as_cris_no_mul_bug=yes
14537 fi
14538 elif test x$gcc_cv_as != x; then
14539 echo '.text' > conftest.s
14540 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }
14546 then
14547 gcc_cv_as_cris_no_mul_bug=yes
14548 else
14549 echo "configure: failed program was" >&5
14550 cat conftest.s >&5
14551 fi
14552 rm -f conftest.o conftest.s
14553 fi
14554 fi
14555 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14556 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14557 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14558
14559 cat >>confdefs.h <<\_ACEOF
14560 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14561 _ACEOF
14562
14563 fi
14564 ;;
14565
14566 sparc*-*-*)
14567 echo "$as_me:$LINENO: checking assembler for .register" >&5
14568 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14569 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 else
14572 gcc_cv_as_sparc_register_op=no
14573 if test x$gcc_cv_as != x; then
14574 echo '.register %g2, #scratch' > conftest.s
14575 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }
14581 then
14582 gcc_cv_as_sparc_register_op=yes
14583 else
14584 echo "configure: failed program was" >&5
14585 cat conftest.s >&5
14586 fi
14587 rm -f conftest.o conftest.s
14588 fi
14589 fi
14590 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14591 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14592 if test $gcc_cv_as_sparc_register_op = yes; then
14593
14594 cat >>confdefs.h <<\_ACEOF
14595 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14596 _ACEOF
14597
14598 fi
14599
14600 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14601 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14602 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605 gcc_cv_as_sparc_relax=no
14606 if test x$gcc_cv_as != x; then
14607 echo '.text' > conftest.s
14608 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }
14614 then
14615 gcc_cv_as_sparc_relax=yes
14616 else
14617 echo "configure: failed program was" >&5
14618 cat conftest.s >&5
14619 fi
14620 rm -f conftest.o conftest.s
14621 fi
14622 fi
14623 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14624 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14625 if test $gcc_cv_as_sparc_relax = yes; then
14626
14627 cat >>confdefs.h <<\_ACEOF
14628 #define HAVE_AS_RELAX_OPTION 1
14629 _ACEOF
14630
14631 fi
14632
14633 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14634 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14635 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638 gcc_cv_as_sparc_ua_pcrel=no
14639 if test x$gcc_cv_as != x; then
14640 echo '.text
14641 foo:
14642 nop
14643 .data
14644 .align 4
14645 .byte 0
14646 .uaword %r_disp32(foo)' > conftest.s
14647 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }
14653 then
14654 if test x$gcc_cv_ld != x \
14655 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14656 gcc_cv_as_sparc_ua_pcrel=yes
14657 fi
14658 rm -f conftest
14659 else
14660 echo "configure: failed program was" >&5
14661 cat conftest.s >&5
14662 fi
14663 rm -f conftest.o conftest.s
14664 fi
14665 fi
14666 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14667 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14668 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14669
14670 cat >>confdefs.h <<\_ACEOF
14671 #define HAVE_AS_SPARC_UA_PCREL 1
14672 _ACEOF
14673
14674
14675 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14676 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14677 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680 gcc_cv_as_sparc_ua_pcrel_hidden=no
14681 if test x$gcc_cv_as != x; then
14682 echo '.data
14683 .align 4
14684 .byte 0x31
14685 .uaword %r_disp32(foo)
14686 .byte 0x32, 0x33, 0x34
14687 .global foo
14688 .hidden foo
14689 foo:
14690 .skip 4' > conftest.s
14691 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }
14697 then
14698 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14699 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14700 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14701 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14702 if $gcc_cv_objdump -R conftest 2> /dev/null \
14703 | grep 'DISP32' > /dev/null 2>&1; then
14704 :
14705 else
14706 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14707 fi
14708 fi
14709 rm -f conftest
14710 else
14711 echo "configure: failed program was" >&5
14712 cat conftest.s >&5
14713 fi
14714 rm -f conftest.o conftest.s
14715 fi
14716 fi
14717 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14718 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14719 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14720
14721 cat >>confdefs.h <<\_ACEOF
14722 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14723 _ACEOF
14724
14725 fi
14726
14727 fi # unaligned pcrel relocs
14728
14729 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14730 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14731 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14733 else
14734 gcc_cv_as_sparc_offsetable_lo10=no
14735 if test x$gcc_cv_as != x; then
14736 echo '.text
14737 or %g1, %lo(ab) + 12, %g1
14738 or %g1, %lo(ab + 12), %g1' > conftest.s
14739 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }
14745 then
14746 if test x$gcc_cv_objdump != x \
14747 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14748 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14749 gcc_cv_as_sparc_offsetable_lo10=yes
14750 fi
14751 else
14752 echo "configure: failed program was" >&5
14753 cat conftest.s >&5
14754 fi
14755 rm -f conftest.o conftest.s
14756 fi
14757 fi
14758 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14759 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14760 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14761
14762 cat >>confdefs.h <<\_ACEOF
14763 #define HAVE_AS_OFFSETABLE_LO10 1
14764 _ACEOF
14765
14766 fi
14767 ;;
14768
14769 i[34567]86-*-* | x86_64-*-*)
14770 case $target_os in
14771 cygwin* | pe | mingw32*)
14772 # Used for DWARF 2 in PE
14773 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14774 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14775 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778 gcc_cv_as_ix86_pe_secrel32=no
14779 if test $in_tree_gas = yes; then
14780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14781 then gcc_cv_as_ix86_pe_secrel32=yes
14782 fi
14783 elif test x$gcc_cv_as != x; then
14784 echo '.text
14785 foo: nop
14786 .data
14787 .secrel32 foo' > conftest.s
14788 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }
14794 then
14795 if test x$gcc_cv_ld != x \
14796 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14797 gcc_cv_as_ix86_pe_secrel32=yes
14798 fi
14799 rm -f conftest
14800 else
14801 echo "configure: failed program was" >&5
14802 cat conftest.s >&5
14803 fi
14804 rm -f conftest.o conftest.s
14805 fi
14806 fi
14807 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14808 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14809 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14810
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAVE_GAS_PE_SECREL32_RELOC 1
14813 _ACEOF
14814
14815 fi
14816 ;;
14817 esac
14818
14819 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14820 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14821 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824 gcc_cv_as_ix86_filds_fists=no
14825 if test $in_tree_gas = yes; then
14826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14827 then gcc_cv_as_ix86_filds_fists=yes
14828 fi
14829 elif test x$gcc_cv_as != x; then
14830 echo 'filds mem; fists mem' > conftest.s
14831 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }
14837 then
14838 gcc_cv_as_ix86_filds_fists=yes
14839 else
14840 echo "configure: failed program was" >&5
14841 cat conftest.s >&5
14842 fi
14843 rm -f conftest.o conftest.s
14844 fi
14845 fi
14846 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14847 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14848 if test $gcc_cv_as_ix86_filds_fists = yes; then
14849
14850 cat >>confdefs.h <<\_ACEOF
14851 #define HAVE_GAS_FILDS_FISTS 1
14852 _ACEOF
14853
14854 fi
14855
14856 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14857 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14858 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 else
14861 gcc_cv_as_ix86_cmov_sun_syntax=no
14862 if test x$gcc_cv_as != x; then
14863 echo 'cmovl.l %edx, %eax' > conftest.s
14864 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }
14870 then
14871 gcc_cv_as_ix86_cmov_sun_syntax=yes
14872 else
14873 echo "configure: failed program was" >&5
14874 cat conftest.s >&5
14875 fi
14876 rm -f conftest.o conftest.s
14877 fi
14878 fi
14879 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14880 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14881 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14882
14883 cat >>confdefs.h <<\_ACEOF
14884 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14885 _ACEOF
14886
14887 fi
14888
14889 # This one is used unconditionally by i386.[ch]; it is to be defined
14890 # to 1 if the feature is present, 0 otherwise.
14891 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14892 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14893 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896 gcc_cv_as_ix86_gotoff_in_data=no
14897 if test $in_tree_gas = yes; then
14898 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14899 then gcc_cv_as_ix86_gotoff_in_data=yes
14900 fi
14901 elif test x$gcc_cv_as != x; then
14902 echo ' .text
14903 .L0:
14904 nop
14905 .data
14906 .long .L0@GOTOFF' > conftest.s
14907 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909 (eval $ac_try) 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; }
14913 then
14914 gcc_cv_as_ix86_gotoff_in_data=yes
14915 else
14916 echo "configure: failed program was" >&5
14917 cat conftest.s >&5
14918 fi
14919 rm -f conftest.o conftest.s
14920 fi
14921 fi
14922 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14923 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14924
14925
14926 cat >>confdefs.h <<_ACEOF
14927 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14928 _ACEOF
14929
14930 ;;
14931
14932 ia64*-*-*)
14933 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14934 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14935 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14939 if test $in_tree_gas = yes; then
14940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14941 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14942 fi
14943 elif test x$gcc_cv_as != x; then
14944 echo ' .text
14945 addl r15 = @ltoffx(x#), gp
14946 ;;
14947 ld8.mov r16 = [r15], x#' > conftest.s
14948 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }
14954 then
14955 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14956 else
14957 echo "configure: failed program was" >&5
14958 cat conftest.s >&5
14959 fi
14960 rm -f conftest.o conftest.s
14961 fi
14962 fi
14963 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14964 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14965 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14966
14967 cat >>confdefs.h <<\_ACEOF
14968 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14969 _ACEOF
14970
14971 fi
14972
14973 ;;
14974
14975 powerpc*-*-*)
14976 case $target in
14977 *-*-aix*) conftest_s=' .machine "pwr5"
14978 .csect .text[PR]
14979 mfcr 3,128';;
14980 *-*-darwin*)
14981 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14982 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14983 if test "${gcc_cv_as_machine_directive+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 else
14986 gcc_cv_as_machine_directive=no
14987 if test x$gcc_cv_as != x; then
14988 echo ' .machine ppc7400' > conftest.s
14989 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }
14995 then
14996 gcc_cv_as_machine_directive=yes
14997 else
14998 echo "configure: failed program was" >&5
14999 cat conftest.s >&5
15000 fi
15001 rm -f conftest.o conftest.s
15002 fi
15003 fi
15004 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15005 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15006
15007 if test x$gcc_cv_as_machine_directive != xyes; then
15008 echo "*** This target requires an assembler supporting \".machine\"" >&2
15009 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15010 test x$build = x$target && exit 1
15011 fi
15012 conftest_s=' .text
15013 mfcr r3,128';;
15014 *) conftest_s=' .machine power4
15015 .text
15016 mfcr 3,128';;
15017 esac
15018
15019 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15020 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15021 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024 gcc_cv_as_powerpc_mfcrf=no
15025 if test $in_tree_gas = yes; then
15026 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15027 then gcc_cv_as_powerpc_mfcrf=yes
15028 fi
15029 elif test x$gcc_cv_as != x; then
15030 echo "$conftest_s" > conftest.s
15031 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }
15037 then
15038 gcc_cv_as_powerpc_mfcrf=yes
15039 else
15040 echo "configure: failed program was" >&5
15041 cat conftest.s >&5
15042 fi
15043 rm -f conftest.o conftest.s
15044 fi
15045 fi
15046 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15047 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15048 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15049
15050 cat >>confdefs.h <<\_ACEOF
15051 #define HAVE_AS_MFCRF 1
15052 _ACEOF
15053
15054 fi
15055
15056 case $target in
15057 *-*-aix*) conftest_s=' .machine "pwr5"
15058 .csect .text[PR]
15059 popcntb 3,3';;
15060 *) conftest_s=' .machine power5
15061 .text
15062 popcntb 3,3';;
15063 esac
15064
15065 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15066 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15067 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070 gcc_cv_as_powerpc_popcntb=no
15071 if test $in_tree_gas = yes; then
15072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15073 then gcc_cv_as_powerpc_popcntb=yes
15074 fi
15075 elif test x$gcc_cv_as != x; then
15076 echo "$conftest_s" > conftest.s
15077 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }
15083 then
15084 gcc_cv_as_powerpc_popcntb=yes
15085 else
15086 echo "configure: failed program was" >&5
15087 cat conftest.s >&5
15088 fi
15089 rm -f conftest.o conftest.s
15090 fi
15091 fi
15092 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15093 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15094 if test $gcc_cv_as_powerpc_popcntb = yes; then
15095
15096 cat >>confdefs.h <<\_ACEOF
15097 #define HAVE_AS_POPCNTB 1
15098 _ACEOF
15099
15100 fi
15101
15102 case $target in
15103 *-*-aix*) conftest_s=' .machine "pwr5x"
15104 .csect .text[PR]
15105 frin 1,1';;
15106 *) conftest_s=' .machine power5
15107 .text
15108 frin 1,1';;
15109 esac
15110
15111 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15112 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15113 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116 gcc_cv_as_powerpc_fprnd=no
15117 if test $in_tree_gas = yes; then
15118 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15119 then gcc_cv_as_powerpc_fprnd=yes
15120 fi
15121 elif test x$gcc_cv_as != x; then
15122 echo "$conftest_s" > conftest.s
15123 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }
15129 then
15130 gcc_cv_as_powerpc_fprnd=yes
15131 else
15132 echo "configure: failed program was" >&5
15133 cat conftest.s >&5
15134 fi
15135 rm -f conftest.o conftest.s
15136 fi
15137 fi
15138 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15139 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15140 if test $gcc_cv_as_powerpc_fprnd = yes; then
15141
15142 cat >>confdefs.h <<\_ACEOF
15143 #define HAVE_AS_FPRND 1
15144 _ACEOF
15145
15146 fi
15147
15148 case $target in
15149 *-*-aix*) conftest_s=' .csect .text[PR]
15150 LCF..0:
15151 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15152 *-*-darwin*)
15153 conftest_s=' .text
15154 LCF0:
15155 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15156 *) conftest_s=' .text
15157 .LCF0:
15158 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15159 esac
15160
15161 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15162 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15163 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15165 else
15166 gcc_cv_as_powerpc_rel16=no
15167 if test $in_tree_gas = yes; then
15168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15169 then gcc_cv_as_powerpc_rel16=yes
15170 fi
15171 elif test x$gcc_cv_as != x; then
15172 echo "$conftest_s" > conftest.s
15173 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }
15179 then
15180 gcc_cv_as_powerpc_rel16=yes
15181 else
15182 echo "configure: failed program was" >&5
15183 cat conftest.s >&5
15184 fi
15185 rm -f conftest.o conftest.s
15186 fi
15187 fi
15188 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15189 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15190 if test $gcc_cv_as_powerpc_rel16 = yes; then
15191
15192 cat >>confdefs.h <<\_ACEOF
15193 #define HAVE_AS_REL16 1
15194 _ACEOF
15195
15196 fi
15197 ;;
15198
15199 mips*-*-*)
15200 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15201 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15202 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 else
15205 gcc_cv_as_mips_explicit_relocs=no
15206 if test $in_tree_gas = yes; then
15207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15208 then gcc_cv_as_mips_explicit_relocs=yes
15209 fi
15210 elif test x$gcc_cv_as != x; then
15211 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15212 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15215 ac_status=$?
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; }
15218 then
15219 gcc_cv_as_mips_explicit_relocs=yes
15220 else
15221 echo "configure: failed program was" >&5
15222 cat conftest.s >&5
15223 fi
15224 rm -f conftest.o conftest.s
15225 fi
15226 fi
15227 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15228 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15229 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15230 if test x$target_cpu_default = x
15231 then target_cpu_default=MASK_EXPLICIT_RELOCS
15232 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15233 fi
15234 fi
15235 ;;
15236 esac
15237
15238 # Mips and HP-UX need the GNU assembler.
15239 # Linux on IA64 might be able to use the Intel assembler.
15240
15241 case "$target" in
15242 mips*-*-* | *-*-hpux* )
15243 if test x$gas_flag = xyes \
15244 || test x"$host" != x"$build" \
15245 || test ! -x "$gcc_cv_as" \
15246 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15247 :
15248 else
15249 echo "*** This configuration requires the GNU assembler" >&2
15250 exit 1
15251 fi
15252 ;;
15253 esac
15254
15255 # ??? Not all targets support dwarf2 debug_line, even within a version
15256 # of gas. Moreover, we need to emit a valid instruction to trigger any
15257 # info to the output file. So, as supported targets are added to gas 2.11,
15258 # add some instruction here to (also) show we expect this might work.
15259 # ??? Once 2.11 is released, probably need to add first known working
15260 # version to the per-target configury.
15261 case "$target" in
15262 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15263 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15264 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15265 insn="nop"
15266 ;;
15267 ia64*-*-* | s390*-*-*)
15268 insn="nop 0"
15269 ;;
15270 mmix-*-*)
15271 insn="swym 0"
15272 ;;
15273 esac
15274 if test x"$insn" != x; then
15275 conftest_s="\
15276 .file 1 \"conftest.s\"
15277 .loc 1 3 0
15278 $insn"
15279 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15280 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15281 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284 gcc_cv_as_dwarf2_debug_line=no
15285 if test $in_tree_gas = yes; then
15286 if test $in_tree_gas_is_elf = yes \
15287 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15288 then gcc_cv_as_dwarf2_debug_line=yes
15289 fi
15290 elif test x$gcc_cv_as != x; then
15291 echo "$conftest_s" > 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 if test x$gcc_cv_objdump != x \
15300 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15301 | grep debug_line > /dev/null 2>&1; then
15302 gcc_cv_as_dwarf2_debug_line=yes
15303 fi
15304 else
15305 echo "configure: failed program was" >&5
15306 cat conftest.s >&5
15307 fi
15308 rm -f conftest.o conftest.s
15309 fi
15310 fi
15311 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15312 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15313
15314
15315 # The .debug_line file table must be in the exact order that
15316 # we specified the files, since these indices are also used
15317 # by DW_AT_decl_file. Approximate this test by testing if
15318 # the assembler bitches if the same index is assigned twice.
15319 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15320 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15321 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15323 else
15324 gcc_cv_as_dwarf2_file_buggy=no
15325 if test x$gcc_cv_as != x; then
15326 echo ' .file 1 "foo.s"
15327 .file 1 "bar.s"' > conftest.s
15328 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }
15334 then
15335 gcc_cv_as_dwarf2_file_buggy=yes
15336 else
15337 echo "configure: failed program was" >&5
15338 cat conftest.s >&5
15339 fi
15340 rm -f conftest.o conftest.s
15341 fi
15342 fi
15343 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15344 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15345
15346
15347 if test $gcc_cv_as_dwarf2_debug_line = yes \
15348 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15349
15350 cat >>confdefs.h <<\_ACEOF
15351 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15352 _ACEOF
15353
15354 fi
15355
15356 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15357 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15358 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361 gcc_cv_as_gdwarf2_flag=no
15362 if test $in_tree_gas = yes; then
15363 if test $in_tree_gas_is_elf = yes \
15364 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15365 then gcc_cv_as_gdwarf2_flag=yes
15366 fi
15367 elif test x$gcc_cv_as != x; then
15368 echo "$insn" > conftest.s
15369 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; }
15375 then
15376 gcc_cv_as_gdwarf2_flag=yes
15377 else
15378 echo "configure: failed program was" >&5
15379 cat conftest.s >&5
15380 fi
15381 rm -f conftest.o conftest.s
15382 fi
15383 fi
15384 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15385 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15386 if test $gcc_cv_as_gdwarf2_flag = yes; then
15387
15388 cat >>confdefs.h <<\_ACEOF
15389 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15390 _ACEOF
15391
15392 fi
15393
15394 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15395 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15396 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 else
15399 gcc_cv_as_gstabs_flag=no
15400 if test $in_tree_gas = yes; then
15401 if test $in_tree_gas_is_elf = yes \
15402 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15403 then gcc_cv_as_gstabs_flag=yes
15404 fi
15405 elif test x$gcc_cv_as != x; then
15406 echo "$insn" > conftest.s
15407 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15410 ac_status=$?
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }
15413 then
15414 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15415 # and warns about it, but still exits successfully. So check for
15416 # this.
15417 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }
15423 then :
15424 else gcc_cv_as_gstabs_flag=yes
15425 fi
15426 else
15427 echo "configure: failed program was" >&5
15428 cat conftest.s >&5
15429 fi
15430 rm -f conftest.o conftest.s
15431 fi
15432 fi
15433 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15434 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15435 if test $gcc_cv_as_gstabs_flag = yes; then
15436
15437 cat >>confdefs.h <<\_ACEOF
15438 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15439 _ACEOF
15440
15441 fi
15442 fi
15443
15444 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15445 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15446 gcc_cv_ld_ro_rw_mix=unknown
15447 if test $in_tree_ld = yes ; then
15448 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 \
15449 && test $in_tree_ld_is_elf = yes; then
15450 gcc_cv_ld_ro_rw_mix=read-write
15451 fi
15452 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15453 echo '.section myfoosect, "a"' > conftest1.s
15454 echo '.section myfoosect, "aw"' > conftest2.s
15455 echo '.byte 1' >> conftest2.s
15456 echo '.section myfoosect, "a"' > conftest3.s
15457 echo '.byte 0' >> conftest3.s
15458 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15459 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15460 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15461 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15462 conftest2.o conftest3.o > /dev/null 2>&1; then
15463 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15464 | sed -e '/myfoosect/!d' -e N`
15465 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15466 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15467 gcc_cv_ld_ro_rw_mix=read-only
15468 else
15469 gcc_cv_ld_ro_rw_mix=read-write
15470 fi
15471 fi
15472 fi
15473 rm -f conftest.* conftest[123].*
15474 fi
15475 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15476
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15479 _ACEOF
15480
15481 fi
15482 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15483 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15484
15485 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15486 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15487 gcc_cv_ld_eh_frame_hdr=no
15488 if test $in_tree_ld = yes ; then
15489 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 \
15490 && test $in_tree_ld_is_elf = yes; then
15491 gcc_cv_ld_eh_frame_hdr=yes
15492 fi
15493 elif test x$gcc_cv_ld != x; then
15494 # Check if linker supports --eh-frame-hdr option
15495 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15496 gcc_cv_ld_eh_frame_hdr=yes
15497 fi
15498 fi
15499
15500 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15501
15502 cat >>confdefs.h <<\_ACEOF
15503 #define HAVE_LD_EH_FRAME_HDR 1
15504 _ACEOF
15505
15506 fi
15507 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15508 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15509
15510 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15511 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15512 gcc_cv_ld_pie=no
15513 if test $in_tree_ld = yes ; then
15514 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 \
15515 && test $in_tree_ld_is_elf = yes; then
15516 gcc_cv_ld_pie=yes
15517 fi
15518 elif test x$gcc_cv_ld != x; then
15519 # Check if linker supports -pie option
15520 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15521 gcc_cv_ld_pie=yes
15522 fi
15523 fi
15524 if test x"$gcc_cv_ld_pie" = xyes; then
15525
15526 cat >>confdefs.h <<\_ACEOF
15527 #define HAVE_LD_PIE 1
15528 _ACEOF
15529
15530 fi
15531 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15532 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15533
15534 # --------
15535 # UNSORTED
15536 # --------
15537
15538 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15539 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15540 if test "${gcc_cv_ld_as_needed+set}" = set; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15542 else
15543 gcc_cv_ld_as_needed=no
15544 if test $in_tree_ld = yes ; then
15545 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 \
15546 && test $in_tree_ld_is_elf = yes; then
15547 gcc_cv_ld_as_needed=yes
15548 fi
15549 elif test x$gcc_cv_ld != x; then
15550 # Check if linker supports --as-needed and --no-as-needed options
15551 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15552 gcc_cv_ld_as_needed=yes
15553 fi
15554 fi
15555
15556 fi
15557 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15558 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15559 if test x"$gcc_cv_ld_as_needed" = xyes; then
15560
15561 cat >>confdefs.h <<\_ACEOF
15562 #define HAVE_LD_AS_NEEDED 1
15563 _ACEOF
15564
15565 fi
15566
15567 case "$target:$tm_file" in
15568 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15569 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15570 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15571 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574 gcc_cv_ld_no_dot_syms=no
15575 if test $in_tree_ld = yes ; then
15576 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
15577 gcc_cv_ld_no_dot_syms=yes
15578 fi
15579 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15580 cat > conftest1.s <<EOF
15581 .text
15582 bl .foo
15583 EOF
15584 cat > conftest2.s <<EOF
15585 .section ".opd","aw"
15586 .align 3
15587 .globl foo
15588 .type foo,@function
15589 foo:
15590 .quad .LEfoo,.TOC.@tocbase,0
15591 .text
15592 .LEfoo:
15593 blr
15594 .size foo,.-.LEfoo
15595 EOF
15596 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15597 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15598 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15599 gcc_cv_ld_no_dot_syms=yes
15600 fi
15601 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15602 fi
15603
15604 fi
15605 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15606 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15607 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15608
15609 cat >>confdefs.h <<\_ACEOF
15610 #define HAVE_LD_NO_DOT_SYMS 1
15611 _ACEOF
15612
15613 fi
15614 ;;
15615 esac
15616
15617 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15618 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15619 if test "${gcc_cv_ld_sysroot+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622 gcc_cv_ld_sysroot=no
15623 if test $in_tree_ld = yes ; then
15624 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
15625 gcc_cv_ld_sysroot=yes
15626 fi
15627 elif test x$gcc_cv_ld != x; then
15628 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15629 gcc_cv_ld_sysroot=yes
15630 fi
15631 fi
15632 fi
15633 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15634 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15635 if test x"$gcc_cv_ld_sysroot" = xyes; then
15636
15637 cat >>confdefs.h <<\_ACEOF
15638 #define HAVE_LD_SYSROOT 1
15639 _ACEOF
15640
15641 fi
15642
15643 if test x$with_sysroot = x && test x$host = x$target \
15644 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15645
15646 cat >>confdefs.h <<_ACEOF
15647 #define PREFIX_INCLUDE_DIR "$prefix/include"
15648 _ACEOF
15649
15650 fi
15651
15652 # Test for stack protector support in target C library.
15653 case "$target" in
15654 *-*-linux*)
15655 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15656 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15657 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15658 echo $ECHO_N "(cached) $ECHO_C" >&6
15659 else
15660 gcc_cv_libc_provides_ssp=no
15661 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15662 if test "x$with_sysroot" = x; then
15663 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15664 elif test "x$with_sysroot" = xyes; then
15665 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15666 else
15667 glibc_header_dir="${with_sysroot}/usr/include"
15668 fi
15669 else
15670 glibc_header_dir=/usr/include
15671 fi
15672 # glibc 2.4 and later provides __stack_chk_fail and
15673 # either __stack_chk_guard, or TLS access to stack guard canary.
15674 if test -f $glibc_header_dir/features.h \
15675 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15676 $glibc_header_dir/features.h > /dev/null; then
15677 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15678 $glibc_header_dir/features.h > /dev/null; then
15679 gcc_cv_libc_provides_ssp=yes
15680 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15681 $glibc_header_dir/features.h > /dev/null \
15682 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15683 $glibc_header_dir/features.h > /dev/null; then
15684 gcc_cv_libc_provides_ssp=yes
15685 fi
15686 fi
15687 fi
15688 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15689 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15690 *) gcc_cv_libc_provides_ssp=no ;;
15691 esac
15692 if test x$gcc_cv_libc_provides_ssp = xyes; then
15693
15694 cat >>confdefs.h <<\_ACEOF
15695 #define TARGET_LIBC_PROVIDES_SSP 1
15696 _ACEOF
15697
15698 fi
15699
15700 # Find out what GC implementation we want, or may, use.
15701
15702 # Check whether --with-gc or --without-gc was given.
15703 if test "${with_gc+set}" = set; then
15704 withval="$with_gc"
15705 case "$withval" in
15706 page)
15707 GGC=ggc-$withval
15708 ;;
15709 zone)
15710 GGC=ggc-$withval
15711
15712 cat >>confdefs.h <<\_ACEOF
15713 #define GGC_ZONE 1
15714 _ACEOF
15715
15716 ;;
15717 *)
15718 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15719 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15720 { (exit 1); exit 1; }; }
15721 ;;
15722 esac
15723 else
15724 GGC=ggc-page
15725 fi;
15726
15727 echo "Using $GGC for garbage collection."
15728
15729 # Use the system's zlib library.
15730 zlibdir=-L../zlib
15731 zlibinc="-I\$(srcdir)/../zlib"
15732
15733 # Check whether --with-system-zlib or --without-system-zlib was given.
15734 if test "${with_system_zlib+set}" = set; then
15735 withval="$with_system_zlib"
15736 zlibdir=
15737 zlibinc=
15738
15739 fi;
15740
15741
15742
15743
15744 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15745 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15746 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15747 if test "${enable_maintainer_mode+set}" = set; then
15748 enableval="$enable_maintainer_mode"
15749 maintainer_mode=$enableval
15750 else
15751 maintainer_mode=no
15752 fi;
15753
15754 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15755 echo "${ECHO_T}$maintainer_mode" >&6
15756
15757 if test "$maintainer_mode" = "yes"; then
15758 MAINT=''
15759 else
15760 MAINT='#'
15761 fi
15762
15763 # --------------
15764 # Language hooks
15765 # --------------
15766
15767 # Make empty files to contain the specs and options for each language.
15768 # Then add #include lines to for a compiler that has specs and/or options.
15769
15770 lang_opt_files=
15771 lang_specs_files=
15772 lang_tree_files=
15773 for subdir in . $subdirs
15774 do
15775 if test -f $srcdir/$subdir/lang.opt; then
15776 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15777 fi
15778 if test -f $srcdir/$subdir/lang-specs.h; then
15779 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15780 fi
15781 if test -f $srcdir/$subdir/$subdir-tree.def; then
15782 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15783 fi
15784 done
15785
15786 # These (without "all_") are set in each config-lang.in.
15787 # `language' must be a single word so is spelled singularly.
15788 all_languages=
15789 all_boot_languages=
15790 all_compilers=
15791 all_stagestuff=
15792 all_outputs='Makefile gccbug mklibgcc libada-mk'
15793 # List of language makefile fragments.
15794 all_lang_makefrags=
15795 # List of language subdirectory makefiles. Deprecated.
15796 all_lang_makefiles=
15797 # Files for gengtype
15798 all_gtfiles="$target_gtfiles"
15799 # Files for gengtype with language
15800 all_gtfiles_files_langs=
15801 all_gtfiles_files_files=
15802
15803 # Add the language fragments.
15804 # Languages are added via two mechanisms. Some information must be
15805 # recorded in makefile variables, these are defined in config-lang.in.
15806 # We accumulate them and plug them into the main Makefile.
15807 # The other mechanism is a set of hooks for each of the main targets
15808 # like `clean', `install', etc.
15809
15810 language_hooks="Make-hooks"
15811
15812 for s in $subdirs
15813 do
15814 language=
15815 boot_language=
15816 compilers=
15817 stagestuff=
15818 outputs=
15819 gtfiles=
15820 . ${srcdir}/$s/config-lang.in
15821 if test "x$language" = x
15822 then
15823 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15824 exit 1
15825 fi
15826 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15827 if test -f ${srcdir}/$s/Makefile.in
15828 then all_lang_makefiles="$s/Makefile"
15829 fi
15830 all_languages="$all_languages $language"
15831 if test "x$boot_language" = xyes
15832 then
15833 all_boot_languages="$all_boot_languages $language"
15834 fi
15835 all_compilers="$all_compilers $compilers"
15836 all_stagestuff="$all_stagestuff $stagestuff"
15837 all_outputs="$all_outputs $outputs"
15838 all_gtfiles="$all_gtfiles $gtfiles"
15839 for f in $gtfiles
15840 do
15841 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15842 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15843 done
15844 done
15845
15846 # Pick up gtfiles for c
15847 gtfiles=
15848 s="c"
15849 . ${srcdir}/c-config-lang.in
15850 all_gtfiles="$all_gtfiles $gtfiles"
15851 for f in $gtfiles
15852 do
15853 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15854 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15855 done
15856
15857 check_languages=
15858 for language in $all_languages
15859 do
15860 check_languages="$check_languages check-$language"
15861 done
15862
15863 # We link each language in with a set of hooks, reached indirectly via
15864 # lang.${target}.
15865
15866 rm -f Make-hooks
15867 touch Make-hooks
15868 target_list="all.cross start.encap rest.encap tags \
15869 install-common install-man \
15870 uninstall info man srcextra srcman srcinfo \
15871 mostlyclean clean distclean maintainer-clean \
15872 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15873 for t in $target_list
15874 do
15875 x=
15876 for lang in $all_languages
15877 do
15878 x="$x $lang.$t"
15879 done
15880 echo "lang.$t: $x" >> Make-hooks
15881 done
15882
15883 # --------
15884 # UNSORTED
15885 # --------
15886
15887 # Create .gdbinit.
15888
15889 echo "dir ." > .gdbinit
15890 echo "dir ${srcdir}" >> .gdbinit
15891 if test x$gdb_needs_out_file_path = xyes
15892 then
15893 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15894 fi
15895 if test "x$subdirs" != x; then
15896 for s in $subdirs
15897 do
15898 echo "dir ${srcdir}/$s" >> .gdbinit
15899 done
15900 fi
15901 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15902
15903 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15904 # absolute path for gcc_tooldir based on inserting the number of up-directory
15905 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15906 # $(libsubdir)/@(unlibsubdir) based path.
15907 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15908 # make and thus we'd get different behavior depending on where we built the
15909 # sources.
15910 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15911 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15912 else
15913 # An explanation of the sed strings:
15914 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15915 # -e 's|/$||' match a trailing forward slash and eliminates it
15916 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15917 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15918 #
15919 # (*) Note this pattern overwrites the first character of the string
15920 # with a forward slash if one is not already present. This is not a
15921 # problem because the exact names of the sub-directories concerned is
15922 # unimportant, just the number of them matters.
15923 #
15924 # The practical upshot of these patterns is like this:
15925 #
15926 # prefix exec_prefix result
15927 # ------ ----------- ------
15928 # /foo /foo/bar ../
15929 # /foo/ /foo/bar ../
15930 # /foo /foo/bar/ ../
15931 # /foo/ /foo/bar/ ../
15932 # /foo /foo/bar/ugg ../../
15933 #
15934 dollar='$$'
15935 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15936 fi
15937
15938
15939
15940 # Find a directory in which to install a shared libgcc.
15941
15942 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15943 if test "${enable_version_specific_runtime_libs+set}" = set; then
15944 enableval="$enable_version_specific_runtime_libs"
15945
15946 fi;
15947
15948
15949 # Check whether --with-slibdir or --without-slibdir was given.
15950 if test "${with_slibdir+set}" = set; then
15951 withval="$with_slibdir"
15952 slibdir="$with_slibdir"
15953 else
15954 if test "${enable_version_specific_runtime_libs+set}" = set; then
15955 slibdir='$(libsubdir)'
15956 elif test "$host" != "$target"; then
15957 slibdir='$(build_tooldir)/lib'
15958 else
15959 slibdir='$(libdir)'
15960 fi
15961 fi;
15962
15963
15964 objdir=`${PWDCMD-pwd}`
15965
15966
15967 # Substitute configuration variables
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031 # Echo link setup.
16032 if test x${build} = x${host} ; then
16033 if test x${host} = x${target} ; then
16034 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16035 else
16036 echo "Links are now set up to build a cross-compiler" 1>&2
16037 echo " from ${host} to ${target}." 1>&2
16038 fi
16039 else
16040 if test x${host} = x${target} ; then
16041 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16042 echo " for ${target}." 1>&2
16043 else
16044 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16045 echo " from ${host} to ${target}." 1>&2
16046 fi
16047 fi
16048
16049
16050
16051
16052 # Configure the subdirectories
16053 # AC_CONFIG_SUBDIRS($subdirs)
16054
16055 # Create the Makefile
16056 # and configure language subdirectories
16057 ac_config_files="$ac_config_files $all_outputs"
16058
16059
16060 ac_config_commands="$ac_config_commands default"
16061
16062 cat >confcache <<\_ACEOF
16063 # This file is a shell script that caches the results of configure
16064 # tests run on this system so they can be shared between configure
16065 # scripts and configure runs, see configure's option --config-cache.
16066 # It is not useful on other systems. If it contains results you don't
16067 # want to keep, you may remove or edit it.
16068 #
16069 # config.status only pays attention to the cache file if you give it
16070 # the --recheck option to rerun configure.
16071 #
16072 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16073 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16074 # following values.
16075
16076 _ACEOF
16077
16078 # The following way of writing the cache mishandles newlines in values,
16079 # but we know of no workaround that is simple, portable, and efficient.
16080 # So, don't put newlines in cache variables' values.
16081 # Ultrix sh set writes to stderr and can't be redirected directly,
16082 # and sets the high bit in the cache file unless we assign to the vars.
16083 {
16084 (set) 2>&1 |
16085 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16086 *ac_space=\ *)
16087 # `set' does not quote correctly, so add quotes (double-quote
16088 # substitution turns \\\\ into \\, and sed turns \\ into \).
16089 sed -n \
16090 "s/'/'\\\\''/g;
16091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16092 ;;
16093 *)
16094 # `set' quotes correctly as required by POSIX, so do not add quotes.
16095 sed -n \
16096 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16097 ;;
16098 esac;
16099 } |
16100 sed '
16101 t clear
16102 : clear
16103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16104 t end
16105 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16106 : end' >>confcache
16107 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16108 if test -w $cache_file; then
16109 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16110 cat confcache >$cache_file
16111 else
16112 echo "not updating unwritable cache $cache_file"
16113 fi
16114 fi
16115 rm -f confcache
16116
16117 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16118 # Let make expand exec_prefix.
16119 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16120
16121 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16122 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16123 # trailing colons and then remove the whole line if VPATH becomes empty
16124 # (actually we leave an empty line to preserve line numbers).
16125 if test "x$srcdir" = x.; then
16126 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16127 s/:*\$(srcdir):*/:/;
16128 s/:*\${srcdir}:*/:/;
16129 s/:*@srcdir@:*/:/;
16130 s/^\([^=]*=[ ]*\):*/\1/;
16131 s/:*$//;
16132 s/^[^=]*=[ ]*$//;
16133 }'
16134 fi
16135
16136 DEFS=-DHAVE_CONFIG_H
16137
16138 ac_libobjs=
16139 ac_ltlibobjs=
16140 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16141 # 1. Remove the extension, and $U if already installed.
16142 ac_i=`echo "$ac_i" |
16143 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16144 # 2. Add them.
16145 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16146 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16147 done
16148 LIBOBJS=$ac_libobjs
16149
16150 LTLIBOBJS=$ac_ltlibobjs
16151
16152
16153
16154 : ${CONFIG_STATUS=./config.status}
16155 ac_clean_files_save=$ac_clean_files
16156 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16157 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16158 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16159 cat >$CONFIG_STATUS <<_ACEOF
16160 #! $SHELL
16161 # Generated by $as_me.
16162 # Run this file to recreate the current configuration.
16163 # Compiler output produced by configure, useful for debugging
16164 # configure, is in config.log if it exists.
16165
16166 debug=false
16167 ac_cs_recheck=false
16168 ac_cs_silent=false
16169 SHELL=\${CONFIG_SHELL-$SHELL}
16170 _ACEOF
16171
16172 cat >>$CONFIG_STATUS <<\_ACEOF
16173 ## --------------------- ##
16174 ## M4sh Initialization. ##
16175 ## --------------------- ##
16176
16177 # Be Bourne compatible
16178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16179 emulate sh
16180 NULLCMD=:
16181 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16182 # is contrary to our usage. Disable this feature.
16183 alias -g '${1+"$@"}'='"$@"'
16184 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16185 set -o posix
16186 fi
16187 DUALCASE=1; export DUALCASE # for MKS sh
16188
16189 # Support unset when possible.
16190 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16191 as_unset=unset
16192 else
16193 as_unset=false
16194 fi
16195
16196
16197 # Work around bugs in pre-3.0 UWIN ksh.
16198 $as_unset ENV MAIL MAILPATH
16199 PS1='$ '
16200 PS2='> '
16201 PS4='+ '
16202
16203 # NLS nuisances.
16204 for as_var in \
16205 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16206 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16207 LC_TELEPHONE LC_TIME
16208 do
16209 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16210 eval $as_var=C; export $as_var
16211 else
16212 $as_unset $as_var
16213 fi
16214 done
16215
16216 # Required to use basename.
16217 if expr a : '\(a\)' >/dev/null 2>&1; then
16218 as_expr=expr
16219 else
16220 as_expr=false
16221 fi
16222
16223 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16224 as_basename=basename
16225 else
16226 as_basename=false
16227 fi
16228
16229
16230 # Name of the executable.
16231 as_me=`$as_basename "$0" ||
16232 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16233 X"$0" : 'X\(//\)$' \| \
16234 X"$0" : 'X\(/\)$' \| \
16235 . : '\(.\)' 2>/dev/null ||
16236 echo X/"$0" |
16237 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16238 /^X\/\(\/\/\)$/{ s//\1/; q; }
16239 /^X\/\(\/\).*/{ s//\1/; q; }
16240 s/.*/./; q'`
16241
16242
16243 # PATH needs CR, and LINENO needs CR and PATH.
16244 # Avoid depending upon Character Ranges.
16245 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16246 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16247 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16248 as_cr_digits='0123456789'
16249 as_cr_alnum=$as_cr_Letters$as_cr_digits
16250
16251 # The user is always right.
16252 if test "${PATH_SEPARATOR+set}" != set; then
16253 echo "#! /bin/sh" >conf$$.sh
16254 echo "exit 0" >>conf$$.sh
16255 chmod +x conf$$.sh
16256 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16257 PATH_SEPARATOR=';'
16258 else
16259 PATH_SEPARATOR=:
16260 fi
16261 rm -f conf$$.sh
16262 fi
16263
16264
16265 as_lineno_1=$LINENO
16266 as_lineno_2=$LINENO
16267 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16268 test "x$as_lineno_1" != "x$as_lineno_2" &&
16269 test "x$as_lineno_3" = "x$as_lineno_2" || {
16270 # Find who we are. Look in the path if we contain no path at all
16271 # relative or not.
16272 case $0 in
16273 *[\\/]* ) as_myself=$0 ;;
16274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16275 for as_dir in $PATH
16276 do
16277 IFS=$as_save_IFS
16278 test -z "$as_dir" && as_dir=.
16279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16280 done
16281
16282 ;;
16283 esac
16284 # We did not find ourselves, most probably we were run as `sh COMMAND'
16285 # in which case we are not to be found in the path.
16286 if test "x$as_myself" = x; then
16287 as_myself=$0
16288 fi
16289 if test ! -f "$as_myself"; then
16290 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16291 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16292 { (exit 1); exit 1; }; }
16293 fi
16294 case $CONFIG_SHELL in
16295 '')
16296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16297 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16298 do
16299 IFS=$as_save_IFS
16300 test -z "$as_dir" && as_dir=.
16301 for as_base in sh bash ksh sh5; do
16302 case $as_dir in
16303 /*)
16304 if ("$as_dir/$as_base" -c '
16305 as_lineno_1=$LINENO
16306 as_lineno_2=$LINENO
16307 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16308 test "x$as_lineno_1" != "x$as_lineno_2" &&
16309 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16310 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16311 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16312 CONFIG_SHELL=$as_dir/$as_base
16313 export CONFIG_SHELL
16314 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16315 fi;;
16316 esac
16317 done
16318 done
16319 ;;
16320 esac
16321
16322 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16323 # uniformly replaced by the line number. The first 'sed' inserts a
16324 # line-number line before each line; the second 'sed' does the real
16325 # work. The second script uses 'N' to pair each line-number line
16326 # with the numbered line, and appends trailing '-' during
16327 # substitution so that $LINENO is not a special case at line end.
16328 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16329 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16330 sed '=' <$as_myself |
16331 sed '
16332 N
16333 s,$,-,
16334 : loop
16335 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16336 t loop
16337 s,-$,,
16338 s,^['$as_cr_digits']*\n,,
16339 ' >$as_me.lineno &&
16340 chmod +x $as_me.lineno ||
16341 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16342 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16343 { (exit 1); exit 1; }; }
16344
16345 # Don't try to exec as it changes $[0], causing all sort of problems
16346 # (the dirname of $[0] is not the place where we might find the
16347 # original and so on. Autoconf is especially sensible to this).
16348 . ./$as_me.lineno
16349 # Exit status is that of the last command.
16350 exit
16351 }
16352
16353
16354 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16355 *c*,-n*) ECHO_N= ECHO_C='
16356 ' ECHO_T=' ' ;;
16357 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16358 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16359 esac
16360
16361 if expr a : '\(a\)' >/dev/null 2>&1; then
16362 as_expr=expr
16363 else
16364 as_expr=false
16365 fi
16366
16367 rm -f conf$$ conf$$.exe conf$$.file
16368 echo >conf$$.file
16369 if ln -s conf$$.file conf$$ 2>/dev/null; then
16370 # We could just check for DJGPP; but this test a) works b) is more generic
16371 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16372 if test -f conf$$.exe; then
16373 # Don't use ln at all; we don't have any links
16374 as_ln_s='cp -p'
16375 else
16376 as_ln_s='ln -s'
16377 fi
16378 elif ln conf$$.file conf$$ 2>/dev/null; then
16379 as_ln_s=ln
16380 else
16381 as_ln_s='cp -p'
16382 fi
16383 rm -f conf$$ conf$$.exe conf$$.file
16384
16385 if mkdir -p . 2>/dev/null; then
16386 as_mkdir_p=:
16387 else
16388 test -d ./-p && rmdir ./-p
16389 as_mkdir_p=false
16390 fi
16391
16392 as_executable_p="test -f"
16393
16394 # Sed expression to map a string onto a valid CPP name.
16395 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16396
16397 # Sed expression to map a string onto a valid variable name.
16398 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16399
16400
16401 # IFS
16402 # We need space, tab and new line, in precisely that order.
16403 as_nl='
16404 '
16405 IFS=" $as_nl"
16406
16407 # CDPATH.
16408 $as_unset CDPATH
16409
16410 exec 6>&1
16411
16412 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16413 # report actual input values of CONFIG_FILES etc. instead of their
16414 # values after options handling. Logging --version etc. is OK.
16415 exec 5>>config.log
16416 {
16417 echo
16418 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16419 ## Running $as_me. ##
16420 _ASBOX
16421 } >&5
16422 cat >&5 <<_CSEOF
16423
16424 This file was extended by $as_me, which was
16425 generated by GNU Autoconf 2.59. Invocation command line was
16426
16427 CONFIG_FILES = $CONFIG_FILES
16428 CONFIG_HEADERS = $CONFIG_HEADERS
16429 CONFIG_LINKS = $CONFIG_LINKS
16430 CONFIG_COMMANDS = $CONFIG_COMMANDS
16431 $ $0 $@
16432
16433 _CSEOF
16434 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16435 echo >&5
16436 _ACEOF
16437
16438 # Files that config.status was made for.
16439 if test -n "$ac_config_files"; then
16440 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16441 fi
16442
16443 if test -n "$ac_config_headers"; then
16444 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16445 fi
16446
16447 if test -n "$ac_config_links"; then
16448 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16449 fi
16450
16451 if test -n "$ac_config_commands"; then
16452 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16453 fi
16454
16455 cat >>$CONFIG_STATUS <<\_ACEOF
16456
16457 ac_cs_usage="\
16458 \`$as_me' instantiates files from templates according to the
16459 current configuration.
16460
16461 Usage: $0 [OPTIONS] [FILE]...
16462
16463 -h, --help print this help, then exit
16464 -V, --version print version number, then exit
16465 -q, --quiet do not print progress messages
16466 -d, --debug don't remove temporary files
16467 --recheck update $as_me by reconfiguring in the same conditions
16468 --file=FILE[:TEMPLATE]
16469 instantiate the configuration file FILE
16470 --header=FILE[:TEMPLATE]
16471 instantiate the configuration header FILE
16472
16473 Configuration files:
16474 $config_files
16475
16476 Configuration headers:
16477 $config_headers
16478
16479 Configuration commands:
16480 $config_commands
16481
16482 Report bugs to <bug-autoconf@gnu.org>."
16483 _ACEOF
16484
16485 cat >>$CONFIG_STATUS <<_ACEOF
16486 ac_cs_version="\\
16487 config.status
16488 configured by $0, generated by GNU Autoconf 2.59,
16489 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16490
16491 Copyright (C) 2003 Free Software Foundation, Inc.
16492 This config.status script is free software; the Free Software Foundation
16493 gives unlimited permission to copy, distribute and modify it."
16494 srcdir=$srcdir
16495 _ACEOF
16496
16497 cat >>$CONFIG_STATUS <<\_ACEOF
16498 # If no file are specified by the user, then we need to provide default
16499 # value. By we need to know if files were specified by the user.
16500 ac_need_defaults=:
16501 while test $# != 0
16502 do
16503 case $1 in
16504 --*=*)
16505 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16506 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16507 ac_shift=:
16508 ;;
16509 -*)
16510 ac_option=$1
16511 ac_optarg=$2
16512 ac_shift=shift
16513 ;;
16514 *) # This is not an option, so the user has probably given explicit
16515 # arguments.
16516 ac_option=$1
16517 ac_need_defaults=false;;
16518 esac
16519
16520 case $ac_option in
16521 # Handling of the options.
16522 _ACEOF
16523 cat >>$CONFIG_STATUS <<\_ACEOF
16524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16525 ac_cs_recheck=: ;;
16526 --version | --vers* | -V )
16527 echo "$ac_cs_version"; exit 0 ;;
16528 --he | --h)
16529 # Conflict between --help and --header
16530 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16531 Try \`$0 --help' for more information." >&5
16532 echo "$as_me: error: ambiguous option: $1
16533 Try \`$0 --help' for more information." >&2;}
16534 { (exit 1); exit 1; }; };;
16535 --help | --hel | -h )
16536 echo "$ac_cs_usage"; exit 0 ;;
16537 --debug | --d* | -d )
16538 debug=: ;;
16539 --file | --fil | --fi | --f )
16540 $ac_shift
16541 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16542 ac_need_defaults=false;;
16543 --header | --heade | --head | --hea )
16544 $ac_shift
16545 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16546 ac_need_defaults=false;;
16547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16548 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16549 ac_cs_silent=: ;;
16550
16551 # This is an error.
16552 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16553 Try \`$0 --help' for more information." >&5
16554 echo "$as_me: error: unrecognized option: $1
16555 Try \`$0 --help' for more information." >&2;}
16556 { (exit 1); exit 1; }; } ;;
16557
16558 *) ac_config_targets="$ac_config_targets $1" ;;
16559
16560 esac
16561 shift
16562 done
16563
16564 ac_configure_extra_args=
16565
16566 if $ac_cs_silent; then
16567 exec 6>/dev/null
16568 ac_configure_extra_args="$ac_configure_extra_args --silent"
16569 fi
16570
16571 _ACEOF
16572 cat >>$CONFIG_STATUS <<_ACEOF
16573 if \$ac_cs_recheck; then
16574 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16575 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16576 fi
16577
16578 _ACEOF
16579
16580 cat >>$CONFIG_STATUS <<_ACEOF
16581 #
16582 # INIT-COMMANDS section.
16583 #
16584
16585 subdirs='$subdirs'
16586
16587 _ACEOF
16588
16589
16590
16591 cat >>$CONFIG_STATUS <<\_ACEOF
16592 for ac_config_target in $ac_config_targets
16593 do
16594 case "$ac_config_target" in
16595 # Handling of arguments.
16596 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16597 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16598 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16599 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16600 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16601 { (exit 1); exit 1; }; };;
16602 esac
16603 done
16604
16605 # If the user did not use the arguments to specify the items to instantiate,
16606 # then the envvar interface is used. Set only those that are not.
16607 # We use the long form for the default assignment because of an extremely
16608 # bizarre bug on SunOS 4.1.3.
16609 if $ac_need_defaults; then
16610 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16611 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16612 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16613 fi
16614
16615 # Have a temporary directory for convenience. Make it in the build tree
16616 # simply because there is no reason to put it here, and in addition,
16617 # creating and moving files from /tmp can sometimes cause problems.
16618 # Create a temporary directory, and hook for its removal unless debugging.
16619 $debug ||
16620 {
16621 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16622 trap '{ (exit 1); exit 1; }' 1 2 13 15
16623 }
16624
16625 # Create a (secure) tmp directory for tmp files.
16626
16627 {
16628 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16629 test -n "$tmp" && test -d "$tmp"
16630 } ||
16631 {
16632 tmp=./confstat$$-$RANDOM
16633 (umask 077 && mkdir $tmp)
16634 } ||
16635 {
16636 echo "$me: cannot create a temporary directory in ." >&2
16637 { (exit 1); exit 1; }
16638 }
16639
16640 _ACEOF
16641
16642 cat >>$CONFIG_STATUS <<_ACEOF
16643
16644 #
16645 # CONFIG_FILES section.
16646 #
16647
16648 # No need to generate the scripts if there are no CONFIG_FILES.
16649 # This happens for instance when ./config.status config.h
16650 if test -n "\$CONFIG_FILES"; then
16651 # Protect against being on the right side of a sed subst in config.status.
16652 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16653 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16654 s,@SHELL@,$SHELL,;t t
16655 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16656 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16657 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16658 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16659 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16660 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16661 s,@exec_prefix@,$exec_prefix,;t t
16662 s,@prefix@,$prefix,;t t
16663 s,@program_transform_name@,$program_transform_name,;t t
16664 s,@bindir@,$bindir,;t t
16665 s,@sbindir@,$sbindir,;t t
16666 s,@libexecdir@,$libexecdir,;t t
16667 s,@datadir@,$datadir,;t t
16668 s,@sysconfdir@,$sysconfdir,;t t
16669 s,@sharedstatedir@,$sharedstatedir,;t t
16670 s,@localstatedir@,$localstatedir,;t t
16671 s,@libdir@,$libdir,;t t
16672 s,@includedir@,$includedir,;t t
16673 s,@oldincludedir@,$oldincludedir,;t t
16674 s,@infodir@,$infodir,;t t
16675 s,@mandir@,$mandir,;t t
16676 s,@build_alias@,$build_alias,;t t
16677 s,@host_alias@,$host_alias,;t t
16678 s,@target_alias@,$target_alias,;t t
16679 s,@DEFS@,$DEFS,;t t
16680 s,@ECHO_C@,$ECHO_C,;t t
16681 s,@ECHO_N@,$ECHO_N,;t t
16682 s,@ECHO_T@,$ECHO_T,;t t
16683 s,@LIBS@,$LIBS,;t t
16684 s,@build@,$build,;t t
16685 s,@build_cpu@,$build_cpu,;t t
16686 s,@build_vendor@,$build_vendor,;t t
16687 s,@build_os@,$build_os,;t t
16688 s,@host@,$host,;t t
16689 s,@host_cpu@,$host_cpu,;t t
16690 s,@host_vendor@,$host_vendor,;t t
16691 s,@host_os@,$host_os,;t t
16692 s,@target@,$target,;t t
16693 s,@target_cpu@,$target_cpu,;t t
16694 s,@target_vendor@,$target_vendor,;t t
16695 s,@target_os@,$target_os,;t t
16696 s,@target_noncanonical@,$target_noncanonical,;t t
16697 s,@build_subdir@,$build_subdir,;t t
16698 s,@host_subdir@,$host_subdir,;t t
16699 s,@target_subdir@,$target_subdir,;t t
16700 s,@GENINSRC@,$GENINSRC,;t t
16701 s,@CC@,$CC,;t t
16702 s,@CFLAGS@,$CFLAGS,;t t
16703 s,@LDFLAGS@,$LDFLAGS,;t t
16704 s,@CPPFLAGS@,$CPPFLAGS,;t t
16705 s,@ac_ct_CC@,$ac_ct_CC,;t t
16706 s,@EXEEXT@,$EXEEXT,;t t
16707 s,@OBJEXT@,$OBJEXT,;t t
16708 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16709 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16710 s,@CPP@,$CPP,;t t
16711 s,@EGREP@,$EGREP,;t t
16712 s,@strict1_warn@,$strict1_warn,;t t
16713 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16714 s,@warn_cflags@,$warn_cflags,;t t
16715 s,@WERROR@,$WERROR,;t t
16716 s,@nocommon_flag@,$nocommon_flag,;t t
16717 s,@TREEBROWSER@,$TREEBROWSER,;t t
16718 s,@valgrind_path@,$valgrind_path,;t t
16719 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16720 s,@valgrind_command@,$valgrind_command,;t t
16721 s,@coverage_flags@,$coverage_flags,;t t
16722 s,@enable_multilib@,$enable_multilib,;t t
16723 s,@enable_decimal_float@,$enable_decimal_float,;t t
16724 s,@enable_shared@,$enable_shared,;t t
16725 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16726 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16727 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16728 s,@onestep@,$onestep,;t t
16729 s,@SET_MAKE@,$SET_MAKE,;t t
16730 s,@AWK@,$AWK,;t t
16731 s,@LN_S@,$LN_S,;t t
16732 s,@LN@,$LN,;t t
16733 s,@RANLIB@,$RANLIB,;t t
16734 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16735 s,@ranlib_flags@,$ranlib_flags,;t t
16736 s,@INSTALL@,$INSTALL,;t t
16737 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16738 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16739 s,@make_compare_target@,$make_compare_target,;t t
16740 s,@have_mktemp_command@,$have_mktemp_command,;t t
16741 s,@MAKEINFO@,$MAKEINFO,;t t
16742 s,@BUILD_INFO@,$BUILD_INFO,;t t
16743 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16744 s,@FLEX@,$FLEX,;t t
16745 s,@BISON@,$BISON,;t t
16746 s,@NM@,$NM,;t t
16747 s,@AR@,$AR,;t t
16748 s,@stage1_cflags@,$stage1_cflags,;t t
16749 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16750 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16751 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16752 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16753 s,@LIBICONV@,$LIBICONV,;t t
16754 s,@LTLIBICONV@,$LTLIBICONV,;t t
16755 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16756 s,@manext@,$manext,;t t
16757 s,@objext@,$objext,;t t
16758 s,@gthread_flags@,$gthread_flags,;t t
16759 s,@extra_modes_file@,$extra_modes_file,;t t
16760 s,@extra_opt_files@,$extra_opt_files,;t t
16761 s,@USE_NLS@,$USE_NLS,;t t
16762 s,@LIBINTL@,$LIBINTL,;t t
16763 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16764 s,@INCINTL@,$INCINTL,;t t
16765 s,@XGETTEXT@,$XGETTEXT,;t t
16766 s,@GMSGFMT@,$GMSGFMT,;t t
16767 s,@POSUB@,$POSUB,;t t
16768 s,@CATALOGS@,$CATALOGS,;t t
16769 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16770 s,@CROSS@,$CROSS,;t t
16771 s,@ALL@,$ALL,;t t
16772 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16773 s,@inhibit_libc@,$inhibit_libc,;t t
16774 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16775 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16776 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16777 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16778 s,@collect2@,$collect2,;t t
16779 s,@gcc_cv_as@,$gcc_cv_as,;t t
16780 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
16781 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
16782 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
16783 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
16784 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
16785 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
16786 s,@libgcc_visibility@,$libgcc_visibility,;t t
16787 s,@GGC@,$GGC,;t t
16788 s,@zlibdir@,$zlibdir,;t t
16789 s,@zlibinc@,$zlibinc,;t t
16790 s,@MAINT@,$MAINT,;t t
16791 s,@gcc_tooldir@,$gcc_tooldir,;t t
16792 s,@dollar@,$dollar,;t t
16793 s,@slibdir@,$slibdir,;t t
16794 s,@objdir@,$objdir,;t t
16795 s,@subdirs@,$subdirs,;t t
16796 s,@srcdir@,$srcdir,;t t
16797 s,@all_boot_languages@,$all_boot_languages,;t t
16798 s,@all_compilers@,$all_compilers,;t t
16799 s,@all_gtfiles@,$all_gtfiles,;t t
16800 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16801 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16802 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16803 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16804 s,@all_languages@,$all_languages,;t t
16805 s,@all_stagestuff@,$all_stagestuff,;t t
16806 s,@build_exeext@,$build_exeext,;t t
16807 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16808 s,@build_xm_file_list@,$build_xm_file_list,;t t
16809 s,@build_xm_include_list@,$build_xm_include_list,;t t
16810 s,@build_xm_defines@,$build_xm_defines,;t t
16811 s,@check_languages@,$check_languages,;t t
16812 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16813 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16814 s,@cpp_install_dir@,$cpp_install_dir,;t t
16815 s,@xmake_file@,$xmake_file,;t t
16816 s,@tmake_file@,$tmake_file,;t t
16817 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16818 s,@extra_headers_list@,$extra_headers_list,;t t
16819 s,@extra_objs@,$extra_objs,;t t
16820 s,@extra_parts@,$extra_parts,;t t
16821 s,@extra_passes@,$extra_passes,;t t
16822 s,@extra_programs@,$extra_programs,;t t
16823 s,@float_h_file@,$float_h_file,;t t
16824 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16825 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16826 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16827 s,@host_exeext@,$host_exeext,;t t
16828 s,@host_xm_file_list@,$host_xm_file_list,;t t
16829 s,@host_xm_include_list@,$host_xm_include_list,;t t
16830 s,@host_xm_defines@,$host_xm_defines,;t t
16831 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16832 s,@install@,$install,;t t
16833 s,@lang_opt_files@,$lang_opt_files,;t t
16834 s,@lang_specs_files@,$lang_specs_files,;t t
16835 s,@lang_tree_files@,$lang_tree_files,;t t
16836 s,@local_prefix@,$local_prefix,;t t
16837 s,@md_file@,$md_file,;t t
16838 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16839 s,@out_file@,$out_file,;t t
16840 s,@out_object_file@,$out_object_file,;t t
16841 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16842 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16843 s,@thread_file@,$thread_file,;t t
16844 s,@tm_file_list@,$tm_file_list,;t t
16845 s,@tm_include_list@,$tm_include_list,;t t
16846 s,@tm_defines@,$tm_defines,;t t
16847 s,@tm_p_file_list@,$tm_p_file_list,;t t
16848 s,@tm_p_include_list@,$tm_p_include_list,;t t
16849 s,@xm_file_list@,$xm_file_list,;t t
16850 s,@xm_include_list@,$xm_include_list,;t t
16851 s,@xm_defines@,$xm_defines,;t t
16852 s,@c_target_objs@,$c_target_objs,;t t
16853 s,@cxx_target_objs@,$cxx_target_objs,;t t
16854 s,@target_cpu_default@,$target_cpu_default,;t t
16855 s,@GMPLIBS@,$GMPLIBS,;t t
16856 s,@GMPINC@,$GMPINC,;t t
16857 s,@LIBOBJS@,$LIBOBJS,;t t
16858 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16859 /@language_hooks@/r $language_hooks
16860 s,@language_hooks@,,;t t
16861 CEOF
16862
16863 _ACEOF
16864
16865 cat >>$CONFIG_STATUS <<\_ACEOF
16866 # Split the substitutions into bite-sized pieces for seds with
16867 # small command number limits, like on Digital OSF/1 and HP-UX.
16868 ac_max_sed_lines=48
16869 ac_sed_frag=1 # Number of current file.
16870 ac_beg=1 # First line for current file.
16871 ac_end=$ac_max_sed_lines # Line after last line for current file.
16872 ac_more_lines=:
16873 ac_sed_cmds=
16874 while $ac_more_lines; do
16875 if test $ac_beg -gt 1; then
16876 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16877 else
16878 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16879 fi
16880 if test ! -s $tmp/subs.frag; then
16881 ac_more_lines=false
16882 else
16883 # The purpose of the label and of the branching condition is to
16884 # speed up the sed processing (if there are no `@' at all, there
16885 # is no need to browse any of the substitutions).
16886 # These are the two extra sed commands mentioned above.
16887 (echo ':t
16888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16889 if test -z "$ac_sed_cmds"; then
16890 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16891 else
16892 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16893 fi
16894 ac_sed_frag=`expr $ac_sed_frag + 1`
16895 ac_beg=$ac_end
16896 ac_end=`expr $ac_end + $ac_max_sed_lines`
16897 fi
16898 done
16899 if test -z "$ac_sed_cmds"; then
16900 ac_sed_cmds=cat
16901 fi
16902 fi # test -n "$CONFIG_FILES"
16903
16904 _ACEOF
16905 cat >>$CONFIG_STATUS <<\_ACEOF
16906 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16907 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16908 case $ac_file in
16909 - | *:- | *:-:* ) # input from stdin
16910 cat >$tmp/stdin
16911 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16912 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16913 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16914 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16915 * ) ac_file_in=$ac_file.in ;;
16916 esac
16917
16918 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16919 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16921 X"$ac_file" : 'X\(//\)[^/]' \| \
16922 X"$ac_file" : 'X\(//\)$' \| \
16923 X"$ac_file" : 'X\(/\)' \| \
16924 . : '\(.\)' 2>/dev/null ||
16925 echo X"$ac_file" |
16926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16928 /^X\(\/\/\)$/{ s//\1/; q; }
16929 /^X\(\/\).*/{ s//\1/; q; }
16930 s/.*/./; q'`
16931 { if $as_mkdir_p; then
16932 mkdir -p "$ac_dir"
16933 else
16934 as_dir="$ac_dir"
16935 as_dirs=
16936 while test ! -d "$as_dir"; do
16937 as_dirs="$as_dir $as_dirs"
16938 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16940 X"$as_dir" : 'X\(//\)[^/]' \| \
16941 X"$as_dir" : 'X\(//\)$' \| \
16942 X"$as_dir" : 'X\(/\)' \| \
16943 . : '\(.\)' 2>/dev/null ||
16944 echo X"$as_dir" |
16945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16947 /^X\(\/\/\)$/{ s//\1/; q; }
16948 /^X\(\/\).*/{ s//\1/; q; }
16949 s/.*/./; q'`
16950 done
16951 test ! -n "$as_dirs" || mkdir $as_dirs
16952 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16953 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16954 { (exit 1); exit 1; }; }; }
16955
16956 ac_builddir=.
16957
16958 if test "$ac_dir" != .; then
16959 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16960 # A "../" for each directory in $ac_dir_suffix.
16961 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16962 else
16963 ac_dir_suffix= ac_top_builddir=
16964 fi
16965
16966 case $srcdir in
16967 .) # No --srcdir option. We are building in place.
16968 ac_srcdir=.
16969 if test -z "$ac_top_builddir"; then
16970 ac_top_srcdir=.
16971 else
16972 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16973 fi ;;
16974 [\\/]* | ?:[\\/]* ) # Absolute path.
16975 ac_srcdir=$srcdir$ac_dir_suffix;
16976 ac_top_srcdir=$srcdir ;;
16977 *) # Relative path.
16978 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16979 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16980 esac
16981
16982 # Do not use `cd foo && pwd` to compute absolute paths, because
16983 # the directories may not exist.
16984 case `pwd` in
16985 .) ac_abs_builddir="$ac_dir";;
16986 *)
16987 case "$ac_dir" in
16988 .) ac_abs_builddir=`pwd`;;
16989 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16990 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16991 esac;;
16992 esac
16993 case $ac_abs_builddir in
16994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16995 *)
16996 case ${ac_top_builddir}. in
16997 .) ac_abs_top_builddir=$ac_abs_builddir;;
16998 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16999 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17000 esac;;
17001 esac
17002 case $ac_abs_builddir in
17003 .) ac_abs_srcdir=$ac_srcdir;;
17004 *)
17005 case $ac_srcdir in
17006 .) ac_abs_srcdir=$ac_abs_builddir;;
17007 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17008 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17009 esac;;
17010 esac
17011 case $ac_abs_builddir in
17012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17013 *)
17014 case $ac_top_srcdir in
17015 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17016 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17017 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17018 esac;;
17019 esac
17020
17021
17022
17023 if test x"$ac_file" != x-; then
17024 { echo "$as_me:$LINENO: creating $ac_file" >&5
17025 echo "$as_me: creating $ac_file" >&6;}
17026 rm -f "$ac_file"
17027 fi
17028 # Let's still pretend it is `configure' which instantiates (i.e., don't
17029 # use $as_me), people would be surprised to read:
17030 # /* config.h. Generated by config.status. */
17031 if test x"$ac_file" = x-; then
17032 configure_input=
17033 else
17034 configure_input="$ac_file. "
17035 fi
17036 configure_input=$configure_input"Generated from `echo $ac_file_in |
17037 sed 's,.*/,,'` by configure."
17038
17039 # First look for the input files in the build tree, otherwise in the
17040 # src tree.
17041 ac_file_inputs=`IFS=:
17042 for f in $ac_file_in; do
17043 case $f in
17044 -) echo $tmp/stdin ;;
17045 [\\/$]*)
17046 # Absolute (can't be DOS-style, as IFS=:)
17047 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17048 echo "$as_me: error: cannot find input file: $f" >&2;}
17049 { (exit 1); exit 1; }; }
17050 echo "$f";;
17051 *) # Relative
17052 if test -f "$f"; then
17053 # Build tree
17054 echo "$f"
17055 elif test -f "$srcdir/$f"; then
17056 # Source tree
17057 echo "$srcdir/$f"
17058 else
17059 # /dev/null tree
17060 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17061 echo "$as_me: error: cannot find input file: $f" >&2;}
17062 { (exit 1); exit 1; }; }
17063 fi;;
17064 esac
17065 done` || { (exit 1); exit 1; }
17066 _ACEOF
17067 cat >>$CONFIG_STATUS <<_ACEOF
17068 sed "$ac_vpsub
17069 $extrasub
17070 _ACEOF
17071 cat >>$CONFIG_STATUS <<\_ACEOF
17072 :t
17073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17074 s,@configure_input@,$configure_input,;t t
17075 s,@srcdir@,$ac_srcdir,;t t
17076 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17077 s,@top_srcdir@,$ac_top_srcdir,;t t
17078 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17079 s,@builddir@,$ac_builddir,;t t
17080 s,@abs_builddir@,$ac_abs_builddir,;t t
17081 s,@top_builddir@,$ac_top_builddir,;t t
17082 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17083 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17084 rm -f $tmp/stdin
17085 if test x"$ac_file" != x-; then
17086 mv $tmp/out $ac_file
17087 else
17088 cat $tmp/out
17089 rm -f $tmp/out
17090 fi
17091
17092 done
17093 _ACEOF
17094 cat >>$CONFIG_STATUS <<\_ACEOF
17095
17096 #
17097 # CONFIG_HEADER section.
17098 #
17099
17100 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17101 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17102 #
17103 # ac_d sets the value in "#define NAME VALUE" lines.
17104 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17105 ac_dB='[ ].*$,\1#\2'
17106 ac_dC=' '
17107 ac_dD=',;t'
17108 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17109 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17110 ac_uB='$,\1#\2define\3'
17111 ac_uC=' '
17112 ac_uD=',;t'
17113
17114 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17115 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17116 case $ac_file in
17117 - | *:- | *:-:* ) # input from stdin
17118 cat >$tmp/stdin
17119 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17120 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17121 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17122 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17123 * ) ac_file_in=$ac_file.in ;;
17124 esac
17125
17126 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17127 echo "$as_me: creating $ac_file" >&6;}
17128
17129 # First look for the input files in the build tree, otherwise in the
17130 # src tree.
17131 ac_file_inputs=`IFS=:
17132 for f in $ac_file_in; do
17133 case $f in
17134 -) echo $tmp/stdin ;;
17135 [\\/$]*)
17136 # Absolute (can't be DOS-style, as IFS=:)
17137 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17138 echo "$as_me: error: cannot find input file: $f" >&2;}
17139 { (exit 1); exit 1; }; }
17140 # Do quote $f, to prevent DOS paths from being IFS'd.
17141 echo "$f";;
17142 *) # Relative
17143 if test -f "$f"; then
17144 # Build tree
17145 echo "$f"
17146 elif test -f "$srcdir/$f"; then
17147 # Source tree
17148 echo "$srcdir/$f"
17149 else
17150 # /dev/null tree
17151 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17152 echo "$as_me: error: cannot find input file: $f" >&2;}
17153 { (exit 1); exit 1; }; }
17154 fi;;
17155 esac
17156 done` || { (exit 1); exit 1; }
17157 # Remove the trailing spaces.
17158 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17159
17160 _ACEOF
17161
17162 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17163 # `conftest.undefs', that substitutes the proper values into
17164 # config.h.in to produce config.h. The first handles `#define'
17165 # templates, and the second `#undef' templates.
17166 # And first: Protect against being on the right side of a sed subst in
17167 # config.status. Protect against being in an unquoted here document
17168 # in config.status.
17169 rm -f conftest.defines conftest.undefs
17170 # Using a here document instead of a string reduces the quoting nightmare.
17171 # Putting comments in sed scripts is not portable.
17172 #
17173 # `end' is used to avoid that the second main sed command (meant for
17174 # 0-ary CPP macros) applies to n-ary macro definitions.
17175 # See the Autoconf documentation for `clear'.
17176 cat >confdef2sed.sed <<\_ACEOF
17177 s/[\\&,]/\\&/g
17178 s,[\\$`],\\&,g
17179 t clear
17180 : clear
17181 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17182 t end
17183 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17184 : end
17185 _ACEOF
17186 # If some macros were called several times there might be several times
17187 # the same #defines, which is useless. Nevertheless, we may not want to
17188 # sort them, since we want the *last* AC-DEFINE to be honored.
17189 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17190 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17191 rm -f confdef2sed.sed
17192
17193 # This sed command replaces #undef with comments. This is necessary, for
17194 # example, in the case of _POSIX_SOURCE, which is predefined and required
17195 # on some systems where configure will not decide to define it.
17196 cat >>conftest.undefs <<\_ACEOF
17197 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17198 _ACEOF
17199
17200 # Break up conftest.defines because some shells have a limit on the size
17201 # of here documents, and old seds have small limits too (100 cmds).
17202 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17203 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17204 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17205 echo ' :' >>$CONFIG_STATUS
17206 rm -f conftest.tail
17207 while grep . conftest.defines >/dev/null
17208 do
17209 # Write a limited-size here document to $tmp/defines.sed.
17210 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17211 # Speed up: don't consider the non `#define' lines.
17212 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17213 # Work around the forget-to-reset-the-flag bug.
17214 echo 't clr' >>$CONFIG_STATUS
17215 echo ': clr' >>$CONFIG_STATUS
17216 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17217 echo 'CEOF
17218 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17219 rm -f $tmp/in
17220 mv $tmp/out $tmp/in
17221 ' >>$CONFIG_STATUS
17222 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17223 rm -f conftest.defines
17224 mv conftest.tail conftest.defines
17225 done
17226 rm -f conftest.defines
17227 echo ' fi # grep' >>$CONFIG_STATUS
17228 echo >>$CONFIG_STATUS
17229
17230 # Break up conftest.undefs because some shells have a limit on the size
17231 # of here documents, and old seds have small limits too (100 cmds).
17232 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17233 rm -f conftest.tail
17234 while grep . conftest.undefs >/dev/null
17235 do
17236 # Write a limited-size here document to $tmp/undefs.sed.
17237 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17238 # Speed up: don't consider the non `#undef'
17239 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17240 # Work around the forget-to-reset-the-flag bug.
17241 echo 't clr' >>$CONFIG_STATUS
17242 echo ': clr' >>$CONFIG_STATUS
17243 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17244 echo 'CEOF
17245 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17246 rm -f $tmp/in
17247 mv $tmp/out $tmp/in
17248 ' >>$CONFIG_STATUS
17249 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17250 rm -f conftest.undefs
17251 mv conftest.tail conftest.undefs
17252 done
17253 rm -f conftest.undefs
17254
17255 cat >>$CONFIG_STATUS <<\_ACEOF
17256 # Let's still pretend it is `configure' which instantiates (i.e., don't
17257 # use $as_me), people would be surprised to read:
17258 # /* config.h. Generated by config.status. */
17259 if test x"$ac_file" = x-; then
17260 echo "/* Generated by configure. */" >$tmp/config.h
17261 else
17262 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17263 fi
17264 cat $tmp/in >>$tmp/config.h
17265 rm -f $tmp/in
17266 if test x"$ac_file" != x-; then
17267 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17268 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17269 echo "$as_me: $ac_file is unchanged" >&6;}
17270 else
17271 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17272 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17273 X"$ac_file" : 'X\(//\)[^/]' \| \
17274 X"$ac_file" : 'X\(//\)$' \| \
17275 X"$ac_file" : 'X\(/\)' \| \
17276 . : '\(.\)' 2>/dev/null ||
17277 echo X"$ac_file" |
17278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17280 /^X\(\/\/\)$/{ s//\1/; q; }
17281 /^X\(\/\).*/{ s//\1/; q; }
17282 s/.*/./; q'`
17283 { if $as_mkdir_p; then
17284 mkdir -p "$ac_dir"
17285 else
17286 as_dir="$ac_dir"
17287 as_dirs=
17288 while test ! -d "$as_dir"; do
17289 as_dirs="$as_dir $as_dirs"
17290 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17292 X"$as_dir" : 'X\(//\)[^/]' \| \
17293 X"$as_dir" : 'X\(//\)$' \| \
17294 X"$as_dir" : 'X\(/\)' \| \
17295 . : '\(.\)' 2>/dev/null ||
17296 echo X"$as_dir" |
17297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17299 /^X\(\/\/\)$/{ s//\1/; q; }
17300 /^X\(\/\).*/{ s//\1/; q; }
17301 s/.*/./; q'`
17302 done
17303 test ! -n "$as_dirs" || mkdir $as_dirs
17304 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17305 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17306 { (exit 1); exit 1; }; }; }
17307
17308 rm -f $ac_file
17309 mv $tmp/config.h $ac_file
17310 fi
17311 else
17312 cat $tmp/config.h
17313 rm -f $tmp/config.h
17314 fi
17315 done
17316 _ACEOF
17317 cat >>$CONFIG_STATUS <<\_ACEOF
17318
17319 #
17320 # CONFIG_COMMANDS section.
17321 #
17322 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17323 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17324 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17325 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17326 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17327 X"$ac_dest" : 'X\(//\)[^/]' \| \
17328 X"$ac_dest" : 'X\(//\)$' \| \
17329 X"$ac_dest" : 'X\(/\)' \| \
17330 . : '\(.\)' 2>/dev/null ||
17331 echo X"$ac_dest" |
17332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17334 /^X\(\/\/\)$/{ s//\1/; q; }
17335 /^X\(\/\).*/{ s//\1/; q; }
17336 s/.*/./; q'`
17337 { if $as_mkdir_p; then
17338 mkdir -p "$ac_dir"
17339 else
17340 as_dir="$ac_dir"
17341 as_dirs=
17342 while test ! -d "$as_dir"; do
17343 as_dirs="$as_dir $as_dirs"
17344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17346 X"$as_dir" : 'X\(//\)[^/]' \| \
17347 X"$as_dir" : 'X\(//\)$' \| \
17348 X"$as_dir" : 'X\(/\)' \| \
17349 . : '\(.\)' 2>/dev/null ||
17350 echo X"$as_dir" |
17351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17353 /^X\(\/\/\)$/{ s//\1/; q; }
17354 /^X\(\/\).*/{ s//\1/; q; }
17355 s/.*/./; q'`
17356 done
17357 test ! -n "$as_dirs" || mkdir $as_dirs
17358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17359 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17360 { (exit 1); exit 1; }; }; }
17361
17362 ac_builddir=.
17363
17364 if test "$ac_dir" != .; then
17365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17366 # A "../" for each directory in $ac_dir_suffix.
17367 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17368 else
17369 ac_dir_suffix= ac_top_builddir=
17370 fi
17371
17372 case $srcdir in
17373 .) # No --srcdir option. We are building in place.
17374 ac_srcdir=.
17375 if test -z "$ac_top_builddir"; then
17376 ac_top_srcdir=.
17377 else
17378 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17379 fi ;;
17380 [\\/]* | ?:[\\/]* ) # Absolute path.
17381 ac_srcdir=$srcdir$ac_dir_suffix;
17382 ac_top_srcdir=$srcdir ;;
17383 *) # Relative path.
17384 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17385 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17386 esac
17387
17388 # Do not use `cd foo && pwd` to compute absolute paths, because
17389 # the directories may not exist.
17390 case `pwd` in
17391 .) ac_abs_builddir="$ac_dir";;
17392 *)
17393 case "$ac_dir" in
17394 .) ac_abs_builddir=`pwd`;;
17395 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17396 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17397 esac;;
17398 esac
17399 case $ac_abs_builddir in
17400 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17401 *)
17402 case ${ac_top_builddir}. in
17403 .) ac_abs_top_builddir=$ac_abs_builddir;;
17404 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17405 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17406 esac;;
17407 esac
17408 case $ac_abs_builddir in
17409 .) ac_abs_srcdir=$ac_srcdir;;
17410 *)
17411 case $ac_srcdir in
17412 .) ac_abs_srcdir=$ac_abs_builddir;;
17413 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17414 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17415 esac;;
17416 esac
17417 case $ac_abs_builddir in
17418 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17419 *)
17420 case $ac_top_srcdir in
17421 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17422 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17423 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17424 esac;;
17425 esac
17426
17427
17428 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17429 echo "$as_me: executing $ac_dest commands" >&6;}
17430 case $ac_dest in
17431 default )
17432 case ${CONFIG_HEADERS} in
17433 *auto-host.h:config.in*)
17434 echo > cstamp-h ;;
17435 esac
17436 # Make sure all the subdirs exist.
17437 for d in $subdirs doc build
17438 do
17439 test -d $d || mkdir $d
17440 done
17441 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17442 # bootstrapping and the installation procedure can still use
17443 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17444 # FLAGS_TO_PASS has been modified to solve the problem there.
17445 # This is virtually a duplicate of what happens in configure.lang; we do
17446 # an extra check to make sure this only happens if ln -s can be used.
17447 case "$LN_S" in
17448 *-s*)
17449 for d in ${subdirs} ; do
17450 STARTDIR=`${PWDCMD-pwd}`
17451 cd $d
17452 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17453 do
17454 rm -f $t
17455 $LN_S ../$t $t 2>/dev/null
17456 done
17457 cd $STARTDIR
17458 done
17459 ;;
17460 esac
17461 ;;
17462 esac
17463 done
17464 _ACEOF
17465
17466 cat >>$CONFIG_STATUS <<\_ACEOF
17467
17468 { (exit 0); exit 0; }
17469 _ACEOF
17470 chmod +x $CONFIG_STATUS
17471 ac_clean_files=$ac_clean_files_save
17472
17473
17474 # configure is writing to config.log, and then calls config.status.
17475 # config.status does its own redirection, appending to config.log.
17476 # Unfortunately, on DOS this fails, as config.log is still kept open
17477 # by configure, so config.status won't be able to write to it; its
17478 # output is simply discarded. So we exec the FD to /dev/null,
17479 # effectively closing config.log, so it can be properly (re)opened and
17480 # appended to by config.status. When coming back to configure, we
17481 # need to make the FD available again.
17482 if test "$no_create" != yes; then
17483 ac_cs_success=:
17484 ac_config_status_args=
17485 test "$silent" = yes &&
17486 ac_config_status_args="$ac_config_status_args --quiet"
17487 exec 5>/dev/null
17488 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17489 exec 5>>config.log
17490 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17491 # would make configure fail if this is the last instruction.
17492 $ac_cs_success || { (exit 1); exit 1; }
17493 fi
17494