errors.h (warning, [...]): Mark as cold.
[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_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict_warn cxx_compat_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
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-checking=LIST
867 enable expensive run-time checks. With LIST,
868 enable only specific categories of checks.
869 Categories are: yes,no,all,none,release.
870 Flags are: assert,fold,gc,gcac,misc,
871 rtlflag,rtl,runtime,tree,valgrind.
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-decimal-float enable decimal float extension to C
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-tls enable or disable generation of tls code
886 overriding the assembler check for tls support
887 --enable-objc-gc enable the use of Boehm's garbage collector with
888 the GNU Objective-C runtime
889 --disable-shared don't provide a shared libgcc
890 --enable-intermodule build the compiler in one step
891 --enable-languages=LIST specify which front-ends to build
892 --disable-rpath do not hardcode runtime library paths
893 --enable-initfini-array use .init_array/.fini_array sections
894 --enable-sjlj-exceptions
895 arrange to use setjmp/longjmp exception handling
896 --enable-secureplt enable -msecure-plt by default for PowerPC
897 --disable-win32-registry
898 disable lookup of installation paths in the
899 Registry on Windows hosts
900 --enable-win32-registry enable registry lookup (default)
901 --enable-win32-registry=KEY
902 use KEY instead of GCC version as the last portion
903 of the registry key
904 --enable-maintainer-mode
905 enable make rules and dependencies not useful
906 (and sometimes confusing) to the casual installer
907 --enable-version-specific-runtime-libs
908 specify that runtime libraries should be
909 installed in a compiler-specific directory
910
911 Optional Packages:
912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
914 --with-build-libsubdir=DIR Directory where to find libraries for build system
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search for libiconv in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-long-double-128 Use 128-bit long double by default.
936 --with-gc={page,zone} choose the garbage collection mechanism to use
937 with the compiler
938 --with-system-zlib use installed libz
939 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
940 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
941 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
942 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
943
944 Some influential environment variables:
945 CC C compiler command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
948 nonstandard directory <lib dir>
949 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
950 headers in a nonstandard directory <include dir>
951 CPP C preprocessor
952 GMPLIBS How to link GMP
953 GMPINC How to find GMP include files
954
955 Use these variables to override the choices made by `configure' or to help
956 it to find libraries and programs with nonstandard names/locations.
957
958 _ACEOF
959 fi
960
961 if test "$ac_init_help" = "recursive"; then
962 # If there are subdirs, report their specific --help.
963 ac_popdir=`pwd`
964 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
965 test -d $ac_dir || continue
966 ac_builddir=.
967
968 if test "$ac_dir" != .; then
969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
970 # A "../" for each directory in $ac_dir_suffix.
971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
972 else
973 ac_dir_suffix= ac_top_builddir=
974 fi
975
976 case $srcdir in
977 .) # No --srcdir option. We are building in place.
978 ac_srcdir=.
979 if test -z "$ac_top_builddir"; then
980 ac_top_srcdir=.
981 else
982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
983 fi ;;
984 [\\/]* | ?:[\\/]* ) # Absolute path.
985 ac_srcdir=$srcdir$ac_dir_suffix;
986 ac_top_srcdir=$srcdir ;;
987 *) # Relative path.
988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
990 esac
991
992 # Do not use `cd foo && pwd` to compute absolute paths, because
993 # the directories may not exist.
994 case `pwd` in
995 .) ac_abs_builddir="$ac_dir";;
996 *)
997 case "$ac_dir" in
998 .) ac_abs_builddir=`pwd`;;
999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1001 esac;;
1002 esac
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1005 *)
1006 case ${ac_top_builddir}. in
1007 .) ac_abs_top_builddir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1010 esac;;
1011 esac
1012 case $ac_abs_builddir in
1013 .) ac_abs_srcdir=$ac_srcdir;;
1014 *)
1015 case $ac_srcdir in
1016 .) ac_abs_srcdir=$ac_abs_builddir;;
1017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1019 esac;;
1020 esac
1021 case $ac_abs_builddir in
1022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1023 *)
1024 case $ac_top_srcdir in
1025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1028 esac;;
1029 esac
1030
1031 cd $ac_dir
1032 # Check for guested configure; otherwise get Cygnus style configure.
1033 if test -f $ac_srcdir/configure.gnu; then
1034 echo
1035 $SHELL $ac_srcdir/configure.gnu --help=recursive
1036 elif test -f $ac_srcdir/configure; then
1037 echo
1038 $SHELL $ac_srcdir/configure --help=recursive
1039 elif test -f $ac_srcdir/configure.ac ||
1040 test -f $ac_srcdir/configure.in; then
1041 echo
1042 $ac_configure --help
1043 else
1044 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1045 fi
1046 cd $ac_popdir
1047 done
1048 fi
1049
1050 test -n "$ac_init_help" && exit 0
1051 if $ac_init_version; then
1052 cat <<\_ACEOF
1053
1054 Copyright (C) 2003 Free Software Foundation, Inc.
1055 This configure script is free software; the Free Software Foundation
1056 gives unlimited permission to copy, distribute and modify it.
1057 _ACEOF
1058 exit 0
1059 fi
1060 exec 5>config.log
1061 cat >&5 <<_ACEOF
1062 This file contains any messages produced by compilers while
1063 running configure, to aid debugging if configure makes a mistake.
1064
1065 It was created by $as_me, which was
1066 generated by GNU Autoconf 2.59. Invocation command line was
1067
1068 $ $0 $@
1069
1070 _ACEOF
1071 {
1072 cat <<_ASUNAME
1073 ## --------- ##
1074 ## Platform. ##
1075 ## --------- ##
1076
1077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1082
1083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1085
1086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1089 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1093
1094 _ASUNAME
1095
1096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1097 for as_dir in $PATH
1098 do
1099 IFS=$as_save_IFS
1100 test -z "$as_dir" && as_dir=.
1101 echo "PATH: $as_dir"
1102 done
1103
1104 } >&5
1105
1106 cat >&5 <<_ACEOF
1107
1108
1109 ## ----------- ##
1110 ## Core tests. ##
1111 ## ----------- ##
1112
1113 _ACEOF
1114
1115
1116 # Keep a trace of the command line.
1117 # Strip out --no-create and --no-recursion so they do not pile up.
1118 # Strip out --silent because we don't want to record it for future runs.
1119 # Also quote any args containing shell meta-characters.
1120 # Make two passes to allow for proper duplicate-argument suppression.
1121 ac_configure_args=
1122 ac_configure_args0=
1123 ac_configure_args1=
1124 ac_sep=
1125 ac_must_keep_next=false
1126 for ac_pass in 1 2
1127 do
1128 for ac_arg
1129 do
1130 case $ac_arg in
1131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 continue ;;
1135 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1136 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1137 esac
1138 case $ac_pass in
1139 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1140 2)
1141 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1142 if test $ac_must_keep_next = true; then
1143 ac_must_keep_next=false # Got value, back to normal.
1144 else
1145 case $ac_arg in
1146 *=* | --config-cache | -C | -disable-* | --disable-* \
1147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1149 | -with-* | --with-* | -without-* | --without-* | --x)
1150 case "$ac_configure_args0 " in
1151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1152 esac
1153 ;;
1154 -* ) ac_must_keep_next=true ;;
1155 esac
1156 fi
1157 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1158 # Get rid of the leading space.
1159 ac_sep=" "
1160 ;;
1161 esac
1162 done
1163 done
1164 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1165 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1166
1167 # When interrupted or exit'd, cleanup temporary files, and complete
1168 # config.log. We remove comments because anyway the quotes in there
1169 # would cause problems or look ugly.
1170 # WARNING: Be sure not to use single quotes in there, as some shells,
1171 # such as our DU 5.0 friend, will then `close' the trap.
1172 trap 'exit_status=$?
1173 # Save into config.log some information that might help in debugging.
1174 {
1175 echo
1176
1177 cat <<\_ASBOX
1178 ## ---------------- ##
1179 ## Cache variables. ##
1180 ## ---------------- ##
1181 _ASBOX
1182 echo
1183 # The following way of writing the cache mishandles newlines in values,
1184 {
1185 (set) 2>&1 |
1186 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1187 *ac_space=\ *)
1188 sed -n \
1189 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1191 ;;
1192 *)
1193 sed -n \
1194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1195 ;;
1196 esac;
1197 }
1198 echo
1199
1200 cat <<\_ASBOX
1201 ## ----------------- ##
1202 ## Output variables. ##
1203 ## ----------------- ##
1204 _ASBOX
1205 echo
1206 for ac_var in $ac_subst_vars
1207 do
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1210 done | sort
1211 echo
1212
1213 if test -n "$ac_subst_files"; then
1214 cat <<\_ASBOX
1215 ## ------------- ##
1216 ## Output files. ##
1217 ## ------------- ##
1218 _ASBOX
1219 echo
1220 for ac_var in $ac_subst_files
1221 do
1222 eval ac_val=$`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1224 done | sort
1225 echo
1226 fi
1227
1228 if test -s confdefs.h; then
1229 cat <<\_ASBOX
1230 ## ----------- ##
1231 ## confdefs.h. ##
1232 ## ----------- ##
1233 _ASBOX
1234 echo
1235 sed "/^$/d" confdefs.h | sort
1236 echo
1237 fi
1238 test "$ac_signal" != 0 &&
1239 echo "$as_me: caught signal $ac_signal"
1240 echo "$as_me: exit $exit_status"
1241 } >&5
1242 rm -f core *.core &&
1243 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1244 exit $exit_status
1245 ' 0
1246 for ac_signal in 1 2 13 15; do
1247 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1248 done
1249 ac_signal=0
1250
1251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1252 rm -rf conftest* confdefs.h
1253 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1254 echo >confdefs.h
1255
1256 # Predefined preprocessor variables.
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_NAME "$PACKAGE_NAME"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1265 _ACEOF
1266
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1270 _ACEOF
1271
1272
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_STRING "$PACKAGE_STRING"
1275 _ACEOF
1276
1277
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1280 _ACEOF
1281
1282
1283 # Let the site file select an alternate cache file if it wants to.
1284 # Prefer explicitly selected file to automatically selected ones.
1285 if test -z "$CONFIG_SITE"; then
1286 if test "x$prefix" != xNONE; then
1287 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1288 else
1289 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1290 fi
1291 fi
1292 for ac_site_file in $CONFIG_SITE; do
1293 if test -r "$ac_site_file"; then
1294 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295 echo "$as_me: loading site script $ac_site_file" >&6;}
1296 sed 's/^/| /' "$ac_site_file" >&5
1297 . "$ac_site_file"
1298 fi
1299 done
1300
1301 if test -r "$cache_file"; then
1302 # Some versions of bash will fail to source /dev/null (special
1303 # files actually), so we avoid doing that.
1304 if test -f "$cache_file"; then
1305 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306 echo "$as_me: loading cache $cache_file" >&6;}
1307 case $cache_file in
1308 [\\/]* | ?:[\\/]* ) . $cache_file;;
1309 *) . ./$cache_file;;
1310 esac
1311 fi
1312 else
1313 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314 echo "$as_me: creating cache $cache_file" >&6;}
1315 >$cache_file
1316 fi
1317
1318 # Check that the precious variables saved in the cache have kept the same
1319 # value.
1320 ac_cache_corrupted=false
1321 for ac_var in `(set) 2>&1 |
1322 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324 eval ac_new_set=\$ac_env_${ac_var}_set
1325 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326 eval ac_new_val="\$ac_env_${ac_var}_value"
1327 case $ac_old_set,$ac_new_set in
1328 set,)
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1331 ac_cache_corrupted=: ;;
1332 ,set)
1333 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1336 ,);;
1337 *)
1338 if test "x$ac_old_val" != "x$ac_new_val"; then
1339 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1340 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1341 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1342 echo "$as_me: former value: $ac_old_val" >&2;}
1343 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1344 echo "$as_me: current value: $ac_new_val" >&2;}
1345 ac_cache_corrupted=:
1346 fi;;
1347 esac
1348 # Pass precious variables to config.status.
1349 if test "$ac_new_set" = set; then
1350 case $ac_new_val in
1351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1353 *) ac_arg=$ac_var=$ac_new_val ;;
1354 esac
1355 case " $ac_configure_args " in
1356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1357 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1358 esac
1359 fi
1360 done
1361 if $ac_cache_corrupted; then
1362 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1365 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366 { (exit 1); exit 1; }; }
1367 fi
1368
1369 ac_ext=c
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1395
1396
1397 gcc_version=`cat $srcdir/BASE-VER`
1398
1399 # Determine the host, build, and target systems
1400 ac_aux_dir=
1401 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1402 if test -f $ac_dir/install-sh; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/install-sh -c"
1405 break
1406 elif test -f $ac_dir/install.sh; then
1407 ac_aux_dir=$ac_dir
1408 ac_install_sh="$ac_aux_dir/install.sh -c"
1409 break
1410 elif test -f $ac_dir/shtool; then
1411 ac_aux_dir=$ac_dir
1412 ac_install_sh="$ac_aux_dir/shtool install -c"
1413 break
1414 fi
1415 done
1416 if test -z "$ac_aux_dir"; then
1417 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1418 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1419 { (exit 1); exit 1; }; }
1420 fi
1421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1423 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1424
1425 # Make sure we can run config.sub.
1426 $ac_config_sub sun4 >/dev/null 2>&1 ||
1427 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1428 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1429 { (exit 1); exit 1; }; }
1430
1431 echo "$as_me:$LINENO: checking build system type" >&5
1432 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1433 if test "${ac_cv_build+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 ac_cv_build_alias=$build_alias
1437 test -z "$ac_cv_build_alias" &&
1438 ac_cv_build_alias=`$ac_config_guess`
1439 test -z "$ac_cv_build_alias" &&
1440 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1442 { (exit 1); exit 1; }; }
1443 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1447
1448 fi
1449 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1450 echo "${ECHO_T}$ac_cv_build" >&6
1451 build=$ac_cv_build
1452 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455
1456
1457 echo "$as_me:$LINENO: checking host system type" >&5
1458 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1459 if test "${ac_cv_host+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462 ac_cv_host_alias=$host_alias
1463 test -z "$ac_cv_host_alias" &&
1464 ac_cv_host_alias=$ac_cv_build_alias
1465 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1466 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1467 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1468 { (exit 1); exit 1; }; }
1469
1470 fi
1471 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1472 echo "${ECHO_T}$ac_cv_host" >&6
1473 host=$ac_cv_host
1474 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1475 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1476 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1477
1478
1479 echo "$as_me:$LINENO: checking target system type" >&5
1480 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1481 if test "${ac_cv_target+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 ac_cv_target_alias=$target_alias
1485 test "x$ac_cv_target_alias" = "x" &&
1486 ac_cv_target_alias=$ac_cv_host_alias
1487 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1488 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1490 { (exit 1); exit 1; }; }
1491
1492 fi
1493 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1494 echo "${ECHO_T}$ac_cv_target" >&6
1495 target=$ac_cv_target
1496 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1497 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1498 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1499
1500
1501 # The aliases save the names the user supplied, while $host etc.
1502 # will get canonicalized.
1503 test -n "$target_alias" &&
1504 test "$program_prefix$program_suffix$program_transform_name" = \
1505 NONENONEs,x,x, &&
1506 program_prefix=${target_alias}-
1507
1508 # Determine the noncanonical target name, for directory use.
1509 case ${build_alias} in
1510 "") build_noncanonical=${build} ;;
1511 *) build_noncanonical=${build_alias} ;;
1512 esac
1513
1514 case ${host_alias} in
1515 "") host_noncanonical=${build_noncanonical} ;;
1516 *) host_noncanonical=${host_alias} ;;
1517 esac
1518
1519 case ${target_alias} in
1520 "") target_noncanonical=${host_noncanonical} ;;
1521 *) target_noncanonical=${target_alias} ;;
1522 esac
1523
1524
1525
1526
1527 # Determine the target- and build-specific subdirectories
1528
1529 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1530 # have matching libraries, they should use host libraries: Makefile.tpl
1531 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1532 # However, they still use the build modules, because the corresponding
1533 # host modules (e.g. bison) are only built for the host when bootstrap
1534 # finishes. So:
1535 # - build_subdir is where we find build modules, and never changes.
1536 # - build_libsubdir is where we find build libraries, and can be overridden.
1537
1538 # Prefix 'build-' so this never conflicts with target_subdir.
1539 build_subdir="build-${build_noncanonical}"
1540
1541 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1542 if test "${with_build_libsubdir+set}" = set; then
1543 withval="$with_build_libsubdir"
1544 build_libsubdir="$withval"
1545 else
1546 build_libsubdir="$build_subdir"
1547 fi;
1548 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1549 if ( test $srcdir = . && test -d gcc ) \
1550 || test -d $srcdir/../host-${host_noncanonical}; then
1551 host_subdir="host-${host_noncanonical}"
1552 else
1553 host_subdir=.
1554 fi
1555 # No prefix.
1556 target_subdir=${target_noncanonical}
1557
1558
1559 # Set program_transform_name
1560 test "$program_prefix" != NONE &&
1561 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1562 # Use a double $ so make ignores it.
1563 test "$program_suffix" != NONE &&
1564 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1565 # Double any \ or $. echo might interpret backslashes.
1566 # By default was `s,x,x', remove it if useless.
1567 cat <<\_ACEOF >conftest.sed
1568 s/[\\$]/&&/g;s/;s,x,x,$//
1569 _ACEOF
1570 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1571 rm conftest.sed
1572
1573
1574 # Check for bogus environment variables.
1575 # Test if LIBRARY_PATH contains the notation for the current directory
1576 # since this would lead to problems installing/building glibc.
1577 # LIBRARY_PATH contains the current directory if one of the following
1578 # is true:
1579 # - one of the terminals (":" and ";") is the first or last sign
1580 # - two terminals occur directly after each other
1581 # - the path contains an element with a dot in it
1582 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1583 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1584 case ${LIBRARY_PATH} in
1585 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1586 library_path_setting="contains current directory"
1587 ;;
1588 *)
1589 library_path_setting="ok"
1590 ;;
1591 esac
1592 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1593 echo "${ECHO_T}$library_path_setting" >&6
1594 if test "$library_path_setting" != "ok"; then
1595 { { echo "$as_me:$LINENO: error:
1596 *** LIBRARY_PATH shouldn't contain the current directory when
1597 *** building gcc. Please change the environment variable
1598 *** and run configure again." >&5
1599 echo "$as_me: error:
1600 *** LIBRARY_PATH shouldn't contain the current directory when
1601 *** building gcc. Please change the environment variable
1602 *** and run configure again." >&2;}
1603 { (exit 1); exit 1; }; }
1604 fi
1605
1606 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1607 # since this would lead to problems installing/building glibc.
1608 # GCC_EXEC_PREFIX contains the current directory if one of the following
1609 # is true:
1610 # - one of the terminals (":" and ";") is the first or last sign
1611 # - two terminals occur directly after each other
1612 # - the path contains an element with a dot in it
1613 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1614 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1615 case ${GCC_EXEC_PREFIX} in
1616 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1617 gcc_exec_prefix_setting="contains current directory"
1618 ;;
1619 *)
1620 gcc_exec_prefix_setting="ok"
1621 ;;
1622 esac
1623 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1624 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1625 if test "$gcc_exec_prefix_setting" != "ok"; then
1626 { { echo "$as_me:$LINENO: error:
1627 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1628 *** building gcc. Please change the environment variable
1629 *** and run configure again." >&5
1630 echo "$as_me: error:
1631 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1632 *** building gcc. Please change the environment variable
1633 *** and run configure again." >&2;}
1634 { (exit 1); exit 1; }; }
1635 fi
1636
1637 # -----------
1638 # Directories
1639 # -----------
1640
1641 # Specify the local prefix
1642 local_prefix=
1643
1644 # Check whether --with-local-prefix or --without-local-prefix was given.
1645 if test "${with_local_prefix+set}" = set; then
1646 withval="$with_local_prefix"
1647 case "${withval}" in
1648 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1649 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1650 { (exit 1); exit 1; }; } ;;
1651 no) ;;
1652 *) local_prefix=$with_local_prefix ;;
1653 esac
1654 fi;
1655
1656 # Default local prefix if it is empty
1657 if test x$local_prefix = x; then
1658 local_prefix=/usr/local
1659 fi
1660
1661 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1662 # passed in by the toplevel make and thus we'd get different behavior
1663 # depending on where we built the sources.
1664 gcc_gxx_include_dir=
1665 # Specify the g++ header file directory
1666
1667 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1668 if test "${with_gxx_include_dir+set}" = set; then
1669 withval="$with_gxx_include_dir"
1670 case "${withval}" in
1671 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1672 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1673 { (exit 1); exit 1; }; } ;;
1674 no) ;;
1675 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1676 esac
1677 fi;
1678
1679 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1680 if test x${gcc_gxx_include_dir} = x; then
1681 if test x${enable_version_specific_runtime_libs} = xyes; then
1682 gcc_gxx_include_dir='${libsubdir}/include/c++'
1683 else
1684 libstdcxx_incdir='include/c++/$(version)'
1685 if test x$host != x$target; then
1686 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1687 fi
1688 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1689 fi
1690 fi
1691
1692
1693 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1694 if test "${with_cpp_install_dir+set}" = set; then
1695 withval="$with_cpp_install_dir"
1696 if test x$withval = xyes; then
1697 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1698 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1699 { (exit 1); exit 1; }; }
1700 elif test x$withval != xno; then
1701 cpp_install_dir=$withval
1702 fi
1703 fi;
1704
1705 # We would like to our source tree to be readonly. However when releases or
1706 # pre-releases are generated, the flex/bison generated files as well as the
1707 # various formats of manuals need to be included along with the rest of the
1708 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1709 # just that.
1710
1711 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1712 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1713 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1714 if test "${enable_generated_files_in_srcdir+set}" = set; then
1715 enableval="$enable_generated_files_in_srcdir"
1716 generated_files_in_srcdir=$enableval
1717 else
1718 generated_files_in_srcdir=no
1719 fi;
1720
1721 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1722 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1723
1724 if test "$generated_files_in_srcdir" = "yes"; then
1725 GENINSRC=''
1726 else
1727 GENINSRC='#'
1728 fi
1729
1730
1731 # -------------------
1732 # Find default linker
1733 # -------------------
1734
1735 # With GNU ld
1736
1737 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1738 if test "${with_gnu_ld+set}" = set; then
1739 withval="$with_gnu_ld"
1740 gnu_ld_flag="$with_gnu_ld"
1741 else
1742 gnu_ld_flag=no
1743 fi;
1744
1745 # With pre-defined ld
1746
1747 # Check whether --with-ld or --without-ld was given.
1748 if test "${with_ld+set}" = set; then
1749 withval="$with_ld"
1750 DEFAULT_LINKER="$with_ld"
1751 fi;
1752 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1753 if test ! -x "$DEFAULT_LINKER"; then
1754 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1755 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1756 { (exit 1); exit 1; }; }
1757 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1758 gnu_ld_flag=yes
1759 fi
1760
1761 cat >>confdefs.h <<_ACEOF
1762 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1763 _ACEOF
1764
1765 fi
1766
1767 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1768 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1769 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1770 if test x"$gnu_ld_flag" = x"no"; then
1771 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1772 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1773 else
1774 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1775 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1776 fi
1777 else
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1780 fi
1781
1782 # With demangler in GNU ld
1783
1784 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1785 if test "${with_demangler_in_ld+set}" = set; then
1786 withval="$with_demangler_in_ld"
1787 demangler_in_ld="$with_demangler_in_ld"
1788 else
1789 demangler_in_ld=no
1790 fi;
1791
1792 # ----------------------
1793 # Find default assembler
1794 # ----------------------
1795
1796 # With GNU as
1797
1798 # Check whether --with-gnu-as or --without-gnu-as was given.
1799 if test "${with_gnu_as+set}" = set; then
1800 withval="$with_gnu_as"
1801 gas_flag="$with_gnu_as"
1802 else
1803 gas_flag=no
1804 fi;
1805
1806
1807 # Check whether --with-as or --without-as was given.
1808 if test "${with_as+set}" = set; then
1809 withval="$with_as"
1810 DEFAULT_ASSEMBLER="$with_as"
1811 fi;
1812 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1813 if test ! -x "$DEFAULT_ASSEMBLER"; then
1814 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1815 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1816 { (exit 1); exit 1; }; }
1817 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1818 gas_flag=yes
1819 fi
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1823 _ACEOF
1824
1825 fi
1826
1827 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1828 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1829 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1830 if test x"$gas_flag" = x"no"; then
1831 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1832 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1833 else
1834 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1835 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1836 fi
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1840 fi
1841
1842 # ---------------
1843 # Find C compiler
1844 # ---------------
1845
1846 # If a non-executable a.out is present (e.g. created by GNU as above even if
1847 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1848 # file, even when creating an executable, so an execution test fails.
1849 # Remove possible default executable files to avoid this.
1850 #
1851 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1852 # Autoconf includes it.
1853 rm -f a.out a.exe b.out
1854
1855 # Find the native compiler
1856 ac_ext=c
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1863 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883 done
1884 done
1885
1886 fi
1887 fi
1888 CC=$ac_cv_prog_CC
1889 if test -n "$CC"; then
1890 echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1896
1897 fi
1898 if test -z "$ac_cv_prog_CC"; then
1899 ac_ct_CC=$CC
1900 # Extract the first word of "gcc", so it can be a program name with args.
1901 set dummy gcc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 if test -n "$ac_ct_CC"; then
1908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_CC="gcc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1920 fi
1921 done
1922 done
1923
1924 fi
1925 fi
1926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1927 if test -n "$ac_ct_CC"; then
1928 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1929 echo "${ECHO_T}$ac_ct_CC" >&6
1930 else
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1933 fi
1934
1935 CC=$ac_ct_CC
1936 else
1937 CC="$ac_cv_prog_CC"
1938 fi
1939
1940 if test -z "$CC"; then
1941 if test -n "$ac_tool_prefix"; then
1942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}cc; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_CC+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 if test -n "$CC"; then
1950 ac_cv_prog_CC="$CC" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959 ac_cv_prog_CC="${ac_tool_prefix}cc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1962 fi
1963 done
1964 done
1965
1966 fi
1967 fi
1968 CC=$ac_cv_prog_CC
1969 if test -n "$CC"; then
1970 echo "$as_me:$LINENO: result: $CC" >&5
1971 echo "${ECHO_T}$CC" >&6
1972 else
1973 echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1975 fi
1976
1977 fi
1978 if test -z "$ac_cv_prog_CC"; then
1979 ac_ct_CC=$CC
1980 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 if test -n "$ac_ct_CC"; then
1988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
1996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997 ac_cv_prog_ac_ct_CC="cc"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 break 2
2000 fi
2001 done
2002 done
2003
2004 fi
2005 fi
2006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2007 if test -n "$ac_ct_CC"; then
2008 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2009 echo "${ECHO_T}$ac_ct_CC" >&6
2010 else
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2013 fi
2014
2015 CC=$ac_ct_CC
2016 else
2017 CC="$ac_cv_prog_CC"
2018 fi
2019
2020 fi
2021 if test -z "$CC"; then
2022 # Extract the first word of "cc", so it can be a program name with args.
2023 set dummy cc; ac_word=$2
2024 echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026 if test "${ac_cv_prog_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029 if test -n "$CC"; then
2030 ac_cv_prog_CC="$CC" # Let the user override the test.
2031 else
2032 ac_prog_rejected=no
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2041 ac_prog_rejected=yes
2042 continue
2043 fi
2044 ac_cv_prog_CC="cc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2047 fi
2048 done
2049 done
2050
2051 if test $ac_prog_rejected = yes; then
2052 # We found a bogon in the path, so make sure we never use it.
2053 set dummy $ac_cv_prog_CC
2054 shift
2055 if test $# != 0; then
2056 # We chose a different compiler from the bogus one.
2057 # However, it has the same basename, so the bogon will be chosen
2058 # first if we set CC to just the basename; use the full file name.
2059 shift
2060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2061 fi
2062 fi
2063 fi
2064 fi
2065 CC=$ac_cv_prog_CC
2066 if test -n "$CC"; then
2067 echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6
2069 else
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2072 fi
2073
2074 fi
2075 if test -z "$CC"; then
2076 if test -n "$ac_tool_prefix"; then
2077 for ac_prog in cl
2078 do
2079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2099 fi
2100 done
2101 done
2102
2103 fi
2104 fi
2105 CC=$ac_cv_prog_CC
2106 if test -n "$CC"; then
2107 echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6
2109 else
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114 test -n "$CC" && break
2115 done
2116 fi
2117 if test -z "$CC"; then
2118 ac_ct_CC=$CC
2119 for ac_prog in cl
2120 do
2121 # Extract the first word of "$ac_prog", so it can be a program name with args.
2122 set dummy $ac_prog; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 if test -n "$ac_ct_CC"; then
2129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_ac_ct_CC="$ac_prog"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2141 fi
2142 done
2143 done
2144
2145 fi
2146 fi
2147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 echo "${ECHO_T}$ac_ct_CC" >&6
2151 else
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2154 fi
2155
2156 test -n "$ac_ct_CC" && break
2157 done
2158
2159 CC=$ac_ct_CC
2160 fi
2161
2162 fi
2163
2164
2165 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: no acceptable C compiler found in \$PATH
2168 See \`config.log' for more details." >&2;}
2169 { (exit 1); exit 1; }; }
2170
2171 # Provide some information about the compiler.
2172 echo "$as_me:$LINENO:" \
2173 "checking for C compiler version" >&5
2174 ac_compiler=`set X $ac_compile; echo $2`
2175 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2176 (eval $ac_compiler --version </dev/null >&5) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }
2180 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2181 (eval $ac_compiler -v </dev/null >&5) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }
2185 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2186 (eval $ac_compiler -V </dev/null >&5) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }
2190
2191 cat >conftest.$ac_ext <<_ACEOF
2192 /* confdefs.h. */
2193 _ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h. */
2197
2198 int
2199 main ()
2200 {
2201
2202 ;
2203 return 0;
2204 }
2205 _ACEOF
2206 ac_clean_files_save=$ac_clean_files
2207 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2208 # Try to create an executable without -o first, disregard a.out.
2209 # It will help us diagnose broken compilers, and finding out an intuition
2210 # of exeext.
2211 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2212 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2213 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2214 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2215 (eval $ac_link_default) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; then
2219 # Find the output, starting from the most likely. This scheme is
2220 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2221 # resort.
2222
2223 # Be careful to initialize this variable, since it used to be cached.
2224 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2225 ac_cv_exeext=
2226 # b.out is created by i960 compilers.
2227 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2228 do
2229 test -f "$ac_file" || continue
2230 case $ac_file in
2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2232 ;;
2233 conftest.$ac_ext )
2234 # This is the source file.
2235 ;;
2236 [ab].out )
2237 # We found the default executable, but exeext='' is most
2238 # certainly right.
2239 break;;
2240 *.* )
2241 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242 # FIXME: I believe we export ac_cv_exeext for Libtool,
2243 # but it would be cool to find out if it's true. Does anybody
2244 # maintain Libtool? --akim.
2245 export ac_cv_exeext
2246 break;;
2247 * )
2248 break;;
2249 esac
2250 done
2251 else
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2254
2255 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: C compiler cannot create executables
2258 See \`config.log' for more details." >&2;}
2259 { (exit 77); exit 77; }; }
2260 fi
2261
2262 ac_exeext=$ac_cv_exeext
2263 echo "$as_me:$LINENO: result: $ac_file" >&5
2264 echo "${ECHO_T}$ac_file" >&6
2265
2266 # Check the compiler produces executables we can run. If not, either
2267 # the compiler is broken, or we cross compile.
2268 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2269 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2270 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2271 # If not cross compiling, check that we can run a simple program.
2272 if test "$cross_compiling" != yes; then
2273 if { ac_try='./$ac_file'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 cross_compiling=no
2280 else
2281 if test "$cross_compiling" = maybe; then
2282 cross_compiling=yes
2283 else
2284 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285 If you meant to cross compile, use \`--host'.
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot run C compiled programs.
2288 If you meant to cross compile, use \`--host'.
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2291 fi
2292 fi
2293 fi
2294 echo "$as_me:$LINENO: result: yes" >&5
2295 echo "${ECHO_T}yes" >&6
2296
2297 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2298 ac_clean_files=$ac_clean_files_save
2299 # Check the compiler produces executables we can run. If not, either
2300 # the compiler is broken, or we cross compile.
2301 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2303 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304 echo "${ECHO_T}$cross_compiling" >&6
2305
2306 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2309 (eval $ac_link) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
2313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2315 # work properly (i.e., refer to `conftest.exe'), while it won't with
2316 # `rm'.
2317 for ac_file in conftest.exe conftest conftest.*; do
2318 test -f "$ac_file" || continue
2319 case $ac_file in
2320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 export ac_cv_exeext
2323 break;;
2324 * ) break;;
2325 esac
2326 done
2327 else
2328 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2331 See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
2333 fi
2334
2335 rm -f conftest$ac_cv_exeext
2336 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2337 echo "${ECHO_T}$ac_cv_exeext" >&6
2338
2339 rm -f conftest.$ac_ext
2340 EXEEXT=$ac_cv_exeext
2341 ac_exeext=$EXEEXT
2342 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2343 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2344 if test "${ac_cv_objext+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347 cat >conftest.$ac_ext <<_ACEOF
2348 /* confdefs.h. */
2349 _ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2353
2354 int
2355 main ()
2356 {
2357
2358 ;
2359 return 0;
2360 }
2361 _ACEOF
2362 rm -f conftest.o conftest.obj
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364 (eval $ac_compile) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; then
2368 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2369 case $ac_file in
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2372 break;;
2373 esac
2374 done
2375 else
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2378
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2384 fi
2385
2386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2387 fi
2388 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6
2390 OBJEXT=$ac_cv_objext
2391 ac_objext=$OBJEXT
2392 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h. */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2403
2404 int
2405 main ()
2406 {
2407 #ifndef __GNUC__
2408 choke me
2409 #endif
2410
2411 ;
2412 return 0;
2413 }
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2418 ac_status=$?
2419 grep -v '^ *+' conftest.er1 >conftest.err
2420 rm -f conftest.er1
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_c_werror_flag"
2425 || test ! -s conftest.err'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2437 ac_compiler_gnu=yes
2438 else
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 ac_compiler_gnu=no
2443 fi
2444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2446
2447 fi
2448 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2450 GCC=`test $ac_compiler_gnu = yes && echo yes`
2451 ac_test_CFLAGS=${CFLAGS+set}
2452 ac_save_CFLAGS=$CFLAGS
2453 CFLAGS="-g"
2454 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2456 if test "${ac_cv_prog_cc_g+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459 cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h. */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2465
2466 int
2467 main ()
2468 {
2469
2470 ;
2471 return 0;
2472 }
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -z "$ac_c_werror_flag"
2484 || test ! -s conftest.err'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 ac_cv_prog_cc_g=yes
2497 else
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2500
2501 ac_cv_prog_cc_g=no
2502 fi
2503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504 fi
2505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2506 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2507 if test "$ac_test_CFLAGS" = set; then
2508 CFLAGS=$ac_save_CFLAGS
2509 elif test $ac_cv_prog_cc_g = yes; then
2510 if test "$GCC" = yes; then
2511 CFLAGS="-g -O2"
2512 else
2513 CFLAGS="-g"
2514 fi
2515 else
2516 if test "$GCC" = yes; then
2517 CFLAGS="-O2"
2518 else
2519 CFLAGS=
2520 fi
2521 fi
2522 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2523 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2524 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 ac_cv_prog_cc_stdc=no
2528 ac_save_CC=$CC
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 #include <stdarg.h>
2536 #include <stdio.h>
2537 #include <sys/types.h>
2538 #include <sys/stat.h>
2539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2540 struct buf { int x; };
2541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2542 static char *e (p, i)
2543 char **p;
2544 int i;
2545 {
2546 return p[i];
2547 }
2548 static char *f (char * (*g) (char **, int), char **p, ...)
2549 {
2550 char *s;
2551 va_list v;
2552 va_start (v,p);
2553 s = g (p, va_arg (v,int));
2554 va_end (v);
2555 return s;
2556 }
2557
2558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2559 function prototypes and stuff, but not '\xHH' hex character constants.
2560 These don't provoke an error unfortunately, instead are silently treated
2561 as 'x'. The following induces an error, until -std1 is added to get
2562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2563 array size at least. It's necessary to write '\x00'==0 to get something
2564 that's true only with -std1. */
2565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2566
2567 int test (int i, double x);
2568 struct s1 {int (*f) (int a);};
2569 struct s2 {int (*f) (double a);};
2570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2571 int argc;
2572 char **argv;
2573 int
2574 main ()
2575 {
2576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2577 ;
2578 return 0;
2579 }
2580 _ACEOF
2581 # Don't try gcc -ansi; that turns off useful extensions and
2582 # breaks some systems' header files.
2583 # AIX -qlanglvl=ansi
2584 # Ultrix and OSF/1 -std1
2585 # HP-UX 10.20 and later -Ae
2586 # HP-UX older versions -Aa -D_HPUX_SOURCE
2587 # SVR4 -Xc -D__EXTENSIONS__
2588 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2589 do
2590 CC="$ac_save_CC $ac_arg"
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>conftest.er1
2594 ac_status=$?
2595 grep -v '^ *+' conftest.er1 >conftest.err
2596 rm -f conftest.er1
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -z "$ac_c_werror_flag"
2601 || test ! -s conftest.err'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 ac_cv_prog_cc_stdc=$ac_arg
2614 break
2615 else
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2618
2619 fi
2620 rm -f conftest.err conftest.$ac_objext
2621 done
2622 rm -f conftest.$ac_ext conftest.$ac_objext
2623 CC=$ac_save_CC
2624
2625 fi
2626
2627 case "x$ac_cv_prog_cc_stdc" in
2628 x|xno)
2629 echo "$as_me:$LINENO: result: none needed" >&5
2630 echo "${ECHO_T}none needed" >&6 ;;
2631 *)
2632 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2633 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2634 CC="$CC $ac_cv_prog_cc_stdc" ;;
2635 esac
2636
2637 # Some people use a C++ compiler to compile C. Since we use `exit',
2638 # in C++ we need to declare it. In case someone uses the same compiler
2639 # for both compiling C and C++ we need to have the C++ compiler decide
2640 # the declaration of exit, since it's the most demanding environment.
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #ifndef __cplusplus
2643 choke me
2644 #endif
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 for ac_declaration in \
2669 '' \
2670 'extern "C" void std::exit (int) throw (); using std::exit;' \
2671 'extern "C" void std::exit (int); using std::exit;' \
2672 'extern "C" void exit (int) throw ();' \
2673 'extern "C" void exit (int);' \
2674 'void exit (int);'
2675 do
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h. */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682 $ac_declaration
2683 #include <stdlib.h>
2684 int
2685 main ()
2686 {
2687 exit (42);
2688 ;
2689 return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2695 ac_status=$?
2696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag"
2702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 :
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 continue
2720 fi
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728 $ac_declaration
2729 int
2730 main ()
2731 {
2732 exit (42);
2733 ;
2734 return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_c_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 break
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764 fi
2765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766 done
2767 rm -f conftest*
2768 if test -n "$ac_declaration"; then
2769 echo '#ifdef __cplusplus' >>confdefs.h
2770 echo $ac_declaration >>confdefs.h
2771 echo '#endif' >>confdefs.h
2772 fi
2773
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2777
2778 fi
2779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_ext=c
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785
2786 if test "x$CC" != xcc; then
2787 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2788 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2789 else
2790 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2791 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2792 fi
2793 set dummy $CC; ac_cc=`echo $2 |
2794 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2795 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804
2805 int
2806 main ()
2807 {
2808
2809 ;
2810 return 0;
2811 }
2812 _ACEOF
2813 # Make sure it works both with $CC and with simple cc.
2814 # We do the test twice because some compilers refuse to overwrite an
2815 # existing .o file with -o, though they will create one.
2816 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2817 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); };
2827 then
2828 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2829 if test "x$CC" != xcc; then
2830 # Test first that cc exists at all.
2831 if { ac_try='cc -c conftest.$ac_ext >&5'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2838 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); };
2848 then
2849 # cc works too.
2850 :
2851 else
2852 # cc exists but doesn't like -o.
2853 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2854 fi
2855 fi
2856 fi
2857 else
2858 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2859 fi
2860 rm -f conftest*
2861
2862 fi
2863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2864 echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6
2866 else
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2869
2870 cat >>confdefs.h <<\_ACEOF
2871 #define NO_MINUS_C_MINUS_O 1
2872 _ACEOF
2873
2874 fi
2875
2876 # expand $ac_aux_dir to an absolute path
2877 am_aux_dir=`cd $ac_aux_dir && pwd`
2878
2879 # FIXME: we rely on the cache variable name because
2880 # there is no other way.
2881 set dummy $CC
2882 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2884 # Losing compiler, so override with the script.
2885 # FIXME: It is wrong to rewrite CC.
2886 # But if we don't then we get into trouble of one sort or another.
2887 # A longer-term fix would be to have automake use am__CC in this case,
2888 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2889 CC="$am_aux_dir/compile $CC"
2890 fi
2891
2892 # autoconf is lame and doesn't give us any substitution variable for this.
2893 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2894 NO_MINUS_C_MINUS_O=yes
2895 else
2896 OUTPUT_OPTION='-o $@'
2897 fi
2898
2899
2900
2901 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2902 # optimizations to be activated explicitly by the toplevel.
2903 case "$CC" in
2904 */prev-gcc/xgcc*) ;;
2905 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2906 esac
2907
2908
2909 # -------------------------
2910 # Check C compiler features
2911 # -------------------------
2912
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2919 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2920 # On Suns, sometimes $CPP names a directory.
2921 if test -n "$CPP" && test -d "$CPP"; then
2922 CPP=
2923 fi
2924 if test -z "$CPP"; then
2925 if test "${ac_cv_prog_CPP+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928 # Double quotes because CPP needs to be expanded
2929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2930 do
2931 ac_preproc_ok=false
2932 for ac_c_preproc_warn_flag in '' yes
2933 do
2934 # Use a header file that comes with gcc, so configuring glibc
2935 # with a fresh cross-compiler works.
2936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937 # <limits.h> exists even on freestanding compilers.
2938 # On the NeXT, cc -E runs the code through the compiler's parser,
2939 # not just through cpp. "Syntax error" is here to catch this case.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #ifdef __STDC__
2947 # include <limits.h>
2948 #else
2949 # include <assert.h>
2950 #endif
2951 Syntax error
2952 _ACEOF
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev/null; then
2961 if test -s conftest.err; then
2962 ac_cpp_err=$ac_c_preproc_warn_flag
2963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2964 else
2965 ac_cpp_err=
2966 fi
2967 else
2968 ac_cpp_err=yes
2969 fi
2970 if test -z "$ac_cpp_err"; then
2971 :
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 # Broken: fails on valid input.
2977 continue
2978 fi
2979 rm -f conftest.err conftest.$ac_ext
2980
2981 # OK, works on sane cases. Now check whether non-existent headers
2982 # can be detected and how.
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <ac_nonexistent.h>
2990 _ACEOF
2991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev/null; then
2999 if test -s conftest.err; then
3000 ac_cpp_err=$ac_c_preproc_warn_flag
3001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3002 else
3003 ac_cpp_err=
3004 fi
3005 else
3006 ac_cpp_err=yes
3007 fi
3008 if test -z "$ac_cpp_err"; then
3009 # Broken: success on invalid input.
3010 continue
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 # Passes both tests.
3016 ac_preproc_ok=:
3017 break
3018 fi
3019 rm -f conftest.err conftest.$ac_ext
3020
3021 done
3022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3023 rm -f conftest.err conftest.$ac_ext
3024 if $ac_preproc_ok; then
3025 break
3026 fi
3027
3028 done
3029 ac_cv_prog_CPP=$CPP
3030
3031 fi
3032 CPP=$ac_cv_prog_CPP
3033 else
3034 ac_cv_prog_CPP=$CPP
3035 fi
3036 echo "$as_me:$LINENO: result: $CPP" >&5
3037 echo "${ECHO_T}$CPP" >&6
3038 ac_preproc_ok=false
3039 for ac_c_preproc_warn_flag in '' yes
3040 do
3041 # Use a header file that comes with gcc, so configuring glibc
3042 # with a fresh cross-compiler works.
3043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3044 # <limits.h> exists even on freestanding compilers.
3045 # On the NeXT, cc -E runs the code through the compiler's parser,
3046 # not just through cpp. "Syntax error" is here to catch this case.
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #ifdef __STDC__
3054 # include <limits.h>
3055 #else
3056 # include <assert.h>
3057 #endif
3058 Syntax error
3059 _ACEOF
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062 ac_status=$?
3063 grep -v '^ *+' conftest.er1 >conftest.err
3064 rm -f conftest.er1
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
3070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071 else
3072 ac_cpp_err=
3073 fi
3074 else
3075 ac_cpp_err=yes
3076 fi
3077 if test -z "$ac_cpp_err"; then
3078 :
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 # Broken: fails on valid input.
3084 continue
3085 fi
3086 rm -f conftest.err conftest.$ac_ext
3087
3088 # OK, works on sane cases. Now check whether non-existent headers
3089 # can be detected and how.
3090 cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h. */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3096 #include <ac_nonexistent.h>
3097 _ACEOF
3098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null; then
3106 if test -s conftest.err; then
3107 ac_cpp_err=$ac_c_preproc_warn_flag
3108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109 else
3110 ac_cpp_err=
3111 fi
3112 else
3113 ac_cpp_err=yes
3114 fi
3115 if test -z "$ac_cpp_err"; then
3116 # Broken: success on invalid input.
3117 continue
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 # Passes both tests.
3123 ac_preproc_ok=:
3124 break
3125 fi
3126 rm -f conftest.err conftest.$ac_ext
3127
3128 done
3129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3130 rm -f conftest.err conftest.$ac_ext
3131 if $ac_preproc_ok; then
3132 :
3133 else
3134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3135 See \`config.log' for more details." >&5
3136 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3137 See \`config.log' for more details." >&2;}
3138 { (exit 1); exit 1; }; }
3139 fi
3140
3141 ac_ext=c
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146
3147
3148 echo "$as_me:$LINENO: checking for inline" >&5
3149 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3150 if test "${ac_cv_c_inline+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 ac_cv_c_inline=no
3154 for ac_kw in inline __inline__ __inline; do
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3161 #ifndef __cplusplus
3162 typedef int foo_t;
3163 static $ac_kw foo_t static_foo () {return 0; }
3164 $ac_kw foo_t foo () {return 0; }
3165 #endif
3166
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -z "$ac_c_werror_flag"
3178 || test ! -s conftest.err'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; } &&
3184 { ac_try='test -s conftest.$ac_objext'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 (eval $ac_try) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_cv_c_inline=$ac_kw; break
3191 else
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195 fi
3196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3197 done
3198
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3201 echo "${ECHO_T}$ac_cv_c_inline" >&6
3202
3203
3204 case $ac_cv_c_inline in
3205 inline | yes) ;;
3206 *)
3207 case $ac_cv_c_inline in
3208 no) ac_val=;;
3209 *) ac_val=$ac_cv_c_inline;;
3210 esac
3211 cat >>confdefs.h <<_ACEOF
3212 #ifndef __cplusplus
3213 #define inline $ac_val
3214 #endif
3215 _ACEOF
3216 ;;
3217 esac
3218
3219
3220 # sizeof(char) is 1 by definition.
3221
3222 echo "$as_me:$LINENO: checking for egrep" >&5
3223 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3224 if test "${ac_cv_prog_egrep+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3228 then ac_cv_prog_egrep='grep -E'
3229 else ac_cv_prog_egrep='egrep'
3230 fi
3231 fi
3232 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3233 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3234 EGREP=$ac_cv_prog_egrep
3235
3236
3237 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3238 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3239 if test "${ac_cv_header_stdc+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242 cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h. */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3248 #include <stdlib.h>
3249 #include <stdarg.h>
3250 #include <string.h>
3251 #include <float.h>
3252
3253 int
3254 main ()
3255 {
3256
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -z "$ac_c_werror_flag"
3271 || test ! -s conftest.err'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3283 ac_cv_header_stdc=yes
3284 else
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 ac_cv_header_stdc=no
3289 fi
3290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3291
3292 if test $ac_cv_header_stdc = yes; then
3293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300 #include <string.h>
3301
3302 _ACEOF
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "memchr" >/dev/null 2>&1; then
3305 :
3306 else
3307 ac_cv_header_stdc=no
3308 fi
3309 rm -f conftest*
3310
3311 fi
3312
3313 if test $ac_cv_header_stdc = yes; then
3314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #include <stdlib.h>
3322
3323 _ACEOF
3324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325 $EGREP "free" >/dev/null 2>&1; then
3326 :
3327 else
3328 ac_cv_header_stdc=no
3329 fi
3330 rm -f conftest*
3331
3332 fi
3333
3334 if test $ac_cv_header_stdc = yes; then
3335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3336 if test "$cross_compiling" = yes; then
3337 :
3338 else
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h. */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 #include <ctype.h>
3346 #if ((' ' & 0x0FF) == 0x020)
3347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3349 #else
3350 # define ISLOWER(c) \
3351 (('a' <= (c) && (c) <= 'i') \
3352 || ('j' <= (c) && (c) <= 'r') \
3353 || ('s' <= (c) && (c) <= 'z'))
3354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3355 #endif
3356
3357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3358 int
3359 main ()
3360 {
3361 int i;
3362 for (i = 0; i < 256; i++)
3363 if (XOR (islower (i), ISLOWER (i))
3364 || toupper (i) != TOUPPER (i))
3365 exit(2);
3366 exit (0);
3367 }
3368 _ACEOF
3369 rm -f conftest$ac_exeext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3371 (eval $ac_link) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 :
3381 else
3382 echo "$as_me: program exited with status $ac_status" >&5
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386 ( exit $ac_status )
3387 ac_cv_header_stdc=no
3388 fi
3389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3390 fi
3391 fi
3392 fi
3393 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3394 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3395 if test $ac_cv_header_stdc = yes; then
3396
3397 cat >>confdefs.h <<\_ACEOF
3398 #define STDC_HEADERS 1
3399 _ACEOF
3400
3401 fi
3402
3403 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3414 inttypes.h stdint.h unistd.h
3415 do
3416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3417 echo "$as_me:$LINENO: checking for $ac_header" >&5
3418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422 cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 $ac_includes_default
3429
3430 #include <$ac_header>
3431 _ACEOF
3432 rm -f conftest.$ac_objext
3433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 eval "$as_ac_Header=yes"
3455 else
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 eval "$as_ac_Header=no"
3460 fi
3461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3462 fi
3463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3466 cat >>confdefs.h <<_ACEOF
3467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3468 _ACEOF
3469
3470 fi
3471
3472 done
3473
3474
3475 echo "$as_me:$LINENO: checking for void *" >&5
3476 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3477 if test "${ac_cv_type_void_p+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 $ac_includes_default
3487 int
3488 main ()
3489 {
3490 if ((void * *) 0)
3491 return 0;
3492 if (sizeof (void *))
3493 return 0;
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 rm -f conftest.$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -z "$ac_c_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 ac_cv_type_void_p=yes
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 ac_cv_type_void_p=no
3526 fi
3527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3528 fi
3529 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3530 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3531
3532 echo "$as_me:$LINENO: checking size of void *" >&5
3533 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3534 if test "${ac_cv_sizeof_void_p+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 if test "$ac_cv_type_void_p" = yes; then
3538 # The cast to unsigned long works around a bug in the HP C Compiler
3539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3541 # This bug is HP SR number 8606223364.
3542 if test "$cross_compiling" = yes; then
3543 # Depending upon the size, compute the lo and hi bounds.
3544 cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h. */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 $ac_includes_default
3551 int
3552 main ()
3553 {
3554 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3555 test_array [0] = 0
3556
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_lo=0 ac_mid=0
3584 while :; do
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591 $ac_includes_default
3592 int
3593 main ()
3594 {
3595 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3596 test_array [0] = 0
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 rm -f conftest.$ac_objext
3603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604 (eval $ac_compile) 2>conftest.er1
3605 ac_status=$?
3606 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_c_werror_flag"
3612 || test ! -s conftest.err'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_hi=$ac_mid; break
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 ac_lo=`expr $ac_mid + 1`
3630 if test $ac_lo -le $ac_mid; then
3631 ac_lo= ac_hi=
3632 break
3633 fi
3634 ac_mid=`expr 2 '*' $ac_mid + 1`
3635 fi
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 done
3638 else
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 $ac_includes_default
3649 int
3650 main ()
3651 {
3652 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3653 test_array [0] = 0
3654
3655 ;
3656 return 0;
3657 }
3658 _ACEOF
3659 rm -f conftest.$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_hi=-1 ac_mid=-1
3682 while :; do
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689 $ac_includes_default
3690 int
3691 main ()
3692 {
3693 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3694 test_array [0] = 0
3695
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 rm -f conftest.$ac_objext
3701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -z "$ac_c_werror_flag"
3710 || test ! -s conftest.err'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 ac_lo=$ac_mid; break
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 ac_hi=`expr '(' $ac_mid ')' - 1`
3728 if test $ac_mid -le $ac_hi; then
3729 ac_lo= ac_hi=
3730 break
3731 fi
3732 ac_mid=`expr 2 '*' $ac_mid`
3733 fi
3734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3735 done
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 ac_lo= ac_hi=
3741 fi
3742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3743 fi
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 # Binary search between lo and hi bounds.
3746 while test "x$ac_lo" != "x$ac_hi"; do
3747 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h. */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 $ac_includes_default
3755 int
3756 main ()
3757 {
3758 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3759 test_array [0] = 0
3760
3761 ;
3762 return 0;
3763 }
3764 _ACEOF
3765 rm -f conftest.$ac_objext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>conftest.er1
3768 ac_status=$?
3769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try='test -z "$ac_c_werror_flag"
3775 || test ! -s conftest.err'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; } &&
3781 { ac_try='test -s conftest.$ac_objext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_hi=$ac_mid
3788 else
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792 ac_lo=`expr '(' $ac_mid ')' + 1`
3793 fi
3794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3795 done
3796 case $ac_lo in
3797 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3798 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3799 See \`config.log' for more details." >&5
3800 echo "$as_me: error: cannot compute sizeof (void *), 77
3801 See \`config.log' for more details." >&2;}
3802 { (exit 1); exit 1; }; } ;;
3803 esac
3804 else
3805 if test "$cross_compiling" = yes; then
3806 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3807 See \`config.log' for more details." >&5
3808 echo "$as_me: error: cannot run test program while cross compiling
3809 See \`config.log' for more details." >&2;}
3810 { (exit 1); exit 1; }; }
3811 else
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 $ac_includes_default
3819 long longval () { return (long) (sizeof (void *)); }
3820 unsigned long ulongval () { return (long) (sizeof (void *)); }
3821 #include <stdio.h>
3822 #include <stdlib.h>
3823 int
3824 main ()
3825 {
3826
3827 FILE *f = fopen ("conftest.val", "w");
3828 if (! f)
3829 exit (1);
3830 if (((long) (sizeof (void *))) < 0)
3831 {
3832 long i = longval ();
3833 if (i != ((long) (sizeof (void *))))
3834 exit (1);
3835 fprintf (f, "%ld\n", i);
3836 }
3837 else
3838 {
3839 unsigned long i = ulongval ();
3840 if (i != ((long) (sizeof (void *))))
3841 exit (1);
3842 fprintf (f, "%lu\n", i);
3843 }
3844 exit (ferror (f) || fclose (f) != 0);
3845
3846 ;
3847 return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest$ac_exeext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852 (eval $ac_link) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3861 ac_cv_sizeof_void_p=`cat conftest.val`
3862 else
3863 echo "$as_me: program exited with status $ac_status" >&5
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3866
3867 ( exit $ac_status )
3868 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3869 See \`config.log' for more details." >&5
3870 echo "$as_me: error: cannot compute sizeof (void *), 77
3871 See \`config.log' for more details." >&2;}
3872 { (exit 1); exit 1; }; }
3873 fi
3874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3875 fi
3876 fi
3877 rm -f conftest.val
3878 else
3879 ac_cv_sizeof_void_p=0
3880 fi
3881 fi
3882 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3883 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3884 cat >>confdefs.h <<_ACEOF
3885 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3886 _ACEOF
3887
3888
3889 echo "$as_me:$LINENO: checking for short" >&5
3890 echo $ECHO_N "checking for short... $ECHO_C" >&6
3891 if test "${ac_cv_type_short+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h. */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 $ac_includes_default
3901 int
3902 main ()
3903 {
3904 if ((short *) 0)
3905 return 0;
3906 if (sizeof (short))
3907 return 0;
3908 ;
3909 return 0;
3910 }
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_type_short=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 ac_cv_type_short=no
3940 fi
3941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3942 fi
3943 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3944 echo "${ECHO_T}$ac_cv_type_short" >&6
3945
3946 echo "$as_me:$LINENO: checking size of short" >&5
3947 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3948 if test "${ac_cv_sizeof_short+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951 if test "$ac_cv_type_short" = yes; then
3952 # The cast to unsigned long works around a bug in the HP C Compiler
3953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3955 # This bug is HP SR number 8606223364.
3956 if test "$cross_compiling" = yes; then
3957 # Depending upon the size, compute the lo and hi bounds.
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 $ac_includes_default
3965 int
3966 main ()
3967 {
3968 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3969 test_array [0] = 0
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag"
3985 || test ! -s conftest.err'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; } &&
3991 { ac_try='test -s conftest.$ac_objext'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 ac_lo=0 ac_mid=0
3998 while :; do
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 $ac_includes_default
4006 int
4007 main ()
4008 {
4009 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4010 test_array [0] = 0
4011
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_c_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_hi=$ac_mid; break
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043 ac_lo=`expr $ac_mid + 1`
4044 if test $ac_lo -le $ac_mid; then
4045 ac_lo= ac_hi=
4046 break
4047 fi
4048 ac_mid=`expr 2 '*' $ac_mid + 1`
4049 fi
4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051 done
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4055
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 $ac_includes_default
4063 int
4064 main ()
4065 {
4066 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4067 test_array [0] = 0
4068
4069 ;
4070 return 0;
4071 }
4072 _ACEOF
4073 rm -f conftest.$ac_objext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag"
4083 || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_hi=-1 ac_mid=-1
4096 while :; do
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 $ac_includes_default
4104 int
4105 main ()
4106 {
4107 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4108 test_array [0] = 0
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_c_werror_flag"
4124 || test ! -s conftest.err'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 (eval $ac_try) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try='test -s conftest.$ac_objext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 ac_lo=$ac_mid; break
4137 else
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4140
4141 ac_hi=`expr '(' $ac_mid ')' - 1`
4142 if test $ac_mid -le $ac_hi; then
4143 ac_lo= ac_hi=
4144 break
4145 fi
4146 ac_mid=`expr 2 '*' $ac_mid`
4147 fi
4148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4149 done
4150 else
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154 ac_lo= ac_hi=
4155 fi
4156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4157 fi
4158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159 # Binary search between lo and hi bounds.
4160 while test "x$ac_lo" != "x$ac_hi"; do
4161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 $ac_includes_default
4169 int
4170 main ()
4171 {
4172 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4173 test_array [0] = 0
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 (eval $ac_try) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_hi=$ac_mid
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 ac_lo=`expr '(' $ac_mid ')' + 1`
4207 fi
4208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209 done
4210 case $ac_lo in
4211 ?*) ac_cv_sizeof_short=$ac_lo;;
4212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4213 See \`config.log' for more details." >&5
4214 echo "$as_me: error: cannot compute sizeof (short), 77
4215 See \`config.log' for more details." >&2;}
4216 { (exit 1); exit 1; }; } ;;
4217 esac
4218 else
4219 if test "$cross_compiling" = yes; then
4220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4221 See \`config.log' for more details." >&5
4222 echo "$as_me: error: cannot run test program while cross compiling
4223 See \`config.log' for more details." >&2;}
4224 { (exit 1); exit 1; }; }
4225 else
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4233 long longval () { return (long) (sizeof (short)); }
4234 unsigned long ulongval () { return (long) (sizeof (short)); }
4235 #include <stdio.h>
4236 #include <stdlib.h>
4237 int
4238 main ()
4239 {
4240
4241 FILE *f = fopen ("conftest.val", "w");
4242 if (! f)
4243 exit (1);
4244 if (((long) (sizeof (short))) < 0)
4245 {
4246 long i = longval ();
4247 if (i != ((long) (sizeof (short))))
4248 exit (1);
4249 fprintf (f, "%ld\n", i);
4250 }
4251 else
4252 {
4253 unsigned long i = ulongval ();
4254 if (i != ((long) (sizeof (short))))
4255 exit (1);
4256 fprintf (f, "%lu\n", i);
4257 }
4258 exit (ferror (f) || fclose (f) != 0);
4259
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 rm -f conftest$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_sizeof_short=`cat conftest.val`
4276 else
4277 echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 ( exit $ac_status )
4282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4283 See \`config.log' for more details." >&5
4284 echo "$as_me: error: cannot compute sizeof (short), 77
4285 See \`config.log' for more details." >&2;}
4286 { (exit 1); exit 1; }; }
4287 fi
4288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4289 fi
4290 fi
4291 rm -f conftest.val
4292 else
4293 ac_cv_sizeof_short=0
4294 fi
4295 fi
4296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4297 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4298 cat >>confdefs.h <<_ACEOF
4299 #define SIZEOF_SHORT $ac_cv_sizeof_short
4300 _ACEOF
4301
4302
4303 echo "$as_me:$LINENO: checking for int" >&5
4304 echo $ECHO_N "checking for int... $ECHO_C" >&6
4305 if test "${ac_cv_type_int+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h. */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 $ac_includes_default
4315 int
4316 main ()
4317 {
4318 if ((int *) 0)
4319 return 0;
4320 if (sizeof (int))
4321 return 0;
4322 ;
4323 return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_type_int=yes
4349 else
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 ac_cv_type_int=no
4354 fi
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4356 fi
4357 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4358 echo "${ECHO_T}$ac_cv_type_int" >&6
4359
4360 echo "$as_me:$LINENO: checking size of int" >&5
4361 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4362 if test "${ac_cv_sizeof_int+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 if test "$ac_cv_type_int" = yes; then
4366 # The cast to unsigned long works around a bug in the HP C Compiler
4367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4369 # This bug is HP SR number 8606223364.
4370 if test "$cross_compiling" = yes; then
4371 # Depending upon the size, compute the lo and hi bounds.
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h. */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4379 int
4380 main ()
4381 {
4382 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4383 test_array [0] = 0
4384
4385 ;
4386 return 0;
4387 }
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } &&
4398 { ac_try='test -z "$ac_c_werror_flag"
4399 || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 (eval $ac_try) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try='test -s conftest.$ac_objext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 (eval $ac_try) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 ac_lo=0 ac_mid=0
4412 while :; do
4413 cat >conftest.$ac_ext <<_ACEOF
4414 /* confdefs.h. */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 $ac_includes_default
4420 int
4421 main ()
4422 {
4423 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4424 test_array [0] = 0
4425
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_hi=$ac_mid; break
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4456
4457 ac_lo=`expr $ac_mid + 1`
4458 if test $ac_lo -le $ac_mid; then
4459 ac_lo= ac_hi=
4460 break
4461 fi
4462 ac_mid=`expr 2 '*' $ac_mid + 1`
4463 fi
4464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4465 done
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470 cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h. */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 $ac_includes_default
4477 int
4478 main ()
4479 {
4480 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4481 test_array [0] = 0
4482
4483 ;
4484 return 0;
4485 }
4486 _ACEOF
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -z "$ac_c_werror_flag"
4497 || test ! -s conftest.err'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try='test -s conftest.$ac_objext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 (eval $ac_try) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 ac_hi=-1 ac_mid=-1
4510 while :; do
4511 cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h. */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 $ac_includes_default
4518 int
4519 main ()
4520 {
4521 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4522 test_array [0] = 0
4523
4524 ;
4525 return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -z "$ac_c_werror_flag"
4538 || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_lo=$ac_mid; break
4551 else
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 ac_hi=`expr '(' $ac_mid ')' - 1`
4556 if test $ac_mid -le $ac_hi; then
4557 ac_lo= ac_hi=
4558 break
4559 fi
4560 ac_mid=`expr 2 '*' $ac_mid`
4561 fi
4562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4563 done
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568 ac_lo= ac_hi=
4569 fi
4570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4571 fi
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573 # Binary search between lo and hi bounds.
4574 while test "x$ac_lo" != "x$ac_hi"; do
4575 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 $ac_includes_default
4583 int
4584 main ()
4585 {
4586 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4587 test_array [0] = 0
4588
4589 ;
4590 return 0;
4591 }
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_c_werror_flag"
4603 || test ! -s conftest.err'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_hi=$ac_mid
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 ac_lo=`expr '(' $ac_mid ')' + 1`
4621 fi
4622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4623 done
4624 case $ac_lo in
4625 ?*) ac_cv_sizeof_int=$ac_lo;;
4626 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot compute sizeof (int), 77
4629 See \`config.log' for more details." >&2;}
4630 { (exit 1); exit 1; }; } ;;
4631 esac
4632 else
4633 if test "$cross_compiling" = yes; then
4634 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4635 See \`config.log' for more details." >&5
4636 echo "$as_me: error: cannot run test program while cross compiling
4637 See \`config.log' for more details." >&2;}
4638 { (exit 1); exit 1; }; }
4639 else
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 $ac_includes_default
4647 long longval () { return (long) (sizeof (int)); }
4648 unsigned long ulongval () { return (long) (sizeof (int)); }
4649 #include <stdio.h>
4650 #include <stdlib.h>
4651 int
4652 main ()
4653 {
4654
4655 FILE *f = fopen ("conftest.val", "w");
4656 if (! f)
4657 exit (1);
4658 if (((long) (sizeof (int))) < 0)
4659 {
4660 long i = longval ();
4661 if (i != ((long) (sizeof (int))))
4662 exit (1);
4663 fprintf (f, "%ld\n", i);
4664 }
4665 else
4666 {
4667 unsigned long i = ulongval ();
4668 if (i != ((long) (sizeof (int))))
4669 exit (1);
4670 fprintf (f, "%lu\n", i);
4671 }
4672 exit (ferror (f) || fclose (f) != 0);
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest$ac_exeext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_cv_sizeof_int=`cat conftest.val`
4690 else
4691 echo "$as_me: program exited with status $ac_status" >&5
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 ( exit $ac_status )
4696 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4697 See \`config.log' for more details." >&5
4698 echo "$as_me: error: cannot compute sizeof (int), 77
4699 See \`config.log' for more details." >&2;}
4700 { (exit 1); exit 1; }; }
4701 fi
4702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4703 fi
4704 fi
4705 rm -f conftest.val
4706 else
4707 ac_cv_sizeof_int=0
4708 fi
4709 fi
4710 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4711 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4712 cat >>confdefs.h <<_ACEOF
4713 #define SIZEOF_INT $ac_cv_sizeof_int
4714 _ACEOF
4715
4716
4717 echo "$as_me:$LINENO: checking for long" >&5
4718 echo $ECHO_N "checking for long... $ECHO_C" >&6
4719 if test "${ac_cv_type_long+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4729 int
4730 main ()
4731 {
4732 if ((long *) 0)
4733 return 0;
4734 if (sizeof (long))
4735 return 0;
4736 ;
4737 return 0;
4738 }
4739 _ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_c_werror_flag"
4750 || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_cv_type_long=yes
4763 else
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 ac_cv_type_long=no
4768 fi
4769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770 fi
4771 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4772 echo "${ECHO_T}$ac_cv_type_long" >&6
4773
4774 echo "$as_me:$LINENO: checking size of long" >&5
4775 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4776 if test "${ac_cv_sizeof_long+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 if test "$ac_cv_type_long" = yes; then
4780 # The cast to unsigned long works around a bug in the HP C Compiler
4781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4783 # This bug is HP SR number 8606223364.
4784 if test "$cross_compiling" = yes; then
4785 # Depending upon the size, compute the lo and hi bounds.
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4793 int
4794 main ()
4795 {
4796 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4797 test_array [0] = 0
4798
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 ac_lo=0 ac_mid=0
4826 while :; do
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 $ac_includes_default
4834 int
4835 main ()
4836 {
4837 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4838 test_array [0] = 0
4839
4840 ;
4841 return 0;
4842 }
4843 _ACEOF
4844 rm -f conftest.$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_hi=$ac_mid; break
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 ac_lo=`expr $ac_mid + 1`
4872 if test $ac_lo -le $ac_mid; then
4873 ac_lo= ac_hi=
4874 break
4875 fi
4876 ac_mid=`expr 2 '*' $ac_mid + 1`
4877 fi
4878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4879 done
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 $ac_includes_default
4891 int
4892 main ()
4893 {
4894 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4895 test_array [0] = 0
4896
4897 ;
4898 return 0;
4899 }
4900 _ACEOF
4901 rm -f conftest.$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try='test -z "$ac_c_werror_flag"
4911 || test ! -s conftest.err'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; } &&
4917 { ac_try='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_hi=-1 ac_mid=-1
4924 while :; do
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 $ac_includes_default
4932 int
4933 main ()
4934 {
4935 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4936 test_array [0] = 0
4937
4938 ;
4939 return 0;
4940 }
4941 _ACEOF
4942 rm -f conftest.$ac_objext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4944 (eval $ac_compile) 2>conftest.er1
4945 ac_status=$?
4946 grep -v '^ *+' conftest.er1 >conftest.err
4947 rm -f conftest.er1
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try='test -z "$ac_c_werror_flag"
4952 || test ! -s conftest.err'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; } &&
4958 { ac_try='test -s conftest.$ac_objext'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 ac_lo=$ac_mid; break
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969 ac_hi=`expr '(' $ac_mid ')' - 1`
4970 if test $ac_mid -le $ac_hi; then
4971 ac_lo= ac_hi=
4972 break
4973 fi
4974 ac_mid=`expr 2 '*' $ac_mid`
4975 fi
4976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4977 done
4978 else
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4981
4982 ac_lo= ac_hi=
4983 fi
4984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4985 fi
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4987 # Binary search between lo and hi bounds.
4988 while test "x$ac_lo" != "x$ac_hi"; do
4989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 $ac_includes_default
4997 int
4998 main ()
4999 {
5000 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5001 test_array [0] = 0
5002
5003 ;
5004 return 0;
5005 }
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_hi=$ac_mid
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5033
5034 ac_lo=`expr '(' $ac_mid ')' + 1`
5035 fi
5036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5037 done
5038 case $ac_lo in
5039 ?*) ac_cv_sizeof_long=$ac_lo;;
5040 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5041 See \`config.log' for more details." >&5
5042 echo "$as_me: error: cannot compute sizeof (long), 77
5043 See \`config.log' for more details." >&2;}
5044 { (exit 1); exit 1; }; } ;;
5045 esac
5046 else
5047 if test "$cross_compiling" = yes; then
5048 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5049 See \`config.log' for more details." >&5
5050 echo "$as_me: error: cannot run test program while cross compiling
5051 See \`config.log' for more details." >&2;}
5052 { (exit 1); exit 1; }; }
5053 else
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 $ac_includes_default
5061 long longval () { return (long) (sizeof (long)); }
5062 unsigned long ulongval () { return (long) (sizeof (long)); }
5063 #include <stdio.h>
5064 #include <stdlib.h>
5065 int
5066 main ()
5067 {
5068
5069 FILE *f = fopen ("conftest.val", "w");
5070 if (! f)
5071 exit (1);
5072 if (((long) (sizeof (long))) < 0)
5073 {
5074 long i = longval ();
5075 if (i != ((long) (sizeof (long))))
5076 exit (1);
5077 fprintf (f, "%ld\n", i);
5078 }
5079 else
5080 {
5081 unsigned long i = ulongval ();
5082 if (i != ((long) (sizeof (long))))
5083 exit (1);
5084 fprintf (f, "%lu\n", i);
5085 }
5086 exit (ferror (f) || fclose (f) != 0);
5087
5088 ;
5089 return 0;
5090 }
5091 _ACEOF
5092 rm -f conftest$ac_exeext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 ac_cv_sizeof_long=`cat conftest.val`
5104 else
5105 echo "$as_me: program exited with status $ac_status" >&5
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5108
5109 ( exit $ac_status )
5110 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot compute sizeof (long), 77
5113 See \`config.log' for more details." >&2;}
5114 { (exit 1); exit 1; }; }
5115 fi
5116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5117 fi
5118 fi
5119 rm -f conftest.val
5120 else
5121 ac_cv_sizeof_long=0
5122 fi
5123 fi
5124 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5125 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5126 cat >>confdefs.h <<_ACEOF
5127 #define SIZEOF_LONG $ac_cv_sizeof_long
5128 _ACEOF
5129
5130
5131 echo "$as_me:$LINENO: checking for long long" >&5
5132 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5133 if test "${ac_cv_type_long_long+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h. */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 $ac_includes_default
5143 int
5144 main ()
5145 {
5146 if ((long long *) 0)
5147 return 0;
5148 if (sizeof (long long))
5149 return 0;
5150 ;
5151 return 0;
5152 }
5153 _ACEOF
5154 rm -f conftest.$ac_objext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5156 (eval $ac_compile) 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -z "$ac_c_werror_flag"
5164 || test ! -s conftest.err'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; } &&
5170 { ac_try='test -s conftest.$ac_objext'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 (eval $ac_try) 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; }; then
5176 ac_cv_type_long_long=yes
5177 else
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5180
5181 ac_cv_type_long_long=no
5182 fi
5183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5184 fi
5185 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5186 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5187 if test $ac_cv_type_long_long = yes; then
5188
5189 cat >>confdefs.h <<_ACEOF
5190 #define HAVE_LONG_LONG 1
5191 _ACEOF
5192
5193 echo "$as_me:$LINENO: checking for long long" >&5
5194 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5195 if test "${ac_cv_type_long_long+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h. */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 $ac_includes_default
5205 int
5206 main ()
5207 {
5208 if ((long long *) 0)
5209 return 0;
5210 if (sizeof (long long))
5211 return 0;
5212 ;
5213 return 0;
5214 }
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -z "$ac_c_werror_flag"
5226 || test ! -s conftest.err'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 (eval $ac_try) 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try='test -s conftest.$ac_objext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 (eval $ac_try) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 ac_cv_type_long_long=yes
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5242
5243 ac_cv_type_long_long=no
5244 fi
5245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5246 fi
5247 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5248 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5249
5250 echo "$as_me:$LINENO: checking size of long long" >&5
5251 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5252 if test "${ac_cv_sizeof_long_long+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 if test "$ac_cv_type_long_long" = yes; then
5256 # The cast to unsigned long works around a bug in the HP C Compiler
5257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5259 # This bug is HP SR number 8606223364.
5260 if test "$cross_compiling" = yes; then
5261 # Depending upon the size, compute the lo and hi bounds.
5262 cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5269 int
5270 main ()
5271 {
5272 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5273 test_array [0] = 0
5274
5275 ;
5276 return 0;
5277 }
5278 _ACEOF
5279 rm -f conftest.$ac_objext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>conftest.er1
5282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try='test -z "$ac_c_werror_flag"
5289 || test ! -s conftest.err'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; } &&
5295 { ac_try='test -s conftest.$ac_objext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 ac_lo=0 ac_mid=0
5302 while :; do
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h. */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309 $ac_includes_default
5310 int
5311 main ()
5312 {
5313 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5314 test_array [0] = 0
5315
5316 ;
5317 return 0;
5318 }
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -z "$ac_c_werror_flag"
5330 || test ! -s conftest.err'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 (eval $ac_try) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; } &&
5336 { ac_try='test -s conftest.$ac_objext'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 (eval $ac_try) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; }; then
5342 ac_hi=$ac_mid; break
5343 else
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5346
5347 ac_lo=`expr $ac_mid + 1`
5348 if test $ac_lo -le $ac_mid; then
5349 ac_lo= ac_hi=
5350 break
5351 fi
5352 ac_mid=`expr 2 '*' $ac_mid + 1`
5353 fi
5354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5355 done
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 $ac_includes_default
5367 int
5368 main ()
5369 {
5370 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5371 test_array [0] = 0
5372
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379 (eval $ac_compile) 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try='test -z "$ac_c_werror_flag"
5387 || test ! -s conftest.err'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 (eval $ac_try) 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_hi=-1 ac_mid=-1
5400 while :; do
5401 cat >conftest.$ac_ext <<_ACEOF
5402 /* confdefs.h. */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 $ac_includes_default
5408 int
5409 main ()
5410 {
5411 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5412 test_array [0] = 0
5413
5414 ;
5415 return 0;
5416 }
5417 _ACEOF
5418 rm -f conftest.$ac_objext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -z "$ac_c_werror_flag"
5428 || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 ac_lo=$ac_mid; break
5441 else
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445 ac_hi=`expr '(' $ac_mid ')' - 1`
5446 if test $ac_mid -le $ac_hi; then
5447 ac_lo= ac_hi=
5448 break
5449 fi
5450 ac_mid=`expr 2 '*' $ac_mid`
5451 fi
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453 done
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_lo= ac_hi=
5459 fi
5460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5461 fi
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463 # Binary search between lo and hi bounds.
5464 while test "x$ac_lo" != "x$ac_hi"; do
5465 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 $ac_includes_default
5473 int
5474 main ()
5475 {
5476 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5477 test_array [0] = 0
5478
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -z "$ac_c_werror_flag"
5493 || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 (eval $ac_try) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest.$ac_objext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_hi=$ac_mid
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510 ac_lo=`expr '(' $ac_mid ')' + 1`
5511 fi
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5513 done
5514 case $ac_lo in
5515 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5516 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5517 See \`config.log' for more details." >&5
5518 echo "$as_me: error: cannot compute sizeof (long long), 77
5519 See \`config.log' for more details." >&2;}
5520 { (exit 1); exit 1; }; } ;;
5521 esac
5522 else
5523 if test "$cross_compiling" = yes; then
5524 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5525 See \`config.log' for more details." >&5
5526 echo "$as_me: error: cannot run test program while cross compiling
5527 See \`config.log' for more details." >&2;}
5528 { (exit 1); exit 1; }; }
5529 else
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 $ac_includes_default
5537 long longval () { return (long) (sizeof (long long)); }
5538 unsigned long ulongval () { return (long) (sizeof (long long)); }
5539 #include <stdio.h>
5540 #include <stdlib.h>
5541 int
5542 main ()
5543 {
5544
5545 FILE *f = fopen ("conftest.val", "w");
5546 if (! f)
5547 exit (1);
5548 if (((long) (sizeof (long long))) < 0)
5549 {
5550 long i = longval ();
5551 if (i != ((long) (sizeof (long long))))
5552 exit (1);
5553 fprintf (f, "%ld\n", i);
5554 }
5555 else
5556 {
5557 unsigned long i = ulongval ();
5558 if (i != ((long) (sizeof (long long))))
5559 exit (1);
5560 fprintf (f, "%lu\n", i);
5561 }
5562 exit (ferror (f) || fclose (f) != 0);
5563
5564 ;
5565 return 0;
5566 }
5567 _ACEOF
5568 rm -f conftest$ac_exeext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570 (eval $ac_link) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_cv_sizeof_long_long=`cat conftest.val`
5580 else
5581 echo "$as_me: program exited with status $ac_status" >&5
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5584
5585 ( exit $ac_status )
5586 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5587 See \`config.log' for more details." >&5
5588 echo "$as_me: error: cannot compute sizeof (long long), 77
5589 See \`config.log' for more details." >&2;}
5590 { (exit 1); exit 1; }; }
5591 fi
5592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5593 fi
5594 fi
5595 rm -f conftest.val
5596 else
5597 ac_cv_sizeof_long_long=0
5598 fi
5599 fi
5600 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5601 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5602 cat >>confdefs.h <<_ACEOF
5603 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5604 _ACEOF
5605
5606
5607 fi
5608
5609 echo "$as_me:$LINENO: checking for __int64" >&5
5610 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5611 if test "${ac_cv_type___int64+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h. */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5621 int
5622 main ()
5623 {
5624 if ((__int64 *) 0)
5625 return 0;
5626 if (sizeof (__int64))
5627 return 0;
5628 ;
5629 return 0;
5630 }
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_c_werror_flag"
5642 || test ! -s conftest.err'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; } &&
5648 { ac_try='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_type___int64=yes
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5658
5659 ac_cv_type___int64=no
5660 fi
5661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5662 fi
5663 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5664 echo "${ECHO_T}$ac_cv_type___int64" >&6
5665 if test $ac_cv_type___int64 = yes; then
5666
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE___INT64 1
5669 _ACEOF
5670
5671 echo "$as_me:$LINENO: checking for __int64" >&5
5672 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5673 if test "${ac_cv_type___int64+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676 cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h. */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 $ac_includes_default
5683 int
5684 main ()
5685 {
5686 if ((__int64 *) 0)
5687 return 0;
5688 if (sizeof (__int64))
5689 return 0;
5690 ;
5691 return 0;
5692 }
5693 _ACEOF
5694 rm -f conftest.$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -z "$ac_c_werror_flag"
5704 || test ! -s conftest.err'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 (eval $ac_try) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; } &&
5710 { ac_try='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 (eval $ac_try) 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_cv_type___int64=yes
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5720
5721 ac_cv_type___int64=no
5722 fi
5723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5724 fi
5725 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5726 echo "${ECHO_T}$ac_cv_type___int64" >&6
5727
5728 echo "$as_me:$LINENO: checking size of __int64" >&5
5729 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5730 if test "${ac_cv_sizeof___int64+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 if test "$ac_cv_type___int64" = yes; then
5734 # The cast to unsigned long works around a bug in the HP C Compiler
5735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5737 # This bug is HP SR number 8606223364.
5738 if test "$cross_compiling" = yes; then
5739 # Depending upon the size, compute the lo and hi bounds.
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 $ac_includes_default
5747 int
5748 main ()
5749 {
5750 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5751 test_array [0] = 0
5752
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_lo=0 ac_mid=0
5780 while :; do
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 $ac_includes_default
5788 int
5789 main ()
5790 {
5791 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5792 test_array [0] = 0
5793
5794 ;
5795 return 0;
5796 }
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800 (eval $ac_compile) 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -z "$ac_c_werror_flag"
5808 || test ! -s conftest.err'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_hi=$ac_mid; break
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5824
5825 ac_lo=`expr $ac_mid + 1`
5826 if test $ac_lo -le $ac_mid; then
5827 ac_lo= ac_hi=
5828 break
5829 fi
5830 ac_mid=`expr 2 '*' $ac_mid + 1`
5831 fi
5832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5833 done
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 $ac_includes_default
5845 int
5846 main ()
5847 {
5848 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5849 test_array [0] = 0
5850
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_hi=-1 ac_mid=-1
5878 while :; do
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 $ac_includes_default
5886 int
5887 main ()
5888 {
5889 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5890 test_array [0] = 0
5891
5892 ;
5893 return 0;
5894 }
5895 _ACEOF
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 (eval $ac_try) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_lo=$ac_mid; break
5919 else
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 ac_hi=`expr '(' $ac_mid ')' - 1`
5924 if test $ac_mid -le $ac_hi; then
5925 ac_lo= ac_hi=
5926 break
5927 fi
5928 ac_mid=`expr 2 '*' $ac_mid`
5929 fi
5930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5931 done
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936 ac_lo= ac_hi=
5937 fi
5938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5939 fi
5940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941 # Binary search between lo and hi bounds.
5942 while test "x$ac_lo" != "x$ac_hi"; do
5943 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 $ac_includes_default
5951 int
5952 main ()
5953 {
5954 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5955 test_array [0] = 0
5956
5957 ;
5958 return 0;
5959 }
5960 _ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>conftest.er1
5964 ac_status=$?
5965 grep -v '^ *+' conftest.er1 >conftest.err
5966 rm -f conftest.er1
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } &&
5970 { ac_try='test -z "$ac_c_werror_flag"
5971 || test ! -s conftest.err'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 (eval $ac_try) 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_hi=$ac_mid
5984 else
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988 ac_lo=`expr '(' $ac_mid ')' + 1`
5989 fi
5990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5991 done
5992 case $ac_lo in
5993 ?*) ac_cv_sizeof___int64=$ac_lo;;
5994 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5995 See \`config.log' for more details." >&5
5996 echo "$as_me: error: cannot compute sizeof (__int64), 77
5997 See \`config.log' for more details." >&2;}
5998 { (exit 1); exit 1; }; } ;;
5999 esac
6000 else
6001 if test "$cross_compiling" = yes; then
6002 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6003 See \`config.log' for more details." >&5
6004 echo "$as_me: error: cannot run test program while cross compiling
6005 See \`config.log' for more details." >&2;}
6006 { (exit 1); exit 1; }; }
6007 else
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 $ac_includes_default
6015 long longval () { return (long) (sizeof (__int64)); }
6016 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6017 #include <stdio.h>
6018 #include <stdlib.h>
6019 int
6020 main ()
6021 {
6022
6023 FILE *f = fopen ("conftest.val", "w");
6024 if (! f)
6025 exit (1);
6026 if (((long) (sizeof (__int64))) < 0)
6027 {
6028 long i = longval ();
6029 if (i != ((long) (sizeof (__int64))))
6030 exit (1);
6031 fprintf (f, "%ld\n", i);
6032 }
6033 else
6034 {
6035 unsigned long i = ulongval ();
6036 if (i != ((long) (sizeof (__int64))))
6037 exit (1);
6038 fprintf (f, "%lu\n", i);
6039 }
6040 exit (ferror (f) || fclose (f) != 0);
6041
6042 ;
6043 return 0;
6044 }
6045 _ACEOF
6046 rm -f conftest$ac_exeext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6048 (eval $ac_link) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_sizeof___int64=`cat conftest.val`
6058 else
6059 echo "$as_me: program exited with status $ac_status" >&5
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063 ( exit $ac_status )
6064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6065 See \`config.log' for more details." >&5
6066 echo "$as_me: error: cannot compute sizeof (__int64), 77
6067 See \`config.log' for more details." >&2;}
6068 { (exit 1); exit 1; }; }
6069 fi
6070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6071 fi
6072 fi
6073 rm -f conftest.val
6074 else
6075 ac_cv_sizeof___int64=0
6076 fi
6077 fi
6078 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6079 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6080 cat >>confdefs.h <<_ACEOF
6081 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6082 _ACEOF
6083
6084
6085 fi
6086
6087
6088 # ---------------------
6089 # Warnings and checking
6090 # ---------------------
6091
6092 # Check $CC warning features (if it's GCC).
6093 # We want to use -pedantic, but we don't want warnings about
6094 # * 'long long'
6095 # * variadic macros
6096 # * overlong strings
6097 # So, we only use -pedantic if we can disable those warnings.
6098
6099 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6100 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6101 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 save_CFLAGS="$CFLAGS"
6105 CFLAGS="-Wno-long-long"
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag"
6124 || test ! -s conftest.err'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest.$ac_objext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_prog_cc_w_no_long_long=yes
6137 else
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141 ac_cv_prog_cc_w_no_long_long=no
6142 fi
6143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6144 CFLAGS="$save_CFLAGS"
6145
6146 fi
6147 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6148 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6149
6150 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6151 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6152 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 save_CFLAGS="$CFLAGS"
6156 CFLAGS="-Wno-variadic-macros"
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -z "$ac_c_werror_flag"
6175 || test ! -s conftest.err'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try='test -s conftest.$ac_objext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_prog_cc_w_no_variadic_macros=yes
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 ac_cv_prog_cc_w_no_variadic_macros=no
6193 fi
6194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6195 CFLAGS="$save_CFLAGS"
6196
6197 fi
6198 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6199 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6200
6201 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6202 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6203 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 save_CFLAGS="$CFLAGS"
6207 CFLAGS="-Wno-overlength-strings"
6208 cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h. */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>conftest.er1
6219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 (eval $ac_try) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_prog_cc_w_no_overlength_strings=yes
6239 else
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243 ac_cv_prog_cc_w_no_overlength_strings=no
6244 fi
6245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6246 CFLAGS="$save_CFLAGS"
6247
6248 fi
6249 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6250 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6251
6252 strict_warn=
6253 if test $ac_cv_prog_cc_w_no_long_long = yes \
6254 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6255 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6256 strict_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6257 fi
6258
6259 # Add -Wold-style-definition if it's accepted
6260 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6261 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6262 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 save_CFLAGS="$CFLAGS"
6266 CFLAGS="-Wold-style-definition"
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273
6274 _ACEOF
6275 rm -f conftest.$ac_objext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -z "$ac_c_werror_flag"
6285 || test ! -s conftest.err'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest.$ac_objext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_prog_cc_w_old_style_definition=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 ac_cv_prog_cc_w_old_style_definition=no
6303 fi
6304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6305 CFLAGS="$save_CFLAGS"
6306
6307 fi
6308 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6309 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6310 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6311 strict_warn="${strict_warn} -Wold-style-definition"
6312 fi
6313
6314 # Add -Wmissing-format-attribute if it's accepted
6315 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6316 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6317 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320 save_CFLAGS="$CFLAGS"
6321 CFLAGS="-Wmissing-format-attribute"
6322 cat >conftest.$ac_ext <<_ACEOF
6323 /* confdefs.h. */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6328
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_cv_prog_cc_w_missing_format_attribute=yes
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6356
6357 ac_cv_prog_cc_w_missing_format_attribute=no
6358 fi
6359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6360 CFLAGS="$save_CFLAGS"
6361
6362 fi
6363 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6364 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6365 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6366 strict_warn="${strict_warn} -Wmissing-format-attribute"
6367 fi
6368
6369 # Enable -Werror, period.
6370 # Check whether --enable-werror_always or --disable-werror_always was given.
6371 if test "${enable_werror_always+set}" = set; then
6372 enableval="$enable_werror_always"
6373
6374 else
6375 enable_werror_always=no
6376 fi;
6377 if test x${enable_werror_always} = xyes ; then
6378 strict_warn="${strict_warn} -Werror"
6379 fi
6380
6381
6382 # Get C++ compatibility warning flag, if supported.
6383 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6384 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6385 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388 save_CFLAGS="$CFLAGS"
6389 CFLAGS="-Wc++-compat"
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_cv_prog_cc_w_cxx_compat=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 ac_cv_prog_cc_w_cxx_compat=no
6426 fi
6427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428 CFLAGS="$save_CFLAGS"
6429
6430 fi
6431 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6432 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6433 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6434 cxx_compat_warn="-Wc++-compat"
6435 fi
6436
6437
6438
6439 # If the native compiler is GCC, we can enable warnings even in stage1.
6440 # That's useful for people building cross-compilers, or just running a
6441 # quick `make'.
6442 warn_cflags=
6443 if test "x$GCC" = "xyes"; then
6444 warn_cflags='$(GCC_WARN_CFLAGS)'
6445 fi
6446
6447
6448 # Enable expensive internal checks
6449 is_release=
6450 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6451 is_release=yes
6452 fi
6453
6454 # Check whether --enable-checking or --disable-checking was given.
6455 if test "${enable_checking+set}" = set; then
6456 enableval="$enable_checking"
6457 ac_checking_flags="${enableval}"
6458 else
6459
6460 # Determine the default checks.
6461 if test x$is_release = x ; then
6462 ac_checking_flags=yes
6463 else
6464 ac_checking_flags=release
6465 fi
6466 fi;
6467 ac_assert_checking=1
6468 ac_checking=
6469 ac_fold_checking=
6470 ac_gc_checking=
6471 ac_gc_always_collect=
6472 ac_rtl_checking=
6473 ac_rtlflag_checking=
6474 ac_runtime_checking=1
6475 ac_tree_checking=
6476 ac_valgrind_checking=
6477 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6478 for check in $ac_checking_flags
6479 do
6480 case $check in
6481 # these set all the flags to specific states
6482 yes) ac_assert_checking=1 ; ac_checking=1 ;
6483 ac_fold_checking= ; ac_gc_checking=1 ;
6484 ac_gc_always_collect= ; ac_rtl_checking= ;
6485 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6486 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6487 no|none) ac_assert_checking= ; ac_checking= ;
6488 ac_fold_checking= ; ac_gc_checking= ;
6489 ac_gc_always_collect= ; ac_rtl_checking= ;
6490 ac_rtlflag_checking= ; ac_runtime_checking= ;
6491 ac_tree_checking= ; ac_valgrind_checking= ;;
6492 all) ac_assert_checking=1 ; ac_checking=1 ;
6493 ac_fold_checking=1 ; ac_gc_checking=1 ;
6494 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6495 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6496 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6497 release) ac_assert_checking=1 ; ac_checking= ;
6498 ac_fold_checking= ; ac_gc_checking= ;
6499 ac_gc_always_collect= ; ac_rtl_checking= ;
6500 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6501 ac_tree_checking= ; ac_valgrind_checking= ;;
6502 # these enable particular checks
6503 assert) ac_assert_checking=1 ;;
6504 fold) ac_fold_checking=1 ;;
6505 gc) ac_gc_checking=1 ;;
6506 gcac) ac_gc_always_collect=1 ;;
6507 misc) ac_checking=1 ;;
6508 rtl) ac_rtl_checking=1 ;;
6509 rtlflag) ac_rtlflag_checking=1 ;;
6510 runtime) ac_runtime_checking=1 ;;
6511 tree) ac_tree_checking=1 ;;
6512 valgrind) ac_valgrind_checking=1 ;;
6513 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6514 echo "$as_me: error: unknown check category $check" >&2;}
6515 { (exit 1); exit 1; }; } ;;
6516 esac
6517 done
6518 IFS="$ac_save_IFS"
6519
6520 nocommon_flag=""
6521 if test x$ac_checking != x ; then
6522
6523 cat >>confdefs.h <<\_ACEOF
6524 #define ENABLE_CHECKING 1
6525 _ACEOF
6526
6527 nocommon_flag=-fno-common
6528 fi
6529
6530 if test x$ac_assert_checking != x ; then
6531
6532 cat >>confdefs.h <<\_ACEOF
6533 #define ENABLE_ASSERT_CHECKING 1
6534 _ACEOF
6535
6536 fi
6537
6538 if test x$ac_runtime_checking != x ; then
6539
6540 cat >>confdefs.h <<\_ACEOF
6541 #define ENABLE_RUNTIME_CHECKING 1
6542 _ACEOF
6543
6544 fi
6545 if test x$ac_tree_checking != x ; then
6546
6547 cat >>confdefs.h <<\_ACEOF
6548 #define ENABLE_TREE_CHECKING 1
6549 _ACEOF
6550
6551 TREEBROWSER=tree-browser.o
6552 fi
6553
6554 if test x$ac_rtl_checking != x ; then
6555
6556 cat >>confdefs.h <<\_ACEOF
6557 #define ENABLE_RTL_CHECKING 1
6558 _ACEOF
6559
6560 fi
6561 if test x$ac_rtlflag_checking != x ; then
6562
6563 cat >>confdefs.h <<\_ACEOF
6564 #define ENABLE_RTL_FLAG_CHECKING 1
6565 _ACEOF
6566
6567 fi
6568 if test x$ac_gc_checking != x ; then
6569
6570 cat >>confdefs.h <<\_ACEOF
6571 #define ENABLE_GC_CHECKING 1
6572 _ACEOF
6573
6574 fi
6575 if test x$ac_gc_always_collect != x ; then
6576
6577 cat >>confdefs.h <<\_ACEOF
6578 #define ENABLE_GC_ALWAYS_COLLECT 1
6579 _ACEOF
6580
6581 fi
6582 if test x$ac_fold_checking != x ; then
6583
6584 cat >>confdefs.h <<\_ACEOF
6585 #define ENABLE_FOLD_CHECKING 1
6586 _ACEOF
6587
6588 fi
6589 valgrind_path_defines=
6590 valgrind_command=
6591
6592 if test "${ac_cv_header_valgrind_h+set}" = set; then
6593 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6594 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6595 if test "${ac_cv_header_valgrind_h+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 fi
6598 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6599 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6600 else
6601 # Is the header compilable?
6602 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6603 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 $ac_includes_default
6611 #include <valgrind.h>
6612 _ACEOF
6613 rm -f conftest.$ac_objext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -z "$ac_c_werror_flag"
6623 || test ! -s conftest.err'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 (eval $ac_try) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; } &&
6629 { ac_try='test -s conftest.$ac_objext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_header_compiler=yes
6636 else
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6639
6640 ac_header_compiler=no
6641 fi
6642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6644 echo "${ECHO_T}$ac_header_compiler" >&6
6645
6646 # Is the header present?
6647 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6648 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6649 cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h. */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 #include <valgrind.h>
6656 _ACEOF
6657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6659 ac_status=$?
6660 grep -v '^ *+' conftest.er1 >conftest.err
6661 rm -f conftest.er1
6662 cat conftest.err >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } >/dev/null; then
6665 if test -s conftest.err; then
6666 ac_cpp_err=$ac_c_preproc_warn_flag
6667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6668 else
6669 ac_cpp_err=
6670 fi
6671 else
6672 ac_cpp_err=yes
6673 fi
6674 if test -z "$ac_cpp_err"; then
6675 ac_header_preproc=yes
6676 else
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6679
6680 ac_header_preproc=no
6681 fi
6682 rm -f conftest.err conftest.$ac_ext
6683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6684 echo "${ECHO_T}$ac_header_preproc" >&6
6685
6686 # So? What about this header?
6687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6688 yes:no: )
6689 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6690 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6692 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6693 ac_header_preproc=yes
6694 ;;
6695 no:yes:* )
6696 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6697 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6698 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6699 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6700 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6701 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6703 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6705 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6707 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6708 (
6709 cat <<\_ASBOX
6710 ## ------------------------------------------ ##
6711 ## Report this to the AC_PACKAGE_NAME lists. ##
6712 ## ------------------------------------------ ##
6713 _ASBOX
6714 ) |
6715 sed "s/^/$as_me: WARNING: /" >&2
6716 ;;
6717 esac
6718 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6719 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6720 if test "${ac_cv_header_valgrind_h+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723 ac_cv_header_valgrind_h=$ac_header_preproc
6724 fi
6725 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6726 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6727
6728 fi
6729 if test $ac_cv_header_valgrind_h = yes; then
6730 have_valgrind_h=yes
6731 else
6732 have_valgrind_h=no
6733 fi
6734
6735
6736
6737 if test x$ac_valgrind_checking != x ; then
6738 # It is certainly possible that there's valgrind but no valgrind.h.
6739 # GCC relies on making annotations so we must have both.
6740 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6741 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 #include <valgrind/memcheck.h>
6749 #ifndef VALGRIND_DISCARD
6750 #error VALGRIND_DISCARD not defined
6751 #endif
6752 _ACEOF
6753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6755 ac_status=$?
6756 grep -v '^ *+' conftest.er1 >conftest.err
6757 rm -f conftest.er1
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } >/dev/null; then
6761 if test -s conftest.err; then
6762 ac_cpp_err=$ac_c_preproc_warn_flag
6763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6764 else
6765 ac_cpp_err=
6766 fi
6767 else
6768 ac_cpp_err=yes
6769 fi
6770 if test -z "$ac_cpp_err"; then
6771 gcc_cv_header_valgrind_memcheck_h=yes
6772 else
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776 gcc_cv_header_valgrind_memcheck_h=no
6777 fi
6778 rm -f conftest.err conftest.$ac_ext
6779 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6780 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6781 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6782 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h. */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <memcheck.h>
6790 #ifndef VALGRIND_DISCARD
6791 #error VALGRIND_DISCARD not defined
6792 #endif
6793 _ACEOF
6794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } >/dev/null; then
6802 if test -s conftest.err; then
6803 ac_cpp_err=$ac_c_preproc_warn_flag
6804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6805 else
6806 ac_cpp_err=
6807 fi
6808 else
6809 ac_cpp_err=yes
6810 fi
6811 if test -z "$ac_cpp_err"; then
6812 gcc_cv_header_memcheck_h=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6816
6817 gcc_cv_header_memcheck_h=no
6818 fi
6819 rm -f conftest.err conftest.$ac_ext
6820 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6821 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6822
6823 # Prepare PATH_SEPARATOR.
6824 # The user is always right.
6825 if test "${PATH_SEPARATOR+set}" != set; then
6826 echo "#! /bin/sh" >conf$$.sh
6827 echo "exit 0" >>conf$$.sh
6828 chmod +x conf$$.sh
6829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6830 PATH_SEPARATOR=';'
6831 else
6832 PATH_SEPARATOR=:
6833 fi
6834 rm -f conf$$.sh
6835 fi
6836
6837 # Find out how to test for executable files. Don't use a zero-byte file,
6838 # as systems may use methods other than mode bits to determine executability.
6839 cat >conf$$.file <<_ASEOF
6840 #! /bin/sh
6841 exit 0
6842 _ASEOF
6843 chmod +x conf$$.file
6844 if test -x conf$$.file >/dev/null 2>&1; then
6845 ac_executable_p="test -x"
6846 else
6847 ac_executable_p="test -f"
6848 fi
6849 rm -f conf$$.file
6850
6851 # Extract the first word of "valgrind", so it can be a program name with args.
6852 set dummy valgrind; ac_word=$2
6853 echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6855 if test "${ac_cv_path_valgrind_path+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 case "$valgrind_path" in
6859 [\\/]* | ?:[\\/]*)
6860 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6861 ;;
6862 *)
6863 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6864 for ac_dir in $PATH; do
6865 IFS="$ac_save_IFS"
6866 test -z "$ac_dir" && ac_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6869 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6870 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6871 break 2
6872 fi
6873 fi
6874 done
6875 done
6876 IFS="$ac_save_IFS"
6877 ;;
6878 esac
6879 fi
6880 valgrind_path="$ac_cv_path_valgrind_path"
6881 if test -n "$valgrind_path"; then
6882 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6883 echo "${ECHO_T}$valgrind_path" >&6
6884 else
6885 echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6
6887 fi
6888
6889 if test "x$valgrind_path" = "x" \
6890 || (test $have_valgrind_h = no \
6891 && test $gcc_cv_header_memcheck_h = no \
6892 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6893 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6894 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6895 { (exit 1); exit 1; }; }
6896 fi
6897 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6898 valgrind_command="$valgrind_path -q"
6899
6900 cat >>confdefs.h <<\_ACEOF
6901 #define ENABLE_VALGRIND_CHECKING 1
6902 _ACEOF
6903
6904 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6905
6906 cat >>confdefs.h <<\_ACEOF
6907 #define HAVE_VALGRIND_MEMCHECK_H 1
6908 _ACEOF
6909
6910 fi
6911 if test $gcc_cv_header_memcheck_h = yes; then
6912
6913 cat >>confdefs.h <<\_ACEOF
6914 #define HAVE_MEMCHECK_H 1
6915 _ACEOF
6916
6917 fi
6918 fi
6919
6920
6921
6922 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6923 if test "${enable_mapped_location+set}" = set; then
6924 enableval="$enable_mapped_location"
6925
6926 else
6927 enable_mapped_location=no
6928 fi;
6929
6930 if test "$enable_mapped_location" = yes ; then
6931
6932 cat >>confdefs.h <<\_ACEOF
6933 #define USE_MAPPED_LOCATION 1
6934 _ACEOF
6935
6936 fi
6937
6938 # Enable code coverage collection
6939 # Check whether --enable-coverage or --disable-coverage was given.
6940 if test "${enable_coverage+set}" = set; then
6941 enableval="$enable_coverage"
6942 case "${enableval}" in
6943 yes|noopt)
6944 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6945 ;;
6946 opt)
6947 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6948 ;;
6949 no)
6950 # a.k.a. --disable-coverage
6951 coverage_flags=""
6952 ;;
6953 *)
6954 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6955 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6956 { (exit 1); exit 1; }; }
6957 ;;
6958 esac
6959 else
6960 coverage_flags=""
6961 fi;
6962
6963
6964 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6965 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6966 enableval="$enable_gather_detailed_mem_stats"
6967
6968 else
6969 enable_gather_detailed_mem_stats=no
6970 fi;
6971 if test x$enable_gather_detailed_mem_stats = xyes ; then
6972
6973 cat >>confdefs.h <<\_ACEOF
6974 #define GATHER_STATISTICS 1
6975 _ACEOF
6976
6977 fi
6978
6979 # -------------------------------
6980 # Miscenalleous configure options
6981 # -------------------------------
6982
6983 # With stabs
6984
6985 # Check whether --with-stabs or --without-stabs was given.
6986 if test "${with_stabs+set}" = set; then
6987 withval="$with_stabs"
6988 stabs="$with_stabs"
6989 else
6990 stabs=no
6991 fi;
6992
6993 # Determine whether or not multilibs are enabled.
6994 # Check whether --enable-multilib or --disable-multilib was given.
6995 if test "${enable_multilib+set}" = set; then
6996 enableval="$enable_multilib"
6997
6998 else
6999 enable_multilib=yes
7000 fi;
7001
7002
7003 # Enable __cxa_atexit for C++.
7004 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7005 if test "${enable___cxa_atexit+set}" = set; then
7006 enableval="$enable___cxa_atexit"
7007
7008 fi;
7009
7010 # Enable C extension for decimal float if target supports it.
7011 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7012 if test "${enable_decimal_float+set}" = set; then
7013 enableval="$enable_decimal_float"
7014
7015 if test x$enablevar = xyes ; then
7016 case $target in
7017 powerpc*-*-linux* | i?86*-*-linux*)
7018 enable_decimal_float=yes
7019 ;;
7020 *)
7021 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7022 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7023 enable_decimal_float=no
7024 ;;
7025 esac
7026 fi
7027
7028 else
7029 enable_decimal_float=no
7030 fi;
7031
7032
7033
7034 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7035
7036 cat >>confdefs.h <<_ACEOF
7037 #define ENABLE_DECIMAL_FLOAT $dfp
7038 _ACEOF
7039
7040
7041 # Enable threads
7042 # Pass with no value to take the default
7043 # Pass with a value to specify a thread package
7044 # Check whether --enable-threads or --disable-threads was given.
7045 if test "${enable_threads+set}" = set; then
7046 enableval="$enable_threads"
7047
7048 else
7049 enable_threads=''
7050 fi;
7051
7052 # Check whether --enable-tls or --disable-tls was given.
7053 if test "${enable_tls+set}" = set; then
7054 enableval="$enable_tls"
7055
7056 case $enable_tls in
7057 yes | no) ;;
7058 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7059 Valid choices are 'yes' and 'no'." >&5
7060 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7061 Valid choices are 'yes' and 'no'." >&2;}
7062 { (exit 1); exit 1; }; } ;;
7063 esac
7064
7065 else
7066 enable_tls=''
7067 fi;
7068
7069 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7070 if test "${enable_objc_gc+set}" = set; then
7071 enableval="$enable_objc_gc"
7072 if test x$enable_objc_gc = xno; then
7073 objc_boehm_gc=''
7074 else
7075 objc_boehm_gc=1
7076 fi
7077 else
7078 objc_boehm_gc=''
7079 fi;
7080
7081
7082 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7083 if test "${with_dwarf2+set}" = set; then
7084 withval="$with_dwarf2"
7085 dwarf2="$with_dwarf2"
7086 else
7087 dwarf2=no
7088 fi;
7089
7090 # Check whether --enable-shared or --disable-shared was given.
7091 if test "${enable_shared+set}" = set; then
7092 enableval="$enable_shared"
7093
7094 case $enable_shared in
7095 yes | no) ;;
7096 *)
7097 enable_shared=no
7098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7099 for pkg in $enableval; do
7100 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7101 enable_shared=yes
7102 fi
7103 done
7104 IFS="$ac_save_ifs"
7105 ;;
7106 esac
7107
7108 else
7109 enable_shared=yes
7110 fi;
7111
7112
7113
7114 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7115 if test "${with_build_sysroot+set}" = set; then
7116 withval="$with_build_sysroot"
7117
7118 fi;
7119
7120
7121 # Check whether --with-sysroot or --without-sysroot was given.
7122 if test "${with_sysroot+set}" = set; then
7123 withval="$with_sysroot"
7124
7125 case ${with_sysroot} in
7126 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7127 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7128 esac
7129
7130 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7131 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7132
7133 if test "x$exec_prefix" = xNONE; then
7134 if test "x$prefix" = xNONE; then
7135 test_prefix=/usr/local
7136 else
7137 test_prefix=$prefix
7138 fi
7139 else
7140 test_prefix=$exec_prefix
7141 fi
7142 case ${TARGET_SYSTEM_ROOT} in
7143 "${test_prefix}"|"${test_prefix}/"*|\
7144 '${exec_prefix}'|'${exec_prefix}/'*)
7145 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7146 TARGET_SYSTEM_ROOT_DEFINE="$t"
7147 ;;
7148 esac
7149
7150 else
7151
7152 TARGET_SYSTEM_ROOT=
7153 TARGET_SYSTEM_ROOT_DEFINE=
7154 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7155
7156 fi;
7157
7158
7159
7160
7161 # Build with intermodule optimisations
7162 # Check whether --enable-intermodule or --disable-intermodule was given.
7163 if test "${enable_intermodule+set}" = set; then
7164 enableval="$enable_intermodule"
7165 case ${enable_intermodule} in
7166 yes) onestep="-onestep";;
7167 *) onestep="";;
7168 esac
7169 else
7170 onestep=""
7171 fi;
7172
7173
7174 # Sanity check enable_languages in case someone does not run the toplevel
7175 # configure # script.
7176 # Check whether --enable-languages or --disable-languages was given.
7177 if test "${enable_languages+set}" = set; then
7178 enableval="$enable_languages"
7179 case ,${enable_languages}, in
7180 ,,|,yes,)
7181 # go safe -- we cannot be much sure without the toplevel
7182 # configure's
7183 # analysis of which target libs are present and usable
7184 enable_languages=c
7185 ;;
7186 *,all,*)
7187 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7188 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7189 { (exit 1); exit 1; }; }
7190 ;;
7191 *,c,*)
7192 ;;
7193 *)
7194 enable_languages=c,${enable_languages}
7195 ;;
7196 esac
7197 else
7198 enable_languages=c
7199 fi;
7200
7201 # Used by documentation targets
7202
7203
7204
7205
7206 # -------------------------
7207 # Checks for other programs
7208 # -------------------------
7209
7210 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7212 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7213 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216 cat >conftest.make <<\_ACEOF
7217 all:
7218 @echo 'ac_maketemp="$(MAKE)"'
7219 _ACEOF
7220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7221 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7222 if test -n "$ac_maketemp"; then
7223 eval ac_cv_prog_make_${ac_make}_set=yes
7224 else
7225 eval ac_cv_prog_make_${ac_make}_set=no
7226 fi
7227 rm -f conftest.make
7228 fi
7229 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7230 echo "$as_me:$LINENO: result: yes" >&5
7231 echo "${ECHO_T}yes" >&6
7232 SET_MAKE=
7233 else
7234 echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6
7236 SET_MAKE="MAKE=${MAKE-make}"
7237 fi
7238
7239
7240 # Find some useful tools
7241 for ac_prog in gawk mawk nawk awk
7242 do
7243 # Extract the first word of "$ac_prog", so it can be a program name with args.
7244 set dummy $ac_prog; ac_word=$2
7245 echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7247 if test "${ac_cv_prog_AWK+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250 if test -n "$AWK"; then
7251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_AWK="$ac_prog"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264 done
7265 done
7266
7267 fi
7268 fi
7269 AWK=$ac_cv_prog_AWK
7270 if test -n "$AWK"; then
7271 echo "$as_me:$LINENO: result: $AWK" >&5
7272 echo "${ECHO_T}$AWK" >&6
7273 else
7274 echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6
7276 fi
7277
7278 test -n "$AWK" && break
7279 done
7280
7281 # We need awk to create options.c and options.h.
7282 # Bail out if it's missing.
7283 case ${AWK} in
7284 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7285 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7286 { (exit 1); exit 1; }; } ;;
7287 esac
7288
7289 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7290 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7291 if test "${gcc_cv_prog_LN_S+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294 rm -f conftestdata_t
7295 echo >conftestdata_f
7296 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7297 then
7298 gcc_cv_prog_LN_S="ln -s"
7299 else
7300 if ln conftestdata_f conftestdata_t 2>/dev/null
7301 then
7302 gcc_cv_prog_LN_S=ln
7303 else
7304 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7305 then
7306 gcc_cv_prog_LN_S="cp -p"
7307 else
7308 gcc_cv_prog_LN_S=cp
7309 fi
7310 fi
7311 fi
7312 rm -f conftestdata_f conftestdata_t
7313
7314 fi
7315 LN_S="$gcc_cv_prog_LN_S"
7316 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7317 echo "$as_me:$LINENO: result: yes" >&5
7318 echo "${ECHO_T}yes" >&6
7319 else
7320 if test "$gcc_cv_prog_LN_S" = "ln"; then
7321 echo "$as_me:$LINENO: result: no, using ln" >&5
7322 echo "${ECHO_T}no, using ln" >&6
7323 else
7324 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7325 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7326 fi
7327 fi
7328
7329 echo "$as_me:$LINENO: checking whether ln works" >&5
7330 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7331 if test "${acx_cv_prog_LN+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 rm -f conftestdata_t
7335 echo >conftestdata_f
7336 if ln conftestdata_f conftestdata_t 2>/dev/null
7337 then
7338 acx_cv_prog_LN=ln
7339 else
7340 acx_cv_prog_LN=no
7341 fi
7342 rm -f conftestdata_f conftestdata_t
7343
7344 fi
7345 if test $acx_cv_prog_LN = no; then
7346 LN="$LN_S"
7347 echo "$as_me:$LINENO: result: no, using $LN" >&5
7348 echo "${ECHO_T}no, using $LN" >&6
7349 else
7350 LN="$acx_cv_prog_LN"
7351 echo "$as_me:$LINENO: result: yes" >&5
7352 echo "${ECHO_T}yes" >&6
7353 fi
7354
7355 if test -n "$ac_tool_prefix"; then
7356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7358 echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7360 if test "${ac_cv_prog_RANLIB+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 if test -n "$RANLIB"; then
7364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7376 fi
7377 done
7378 done
7379
7380 fi
7381 fi
7382 RANLIB=$ac_cv_prog_RANLIB
7383 if test -n "$RANLIB"; then
7384 echo "$as_me:$LINENO: result: $RANLIB" >&5
7385 echo "${ECHO_T}$RANLIB" >&6
7386 else
7387 echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6
7389 fi
7390
7391 fi
7392 if test -z "$ac_cv_prog_RANLIB"; then
7393 ac_ct_RANLIB=$RANLIB
7394 # Extract the first word of "ranlib", so it can be a program name with args.
7395 set dummy ranlib; ac_word=$2
7396 echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 if test -n "$ac_ct_RANLIB"; then
7402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_ac_ct_RANLIB="ranlib"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415 done
7416 done
7417
7418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7419 fi
7420 fi
7421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7422 if test -n "$ac_ct_RANLIB"; then
7423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7424 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7425 else
7426 echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6
7428 fi
7429
7430 RANLIB=$ac_ct_RANLIB
7431 else
7432 RANLIB="$ac_cv_prog_RANLIB"
7433 fi
7434
7435 case "${host}" in
7436 *-*-darwin*)
7437 # By default, the Darwin ranlib will not treat common symbols as
7438 # definitions when building the archive table of contents. Other
7439 # ranlibs do that; pass an option to the Darwin ranlib that makes
7440 # it behave similarly.
7441 ranlib_flags="-c"
7442 ;;
7443 *)
7444 ranlib_flags=""
7445 esac
7446
7447
7448 # Find a good install program. We prefer a C program (faster),
7449 # so one script is as good as another. But avoid the broken or
7450 # incompatible versions:
7451 # SysV /etc/install, /usr/sbin/install
7452 # SunOS /usr/etc/install
7453 # IRIX /sbin/install
7454 # AIX /bin/install
7455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7457 # ./install, which can be erroneously created by make from ./install.sh.
7458 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7459 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7460 if test -z "$INSTALL"; then
7461 if test "${ac_cv_path_install+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7465 for ac_dir in $PATH; do
7466 # Account for people who put trailing slashes in PATH elements.
7467 case "$ac_dir/" in
7468 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7469 *)
7470 # OSF1 and SCO ODT 3.0 have their own names for install.
7471 for ac_prog in ginstall scoinst install; do
7472 if test -f $ac_dir/$ac_prog; then
7473 if test $ac_prog = install &&
7474 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7475 # AIX install. It has an incompatible calling convention.
7476 # OSF/1 installbsd also uses dspmsg, but is usable.
7477 :
7478 else
7479 ac_cv_path_install="$ac_dir/$ac_prog -c"
7480 break 2
7481 fi
7482 fi
7483 done
7484 ;;
7485 esac
7486 done
7487 IFS="$ac_save_IFS"
7488
7489 fi
7490 if test "${ac_cv_path_install+set}" = set; then
7491 INSTALL="$ac_cv_path_install"
7492 else
7493 # As a last resort, use the slow shell script. We don't cache a
7494 # path for INSTALL within a source directory, because that will
7495 # break other packages using the cache if that directory is
7496 # removed, or if the path is relative.
7497 INSTALL="$ac_install_sh"
7498 fi
7499 fi
7500 echo "$as_me:$LINENO: result: $INSTALL" >&5
7501 echo "${ECHO_T}$INSTALL" >&6
7502
7503 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7504 # It thinks the first close brace ends the variable substitution.
7505 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7506
7507 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7508
7509
7510 # See if cmp has --ignore-initial.
7511 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7512 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7513 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 echo abfoo >t1
7517 echo cdfoo >t2
7518 gcc_cv_prog_cmp_skip=slowcompare
7519 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7520 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7521 :
7522 else
7523 gcc_cv_prog_cmp_skip=gnucompare
7524 fi
7525 fi
7526 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7527 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7528 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7529 :
7530 else
7531 gcc_cv_prog_cmp_skip=fastcompare
7532 fi
7533 fi
7534 fi
7535 rm t1 t2
7536
7537 fi
7538 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7539 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7540 make_compare_target=$gcc_cv_prog_cmp_skip
7541
7542
7543
7544 # See if we have the mktemp command.
7545 # Extract the first word of "mktemp", so it can be a program name with args.
7546 set dummy mktemp; ac_word=$2
7547 echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7549 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552 if test -n "$have_mktemp_command"; then
7553 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_have_mktemp_command="yes"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566 done
7567 done
7568
7569 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7570 fi
7571 fi
7572 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7573 if test -n "$have_mktemp_command"; then
7574 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7575 echo "${ECHO_T}$have_mktemp_command" >&6
7576 else
7577 echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7579 fi
7580
7581
7582 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7583
7584 # See if makeinfo has been installed and is modern enough
7585 # that we can use it.
7586
7587 ac_executable_extensions="$build_exeext"
7588
7589 # Extract the first word of "makeinfo", so it can be a program name with args.
7590 set dummy makeinfo; ac_word=$2
7591 echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596 if test -n "$MAKEINFO"; then
7597 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_MAKEINFO="makeinfo"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7609 fi
7610 done
7611 done
7612
7613 fi
7614 fi
7615 MAKEINFO=$ac_cv_prog_MAKEINFO
7616 if test -n "$MAKEINFO"; then
7617 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7618 echo "${ECHO_T}$MAKEINFO" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6
7622 fi
7623
7624 if test -n "$MAKEINFO"; then
7625 # Found it, now check the version.
7626 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7627 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7628 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631 ac_prog_version=`$MAKEINFO --version 2>&1 |
7632 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7633 echo "configure:7633: version of makeinfo is $ac_prog_version" >&5
7634 case $ac_prog_version in
7635 '') gcc_cv_prog_makeinfo_modern=no;;
7636 4.[4-9]*)
7637 gcc_cv_prog_makeinfo_modern=yes;;
7638 *) gcc_cv_prog_makeinfo_modern=no;;
7639 esac
7640
7641 fi
7642 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7643 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7644 else
7645 gcc_cv_prog_makeinfo_modern=no
7646 fi
7647
7648 if test $gcc_cv_prog_makeinfo_modern = no; then
7649 MAKEINFO="$MISSING makeinfo"
7650 { echo "$as_me:$LINENO: WARNING:
7651 *** Makeinfo is missing or too old.
7652 *** Info documentation will not be built." >&5
7653 echo "$as_me: WARNING:
7654 *** Makeinfo is missing or too old.
7655 *** Info documentation will not be built." >&2;}
7656 BUILD_INFO=
7657 else
7658 BUILD_INFO=info
7659 fi
7660
7661
7662 # Is pod2man recent enough to regenerate manpages?
7663 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7664 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7665 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7666 echo "$as_me:$LINENO: result: yes" >&5
7667 echo "${ECHO_T}yes" >&6
7668 GENERATED_MANPAGES=generated-manpages
7669 else
7670 echo "$as_me:$LINENO: result: no" >&5
7671 echo "${ECHO_T}no" >&6
7672 GENERATED_MANPAGES=
7673 fi
7674
7675
7676 # How about lex?
7677 for ac_prog in flex
7678 do
7679 # Extract the first word of "$ac_prog", so it can be a program name with args.
7680 set dummy $ac_prog; ac_word=$2
7681 echo "$as_me:$LINENO: checking for $ac_word" >&5
7682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7683 if test "${ac_cv_prog_FLEX+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686 if test -n "$FLEX"; then
7687 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_FLEX="$ac_prog"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700 done
7701 done
7702
7703 fi
7704 fi
7705 FLEX=$ac_cv_prog_FLEX
7706 if test -n "$FLEX"; then
7707 echo "$as_me:$LINENO: result: $FLEX" >&5
7708 echo "${ECHO_T}$FLEX" >&6
7709 else
7710 echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6
7712 fi
7713
7714 test -n "$FLEX" && break
7715 done
7716 test -n "$FLEX" || FLEX="$MISSING flex"
7717
7718
7719 # Bison?
7720 for ac_prog in bison
7721 do
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7726 if test "${ac_cv_prog_BISON+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729 if test -n "$BISON"; then
7730 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 ac_cv_prog_BISON="$ac_prog"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 break 2
7742 fi
7743 done
7744 done
7745
7746 fi
7747 fi
7748 BISON=$ac_cv_prog_BISON
7749 if test -n "$BISON"; then
7750 echo "$as_me:$LINENO: result: $BISON" >&5
7751 echo "${ECHO_T}$BISON" >&6
7752 else
7753 echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6
7755 fi
7756
7757 test -n "$BISON" && break
7758 done
7759 test -n "$BISON" || BISON="$MISSING bison"
7760
7761
7762 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7763 # check for build == host before using them.
7764
7765 # NM
7766 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7767 && test -d ../binutils ; then
7768 NM='$(objdir)/../binutils/nm-new'
7769 else
7770 # Extract the first word of "nm", so it can be a program name with args.
7771 set dummy nm; ac_word=$2
7772 echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7774 if test "${ac_cv_prog_NM+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777 if test -n "$NM"; then
7778 ac_cv_prog_NM="$NM" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_NM="nm"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793
7794 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7795 fi
7796 fi
7797 NM=$ac_cv_prog_NM
7798 if test -n "$NM"; then
7799 echo "$as_me:$LINENO: result: $NM" >&5
7800 echo "${ECHO_T}$NM" >&6
7801 else
7802 echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6
7804 fi
7805
7806 fi
7807
7808 # AR
7809 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7810 && test -d ../binutils ; then
7811 AR='$(objdir)/../binutils/ar'
7812 else
7813 # Extract the first word of "ar", so it can be a program name with args.
7814 set dummy ar; ac_word=$2
7815 echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7817 if test "${ac_cv_prog_AR+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 if test -n "$AR"; then
7821 ac_cv_prog_AR="$AR" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_AR="ar"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7833 fi
7834 done
7835 done
7836
7837 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7838 fi
7839 fi
7840 AR=$ac_cv_prog_AR
7841 if test -n "$AR"; then
7842 echo "$as_me:$LINENO: result: $AR" >&5
7843 echo "${ECHO_T}$AR" >&6
7844 else
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7847 fi
7848
7849 fi
7850
7851
7852 # --------------------
7853 # Checks for C headers
7854 # --------------------
7855
7856 echo "$as_me:$LINENO: checking for GNU C library" >&5
7857 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7858 if test "${gcc_cv_glibc+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <features.h>
7868 int
7869 main ()
7870 {
7871
7872 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7873 #error Not a GNU C library system
7874 #endif
7875 ;
7876 return 0;
7877 }
7878 _ACEOF
7879 rm -f conftest.$ac_objext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881 (eval $ac_compile) 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -z "$ac_c_werror_flag"
7889 || test ! -s conftest.err'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try='test -s conftest.$ac_objext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 gcc_cv_glibc=yes
7902 else
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7905
7906 gcc_cv_glibc=no
7907 fi
7908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7909 fi
7910
7911 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7912 echo "${ECHO_T}$gcc_cv_glibc" >&6
7913 if test $gcc_cv_glibc = yes; then
7914
7915 cat >>confdefs.h <<\_ACEOF
7916 #define _GNU_SOURCE 1
7917 _ACEOF
7918
7919 fi
7920
7921 # Need to reject headers which give warnings, so that the -Werror bootstrap
7922 # works later. *sigh* This needs to come before all header checks.
7923
7924 ac_c_preproc_warn_flag=yes
7925
7926 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7927 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7928 if test "${ac_cv_header_stdc+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <stdlib.h>
7938 #include <stdarg.h>
7939 #include <string.h>
7940 #include <float.h>
7941
7942 int
7943 main ()
7944 {
7945
7946 ;
7947 return 0;
7948 }
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952 (eval $ac_compile) 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_c_werror_flag"
7960 || test ! -s conftest.err'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try='test -s conftest.$ac_objext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_header_stdc=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7976
7977 ac_cv_header_stdc=no
7978 fi
7979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7980
7981 if test $ac_cv_header_stdc = yes; then
7982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <string.h>
7990
7991 _ACEOF
7992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7993 $EGREP "memchr" >/dev/null 2>&1; then
7994 :
7995 else
7996 ac_cv_header_stdc=no
7997 fi
7998 rm -f conftest*
7999
8000 fi
8001
8002 if test $ac_cv_header_stdc = yes; then
8003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 #include <stdlib.h>
8011
8012 _ACEOF
8013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014 $EGREP "free" >/dev/null 2>&1; then
8015 :
8016 else
8017 ac_cv_header_stdc=no
8018 fi
8019 rm -f conftest*
8020
8021 fi
8022
8023 if test $ac_cv_header_stdc = yes; then
8024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8025 if test "$cross_compiling" = yes; then
8026 :
8027 else
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 #include <ctype.h>
8035 #if ((' ' & 0x0FF) == 0x020)
8036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8038 #else
8039 # define ISLOWER(c) \
8040 (('a' <= (c) && (c) <= 'i') \
8041 || ('j' <= (c) && (c) <= 'r') \
8042 || ('s' <= (c) && (c) <= 'z'))
8043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8044 #endif
8045
8046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8047 int
8048 main ()
8049 {
8050 int i;
8051 for (i = 0; i < 256; i++)
8052 if (XOR (islower (i), ISLOWER (i))
8053 || toupper (i) != TOUPPER (i))
8054 exit(2);
8055 exit (0);
8056 }
8057 _ACEOF
8058 rm -f conftest$ac_exeext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060 (eval $ac_link) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 :
8070 else
8071 echo "$as_me: program exited with status $ac_status" >&5
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 ( exit $ac_status )
8076 ac_cv_header_stdc=no
8077 fi
8078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8079 fi
8080 fi
8081 fi
8082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8084 if test $ac_cv_header_stdc = yes; then
8085
8086 cat >>confdefs.h <<\_ACEOF
8087 #define STDC_HEADERS 1
8088 _ACEOF
8089
8090 fi
8091
8092 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8093 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8094 if test "${ac_cv_header_time+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <sys/types.h>
8104 #include <sys/time.h>
8105 #include <time.h>
8106
8107 int
8108 main ()
8109 {
8110 if ((struct tm *) 0)
8111 return 0;
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -z "$ac_c_werror_flag"
8126 || test ! -s conftest.err'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; } &&
8132 { ac_try='test -s conftest.$ac_objext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_cv_header_time=yes
8139 else
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143 ac_cv_header_time=no
8144 fi
8145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8146 fi
8147 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8148 echo "${ECHO_T}$ac_cv_header_time" >&6
8149 if test $ac_cv_header_time = yes; then
8150
8151 cat >>confdefs.h <<\_ACEOF
8152 #define TIME_WITH_SYS_TIME 1
8153 _ACEOF
8154
8155 fi
8156
8157 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8158 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8159 if test "${gcc_cv_header_string+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h. */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 #include <string.h>
8169 #include <strings.h>
8170 int
8171 main ()
8172 {
8173
8174 ;
8175 return 0;
8176 }
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -z "$ac_c_werror_flag"
8188 || test ! -s conftest.err'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try='test -s conftest.$ac_objext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 gcc_cv_header_string=yes
8201 else
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205 gcc_cv_header_string=no
8206 fi
8207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8208 fi
8209 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8210 echo "${ECHO_T}$gcc_cv_header_string" >&6
8211 if test $gcc_cv_header_string = yes; then
8212
8213 cat >>confdefs.h <<\_ACEOF
8214 #define STRING_WITH_STRINGS 1
8215 _ACEOF
8216
8217 fi
8218
8219 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8220 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8221 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224 cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h. */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8230 #include <sys/types.h>
8231 #include <sys/wait.h>
8232 #ifndef WEXITSTATUS
8233 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8234 #endif
8235 #ifndef WIFEXITED
8236 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8237 #endif
8238
8239 int
8240 main ()
8241 {
8242 int s;
8243 wait (&s);
8244 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8245 ;
8246 return 0;
8247 }
8248 _ACEOF
8249 rm -f conftest.$ac_objext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251 (eval $ac_compile) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -z "$ac_c_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest.$ac_objext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_header_sys_wait_h=yes
8272 else
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8275
8276 ac_cv_header_sys_wait_h=no
8277 fi
8278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8279 fi
8280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8281 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8282 if test $ac_cv_header_sys_wait_h = yes; then
8283
8284 cat >>confdefs.h <<\_ACEOF
8285 #define HAVE_SYS_WAIT_H 1
8286 _ACEOF
8287
8288 fi
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8313 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8314 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8315 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8316 do
8317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8318 echo "$as_me:$LINENO: checking for $ac_header" >&5
8319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 #include <$ac_header>
8330 _ACEOF
8331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8333 ac_status=$?
8334 grep -v '^ *+' conftest.er1 >conftest.err
8335 rm -f conftest.er1
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } >/dev/null; then
8339 if test -s conftest.err; then
8340 ac_cpp_err=$ac_c_preproc_warn_flag
8341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8342 else
8343 ac_cpp_err=
8344 fi
8345 else
8346 ac_cpp_err=yes
8347 fi
8348 if test -z "$ac_cpp_err"; then
8349 eval "$as_ac_Header=yes"
8350 else
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8353
8354 eval "$as_ac_Header=no"
8355 fi
8356 rm -f conftest.err conftest.$ac_ext
8357 fi
8358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8361 cat >>confdefs.h <<_ACEOF
8362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8363 _ACEOF
8364
8365 fi
8366 done
8367
8368
8369 # Check for thread headers.
8370 echo "$as_me:$LINENO: checking for thread.h" >&5
8371 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8372 if test "${ac_cv_header_thread_h+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h. */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 #include <thread.h>
8382 _ACEOF
8383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } >/dev/null; then
8391 if test -s conftest.err; then
8392 ac_cpp_err=$ac_c_preproc_warn_flag
8393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8394 else
8395 ac_cpp_err=
8396 fi
8397 else
8398 ac_cpp_err=yes
8399 fi
8400 if test -z "$ac_cpp_err"; then
8401 ac_cv_header_thread_h=yes
8402 else
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406 ac_cv_header_thread_h=no
8407 fi
8408 rm -f conftest.err conftest.$ac_ext
8409 fi
8410 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8411 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8412 if test $ac_cv_header_thread_h = yes; then
8413 have_thread_h=yes
8414 else
8415 have_thread_h=
8416 fi
8417
8418 echo "$as_me:$LINENO: checking for pthread.h" >&5
8419 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8420 if test "${ac_cv_header_pthread_h+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 #include <pthread.h>
8430 _ACEOF
8431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } >/dev/null; then
8439 if test -s conftest.err; then
8440 ac_cpp_err=$ac_c_preproc_warn_flag
8441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8442 else
8443 ac_cpp_err=
8444 fi
8445 else
8446 ac_cpp_err=yes
8447 fi
8448 if test -z "$ac_cpp_err"; then
8449 ac_cv_header_pthread_h=yes
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454 ac_cv_header_pthread_h=no
8455 fi
8456 rm -f conftest.err conftest.$ac_ext
8457 fi
8458 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8459 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8460 if test $ac_cv_header_pthread_h = yes; then
8461 have_pthread_h=yes
8462 else
8463 have_pthread_h=
8464 fi
8465
8466
8467 # These tests can't be done till we know if we have limits.h.
8468 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8469 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8470 if test "${gcc_cv_decl_char_bit+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 #ifdef HAVE_LIMITS_H
8480 #include <limits.h>
8481 #endif
8482 #ifdef CHAR_BIT
8483 found
8484 #endif
8485 _ACEOF
8486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8487 $EGREP "found" >/dev/null 2>&1; then
8488 gcc_cv_decl_char_bit=yes
8489 else
8490 gcc_cv_decl_char_bit=no
8491 fi
8492 rm -f conftest*
8493
8494
8495 fi
8496 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8497 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8498 if test $gcc_cv_decl_char_bit = no; then
8499 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8500 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8501 if test "${gcc_cv_c_nbby+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504 i=8
8505 gcc_cv_c_nbby=
8506 while test $i -lt 65; do
8507 cat >conftest.$ac_ext <<_ACEOF
8508 /* confdefs.h. */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8513
8514 int
8515 main ()
8516 {
8517 switch(0) {
8518 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8519 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8520 ; }
8521 ;
8522 return 0;
8523 }
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 gcc_cv_c_nbby=$i; break
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552 fi
8553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8554 i=`expr $i + 1`
8555 done
8556 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8557
8558 fi
8559 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8560 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8561 if test $gcc_cv_c_nbby = failed; then
8562 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8563 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8564 { (exit 1); exit 1; }; }
8565 else
8566
8567 cat >>confdefs.h <<_ACEOF
8568 #define CHAR_BIT $gcc_cv_c_nbby
8569 _ACEOF
8570
8571 fi
8572 fi
8573 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8574 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8575 if test "${ac_cv_c_bigendian+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578 # See if sys/param.h defines the BYTE_ORDER macro.
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h. */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <sys/types.h>
8586 #include <sys/param.h>
8587
8588 int
8589 main ()
8590 {
8591 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8592 bogus endian macros
8593 #endif
8594
8595 ;
8596 return 0;
8597 }
8598 _ACEOF
8599 rm -f conftest.$ac_objext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601 (eval $ac_compile) 2>conftest.er1
8602 ac_status=$?
8603 grep -v '^ *+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -z "$ac_c_werror_flag"
8609 || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest.$ac_objext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 # It does; now see whether it defined to BIG_ENDIAN or not.
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 #include <sys/types.h>
8629 #include <sys/param.h>
8630
8631 int
8632 main ()
8633 {
8634 #if BYTE_ORDER != BIG_ENDIAN
8635 not big endian
8636 #endif
8637
8638 ;
8639 return 0;
8640 }
8641 _ACEOF
8642 rm -f conftest.$ac_objext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try='test -z "$ac_c_werror_flag"
8652 || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest.$ac_objext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_cv_c_bigendian=yes
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8668
8669 ac_cv_c_bigendian=no
8670 fi
8671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8672 else
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8675
8676 # It does not; compile a test program.
8677 if test "$cross_compiling" = yes; then
8678 # try to guess the endianness by grepping values into an object file
8679 ac_cv_c_bigendian=unknown
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8687 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8688 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8689 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8690 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8691 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8692 int
8693 main ()
8694 {
8695 _ascii (); _ebcdic ();
8696 ;
8697 return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702 (eval $ac_compile) 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest.$ac_objext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8723 ac_cv_c_bigendian=yes
8724 fi
8725 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8726 if test "$ac_cv_c_bigendian" = unknown; then
8727 ac_cv_c_bigendian=no
8728 else
8729 # finding both strings is unlikely to happen, but who knows?
8730 ac_cv_c_bigendian=unknown
8731 fi
8732 fi
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 fi
8738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8739 else
8740 cat >conftest.$ac_ext <<_ACEOF
8741 /* confdefs.h. */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8746 int
8747 main ()
8748 {
8749 /* Are we little or big endian? From Harbison&Steele. */
8750 union
8751 {
8752 long l;
8753 char c[sizeof (long)];
8754 } u;
8755 u.l = 1;
8756 exit (u.c[sizeof (long) - 1] == 1);
8757 }
8758 _ACEOF
8759 rm -f conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_c_bigendian=no
8771 else
8772 echo "$as_me: program exited with status $ac_status" >&5
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 ( exit $ac_status )
8777 ac_cv_c_bigendian=yes
8778 fi
8779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8780 fi
8781 fi
8782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8783 fi
8784 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8785 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8786 case $ac_cv_c_bigendian in
8787 yes)
8788
8789 cat >>confdefs.h <<\_ACEOF
8790 #define WORDS_BIGENDIAN 1
8791 _ACEOF
8792 ;;
8793 no)
8794 ;;
8795 *)
8796 { { echo "$as_me:$LINENO: error: unknown endianness
8797 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8798 echo "$as_me: error: unknown endianness
8799 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8800 { (exit 1); exit 1; }; } ;;
8801 esac
8802
8803
8804 # --------
8805 # UNSORTED
8806 # --------
8807
8808
8809 # These libraries may be used by collect2.
8810 # We may need a special search path to get them linked.
8811 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8812 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8813 if test "${gcc_cv_collect2_libs+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816 save_LIBS="$LIBS"
8817 for libs in '' -lld -lmld \
8818 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8819 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8820 do
8821 LIBS="$libs"
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h. */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828
8829 /* Override any gcc2 internal prototype to avoid an error. */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8835 char ldopen ();
8836 int
8837 main ()
8838 {
8839 ldopen ();
8840 ;
8841 return 0;
8842 }
8843 _ACEOF
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -z "$ac_c_werror_flag"
8854 || test ! -s conftest.err'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 (eval $ac_try) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; } &&
8860 { ac_try='test -s conftest$ac_exeext'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
8866 gcc_cv_collect2_libs="$libs"; break
8867 else
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871 fi
8872 rm -f conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874 done
8875 LIBS="$save_LIBS"
8876 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8877 fi
8878 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8879 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8880 case $gcc_cv_collect2_libs in
8881 "none required") ;;
8882 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8883 esac
8884
8885
8886 # When building Ada code on Alpha, we need exc_resume which is usually in
8887 # -lexc. So test for it.
8888 save_LIBS="$LIBS"
8889 LIBS=
8890 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8891 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8892 if test "${ac_cv_search_exc_resume+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895 ac_func_search_save_LIBS=$LIBS
8896 ac_cv_search_exc_resume=no
8897 cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h. */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8903
8904 /* Override any gcc2 internal prototype to avoid an error. */
8905 #ifdef __cplusplus
8906 extern "C"
8907 #endif
8908 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8910 char exc_resume ();
8911 int
8912 main ()
8913 {
8914 exc_resume ();
8915 ;
8916 return 0;
8917 }
8918 _ACEOF
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921 (eval $ac_link) 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -z "$ac_c_werror_flag"
8929 || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest$ac_exeext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_search_exc_resume="none required"
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946 fi
8947 rm -f conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 if test "$ac_cv_search_exc_resume" = no; then
8950 for ac_lib in exc; do
8951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958
8959 /* Override any gcc2 internal prototype to avoid an error. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 /* We use char because int might match the return type of a gcc2
8964 builtin and then its argument prototype would still apply. */
8965 char exc_resume ();
8966 int
8967 main ()
8968 {
8969 exc_resume ();
8970 ;
8971 return 0;
8972 }
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -z "$ac_c_werror_flag"
8984 || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_search_exc_resume="-l$ac_lib"
8997 break
8998 else
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002 fi
9003 rm -f conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005 done
9006 fi
9007 LIBS=$ac_func_search_save_LIBS
9008 fi
9009 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9010 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9011 if test "$ac_cv_search_exc_resume" != no; then
9012 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9013
9014 fi
9015
9016 GNAT_LIBEXC="$LIBS"
9017 LIBS="$save_LIBS"
9018
9019
9020 # Some systems put ldexp and frexp in libm instead of libc; assume
9021 # they're both in the same place. jcf-dump needs them.
9022 save_LIBS="$LIBS"
9023 LIBS=
9024 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9025 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9026 if test "${ac_cv_search_ldexp+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029 ac_func_search_save_LIBS=$LIBS
9030 ac_cv_search_ldexp=no
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037
9038 /* Override any gcc2 internal prototype to avoid an error. */
9039 #ifdef __cplusplus
9040 extern "C"
9041 #endif
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9044 char ldexp ();
9045 int
9046 main ()
9047 {
9048 ldexp ();
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>conftest.er1
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_search_ldexp="none required"
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080 fi
9081 rm -f conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
9083 if test "$ac_cv_search_ldexp" = no; then
9084 for ac_lib in m; do
9085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092
9093 /* Override any gcc2 internal prototype to avoid an error. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9099 char ldexp ();
9100 int
9101 main ()
9102 {
9103 ldexp ();
9104 ;
9105 return 0;
9106 }
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag"
9118 || test ! -s conftest.err'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_search_ldexp="-l$ac_lib"
9131 break
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136 fi
9137 rm -f conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139 done
9140 fi
9141 LIBS=$ac_func_search_save_LIBS
9142 fi
9143 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9144 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9145 if test "$ac_cv_search_ldexp" != no; then
9146 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9147
9148 fi
9149
9150 LDEXP_LIB="$LIBS"
9151 LIBS="$save_LIBS"
9152
9153
9154 # Use <inttypes.h> only if it exists,
9155 # doesn't clash with <sys/types.h>, and declares intmax_t.
9156 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9157 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9158 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9168 #include <inttypes.h>
9169 int
9170 main ()
9171 {
9172 intmax_t i = -1;
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 gcc_cv_header_inttypes_h=yes
9200 else
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 gcc_cv_header_inttypes_h=no
9205 fi
9206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9207 fi
9208
9209 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9210 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9211 if test $gcc_cv_header_inttypes_h = yes; then
9212
9213 cat >>confdefs.h <<\_ACEOF
9214 #define HAVE_INTTYPES_H 1
9215 _ACEOF
9216
9217 fi
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9257 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9258 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9259 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9260 do
9261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9262 echo "$as_me:$LINENO: checking for $ac_func" >&5
9263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9264 if eval "test \"\${$as_ac_var+set}\" = set"; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h. */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9275 #define $ac_func innocuous_$ac_func
9276
9277 /* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char $ac_func (); below.
9279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280 <limits.h> exists even on freestanding compilers. */
9281
9282 #ifdef __STDC__
9283 # include <limits.h>
9284 #else
9285 # include <assert.h>
9286 #endif
9287
9288 #undef $ac_func
9289
9290 /* Override any gcc2 internal prototype to avoid an error. */
9291 #ifdef __cplusplus
9292 extern "C"
9293 {
9294 #endif
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9297 char $ac_func ();
9298 /* The GNU C library defines this for functions which it implements
9299 to always fail with ENOSYS. Some functions are actually named
9300 something starting with __ and the normal name is an alias. */
9301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9302 choke me
9303 #else
9304 char (*f) () = $ac_func;
9305 #endif
9306 #ifdef __cplusplus
9307 }
9308 #endif
9309
9310 int
9311 main ()
9312 {
9313 return f != $ac_func;
9314 ;
9315 return 0;
9316 }
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>conftest.er1
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 eval "$as_ac_var=yes"
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345 eval "$as_ac_var=no"
9346 fi
9347 rm -f conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9349 fi
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9352 if test `eval echo '${'$as_ac_var'}'` = yes; then
9353 cat >>confdefs.h <<_ACEOF
9354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9355 _ACEOF
9356
9357 fi
9358 done
9359
9360
9361 if test x$ac_cv_func_mbstowcs = xyes; then
9362 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9363 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9364 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367 if test "$cross_compiling" = yes; then
9368 gcc_cv_func_mbstowcs_works=yes
9369 else
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376 #include <stdlib.h>
9377 int main()
9378 {
9379 mbstowcs(0, "", 0);
9380 return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 gcc_cv_func_mbstowcs_works=yes
9395 else
9396 echo "$as_me: program exited with status $ac_status" >&5
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 ( exit $ac_status )
9401 gcc_cv_func_mbstowcs_works=no
9402 fi
9403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9404 fi
9405 fi
9406 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9407 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9408 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9409
9410 cat >>confdefs.h <<\_ACEOF
9411 #define HAVE_WORKING_MBSTOWCS 1
9412 _ACEOF
9413
9414 fi
9415 fi
9416
9417 echo "$as_me:$LINENO: checking for ssize_t" >&5
9418 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9419 if test "${ac_cv_type_ssize_t+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 $ac_includes_default
9429 int
9430 main ()
9431 {
9432 if ((ssize_t *) 0)
9433 return 0;
9434 if (sizeof (ssize_t))
9435 return 0;
9436 ;
9437 return 0;
9438 }
9439 _ACEOF
9440 rm -f conftest.$ac_objext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9442 (eval $ac_compile) 2>conftest.er1
9443 ac_status=$?
9444 grep -v '^ *+' conftest.er1 >conftest.err
9445 rm -f conftest.er1
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try='test -z "$ac_c_werror_flag"
9450 || test ! -s conftest.err'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_type_ssize_t=yes
9463 else
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9466
9467 ac_cv_type_ssize_t=no
9468 fi
9469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9470 fi
9471 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9472 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9473 if test $ac_cv_type_ssize_t = yes; then
9474 :
9475 else
9476
9477 cat >>confdefs.h <<_ACEOF
9478 #define ssize_t int
9479 _ACEOF
9480
9481 fi
9482
9483
9484 # Try to determine the array type of the second argument of getgroups
9485 # for the target system (int or gid_t).
9486 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9487 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9488 if test "${ac_cv_type_uid_t+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 #include <sys/types.h>
9498
9499 _ACEOF
9500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9501 $EGREP "uid_t" >/dev/null 2>&1; then
9502 ac_cv_type_uid_t=yes
9503 else
9504 ac_cv_type_uid_t=no
9505 fi
9506 rm -f conftest*
9507
9508 fi
9509 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9510 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9511 if test $ac_cv_type_uid_t = no; then
9512
9513 cat >>confdefs.h <<\_ACEOF
9514 #define uid_t int
9515 _ACEOF
9516
9517
9518 cat >>confdefs.h <<\_ACEOF
9519 #define gid_t int
9520 _ACEOF
9521
9522 fi
9523
9524 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9525 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9526 if test "${ac_cv_type_getgroups+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529 if test "$cross_compiling" = yes; then
9530 ac_cv_type_getgroups=cross
9531 else
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 /* Thanks to Mike Rendell for this test. */
9539 #include <sys/types.h>
9540 #define NGID 256
9541 #undef MAX
9542 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9543
9544 int
9545 main ()
9546 {
9547 gid_t gidset[NGID];
9548 int i, n;
9549 union { gid_t gval; long lval; } val;
9550
9551 val.lval = -1;
9552 for (i = 0; i < NGID; i++)
9553 gidset[i] = val.gval;
9554 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9555 gidset);
9556 /* Exit non-zero if getgroups seems to require an array of ints. This
9557 happens when gid_t is short but getgroups modifies an array of ints. */
9558 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9559 }
9560 _ACEOF
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_type_getgroups=gid_t
9573 else
9574 echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9577
9578 ( exit $ac_status )
9579 ac_cv_type_getgroups=int
9580 fi
9581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9582 fi
9583 if test $ac_cv_type_getgroups = cross; then
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 #include <unistd.h>
9591
9592 _ACEOF
9593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9594 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9595 ac_cv_type_getgroups=gid_t
9596 else
9597 ac_cv_type_getgroups=int
9598 fi
9599 rm -f conftest*
9600
9601 fi
9602 fi
9603 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9604 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9605
9606 cat >>confdefs.h <<_ACEOF
9607 #define GETGROUPS_T $ac_cv_type_getgroups
9608 _ACEOF
9609
9610
9611 if test "${target}" = "${build}"; then
9612 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9613 else
9614 case "${target}" in
9615 # This condition may need some tweaking. It should include all
9616 # targets where the array type of the second argument of getgroups
9617 # is int and the type of gid_t is not equivalent to int.
9618 *-*-sunos* | *-*-ultrix*)
9619 TARGET_GETGROUPS_T=int
9620 ;;
9621 *)
9622 TARGET_GETGROUPS_T=gid_t
9623 ;;
9624 esac
9625 fi
9626
9627
9628
9629 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9630 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9631 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 #include <sys/mman.h>
9641 _ACEOF
9642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } >/dev/null; then
9650 if test -s conftest.err; then
9651 ac_cpp_err=$ac_c_preproc_warn_flag
9652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9653 else
9654 ac_cpp_err=
9655 fi
9656 else
9657 ac_cpp_err=yes
9658 fi
9659 if test -z "$ac_cpp_err"; then
9660 ac_cv_header_sys_mman_h=yes
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9664
9665 ac_cv_header_sys_mman_h=no
9666 fi
9667 rm -f conftest.err conftest.$ac_ext
9668 fi
9669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9670 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9671 if test $ac_cv_header_sys_mman_h = yes; then
9672 gcc_header_sys_mman_h=yes
9673 else
9674 gcc_header_sys_mman_h=no
9675 fi
9676
9677 echo "$as_me:$LINENO: checking for mmap" >&5
9678 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9679 if test "${ac_cv_func_mmap+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 else
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h. */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9690 #define mmap innocuous_mmap
9691
9692 /* System header to define __stub macros and hopefully few prototypes,
9693 which can conflict with char mmap (); below.
9694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9695 <limits.h> exists even on freestanding compilers. */
9696
9697 #ifdef __STDC__
9698 # include <limits.h>
9699 #else
9700 # include <assert.h>
9701 #endif
9702
9703 #undef mmap
9704
9705 /* Override any gcc2 internal prototype to avoid an error. */
9706 #ifdef __cplusplus
9707 extern "C"
9708 {
9709 #endif
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9712 char mmap ();
9713 /* The GNU C library defines this for functions which it implements
9714 to always fail with ENOSYS. Some functions are actually named
9715 something starting with __ and the normal name is an alias. */
9716 #if defined (__stub_mmap) || defined (__stub___mmap)
9717 choke me
9718 #else
9719 char (*f) () = mmap;
9720 #endif
9721 #ifdef __cplusplus
9722 }
9723 #endif
9724
9725 int
9726 main ()
9727 {
9728 return f != mmap;
9729 ;
9730 return 0;
9731 }
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_func_mmap=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760 ac_cv_func_mmap=no
9761 fi
9762 rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 fi
9765 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9766 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9767 if test $ac_cv_func_mmap = yes; then
9768 gcc_func_mmap=yes
9769 else
9770 gcc_func_mmap=no
9771 fi
9772
9773 if test "$gcc_header_sys_mman_h" != yes \
9774 || test "$gcc_func_mmap" != yes; then
9775 gcc_cv_func_mmap_file=no
9776 gcc_cv_func_mmap_dev_zero=no
9777 gcc_cv_func_mmap_anon=no
9778 else
9779 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9780 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9781 if test "${gcc_cv_func_mmap_file+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 # Add a system to this blacklist if
9785 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9786 # memory area containing the same data that you'd get if you applied
9787 # read() to the same fd. The only system known to have a problem here
9788 # is VMS, where text files have record structure.
9789 case "$host_os" in
9790 vms* | ultrix*)
9791 gcc_cv_func_mmap_file=no ;;
9792 *)
9793 gcc_cv_func_mmap_file=yes;;
9794 esac
9795 fi
9796 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9797 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9798 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9799 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9800 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 # Add a system to this blacklist if it has mmap() but /dev/zero
9804 # does not exist, or if mmapping /dev/zero does not give anonymous
9805 # zeroed pages with both the following properties:
9806 # 1. If you map N consecutive pages in with one call, and then
9807 # unmap any subset of those pages, the pages that were not
9808 # explicitly unmapped remain accessible.
9809 # 2. If you map two adjacent blocks of memory and then unmap them
9810 # both at once, they must both go away.
9811 # Systems known to be in this category are Windows (all variants),
9812 # VMS, and Darwin.
9813 case "$host_os" in
9814 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9815 gcc_cv_func_mmap_dev_zero=no ;;
9816 *)
9817 gcc_cv_func_mmap_dev_zero=yes;;
9818 esac
9819 fi
9820 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9821 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9822
9823 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9824 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9825 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9826 if test "${gcc_cv_decl_map_anon+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <sys/types.h>
9836 #include <sys/mman.h>
9837 #include <unistd.h>
9838
9839 #ifndef MAP_ANONYMOUS
9840 #define MAP_ANONYMOUS MAP_ANON
9841 #endif
9842
9843 int
9844 main ()
9845 {
9846 int n = MAP_ANONYMOUS;
9847 ;
9848 return 0;
9849 }
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 gcc_cv_decl_map_anon=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9877
9878 gcc_cv_decl_map_anon=no
9879 fi
9880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9881 fi
9882 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9883 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9884
9885 if test $gcc_cv_decl_map_anon = no; then
9886 gcc_cv_func_mmap_anon=no
9887 else
9888 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9889 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9890 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9894 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9895 # doesn't give anonymous zeroed pages with the same properties listed
9896 # above for use of /dev/zero.
9897 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9898 case "$host_os" in
9899 vms* | cygwin* | pe | mingw* | sco* | udk* )
9900 gcc_cv_func_mmap_anon=no ;;
9901 *)
9902 gcc_cv_func_mmap_anon=yes;;
9903 esac
9904 fi
9905 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9906 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9907 fi
9908 fi
9909
9910 if test $gcc_cv_func_mmap_file = yes; then
9911
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_MMAP_FILE 1
9914 _ACEOF
9915
9916 fi
9917 if test $gcc_cv_func_mmap_dev_zero = yes; then
9918
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_MMAP_DEV_ZERO 1
9921 _ACEOF
9922
9923 fi
9924 if test $gcc_cv_func_mmap_anon = yes; then
9925
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_MMAP_ANON 1
9928 _ACEOF
9929
9930 fi
9931
9932
9933 case "${host}" in
9934 *-*-*vms*)
9935 # Under VMS, vfork works very differently than on Unix. The standard test
9936 # won't work, and it isn't easily adaptable. It makes more sense to
9937 # just force it.
9938 ac_cv_func_vfork_works=yes
9939 ;;
9940 esac
9941 echo "$as_me:$LINENO: checking for pid_t" >&5
9942 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9943 if test "${ac_cv_type_pid_t+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9953 int
9954 main ()
9955 {
9956 if ((pid_t *) 0)
9957 return 0;
9958 if (sizeof (pid_t))
9959 return 0;
9960 ;
9961 return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest.$ac_objext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_type_pid_t=yes
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 ac_cv_type_pid_t=no
9992 fi
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 fi
9995 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9996 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9997 if test $ac_cv_type_pid_t = yes; then
9998 :
9999 else
10000
10001 cat >>confdefs.h <<_ACEOF
10002 #define pid_t int
10003 _ACEOF
10004
10005 fi
10006
10007
10008
10009 for ac_header in unistd.h vfork.h
10010 do
10011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10012 echo "$as_me:$LINENO: checking for $ac_header" >&5
10013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <$ac_header>
10024 _ACEOF
10025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } >/dev/null; then
10033 if test -s conftest.err; then
10034 ac_cpp_err=$ac_c_preproc_warn_flag
10035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10036 else
10037 ac_cpp_err=
10038 fi
10039 else
10040 ac_cpp_err=yes
10041 fi
10042 if test -z "$ac_cpp_err"; then
10043 eval "$as_ac_Header=yes"
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10047
10048 eval "$as_ac_Header=no"
10049 fi
10050 rm -f conftest.err conftest.$ac_ext
10051 fi
10052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10055 cat >>confdefs.h <<_ACEOF
10056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10057 _ACEOF
10058
10059 fi
10060 done
10061
10062
10063
10064 for ac_func in fork vfork
10065 do
10066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10067 echo "$as_me:$LINENO: checking for $ac_func" >&5
10068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10069 if eval "test \"\${$as_ac_var+set}\" = set"; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10080 #define $ac_func innocuous_$ac_func
10081
10082 /* System header to define __stub macros and hopefully few prototypes,
10083 which can conflict with char $ac_func (); below.
10084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10085 <limits.h> exists even on freestanding compilers. */
10086
10087 #ifdef __STDC__
10088 # include <limits.h>
10089 #else
10090 # include <assert.h>
10091 #endif
10092
10093 #undef $ac_func
10094
10095 /* Override any gcc2 internal prototype to avoid an error. */
10096 #ifdef __cplusplus
10097 extern "C"
10098 {
10099 #endif
10100 /* We use char because int might match the return type of a gcc2
10101 builtin and then its argument prototype would still apply. */
10102 char $ac_func ();
10103 /* The GNU C library defines this for functions which it implements
10104 to always fail with ENOSYS. Some functions are actually named
10105 something starting with __ and the normal name is an alias. */
10106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10107 choke me
10108 #else
10109 char (*f) () = $ac_func;
10110 #endif
10111 #ifdef __cplusplus
10112 }
10113 #endif
10114
10115 int
10116 main ()
10117 {
10118 return f != $ac_func;
10119 ;
10120 return 0;
10121 }
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10125 (eval $ac_link) 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_c_werror_flag"
10133 || test ! -s conftest.err'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; } &&
10139 { ac_try='test -s conftest$ac_exeext'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10142 ac_status=$?
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; }; then
10145 eval "$as_ac_var=yes"
10146 else
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150 eval "$as_ac_var=no"
10151 fi
10152 rm -f conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10154 fi
10155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10157 if test `eval echo '${'$as_ac_var'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10160 _ACEOF
10161
10162 fi
10163 done
10164
10165 if test "x$ac_cv_func_fork" = xyes; then
10166 echo "$as_me:$LINENO: checking for working fork" >&5
10167 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10168 if test "${ac_cv_func_fork_works+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171 if test "$cross_compiling" = yes; then
10172 ac_cv_func_fork_works=cross
10173 else
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* By Ruediger Kuhlmann. */
10176 #include <sys/types.h>
10177 #if HAVE_UNISTD_H
10178 # include <unistd.h>
10179 #endif
10180 /* Some systems only have a dummy stub for fork() */
10181 int main ()
10182 {
10183 if (fork() < 0)
10184 exit (1);
10185 exit (0);
10186 }
10187 _ACEOF
10188 rm -f conftest$ac_exeext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190 (eval $ac_link) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_func_fork_works=yes
10200 else
10201 echo "$as_me: program exited with status $ac_status" >&5
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10204
10205 ( exit $ac_status )
10206 ac_cv_func_fork_works=no
10207 fi
10208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10209 fi
10210 fi
10211 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10212 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10213
10214 else
10215 ac_cv_func_fork_works=$ac_cv_func_fork
10216 fi
10217 if test "x$ac_cv_func_fork_works" = xcross; then
10218 case $host in
10219 *-*-amigaos* | *-*-msdosdjgpp*)
10220 # Override, as these systems have only a dummy fork() stub
10221 ac_cv_func_fork_works=no
10222 ;;
10223 *)
10224 ac_cv_func_fork_works=yes
10225 ;;
10226 esac
10227 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10228 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10229 fi
10230 ac_cv_func_vfork_works=$ac_cv_func_vfork
10231 if test "x$ac_cv_func_vfork" = xyes; then
10232 echo "$as_me:$LINENO: checking for working vfork" >&5
10233 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10234 if test "${ac_cv_func_vfork_works+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 if test "$cross_compiling" = yes; then
10238 ac_cv_func_vfork_works=cross
10239 else
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 /* Thanks to Paul Eggert for this test. */
10247 #include <stdio.h>
10248 #include <stdlib.h>
10249 #include <sys/types.h>
10250 #include <sys/stat.h>
10251 #include <sys/wait.h>
10252 #if HAVE_UNISTD_H
10253 # include <unistd.h>
10254 #endif
10255 #if HAVE_VFORK_H
10256 # include <vfork.h>
10257 #endif
10258 /* On some sparc systems, changes by the child to local and incoming
10259 argument registers are propagated back to the parent. The compiler
10260 is told about this with #include <vfork.h>, but some compilers
10261 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10262 static variable whose address is put into a register that is
10263 clobbered by the vfork. */
10264 static void
10265 #ifdef __cplusplus
10266 sparc_address_test (int arg)
10267 # else
10268 sparc_address_test (arg) int arg;
10269 #endif
10270 {
10271 static pid_t child;
10272 if (!child) {
10273 child = vfork ();
10274 if (child < 0) {
10275 perror ("vfork");
10276 _exit(2);
10277 }
10278 if (!child) {
10279 arg = getpid();
10280 write(-1, "", 0);
10281 _exit (arg);
10282 }
10283 }
10284 }
10285
10286 int
10287 main ()
10288 {
10289 pid_t parent = getpid ();
10290 pid_t child;
10291
10292 sparc_address_test (0);
10293
10294 child = vfork ();
10295
10296 if (child == 0) {
10297 /* Here is another test for sparc vfork register problems. This
10298 test uses lots of local variables, at least as many local
10299 variables as main has allocated so far including compiler
10300 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10301 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10302 reuse the register of parent for one of the local variables,
10303 since it will think that parent can't possibly be used any more
10304 in this routine. Assigning to the local variable will thus
10305 munge parent in the parent process. */
10306 pid_t
10307 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10308 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10309 /* Convince the compiler that p..p7 are live; otherwise, it might
10310 use the same hardware register for all 8 local variables. */
10311 if (p != p1 || p != p2 || p != p3 || p != p4
10312 || p != p5 || p != p6 || p != p7)
10313 _exit(1);
10314
10315 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10316 from child file descriptors. If the child closes a descriptor
10317 before it execs or exits, this munges the parent's descriptor
10318 as well. Test for this by closing stdout in the child. */
10319 _exit(close(fileno(stdout)) != 0);
10320 } else {
10321 int status;
10322 struct stat st;
10323
10324 while (wait(&status) != child)
10325 ;
10326 exit(
10327 /* Was there some problem with vforking? */
10328 child < 0
10329
10330 /* Did the child fail? (This shouldn't happen.) */
10331 || status
10332
10333 /* Did the vfork/compiler bug occur? */
10334 || parent != getpid()
10335
10336 /* Did the file descriptor bug occur? */
10337 || fstat(fileno(stdout), &st) != 0
10338 );
10339 }
10340 }
10341 _ACEOF
10342 rm -f conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_cv_func_vfork_works=yes
10354 else
10355 echo "$as_me: program exited with status $ac_status" >&5
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 ( exit $ac_status )
10360 ac_cv_func_vfork_works=no
10361 fi
10362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10363 fi
10364 fi
10365 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10366 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10367
10368 fi;
10369 if test "x$ac_cv_func_fork_works" = xcross; then
10370 ac_cv_func_vfork_works=$ac_cv_func_vfork
10371 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10372 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10373 fi
10374
10375 if test "x$ac_cv_func_vfork_works" = xyes; then
10376
10377 cat >>confdefs.h <<\_ACEOF
10378 #define HAVE_WORKING_VFORK 1
10379 _ACEOF
10380
10381 else
10382
10383 cat >>confdefs.h <<\_ACEOF
10384 #define vfork fork
10385 _ACEOF
10386
10387 fi
10388 if test "x$ac_cv_func_fork_works" = xyes; then
10389
10390 cat >>confdefs.h <<\_ACEOF
10391 #define HAVE_WORKING_FORK 1
10392 _ACEOF
10393
10394 fi
10395
10396
10397
10398 if test "X$prefix" = "XNONE"; then
10399 acl_final_prefix="$ac_default_prefix"
10400 else
10401 acl_final_prefix="$prefix"
10402 fi
10403 if test "X$exec_prefix" = "XNONE"; then
10404 acl_final_exec_prefix='${prefix}'
10405 else
10406 acl_final_exec_prefix="$exec_prefix"
10407 fi
10408 acl_save_prefix="$prefix"
10409 prefix="$acl_final_prefix"
10410 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10411 prefix="$acl_save_prefix"
10412
10413
10414 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10415 if test "${with_gnu_ld+set}" = set; then
10416 withval="$with_gnu_ld"
10417 test "$withval" = no || with_gnu_ld=yes
10418 else
10419 with_gnu_ld=no
10420 fi;
10421 # Prepare PATH_SEPARATOR.
10422 # The user is always right.
10423 if test "${PATH_SEPARATOR+set}" != set; then
10424 echo "#! /bin/sh" >conf$$.sh
10425 echo "exit 0" >>conf$$.sh
10426 chmod +x conf$$.sh
10427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10428 PATH_SEPARATOR=';'
10429 else
10430 PATH_SEPARATOR=:
10431 fi
10432 rm -f conf$$.sh
10433 fi
10434 ac_prog=ld
10435 if test "$GCC" = yes; then
10436 # Check if gcc -print-prog-name=ld gives a path.
10437 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10438 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10439 case $host in
10440 *-*-mingw*)
10441 # gcc leaves a trailing carriage return which upsets mingw
10442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10443 *)
10444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10445 esac
10446 case $ac_prog in
10447 # Accept absolute paths.
10448 [\\/]* | [A-Za-z]:[\\/]*)
10449 re_direlt='/[^/][^/]*/\.\./'
10450 # Canonicalize the path of ld
10451 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10452 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10453 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10454 done
10455 test -z "$LD" && LD="$ac_prog"
10456 ;;
10457 "")
10458 # If it fails, then pretend we aren't using GCC.
10459 ac_prog=ld
10460 ;;
10461 *)
10462 # If it is relative, then search for the first ld in PATH.
10463 with_gnu_ld=unknown
10464 ;;
10465 esac
10466 elif test "$with_gnu_ld" = yes; then
10467 echo "$as_me:$LINENO: checking for GNU ld" >&5
10468 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10469 else
10470 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10471 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10472 fi
10473 if test "${acl_cv_path_LD+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 if test -z "$LD"; then
10477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10478 for ac_dir in $PATH; do
10479 test -z "$ac_dir" && ac_dir=.
10480 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10481 acl_cv_path_LD="$ac_dir/$ac_prog"
10482 # Check to see if the program is GNU ld. I'd rather use --version,
10483 # but apparently some GNU ld's only accept -v.
10484 # Break only if it was the GNU/non-GNU ld that we prefer.
10485 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10486 test "$with_gnu_ld" != no && break
10487 else
10488 test "$with_gnu_ld" != yes && break
10489 fi
10490 fi
10491 done
10492 IFS="$ac_save_ifs"
10493 else
10494 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10495 fi
10496 fi
10497
10498 LD="$acl_cv_path_LD"
10499 if test -n "$LD"; then
10500 echo "$as_me:$LINENO: result: $LD" >&5
10501 echo "${ECHO_T}$LD" >&6
10502 else
10503 echo "$as_me:$LINENO: result: no" >&5
10504 echo "${ECHO_T}no" >&6
10505 fi
10506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10508 { (exit 1); exit 1; }; }
10509 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10511 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10515 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10516 acl_cv_prog_gnu_ld=yes
10517 else
10518 acl_cv_prog_gnu_ld=no
10519 fi
10520 fi
10521 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10523 with_gnu_ld=$acl_cv_prog_gnu_ld
10524
10525
10526
10527 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10528 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10529 if test "${acl_cv_rpath+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532
10533 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10534 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10535 . ./conftest.sh
10536 rm -f ./conftest.sh
10537 acl_cv_rpath=done
10538
10539 fi
10540 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10541 echo "${ECHO_T}$acl_cv_rpath" >&6
10542 wl="$acl_cv_wl"
10543 libext="$acl_cv_libext"
10544 shlibext="$acl_cv_shlibext"
10545 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10546 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10547 hardcode_direct="$acl_cv_hardcode_direct"
10548 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10549 # Check whether --enable-rpath or --disable-rpath was given.
10550 if test "${enable_rpath+set}" = set; then
10551 enableval="$enable_rpath"
10552 :
10553 else
10554 enable_rpath=yes
10555 fi;
10556
10557
10558
10559
10560
10561
10562
10563 use_additional=yes
10564
10565 acl_save_prefix="$prefix"
10566 prefix="$acl_final_prefix"
10567 acl_save_exec_prefix="$exec_prefix"
10568 exec_prefix="$acl_final_exec_prefix"
10569
10570 eval additional_includedir=\"$includedir\"
10571 eval additional_libdir=\"$libdir\"
10572
10573 exec_prefix="$acl_save_exec_prefix"
10574 prefix="$acl_save_prefix"
10575
10576
10577 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10578 if test "${with_libiconv_prefix+set}" = set; then
10579 withval="$with_libiconv_prefix"
10580
10581 if test "X$withval" = "Xno"; then
10582 use_additional=no
10583 else
10584 if test "X$withval" = "X"; then
10585
10586 acl_save_prefix="$prefix"
10587 prefix="$acl_final_prefix"
10588 acl_save_exec_prefix="$exec_prefix"
10589 exec_prefix="$acl_final_exec_prefix"
10590
10591 eval additional_includedir=\"$includedir\"
10592 eval additional_libdir=\"$libdir\"
10593
10594 exec_prefix="$acl_save_exec_prefix"
10595 prefix="$acl_save_prefix"
10596
10597 else
10598 additional_includedir="$withval/include"
10599 additional_libdir="$withval/lib"
10600 fi
10601 fi
10602
10603 fi;
10604 LIBICONV=
10605 LTLIBICONV=
10606 INCICONV=
10607 rpathdirs=
10608 ltrpathdirs=
10609 names_already_handled=
10610 names_next_round='iconv '
10611 while test -n "$names_next_round"; do
10612 names_this_round="$names_next_round"
10613 names_next_round=
10614 for name in $names_this_round; do
10615 already_handled=
10616 for n in $names_already_handled; do
10617 if test "$n" = "$name"; then
10618 already_handled=yes
10619 break
10620 fi
10621 done
10622 if test -z "$already_handled"; then
10623 names_already_handled="$names_already_handled $name"
10624 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10625 eval value=\"\$HAVE_LIB$uppername\"
10626 if test -n "$value"; then
10627 if test "$value" = yes; then
10628 eval value=\"\$LIB$uppername\"
10629 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10630 eval value=\"\$LTLIB$uppername\"
10631 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10632 else
10633 :
10634 fi
10635 else
10636 found_dir=
10637 found_la=
10638 found_so=
10639 found_a=
10640 if test $use_additional = yes; then
10641 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10642 found_dir="$additional_libdir"
10643 found_so="$additional_libdir/lib$name.$shlibext"
10644 if test -f "$additional_libdir/lib$name.la"; then
10645 found_la="$additional_libdir/lib$name.la"
10646 fi
10647 else
10648 if test -f "$additional_libdir/lib$name.$libext"; then
10649 found_dir="$additional_libdir"
10650 found_a="$additional_libdir/lib$name.$libext"
10651 if test -f "$additional_libdir/lib$name.la"; then
10652 found_la="$additional_libdir/lib$name.la"
10653 fi
10654 fi
10655 fi
10656 fi
10657 if test "X$found_dir" = "X"; then
10658 for x in $LDFLAGS $LTLIBICONV; do
10659
10660 acl_save_prefix="$prefix"
10661 prefix="$acl_final_prefix"
10662 acl_save_exec_prefix="$exec_prefix"
10663 exec_prefix="$acl_final_exec_prefix"
10664 eval x=\"$x\"
10665 exec_prefix="$acl_save_exec_prefix"
10666 prefix="$acl_save_prefix"
10667
10668 case "$x" in
10669 -L*)
10670 dir=`echo "X$x" | sed -e 's/^X-L//'`
10671 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10672 found_dir="$dir"
10673 found_so="$dir/lib$name.$shlibext"
10674 if test -f "$dir/lib$name.la"; then
10675 found_la="$dir/lib$name.la"
10676 fi
10677 else
10678 if test -f "$dir/lib$name.$libext"; then
10679 found_dir="$dir"
10680 found_a="$dir/lib$name.$libext"
10681 if test -f "$dir/lib$name.la"; then
10682 found_la="$dir/lib$name.la"
10683 fi
10684 fi
10685 fi
10686 ;;
10687 esac
10688 if test "X$found_dir" != "X"; then
10689 break
10690 fi
10691 done
10692 fi
10693 if test "X$found_dir" != "X"; then
10694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10695 if test "X$found_so" != "X"; then
10696 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10698 else
10699 haveit=
10700 for x in $ltrpathdirs; do
10701 if test "X$x" = "X$found_dir"; then
10702 haveit=yes
10703 break
10704 fi
10705 done
10706 if test -z "$haveit"; then
10707 ltrpathdirs="$ltrpathdirs $found_dir"
10708 fi
10709 if test "$hardcode_direct" = yes; then
10710 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10711 else
10712 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10713 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10714 haveit=
10715 for x in $rpathdirs; do
10716 if test "X$x" = "X$found_dir"; then
10717 haveit=yes
10718 break
10719 fi
10720 done
10721 if test -z "$haveit"; then
10722 rpathdirs="$rpathdirs $found_dir"
10723 fi
10724 else
10725 haveit=
10726 for x in $LDFLAGS $LIBICONV; do
10727
10728 acl_save_prefix="$prefix"
10729 prefix="$acl_final_prefix"
10730 acl_save_exec_prefix="$exec_prefix"
10731 exec_prefix="$acl_final_exec_prefix"
10732 eval x=\"$x\"
10733 exec_prefix="$acl_save_exec_prefix"
10734 prefix="$acl_save_prefix"
10735
10736 if test "X$x" = "X-L$found_dir"; then
10737 haveit=yes
10738 break
10739 fi
10740 done
10741 if test -z "$haveit"; then
10742 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10743 fi
10744 if test "$hardcode_minus_L" != no; then
10745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10746 else
10747 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10748 fi
10749 fi
10750 fi
10751 fi
10752 else
10753 if test "X$found_a" != "X"; then
10754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10755 else
10756 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10757 fi
10758 fi
10759 additional_includedir=
10760 case "$found_dir" in
10761 */lib | */lib/)
10762 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10763 additional_includedir="$basedir/include"
10764 ;;
10765 esac
10766 if test "X$additional_includedir" != "X"; then
10767 if test "X$additional_includedir" != "X/usr/include"; then
10768 haveit=
10769 if test "X$additional_includedir" = "X/usr/local/include"; then
10770 if test -n "$GCC"; then
10771 case $host_os in
10772 linux*) haveit=yes;;
10773 esac
10774 fi
10775 fi
10776 if test -z "$haveit"; then
10777 for x in $CPPFLAGS $INCICONV; do
10778
10779 acl_save_prefix="$prefix"
10780 prefix="$acl_final_prefix"
10781 acl_save_exec_prefix="$exec_prefix"
10782 exec_prefix="$acl_final_exec_prefix"
10783 eval x=\"$x\"
10784 exec_prefix="$acl_save_exec_prefix"
10785 prefix="$acl_save_prefix"
10786
10787 if test "X$x" = "X-I$additional_includedir"; then
10788 haveit=yes
10789 break
10790 fi
10791 done
10792 if test -z "$haveit"; then
10793 if test -d "$additional_includedir"; then
10794 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10795 fi
10796 fi
10797 fi
10798 fi
10799 fi
10800 if test -n "$found_la"; then
10801 save_libdir="$libdir"
10802 case "$found_la" in
10803 */* | *\\*) . "$found_la" ;;
10804 *) . "./$found_la" ;;
10805 esac
10806 libdir="$save_libdir"
10807 for dep in $dependency_libs; do
10808 case "$dep" in
10809 -L*)
10810 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10811 if test "X$additional_libdir" != "X/usr/lib"; then
10812 haveit=
10813 if test "X$additional_libdir" = "X/usr/local/lib"; then
10814 if test -n "$GCC"; then
10815 case $host_os in
10816 linux*) haveit=yes;;
10817 esac
10818 fi
10819 fi
10820 if test -z "$haveit"; then
10821 haveit=
10822 for x in $LDFLAGS $LIBICONV; do
10823
10824 acl_save_prefix="$prefix"
10825 prefix="$acl_final_prefix"
10826 acl_save_exec_prefix="$exec_prefix"
10827 exec_prefix="$acl_final_exec_prefix"
10828 eval x=\"$x\"
10829 exec_prefix="$acl_save_exec_prefix"
10830 prefix="$acl_save_prefix"
10831
10832 if test "X$x" = "X-L$additional_libdir"; then
10833 haveit=yes
10834 break
10835 fi
10836 done
10837 if test -z "$haveit"; then
10838 if test -d "$additional_libdir"; then
10839 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10840 fi
10841 fi
10842 haveit=
10843 for x in $LDFLAGS $LTLIBICONV; do
10844
10845 acl_save_prefix="$prefix"
10846 prefix="$acl_final_prefix"
10847 acl_save_exec_prefix="$exec_prefix"
10848 exec_prefix="$acl_final_exec_prefix"
10849 eval x=\"$x\"
10850 exec_prefix="$acl_save_exec_prefix"
10851 prefix="$acl_save_prefix"
10852
10853 if test "X$x" = "X-L$additional_libdir"; then
10854 haveit=yes
10855 break
10856 fi
10857 done
10858 if test -z "$haveit"; then
10859 if test -d "$additional_libdir"; then
10860 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10861 fi
10862 fi
10863 fi
10864 fi
10865 ;;
10866 -R*)
10867 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10868 if test "$enable_rpath" != no; then
10869 haveit=
10870 for x in $rpathdirs; do
10871 if test "X$x" = "X$dir"; then
10872 haveit=yes
10873 break
10874 fi
10875 done
10876 if test -z "$haveit"; then
10877 rpathdirs="$rpathdirs $dir"
10878 fi
10879 haveit=
10880 for x in $ltrpathdirs; do
10881 if test "X$x" = "X$dir"; then
10882 haveit=yes
10883 break
10884 fi
10885 done
10886 if test -z "$haveit"; then
10887 ltrpathdirs="$ltrpathdirs $dir"
10888 fi
10889 fi
10890 ;;
10891 -l*)
10892 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10893 ;;
10894 *.la)
10895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10896 ;;
10897 *)
10898 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10900 ;;
10901 esac
10902 done
10903 fi
10904 else
10905 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10907 fi
10908 fi
10909 fi
10910 done
10911 done
10912 if test "X$rpathdirs" != "X"; then
10913 if test -n "$hardcode_libdir_separator"; then
10914 alldirs=
10915 for found_dir in $rpathdirs; do
10916 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10917 done
10918 acl_save_libdir="$libdir"
10919 libdir="$alldirs"
10920 eval flag=\"$hardcode_libdir_flag_spec\"
10921 libdir="$acl_save_libdir"
10922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10923 else
10924 for found_dir in $rpathdirs; do
10925 acl_save_libdir="$libdir"
10926 libdir="$found_dir"
10927 eval flag=\"$hardcode_libdir_flag_spec\"
10928 libdir="$acl_save_libdir"
10929 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10930 done
10931 fi
10932 fi
10933 if test "X$ltrpathdirs" != "X"; then
10934 for found_dir in $ltrpathdirs; do
10935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10936 done
10937 fi
10938
10939
10940
10941
10942
10943
10944
10945 am_save_CPPFLAGS="$CPPFLAGS"
10946
10947 for element in $INCICONV; do
10948 haveit=
10949 for x in $CPPFLAGS; do
10950
10951 acl_save_prefix="$prefix"
10952 prefix="$acl_final_prefix"
10953 acl_save_exec_prefix="$exec_prefix"
10954 exec_prefix="$acl_final_exec_prefix"
10955 eval x=\"$x\"
10956 exec_prefix="$acl_save_exec_prefix"
10957 prefix="$acl_save_prefix"
10958
10959 if test "X$x" = "X$element"; then
10960 haveit=yes
10961 break
10962 fi
10963 done
10964 if test -z "$haveit"; then
10965 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10966 fi
10967 done
10968
10969
10970 echo "$as_me:$LINENO: checking for iconv" >&5
10971 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10972 if test "${am_cv_func_iconv+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975
10976 am_cv_func_iconv="no, consider installing GNU libiconv"
10977 am_cv_lib_iconv=no
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <stdlib.h>
10985 #include <iconv.h>
10986 int
10987 main ()
10988 {
10989 iconv_t cd = iconv_open("","");
10990 iconv(cd,NULL,NULL,NULL,NULL);
10991 iconv_close(cd);
10992 ;
10993 return 0;
10994 }
10995 _ACEOF
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10998 (eval $ac_link) 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try='test -s conftest$ac_exeext'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 am_cv_func_iconv=yes
11019 else
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11022
11023 fi
11024 rm -f conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
11026 if test "$am_cv_func_iconv" != yes; then
11027 am_save_LIBS="$LIBS"
11028 LIBS="$LIBS $LIBICONV"
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 #include <stdlib.h>
11036 #include <iconv.h>
11037 int
11038 main ()
11039 {
11040 iconv_t cd = iconv_open("","");
11041 iconv(cd,NULL,NULL,NULL,NULL);
11042 iconv_close(cd);
11043 ;
11044 return 0;
11045 }
11046 _ACEOF
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11049 (eval $ac_link) 2>conftest.er1
11050 ac_status=$?
11051 grep -v '^ *+' conftest.er1 >conftest.err
11052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try='test -z "$ac_c_werror_flag"
11057 || test ! -s conftest.err'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; } &&
11063 { ac_try='test -s conftest$ac_exeext'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; }; then
11069 am_cv_lib_iconv=yes
11070 am_cv_func_iconv=yes
11071 else
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 fi
11076 rm -f conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11078 LIBS="$am_save_LIBS"
11079 fi
11080
11081 fi
11082 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11083 echo "${ECHO_T}$am_cv_func_iconv" >&6
11084 if test "$am_cv_func_iconv" = yes; then
11085
11086 cat >>confdefs.h <<\_ACEOF
11087 #define HAVE_ICONV 1
11088 _ACEOF
11089
11090 fi
11091 if test "$am_cv_lib_iconv" = yes; then
11092 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11093 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11094 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11095 echo "${ECHO_T}$LIBICONV" >&6
11096 else
11097 CPPFLAGS="$am_save_CPPFLAGS"
11098 LIBICONV=
11099 LTLIBICONV=
11100 fi
11101
11102
11103
11104 if test "$am_cv_func_iconv" = yes; then
11105 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11106 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11107 if test "${am_cv_proto_iconv+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117
11118 #include <stdlib.h>
11119 #include <iconv.h>
11120 extern
11121 #ifdef __cplusplus
11122 "C"
11123 #endif
11124 #if defined(__STDC__) || defined(__cplusplus)
11125 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11126 #else
11127 size_t iconv();
11128 #endif
11129
11130 int
11131 main ()
11132 {
11133
11134 ;
11135 return 0;
11136 }
11137 _ACEOF
11138 rm -f conftest.$ac_objext
11139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11140 (eval $ac_compile) 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -z "$ac_c_werror_flag"
11148 || test ! -s conftest.err'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest.$ac_objext'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11160 am_cv_proto_iconv_arg1=""
11161 else
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11164
11165 am_cv_proto_iconv_arg1="const"
11166 fi
11167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11168 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11169 fi
11170
11171 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11172 echo "$as_me:$LINENO: result: ${ac_t:-
11173 }$am_cv_proto_iconv" >&5
11174 echo "${ECHO_T}${ac_t:-
11175 }$am_cv_proto_iconv" >&6
11176
11177 cat >>confdefs.h <<_ACEOF
11178 #define ICONV_CONST $am_cv_proto_iconv_arg1
11179 _ACEOF
11180
11181 fi
11182
11183 # Until we have in-tree GNU iconv:
11184 LIBICONV_DEP=
11185
11186
11187
11188 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11189 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11190 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <locale.h>
11200 int
11201 main ()
11202 {
11203 return LC_MESSAGES
11204 ;
11205 return 0;
11206 }
11207 _ACEOF
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try='test -z "$ac_c_werror_flag"
11218 || test ! -s conftest.err'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try='test -s conftest$ac_exeext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 am_cv_val_LC_MESSAGES=yes
11231 else
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235 am_cv_val_LC_MESSAGES=no
11236 fi
11237 rm -f conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext conftest.$ac_ext
11239 fi
11240 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11241 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11242 if test $am_cv_val_LC_MESSAGES = yes; then
11243
11244 cat >>confdefs.h <<\_ACEOF
11245 #define HAVE_LC_MESSAGES 1
11246 _ACEOF
11247
11248 fi
11249
11250
11251
11252 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11253 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11254 if test "${am_cv_langinfo_codeset+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <langinfo.h>
11264 int
11265 main ()
11266 {
11267 char* cs = nl_langinfo(CODESET);
11268 ;
11269 return 0;
11270 }
11271 _ACEOF
11272 rm -f conftest.$ac_objext conftest$ac_exeext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274 (eval $ac_link) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest$ac_exeext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 am_cv_langinfo_codeset=yes
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 am_cv_langinfo_codeset=no
11300 fi
11301 rm -f conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303
11304 fi
11305 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11306 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11307 if test $am_cv_langinfo_codeset = yes; then
11308
11309 cat >>confdefs.h <<\_ACEOF
11310 #define HAVE_LANGINFO_CODESET 1
11311 _ACEOF
11312
11313 fi
11314
11315
11316 # We will need to find libiberty.h and ansidecl.h
11317 saved_CFLAGS="$CFLAGS"
11318 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11359 strsignal strstr strverscmp \
11360 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11361 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11362 do
11363 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11364 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11365 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11366 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 #undef $ac_tr_decl
11376 #define $ac_tr_decl 1
11377
11378 #include "ansidecl.h"
11379 #include "system.h"
11380
11381 int
11382 main ()
11383 {
11384 #ifndef $ac_func
11385 char *(*pfn) = (char *(*)) $ac_func ;
11386 #endif
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 eval "gcc_cv_have_decl_$ac_func=yes"
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418 eval "gcc_cv_have_decl_$ac_func=no"
11419 fi
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11421 fi
11422
11423 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11424 echo "$as_me:$LINENO: result: yes" >&5
11425 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11426 #define $ac_tr_decl 1
11427 _ACEOF
11428
11429 else
11430 echo "$as_me:$LINENO: result: no" >&5
11431 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11432 #define $ac_tr_decl 0
11433 _ACEOF
11434
11435 fi
11436
11437 done
11438
11439
11440
11441
11442
11443 for ac_func in getrlimit setrlimit getrusage
11444 do
11445 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11446 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11447 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11448 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 #undef $ac_tr_decl
11458 #define $ac_tr_decl 1
11459
11460 #include "ansidecl.h"
11461 #include "system.h"
11462 #ifdef HAVE_SYS_RESOURCE_H
11463 #include <sys/resource.h>
11464 #endif
11465
11466
11467 int
11468 main ()
11469 {
11470 #ifndef $ac_func
11471 char *(*pfn) = (char *(*)) $ac_func ;
11472 #endif
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 eval "gcc_cv_have_decl_$ac_func=yes"
11500 else
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504 eval "gcc_cv_have_decl_$ac_func=no"
11505 fi
11506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11507 fi
11508
11509 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11510 echo "$as_me:$LINENO: result: yes" >&5
11511 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11512 #define $ac_tr_decl 1
11513 _ACEOF
11514
11515 else
11516 echo "$as_me:$LINENO: result: no" >&5
11517 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11518 #define $ac_tr_decl 0
11519 _ACEOF
11520
11521 fi
11522
11523 done
11524
11525
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532
11533 #include "ansidecl.h"
11534 #include "system.h"
11535 #ifdef HAVE_SYS_RESOURCE_H
11536 #include <sys/resource.h>
11537 #endif
11538
11539 int
11540 main ()
11541 {
11542 rlim_t l = 0;
11543 ;
11544 return 0;
11545 }
11546 _ACEOF
11547 rm -f conftest.$ac_objext
11548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11549 (eval $ac_compile) 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -z "$ac_c_werror_flag"
11557 || test ! -s conftest.err'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; } &&
11563 { ac_try='test -s conftest.$ac_objext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11569 :
11570 else
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11573
11574
11575 cat >>confdefs.h <<\_ACEOF
11576 #define rlim_t long
11577 _ACEOF
11578
11579 fi
11580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11581
11582 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11583 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11584 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11585 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11586
11587 for ac_func in ldgetname
11588 do
11589 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11590 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11591 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11592 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595 cat >conftest.$ac_ext <<_ACEOF
11596 /* confdefs.h. */
11597 _ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11601 #undef $ac_tr_decl
11602 #define $ac_tr_decl 1
11603
11604 #include "ansidecl.h"
11605 #include "system.h"
11606 #ifdef HAVE_LDFCN_H
11607 #undef FREAD
11608 #undef FWRITE
11609 #include <ldfcn.h>
11610 #endif
11611
11612
11613 int
11614 main ()
11615 {
11616 #ifndef $ac_func
11617 char *(*pfn) = (char *(*)) $ac_func ;
11618 #endif
11619 ;
11620 return 0;
11621 }
11622 _ACEOF
11623 rm -f conftest.$ac_objext
11624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_c_werror_flag"
11633 || test ! -s conftest.err'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest.$ac_objext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 eval "gcc_cv_have_decl_$ac_func=yes"
11646 else
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11649
11650 eval "gcc_cv_have_decl_$ac_func=no"
11651 fi
11652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11653 fi
11654
11655 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11656 echo "$as_me:$LINENO: result: yes" >&5
11657 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11658 #define $ac_tr_decl 1
11659 _ACEOF
11660
11661 else
11662 echo "$as_me:$LINENO: result: no" >&5
11663 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11664 #define $ac_tr_decl 0
11665 _ACEOF
11666
11667 fi
11668
11669 done
11670
11671
11672
11673 for ac_func in times
11674 do
11675 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11676 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11677 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11678 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 #undef $ac_tr_decl
11688 #define $ac_tr_decl 1
11689
11690 #include "ansidecl.h"
11691 #include "system.h"
11692 #ifdef HAVE_SYS_TIMES_H
11693 #include <sys/times.h>
11694 #endif
11695
11696
11697 int
11698 main ()
11699 {
11700 #ifndef $ac_func
11701 char *(*pfn) = (char *(*)) $ac_func ;
11702 #endif
11703 ;
11704 return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709 (eval $ac_compile) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest.$ac_objext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 eval "gcc_cv_have_decl_$ac_func=yes"
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734 eval "gcc_cv_have_decl_$ac_func=no"
11735 fi
11736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11737 fi
11738
11739 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11740 echo "$as_me:$LINENO: result: yes" >&5
11741 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11742 #define $ac_tr_decl 1
11743 _ACEOF
11744
11745 else
11746 echo "$as_me:$LINENO: result: no" >&5
11747 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11748 #define $ac_tr_decl 0
11749 _ACEOF
11750
11751 fi
11752
11753 done
11754
11755
11756
11757 for ac_func in sigaltstack
11758 do
11759 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11760 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11761 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11762 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 #undef $ac_tr_decl
11772 #define $ac_tr_decl 1
11773
11774 #include "ansidecl.h"
11775 #include "system.h"
11776 #include <signal.h>
11777
11778
11779 int
11780 main ()
11781 {
11782 #ifndef $ac_func
11783 char *(*pfn) = (char *(*)) $ac_func ;
11784 #endif
11785 ;
11786 return 0;
11787 }
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 eval "gcc_cv_have_decl_$ac_func=yes"
11812 else
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11815
11816 eval "gcc_cv_have_decl_$ac_func=no"
11817 fi
11818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819 fi
11820
11821 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11822 echo "$as_me:$LINENO: result: yes" >&5
11823 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11824 #define $ac_tr_decl 1
11825 _ACEOF
11826
11827 else
11828 echo "$as_me:$LINENO: result: no" >&5
11829 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11830 #define $ac_tr_decl 0
11831 _ACEOF
11832
11833 fi
11834
11835 done
11836
11837
11838 # More time-related stuff.
11839 echo "$as_me:$LINENO: checking for struct tms" >&5
11840 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11841 if test "${ac_cv_struct_tms+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851
11852 #include "ansidecl.h"
11853 #include "system.h"
11854 #ifdef HAVE_SYS_TIMES_H
11855 #include <sys/times.h>
11856 #endif
11857
11858 int
11859 main ()
11860 {
11861 struct tms tms;
11862 ;
11863 return 0;
11864 }
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868 (eval $ac_compile) 2>conftest.er1
11869 ac_status=$?
11870 grep -v '^ *+' conftest.er1 >conftest.err
11871 rm -f conftest.er1
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } &&
11875 { ac_try='test -z "$ac_c_werror_flag"
11876 || test ! -s conftest.err'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest.$ac_objext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_struct_tms=yes
11889 else
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 ac_cv_struct_tms=no
11894 fi
11895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11896 fi
11897 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11898 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11899 if test $ac_cv_struct_tms = yes; then
11900
11901 cat >>confdefs.h <<\_ACEOF
11902 #define HAVE_STRUCT_TMS 1
11903 _ACEOF
11904
11905 fi
11906
11907 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11908 # revisit after autoconf 2.50.
11909 echo "$as_me:$LINENO: checking for clock_t" >&5
11910 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11911 if test "${gcc_cv_type_clock_t+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h. */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921
11922 #include "ansidecl.h"
11923 #include "system.h"
11924
11925 int
11926 main ()
11927 {
11928 clock_t x;
11929 ;
11930 return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11935 (eval $ac_compile) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 gcc_cv_type_clock_t=yes
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960 gcc_cv_type_clock_t=no
11961 fi
11962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11963 fi
11964 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11965 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11966 if test $gcc_cv_type_clock_t = yes; then
11967
11968 cat >>confdefs.h <<\_ACEOF
11969 #define HAVE_CLOCK_T 1
11970 _ACEOF
11971
11972 fi
11973
11974 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11975 CFLAGS="$saved_CFLAGS"
11976
11977 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11978 if test "${enable_initfini_array+set}" = set; then
11979 enableval="$enable_initfini_array"
11980
11981 else
11982
11983 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11984 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11985 if test "${gcc_cv_initfini_array+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988 if test "$cross_compiling" = yes; then
11989 gcc_cv_initfini_array=no
11990 else
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997
11998 static int x = -1;
11999 int main (void) { return x; }
12000 int foo (void) { x = 0; }
12001 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12002 _ACEOF
12003 rm -f conftest$ac_exeext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005 (eval $ac_link) 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 gcc_cv_initfini_array=yes
12015 else
12016 echo "$as_me: program exited with status $ac_status" >&5
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12019
12020 ( exit $ac_status )
12021 gcc_cv_initfini_array=no
12022 fi
12023 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12024 fi
12025 fi
12026 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12027 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12028 enable_initfini_array=$gcc_cv_initfini_array
12029
12030 fi;
12031 if test $enable_initfini_array = yes; then
12032
12033 cat >>confdefs.h <<\_ACEOF
12034 #define HAVE_INITFINI_ARRAY 1
12035 _ACEOF
12036
12037 fi
12038
12039 # mkdir takes a single argument on some systems.
12040 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12041 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12042 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h. */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051
12052 #include <sys/types.h>
12053 #ifdef HAVE_SYS_STAT_H
12054 # include <sys/stat.h>
12055 #endif
12056 #ifdef HAVE_UNISTD_H
12057 # include <unistd.h>
12058 #endif
12059 #ifdef HAVE_DIRECT_H
12060 # include <direct.h>
12061 #endif
12062 int
12063 main ()
12064 {
12065 mkdir ("foo", 0);
12066 ;
12067 return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072 (eval $ac_compile) 2>conftest.er1
12073 ac_status=$?
12074 grep -v '^ *+' conftest.er1 >conftest.err
12075 rm -f conftest.er1
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -z "$ac_c_werror_flag"
12080 || test ! -s conftest.err'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest.$ac_objext'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 gcc_cv_mkdir_takes_one_arg=no
12093 else
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12096
12097 gcc_cv_mkdir_takes_one_arg=yes
12098 fi
12099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12100 fi
12101 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12102 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12103 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12104
12105 cat >>confdefs.h <<\_ACEOF
12106 #define MKDIR_TAKES_ONE_ARG 1
12107 _ACEOF
12108
12109 fi
12110
12111
12112 # File extensions
12113 manext='.1'
12114 objext='.o'
12115
12116
12117
12118 # With Setjmp/Longjmp based exception handling.
12119 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12120 if test "${enable_sjlj_exceptions+set}" = set; then
12121 enableval="$enable_sjlj_exceptions"
12122 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12123
12124 cat >>confdefs.h <<_ACEOF
12125 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12126 _ACEOF
12127
12128 fi;
12129
12130 # For platforms with the unwind ABI which includes an unwind library,
12131 # libunwind, we can choose to use the system libunwind.
12132
12133 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12134 if test "${with_system_libunwind+set}" = set; then
12135 withval="$with_system_libunwind"
12136
12137 fi;
12138
12139 # config.gcc also contains tests of with_system_libunwind.
12140 if test x$with_system_libunwind = xyes; then
12141
12142 cat >>confdefs.h <<\_ACEOF
12143 #define HAVE_GETIPINFO 1
12144 _ACEOF
12145
12146 fi
12147
12148 # --------------------------------------------------------
12149 # Build, host, and target specific configuration fragments
12150 # --------------------------------------------------------
12151
12152 # Collect build-machine-specific information.
12153 . ${srcdir}/config.build
12154
12155 # Collect host-machine-specific information.
12156 . ${srcdir}/config.host
12157
12158 target_gtfiles=
12159
12160 # Collect target-machine-specific information.
12161 . ${srcdir}/config.gcc
12162
12163 extra_objs="${host_extra_objs} ${extra_objs}"
12164 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12165
12166 # Default the target-machine variables that were not explicitly set.
12167 if test x"$tm_file" = x
12168 then tm_file=$cpu_type/$cpu_type.h; fi
12169
12170 if test x"$extra_headers" = x
12171 then extra_headers=; fi
12172
12173 if test x$md_file = x
12174 then md_file=$cpu_type/$cpu_type.md; fi
12175
12176 if test x$out_file = x
12177 then out_file=$cpu_type/$cpu_type.c; fi
12178
12179 if test x"$tmake_file" = x
12180 then tmake_file=$cpu_type/t-$cpu_type
12181 fi
12182
12183 if test x"$dwarf2" = xyes
12184 then tm_file="$tm_file tm-dwarf2.h"
12185 fi
12186
12187 # Say what files are being used for the output code and MD file.
12188 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12189 echo "Using \`$srcdir/config/$md_file' as machine description file."
12190
12191 # If any of the xm_file variables contain nonexistent files, warn
12192 # about them and drop them.
12193
12194 bx=
12195 for x in $build_xm_file; do
12196 if test -f $srcdir/config/$x
12197 then bx="$bx $x"
12198 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12199 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12200 fi
12201 done
12202 build_xm_file="$bx"
12203
12204 hx=
12205 for x in $host_xm_file; do
12206 if test -f $srcdir/config/$x
12207 then hx="$hx $x"
12208 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12209 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12210 fi
12211 done
12212 host_xm_file="$hx"
12213
12214 tx=
12215 for x in $xm_file; do
12216 if test -f $srcdir/config/$x
12217 then tx="$tx $x"
12218 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12219 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12220 fi
12221 done
12222 xm_file="$tx"
12223
12224 count=a
12225 for f in $tm_file; do
12226 count=${count}x
12227 done
12228 if test $count = ax; then
12229 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12230 else
12231 echo "Using the following target machine macro files:"
12232 for f in $tm_file; do
12233 echo " $srcdir/config/$f"
12234 done
12235 fi
12236
12237 if test x$need_64bit_hwint = xyes; then
12238
12239 cat >>confdefs.h <<\_ACEOF
12240 #define NEED_64BIT_HOST_WIDE_INT 1
12241 _ACEOF
12242
12243 fi
12244
12245 if test x$use_long_long_for_widest_fast_int = xyes; then
12246
12247 cat >>confdefs.h <<\_ACEOF
12248 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12249 _ACEOF
12250
12251 fi
12252
12253 count=a
12254 for f in $host_xm_file; do
12255 count=${count}x
12256 done
12257 if test $count = a; then
12258 :
12259 elif test $count = ax; then
12260 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12261 else
12262 echo "Using the following host machine macro files:"
12263 for f in $host_xm_file; do
12264 echo " $srcdir/config/$f"
12265 done
12266 fi
12267 echo "Using ${out_host_hook_obj} for host machine hooks."
12268
12269 if test "$host_xm_file" != "$build_xm_file"; then
12270 count=a
12271 for f in $build_xm_file; do
12272 count=${count}x
12273 done
12274 if test $count = a; then
12275 :
12276 elif test $count = ax; then
12277 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12278 else
12279 echo "Using the following build machine macro files:"
12280 for f in $build_xm_file; do
12281 echo " $srcdir/config/$f"
12282 done
12283 fi
12284 fi
12285
12286 case ${host} in
12287 powerpc*-*-darwin*)
12288 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12289 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12290 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293 cat >conftest.$ac_ext <<_ACEOF
12294
12295 #include <sys/cdefs.h>
12296 #include <sys/signal.h>
12297 #include <ucontext.h>
12298 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12299
12300 _ACEOF
12301 rm -f conftest.$ac_objext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303 (eval $ac_compile) 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag"
12311 || test ! -s conftest.err'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest.$ac_objext'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 gcc_cv_mcontext_underscores=no
12324 else
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12327
12328 gcc_cv_mcontext_underscores=yes
12329 fi
12330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12331 fi
12332 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12333 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12334 if test $gcc_cv_mcontext_underscores = yes; then
12335
12336 cat >>confdefs.h <<\_ACEOF
12337 #define HAS_MCONTEXT_T_UNDERSCORES
12338 _ACEOF
12339
12340 fi
12341 ;;
12342 esac
12343
12344 # ---------
12345 # Threading
12346 # ---------
12347
12348 # Check if a valid thread package
12349 case ${enable_threads} in
12350 "" | no)
12351 # No threads
12352 target_thread_file='single'
12353 ;;
12354 yes)
12355 # default
12356 target_thread_file='single'
12357 ;;
12358 aix | dce | gnat | irix | posix | posix95 | rtems | \
12359 single | solaris | vxworks | win32 )
12360 target_thread_file=${enable_threads}
12361 ;;
12362 *)
12363 echo "${enable_threads} is an unknown thread package" 1>&2
12364 exit 1
12365 ;;
12366 esac
12367
12368 if test x${thread_file} = x; then
12369 # No thread file set by target-specific clauses in config.gcc,
12370 # so use file chosen by default logic above
12371 thread_file=${target_thread_file}
12372 fi
12373
12374 # Make gthr-default.h if we have a thread file.
12375 gthread_flags=
12376 if test $thread_file != single; then
12377 rm -f gthr-default.h
12378 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12379 gthread_flags=-DHAVE_GTHR_DEFAULT
12380 fi
12381
12382
12383 # --------
12384 # UNSORTED
12385 # --------
12386
12387 use_cxa_atexit=no
12388 if test x$enable___cxa_atexit = xyes || \
12389 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12390 if test x$host = x$target; then
12391 case $host in
12392 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12393 # keyed to flag_use_cxa_atexit
12394 *-*-mingw32*)
12395 use_cxa_atexit=yes
12396 ;;
12397 *)
12398 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12399 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12400 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12411 #define __cxa_atexit innocuous___cxa_atexit
12412
12413 /* System header to define __stub macros and hopefully few prototypes,
12414 which can conflict with char __cxa_atexit (); below.
12415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12416 <limits.h> exists even on freestanding compilers. */
12417
12418 #ifdef __STDC__
12419 # include <limits.h>
12420 #else
12421 # include <assert.h>
12422 #endif
12423
12424 #undef __cxa_atexit
12425
12426 /* Override any gcc2 internal prototype to avoid an error. */
12427 #ifdef __cplusplus
12428 extern "C"
12429 {
12430 #endif
12431 /* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12433 char __cxa_atexit ();
12434 /* The GNU C library defines this for functions which it implements
12435 to always fail with ENOSYS. Some functions are actually named
12436 something starting with __ and the normal name is an alias. */
12437 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12438 choke me
12439 #else
12440 char (*f) () = __cxa_atexit;
12441 #endif
12442 #ifdef __cplusplus
12443 }
12444 #endif
12445
12446 int
12447 main ()
12448 {
12449 return f != __cxa_atexit;
12450 ;
12451 return 0;
12452 }
12453 _ACEOF
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_c_werror_flag"
12464 || test ! -s conftest.err'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_cv_func___cxa_atexit=yes
12477 else
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481 ac_cv_func___cxa_atexit=no
12482 fi
12483 rm -f conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12485 fi
12486 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12487 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12488 if test $ac_cv_func___cxa_atexit = yes; then
12489 use_cxa_atexit=yes
12490 else
12491 echo "__cxa_atexit can't be enabled on this target"
12492 fi
12493
12494 ;;
12495 esac
12496 else
12497 # We can't check for __cxa_atexit when building a cross, so assume
12498 # it is available
12499 use_cxa_atexit=yes
12500 fi
12501 if test x$use_cxa_atexit = xyes; then
12502
12503 cat >>confdefs.h <<\_ACEOF
12504 #define DEFAULT_USE_CXA_ATEXIT 2
12505 _ACEOF
12506
12507 fi
12508 fi
12509
12510 use_getipinfo=yes
12511 if test x$with_system_libunwind = xyes; then
12512 if test x$host = x$target; then
12513 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12514 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12515 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518 ac_func_search_save_LIBS=$LIBS
12519 ac_cv_search__Unwind_GetIPInfo=no
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526
12527 /* Override any gcc2 internal prototype to avoid an error. */
12528 #ifdef __cplusplus
12529 extern "C"
12530 #endif
12531 /* We use char because int might match the return type of a gcc2
12532 builtin and then its argument prototype would still apply. */
12533 char _Unwind_GetIPInfo ();
12534 int
12535 main ()
12536 {
12537 _Unwind_GetIPInfo ();
12538 ;
12539 return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag"
12552 || test ! -s conftest.err'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try='test -s conftest$ac_exeext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_search__Unwind_GetIPInfo="none required"
12565 else
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569 fi
12570 rm -f conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12573 for ac_lib in unwind; do
12574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581
12582 /* Override any gcc2 internal prototype to avoid an error. */
12583 #ifdef __cplusplus
12584 extern "C"
12585 #endif
12586 /* We use char because int might match the return type of a gcc2
12587 builtin and then its argument prototype would still apply. */
12588 char _Unwind_GetIPInfo ();
12589 int
12590 main ()
12591 {
12592 _Unwind_GetIPInfo ();
12593 ;
12594 return 0;
12595 }
12596 _ACEOF
12597 rm -f conftest.$ac_objext conftest$ac_exeext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12599 (eval $ac_link) 2>conftest.er1
12600 ac_status=$?
12601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -z "$ac_c_werror_flag"
12607 || test ! -s conftest.err'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest$ac_exeext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12620 break
12621 else
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12624
12625 fi
12626 rm -f conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12628 done
12629 fi
12630 LIBS=$ac_func_search_save_LIBS
12631 fi
12632 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12633 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12634 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12635 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12636
12637 else
12638 use_getipinfo=no
12639 fi
12640
12641 fi
12642 fi
12643
12644 if test x$use_getipinfo = xyes; then
12645
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_GETIPINFO 1
12648 _ACEOF
12649
12650 else
12651 echo "The system unwind library does not support _Unwind_GetIPInfo."
12652 fi
12653
12654 # Look for a file containing extra machine modes.
12655 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12656 extra_modes_file='$(srcdir)'/config/${extra_modes}
12657
12658
12659 cat >>confdefs.h <<_ACEOF
12660 #define EXTRA_MODES_FILE "config/$extra_modes"
12661 _ACEOF
12662
12663 fi
12664
12665 # Convert extra_options into a form suitable for Makefile use.
12666 extra_opt_files=
12667 for f in $extra_options; do
12668 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12669 done
12670
12671
12672 # auto-host.h is the file containing items generated by autoconf and is
12673 # the first file included by config.h.
12674 # If host=build, it is correct to have bconfig include auto-host.h
12675 # as well. If host!=build, we are in error and need to do more
12676 # work to find out the build config parameters.
12677 if test x$host = x$build
12678 then
12679 build_auto=auto-host.h
12680 else
12681 # We create a subdir, then run autoconf in the subdir.
12682 # To prevent recursion we set host and build for the new
12683 # invocation of configure to the build for this invocation
12684 # of configure.
12685 tempdir=build.$$
12686 rm -rf $tempdir
12687 mkdir $tempdir
12688 cd $tempdir
12689 case ${srcdir} in
12690 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12691 *) realsrcdir=../${srcdir};;
12692 esac
12693 saved_CFLAGS="${CFLAGS}"
12694 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12695 ${realsrcdir}/configure \
12696 --enable-languages=${enable_languages-all} \
12697 --target=$target_alias --host=$build_alias --build=$build_alias
12698 CFLAGS="${saved_CFLAGS}"
12699
12700 # We just finished tests for the build machine, so rename
12701 # the file auto-build.h in the gcc directory.
12702 mv auto-host.h ../auto-build.h
12703 cd ..
12704 rm -rf $tempdir
12705 build_auto=auto-build.h
12706 fi
12707
12708
12709 tm_file="${tm_file} defaults.h"
12710 tm_p_file="${tm_p_file} tm-preds.h"
12711 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12712 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12713 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12714 # put this back in temporarily.
12715 xm_file="auto-host.h ansidecl.h ${xm_file}"
12716
12717 # --------
12718 # UNSORTED
12719 # --------
12720
12721 # Compile in configure arguments.
12722 if test -f configargs.h ; then
12723 # Being re-configured.
12724 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12725 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12726 else
12727 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12728 fi
12729
12730 # Double all backslashes and backslash all quotes to turn
12731 # gcc_config_arguments into a C string.
12732 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12733 $gcc_config_arguments
12734 EOF
12735 gcc_config_arguments_str=`cat conftest.out`
12736 rm -f conftest.out
12737
12738 cat > configargs.h <<EOF
12739 /* Generated automatically. */
12740 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12741 static const char thread_model[] = "$thread_file";
12742
12743 static const struct {
12744 const char *name, *value;
12745 } configure_default_options[] = $configure_default_options;
12746 EOF
12747
12748 # Internationalization
12749 # If we haven't got the data from the intl directory,
12750 # assume NLS is disabled.
12751 USE_NLS=no
12752 LIBINTL=
12753 LIBINTL_DEP=
12754 INCINTL=
12755 XGETTEXT=
12756 GMSGFMT=
12757 POSUB=
12758
12759 if test -f ../intl/config.intl; then
12760 . ../intl/config.intl
12761 fi
12762 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12763 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12764 if test x"$USE_NLS" != xyes; then
12765 echo "$as_me:$LINENO: result: no" >&5
12766 echo "${ECHO_T}no" >&6
12767 else
12768 echo "$as_me:$LINENO: result: yes" >&5
12769 echo "${ECHO_T}yes" >&6
12770
12771 cat >>confdefs.h <<\_ACEOF
12772 #define ENABLE_NLS 1
12773 _ACEOF
12774
12775
12776 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12777 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12778 # Look for .po and .gmo files in the source directory.
12779 CATALOGS=
12780 XLINGUAS=
12781 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12782 # If there aren't any .gmo files the shell will give us the
12783 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12784 # weeded out.
12785 case "$cat" in *\**)
12786 continue;;
12787 esac
12788 # The quadruple backslash is collapsed to a double backslash
12789 # by the backticks, then collapsed again by the double quotes,
12790 # leaving us with one backslash in the sed expression (right
12791 # before the dot that mustn't act as a wildcard).
12792 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12793 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12794 # The user is allowed to set LINGUAS to a list of languages to
12795 # install catalogs for. If it's empty that means "all of them."
12796 if test "x$LINGUAS" = x; then
12797 CATALOGS="$CATALOGS $cat"
12798 XLINGUAS="$XLINGUAS $lang"
12799 else
12800 case "$LINGUAS" in *$lang*)
12801 CATALOGS="$CATALOGS $cat"
12802 XLINGUAS="$XLINGUAS $lang"
12803 ;;
12804 esac
12805 fi
12806 done
12807 LINGUAS="$XLINGUAS"
12808 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12809 echo "${ECHO_T}$LINGUAS" >&6
12810
12811
12812 DATADIRNAME=share
12813
12814 INSTOBJEXT=.mo
12815
12816 GENCAT=gencat
12817
12818 CATOBJEXT=.gmo
12819
12820 fi
12821
12822 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12823 # -liconv on the link line twice.
12824 case "$LIBINTL" in *$LIBICONV*)
12825 LIBICONV= ;;
12826 esac
12827
12828 # Check whether --enable-secureplt or --disable-secureplt was given.
12829 if test "${enable_secureplt+set}" = set; then
12830 enableval="$enable_secureplt"
12831
12832 fi;
12833
12834 # Windows32 Registry support for specifying GCC installation paths.
12835 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12836 if test "${enable_win32_registry+set}" = set; then
12837 enableval="$enable_win32_registry"
12838
12839 fi;
12840
12841 case $host_os in
12842 win32 | pe | cygwin* | mingw32* | uwin*)
12843 if test "x$enable_win32_registry" != xno; then
12844 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12845 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12846 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849 ac_func_search_save_LIBS=$LIBS
12850 ac_cv_search_RegOpenKeyExA=no
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h. */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857
12858 /* Override any gcc2 internal prototype to avoid an error. */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 /* We use char because int might match the return type of a gcc2
12863 builtin and then its argument prototype would still apply. */
12864 char RegOpenKeyExA ();
12865 int
12866 main ()
12867 {
12868 RegOpenKeyExA ();
12869 ;
12870 return 0;
12871 }
12872 _ACEOF
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 ac_cv_search_RegOpenKeyExA="none required"
12896 else
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12899
12900 fi
12901 rm -f conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12904 for ac_lib in advapi32; do
12905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12906 cat >conftest.$ac_ext <<_ACEOF
12907 /* confdefs.h. */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12912
12913 /* Override any gcc2 internal prototype to avoid an error. */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12919 char RegOpenKeyExA ();
12920 int
12921 main ()
12922 {
12923 RegOpenKeyExA ();
12924 ;
12925 return 0;
12926 }
12927 _ACEOF
12928 rm -f conftest.$ac_objext conftest$ac_exeext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930 (eval $ac_link) 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest$ac_exeext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12951 break
12952 else
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 fi
12957 rm -f conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959 done
12960 fi
12961 LIBS=$ac_func_search_save_LIBS
12962 fi
12963 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12964 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12965 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12966 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12967
12968 else
12969 enable_win32_registry=no
12970 fi
12971
12972 fi
12973
12974 if test "x$enable_win32_registry" != xno; then
12975
12976 cat >>confdefs.h <<\_ACEOF
12977 #define ENABLE_WIN32_REGISTRY 1
12978 _ACEOF
12979
12980
12981 if test "x$enable_win32_registry" != xyes \
12982 && test "x$enable_win32_registry" != x; then
12983
12984 cat >>confdefs.h <<_ACEOF
12985 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12986 _ACEOF
12987
12988 fi
12989 fi
12990 ;;
12991 esac
12992
12993 # Get an absolute path to the GCC top-level source directory
12994 holddir=`${PWDCMD-pwd}`
12995 cd $srcdir
12996 topdir=`${PWDCMD-pwd}`
12997 cd $holddir
12998
12999 # Conditionalize the makefile for this host machine.
13000 xmake_file=
13001 for f in ${host_xmake_file}
13002 do
13003 if test -f ${srcdir}/config/$f
13004 then
13005 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13006 fi
13007 done
13008
13009 # Conditionalize the makefile for this target machine.
13010 tmake_file_=
13011 for f in ${tmake_file}
13012 do
13013 if test -f ${srcdir}/config/$f
13014 then
13015 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13016 fi
13017 done
13018 tmake_file="${tmake_file_}"
13019
13020 # This is a terrible hack which will go away some day.
13021 host_cc_for_libada=${CC}
13022
13023
13024 out_object_file=`basename $out_file .c`.o
13025
13026 tm_file_list="options.h"
13027 tm_include_list="options.h"
13028 for f in $tm_file; do
13029 case $f in
13030 ./* )
13031 f=`echo $f | sed 's/^..//'`
13032 tm_file_list="${tm_file_list} $f"
13033 tm_include_list="${tm_include_list} $f"
13034 ;;
13035 defaults.h )
13036 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13037 tm_include_list="${tm_include_list} $f"
13038 ;;
13039 * )
13040 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13041 tm_include_list="${tm_include_list} config/$f"
13042 ;;
13043 esac
13044 done
13045
13046 tm_p_file_list=
13047 tm_p_include_list=
13048 for f in $tm_p_file; do
13049 case $f in
13050 tm-preds.h )
13051 tm_p_file_list="${tm_p_file_list} $f"
13052 tm_p_include_list="${tm_p_include_list} $f"
13053 ;;
13054 * )
13055 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13056 tm_p_include_list="${tm_p_include_list} config/$f"
13057 esac
13058 done
13059
13060 xm_file_list=
13061 xm_include_list=
13062 for f in $xm_file; do
13063 case $f in
13064 ansidecl.h )
13065 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13066 xm_include_list="${xm_include_list} $f"
13067 ;;
13068 auto-host.h )
13069 xm_file_list="${xm_file_list} $f"
13070 xm_include_list="${xm_include_list} $f"
13071 ;;
13072 * )
13073 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13074 xm_include_list="${xm_include_list} config/$f"
13075 ;;
13076 esac
13077 done
13078
13079 host_xm_file_list=
13080 host_xm_include_list=
13081 for f in $host_xm_file; do
13082 case $f in
13083 ansidecl.h )
13084 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13085 host_xm_include_list="${host_xm_include_list} $f"
13086 ;;
13087 auto-host.h )
13088 host_xm_file_list="${host_xm_file_list} $f"
13089 host_xm_include_list="${host_xm_include_list} $f"
13090 ;;
13091 * )
13092 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13093 host_xm_include_list="${host_xm_include_list} config/$f"
13094 ;;
13095 esac
13096 done
13097
13098 build_xm_file_list=
13099 for f in $build_xm_file; do
13100 case $f in
13101 ansidecl.h )
13102 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13103 build_xm_include_list="${build_xm_include_list} $f"
13104 ;;
13105 auto-build.h | auto-host.h )
13106 build_xm_file_list="${build_xm_file_list} $f"
13107 build_xm_include_list="${build_xm_include_list} $f"
13108 ;;
13109 * )
13110 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13111 build_xm_include_list="${build_xm_include_list} config/$f"
13112 ;;
13113 esac
13114 done
13115
13116 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13117 # cross-compiler which does not use the native headers and libraries.
13118 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13119 CROSS=
13120 ALL=all.internal
13121 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13122
13123 if test "x$with_build_sysroot" != x; then
13124 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13125 else
13126 # This value is used, even on a native system, because
13127 # CROSS_SYSTEM_HEADER_DIR is just
13128 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13129 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13130 fi
13131
13132 if test x$host != x$target
13133 then
13134 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13135 ALL=all.cross
13136 SYSTEM_HEADER_DIR=$build_system_header_dir
13137 case "$host","$target" in
13138 # Darwin crosses can use the host system's libraries and headers,
13139 # because of the fat library support. Of course, it must be the
13140 # same version of Darwin on both sides. Allow the user to
13141 # just say --target=foo-darwin without a version number to mean
13142 # "the version on this system".
13143 *-*-darwin*,*-*-darwin*)
13144 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13145 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13146 if test $hostos = $targetos -o $targetos = darwin ; then
13147 CROSS=
13148 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13149 with_headers=yes
13150 fi
13151 ;;
13152
13153 i?86-*-*,x86_64-*-* \
13154 | powerpc*-*-*,powerpc64*-*-*)
13155 CROSS="$CROSS -DNATIVE_CROSS" ;;
13156 esac
13157 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13158 SYSTEM_HEADER_DIR=$build_system_header_dir
13159 fi
13160
13161 # If this is a cross-compiler that does not
13162 # have its own set of headers then define
13163 # inhibit_libc
13164
13165 # If this is using newlib, without having the headers available now,
13166 # then define inhibit_libc in LIBGCC2_CFLAGS.
13167 # This prevents libgcc2 from containing any code which requires libc
13168 # support.
13169 inhibit_libc=false
13170 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13171 test x$with_newlib = xyes ; } &&
13172 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13173 inhibit_libc=true
13174 fi
13175
13176
13177 # When building gcc with a cross-compiler, we need to adjust things so
13178 # that the generator programs are still built with the native compiler.
13179 # Also, we cannot run fixincludes or fix-header.
13180
13181 # These are the normal (build=host) settings:
13182 CC_FOR_BUILD='$(CC)'
13183 BUILD_CFLAGS='$(ALL_CFLAGS)'
13184 STMP_FIXINC=stmp-fixinc
13185
13186 # Possibly disable fixproto, on a per-target basis.
13187 case ${use_fixproto} in
13188 no)
13189 STMP_FIXPROTO=
13190 ;;
13191 yes)
13192 STMP_FIXPROTO=stmp-fixproto
13193 ;;
13194 esac
13195
13196
13197 # And these apply if build != host, or we are generating coverage data
13198 if test x$build != x$host || test "x$coverage_flags" != x
13199 then
13200 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13201
13202 if test "x$TARGET_SYSTEM_ROOT" = x; then
13203 if test "x$STMP_FIXPROTO" != x; then
13204 STMP_FIXPROTO=stmp-install-fixproto
13205 fi
13206 fi
13207 fi
13208
13209 # Expand extra_headers to include complete path.
13210 # This substitutes for lots of t-* files.
13211 extra_headers_list=
13212 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13213 for file in ${extra_headers} ; do
13214 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13215 done
13216
13217 # Define collect2 in Makefile.
13218 case $host_can_use_collect2 in
13219 no) collect2= ;;
13220 *) collect2='collect2$(exeext)' ;;
13221 esac
13222
13223
13224 # Add a definition of USE_COLLECT2 if system wants one.
13225 case $use_collect2 in
13226 no) use_collect2= ;;
13227 "") ;;
13228 *)
13229 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13230 xm_defines="${xm_defines} USE_COLLECT2"
13231 case $host_can_use_collect2 in
13232 no)
13233 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13234 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13235 { (exit 1); exit 1; }; }
13236 ;;
13237 esac
13238 ;;
13239 esac
13240
13241 # ---------------------------
13242 # Assembler & linker features
13243 # ---------------------------
13244
13245 # Identify the assembler which will work hand-in-glove with the newly
13246 # built GCC, so that we can examine its features. This is the assembler
13247 # which will be driven by the driver program.
13248 #
13249 # If build != host, and we aren't building gas in-tree, we identify a
13250 # build->target assembler and hope that it will have the same features
13251 # as the host->target assembler we'll be using.
13252 gcc_cv_gas_major_version=
13253 gcc_cv_gas_minor_version=
13254 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13255
13256 if test "${gcc_cv_as+set}" = set; then
13257 :
13258 else
13259
13260 if test -x "$DEFAULT_ASSEMBLER"; then
13261 gcc_cv_as="$DEFAULT_ASSEMBLER"
13262 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13263 && test -f ../gas/Makefile \
13264 && test x$build = x$host; then
13265 gcc_cv_as=../gas/as-new$build_exeext
13266 elif test -x as$build_exeext; then
13267 # Build using assembler in the current directory.
13268 gcc_cv_as=./as$build_exeext
13269 elif test -x $AS_FOR_TARGET; then
13270 gcc_cv_as="$AS_FOR_TARGET"
13271 else
13272 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13273 set dummy $AS_FOR_TARGET; ac_word=$2
13274 echo "$as_me:$LINENO: checking for $ac_word" >&5
13275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13276 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279 case $gcc_cv_as in
13280 [\\/]* | ?:[\\/]*)
13281 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13282 ;;
13283 *)
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13286 do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295 done
13296 done
13297
13298 ;;
13299 esac
13300 fi
13301 gcc_cv_as=$ac_cv_path_gcc_cv_as
13302
13303 if test -n "$gcc_cv_as"; then
13304 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13305 echo "${ECHO_T}$gcc_cv_as" >&6
13306 else
13307 echo "$as_me:$LINENO: result: no" >&5
13308 echo "${ECHO_T}no" >&6
13309 fi
13310
13311 fi
13312 fi
13313
13314
13315 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13316
13317
13318 echo "$as_me:$LINENO: checking what assembler to use" >&5
13319 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13320 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13321 # Single tree build which includes gas. We want to prefer it
13322 # over whatever linker top-level may have detected, since
13323 # we'll use what we're building after installation anyway.
13324 echo "$as_me:$LINENO: result: newly built gas" >&5
13325 echo "${ECHO_T}newly built gas" >&6
13326 in_tree_gas=yes
13327 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13328 for f in $gcc_cv_as_bfd_srcdir/configure \
13329 $gcc_cv_as_gas_srcdir/configure \
13330 $gcc_cv_as_gas_srcdir/configure.in \
13331 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13332 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13333 if test x$gcc_cv_gas_version != x; then
13334 break
13335 fi
13336 done
13337 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13338 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13339 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13340 case $gcc_cv_gas_patch_version in
13341 "") gcc_cv_gas_patch_version="0" ;;
13342 esac
13343 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13344 + $gcc_cv_gas_minor_version \) \* 1000 \
13345 + $gcc_cv_gas_patch_version`
13346
13347 in_tree_gas_is_elf=no
13348 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13349 || (grep 'obj_format = multi' ../gas/Makefile \
13350 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13351 then
13352 in_tree_gas_is_elf=yes
13353 fi
13354 else
13355 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13356 echo "${ECHO_T}$gcc_cv_as" >&6
13357 in_tree_gas=no
13358 fi
13359
13360 # Identify the linker which will work hand-in-glove with the newly
13361 # built GCC, so that we can examine its features. This is the linker
13362 # which will be driven by the driver program.
13363 #
13364 # If build != host, and we aren't building gas in-tree, we identify a
13365 # build->target linker and hope that it will have the same features
13366 # as the host->target linker we'll be using.
13367 gcc_cv_gld_major_version=
13368 gcc_cv_gld_minor_version=
13369 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13370 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13371
13372 if test "${gcc_cv_ld+set}" = set; then
13373 :
13374 else
13375
13376 if test -x "$DEFAULT_LINKER"; then
13377 gcc_cv_ld="$DEFAULT_LINKER"
13378 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13379 && test -f ../ld/Makefile \
13380 && test x$build = x$host; then
13381 gcc_cv_ld=../ld/ld-new$build_exeext
13382 elif test -x collect-ld$build_exeext; then
13383 # Build using linker in the current directory.
13384 gcc_cv_ld=./collect-ld$build_exeext
13385 elif test -x $LD_FOR_TARGET; then
13386 gcc_cv_ld="$LD_FOR_TARGET"
13387 else
13388 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13389 set dummy $LD_FOR_TARGET; ac_word=$2
13390 echo "$as_me:$LINENO: checking for $ac_word" >&5
13391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13392 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395 case $gcc_cv_ld in
13396 [\\/]* | ?:[\\/]*)
13397 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13398 ;;
13399 *)
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13402 do
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13407 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13409 break 2
13410 fi
13411 done
13412 done
13413
13414 ;;
13415 esac
13416 fi
13417 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13418
13419 if test -n "$gcc_cv_ld"; then
13420 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13421 echo "${ECHO_T}$gcc_cv_ld" >&6
13422 else
13423 echo "$as_me:$LINENO: result: no" >&5
13424 echo "${ECHO_T}no" >&6
13425 fi
13426
13427 fi
13428 fi
13429
13430
13431 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13432
13433
13434 echo "$as_me:$LINENO: checking what linker to use" >&5
13435 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13436 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13437 # Single tree build which includes ld. We want to prefer it
13438 # over whatever linker top-level may have detected, since
13439 # we'll use what we're building after installation anyway.
13440 echo "$as_me:$LINENO: result: newly built ld" >&5
13441 echo "${ECHO_T}newly built ld" >&6
13442 in_tree_ld=yes
13443 in_tree_ld_is_elf=no
13444 if (grep 'EMUL = .*elf' ../ld/Makefile \
13445 || grep 'EMUL = .*linux' ../ld/Makefile \
13446 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13447 in_tree_ld_is_elf=yes
13448 fi
13449 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
13450 do
13451 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13452 if test x$gcc_cv_gld_version != x; then
13453 break
13454 fi
13455 done
13456 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13457 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13458 else
13459 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13460 echo "${ECHO_T}$gcc_cv_ld" >&6
13461 in_tree_ld=no
13462 fi
13463
13464 # Figure out what nm we will be using.
13465 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13466 if test "${gcc_cv_nm+set}" = set; then
13467 :
13468 else
13469
13470 if test -f $gcc_cv_binutils_srcdir/configure.in \
13471 && test -f ../binutils/Makefile \
13472 && test x$build = x$host; then
13473 gcc_cv_nm=../binutils/nm-new$build_exeext
13474 elif test -x nm$build_exeext; then
13475 gcc_cv_nm=./nm$build_exeext
13476 elif test -x $NM_FOR_TARGET; then
13477 gcc_cv_nm="$NM_FOR_TARGET"
13478 else
13479 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13480 set dummy $NM_FOR_TARGET; ac_word=$2
13481 echo "$as_me:$LINENO: checking for $ac_word" >&5
13482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13483 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486 case $gcc_cv_nm in
13487 [\\/]* | ?:[\\/]*)
13488 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13489 ;;
13490 *)
13491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492 for as_dir in $PATH
13493 do
13494 IFS=$as_save_IFS
13495 test -z "$as_dir" && as_dir=.
13496 for ac_exec_ext in '' $ac_executable_extensions; do
13497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13498 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13500 break 2
13501 fi
13502 done
13503 done
13504
13505 ;;
13506 esac
13507 fi
13508 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13509
13510 if test -n "$gcc_cv_nm"; then
13511 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13512 echo "${ECHO_T}$gcc_cv_nm" >&6
13513 else
13514 echo "$as_me:$LINENO: result: no" >&5
13515 echo "${ECHO_T}no" >&6
13516 fi
13517
13518 fi
13519 fi
13520
13521
13522 echo "$as_me:$LINENO: checking what nm to use" >&5
13523 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13524 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13525 # Single tree build which includes binutils.
13526 echo "$as_me:$LINENO: result: newly built nm" >&5
13527 echo "${ECHO_T}newly built nm" >&6
13528 in_tree_nm=yes
13529 else
13530 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13531 echo "${ECHO_T}$gcc_cv_nm" >&6
13532 in_tree_nm=no
13533 fi
13534
13535 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13536
13537
13538 # Figure out what objdump we will be using.
13539 if test "${gcc_cv_objdump+set}" = set; then
13540 :
13541 else
13542
13543 if test -f $gcc_cv_binutils_srcdir/configure.in \
13544 && test -f ../binutils/Makefile \
13545 && test x$build = x$host; then
13546 # Single tree build which includes binutils.
13547 gcc_cv_objdump=../binutils/objdump$build_exeext
13548 elif test -x objdump$build_exeext; then
13549 gcc_cv_objdump=./objdump$build_exeext
13550 elif test -x $OBJDUMP_FOR_TARGET; then
13551 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13552 else
13553 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13554 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13555 echo "$as_me:$LINENO: checking for $ac_word" >&5
13556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13557 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 else
13560 case $gcc_cv_objdump in
13561 [\\/]* | ?:[\\/]*)
13562 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13563 ;;
13564 *)
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13567 do
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13574 break 2
13575 fi
13576 done
13577 done
13578
13579 ;;
13580 esac
13581 fi
13582 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13583
13584 if test -n "$gcc_cv_objdump"; then
13585 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13586 echo "${ECHO_T}$gcc_cv_objdump" >&6
13587 else
13588 echo "$as_me:$LINENO: result: no" >&5
13589 echo "${ECHO_T}no" >&6
13590 fi
13591
13592 fi
13593 fi
13594
13595
13596 echo "$as_me:$LINENO: checking what objdump to use" >&5
13597 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13598 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13599 # Single tree build which includes binutils.
13600 echo "$as_me:$LINENO: result: newly built objdump" >&5
13601 echo "${ECHO_T}newly built objdump" >&6
13602 elif test x$gcc_cv_objdump = x; then
13603 echo "$as_me:$LINENO: result: not found" >&5
13604 echo "${ECHO_T}not found" >&6
13605 else
13606 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13607 echo "${ECHO_T}$gcc_cv_objdump" >&6
13608 fi
13609
13610 # Figure out what assembler alignment features are present.
13611 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13612 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13613 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616 gcc_cv_as_balign_and_p2align=no
13617 if test $in_tree_gas = yes; then
13618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13619 then gcc_cv_as_balign_and_p2align=yes
13620 fi
13621 elif test x$gcc_cv_as != x; then
13622 echo '.balign 4
13623 .p2align 2' > conftest.s
13624 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }
13630 then
13631 gcc_cv_as_balign_and_p2align=yes
13632 else
13633 echo "configure: failed program was" >&5
13634 cat conftest.s >&5
13635 fi
13636 rm -f conftest.o conftest.s
13637 fi
13638 fi
13639 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13640 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13641 if test $gcc_cv_as_balign_and_p2align = yes; then
13642
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13645 _ACEOF
13646
13647 fi
13648
13649 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13650 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13651 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654 gcc_cv_as_max_skip_p2align=no
13655 if test $in_tree_gas = yes; then
13656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13657 then gcc_cv_as_max_skip_p2align=yes
13658 fi
13659 elif test x$gcc_cv_as != x; then
13660 echo '.p2align 4,,7' > conftest.s
13661 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }
13667 then
13668 gcc_cv_as_max_skip_p2align=yes
13669 else
13670 echo "configure: failed program was" >&5
13671 cat conftest.s >&5
13672 fi
13673 rm -f conftest.o conftest.s
13674 fi
13675 fi
13676 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13677 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13678 if test $gcc_cv_as_max_skip_p2align = yes; then
13679
13680 cat >>confdefs.h <<\_ACEOF
13681 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13682 _ACEOF
13683
13684 fi
13685
13686 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13687 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13688 if test "${gcc_cv_as_literal16+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 else
13691 gcc_cv_as_literal16=no
13692 if test $in_tree_gas = yes; then
13693 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13694 then gcc_cv_as_literal16=yes
13695 fi
13696 elif test x$gcc_cv_as != x; then
13697 echo '.literal16' > conftest.s
13698 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }
13704 then
13705 gcc_cv_as_literal16=yes
13706 else
13707 echo "configure: failed program was" >&5
13708 cat conftest.s >&5
13709 fi
13710 rm -f conftest.o conftest.s
13711 fi
13712 fi
13713 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13714 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13715 if test $gcc_cv_as_literal16 = yes; then
13716
13717 cat >>confdefs.h <<\_ACEOF
13718 #define HAVE_GAS_LITERAL16 1
13719 _ACEOF
13720
13721 fi
13722
13723 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13724 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13725 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 else
13728 gcc_cv_as_subsection_m1=no
13729 if test $in_tree_gas = yes; then
13730 if test $in_tree_gas_is_elf = yes \
13731 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13732 then gcc_cv_as_subsection_m1=yes
13733 fi
13734 elif test x$gcc_cv_as != x; then
13735 echo 'conftest_label1: .word 0
13736 .subsection -1
13737 conftest_label2: .word 0
13738 .previous' > conftest.s
13739 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }
13745 then
13746 if test x$gcc_cv_nm != x; then
13747 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13748 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13749 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13750 then :
13751 else gcc_cv_as_subsection_m1=yes
13752 fi
13753 rm -f conftest.nm1 conftest.nm2
13754 fi
13755 else
13756 echo "configure: failed program was" >&5
13757 cat conftest.s >&5
13758 fi
13759 rm -f conftest.o conftest.s
13760 fi
13761 fi
13762 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13763 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13764 if test $gcc_cv_as_subsection_m1 = yes; then
13765
13766 cat >>confdefs.h <<\_ACEOF
13767 #define HAVE_GAS_SUBSECTION_ORDERING 1
13768 _ACEOF
13769
13770 fi
13771
13772 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13773 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13774 if test "${gcc_cv_as_weak+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777 gcc_cv_as_weak=no
13778 if test $in_tree_gas = yes; then
13779 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13780 then gcc_cv_as_weak=yes
13781 fi
13782 elif test x$gcc_cv_as != x; then
13783 echo ' .weak foobar' > 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 gcc_cv_as_weak=yes
13792 else
13793 echo "configure: failed program was" >&5
13794 cat conftest.s >&5
13795 fi
13796 rm -f conftest.o conftest.s
13797 fi
13798 fi
13799 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13800 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13801 if test $gcc_cv_as_weak = yes; then
13802
13803 cat >>confdefs.h <<\_ACEOF
13804 #define HAVE_GAS_WEAK 1
13805 _ACEOF
13806
13807 fi
13808
13809 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13810 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13811 if test "${gcc_cv_as_weakref+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814 gcc_cv_as_weakref=no
13815 if test $in_tree_gas = yes; then
13816 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13817 then gcc_cv_as_weakref=yes
13818 fi
13819 elif test x$gcc_cv_as != x; then
13820 echo ' .weakref foobar, barfnot' > conftest.s
13821 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }
13827 then
13828 gcc_cv_as_weakref=yes
13829 else
13830 echo "configure: failed program was" >&5
13831 cat conftest.s >&5
13832 fi
13833 rm -f conftest.o conftest.s
13834 fi
13835 fi
13836 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13837 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13838 if test $gcc_cv_as_weakref = yes; then
13839
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_GAS_WEAKREF 1
13842 _ACEOF
13843
13844 fi
13845
13846 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13847 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13848 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 else
13851 gcc_cv_as_nsubspa_comdat=no
13852 if test $in_tree_gas = yes; then
13853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13854 then gcc_cv_as_nsubspa_comdat=yes
13855 fi
13856 elif test x$gcc_cv_as != x; then
13857 echo ' .SPACE $TEXT$
13858 .NSUBSPA $CODE$,COMDAT' > conftest.s
13859 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }
13865 then
13866 gcc_cv_as_nsubspa_comdat=yes
13867 else
13868 echo "configure: failed program was" >&5
13869 cat conftest.s >&5
13870 fi
13871 rm -f conftest.o conftest.s
13872 fi
13873 fi
13874 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13875 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13876 if test $gcc_cv_as_nsubspa_comdat = yes; then
13877
13878 cat >>confdefs.h <<\_ACEOF
13879 #define HAVE_GAS_NSUBSPA_COMDAT 1
13880 _ACEOF
13881
13882 fi
13883
13884 # .hidden needs to be supported in both the assembler and the linker,
13885 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13886 # This is irritatingly difficult to feature test for; we have to check the
13887 # date string after the version number. If we've got an in-tree
13888 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13889 # to be safe.
13890 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13891 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13892 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13893 if test "${gcc_cv_as_hidden+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896 gcc_cv_as_hidden=no
13897 if test $in_tree_gas = yes; then
13898 if test $in_tree_gas_is_elf = yes \
13899 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13900 then gcc_cv_as_hidden=yes
13901 fi
13902 elif test x$gcc_cv_as != x; then
13903 echo ' .hidden foobar
13904 foobar:' > conftest.s
13905 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }
13911 then
13912 gcc_cv_as_hidden=yes
13913 else
13914 echo "configure: failed program was" >&5
13915 cat conftest.s >&5
13916 fi
13917 rm -f conftest.o conftest.s
13918 fi
13919 fi
13920 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13921 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13922
13923
13924 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13925 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13926 if test "${gcc_cv_ld_hidden+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929 if test $in_tree_ld = yes ; then
13930 gcc_cv_ld_hidden=no
13931 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 \
13932 && test $in_tree_ld_is_elf = yes; then
13933 gcc_cv_ld_hidden=yes
13934 fi
13935 else
13936 gcc_cv_ld_hidden=yes
13937 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13938 if echo "$ld_ver" | grep GNU > /dev/null; then
13939 ld_vers=`echo $ld_ver | sed -n \
13940 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13941 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13942 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13943 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13944 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13945 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13946 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
13947 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'`
13948 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13949 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13950 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13951 if test 0"$ld_date" -lt 20020404; then
13952 if test -n "$ld_date"; then
13953 # If there was date string, but was earlier than 2002-04-04, fail
13954 gcc_cv_ld_hidden=no
13955 elif test -z "$ld_vers"; then
13956 # If there was no date string nor ld version number, something is wrong
13957 gcc_cv_ld_hidden=no
13958 else
13959 test -z "$ld_vers_patch" && ld_vers_patch=0
13960 if test "$ld_vers_major" -lt 2; then
13961 gcc_cv_ld_hidden=no
13962 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13963 gcc_cv_ld_hidden="no"
13964 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13965 gcc_cv_ld_hidden=no
13966 fi
13967 fi
13968 fi
13969 else
13970 case "${target}" in
13971 hppa64*-*-hpux* | ia64*-*-hpux*)
13972 gcc_cv_ld_hidden=yes
13973 ;;
13974 *)
13975 gcc_cv_ld_hidden=no
13976 ;;
13977 esac
13978 fi
13979 fi
13980 fi
13981 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13982 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13983 libgcc_visibility=no
13984
13985
13986 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13987 libgcc_visibility=yes
13988
13989 cat >>confdefs.h <<\_ACEOF
13990 #define HAVE_GAS_HIDDEN 1
13991 _ACEOF
13992
13993 fi
13994
13995 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13996 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13997 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13998 if test "${gcc_cv_as_leb128+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 else
14001 gcc_cv_as_leb128=no
14002 if test $in_tree_gas = yes; then
14003 if test $in_tree_gas_is_elf = yes \
14004 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14005 then gcc_cv_as_leb128=yes
14006 fi
14007 elif test x$gcc_cv_as != x; then
14008 echo ' .data
14009 .uleb128 L2 - L1
14010 L1:
14011 .uleb128 1280
14012 .sleb128 -1010
14013 L2:' > conftest.s
14014 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }
14020 then
14021 # GAS versions before 2.11 do not support uleb128,
14022 # despite appearing to.
14023 # ??? There exists an elf-specific test that will crash
14024 # the assembler. Perhaps it's better to figure out whether
14025 # arbitrary sections are supported and try the test.
14026 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14027 if echo "$as_ver" | grep GNU > /dev/null; then
14028 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14029 as_major=`echo $as_ver | sed 's/\..*//'`
14030 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14031 if test $as_major -eq 2 && test $as_minor -lt 11
14032 then :
14033 else gcc_cv_as_leb128=yes
14034 fi
14035 fi
14036 else
14037 echo "configure: failed program was" >&5
14038 cat conftest.s >&5
14039 fi
14040 rm -f conftest.o conftest.s
14041 fi
14042 fi
14043 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14044 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14045 if test $gcc_cv_as_leb128 = yes; then
14046
14047 cat >>confdefs.h <<\_ACEOF
14048 #define HAVE_AS_LEB128 1
14049 _ACEOF
14050
14051 fi
14052
14053 # GAS versions up to and including 2.11.0 may mis-optimize
14054 # .eh_frame data.
14055 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14056 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14057 if test "${gcc_cv_as_eh_frame+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060 gcc_cv_as_eh_frame=no
14061 if test $in_tree_gas = yes; then
14062 if test $in_tree_gas_is_elf = yes \
14063 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14064 then gcc_cv_as_eh_frame=yes
14065 fi
14066 elif test x$gcc_cv_as != x; then
14067 echo ' .text
14068 .LFB1:
14069 .4byte 0
14070 .L1:
14071 .4byte 0
14072 .LFE1:
14073 .section .eh_frame,"aw",@progbits
14074 __FRAME_BEGIN__:
14075 .4byte .LECIE1-.LSCIE1
14076 .LSCIE1:
14077 .4byte 0x0
14078 .byte 0x1
14079 .ascii "z\0"
14080 .byte 0x1
14081 .byte 0x78
14082 .byte 0x1a
14083 .byte 0x0
14084 .byte 0x4
14085 .4byte 1
14086 .p2align 1
14087 .LECIE1:
14088 .LSFDE1:
14089 .4byte .LEFDE1-.LASFDE1
14090 .LASFDE1:
14091 .4byte .LASFDE1-__FRAME_BEGIN__
14092 .4byte .LFB1
14093 .4byte .LFE1-.LFB1
14094 .byte 0x4
14095 .4byte .LFE1-.LFB1
14096 .byte 0x4
14097 .4byte .L1-.LFB1
14098 .LEFDE1:' > conftest.s
14099 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }
14105 then
14106 cat > conftest.lit <<EOF
14107 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14108 0010 01000000 12000000 18000000 00000000 ................
14109 0020 08000000 04080000 0044 .........D
14110 EOF
14111 cat > conftest.big <<EOF
14112 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14113 0010 00000001 00000012 00000018 00000000 ................
14114 0020 00000008 04000000 0844 .........D
14115 EOF
14116 # If the assembler didn't choke, and we can objdump,
14117 # and we got the correct data, then succeed.
14118 # The text in the here-document typically retains its unix-style line
14119 # endings, while the output of objdump will use host line endings.
14120 # Therefore, use diff -b for the comparisons.
14121 if test x$gcc_cv_objdump != x \
14122 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14123 | tail -3 > conftest.got \
14124 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14125 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14126 then
14127 gcc_cv_as_eh_frame=yes
14128 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 gcc_cv_as_eh_frame=buggy
14135 else
14136 # Uh oh, what do we do now?
14137 gcc_cv_as_eh_frame=no
14138 fi
14139 else
14140 echo "configure: failed program was" >&5
14141 cat conftest.s >&5
14142 fi
14143 rm -f conftest.o conftest.s
14144 fi
14145 fi
14146 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14147 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14148
14149
14150 if test $gcc_cv_as_eh_frame = buggy; then
14151
14152 cat >>confdefs.h <<\_ACEOF
14153 #define USE_AS_TRADITIONAL_FORMAT 1
14154 _ACEOF
14155
14156 fi
14157
14158 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14159 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14160 if test "${gcc_cv_as_shf_merge+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 else
14163 gcc_cv_as_shf_merge=no
14164 if test $in_tree_gas = yes; then
14165 if test $in_tree_gas_is_elf = yes \
14166 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14167 then gcc_cv_as_shf_merge=yes
14168 fi
14169 elif test x$gcc_cv_as != x; then
14170 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14171 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }
14177 then
14178 gcc_cv_as_shf_merge=yes
14179 else
14180 echo "configure: failed program was" >&5
14181 cat conftest.s >&5
14182 fi
14183 rm -f conftest.o conftest.s
14184 fi
14185 fi
14186 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14187 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14188
14189 if test $gcc_cv_as_shf_merge = no; then
14190 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14191 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14192 if test "${gcc_cv_as_shf_merge+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14194 else
14195 gcc_cv_as_shf_merge=no
14196 if test $in_tree_gas = yes; then
14197 if test $in_tree_gas_is_elf = yes \
14198 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14199 then gcc_cv_as_shf_merge=yes
14200 fi
14201 elif test x$gcc_cv_as != x; then
14202 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14203 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }
14209 then
14210 gcc_cv_as_shf_merge=yes
14211 else
14212 echo "configure: failed program was" >&5
14213 cat conftest.s >&5
14214 fi
14215 rm -f conftest.o conftest.s
14216 fi
14217 fi
14218 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14219 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14220
14221 fi
14222
14223 cat >>confdefs.h <<_ACEOF
14224 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14225 _ACEOF
14226
14227
14228 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14229 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14230 if test "${gcc_cv_as_comdat_group+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233 gcc_cv_as_comdat_group=no
14234 if test $in_tree_gas = yes; then
14235 if test $in_tree_gas_is_elf = yes \
14236 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14237 then gcc_cv_as_comdat_group=yes
14238 fi
14239 elif test x$gcc_cv_as != x; then
14240 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14241 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }
14247 then
14248 gcc_cv_as_comdat_group=yes
14249 else
14250 echo "configure: failed program was" >&5
14251 cat conftest.s >&5
14252 fi
14253 rm -f conftest.o conftest.s
14254 fi
14255 fi
14256 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14257 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14258
14259 if test $gcc_cv_as_comdat_group = yes; then
14260 gcc_cv_as_comdat_group_percent=no
14261 else
14262 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14263 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14264 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267 gcc_cv_as_comdat_group_percent=no
14268 if test $in_tree_gas = yes; then
14269 if test $in_tree_gas_is_elf = yes \
14270 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14271 then gcc_cv_as_comdat_group_percent=yes
14272 fi
14273 elif test x$gcc_cv_as != x; then
14274 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14275 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }
14281 then
14282 gcc_cv_as_comdat_group_percent=yes
14283 else
14284 echo "configure: failed program was" >&5
14285 cat conftest.s >&5
14286 fi
14287 rm -f conftest.o conftest.s
14288 fi
14289 fi
14290 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14291 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14292
14293 fi
14294 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14295 comdat_group=yes
14296 if test 0"$ld_date" -lt 20050308; then
14297 if test -n "$ld_date"; then
14298 # If there was date string, but was earlier than 2005-03-08, fail
14299 comdat_group=no
14300 elif test "$ld_vers_major" -lt 2; then
14301 comdat_group=no
14302 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14303 comdat_group=no
14304 fi
14305 fi
14306 else
14307 # assume linkers other than GNU ld don't support COMDAT group
14308 comdat_group=no
14309 fi
14310 if test $comdat_group = no; then
14311 gcc_cv_as_comdat_group=no
14312 gcc_cv_as_comdat_group_percent=no
14313 fi
14314
14315 cat >>confdefs.h <<_ACEOF
14316 #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`
14317 _ACEOF
14318
14319
14320 # Thread-local storage - the check is heavily parametrized.
14321 conftest_s=
14322 tls_first_major=
14323 tls_first_minor=
14324 tls_as_opt=
14325 case "$target" in
14326 alpha*-*-*)
14327 conftest_s='
14328 .section ".tdata","awT",@progbits
14329 foo: .long 25
14330 .text
14331 ldq $27,__tls_get_addr($29) !literal!1
14332 lda $16,foo($29) !tlsgd!1
14333 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14334 ldq $27,__tls_get_addr($29) !literal!2
14335 lda $16,foo($29) !tlsldm!2
14336 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14337 ldq $1,foo($29) !gotdtprel
14338 ldah $2,foo($29) !dtprelhi
14339 lda $3,foo($2) !dtprello
14340 lda $4,foo($29) !dtprel
14341 ldq $1,foo($29) !gottprel
14342 ldah $2,foo($29) !tprelhi
14343 lda $3,foo($2) !tprello
14344 lda $4,foo($29) !tprel'
14345 tls_first_major=2
14346 tls_first_minor=13
14347 tls_as_opt=--fatal-warnings
14348 ;;
14349 frv*-*-*)
14350 conftest_s='
14351 .section ".tdata","awT",@progbits
14352 x: .long 25
14353 .text
14354 call #gettlsoff(x)'
14355 tls_first_major=2
14356 tls_first_minor=14
14357 ;;
14358 hppa*-*-linux*)
14359 conftest_s='
14360 t1: .reg %r20
14361 t2: .reg %r21
14362 gp: .reg %r19
14363 .section ".tdata","awT",@progbits
14364 foo: .long 25
14365 .text
14366 .align 4
14367 addil LT%foo-$tls_gdidx$,gp
14368 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14369 b __tls_get_addr
14370 nop
14371 addil LT%foo-$tls_ldidx$,gp
14372 b __tls_get_addr
14373 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14374 addil LR%foo-$tls_dtpoff$,%ret0
14375 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14376 mfctl %cr27,%t1
14377 addil LT%foo-$tls_ieoff$,gp
14378 ldw RT%foo-$tls_ieoff$(%r1),%t2
14379 add %t1,%t2,%t3
14380 mfctl %cr27,%t1
14381 addil LR%foo-$tls_leoff$,%t1
14382 ldo RR%foo-$tls_leoff$(%r1),%t2'
14383 tls_first_major=2
14384 tls_first_minor=15
14385 tls_as_opt=--fatal-warnings
14386 ;;
14387 arm*-*-*)
14388 conftest_s='
14389 .section ".tdata","awT",%progbits
14390 foo: .long 25
14391 .text
14392 .word foo(gottpoff)
14393 .word foo(tpoff)
14394 .word foo(tlsgd)
14395 .word foo(tlsldm)
14396 .word foo(tlsldo)'
14397 tls_first_major=2
14398 tls_first_minor=17
14399 ;;
14400 i[34567]86-*-*)
14401 conftest_s='
14402 .section ".tdata","awT",@progbits
14403 foo: .long 25
14404 .text
14405 movl %gs:0, %eax
14406 leal foo@TLSGD(,%ebx,1), %eax
14407 leal foo@TLSLDM(%ebx), %eax
14408 leal foo@DTPOFF(%eax), %edx
14409 movl foo@GOTTPOFF(%ebx), %eax
14410 subl foo@GOTTPOFF(%ebx), %eax
14411 addl foo@GOTNTPOFF(%ebx), %eax
14412 movl foo@INDNTPOFF, %eax
14413 movl $foo@TPOFF, %eax
14414 subl $foo@TPOFF, %eax
14415 leal foo@NTPOFF(%ecx), %eax'
14416 tls_first_major=2
14417 tls_first_minor=14
14418 tls_as_opt=--fatal-warnings
14419 ;;
14420 x86_64-*-*)
14421 conftest_s='
14422 .section ".tdata","awT",@progbits
14423 foo: .long 25
14424 .text
14425 movq %fs:0, %rax
14426 leaq foo@TLSGD(%rip), %rdi
14427 leaq foo@TLSLD(%rip), %rdi
14428 leaq foo@DTPOFF(%rax), %rdx
14429 movq foo@GOTTPOFF(%rip), %rax
14430 movq $foo@TPOFF, %rax'
14431 tls_first_major=2
14432 tls_first_minor=14
14433 tls_as_opt=--fatal-warnings
14434 ;;
14435 ia64-*-*)
14436 conftest_s='
14437 .section ".tdata","awT",@progbits
14438 foo: data8 25
14439 .text
14440 addl r16 = @ltoff(@dtpmod(foo#)), gp
14441 addl r17 = @ltoff(@dtprel(foo#)), gp
14442 addl r18 = @ltoff(@tprel(foo#)), gp
14443 addl r19 = @dtprel(foo#), gp
14444 adds r21 = @dtprel(foo#), r13
14445 movl r23 = @dtprel(foo#)
14446 addl r20 = @tprel(foo#), gp
14447 adds r22 = @tprel(foo#), r13
14448 movl r24 = @tprel(foo#)'
14449 tls_first_major=2
14450 tls_first_minor=13
14451 tls_as_opt=--fatal-warnings
14452 ;;
14453 mips*-*-*)
14454 conftest_s='
14455 .section .tdata,"awT",@progbits
14456 x:
14457 .word 2
14458 .text
14459 addiu $4, $28, %tlsgd(x)
14460 addiu $4, $28, %tlsldm(x)
14461 lui $4, %dtprel_hi(x)
14462 addiu $4, $4, %dtprel_lo(x)
14463 lw $4, %gottprel(x)($28)
14464 lui $4, %tprel_hi(x)
14465 addiu $4, $4, %tprel_lo(x)'
14466 tls_first_major=2
14467 tls_first_minor=16
14468 tls_as_opt='-32 --fatal-warnings'
14469 ;;
14470 powerpc-*-*)
14471 conftest_s='
14472 .section ".tdata","awT",@progbits
14473 .align 2
14474 ld0: .space 4
14475 ld1: .space 4
14476 x1: .space 4
14477 x2: .space 4
14478 x3: .space 4
14479 .text
14480 addi 3,31,ld0@got@tlsgd
14481 bl __tls_get_addr
14482 addi 3,31,x1@got@tlsld
14483 bl __tls_get_addr
14484 addi 9,3,x1@dtprel
14485 addis 9,3,x2@dtprel@ha
14486 addi 9,9,x2@dtprel@l
14487 lwz 9,x3@got@tprel(31)
14488 add 9,9,x@tls
14489 addi 9,2,x1@tprel
14490 addis 9,2,x2@tprel@ha
14491 addi 9,9,x2@tprel@l'
14492 tls_first_major=2
14493 tls_first_minor=14
14494 tls_as_opt="-a32 --fatal-warnings"
14495 ;;
14496 powerpc64-*-*)
14497 conftest_s='
14498 .section ".tdata","awT",@progbits
14499 .align 3
14500 ld0: .space 8
14501 ld1: .space 8
14502 x1: .space 8
14503 x2: .space 8
14504 x3: .space 8
14505 .text
14506 addi 3,2,ld0@got@tlsgd
14507 bl .__tls_get_addr
14508 nop
14509 addi 3,2,ld1@toc
14510 bl .__tls_get_addr
14511 nop
14512 addi 3,2,x1@got@tlsld
14513 bl .__tls_get_addr
14514 nop
14515 addi 9,3,x1@dtprel
14516 bl .__tls_get_addr
14517 nop
14518 addis 9,3,x2@dtprel@ha
14519 addi 9,9,x2@dtprel@l
14520 bl .__tls_get_addr
14521 nop
14522 ld 9,x3@got@dtprel(2)
14523 add 9,9,3
14524 bl .__tls_get_addr
14525 nop'
14526 tls_first_major=2
14527 tls_first_minor=14
14528 tls_as_opt="-a64 --fatal-warnings"
14529 ;;
14530 s390-*-*)
14531 conftest_s='
14532 .section ".tdata","awT",@progbits
14533 foo: .long 25
14534 .text
14535 .long foo@TLSGD
14536 .long foo@TLSLDM
14537 .long foo@DTPOFF
14538 .long foo@NTPOFF
14539 .long foo@GOTNTPOFF
14540 .long foo@INDNTPOFF
14541 l %r1,foo@GOTNTPOFF(%r12)
14542 l %r1,0(%r1):tls_load:foo
14543 bas %r14,0(%r1,%r13):tls_gdcall:foo
14544 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14545 tls_first_major=2
14546 tls_first_minor=14
14547 tls_as_opt="-m31 --fatal-warnings"
14548 ;;
14549 s390x-*-*)
14550 conftest_s='
14551 .section ".tdata","awT",@progbits
14552 foo: .long 25
14553 .text
14554 .quad foo@TLSGD
14555 .quad foo@TLSLDM
14556 .quad foo@DTPOFF
14557 .quad foo@NTPOFF
14558 .quad foo@GOTNTPOFF
14559 lg %r1,foo@GOTNTPOFF(%r12)
14560 larl %r1,foo@INDNTPOFF
14561 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14562 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14563 tls_first_major=2
14564 tls_first_minor=14
14565 tls_as_opt="-m64 -Aesame --fatal-warnings"
14566 ;;
14567 sh-*-* | sh[34]-*-*)
14568 conftest_s='
14569 .section ".tdata","awT",@progbits
14570 foo: .long 25
14571 .text
14572 .long foo@TLSGD
14573 .long foo@TLSLDM
14574 .long foo@DTPOFF
14575 .long foo@GOTTPOFF
14576 .long foo@TPOFF'
14577 tls_first_major=2
14578 tls_first_minor=13
14579 tls_as_opt=--fatal-warnings
14580 ;;
14581 sparc*-*-*)
14582 case "$target" in
14583 sparc*-sun-solaris2.[56789]*)
14584 # TLS was introduced in the Solaris 9 4/04 release but
14585 # we do not enable it by default on Solaris 9 either.
14586 if test "x$enable_tls" = xyes ; then
14587 on_solaris=yes
14588 else
14589 enable_tls=no;
14590 fi
14591 ;;
14592 sparc*-sun-solaris2.*)
14593 on_solaris=yes
14594 ;;
14595 *)
14596 on_solaris=no
14597 ;;
14598 esac
14599 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14600 conftest_s='
14601 .section ".tdata",#alloc,#write,#tls
14602 foo: .long 25
14603 .text
14604 sethi %tgd_hi22(foo), %o0
14605 add %o0, %tgd_lo10(foo), %o1
14606 add %l7, %o1, %o0, %tgd_add(foo)
14607 call __tls_get_addr, %tgd_call(foo)
14608 sethi %tldm_hi22(foo), %l1
14609 add %l1, %tldm_lo10(foo), %l2
14610 add %l7, %l2, %o0, %tldm_add(foo)
14611 call __tls_get_addr, %tldm_call(foo)
14612 sethi %tldo_hix22(foo), %l3
14613 xor %l3, %tldo_lox10(foo), %l4
14614 add %o0, %l4, %l5, %tldo_add(foo)
14615 sethi %tie_hi22(foo), %o3
14616 add %o3, %tie_lo10(foo), %o3
14617 ld [%l7 + %o3], %o2, %tie_ld(foo)
14618 add %g7, %o2, %o4, %tie_add(foo)
14619 sethi %tle_hix22(foo), %l1
14620 xor %l1, %tle_lox10(foo), %o5
14621 ld [%g7 + %o5], %o1'
14622 tls_first_major=0
14623 tls_first_minor=0
14624 else
14625 conftest_s='
14626 .section ".tdata","awT",@progbits
14627 foo: .long 25
14628 .text
14629 sethi %tgd_hi22(foo), %o0
14630 add %o0, %tgd_lo10(foo), %o1
14631 add %l7, %o1, %o0, %tgd_add(foo)
14632 call __tls_get_addr, %tgd_call(foo)
14633 sethi %tldm_hi22(foo), %l1
14634 add %l1, %tldm_lo10(foo), %l2
14635 add %l7, %l2, %o0, %tldm_add(foo)
14636 call __tls_get_addr, %tldm_call(foo)
14637 sethi %tldo_hix22(foo), %l3
14638 xor %l3, %tldo_lox10(foo), %l4
14639 add %o0, %l4, %l5, %tldo_add(foo)
14640 sethi %tie_hi22(foo), %o3
14641 add %o3, %tie_lo10(foo), %o3
14642 ld [%l7 + %o3], %o2, %tie_ld(foo)
14643 add %g7, %o2, %o4, %tie_add(foo)
14644 sethi %tle_hix22(foo), %l1
14645 xor %l1, %tle_lox10(foo), %o5
14646 ld [%g7 + %o5], %o1'
14647 tls_first_major=2
14648 tls_first_minor=14
14649 tls_as_opt="-32 --fatal-warnings"
14650 fi
14651 ;;
14652 esac
14653 set_have_as_tls=no
14654 if test "x$enable_tls" = xno ; then
14655 : # TLS explicitly disabled.
14656 elif test "x$enable_tls" = xyes ; then
14657 set_have_as_tls=yes # TLS explicitly enabled.
14658 elif test -z "$tls_first_major"; then
14659 : # If we don't have a check, assume no support.
14660 else
14661 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14662 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14663 if test "${gcc_cv_as_tls+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666 gcc_cv_as_tls=no
14667 if test $in_tree_gas = yes; then
14668 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14669 then gcc_cv_as_tls=yes
14670 fi
14671 elif test x$gcc_cv_as != x; then
14672 echo "$conftest_s" > conftest.s
14673 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }
14679 then
14680 gcc_cv_as_tls=yes
14681 else
14682 echo "configure: failed program was" >&5
14683 cat conftest.s >&5
14684 fi
14685 rm -f conftest.o conftest.s
14686 fi
14687 fi
14688 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14689 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14690 if test $gcc_cv_as_tls = yes; then
14691 set_have_as_tls=yes
14692 fi
14693 fi
14694 if test $set_have_as_tls = yes ; then
14695
14696 cat >>confdefs.h <<\_ACEOF
14697 #define HAVE_AS_TLS 1
14698 _ACEOF
14699
14700 fi
14701
14702 # Target-specific assembler checks.
14703
14704 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14705 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14706 gcc_cv_ld_static_dynamic=no
14707 if test $in_tree_ld = yes ; then
14708 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14709 gcc_cv_ld_static_dynamic=yes
14710 fi
14711 elif test x$gcc_cv_ld != x; then
14712 # Check if linker supports -Bstatic/-Bdynamic option
14713 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14714 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14715 gcc_cv_ld_static_dynamic=yes
14716 fi
14717 fi
14718 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14719
14720 cat >>confdefs.h <<\_ACEOF
14721 #define HAVE_LD_STATIC_DYNAMIC 1
14722 _ACEOF
14723
14724 fi
14725 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14726 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14727
14728 if test x"$demangler_in_ld" = xyes; then
14729 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14730 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14731 gcc_cv_ld_demangle=no
14732 if test $in_tree_ld = yes; then
14733 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 \
14734 gcc_cv_ld_demangle=yes
14735 fi
14736 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14737 # Check if the GNU linker supports --demangle option
14738 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14739 gcc_cv_ld_demangle=yes
14740 fi
14741 fi
14742 if test x"$gcc_cv_ld_demangle" = xyes; then
14743
14744 cat >>confdefs.h <<\_ACEOF
14745 #define HAVE_LD_DEMANGLE 1
14746 _ACEOF
14747
14748 fi
14749 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14750 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14751 fi
14752
14753 case "$target" in
14754 # All TARGET_ABI_OSF targets.
14755 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14756 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14757 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14758 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761 gcc_cv_as_alpha_explicit_relocs=no
14762 if test $in_tree_gas = yes; then
14763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14764 then gcc_cv_as_alpha_explicit_relocs=yes
14765 fi
14766 elif test x$gcc_cv_as != x; then
14767 echo ' .set nomacro
14768 .text
14769 extbl $3, $2, $3 !lituse_bytoff!1
14770 ldq $2, a($29) !literal!1
14771 ldq $4, b($29) !literal!2
14772 ldq_u $3, 0($2) !lituse_base!1
14773 ldq $27, f($29) !literal!5
14774 jsr $26, ($27), f !lituse_jsr!5
14775 ldah $29, 0($26) !gpdisp!3
14776 lda $0, c($29) !gprel
14777 ldah $1, d($29) !gprelhigh
14778 lda $1, d($1) !gprellow
14779 lda $29, 0($29) !gpdisp!3' > conftest.s
14780 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }
14786 then
14787 gcc_cv_as_alpha_explicit_relocs=yes
14788 else
14789 echo "configure: failed program was" >&5
14790 cat conftest.s >&5
14791 fi
14792 rm -f conftest.o conftest.s
14793 fi
14794 fi
14795 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14796 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14797 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14798
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_AS_EXPLICIT_RELOCS 1
14801 _ACEOF
14802
14803 fi
14804 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14805 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14806 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809 gcc_cv_as_alpha_jsrdirect_relocs=no
14810 if test $in_tree_gas = yes; then
14811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14812 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14813 fi
14814 elif test x$gcc_cv_as != x; then
14815 echo ' .set nomacro
14816 .text
14817 ldq $27, a($29) !literal!1
14818 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14819 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }
14825 then
14826 gcc_cv_as_alpha_jsrdirect_relocs=yes
14827 else
14828 echo "configure: failed program was" >&5
14829 cat conftest.s >&5
14830 fi
14831 rm -f conftest.o conftest.s
14832 fi
14833 fi
14834 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14835 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14836 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14837
14838 cat >>confdefs.h <<\_ACEOF
14839 #define HAVE_AS_JSRDIRECT_RELOCS 1
14840 _ACEOF
14841
14842 fi
14843 ;;
14844
14845 cris-*-*)
14846 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14847 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14848 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851 gcc_cv_as_cris_no_mul_bug=no
14852 if test $in_tree_gas = yes; then
14853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14854 then gcc_cv_as_cris_no_mul_bug=yes
14855 fi
14856 elif test x$gcc_cv_as != x; then
14857 echo '.text' > conftest.s
14858 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }
14864 then
14865 gcc_cv_as_cris_no_mul_bug=yes
14866 else
14867 echo "configure: failed program was" >&5
14868 cat conftest.s >&5
14869 fi
14870 rm -f conftest.o conftest.s
14871 fi
14872 fi
14873 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14874 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14875 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14876
14877 cat >>confdefs.h <<\_ACEOF
14878 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14879 _ACEOF
14880
14881 fi
14882 ;;
14883
14884 sparc*-*-*)
14885 echo "$as_me:$LINENO: checking assembler for .register" >&5
14886 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14887 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890 gcc_cv_as_sparc_register_op=no
14891 if test x$gcc_cv_as != x; then
14892 echo '.register %g2, #scratch' > conftest.s
14893 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }
14899 then
14900 gcc_cv_as_sparc_register_op=yes
14901 else
14902 echo "configure: failed program was" >&5
14903 cat conftest.s >&5
14904 fi
14905 rm -f conftest.o conftest.s
14906 fi
14907 fi
14908 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14909 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14910 if test $gcc_cv_as_sparc_register_op = yes; then
14911
14912 cat >>confdefs.h <<\_ACEOF
14913 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14914 _ACEOF
14915
14916 fi
14917
14918 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14919 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14920 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923 gcc_cv_as_sparc_relax=no
14924 if test x$gcc_cv_as != x; then
14925 echo '.text' > conftest.s
14926 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }
14932 then
14933 gcc_cv_as_sparc_relax=yes
14934 else
14935 echo "configure: failed program was" >&5
14936 cat conftest.s >&5
14937 fi
14938 rm -f conftest.o conftest.s
14939 fi
14940 fi
14941 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14942 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14943 if test $gcc_cv_as_sparc_relax = yes; then
14944
14945 cat >>confdefs.h <<\_ACEOF
14946 #define HAVE_AS_RELAX_OPTION 1
14947 _ACEOF
14948
14949 fi
14950
14951 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14952 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14953 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 else
14956 gcc_cv_as_sparc_ua_pcrel=no
14957 if test x$gcc_cv_as != x; then
14958 echo '.text
14959 foo:
14960 nop
14961 .data
14962 .align 4
14963 .byte 0
14964 .uaword %r_disp32(foo)' > conftest.s
14965 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }
14971 then
14972 if test x$gcc_cv_ld != x \
14973 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14974 gcc_cv_as_sparc_ua_pcrel=yes
14975 fi
14976 rm -f conftest
14977 else
14978 echo "configure: failed program was" >&5
14979 cat conftest.s >&5
14980 fi
14981 rm -f conftest.o conftest.s
14982 fi
14983 fi
14984 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14985 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14986 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14987
14988 cat >>confdefs.h <<\_ACEOF
14989 #define HAVE_AS_SPARC_UA_PCREL 1
14990 _ACEOF
14991
14992
14993 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14994 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14995 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998 gcc_cv_as_sparc_ua_pcrel_hidden=no
14999 if test x$gcc_cv_as != x; then
15000 echo '.data
15001 .align 4
15002 .byte 0x31
15003 .uaword %r_disp32(foo)
15004 .byte 0x32, 0x33, 0x34
15005 .global foo
15006 .hidden foo
15007 foo:
15008 .skip 4' > conftest.s
15009 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }
15015 then
15016 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15017 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15018 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15019 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15020 if $gcc_cv_objdump -R conftest 2> /dev/null \
15021 | grep 'DISP32' > /dev/null 2>&1; then
15022 :
15023 else
15024 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15025 fi
15026 fi
15027 rm -f conftest
15028 else
15029 echo "configure: failed program was" >&5
15030 cat conftest.s >&5
15031 fi
15032 rm -f conftest.o conftest.s
15033 fi
15034 fi
15035 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15036 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15037 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15038
15039 cat >>confdefs.h <<\_ACEOF
15040 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15041 _ACEOF
15042
15043 fi
15044
15045 fi # unaligned pcrel relocs
15046
15047 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15048 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15049 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052 gcc_cv_as_sparc_offsetable_lo10=no
15053 if test x$gcc_cv_as != x; then
15054 echo '.text
15055 or %g1, %lo(ab) + 12, %g1
15056 or %g1, %lo(ab + 12), %g1' > conftest.s
15057 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }
15063 then
15064 if test x$gcc_cv_objdump != x \
15065 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15066 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15067 gcc_cv_as_sparc_offsetable_lo10=yes
15068 fi
15069 else
15070 echo "configure: failed program was" >&5
15071 cat conftest.s >&5
15072 fi
15073 rm -f conftest.o conftest.s
15074 fi
15075 fi
15076 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15077 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15078 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15079
15080 cat >>confdefs.h <<\_ACEOF
15081 #define HAVE_AS_OFFSETABLE_LO10 1
15082 _ACEOF
15083
15084 fi
15085 ;;
15086
15087 i[34567]86-*-* | x86_64-*-*)
15088 case $target_os in
15089 cygwin* | pe | mingw32*)
15090 # Used for DWARF 2 in PE
15091 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15092 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15093 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 else
15096 gcc_cv_as_ix86_pe_secrel32=no
15097 if test $in_tree_gas = yes; then
15098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15099 then gcc_cv_as_ix86_pe_secrel32=yes
15100 fi
15101 elif test x$gcc_cv_as != x; then
15102 echo '.text
15103 foo: nop
15104 .data
15105 .secrel32 foo' > conftest.s
15106 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }
15112 then
15113 if test x$gcc_cv_ld != x \
15114 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15115 gcc_cv_as_ix86_pe_secrel32=yes
15116 fi
15117 rm -f conftest
15118 else
15119 echo "configure: failed program was" >&5
15120 cat conftest.s >&5
15121 fi
15122 rm -f conftest.o conftest.s
15123 fi
15124 fi
15125 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15126 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15127 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15128
15129 cat >>confdefs.h <<\_ACEOF
15130 #define HAVE_GAS_PE_SECREL32_RELOC 1
15131 _ACEOF
15132
15133 fi
15134 ;;
15135 esac
15136
15137 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15138 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15139 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142 gcc_cv_as_ix86_filds_fists=no
15143 if test $in_tree_gas = yes; then
15144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15145 then gcc_cv_as_ix86_filds_fists=yes
15146 fi
15147 elif test x$gcc_cv_as != x; then
15148 echo 'filds mem; fists mem' > conftest.s
15149 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }
15155 then
15156 gcc_cv_as_ix86_filds_fists=yes
15157 else
15158 echo "configure: failed program was" >&5
15159 cat conftest.s >&5
15160 fi
15161 rm -f conftest.o conftest.s
15162 fi
15163 fi
15164 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15165 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15166 if test $gcc_cv_as_ix86_filds_fists = yes; then
15167
15168 cat >>confdefs.h <<\_ACEOF
15169 #define HAVE_GAS_FILDS_FISTS 1
15170 _ACEOF
15171
15172 fi
15173
15174 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15175 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15176 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 else
15179 gcc_cv_as_ix86_cmov_sun_syntax=no
15180 if test x$gcc_cv_as != x; then
15181 echo 'cmovl.l %edx, %eax' > conftest.s
15182 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }
15188 then
15189 gcc_cv_as_ix86_cmov_sun_syntax=yes
15190 else
15191 echo "configure: failed program was" >&5
15192 cat conftest.s >&5
15193 fi
15194 rm -f conftest.o conftest.s
15195 fi
15196 fi
15197 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15198 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15199 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15200
15201 cat >>confdefs.h <<\_ACEOF
15202 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15203 _ACEOF
15204
15205 fi
15206
15207 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15208 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15209 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15211 else
15212 gcc_cv_as_ix86_ffreep=no
15213 if test x$gcc_cv_as != x; then
15214 echo 'ffreep %st(1)' > conftest.s
15215 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }
15221 then
15222 gcc_cv_as_ix86_ffreep=yes
15223 else
15224 echo "configure: failed program was" >&5
15225 cat conftest.s >&5
15226 fi
15227 rm -f conftest.o conftest.s
15228 fi
15229 fi
15230 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15231 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15232 if test $gcc_cv_as_ix86_ffreep = yes; then
15233
15234 cat >>confdefs.h <<\_ACEOF
15235 #define HAVE_AS_IX86_FFREEP 1
15236 _ACEOF
15237
15238 fi
15239
15240 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15241 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15242 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 else
15245 gcc_cv_as_ix86_diff_sect_delta=no
15246 if test x$gcc_cv_as != x; then
15247 echo '.section .rodata
15248 .L1:
15249 .long .L2-.L1
15250 .long .L3-.L1
15251 .text
15252 .L3: nop
15253 .L2: nop' > conftest.s
15254 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }
15260 then
15261 gcc_cv_as_ix86_diff_sect_delta=yes
15262 else
15263 echo "configure: failed program was" >&5
15264 cat conftest.s >&5
15265 fi
15266 rm -f conftest.o conftest.s
15267 fi
15268 fi
15269 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15270 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15271 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15272
15273 cat >>confdefs.h <<\_ACEOF
15274 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15275 _ACEOF
15276
15277 fi
15278
15279 # This one is used unconditionally by i386.[ch]; it is to be defined
15280 # to 1 if the feature is present, 0 otherwise.
15281 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15282 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15283 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286 gcc_cv_as_ix86_gotoff_in_data=no
15287 if test $in_tree_gas = yes; then
15288 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15289 then gcc_cv_as_ix86_gotoff_in_data=yes
15290 fi
15291 elif test x$gcc_cv_as != x; then
15292 echo ' .text
15293 .L0:
15294 nop
15295 .data
15296 .long .L0@GOTOFF' > conftest.s
15297 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }
15303 then
15304 gcc_cv_as_ix86_gotoff_in_data=yes
15305 else
15306 echo "configure: failed program was" >&5
15307 cat conftest.s >&5
15308 fi
15309 rm -f conftest.o conftest.s
15310 fi
15311 fi
15312 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15313 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15314
15315
15316 cat >>confdefs.h <<_ACEOF
15317 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15318 _ACEOF
15319
15320 ;;
15321
15322 ia64*-*-*)
15323 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15324 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15325 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 else
15328 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15329 if test $in_tree_gas = yes; then
15330 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15331 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15332 fi
15333 elif test x$gcc_cv_as != x; then
15334 echo ' .text
15335 addl r15 = @ltoffx(x#), gp
15336 ;;
15337 ld8.mov r16 = [r15], x#' > conftest.s
15338 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }
15344 then
15345 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15346 else
15347 echo "configure: failed program was" >&5
15348 cat conftest.s >&5
15349 fi
15350 rm -f conftest.o conftest.s
15351 fi
15352 fi
15353 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15354 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15355 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15356
15357 cat >>confdefs.h <<\_ACEOF
15358 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15359 _ACEOF
15360
15361 fi
15362
15363 ;;
15364
15365 powerpc*-*-*)
15366 case $target in
15367 *-*-aix*) conftest_s=' .machine "pwr5"
15368 .csect .text[PR]
15369 mfcr 3,128';;
15370 *-*-darwin*)
15371 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15372 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15373 if test "${gcc_cv_as_machine_directive+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376 gcc_cv_as_machine_directive=no
15377 if test x$gcc_cv_as != x; then
15378 echo ' .machine ppc7400' > conftest.s
15379 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }
15385 then
15386 gcc_cv_as_machine_directive=yes
15387 else
15388 echo "configure: failed program was" >&5
15389 cat conftest.s >&5
15390 fi
15391 rm -f conftest.o conftest.s
15392 fi
15393 fi
15394 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15395 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15396
15397 if test x$gcc_cv_as_machine_directive != xyes; then
15398 echo "*** This target requires an assembler supporting \".machine\"" >&2
15399 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15400 test x$build = x$target && exit 1
15401 fi
15402 conftest_s=' .text
15403 mfcr r3,128';;
15404 *) conftest_s=' .machine power4
15405 .text
15406 mfcr 3,128';;
15407 esac
15408
15409 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15410 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15411 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 else
15414 gcc_cv_as_powerpc_mfcrf=no
15415 if test $in_tree_gas = yes; then
15416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15417 then gcc_cv_as_powerpc_mfcrf=yes
15418 fi
15419 elif test x$gcc_cv_as != x; then
15420 echo "$conftest_s" > conftest.s
15421 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15424 ac_status=$?
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; }
15427 then
15428 gcc_cv_as_powerpc_mfcrf=yes
15429 else
15430 echo "configure: failed program was" >&5
15431 cat conftest.s >&5
15432 fi
15433 rm -f conftest.o conftest.s
15434 fi
15435 fi
15436 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15437 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15438 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15439
15440 cat >>confdefs.h <<\_ACEOF
15441 #define HAVE_AS_MFCRF 1
15442 _ACEOF
15443
15444 fi
15445
15446 case $target in
15447 *-*-aix*) conftest_s=' .machine "pwr5"
15448 .csect .text[PR]
15449 popcntb 3,3';;
15450 *) conftest_s=' .machine power5
15451 .text
15452 popcntb 3,3';;
15453 esac
15454
15455 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15456 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15457 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 else
15460 gcc_cv_as_powerpc_popcntb=no
15461 if test $in_tree_gas = yes; then
15462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15463 then gcc_cv_as_powerpc_popcntb=yes
15464 fi
15465 elif test x$gcc_cv_as != x; then
15466 echo "$conftest_s" > conftest.s
15467 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }
15473 then
15474 gcc_cv_as_powerpc_popcntb=yes
15475 else
15476 echo "configure: failed program was" >&5
15477 cat conftest.s >&5
15478 fi
15479 rm -f conftest.o conftest.s
15480 fi
15481 fi
15482 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15483 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15484 if test $gcc_cv_as_powerpc_popcntb = yes; then
15485
15486 cat >>confdefs.h <<\_ACEOF
15487 #define HAVE_AS_POPCNTB 1
15488 _ACEOF
15489
15490 fi
15491
15492 case $target in
15493 *-*-aix*) conftest_s=' .machine "pwr5x"
15494 .csect .text[PR]
15495 frin 1,1';;
15496 *) conftest_s=' .machine power5
15497 .text
15498 frin 1,1';;
15499 esac
15500
15501 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15502 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15503 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506 gcc_cv_as_powerpc_fprnd=no
15507 if test $in_tree_gas = yes; then
15508 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15509 then gcc_cv_as_powerpc_fprnd=yes
15510 fi
15511 elif test x$gcc_cv_as != x; then
15512 echo "$conftest_s" > conftest.s
15513 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15516 ac_status=$?
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }
15519 then
15520 gcc_cv_as_powerpc_fprnd=yes
15521 else
15522 echo "configure: failed program was" >&5
15523 cat conftest.s >&5
15524 fi
15525 rm -f conftest.o conftest.s
15526 fi
15527 fi
15528 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15529 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15530 if test $gcc_cv_as_powerpc_fprnd = yes; then
15531
15532 cat >>confdefs.h <<\_ACEOF
15533 #define HAVE_AS_FPRND 1
15534 _ACEOF
15535
15536 fi
15537
15538 case $target in
15539 *-*-aix*) conftest_s=' .machine "pwr6"
15540 .csect .text[PR]
15541 mffgpr 1,3';;
15542 *) conftest_s=' .machine power6
15543 .text
15544 mffgpr 1,3';;
15545 esac
15546
15547 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15548 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15549 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552 gcc_cv_as_powerpc_mfpgpr=no
15553 if test $in_tree_gas = yes; then
15554 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15555 then gcc_cv_as_powerpc_mfpgpr=yes
15556 fi
15557 elif test x$gcc_cv_as != x; then
15558 echo "$conftest_s" > conftest.s
15559 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }
15565 then
15566 gcc_cv_as_powerpc_mfpgpr=yes
15567 else
15568 echo "configure: failed program was" >&5
15569 cat conftest.s >&5
15570 fi
15571 rm -f conftest.o conftest.s
15572 fi
15573 fi
15574 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15575 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15576 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15577
15578 cat >>confdefs.h <<\_ACEOF
15579 #define HAVE_AS_MFPGPR 1
15580 _ACEOF
15581
15582 fi
15583
15584 case $target in
15585 *-*-aix*) conftest_s=' .csect .text[PR]
15586 LCF..0:
15587 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15588 *-*-darwin*)
15589 conftest_s=' .text
15590 LCF0:
15591 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15592 *) conftest_s=' .text
15593 .LCF0:
15594 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15595 esac
15596
15597 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15598 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15599 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 else
15602 gcc_cv_as_powerpc_rel16=no
15603 if test $in_tree_gas = yes; then
15604 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15605 then gcc_cv_as_powerpc_rel16=yes
15606 fi
15607 elif test x$gcc_cv_as != x; then
15608 echo "$conftest_s" > conftest.s
15609 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15612 ac_status=$?
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }
15615 then
15616 gcc_cv_as_powerpc_rel16=yes
15617 else
15618 echo "configure: failed program was" >&5
15619 cat conftest.s >&5
15620 fi
15621 rm -f conftest.o conftest.s
15622 fi
15623 fi
15624 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15625 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15626 if test $gcc_cv_as_powerpc_rel16 = yes; then
15627
15628 cat >>confdefs.h <<\_ACEOF
15629 #define HAVE_AS_REL16 1
15630 _ACEOF
15631
15632 fi
15633
15634 case $target in
15635 *-*-aix*) conftest_s=' .machine "pwr6"
15636 .csect .text[PR]
15637 cmpb 3,4,5';;
15638 *) conftest_s=' .machine power6
15639 .text
15640 cmpb 3,4,5';;
15641 esac
15642
15643 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15644 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15645 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 else
15648 gcc_cv_as_powerpc_cmpb=no
15649 if test $in_tree_gas = yes; then
15650 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15651 then gcc_cv_as_powerpc_cmpb=yes
15652 fi
15653 elif test x$gcc_cv_as != x; then
15654 echo "$conftest_s" > conftest.s
15655 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; }
15661 then
15662 gcc_cv_as_powerpc_cmpb=yes
15663 else
15664 echo "configure: failed program was" >&5
15665 cat conftest.s >&5
15666 fi
15667 rm -f conftest.o conftest.s
15668 fi
15669 fi
15670 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15671 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15672 if test $gcc_cv_as_powerpc_cmpb = yes; then
15673
15674 cat >>confdefs.h <<\_ACEOF
15675 #define HAVE_AS_CMPB 1
15676 _ACEOF
15677
15678 fi
15679
15680 case $target in
15681 *-*-aix*) conftest_s=' .machine "pwr6"
15682 .csect .text[PR]
15683 dadd 1,3';;
15684 *) conftest_s=' .machine power6
15685 .text
15686 dadd 1,3';;
15687 esac
15688
15689 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15690 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15691 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 else
15694 gcc_cv_as_powerpc_dfp=no
15695 if test $in_tree_gas = yes; then
15696 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15697 then gcc_cv_as_powerpc_dfp=yes
15698 fi
15699 elif test x$gcc_cv_as != x; then
15700 echo "$conftest_s" > conftest.s
15701 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }
15707 then
15708 gcc_cv_as_powerpc_dfp=yes
15709 else
15710 echo "configure: failed program was" >&5
15711 cat conftest.s >&5
15712 fi
15713 rm -f conftest.o conftest.s
15714 fi
15715 fi
15716 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15717 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15718 if test $gcc_cv_as_powerpc_dfp = yes; then
15719
15720 cat >>confdefs.h <<\_ACEOF
15721 #define HAVE_AS_DFP 1
15722 _ACEOF
15723
15724 fi
15725 ;;
15726
15727 mips*-*-*)
15728 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15729 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15730 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733 gcc_cv_as_mips_explicit_relocs=no
15734 if test $in_tree_gas = yes; then
15735 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15736 then gcc_cv_as_mips_explicit_relocs=yes
15737 fi
15738 elif test x$gcc_cv_as != x; then
15739 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15740 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }
15746 then
15747 gcc_cv_as_mips_explicit_relocs=yes
15748 else
15749 echo "configure: failed program was" >&5
15750 cat conftest.s >&5
15751 fi
15752 rm -f conftest.o conftest.s
15753 fi
15754 fi
15755 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15756 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15757 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15758 if test x$target_cpu_default = x
15759 then target_cpu_default=MASK_EXPLICIT_RELOCS
15760 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15761 fi
15762 fi
15763 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15764 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15765 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 else
15768 gcc_cv_as_mips_no_shared=no
15769 if test $in_tree_gas = yes; then
15770 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15771 then gcc_cv_as_mips_no_shared=yes
15772 fi
15773 elif test x$gcc_cv_as != x; then
15774 echo 'nop' > conftest.s
15775 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; }
15781 then
15782 gcc_cv_as_mips_no_shared=yes
15783 else
15784 echo "configure: failed program was" >&5
15785 cat conftest.s >&5
15786 fi
15787 rm -f conftest.o conftest.s
15788 fi
15789 fi
15790 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15791 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15792 if test $gcc_cv_as_mips_no_shared = yes; then
15793
15794 cat >>confdefs.h <<\_ACEOF
15795 #define HAVE_AS_NO_SHARED 1
15796 _ACEOF
15797
15798 fi
15799 ;;
15800 esac
15801
15802 # Mips and HP-UX need the GNU assembler.
15803 # Linux on IA64 might be able to use the Intel assembler.
15804
15805 case "$target" in
15806 mips*-*-* | *-*-hpux* )
15807 if test x$gas_flag = xyes \
15808 || test x"$host" != x"$build" \
15809 || test ! -x "$gcc_cv_as" \
15810 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15811 :
15812 else
15813 echo "*** This configuration requires the GNU assembler" >&2
15814 exit 1
15815 fi
15816 ;;
15817 esac
15818
15819 # ??? Not all targets support dwarf2 debug_line, even within a version
15820 # of gas. Moreover, we need to emit a valid instruction to trigger any
15821 # info to the output file. So, as supported targets are added to gas 2.11,
15822 # add some instruction here to (also) show we expect this might work.
15823 # ??? Once 2.11 is released, probably need to add first known working
15824 # version to the per-target configury.
15825 case "$target" in
15826 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15827 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15828 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
15829 insn="nop"
15830 ;;
15831 ia64*-*-* | s390*-*-*)
15832 insn="nop 0"
15833 ;;
15834 mmix-*-*)
15835 insn="swym 0"
15836 ;;
15837 esac
15838 if test x"$insn" != x; then
15839 conftest_s="\
15840 .file 1 \"conftest.s\"
15841 .loc 1 3 0
15842 $insn"
15843 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15844 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15845 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 else
15848 gcc_cv_as_dwarf2_debug_line=no
15849 if test $in_tree_gas = yes; then
15850 if test $in_tree_gas_is_elf = yes \
15851 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15852 then gcc_cv_as_dwarf2_debug_line=yes
15853 fi
15854 elif test x$gcc_cv_as != x; then
15855 echo "$conftest_s" > conftest.s
15856 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; }
15862 then
15863 if test x$gcc_cv_objdump != x \
15864 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15865 | grep debug_line > /dev/null 2>&1; then
15866 gcc_cv_as_dwarf2_debug_line=yes
15867 fi
15868 else
15869 echo "configure: failed program was" >&5
15870 cat conftest.s >&5
15871 fi
15872 rm -f conftest.o conftest.s
15873 fi
15874 fi
15875 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15876 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15877
15878
15879 # The .debug_line file table must be in the exact order that
15880 # we specified the files, since these indices are also used
15881 # by DW_AT_decl_file. Approximate this test by testing if
15882 # the assembler bitches if the same index is assigned twice.
15883 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15884 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15885 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 else
15888 gcc_cv_as_dwarf2_file_buggy=no
15889 if test x$gcc_cv_as != x; then
15890 echo ' .file 1 "foo.s"
15891 .file 1 "bar.s"' > conftest.s
15892 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }
15898 then
15899 gcc_cv_as_dwarf2_file_buggy=yes
15900 else
15901 echo "configure: failed program was" >&5
15902 cat conftest.s >&5
15903 fi
15904 rm -f conftest.o conftest.s
15905 fi
15906 fi
15907 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15908 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15909
15910
15911 if test $gcc_cv_as_dwarf2_debug_line = yes \
15912 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15913
15914 cat >>confdefs.h <<\_ACEOF
15915 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15916 _ACEOF
15917
15918 fi
15919
15920 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15921 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15922 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925 gcc_cv_as_gdwarf2_flag=no
15926 if test $in_tree_gas = yes; then
15927 if test $in_tree_gas_is_elf = yes \
15928 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15929 then gcc_cv_as_gdwarf2_flag=yes
15930 fi
15931 elif test x$gcc_cv_as != x; then
15932 echo "$insn" > conftest.s
15933 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }
15939 then
15940 gcc_cv_as_gdwarf2_flag=yes
15941 else
15942 echo "configure: failed program was" >&5
15943 cat conftest.s >&5
15944 fi
15945 rm -f conftest.o conftest.s
15946 fi
15947 fi
15948 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15949 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15950 if test $gcc_cv_as_gdwarf2_flag = yes; then
15951
15952 cat >>confdefs.h <<\_ACEOF
15953 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15954 _ACEOF
15955
15956 fi
15957
15958 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15959 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15960 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 else
15963 gcc_cv_as_gstabs_flag=no
15964 if test $in_tree_gas = yes; then
15965 if test $in_tree_gas_is_elf = yes \
15966 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15967 then gcc_cv_as_gstabs_flag=yes
15968 fi
15969 elif test x$gcc_cv_as != x; then
15970 echo "$insn" > conftest.s
15971 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }
15977 then
15978 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15979 # and warns about it, but still exits successfully. So check for
15980 # this.
15981 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15984 ac_status=$?
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; }
15987 then :
15988 else gcc_cv_as_gstabs_flag=yes
15989 fi
15990 else
15991 echo "configure: failed program was" >&5
15992 cat conftest.s >&5
15993 fi
15994 rm -f conftest.o conftest.s
15995 fi
15996 fi
15997 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15998 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15999 if test $gcc_cv_as_gstabs_flag = yes; then
16000
16001 cat >>confdefs.h <<\_ACEOF
16002 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16003 _ACEOF
16004
16005 fi
16006 fi
16007
16008 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16009 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16010 gcc_cv_ld_ro_rw_mix=unknown
16011 if test $in_tree_ld = yes ; then
16012 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 \
16013 && test $in_tree_ld_is_elf = yes; then
16014 gcc_cv_ld_ro_rw_mix=read-write
16015 fi
16016 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16017 echo '.section myfoosect, "a"' > conftest1.s
16018 echo '.section myfoosect, "aw"' > conftest2.s
16019 echo '.byte 1' >> conftest2.s
16020 echo '.section myfoosect, "a"' > conftest3.s
16021 echo '.byte 0' >> conftest3.s
16022 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16023 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16024 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16025 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16026 conftest2.o conftest3.o > /dev/null 2>&1; then
16027 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16028 | sed -e '/myfoosect/!d' -e N`
16029 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16030 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16031 gcc_cv_ld_ro_rw_mix=read-only
16032 else
16033 gcc_cv_ld_ro_rw_mix=read-write
16034 fi
16035 fi
16036 fi
16037 rm -f conftest.* conftest[123].*
16038 fi
16039 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16040
16041 cat >>confdefs.h <<\_ACEOF
16042 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16043 _ACEOF
16044
16045 fi
16046 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16047 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16048
16049 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16050 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16051 gcc_cv_ld_eh_frame_hdr=no
16052 if test $in_tree_ld = yes ; then
16053 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 \
16054 && test $in_tree_ld_is_elf = yes; then
16055 gcc_cv_ld_eh_frame_hdr=yes
16056 fi
16057 elif test x$gcc_cv_ld != x; then
16058 # Check if linker supports --eh-frame-hdr option
16059 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16060 gcc_cv_ld_eh_frame_hdr=yes
16061 fi
16062 fi
16063
16064 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16065
16066 cat >>confdefs.h <<\_ACEOF
16067 #define HAVE_LD_EH_FRAME_HDR 1
16068 _ACEOF
16069
16070 fi
16071 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16072 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16073
16074 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16075 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16076 gcc_cv_ld_pie=no
16077 if test $in_tree_ld = yes ; then
16078 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 \
16079 && test $in_tree_ld_is_elf = yes; then
16080 gcc_cv_ld_pie=yes
16081 fi
16082 elif test x$gcc_cv_ld != x; then
16083 # Check if linker supports -pie option
16084 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16085 gcc_cv_ld_pie=yes
16086 fi
16087 fi
16088 if test x"$gcc_cv_ld_pie" = xyes; then
16089
16090 cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_LD_PIE 1
16092 _ACEOF
16093
16094 fi
16095 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16096 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16097
16098 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16099 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16100 gcc_cv_ld_eh_gc_sections=no
16101 if test $in_tree_ld = yes ; then
16102 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16103 && test $in_tree_ld_is_elf = yes; then
16104 gcc_cv_ld_eh_gc_sections=yes
16105 fi
16106 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16107 cat > conftest.s <<EOF
16108 .section .text
16109 .globl _start
16110 .type _start, @function
16111 _start:
16112 .long foo
16113 .size _start, .-_start
16114 .section .text.foo,"ax",@progbits
16115 .type foo, @function
16116 foo:
16117 .long 0
16118 .size foo, .-foo
16119 .section .gcc_except_table.foo,"a",@progbits
16120 .L0:
16121 .long 0
16122 .section .eh_frame,"a",@progbits
16123 .long .L0
16124 EOF
16125 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16126 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16127 | grep "gc-sections option ignored" > /dev/null; then
16128 gcc_cv_ld_eh_gc_sections=no
16129 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16130 gcc_cv_ld_eh_gc_sections=yes
16131 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16132 if test x$gcc_cv_as_comdat_group != xyes; then
16133 gcc_cv_ld_eh_gc_sections=no
16134 cat > conftest.s <<EOF
16135 .section .text
16136 .globl _start
16137 .type _start, @function
16138 _start:
16139 .long foo
16140 .size _start, .-_start
16141 .section .gnu.linkonce.t.foo,"ax",@progbits
16142 .type foo, @function
16143 foo:
16144 .long 0
16145 .size foo, .-foo
16146 .section .gcc_except_table.foo,"a",@progbits
16147 .L0:
16148 .long 0
16149 .section .eh_frame,"a",@progbits
16150 .long .L0
16151 EOF
16152 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16153 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16154 | grep "gc-sections option ignored" > /dev/null; then
16155 gcc_cv_ld_eh_gc_sections=no
16156 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16157 gcc_cv_ld_eh_gc_sections=yes
16158 fi
16159 fi
16160 fi
16161 fi
16162 fi
16163 rm -f conftest.s conftest.o conftest
16164 fi
16165 case "$target" in
16166 hppa*-*-linux*)
16167 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16168 gcc_cv_ld_eh_gc_sections=no
16169 ;;
16170 esac
16171 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16172
16173 cat >>confdefs.h <<\_ACEOF
16174 #define HAVE_LD_EH_GC_SECTIONS 1
16175 _ACEOF
16176
16177 fi
16178 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16179 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16180
16181 # --------
16182 # UNSORTED
16183 # --------
16184
16185 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16186 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16187 if test "${gcc_cv_ld_as_needed+set}" = set; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 else
16190 gcc_cv_ld_as_needed=no
16191 if test $in_tree_ld = yes ; then
16192 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 \
16193 && test $in_tree_ld_is_elf = yes; then
16194 gcc_cv_ld_as_needed=yes
16195 fi
16196 elif test x$gcc_cv_ld != x; then
16197 # Check if linker supports --as-needed and --no-as-needed options
16198 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16199 gcc_cv_ld_as_needed=yes
16200 fi
16201 fi
16202
16203 fi
16204 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16205 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16206 if test x"$gcc_cv_ld_as_needed" = xyes; then
16207
16208 cat >>confdefs.h <<\_ACEOF
16209 #define HAVE_LD_AS_NEEDED 1
16210 _ACEOF
16211
16212 fi
16213
16214 case "$target:$tm_file" in
16215 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16216 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16217 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16218 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6
16220 else
16221 gcc_cv_ld_no_dot_syms=no
16222 if test $in_tree_ld = yes ; then
16223 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
16224 gcc_cv_ld_no_dot_syms=yes
16225 fi
16226 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16227 cat > conftest1.s <<EOF
16228 .text
16229 bl .foo
16230 EOF
16231 cat > conftest2.s <<EOF
16232 .section ".opd","aw"
16233 .align 3
16234 .globl foo
16235 .type foo,@function
16236 foo:
16237 .quad .LEfoo,.TOC.@tocbase,0
16238 .text
16239 .LEfoo:
16240 blr
16241 .size foo,.-.LEfoo
16242 EOF
16243 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16244 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16245 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16246 gcc_cv_ld_no_dot_syms=yes
16247 fi
16248 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16249 fi
16250
16251 fi
16252 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16253 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16254 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16255
16256 cat >>confdefs.h <<\_ACEOF
16257 #define HAVE_LD_NO_DOT_SYMS 1
16258 _ACEOF
16259
16260 fi
16261 ;;
16262 esac
16263
16264 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16265 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16266 if test "${gcc_cv_ld_sysroot+set}" = set; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16268 else
16269 gcc_cv_ld_sysroot=no
16270 if test $in_tree_ld = yes ; then
16271 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
16272 gcc_cv_ld_sysroot=yes
16273 fi
16274 elif test x$gcc_cv_ld != x; then
16275 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16276 gcc_cv_ld_sysroot=yes
16277 fi
16278 fi
16279 fi
16280 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16281 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16282 if test x"$gcc_cv_ld_sysroot" = xyes; then
16283
16284 cat >>confdefs.h <<\_ACEOF
16285 #define HAVE_LD_SYSROOT 1
16286 _ACEOF
16287
16288 fi
16289
16290 if test x$with_sysroot = x && test x$host = x$target \
16291 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16292 && test "$prefix" != "NONE"; then
16293
16294 cat >>confdefs.h <<_ACEOF
16295 #define PREFIX_INCLUDE_DIR "$prefix/include"
16296 _ACEOF
16297
16298 fi
16299
16300 # Test for stack protector support in target C library.
16301 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16302 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16303 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306 gcc_cv_libc_provides_ssp=no
16307 case "$target" in
16308 *-*-linux*)
16309 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16310 if test "x$with_sysroot" = x; then
16311 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16312 elif test "x$with_sysroot" = xyes; then
16313 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16314 else
16315 glibc_header_dir="${with_sysroot}/usr/include"
16316 fi
16317 else
16318 glibc_header_dir=/usr/include
16319 fi
16320 # glibc 2.4 and later provides __stack_chk_fail and
16321 # either __stack_chk_guard, or TLS access to stack guard canary.
16322 if test -f $glibc_header_dir/features.h \
16323 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16324 $glibc_header_dir/features.h > /dev/null; then
16325 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16326 $glibc_header_dir/features.h > /dev/null; then
16327 gcc_cv_libc_provides_ssp=yes
16328 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16329 $glibc_header_dir/features.h > /dev/null \
16330 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16331 $glibc_header_dir/features.h > /dev/null; then
16332 gcc_cv_libc_provides_ssp=yes
16333 fi
16334 fi
16335 ;;
16336 *-*-darwin*)
16337 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16338 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16339 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16341 else
16342 cat >conftest.$ac_ext <<_ACEOF
16343 /* confdefs.h. */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16348 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16350 #define __stack_chk_fail innocuous___stack_chk_fail
16351
16352 /* System header to define __stub macros and hopefully few prototypes,
16353 which can conflict with char __stack_chk_fail (); below.
16354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16355 <limits.h> exists even on freestanding compilers. */
16356
16357 #ifdef __STDC__
16358 # include <limits.h>
16359 #else
16360 # include <assert.h>
16361 #endif
16362
16363 #undef __stack_chk_fail
16364
16365 /* Override any gcc2 internal prototype to avoid an error. */
16366 #ifdef __cplusplus
16367 extern "C"
16368 {
16369 #endif
16370 /* We use char because int might match the return type of a gcc2
16371 builtin and then its argument prototype would still apply. */
16372 char __stack_chk_fail ();
16373 /* The GNU C library defines this for functions which it implements
16374 to always fail with ENOSYS. Some functions are actually named
16375 something starting with __ and the normal name is an alias. */
16376 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16377 choke me
16378 #else
16379 char (*f) () = __stack_chk_fail;
16380 #endif
16381 #ifdef __cplusplus
16382 }
16383 #endif
16384
16385 int
16386 main ()
16387 {
16388 return f != __stack_chk_fail;
16389 ;
16390 return 0;
16391 }
16392 _ACEOF
16393 rm -f conftest.$ac_objext conftest$ac_exeext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16395 (eval $ac_link) 2>conftest.er1
16396 ac_status=$?
16397 grep -v '^ *+' conftest.er1 >conftest.err
16398 rm -f conftest.er1
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -z "$ac_c_werror_flag"
16403 || test ! -s conftest.err'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; } &&
16409 { ac_try='test -s conftest$ac_exeext'
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; }; then
16415 ac_cv_func___stack_chk_fail=yes
16416 else
16417 echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16419
16420 ac_cv_func___stack_chk_fail=no
16421 fi
16422 rm -f conftest.err conftest.$ac_objext \
16423 conftest$ac_exeext conftest.$ac_ext
16424 fi
16425 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16426 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16427 if test $ac_cv_func___stack_chk_fail = yes; then
16428 gcc_cv_libc_provides_ssp=yes
16429 else
16430 echo "no __stack_chk_fail on this target"
16431 fi
16432
16433 ;;
16434 *) gcc_cv_libc_provides_ssp=no ;;
16435 esac
16436 fi
16437 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16438 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16439
16440 if test x$gcc_cv_libc_provides_ssp = xyes; then
16441
16442 cat >>confdefs.h <<\_ACEOF
16443 #define TARGET_LIBC_PROVIDES_SSP 1
16444 _ACEOF
16445
16446 fi
16447
16448 # Check if TFmode long double should be used by default or not.
16449 # Some glibc targets used DFmode long double, but with glibc 2.4
16450 # and later they can use TFmode.
16451 case "$target" in
16452 powerpc*-*-*gnu* | \
16453 sparc*-*-linux* | \
16454 s390*-*-linux* | \
16455 alpha*-*-linux*)
16456
16457 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16458 if test "${with_long_double_128+set}" = set; then
16459 withval="$with_long_double_128"
16460 gcc_cv_target_ldbl128="$with_long_double_128"
16461 else
16462 gcc_cv_target_ldbl128=no
16463 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16464 if test "x$with_sysroot" = x; then
16465 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16466 elif test "x$with_sysroot" = xyes; then
16467 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16468 else
16469 glibc_header_dir="${with_sysroot}/usr/include"
16470 fi
16471 else
16472 glibc_header_dir=/usr/include
16473 fi
16474 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16475 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16476 && gcc_cv_target_ldbl128=yes
16477
16478 fi;
16479 ;;
16480 esac
16481 if test x$gcc_cv_target_ldbl128 = xyes; then
16482
16483 cat >>confdefs.h <<\_ACEOF
16484 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16485 _ACEOF
16486
16487 fi
16488
16489 # Find out what GC implementation we want, or may, use.
16490
16491 # Check whether --with-gc or --without-gc was given.
16492 if test "${with_gc+set}" = set; then
16493 withval="$with_gc"
16494 case "$withval" in
16495 page)
16496 GGC=ggc-$withval
16497 ;;
16498 zone)
16499 GGC=ggc-$withval
16500
16501 cat >>confdefs.h <<\_ACEOF
16502 #define GGC_ZONE 1
16503 _ACEOF
16504
16505 ;;
16506 *)
16507 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16508 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16509 { (exit 1); exit 1; }; }
16510 ;;
16511 esac
16512 else
16513 GGC=ggc-page
16514 fi;
16515
16516 echo "Using $GGC for garbage collection."
16517
16518 # Use the system's zlib library.
16519 zlibdir=-L../zlib
16520 zlibinc="-I\$(srcdir)/../zlib"
16521
16522 # Check whether --with-system-zlib or --without-system-zlib was given.
16523 if test "${with_system_zlib+set}" = set; then
16524 withval="$with_system_zlib"
16525 zlibdir=
16526 zlibinc=
16527
16528 fi;
16529
16530
16531
16532
16533 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16534 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16536 if test "${enable_maintainer_mode+set}" = set; then
16537 enableval="$enable_maintainer_mode"
16538 maintainer_mode=$enableval
16539 else
16540 maintainer_mode=no
16541 fi;
16542
16543 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16544 echo "${ECHO_T}$maintainer_mode" >&6
16545
16546 if test "$maintainer_mode" = "yes"; then
16547 MAINT=''
16548 else
16549 MAINT='#'
16550 fi
16551
16552 # --------------
16553 # Language hooks
16554 # --------------
16555
16556 # Make empty files to contain the specs and options for each language.
16557 # Then add #include lines to for a compiler that has specs and/or options.
16558
16559 subdirs=
16560 lang_opt_files=
16561 lang_specs_files=
16562 lang_tree_files=
16563 # These (without "all_") are set in each config-lang.in.
16564 # `language' must be a single word so is spelled singularly.
16565 all_languages=
16566 all_compilers=
16567 all_outputs='Makefile gccbug libada-mk'
16568 # List of language makefile fragments.
16569 all_lang_makefrags=
16570 # List of language subdirectory makefiles. Deprecated.
16571 all_lang_makefiles=
16572 # Files for gengtype
16573 all_gtfiles="$target_gtfiles"
16574 # Files for gengtype with language
16575 all_gtfiles_files_langs=
16576 all_gtfiles_files_files=
16577
16578 # These are the languages that are set in --enable-languages,
16579 # and are available in the GCC tree.
16580 all_selected_languages=
16581
16582 # Add the language fragments.
16583 # Languages are added via two mechanisms. Some information must be
16584 # recorded in makefile variables, these are defined in config-lang.in.
16585 # We accumulate them and plug them into the main Makefile.
16586 # The other mechanism is a set of hooks for each of the main targets
16587 # like `clean', `install', etc.
16588
16589 language_hooks="Make-hooks"
16590
16591 for lang in ${srcdir}/*/config-lang.in
16592 do
16593 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16594
16595 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16596 if test "x$lang_alias" = x
16597 then
16598 echo "$lang doesn't set \$language." 1>&2
16599 exit 1
16600 fi
16601 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16602 subdirs="$subdirs $subdir"
16603 case ",$enable_languages," in
16604 *,$lang_alias,*)
16605 all_selected_languages="$all_selected_languages $lang_alias"
16606 if test -f $srcdir/$subdir/lang-specs.h; then
16607 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16608 fi
16609 ;;
16610 esac
16611
16612 language=
16613 boot_language=
16614 compilers=
16615 outputs=
16616 gtfiles=
16617 subdir_requires=
16618 . ${srcdir}/$subdir/config-lang.in
16619 if test "x$language" = x
16620 then
16621 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16622 exit 1
16623 fi
16624
16625 ok=:
16626 case ",$enable_languages," in
16627 *,$lang_alias,*) ;;
16628 *)
16629 for i in $subdir_requires; do
16630 test -f "${srcdir}/$i/config-lang.in" && continue
16631 ok=false
16632 break
16633 done
16634 ;;
16635 esac
16636 $ok || continue
16637
16638 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16639 if test -f $srcdir/$subdir/lang.opt; then
16640 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16641 fi
16642 if test -f $srcdir/$subdir/$subdir-tree.def; then
16643 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16644 fi
16645 if test -f ${srcdir}/$subdir/Makefile.in
16646 then all_lang_makefiles="$subdir/Makefile"
16647 fi
16648 all_languages="$all_languages $language"
16649 all_compilers="$all_compilers $compilers"
16650 all_outputs="$all_outputs $outputs"
16651 all_gtfiles="$all_gtfiles $gtfiles"
16652 for f in $gtfiles
16653 do
16654 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16655 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16656 done
16657 done
16658
16659 # Pick up gtfiles for c
16660 gtfiles=
16661 subdir="c"
16662 . ${srcdir}/c-config-lang.in
16663 all_gtfiles="$all_gtfiles $gtfiles"
16664 for f in $gtfiles
16665 do
16666 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16667 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16668 done
16669
16670 check_languages=
16671 for language in $all_selected_languages
16672 do
16673 check_languages="$check_languages check-$language"
16674 done
16675
16676 # We link each language in with a set of hooks, reached indirectly via
16677 # lang.${target}. Only do so for selected languages.
16678
16679 rm -f Make-hooks
16680 touch Make-hooks
16681 target_list="all.cross start.encap rest.encap tags \
16682 install-common install-man install-info install-pdf dvi pdf \
16683 html uninstall info man srcextra srcman srcinfo \
16684 mostlyclean clean distclean maintainer-clean"
16685
16686 for t in $target_list
16687 do
16688 x=
16689 for lang in $all_selected_languages
16690 do
16691 x="$x $lang.$t"
16692 done
16693 echo "lang.$t: $x" >> Make-hooks
16694 done
16695
16696 # --------
16697 # UNSORTED
16698 # --------
16699
16700 # Create .gdbinit.
16701
16702 echo "dir ." > .gdbinit
16703 echo "dir ${srcdir}" >> .gdbinit
16704 if test x$gdb_needs_out_file_path = xyes
16705 then
16706 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16707 fi
16708 if test "x$subdirs" != x; then
16709 for s in $subdirs
16710 do
16711 echo "dir ${srcdir}/$s" >> .gdbinit
16712 done
16713 fi
16714 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16715
16716 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16717 # absolute path for gcc_tooldir based on inserting the number of up-directory
16718 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16719 # $(libsubdir)/@(unlibsubdir) based path.
16720 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16721 # make and thus we'd get different behavior depending on where we built the
16722 # sources.
16723 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16724 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16725 else
16726 # An explanation of the sed strings:
16727 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16728 # -e 's|/$||' match a trailing forward slash and eliminates it
16729 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16730 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16731 #
16732 # (*) Note this pattern overwrites the first character of the string
16733 # with a forward slash if one is not already present. This is not a
16734 # problem because the exact names of the sub-directories concerned is
16735 # unimportant, just the number of them matters.
16736 #
16737 # The practical upshot of these patterns is like this:
16738 #
16739 # prefix exec_prefix result
16740 # ------ ----------- ------
16741 # /foo /foo/bar ../
16742 # /foo/ /foo/bar ../
16743 # /foo /foo/bar/ ../
16744 # /foo/ /foo/bar/ ../
16745 # /foo /foo/bar/ugg ../../
16746 #
16747 dollar='$$'
16748 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16749 fi
16750
16751
16752
16753 # Find a directory in which to install a shared libgcc.
16754
16755 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16756 if test "${enable_version_specific_runtime_libs+set}" = set; then
16757 enableval="$enable_version_specific_runtime_libs"
16758
16759 fi;
16760
16761
16762 # Check whether --with-slibdir or --without-slibdir was given.
16763 if test "${with_slibdir+set}" = set; then
16764 withval="$with_slibdir"
16765 slibdir="$with_slibdir"
16766 else
16767 if test "${enable_version_specific_runtime_libs+set}" = set; then
16768 slibdir='$(libsubdir)'
16769 elif test "$host" != "$target"; then
16770 slibdir='$(build_tooldir)/lib'
16771 else
16772 slibdir='$(libdir)'
16773 fi
16774 fi;
16775
16776
16777 objdir=`${PWDCMD-pwd}`
16778
16779
16780
16781 # Check whether --with-datarootdir or --without-datarootdir was given.
16782 if test "${with_datarootdir+set}" = set; then
16783 withval="$with_datarootdir"
16784 datarootdir="\${prefix}/$with_datarootdir"
16785 else
16786 datarootdir='$(prefix)/share'
16787 fi;
16788
16789
16790
16791 # Check whether --with-docdir or --without-docdir was given.
16792 if test "${with_docdir+set}" = set; then
16793 withval="$with_docdir"
16794 docdir="\${prefix}/$with_docdir"
16795 else
16796 docdir='$(datarootdir)'
16797 fi;
16798
16799
16800
16801 # Check whether --with-htmldir or --without-htmldir was given.
16802 if test "${with_htmldir+set}" = set; then
16803 withval="$with_htmldir"
16804 htmldir="\${prefix}/$with_htmldir"
16805 else
16806 htmldir='$(docdir)'
16807 fi;
16808
16809
16810 # Substitute configuration variables
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868 # Echo link setup.
16869 if test x${build} = x${host} ; then
16870 if test x${host} = x${target} ; then
16871 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16872 else
16873 echo "Links are now set up to build a cross-compiler" 1>&2
16874 echo " from ${host} to ${target}." 1>&2
16875 fi
16876 else
16877 if test x${host} = x${target} ; then
16878 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16879 echo " for ${target}." 1>&2
16880 else
16881 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16882 echo " from ${host} to ${target}." 1>&2
16883 fi
16884 fi
16885
16886
16887
16888
16889 # Configure the subdirectories
16890 # AC_CONFIG_SUBDIRS($subdirs)
16891
16892 # Create the Makefile
16893 # and configure language subdirectories
16894 ac_config_files="$ac_config_files $all_outputs"
16895
16896
16897 ac_config_commands="$ac_config_commands default"
16898
16899 cat >confcache <<\_ACEOF
16900 # This file is a shell script that caches the results of configure
16901 # tests run on this system so they can be shared between configure
16902 # scripts and configure runs, see configure's option --config-cache.
16903 # It is not useful on other systems. If it contains results you don't
16904 # want to keep, you may remove or edit it.
16905 #
16906 # config.status only pays attention to the cache file if you give it
16907 # the --recheck option to rerun configure.
16908 #
16909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16911 # following values.
16912
16913 _ACEOF
16914
16915 # The following way of writing the cache mishandles newlines in values,
16916 # but we know of no workaround that is simple, portable, and efficient.
16917 # So, don't put newlines in cache variables' values.
16918 # Ultrix sh set writes to stderr and can't be redirected directly,
16919 # and sets the high bit in the cache file unless we assign to the vars.
16920 {
16921 (set) 2>&1 |
16922 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16923 *ac_space=\ *)
16924 # `set' does not quote correctly, so add quotes (double-quote
16925 # substitution turns \\\\ into \\, and sed turns \\ into \).
16926 sed -n \
16927 "s/'/'\\\\''/g;
16928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16929 ;;
16930 *)
16931 # `set' quotes correctly as required by POSIX, so do not add quotes.
16932 sed -n \
16933 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16934 ;;
16935 esac;
16936 } |
16937 sed '
16938 t clear
16939 : clear
16940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16941 t end
16942 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16943 : end' >>confcache
16944 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16945 if test -w $cache_file; then
16946 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16947 cat confcache >$cache_file
16948 else
16949 echo "not updating unwritable cache $cache_file"
16950 fi
16951 fi
16952 rm -f confcache
16953
16954 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16955 # Let make expand exec_prefix.
16956 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16957
16958 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16959 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16960 # trailing colons and then remove the whole line if VPATH becomes empty
16961 # (actually we leave an empty line to preserve line numbers).
16962 if test "x$srcdir" = x.; then
16963 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16964 s/:*\$(srcdir):*/:/;
16965 s/:*\${srcdir}:*/:/;
16966 s/:*@srcdir@:*/:/;
16967 s/^\([^=]*=[ ]*\):*/\1/;
16968 s/:*$//;
16969 s/^[^=]*=[ ]*$//;
16970 }'
16971 fi
16972
16973 DEFS=-DHAVE_CONFIG_H
16974
16975 ac_libobjs=
16976 ac_ltlibobjs=
16977 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16978 # 1. Remove the extension, and $U if already installed.
16979 ac_i=`echo "$ac_i" |
16980 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16981 # 2. Add them.
16982 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16983 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16984 done
16985 LIBOBJS=$ac_libobjs
16986
16987 LTLIBOBJS=$ac_ltlibobjs
16988
16989
16990
16991 : ${CONFIG_STATUS=./config.status}
16992 ac_clean_files_save=$ac_clean_files
16993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16994 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16995 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16996 cat >$CONFIG_STATUS <<_ACEOF
16997 #! $SHELL
16998 # Generated by $as_me.
16999 # Run this file to recreate the current configuration.
17000 # Compiler output produced by configure, useful for debugging
17001 # configure, is in config.log if it exists.
17002
17003 debug=false
17004 ac_cs_recheck=false
17005 ac_cs_silent=false
17006 SHELL=\${CONFIG_SHELL-$SHELL}
17007 _ACEOF
17008
17009 cat >>$CONFIG_STATUS <<\_ACEOF
17010 ## --------------------- ##
17011 ## M4sh Initialization. ##
17012 ## --------------------- ##
17013
17014 # Be Bourne compatible
17015 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17016 emulate sh
17017 NULLCMD=:
17018 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17019 # is contrary to our usage. Disable this feature.
17020 alias -g '${1+"$@"}'='"$@"'
17021 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17022 set -o posix
17023 fi
17024 DUALCASE=1; export DUALCASE # for MKS sh
17025
17026 # Support unset when possible.
17027 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17028 as_unset=unset
17029 else
17030 as_unset=false
17031 fi
17032
17033
17034 # Work around bugs in pre-3.0 UWIN ksh.
17035 $as_unset ENV MAIL MAILPATH
17036 PS1='$ '
17037 PS2='> '
17038 PS4='+ '
17039
17040 # NLS nuisances.
17041 for as_var in \
17042 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17043 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17044 LC_TELEPHONE LC_TIME
17045 do
17046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17047 eval $as_var=C; export $as_var
17048 else
17049 $as_unset $as_var
17050 fi
17051 done
17052
17053 # Required to use basename.
17054 if expr a : '\(a\)' >/dev/null 2>&1; then
17055 as_expr=expr
17056 else
17057 as_expr=false
17058 fi
17059
17060 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17061 as_basename=basename
17062 else
17063 as_basename=false
17064 fi
17065
17066
17067 # Name of the executable.
17068 as_me=`$as_basename "$0" ||
17069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17070 X"$0" : 'X\(//\)$' \| \
17071 X"$0" : 'X\(/\)$' \| \
17072 . : '\(.\)' 2>/dev/null ||
17073 echo X/"$0" |
17074 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17075 /^X\/\(\/\/\)$/{ s//\1/; q; }
17076 /^X\/\(\/\).*/{ s//\1/; q; }
17077 s/.*/./; q'`
17078
17079
17080 # PATH needs CR, and LINENO needs CR and PATH.
17081 # Avoid depending upon Character Ranges.
17082 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17083 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17084 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17085 as_cr_digits='0123456789'
17086 as_cr_alnum=$as_cr_Letters$as_cr_digits
17087
17088 # The user is always right.
17089 if test "${PATH_SEPARATOR+set}" != set; then
17090 echo "#! /bin/sh" >conf$$.sh
17091 echo "exit 0" >>conf$$.sh
17092 chmod +x conf$$.sh
17093 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17094 PATH_SEPARATOR=';'
17095 else
17096 PATH_SEPARATOR=:
17097 fi
17098 rm -f conf$$.sh
17099 fi
17100
17101
17102 as_lineno_1=$LINENO
17103 as_lineno_2=$LINENO
17104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17105 test "x$as_lineno_1" != "x$as_lineno_2" &&
17106 test "x$as_lineno_3" = "x$as_lineno_2" || {
17107 # Find who we are. Look in the path if we contain no path at all
17108 # relative or not.
17109 case $0 in
17110 *[\\/]* ) as_myself=$0 ;;
17111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17112 for as_dir in $PATH
17113 do
17114 IFS=$as_save_IFS
17115 test -z "$as_dir" && as_dir=.
17116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17117 done
17118
17119 ;;
17120 esac
17121 # We did not find ourselves, most probably we were run as `sh COMMAND'
17122 # in which case we are not to be found in the path.
17123 if test "x$as_myself" = x; then
17124 as_myself=$0
17125 fi
17126 if test ! -f "$as_myself"; then
17127 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17128 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17129 { (exit 1); exit 1; }; }
17130 fi
17131 case $CONFIG_SHELL in
17132 '')
17133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17135 do
17136 IFS=$as_save_IFS
17137 test -z "$as_dir" && as_dir=.
17138 for as_base in sh bash ksh sh5; do
17139 case $as_dir in
17140 /*)
17141 if ("$as_dir/$as_base" -c '
17142 as_lineno_1=$LINENO
17143 as_lineno_2=$LINENO
17144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17145 test "x$as_lineno_1" != "x$as_lineno_2" &&
17146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17149 CONFIG_SHELL=$as_dir/$as_base
17150 export CONFIG_SHELL
17151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17152 fi;;
17153 esac
17154 done
17155 done
17156 ;;
17157 esac
17158
17159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17160 # uniformly replaced by the line number. The first 'sed' inserts a
17161 # line-number line before each line; the second 'sed' does the real
17162 # work. The second script uses 'N' to pair each line-number line
17163 # with the numbered line, and appends trailing '-' during
17164 # substitution so that $LINENO is not a special case at line end.
17165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17167 sed '=' <$as_myself |
17168 sed '
17169 N
17170 s,$,-,
17171 : loop
17172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17173 t loop
17174 s,-$,,
17175 s,^['$as_cr_digits']*\n,,
17176 ' >$as_me.lineno &&
17177 chmod +x $as_me.lineno ||
17178 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17179 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17180 { (exit 1); exit 1; }; }
17181
17182 # Don't try to exec as it changes $[0], causing all sort of problems
17183 # (the dirname of $[0] is not the place where we might find the
17184 # original and so on. Autoconf is especially sensible to this).
17185 . ./$as_me.lineno
17186 # Exit status is that of the last command.
17187 exit
17188 }
17189
17190
17191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17192 *c*,-n*) ECHO_N= ECHO_C='
17193 ' ECHO_T=' ' ;;
17194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17196 esac
17197
17198 if expr a : '\(a\)' >/dev/null 2>&1; then
17199 as_expr=expr
17200 else
17201 as_expr=false
17202 fi
17203
17204 rm -f conf$$ conf$$.exe conf$$.file
17205 echo >conf$$.file
17206 if ln -s conf$$.file conf$$ 2>/dev/null; then
17207 # We could just check for DJGPP; but this test a) works b) is more generic
17208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17209 if test -f conf$$.exe; then
17210 # Don't use ln at all; we don't have any links
17211 as_ln_s='cp -p'
17212 else
17213 as_ln_s='ln -s'
17214 fi
17215 elif ln conf$$.file conf$$ 2>/dev/null; then
17216 as_ln_s=ln
17217 else
17218 as_ln_s='cp -p'
17219 fi
17220 rm -f conf$$ conf$$.exe conf$$.file
17221
17222 if mkdir -p . 2>/dev/null; then
17223 as_mkdir_p=:
17224 else
17225 test -d ./-p && rmdir ./-p
17226 as_mkdir_p=false
17227 fi
17228
17229 as_executable_p="test -f"
17230
17231 # Sed expression to map a string onto a valid CPP name.
17232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17233
17234 # Sed expression to map a string onto a valid variable name.
17235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17236
17237
17238 # IFS
17239 # We need space, tab and new line, in precisely that order.
17240 as_nl='
17241 '
17242 IFS=" $as_nl"
17243
17244 # CDPATH.
17245 $as_unset CDPATH
17246
17247 exec 6>&1
17248
17249 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17250 # report actual input values of CONFIG_FILES etc. instead of their
17251 # values after options handling. Logging --version etc. is OK.
17252 exec 5>>config.log
17253 {
17254 echo
17255 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17256 ## Running $as_me. ##
17257 _ASBOX
17258 } >&5
17259 cat >&5 <<_CSEOF
17260
17261 This file was extended by $as_me, which was
17262 generated by GNU Autoconf 2.59. Invocation command line was
17263
17264 CONFIG_FILES = $CONFIG_FILES
17265 CONFIG_HEADERS = $CONFIG_HEADERS
17266 CONFIG_LINKS = $CONFIG_LINKS
17267 CONFIG_COMMANDS = $CONFIG_COMMANDS
17268 $ $0 $@
17269
17270 _CSEOF
17271 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17272 echo >&5
17273 _ACEOF
17274
17275 # Files that config.status was made for.
17276 if test -n "$ac_config_files"; then
17277 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17278 fi
17279
17280 if test -n "$ac_config_headers"; then
17281 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17282 fi
17283
17284 if test -n "$ac_config_links"; then
17285 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17286 fi
17287
17288 if test -n "$ac_config_commands"; then
17289 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17290 fi
17291
17292 cat >>$CONFIG_STATUS <<\_ACEOF
17293
17294 ac_cs_usage="\
17295 \`$as_me' instantiates files from templates according to the
17296 current configuration.
17297
17298 Usage: $0 [OPTIONS] [FILE]...
17299
17300 -h, --help print this help, then exit
17301 -V, --version print version number, then exit
17302 -q, --quiet do not print progress messages
17303 -d, --debug don't remove temporary files
17304 --recheck update $as_me by reconfiguring in the same conditions
17305 --file=FILE[:TEMPLATE]
17306 instantiate the configuration file FILE
17307 --header=FILE[:TEMPLATE]
17308 instantiate the configuration header FILE
17309
17310 Configuration files:
17311 $config_files
17312
17313 Configuration headers:
17314 $config_headers
17315
17316 Configuration commands:
17317 $config_commands
17318
17319 Report bugs to <bug-autoconf@gnu.org>."
17320 _ACEOF
17321
17322 cat >>$CONFIG_STATUS <<_ACEOF
17323 ac_cs_version="\\
17324 config.status
17325 configured by $0, generated by GNU Autoconf 2.59,
17326 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17327
17328 Copyright (C) 2003 Free Software Foundation, Inc.
17329 This config.status script is free software; the Free Software Foundation
17330 gives unlimited permission to copy, distribute and modify it."
17331 srcdir=$srcdir
17332 _ACEOF
17333
17334 cat >>$CONFIG_STATUS <<\_ACEOF
17335 # If no file are specified by the user, then we need to provide default
17336 # value. By we need to know if files were specified by the user.
17337 ac_need_defaults=:
17338 while test $# != 0
17339 do
17340 case $1 in
17341 --*=*)
17342 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17343 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17344 ac_shift=:
17345 ;;
17346 -*)
17347 ac_option=$1
17348 ac_optarg=$2
17349 ac_shift=shift
17350 ;;
17351 *) # This is not an option, so the user has probably given explicit
17352 # arguments.
17353 ac_option=$1
17354 ac_need_defaults=false;;
17355 esac
17356
17357 case $ac_option in
17358 # Handling of the options.
17359 _ACEOF
17360 cat >>$CONFIG_STATUS <<\_ACEOF
17361 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17362 ac_cs_recheck=: ;;
17363 --version | --vers* | -V )
17364 echo "$ac_cs_version"; exit 0 ;;
17365 --he | --h)
17366 # Conflict between --help and --header
17367 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17368 Try \`$0 --help' for more information." >&5
17369 echo "$as_me: error: ambiguous option: $1
17370 Try \`$0 --help' for more information." >&2;}
17371 { (exit 1); exit 1; }; };;
17372 --help | --hel | -h )
17373 echo "$ac_cs_usage"; exit 0 ;;
17374 --debug | --d* | -d )
17375 debug=: ;;
17376 --file | --fil | --fi | --f )
17377 $ac_shift
17378 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17379 ac_need_defaults=false;;
17380 --header | --heade | --head | --hea )
17381 $ac_shift
17382 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17383 ac_need_defaults=false;;
17384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17385 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17386 ac_cs_silent=: ;;
17387
17388 # This is an error.
17389 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17390 Try \`$0 --help' for more information." >&5
17391 echo "$as_me: error: unrecognized option: $1
17392 Try \`$0 --help' for more information." >&2;}
17393 { (exit 1); exit 1; }; } ;;
17394
17395 *) ac_config_targets="$ac_config_targets $1" ;;
17396
17397 esac
17398 shift
17399 done
17400
17401 ac_configure_extra_args=
17402
17403 if $ac_cs_silent; then
17404 exec 6>/dev/null
17405 ac_configure_extra_args="$ac_configure_extra_args --silent"
17406 fi
17407
17408 _ACEOF
17409 cat >>$CONFIG_STATUS <<_ACEOF
17410 if \$ac_cs_recheck; then
17411 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17412 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17413 fi
17414
17415 _ACEOF
17416
17417 cat >>$CONFIG_STATUS <<_ACEOF
17418 #
17419 # INIT-COMMANDS section.
17420 #
17421
17422 subdirs='$subdirs'
17423
17424 _ACEOF
17425
17426
17427
17428 cat >>$CONFIG_STATUS <<\_ACEOF
17429 for ac_config_target in $ac_config_targets
17430 do
17431 case "$ac_config_target" in
17432 # Handling of arguments.
17433 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17434 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17435 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17436 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17437 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17438 { (exit 1); exit 1; }; };;
17439 esac
17440 done
17441
17442 # If the user did not use the arguments to specify the items to instantiate,
17443 # then the envvar interface is used. Set only those that are not.
17444 # We use the long form for the default assignment because of an extremely
17445 # bizarre bug on SunOS 4.1.3.
17446 if $ac_need_defaults; then
17447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17448 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17449 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17450 fi
17451
17452 # Have a temporary directory for convenience. Make it in the build tree
17453 # simply because there is no reason to put it here, and in addition,
17454 # creating and moving files from /tmp can sometimes cause problems.
17455 # Create a temporary directory, and hook for its removal unless debugging.
17456 $debug ||
17457 {
17458 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17459 trap '{ (exit 1); exit 1; }' 1 2 13 15
17460 }
17461
17462 # Create a (secure) tmp directory for tmp files.
17463
17464 {
17465 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17466 test -n "$tmp" && test -d "$tmp"
17467 } ||
17468 {
17469 tmp=./confstat$$-$RANDOM
17470 (umask 077 && mkdir $tmp)
17471 } ||
17472 {
17473 echo "$me: cannot create a temporary directory in ." >&2
17474 { (exit 1); exit 1; }
17475 }
17476
17477 _ACEOF
17478
17479 cat >>$CONFIG_STATUS <<_ACEOF
17480
17481 #
17482 # CONFIG_FILES section.
17483 #
17484
17485 # No need to generate the scripts if there are no CONFIG_FILES.
17486 # This happens for instance when ./config.status config.h
17487 if test -n "\$CONFIG_FILES"; then
17488 # Protect against being on the right side of a sed subst in config.status.
17489 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17490 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17491 s,@SHELL@,$SHELL,;t t
17492 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17493 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17494 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17495 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17496 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17497 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17498 s,@exec_prefix@,$exec_prefix,;t t
17499 s,@prefix@,$prefix,;t t
17500 s,@program_transform_name@,$program_transform_name,;t t
17501 s,@bindir@,$bindir,;t t
17502 s,@sbindir@,$sbindir,;t t
17503 s,@libexecdir@,$libexecdir,;t t
17504 s,@datadir@,$datadir,;t t
17505 s,@sysconfdir@,$sysconfdir,;t t
17506 s,@sharedstatedir@,$sharedstatedir,;t t
17507 s,@localstatedir@,$localstatedir,;t t
17508 s,@libdir@,$libdir,;t t
17509 s,@includedir@,$includedir,;t t
17510 s,@oldincludedir@,$oldincludedir,;t t
17511 s,@infodir@,$infodir,;t t
17512 s,@mandir@,$mandir,;t t
17513 s,@build_alias@,$build_alias,;t t
17514 s,@host_alias@,$host_alias,;t t
17515 s,@target_alias@,$target_alias,;t t
17516 s,@DEFS@,$DEFS,;t t
17517 s,@ECHO_C@,$ECHO_C,;t t
17518 s,@ECHO_N@,$ECHO_N,;t t
17519 s,@ECHO_T@,$ECHO_T,;t t
17520 s,@LIBS@,$LIBS,;t t
17521 s,@build@,$build,;t t
17522 s,@build_cpu@,$build_cpu,;t t
17523 s,@build_vendor@,$build_vendor,;t t
17524 s,@build_os@,$build_os,;t t
17525 s,@host@,$host,;t t
17526 s,@host_cpu@,$host_cpu,;t t
17527 s,@host_vendor@,$host_vendor,;t t
17528 s,@host_os@,$host_os,;t t
17529 s,@target@,$target,;t t
17530 s,@target_cpu@,$target_cpu,;t t
17531 s,@target_vendor@,$target_vendor,;t t
17532 s,@target_os@,$target_os,;t t
17533 s,@target_noncanonical@,$target_noncanonical,;t t
17534 s,@build_libsubdir@,$build_libsubdir,;t t
17535 s,@build_subdir@,$build_subdir,;t t
17536 s,@host_subdir@,$host_subdir,;t t
17537 s,@target_subdir@,$target_subdir,;t t
17538 s,@GENINSRC@,$GENINSRC,;t t
17539 s,@CC@,$CC,;t t
17540 s,@CFLAGS@,$CFLAGS,;t t
17541 s,@LDFLAGS@,$LDFLAGS,;t t
17542 s,@CPPFLAGS@,$CPPFLAGS,;t t
17543 s,@ac_ct_CC@,$ac_ct_CC,;t t
17544 s,@EXEEXT@,$EXEEXT,;t t
17545 s,@OBJEXT@,$OBJEXT,;t t
17546 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17547 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17548 s,@CPP@,$CPP,;t t
17549 s,@EGREP@,$EGREP,;t t
17550 s,@strict_warn@,$strict_warn,;t t
17551 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17552 s,@warn_cflags@,$warn_cflags,;t t
17553 s,@nocommon_flag@,$nocommon_flag,;t t
17554 s,@TREEBROWSER@,$TREEBROWSER,;t t
17555 s,@valgrind_path@,$valgrind_path,;t t
17556 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17557 s,@valgrind_command@,$valgrind_command,;t t
17558 s,@coverage_flags@,$coverage_flags,;t t
17559 s,@enable_multilib@,$enable_multilib,;t t
17560 s,@enable_decimal_float@,$enable_decimal_float,;t t
17561 s,@enable_shared@,$enable_shared,;t t
17562 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17563 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17564 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17565 s,@onestep@,$onestep,;t t
17566 s,@datarootdir@,$datarootdir,;t t
17567 s,@docdir@,$docdir,;t t
17568 s,@htmldir@,$htmldir,;t t
17569 s,@SET_MAKE@,$SET_MAKE,;t t
17570 s,@AWK@,$AWK,;t t
17571 s,@LN_S@,$LN_S,;t t
17572 s,@LN@,$LN,;t t
17573 s,@RANLIB@,$RANLIB,;t t
17574 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17575 s,@ranlib_flags@,$ranlib_flags,;t t
17576 s,@INSTALL@,$INSTALL,;t t
17577 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17578 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17579 s,@make_compare_target@,$make_compare_target,;t t
17580 s,@have_mktemp_command@,$have_mktemp_command,;t t
17581 s,@MAKEINFO@,$MAKEINFO,;t t
17582 s,@BUILD_INFO@,$BUILD_INFO,;t t
17583 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17584 s,@FLEX@,$FLEX,;t t
17585 s,@BISON@,$BISON,;t t
17586 s,@NM@,$NM,;t t
17587 s,@AR@,$AR,;t t
17588 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17589 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17590 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17591 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17592 s,@LIBICONV@,$LIBICONV,;t t
17593 s,@LTLIBICONV@,$LTLIBICONV,;t t
17594 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17595 s,@manext@,$manext,;t t
17596 s,@objext@,$objext,;t t
17597 s,@gthread_flags@,$gthread_flags,;t t
17598 s,@extra_modes_file@,$extra_modes_file,;t t
17599 s,@extra_opt_files@,$extra_opt_files,;t t
17600 s,@USE_NLS@,$USE_NLS,;t t
17601 s,@LIBINTL@,$LIBINTL,;t t
17602 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17603 s,@INCINTL@,$INCINTL,;t t
17604 s,@XGETTEXT@,$XGETTEXT,;t t
17605 s,@GMSGFMT@,$GMSGFMT,;t t
17606 s,@POSUB@,$POSUB,;t t
17607 s,@CATALOGS@,$CATALOGS,;t t
17608 s,@DATADIRNAME@,$DATADIRNAME,;t t
17609 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17610 s,@GENCAT@,$GENCAT,;t t
17611 s,@CATOBJEXT@,$CATOBJEXT,;t t
17612 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17613 s,@CROSS@,$CROSS,;t t
17614 s,@ALL@,$ALL,;t t
17615 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17616 s,@inhibit_libc@,$inhibit_libc,;t t
17617 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17618 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17619 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17620 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17621 s,@collect2@,$collect2,;t t
17622 s,@gcc_cv_as@,$gcc_cv_as,;t t
17623 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17624 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17625 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17626 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17627 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17628 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17629 s,@libgcc_visibility@,$libgcc_visibility,;t t
17630 s,@GGC@,$GGC,;t t
17631 s,@zlibdir@,$zlibdir,;t t
17632 s,@zlibinc@,$zlibinc,;t t
17633 s,@MAINT@,$MAINT,;t t
17634 s,@gcc_tooldir@,$gcc_tooldir,;t t
17635 s,@dollar@,$dollar,;t t
17636 s,@slibdir@,$slibdir,;t t
17637 s,@objdir@,$objdir,;t t
17638 s,@subdirs@,$subdirs,;t t
17639 s,@srcdir@,$srcdir,;t t
17640 s,@all_compilers@,$all_compilers,;t t
17641 s,@all_gtfiles@,$all_gtfiles,;t t
17642 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17643 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17644 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17645 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17646 s,@all_languages@,$all_languages,;t t
17647 s,@all_selected_languages@,$all_selected_languages,;t t
17648 s,@build_exeext@,$build_exeext,;t t
17649 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17650 s,@build_xm_file_list@,$build_xm_file_list,;t t
17651 s,@build_xm_include_list@,$build_xm_include_list,;t t
17652 s,@build_xm_defines@,$build_xm_defines,;t t
17653 s,@check_languages@,$check_languages,;t t
17654 s,@cpp_install_dir@,$cpp_install_dir,;t t
17655 s,@xmake_file@,$xmake_file,;t t
17656 s,@tmake_file@,$tmake_file,;t t
17657 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17658 s,@extra_headers_list@,$extra_headers_list,;t t
17659 s,@extra_objs@,$extra_objs,;t t
17660 s,@extra_parts@,$extra_parts,;t t
17661 s,@extra_passes@,$extra_passes,;t t
17662 s,@extra_programs@,$extra_programs,;t t
17663 s,@float_h_file@,$float_h_file,;t t
17664 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17665 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17666 s,@host_exeext@,$host_exeext,;t t
17667 s,@host_xm_file_list@,$host_xm_file_list,;t t
17668 s,@host_xm_include_list@,$host_xm_include_list,;t t
17669 s,@host_xm_defines@,$host_xm_defines,;t t
17670 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17671 s,@install@,$install,;t t
17672 s,@lang_opt_files@,$lang_opt_files,;t t
17673 s,@lang_specs_files@,$lang_specs_files,;t t
17674 s,@lang_tree_files@,$lang_tree_files,;t t
17675 s,@local_prefix@,$local_prefix,;t t
17676 s,@md_file@,$md_file,;t t
17677 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17678 s,@out_file@,$out_file,;t t
17679 s,@out_object_file@,$out_object_file,;t t
17680 s,@thread_file@,$thread_file,;t t
17681 s,@tm_file_list@,$tm_file_list,;t t
17682 s,@tm_include_list@,$tm_include_list,;t t
17683 s,@tm_defines@,$tm_defines,;t t
17684 s,@tm_p_file_list@,$tm_p_file_list,;t t
17685 s,@tm_p_include_list@,$tm_p_include_list,;t t
17686 s,@xm_file_list@,$xm_file_list,;t t
17687 s,@xm_include_list@,$xm_include_list,;t t
17688 s,@xm_defines@,$xm_defines,;t t
17689 s,@c_target_objs@,$c_target_objs,;t t
17690 s,@cxx_target_objs@,$cxx_target_objs,;t t
17691 s,@target_cpu_default@,$target_cpu_default,;t t
17692 s,@GMPLIBS@,$GMPLIBS,;t t
17693 s,@GMPINC@,$GMPINC,;t t
17694 s,@LIBOBJS@,$LIBOBJS,;t t
17695 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17696 /@language_hooks@/r $language_hooks
17697 s,@language_hooks@,,;t t
17698 CEOF
17699
17700 _ACEOF
17701
17702 cat >>$CONFIG_STATUS <<\_ACEOF
17703 # Split the substitutions into bite-sized pieces for seds with
17704 # small command number limits, like on Digital OSF/1 and HP-UX.
17705 ac_max_sed_lines=48
17706 ac_sed_frag=1 # Number of current file.
17707 ac_beg=1 # First line for current file.
17708 ac_end=$ac_max_sed_lines # Line after last line for current file.
17709 ac_more_lines=:
17710 ac_sed_cmds=
17711 while $ac_more_lines; do
17712 if test $ac_beg -gt 1; then
17713 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17714 else
17715 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17716 fi
17717 if test ! -s $tmp/subs.frag; then
17718 ac_more_lines=false
17719 else
17720 # The purpose of the label and of the branching condition is to
17721 # speed up the sed processing (if there are no `@' at all, there
17722 # is no need to browse any of the substitutions).
17723 # These are the two extra sed commands mentioned above.
17724 (echo ':t
17725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17726 if test -z "$ac_sed_cmds"; then
17727 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17728 else
17729 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17730 fi
17731 ac_sed_frag=`expr $ac_sed_frag + 1`
17732 ac_beg=$ac_end
17733 ac_end=`expr $ac_end + $ac_max_sed_lines`
17734 fi
17735 done
17736 if test -z "$ac_sed_cmds"; then
17737 ac_sed_cmds=cat
17738 fi
17739 fi # test -n "$CONFIG_FILES"
17740
17741 _ACEOF
17742 cat >>$CONFIG_STATUS <<\_ACEOF
17743 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17744 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17745 case $ac_file in
17746 - | *:- | *:-:* ) # input from stdin
17747 cat >$tmp/stdin
17748 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17750 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17751 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17752 * ) ac_file_in=$ac_file.in ;;
17753 esac
17754
17755 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17756 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17757 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17758 X"$ac_file" : 'X\(//\)[^/]' \| \
17759 X"$ac_file" : 'X\(//\)$' \| \
17760 X"$ac_file" : 'X\(/\)' \| \
17761 . : '\(.\)' 2>/dev/null ||
17762 echo X"$ac_file" |
17763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17764 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17765 /^X\(\/\/\)$/{ s//\1/; q; }
17766 /^X\(\/\).*/{ s//\1/; q; }
17767 s/.*/./; q'`
17768 { if $as_mkdir_p; then
17769 mkdir -p "$ac_dir"
17770 else
17771 as_dir="$ac_dir"
17772 as_dirs=
17773 while test ! -d "$as_dir"; do
17774 as_dirs="$as_dir $as_dirs"
17775 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17776 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17777 X"$as_dir" : 'X\(//\)[^/]' \| \
17778 X"$as_dir" : 'X\(//\)$' \| \
17779 X"$as_dir" : 'X\(/\)' \| \
17780 . : '\(.\)' 2>/dev/null ||
17781 echo X"$as_dir" |
17782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17784 /^X\(\/\/\)$/{ s//\1/; q; }
17785 /^X\(\/\).*/{ s//\1/; q; }
17786 s/.*/./; q'`
17787 done
17788 test ! -n "$as_dirs" || mkdir $as_dirs
17789 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17790 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17791 { (exit 1); exit 1; }; }; }
17792
17793 ac_builddir=.
17794
17795 if test "$ac_dir" != .; then
17796 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17797 # A "../" for each directory in $ac_dir_suffix.
17798 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17799 else
17800 ac_dir_suffix= ac_top_builddir=
17801 fi
17802
17803 case $srcdir in
17804 .) # No --srcdir option. We are building in place.
17805 ac_srcdir=.
17806 if test -z "$ac_top_builddir"; then
17807 ac_top_srcdir=.
17808 else
17809 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17810 fi ;;
17811 [\\/]* | ?:[\\/]* ) # Absolute path.
17812 ac_srcdir=$srcdir$ac_dir_suffix;
17813 ac_top_srcdir=$srcdir ;;
17814 *) # Relative path.
17815 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17816 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17817 esac
17818
17819 # Do not use `cd foo && pwd` to compute absolute paths, because
17820 # the directories may not exist.
17821 case `pwd` in
17822 .) ac_abs_builddir="$ac_dir";;
17823 *)
17824 case "$ac_dir" in
17825 .) ac_abs_builddir=`pwd`;;
17826 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17827 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17828 esac;;
17829 esac
17830 case $ac_abs_builddir in
17831 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17832 *)
17833 case ${ac_top_builddir}. in
17834 .) ac_abs_top_builddir=$ac_abs_builddir;;
17835 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17836 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17837 esac;;
17838 esac
17839 case $ac_abs_builddir in
17840 .) ac_abs_srcdir=$ac_srcdir;;
17841 *)
17842 case $ac_srcdir in
17843 .) ac_abs_srcdir=$ac_abs_builddir;;
17844 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17845 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17846 esac;;
17847 esac
17848 case $ac_abs_builddir in
17849 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17850 *)
17851 case $ac_top_srcdir in
17852 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17853 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17854 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17855 esac;;
17856 esac
17857
17858
17859
17860 if test x"$ac_file" != x-; then
17861 { echo "$as_me:$LINENO: creating $ac_file" >&5
17862 echo "$as_me: creating $ac_file" >&6;}
17863 rm -f "$ac_file"
17864 fi
17865 # Let's still pretend it is `configure' which instantiates (i.e., don't
17866 # use $as_me), people would be surprised to read:
17867 # /* config.h. Generated by config.status. */
17868 if test x"$ac_file" = x-; then
17869 configure_input=
17870 else
17871 configure_input="$ac_file. "
17872 fi
17873 configure_input=$configure_input"Generated from `echo $ac_file_in |
17874 sed 's,.*/,,'` by configure."
17875
17876 # First look for the input files in the build tree, otherwise in the
17877 # src tree.
17878 ac_file_inputs=`IFS=:
17879 for f in $ac_file_in; do
17880 case $f in
17881 -) echo $tmp/stdin ;;
17882 [\\/$]*)
17883 # Absolute (can't be DOS-style, as IFS=:)
17884 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17885 echo "$as_me: error: cannot find input file: $f" >&2;}
17886 { (exit 1); exit 1; }; }
17887 echo "$f";;
17888 *) # Relative
17889 if test -f "$f"; then
17890 # Build tree
17891 echo "$f"
17892 elif test -f "$srcdir/$f"; then
17893 # Source tree
17894 echo "$srcdir/$f"
17895 else
17896 # /dev/null tree
17897 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17898 echo "$as_me: error: cannot find input file: $f" >&2;}
17899 { (exit 1); exit 1; }; }
17900 fi;;
17901 esac
17902 done` || { (exit 1); exit 1; }
17903 _ACEOF
17904 cat >>$CONFIG_STATUS <<_ACEOF
17905 sed "$ac_vpsub
17906 $extrasub
17907 _ACEOF
17908 cat >>$CONFIG_STATUS <<\_ACEOF
17909 :t
17910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17911 s,@configure_input@,$configure_input,;t t
17912 s,@srcdir@,$ac_srcdir,;t t
17913 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17914 s,@top_srcdir@,$ac_top_srcdir,;t t
17915 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17916 s,@builddir@,$ac_builddir,;t t
17917 s,@abs_builddir@,$ac_abs_builddir,;t t
17918 s,@top_builddir@,$ac_top_builddir,;t t
17919 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17920 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17921 rm -f $tmp/stdin
17922 if test x"$ac_file" != x-; then
17923 mv $tmp/out $ac_file
17924 else
17925 cat $tmp/out
17926 rm -f $tmp/out
17927 fi
17928
17929 done
17930 _ACEOF
17931 cat >>$CONFIG_STATUS <<\_ACEOF
17932
17933 #
17934 # CONFIG_HEADER section.
17935 #
17936
17937 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17938 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17939 #
17940 # ac_d sets the value in "#define NAME VALUE" lines.
17941 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17942 ac_dB='[ ].*$,\1#\2'
17943 ac_dC=' '
17944 ac_dD=',;t'
17945 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17946 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17947 ac_uB='$,\1#\2define\3'
17948 ac_uC=' '
17949 ac_uD=',;t'
17950
17951 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17952 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17953 case $ac_file in
17954 - | *:- | *:-:* ) # input from stdin
17955 cat >$tmp/stdin
17956 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17957 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17958 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17959 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17960 * ) ac_file_in=$ac_file.in ;;
17961 esac
17962
17963 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17964 echo "$as_me: creating $ac_file" >&6;}
17965
17966 # First look for the input files in the build tree, otherwise in the
17967 # src tree.
17968 ac_file_inputs=`IFS=:
17969 for f in $ac_file_in; do
17970 case $f in
17971 -) echo $tmp/stdin ;;
17972 [\\/$]*)
17973 # Absolute (can't be DOS-style, as IFS=:)
17974 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17975 echo "$as_me: error: cannot find input file: $f" >&2;}
17976 { (exit 1); exit 1; }; }
17977 # Do quote $f, to prevent DOS paths from being IFS'd.
17978 echo "$f";;
17979 *) # Relative
17980 if test -f "$f"; then
17981 # Build tree
17982 echo "$f"
17983 elif test -f "$srcdir/$f"; then
17984 # Source tree
17985 echo "$srcdir/$f"
17986 else
17987 # /dev/null tree
17988 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17989 echo "$as_me: error: cannot find input file: $f" >&2;}
17990 { (exit 1); exit 1; }; }
17991 fi;;
17992 esac
17993 done` || { (exit 1); exit 1; }
17994 # Remove the trailing spaces.
17995 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17996
17997 _ACEOF
17998
17999 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18000 # `conftest.undefs', that substitutes the proper values into
18001 # config.h.in to produce config.h. The first handles `#define'
18002 # templates, and the second `#undef' templates.
18003 # And first: Protect against being on the right side of a sed subst in
18004 # config.status. Protect against being in an unquoted here document
18005 # in config.status.
18006 rm -f conftest.defines conftest.undefs
18007 # Using a here document instead of a string reduces the quoting nightmare.
18008 # Putting comments in sed scripts is not portable.
18009 #
18010 # `end' is used to avoid that the second main sed command (meant for
18011 # 0-ary CPP macros) applies to n-ary macro definitions.
18012 # See the Autoconf documentation for `clear'.
18013 cat >confdef2sed.sed <<\_ACEOF
18014 s/[\\&,]/\\&/g
18015 s,[\\$`],\\&,g
18016 t clear
18017 : clear
18018 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18019 t end
18020 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18021 : end
18022 _ACEOF
18023 # If some macros were called several times there might be several times
18024 # the same #defines, which is useless. Nevertheless, we may not want to
18025 # sort them, since we want the *last* AC-DEFINE to be honored.
18026 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18027 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18028 rm -f confdef2sed.sed
18029
18030 # This sed command replaces #undef with comments. This is necessary, for
18031 # example, in the case of _POSIX_SOURCE, which is predefined and required
18032 # on some systems where configure will not decide to define it.
18033 cat >>conftest.undefs <<\_ACEOF
18034 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18035 _ACEOF
18036
18037 # Break up conftest.defines because some shells have a limit on the size
18038 # of here documents, and old seds have small limits too (100 cmds).
18039 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18040 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18041 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18042 echo ' :' >>$CONFIG_STATUS
18043 rm -f conftest.tail
18044 while grep . conftest.defines >/dev/null
18045 do
18046 # Write a limited-size here document to $tmp/defines.sed.
18047 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18048 # Speed up: don't consider the non `#define' lines.
18049 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18050 # Work around the forget-to-reset-the-flag bug.
18051 echo 't clr' >>$CONFIG_STATUS
18052 echo ': clr' >>$CONFIG_STATUS
18053 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18054 echo 'CEOF
18055 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18056 rm -f $tmp/in
18057 mv $tmp/out $tmp/in
18058 ' >>$CONFIG_STATUS
18059 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18060 rm -f conftest.defines
18061 mv conftest.tail conftest.defines
18062 done
18063 rm -f conftest.defines
18064 echo ' fi # grep' >>$CONFIG_STATUS
18065 echo >>$CONFIG_STATUS
18066
18067 # Break up conftest.undefs because some shells have a limit on the size
18068 # of here documents, and old seds have small limits too (100 cmds).
18069 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18070 rm -f conftest.tail
18071 while grep . conftest.undefs >/dev/null
18072 do
18073 # Write a limited-size here document to $tmp/undefs.sed.
18074 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18075 # Speed up: don't consider the non `#undef'
18076 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18077 # Work around the forget-to-reset-the-flag bug.
18078 echo 't clr' >>$CONFIG_STATUS
18079 echo ': clr' >>$CONFIG_STATUS
18080 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18081 echo 'CEOF
18082 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18083 rm -f $tmp/in
18084 mv $tmp/out $tmp/in
18085 ' >>$CONFIG_STATUS
18086 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18087 rm -f conftest.undefs
18088 mv conftest.tail conftest.undefs
18089 done
18090 rm -f conftest.undefs
18091
18092 cat >>$CONFIG_STATUS <<\_ACEOF
18093 # Let's still pretend it is `configure' which instantiates (i.e., don't
18094 # use $as_me), people would be surprised to read:
18095 # /* config.h. Generated by config.status. */
18096 if test x"$ac_file" = x-; then
18097 echo "/* Generated by configure. */" >$tmp/config.h
18098 else
18099 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18100 fi
18101 cat $tmp/in >>$tmp/config.h
18102 rm -f $tmp/in
18103 if test x"$ac_file" != x-; then
18104 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18105 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18106 echo "$as_me: $ac_file is unchanged" >&6;}
18107 else
18108 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18110 X"$ac_file" : 'X\(//\)[^/]' \| \
18111 X"$ac_file" : 'X\(//\)$' \| \
18112 X"$ac_file" : 'X\(/\)' \| \
18113 . : '\(.\)' 2>/dev/null ||
18114 echo X"$ac_file" |
18115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18117 /^X\(\/\/\)$/{ s//\1/; q; }
18118 /^X\(\/\).*/{ s//\1/; q; }
18119 s/.*/./; q'`
18120 { if $as_mkdir_p; then
18121 mkdir -p "$ac_dir"
18122 else
18123 as_dir="$ac_dir"
18124 as_dirs=
18125 while test ! -d "$as_dir"; do
18126 as_dirs="$as_dir $as_dirs"
18127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18129 X"$as_dir" : 'X\(//\)[^/]' \| \
18130 X"$as_dir" : 'X\(//\)$' \| \
18131 X"$as_dir" : 'X\(/\)' \| \
18132 . : '\(.\)' 2>/dev/null ||
18133 echo X"$as_dir" |
18134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18136 /^X\(\/\/\)$/{ s//\1/; q; }
18137 /^X\(\/\).*/{ s//\1/; q; }
18138 s/.*/./; q'`
18139 done
18140 test ! -n "$as_dirs" || mkdir $as_dirs
18141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18143 { (exit 1); exit 1; }; }; }
18144
18145 rm -f $ac_file
18146 mv $tmp/config.h $ac_file
18147 fi
18148 else
18149 cat $tmp/config.h
18150 rm -f $tmp/config.h
18151 fi
18152 done
18153 _ACEOF
18154 cat >>$CONFIG_STATUS <<\_ACEOF
18155
18156 #
18157 # CONFIG_COMMANDS section.
18158 #
18159 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18160 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18161 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18162 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18163 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18164 X"$ac_dest" : 'X\(//\)[^/]' \| \
18165 X"$ac_dest" : 'X\(//\)$' \| \
18166 X"$ac_dest" : 'X\(/\)' \| \
18167 . : '\(.\)' 2>/dev/null ||
18168 echo X"$ac_dest" |
18169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18171 /^X\(\/\/\)$/{ s//\1/; q; }
18172 /^X\(\/\).*/{ s//\1/; q; }
18173 s/.*/./; q'`
18174 { if $as_mkdir_p; then
18175 mkdir -p "$ac_dir"
18176 else
18177 as_dir="$ac_dir"
18178 as_dirs=
18179 while test ! -d "$as_dir"; do
18180 as_dirs="$as_dir $as_dirs"
18181 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18183 X"$as_dir" : 'X\(//\)[^/]' \| \
18184 X"$as_dir" : 'X\(//\)$' \| \
18185 X"$as_dir" : 'X\(/\)' \| \
18186 . : '\(.\)' 2>/dev/null ||
18187 echo X"$as_dir" |
18188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18189 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18190 /^X\(\/\/\)$/{ s//\1/; q; }
18191 /^X\(\/\).*/{ s//\1/; q; }
18192 s/.*/./; q'`
18193 done
18194 test ! -n "$as_dirs" || mkdir $as_dirs
18195 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18196 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18197 { (exit 1); exit 1; }; }; }
18198
18199 ac_builddir=.
18200
18201 if test "$ac_dir" != .; then
18202 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18203 # A "../" for each directory in $ac_dir_suffix.
18204 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18205 else
18206 ac_dir_suffix= ac_top_builddir=
18207 fi
18208
18209 case $srcdir in
18210 .) # No --srcdir option. We are building in place.
18211 ac_srcdir=.
18212 if test -z "$ac_top_builddir"; then
18213 ac_top_srcdir=.
18214 else
18215 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18216 fi ;;
18217 [\\/]* | ?:[\\/]* ) # Absolute path.
18218 ac_srcdir=$srcdir$ac_dir_suffix;
18219 ac_top_srcdir=$srcdir ;;
18220 *) # Relative path.
18221 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18222 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18223 esac
18224
18225 # Do not use `cd foo && pwd` to compute absolute paths, because
18226 # the directories may not exist.
18227 case `pwd` in
18228 .) ac_abs_builddir="$ac_dir";;
18229 *)
18230 case "$ac_dir" in
18231 .) ac_abs_builddir=`pwd`;;
18232 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18233 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18234 esac;;
18235 esac
18236 case $ac_abs_builddir in
18237 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18238 *)
18239 case ${ac_top_builddir}. in
18240 .) ac_abs_top_builddir=$ac_abs_builddir;;
18241 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18242 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18243 esac;;
18244 esac
18245 case $ac_abs_builddir in
18246 .) ac_abs_srcdir=$ac_srcdir;;
18247 *)
18248 case $ac_srcdir in
18249 .) ac_abs_srcdir=$ac_abs_builddir;;
18250 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18251 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18252 esac;;
18253 esac
18254 case $ac_abs_builddir in
18255 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18256 *)
18257 case $ac_top_srcdir in
18258 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18259 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18260 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18261 esac;;
18262 esac
18263
18264
18265 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18266 echo "$as_me: executing $ac_dest commands" >&6;}
18267 case $ac_dest in
18268 default )
18269 case ${CONFIG_HEADERS} in
18270 *auto-host.h:config.in*)
18271 echo > cstamp-h ;;
18272 esac
18273 # Make sure all the subdirs exist.
18274 for d in $subdirs doc build
18275 do
18276 test -d $d || mkdir $d
18277 done
18278 ;;
18279 esac
18280 done
18281 _ACEOF
18282
18283 cat >>$CONFIG_STATUS <<\_ACEOF
18284
18285 { (exit 0); exit 0; }
18286 _ACEOF
18287 chmod +x $CONFIG_STATUS
18288 ac_clean_files=$ac_clean_files_save
18289
18290
18291 # configure is writing to config.log, and then calls config.status.
18292 # config.status does its own redirection, appending to config.log.
18293 # Unfortunately, on DOS this fails, as config.log is still kept open
18294 # by configure, so config.status won't be able to write to it; its
18295 # output is simply discarded. So we exec the FD to /dev/null,
18296 # effectively closing config.log, so it can be properly (re)opened and
18297 # appended to by config.status. When coming back to configure, we
18298 # need to make the FD available again.
18299 if test "$no_create" != yes; then
18300 ac_cs_success=:
18301 ac_config_status_args=
18302 test "$silent" = yes &&
18303 ac_config_status_args="$ac_config_status_args --quiet"
18304 exec 5>/dev/null
18305 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18306 exec 5>>config.log
18307 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18308 # would make configure fail if this is the last instruction.
18309 $ac_cs_success || { (exit 1); exit 1; }
18310 fi
18311