]> gcc.gnu.org Git - gcc.git/blob - gcc/configure
configure.ac: Update checks for target tools.
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir gcc_version_trigger gcc_version_full gcc_version GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default set_gcc_lib_path GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
839
840 cat <<\_ACEOF
841
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
846
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: assert,fold,gc,gcac,misc,
871 rtlflag,rtl,tree,valgrind,release,yes,all;
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-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
899 of the registry key
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
906
907 Optional Packages:
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search for libiconv in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page,zone} choose the garbage collection mechanism to use
929 with the compiler
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries in DIR LIBDIR
932
933 Some influential environment variables:
934 CC C compiler command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
937 nonstandard directory <lib dir>
938 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
939 headers in a nonstandard directory <include dir>
940 CPP C preprocessor
941 GMPLIBS How to link GMP
942 GMPINC How to find GMP include files
943
944 Use these variables to override the choices made by `configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
946
947 _ACEOF
948 fi
949
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
952 ac_popdir=`pwd`
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
955 ac_builddir=.
956
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961 else
962 ac_dir_suffix= ac_top_builddir=
963 fi
964
965 case $srcdir in
966 .) # No --srcdir option. We are building in place.
967 ac_srcdir=.
968 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=.
970 else
971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972 fi ;;
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
976 *) # Relative path.
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 esac
980
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
983 case `pwd` in
984 .) ac_abs_builddir="$ac_dir";;
985 *)
986 case "$ac_dir" in
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 esac;;
991 esac
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
994 *)
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 esac;;
1000 esac
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1003 *)
1004 case $ac_srcdir in
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 esac;;
1009 esac
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1012 *)
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017 esac;;
1018 esac
1019
1020 cd $ac_dir
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1023 echo
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1026 echo
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1030 echo
1031 $ac_configure --help
1032 else
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1034 fi
1035 cd "$ac_popdir"
1036 done
1037 fi
1038
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1041 cat <<\_ACEOF
1042
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1046 _ACEOF
1047 exit 0
1048 fi
1049 exec 5>config.log
1050 cat >&5 <<_ACEOF
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1053
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1056
1057 $ $0 $@
1058
1059 _ACEOF
1060 {
1061 cat <<_ASUNAME
1062 ## --------- ##
1063 ## Platform. ##
1064 ## --------- ##
1065
1066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1071
1072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1074
1075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1078 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1082
1083 _ASUNAME
1084
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 for as_dir in $PATH
1087 do
1088 IFS=$as_save_IFS
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1091 done
1092
1093 } >&5
1094
1095 cat >&5 <<_ACEOF
1096
1097
1098 ## ----------- ##
1099 ## Core tests. ##
1100 ## ----------- ##
1101
1102 _ACEOF
1103
1104
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_configure_args=
1111 ac_configure_args0=
1112 ac_configure_args1=
1113 ac_sep=
1114 ac_must_keep_next=false
1115 for ac_pass in 1 2
1116 do
1117 for ac_arg
1118 do
1119 case $ac_arg in
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 continue ;;
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 esac
1127 case $ac_pass in
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1129 2)
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1133 else
1134 case $ac_arg in
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 esac
1142 ;;
1143 -* ) ac_must_keep_next=true ;;
1144 esac
1145 fi
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1148 ac_sep=" "
1149 ;;
1150 esac
1151 done
1152 done
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1155
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close' the trap.
1161 trap 'exit_status=$?
1162 # Save into config.log some information that might help in debugging.
1163 {
1164 echo
1165
1166 cat <<\_ASBOX
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1170 _ASBOX
1171 echo
1172 # The following way of writing the cache mishandles newlines in values,
1173 {
1174 (set) 2>&1 |
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 *ac_space=\ *)
1177 sed -n \
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1180 ;;
1181 *)
1182 sed -n \
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1184 ;;
1185 esac;
1186 }
1187 echo
1188
1189 cat <<\_ASBOX
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1193 _ASBOX
1194 echo
1195 for ac_var in $ac_subst_vars
1196 do
1197 eval ac_val=$`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1199 done | sort
1200 echo
1201
1202 if test -n "$ac_subst_files"; then
1203 cat <<\_ASBOX
1204 ## ------------- ##
1205 ## Output files. ##
1206 ## ------------- ##
1207 _ASBOX
1208 echo
1209 for ac_var in $ac_subst_files
1210 do
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1213 done | sort
1214 echo
1215 fi
1216
1217 if test -s confdefs.h; then
1218 cat <<\_ASBOX
1219 ## ----------- ##
1220 ## confdefs.h. ##
1221 ## ----------- ##
1222 _ASBOX
1223 echo
1224 sed "/^$/d" confdefs.h | sort
1225 echo
1226 fi
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1230 } >&5
1231 rm -f core *.core &&
1232 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 exit $exit_status
1234 ' 0
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 done
1238 ac_signal=0
1239
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 echo >confdefs.h
1244
1245 # Predefined preprocessor variables.
1246
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 _ACEOF
1250
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 _ACEOF
1260
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 _ACEOF
1270
1271
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277 else
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 fi
1280 fi
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's/^/| /' "$ac_site_file" >&5
1286 . "$ac_site_file"
1287 fi
1288 done
1289
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1296 case $cache_file in
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1299 esac
1300 fi
1301 else
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1304 >$cache_file
1305 fi
1306
1307 # Check that the precious variables saved in the cache have kept the same
1308 # value.
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1317 set,)
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1321 ,set)
1322 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1325 ,);;
1326 *)
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1329 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1335 fi;;
1336 esac
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1339 case $ac_new_val in
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1343 esac
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 esac
1348 fi
1349 done
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1354 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1356 fi
1357
1358 ac_ext=c
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1384
1385
1386 #Set to 1 on a release branch
1387 is_release=
1388
1389 # Determine the host, build, and target systems
1390 ac_aux_dir=
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392 if test -f $ac_dir/install-sh; then
1393 ac_aux_dir=$ac_dir
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1395 break
1396 elif test -f $ac_dir/install.sh; then
1397 ac_aux_dir=$ac_dir
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1399 break
1400 elif test -f $ac_dir/shtool; then
1401 ac_aux_dir=$ac_dir
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1403 break
1404 fi
1405 done
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409 { (exit 1); exit 1; }; }
1410 fi
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1414
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419 { (exit 1); exit 1; }; }
1420
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426 ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428 ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432 { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1437
1438 fi
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1441 build=$ac_cv_build
1442 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445
1446
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 else
1452 ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454 ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1459
1460 fi
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1463 host=$ac_cv_host
1464 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467
1468
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476 ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480 { (exit 1); exit 1; }; }
1481
1482 fi
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1488 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489
1490
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494 test "$program_prefix$program_suffix$program_transform_name" = \
1495 NONENONEs,x,x, &&
1496 program_prefix=${target_alias}-
1497
1498 # Determine the noncanonical target name, for directory use.
1499 case ${build_alias} in
1500 "") build_noncanonical=${build} ;;
1501 *) build_noncanonical=${build_alias} ;;
1502 esac
1503
1504 case ${host_alias} in
1505 "") host_noncanonical=${build_noncanonical} ;;
1506 *) host_noncanonical=${host_alias} ;;
1507 esac
1508
1509 case ${target_alias} in
1510 "") target_noncanonical=${host_noncanonical} ;;
1511 *) target_noncanonical=${target_alias} ;;
1512 esac
1513
1514
1515
1516
1517 # Determine the target- and build-specific subdirectories
1518 # Prefix 'build-' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1521 if ( test $srcdir = . && test -d gcc ) \
1522 || test -d $srcdir/../host-${host_noncanonical}; then
1523 host_subdir="host-${host_noncanonical}"
1524 else
1525 host_subdir=.
1526 fi
1527 # No prefix.
1528 target_subdir=${target_noncanonical}
1529
1530
1531 # Set program_transform_name
1532 test "$program_prefix" != NONE &&
1533 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1534 # Use a double $ so make ignores it.
1535 test "$program_suffix" != NONE &&
1536 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1537 # Double any \ or $. echo might interpret backslashes.
1538 # By default was `s,x,x', remove it if useless.
1539 cat <<\_ACEOF >conftest.sed
1540 s/[\\$]/&&/g;s/;s,x,x,$//
1541 _ACEOF
1542 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1543 rm conftest.sed
1544
1545
1546 # Check for bogus environment variables.
1547 # Test if LIBRARY_PATH contains the notation for the current directory
1548 # since this would lead to problems installing/building glibc.
1549 # LIBRARY_PATH contains the current directory if one of the following
1550 # is true:
1551 # - one of the terminals (":" and ";") is the first or last sign
1552 # - two terminals occur directly after each other
1553 # - the path contains an element with a dot in it
1554 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1555 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1556 case ${LIBRARY_PATH} in
1557 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1558 library_path_setting="contains current directory"
1559 ;;
1560 *)
1561 library_path_setting="ok"
1562 ;;
1563 esac
1564 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1565 echo "${ECHO_T}$library_path_setting" >&6
1566 if test "$library_path_setting" != "ok"; then
1567 { { echo "$as_me:$LINENO: error:
1568 *** LIBRARY_PATH shouldn't contain the current directory when
1569 *** building gcc. Please change the environment variable
1570 *** and run configure again." >&5
1571 echo "$as_me: error:
1572 *** LIBRARY_PATH shouldn't contain the current directory when
1573 *** building gcc. Please change the environment variable
1574 *** and run configure again." >&2;}
1575 { (exit 1); exit 1; }; }
1576 fi
1577
1578 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # GCC_EXEC_PREFIX contains the current directory if one of the following
1581 # is true:
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1586 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1587 case ${GCC_EXEC_PREFIX} in
1588 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1589 gcc_exec_prefix_setting="contains current directory"
1590 ;;
1591 *)
1592 gcc_exec_prefix_setting="ok"
1593 ;;
1594 esac
1595 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1596 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1597 if test "$gcc_exec_prefix_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606 { (exit 1); exit 1; }; }
1607 fi
1608
1609
1610 if test "${with_gcc_version_trigger+set}" = set; then
1611 gcc_version_trigger=$with_gcc_version_trigger
1612 else
1613 gcc_version_trigger=$srcdir/../gcc/version.c
1614 fi
1615 if test -f "${gcc_version_trigger}"; then
1616 gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1617 else
1618 gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1619 fi
1620 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1621
1622
1623
1624
1625
1626 # -----------
1627 # Directories
1628 # -----------
1629
1630 # Specify the local prefix
1631 local_prefix=
1632
1633 # Check whether --with-local-prefix or --without-local-prefix was given.
1634 if test "${with_local_prefix+set}" = set; then
1635 withval="$with_local_prefix"
1636 case "${withval}" in
1637 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1638 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1639 { (exit 1); exit 1; }; } ;;
1640 no) ;;
1641 *) local_prefix=$with_local_prefix ;;
1642 esac
1643 fi;
1644
1645 # Default local prefix if it is empty
1646 if test x$local_prefix = x; then
1647 local_prefix=/usr/local
1648 fi
1649
1650 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1651 # passed in by the toplevel make and thus we'd get different behavior
1652 # depending on where we built the sources.
1653 gcc_gxx_include_dir=
1654 # Specify the g++ header file directory
1655
1656 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1657 if test "${with_gxx_include_dir+set}" = set; then
1658 withval="$with_gxx_include_dir"
1659 case "${withval}" in
1660 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1661 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1662 { (exit 1); exit 1; }; } ;;
1663 no) ;;
1664 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1665 esac
1666 fi;
1667
1668 if test x${gcc_gxx_include_dir} = x; then
1669 if test x${enable_version_specific_runtime_libs} = xyes; then
1670 gcc_gxx_include_dir='${libsubdir}/include/c++'
1671 else
1672 libstdcxx_incdir=c++/${gcc_version}
1673 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1674 fi
1675 fi
1676
1677
1678 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1679 if test "${with_cpp_install_dir+set}" = set; then
1680 withval="$with_cpp_install_dir"
1681 if test x$withval = xyes; then
1682 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1683 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1684 { (exit 1); exit 1; }; }
1685 elif test x$withval != xno; then
1686 cpp_install_dir=$withval
1687 fi
1688 fi;
1689
1690 # We would like to our source tree to be readonly. However when releases or
1691 # pre-releases are generated, the flex/bison generated files as well as the
1692 # various formats of manuals need to be included along with the rest of the
1693 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1694 # just that.
1695
1696 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1697 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1698 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1699 if test "${enable_generated_files_in_srcdir+set}" = set; then
1700 enableval="$enable_generated_files_in_srcdir"
1701 generated_files_in_srcdir=$enableval
1702 else
1703 generated_files_in_srcdir=no
1704 fi;
1705
1706 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1707 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1708
1709 if test "$generated_files_in_srcdir" = "yes"; then
1710 GENINSRC=''
1711 else
1712 GENINSRC='#'
1713 fi
1714
1715
1716 # -------------------
1717 # Find default linker
1718 # -------------------
1719
1720 # With GNU ld
1721
1722 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1723 if test "${with_gnu_ld+set}" = set; then
1724 withval="$with_gnu_ld"
1725 gnu_ld_flag="$with_gnu_ld"
1726 else
1727 gnu_ld_flag=no
1728 fi;
1729
1730 # With pre-defined ld
1731
1732 # Check whether --with-ld or --without-ld was given.
1733 if test "${with_ld+set}" = set; then
1734 withval="$with_ld"
1735 DEFAULT_LINKER="$with_ld"
1736 fi;
1737 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1738 if test ! -x "$DEFAULT_LINKER"; then
1739 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1740 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1741 { (exit 1); exit 1; }; }
1742 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1743 gnu_ld_flag=yes
1744 fi
1745
1746 cat >>confdefs.h <<_ACEOF
1747 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1748 _ACEOF
1749
1750 fi
1751
1752 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1753 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1754 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1755 if test x"$gnu_ld_flag" = x"no"; then
1756 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1757 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1758 else
1759 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1760 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1761 fi
1762 else
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767 # With demangler in GNU ld
1768
1769 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1770 if test "${with_demangler_in_ld+set}" = set; then
1771 withval="$with_demangler_in_ld"
1772 demangler_in_ld="$with_demangler_in_ld"
1773 else
1774 demangler_in_ld=no
1775 fi;
1776
1777 # ----------------------
1778 # Find default assembler
1779 # ----------------------
1780
1781 # With GNU as
1782
1783 # Check whether --with-gnu-as or --without-gnu-as was given.
1784 if test "${with_gnu_as+set}" = set; then
1785 withval="$with_gnu_as"
1786 gas_flag="$with_gnu_as"
1787 else
1788 gas_flag=no
1789 fi;
1790
1791
1792 # Check whether --with-as or --without-as was given.
1793 if test "${with_as+set}" = set; then
1794 withval="$with_as"
1795 DEFAULT_ASSEMBLER="$with_as"
1796 fi;
1797 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1798 if test ! -x "$DEFAULT_ASSEMBLER"; then
1799 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1800 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1801 { (exit 1); exit 1; }; }
1802 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1803 gas_flag=yes
1804 fi
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1808 _ACEOF
1809
1810 fi
1811
1812 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1813 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1814 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1815 if test x"$gas_flag" = x"no"; then
1816 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1817 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1818 else
1819 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1820 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1821 fi
1822 else
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 # ---------------
1828 # Find C compiler
1829 # ---------------
1830
1831 # If a non-executable a.out is present (e.g. created by GNU as above even if
1832 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1833 # file, even when creating an executable, so an execution test fails.
1834 # Remove possible default executable files to avoid this.
1835 #
1836 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1837 # Autoconf includes it.
1838 rm -f a.out a.exe b.out
1839
1840 # Find the native compiler
1841 ac_ext=c
1842 ac_cpp='$CPP $CPPFLAGS'
1843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846 if test -n "$ac_tool_prefix"; then
1847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC="$CC" # Let the user override the test.
1856 else
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1867 fi
1868 done
1869 done
1870
1871 fi
1872 fi
1873 CC=$ac_cv_prog_CC
1874 if test -n "$CC"; then
1875 echo "$as_me:$LINENO: result: $CC" >&5
1876 echo "${ECHO_T}$CC" >&6
1877 else
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1880 fi
1881
1882 fi
1883 if test -z "$ac_cv_prog_CC"; then
1884 ac_ct_CC=$CC
1885 # Extract the first word of "gcc", so it can be a program name with args.
1886 set dummy gcc; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892 if test -n "$ac_ct_CC"; then
1893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_ac_ct_CC="gcc"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 break 2
1905 fi
1906 done
1907 done
1908
1909 fi
1910 fi
1911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912 if test -n "$ac_ct_CC"; then
1913 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914 echo "${ECHO_T}$ac_ct_CC" >&6
1915 else
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920 CC=$ac_ct_CC
1921 else
1922 CC="$ac_cv_prog_CC"
1923 fi
1924
1925 if test -z "$CC"; then
1926 if test -n "$ac_tool_prefix"; then
1927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1928 set dummy ${ac_tool_prefix}cc; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_CC="${ac_tool_prefix}cc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 break 2
1947 fi
1948 done
1949 done
1950
1951 fi
1952 fi
1953 CC=$ac_cv_prog_CC
1954 if test -n "$CC"; then
1955 echo "$as_me:$LINENO: result: $CC" >&5
1956 echo "${ECHO_T}$CC" >&6
1957 else
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962 fi
1963 if test -z "$ac_cv_prog_CC"; then
1964 ac_ct_CC=$CC
1965 # Extract the first word of "cc", so it can be a program name with args.
1966 set dummy cc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 if test -n "$ac_ct_CC"; then
1973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978 IFS=$as_save_IFS
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_ac_ct_CC="cc"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 break 2
1985 fi
1986 done
1987 done
1988
1989 fi
1990 fi
1991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1992 if test -n "$ac_ct_CC"; then
1993 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1994 echo "${ECHO_T}$ac_ct_CC" >&6
1995 else
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
1998 fi
1999
2000 CC=$ac_ct_CC
2001 else
2002 CC="$ac_cv_prog_CC"
2003 fi
2004
2005 fi
2006 if test -z "$CC"; then
2007 # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 else
2017 ac_prog_rejected=no
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026 ac_prog_rejected=yes
2027 continue
2028 fi
2029 ac_cv_prog_CC="cc"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2032 fi
2033 done
2034 done
2035
2036 if test $ac_prog_rejected = yes; then
2037 # We found a bogon in the path, so make sure we never use it.
2038 set dummy $ac_cv_prog_CC
2039 shift
2040 if test $# != 0; then
2041 # We chose a different compiler from the bogus one.
2042 # However, it has the same basename, so the bogon will be chosen
2043 # first if we set CC to just the basename; use the full file name.
2044 shift
2045 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2046 fi
2047 fi
2048 fi
2049 fi
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2057 fi
2058
2059 fi
2060 if test -z "$CC"; then
2061 if test -n "$ac_tool_prefix"; then
2062 for ac_prog in cl
2063 do
2064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test -n "$CC"; then
2072 ac_cv_prog_CC="$CC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2076 do
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2084 fi
2085 done
2086 done
2087
2088 fi
2089 fi
2090 CC=$ac_cv_prog_CC
2091 if test -n "$CC"; then
2092 echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6
2094 else
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2097 fi
2098
2099 test -n "$CC" && break
2100 done
2101 fi
2102 if test -z "$CC"; then
2103 ac_ct_CC=$CC
2104 for ac_prog in cl
2105 do
2106 # Extract the first word of "$ac_prog", so it can be a program name with args.
2107 set dummy $ac_prog; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_ac_ct_CC="$ac_prog"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2126 fi
2127 done
2128 done
2129
2130 fi
2131 fi
2132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2133 if test -n "$ac_ct_CC"; then
2134 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135 echo "${ECHO_T}$ac_ct_CC" >&6
2136 else
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2139 fi
2140
2141 test -n "$ac_ct_CC" && break
2142 done
2143
2144 CC=$ac_ct_CC
2145 fi
2146
2147 fi
2148
2149
2150 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: no acceptable C compiler found in \$PATH
2153 See \`config.log' for more details." >&2;}
2154 { (exit 1); exit 1; }; }
2155
2156 # Provide some information about the compiler.
2157 echo "$as_me:$LINENO:" \
2158 "checking for C compiler version" >&5
2159 ac_compiler=`set X $ac_compile; echo $2`
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2161 (eval $ac_compiler --version </dev/null >&5) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2166 (eval $ac_compiler -v </dev/null >&5) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2170 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2171 (eval $ac_compiler -V </dev/null >&5) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }
2175
2176 cat >conftest.$ac_ext <<_ACEOF
2177 /* confdefs.h. */
2178 _ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2182
2183 int
2184 main ()
2185 {
2186
2187 ;
2188 return 0;
2189 }
2190 _ACEOF
2191 ac_clean_files_save=$ac_clean_files
2192 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2193 # Try to create an executable without -o first, disregard a.out.
2194 # It will help us diagnose broken compilers, and finding out an intuition
2195 # of exeext.
2196 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2197 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2198 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2200 (eval $ac_link_default) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 # Find the output, starting from the most likely. This scheme is
2205 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2206 # resort.
2207
2208 # Be careful to initialize this variable, since it used to be cached.
2209 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2210 ac_cv_exeext=
2211 # b.out is created by i960 compilers.
2212 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2213 do
2214 test -f "$ac_file" || continue
2215 case $ac_file in
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2217 ;;
2218 conftest.$ac_ext )
2219 # This is the source file.
2220 ;;
2221 [ab].out )
2222 # We found the default executable, but exeext='' is most
2223 # certainly right.
2224 break;;
2225 *.* )
2226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 # FIXME: I believe we export ac_cv_exeext for Libtool,
2228 # but it would be cool to find out if it's true. Does anybody
2229 # maintain Libtool? --akim.
2230 export ac_cv_exeext
2231 break;;
2232 * )
2233 break;;
2234 esac
2235 done
2236 else
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: C compiler cannot create executables
2243 See \`config.log' for more details." >&2;}
2244 { (exit 77); exit 77; }; }
2245 fi
2246
2247 ac_exeext=$ac_cv_exeext
2248 echo "$as_me:$LINENO: result: $ac_file" >&5
2249 echo "${ECHO_T}$ac_file" >&6
2250
2251 # Check the compiler produces executables we can run. If not, either
2252 # the compiler is broken, or we cross compile.
2253 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2255 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256 # If not cross compiling, check that we can run a simple program.
2257 if test "$cross_compiling" != yes; then
2258 if { ac_try='./$ac_file'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 cross_compiling=no
2265 else
2266 if test "$cross_compiling" = maybe; then
2267 cross_compiling=yes
2268 else
2269 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2276 fi
2277 fi
2278 fi
2279 echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6
2281
2282 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2283 ac_clean_files=$ac_clean_files_save
2284 # Check the compiler produces executables we can run. If not, either
2285 # the compiler is broken, or we cross compile.
2286 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2288 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289 echo "${ECHO_T}$cross_compiling" >&6
2290
2291 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294 (eval $ac_link) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2301 # `rm'.
2302 for ac_file in conftest.exe conftest conftest.*; do
2303 test -f "$ac_file" || continue
2304 case $ac_file in
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307 export ac_cv_exeext
2308 break;;
2309 * ) break;;
2310 esac
2311 done
2312 else
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2318 fi
2319
2320 rm -f conftest$ac_cv_exeext
2321 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6
2323
2324 rm -f conftest.$ac_ext
2325 EXEEXT=$ac_cv_exeext
2326 ac_exeext=$EXEEXT
2327 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2329 if test "${ac_cv_objext+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h. */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2338
2339 int
2340 main ()
2341 {
2342
2343 ;
2344 return 0;
2345 }
2346 _ACEOF
2347 rm -f conftest.o conftest.obj
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2354 case $ac_file in
2355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2356 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2357 break;;
2358 esac
2359 done
2360 else
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2363
2364 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2369 fi
2370
2371 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2372 fi
2373 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2374 echo "${ECHO_T}$ac_cv_objext" >&6
2375 OBJEXT=$ac_cv_objext
2376 ac_objext=$OBJEXT
2377 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2378 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2379 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h. */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2388
2389 int
2390 main ()
2391 {
2392 #ifndef __GNUC__
2393 choke me
2394 #endif
2395
2396 ;
2397 return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 ac_compiler_gnu=yes
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 ac_compiler_gnu=no
2427 fi
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430
2431 fi
2432 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2434 GCC=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CFLAGS=${CFLAGS+set}
2436 ac_save_CFLAGS=$CFLAGS
2437 CFLAGS="-g"
2438 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2439 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2440 if test "${ac_cv_prog_cc_g+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h. */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2449
2450 int
2451 main ()
2452 {
2453
2454 ;
2455 return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 ac_cv_prog_cc_g=yes
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 ac_cv_prog_cc_g=no
2485 fi
2486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487 fi
2488 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2490 if test "$ac_test_CFLAGS" = set; then
2491 CFLAGS=$ac_save_CFLAGS
2492 elif test $ac_cv_prog_cc_g = yes; then
2493 if test "$GCC" = yes; then
2494 CFLAGS="-g -O2"
2495 else
2496 CFLAGS="-g"
2497 fi
2498 else
2499 if test "$GCC" = yes; then
2500 CFLAGS="-O2"
2501 else
2502 CFLAGS=
2503 fi
2504 fi
2505 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2506 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2507 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510 ac_cv_prog_cc_stdc=no
2511 ac_save_CC=$CC
2512 cat >conftest.$ac_ext <<_ACEOF
2513 /* confdefs.h. */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2518 #include <stdarg.h>
2519 #include <stdio.h>
2520 #include <sys/types.h>
2521 #include <sys/stat.h>
2522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2523 struct buf { int x; };
2524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2525 static char *e (p, i)
2526 char **p;
2527 int i;
2528 {
2529 return p[i];
2530 }
2531 static char *f (char * (*g) (char **, int), char **p, ...)
2532 {
2533 char *s;
2534 va_list v;
2535 va_start (v,p);
2536 s = g (p, va_arg (v,int));
2537 va_end (v);
2538 return s;
2539 }
2540
2541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2542 function prototypes and stuff, but not '\xHH' hex character constants.
2543 These don't provoke an error unfortunately, instead are silently treated
2544 as 'x'. The following induces an error, until -std1 is added to get
2545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2546 array size at least. It's necessary to write '\x00'==0 to get something
2547 that's true only with -std1. */
2548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2549
2550 int test (int i, double x);
2551 struct s1 {int (*f) (int a);};
2552 struct s2 {int (*f) (double a);};
2553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2554 int argc;
2555 char **argv;
2556 int
2557 main ()
2558 {
2559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2560 ;
2561 return 0;
2562 }
2563 _ACEOF
2564 # Don't try gcc -ansi; that turns off useful extensions and
2565 # breaks some systems' header files.
2566 # AIX -qlanglvl=ansi
2567 # Ultrix and OSF/1 -std1
2568 # HP-UX 10.20 and later -Ae
2569 # HP-UX older versions -Aa -D_HPUX_SOURCE
2570 # SVR4 -Xc -D__EXTENSIONS__
2571 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2572 do
2573 CC="$ac_save_CC $ac_arg"
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2577 ac_status=$?
2578 grep -v '^ *+' conftest.er1 >conftest.err
2579 rm -f conftest.er1
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 ac_cv_prog_cc_stdc=$ac_arg
2596 break
2597 else
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601 fi
2602 rm -f conftest.err conftest.$ac_objext
2603 done
2604 rm -f conftest.$ac_ext conftest.$ac_objext
2605 CC=$ac_save_CC
2606
2607 fi
2608
2609 case "x$ac_cv_prog_cc_stdc" in
2610 x|xno)
2611 echo "$as_me:$LINENO: result: none needed" >&5
2612 echo "${ECHO_T}none needed" >&6 ;;
2613 *)
2614 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2615 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2616 CC="$CC $ac_cv_prog_cc_stdc" ;;
2617 esac
2618
2619 # Some people use a C++ compiler to compile C. Since we use `exit',
2620 # in C++ we need to declare it. In case someone uses the same compiler
2621 # for both compiling C and C++ we need to have the C++ compiler decide
2622 # the declaration of exit, since it's the most demanding environment.
2623 cat >conftest.$ac_ext <<_ACEOF
2624 #ifndef __cplusplus
2625 choke me
2626 #endif
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2631 ac_status=$?
2632 grep -v '^ *+' conftest.er1 >conftest.err
2633 rm -f conftest.er1
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 for ac_declaration in \
2650 '' \
2651 'extern "C" void std::exit (int) throw (); using std::exit;' \
2652 'extern "C" void std::exit (int); using std::exit;' \
2653 'extern "C" void exit (int) throw ();' \
2654 'extern "C" void exit (int);' \
2655 'void exit (int);'
2656 do
2657 cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h. */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2663 $ac_declaration
2664 #include <stdlib.h>
2665 int
2666 main ()
2667 {
2668 exit (42);
2669 ;
2670 return 0;
2671 }
2672 _ACEOF
2673 rm -f conftest.$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>conftest.er1
2676 ac_status=$?
2677 grep -v '^ *+' conftest.er1 >conftest.err
2678 rm -f conftest.er1
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 :
2695 else
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2698
2699 continue
2700 fi
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2708 $ac_declaration
2709 int
2710 main ()
2711 {
2712 exit (42);
2713 ;
2714 return 0;
2715 }
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2720 ac_status=$?
2721 grep -v '^ *+' conftest.er1 >conftest.err
2722 rm -f conftest.er1
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 break
2739 else
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 fi
2744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 done
2746 rm -f conftest*
2747 if test -n "$ac_declaration"; then
2748 echo '#ifdef __cplusplus' >>confdefs.h
2749 echo $ac_declaration >>confdefs.h
2750 echo '#endif' >>confdefs.h
2751 fi
2752
2753 else
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 fi
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 ac_ext=c
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764
2765 if test "x$CC" != xcc; then
2766 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2767 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2768 else
2769 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2770 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2771 fi
2772 set dummy $CC; ac_cc=`echo $2 |
2773 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2774 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h. */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2783
2784 int
2785 main ()
2786 {
2787
2788 ;
2789 return 0;
2790 }
2791 _ACEOF
2792 # Make sure it works both with $CC and with simple cc.
2793 # We do the test twice because some compilers refuse to overwrite an
2794 # existing .o file with -o, though they will create one.
2795 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2796 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); };
2806 then
2807 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2808 if test "x$CC" != xcc; then
2809 # Test first that cc exists at all.
2810 if { ac_try='cc -c conftest.$ac_ext >&5'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 (eval $ac_try) 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
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 # cc works too.
2829 :
2830 else
2831 # cc exists but doesn't like -o.
2832 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2833 fi
2834 fi
2835 fi
2836 else
2837 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2838 fi
2839 rm -f conftest*
2840
2841 fi
2842 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2843 echo "$as_me:$LINENO: result: yes" >&5
2844 echo "${ECHO_T}yes" >&6
2845 else
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2848
2849 cat >>confdefs.h <<\_ACEOF
2850 #define NO_MINUS_C_MINUS_O 1
2851 _ACEOF
2852
2853 fi
2854
2855 # expand $ac_aux_dir to an absolute path
2856 am_aux_dir=`cd $ac_aux_dir && pwd`
2857
2858 # FIXME: we rely on the cache variable name because
2859 # there is no other way.
2860 set dummy $CC
2861 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2862 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2863 # Losing compiler, so override with the script.
2864 # FIXME: It is wrong to rewrite CC.
2865 # But if we don't then we get into trouble of one sort or another.
2866 # A longer-term fix would be to have automake use am__CC in this case,
2867 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2868 CC="$am_aux_dir/compile $CC"
2869 fi
2870
2871 # autoconf is lame and doesn't give us any substitution variable for this.
2872 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2873 NO_MINUS_C_MINUS_O=yes
2874 else
2875 OUTPUT_OPTION='-o $@'
2876 fi
2877
2878
2879
2880 # -------------------------
2881 # Check C compiler features
2882 # -------------------------
2883
2884 ac_ext=c
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2890 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2891 # On Suns, sometimes $CPP names a directory.
2892 if test -n "$CPP" && test -d "$CPP"; then
2893 CPP=
2894 fi
2895 if test -z "$CPP"; then
2896 if test "${ac_cv_prog_CPP+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899 # Double quotes because CPP needs to be expanded
2900 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2901 do
2902 ac_preproc_ok=false
2903 for ac_c_preproc_warn_flag in '' yes
2904 do
2905 # Use a header file that comes with gcc, so configuring glibc
2906 # with a fresh cross-compiler works.
2907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2908 # <limits.h> exists even on freestanding compilers.
2909 # On the NeXT, cc -E runs the code through the compiler's parser,
2910 # not just through cpp. "Syntax error" is here to catch this case.
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h. */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2917 #ifdef __STDC__
2918 # include <limits.h>
2919 #else
2920 # include <assert.h>
2921 #endif
2922 Syntax error
2923 _ACEOF
2924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2926 ac_status=$?
2927 grep -v '^ *+' conftest.er1 >conftest.err
2928 rm -f conftest.er1
2929 cat conftest.err >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } >/dev/null; then
2932 if test -s conftest.err; then
2933 ac_cpp_err=$ac_c_preproc_warn_flag
2934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2935 else
2936 ac_cpp_err=
2937 fi
2938 else
2939 ac_cpp_err=yes
2940 fi
2941 if test -z "$ac_cpp_err"; then
2942 :
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 # Broken: fails on valid input.
2948 continue
2949 fi
2950 rm -f conftest.err conftest.$ac_ext
2951
2952 # OK, works on sane cases. Now check whether non-existent headers
2953 # can be detected and how.
2954 cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h. */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960 #include <ac_nonexistent.h>
2961 _ACEOF
2962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2964 ac_status=$?
2965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } >/dev/null; then
2970 if test -s conftest.err; then
2971 ac_cpp_err=$ac_c_preproc_warn_flag
2972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2973 else
2974 ac_cpp_err=
2975 fi
2976 else
2977 ac_cpp_err=yes
2978 fi
2979 if test -z "$ac_cpp_err"; then
2980 # Broken: success on invalid input.
2981 continue
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 # Passes both tests.
2987 ac_preproc_ok=:
2988 break
2989 fi
2990 rm -f conftest.err conftest.$ac_ext
2991
2992 done
2993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2994 rm -f conftest.err conftest.$ac_ext
2995 if $ac_preproc_ok; then
2996 break
2997 fi
2998
2999 done
3000 ac_cv_prog_CPP=$CPP
3001
3002 fi
3003 CPP=$ac_cv_prog_CPP
3004 else
3005 ac_cv_prog_CPP=$CPP
3006 fi
3007 echo "$as_me:$LINENO: result: $CPP" >&5
3008 echo "${ECHO_T}$CPP" >&6
3009 ac_preproc_ok=false
3010 for ac_c_preproc_warn_flag in '' yes
3011 do
3012 # Use a header file that comes with gcc, so configuring glibc
3013 # with a fresh cross-compiler works.
3014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3015 # <limits.h> exists even on freestanding compilers.
3016 # On the NeXT, cc -E runs the code through the compiler's parser,
3017 # not just through cpp. "Syntax error" is here to catch this case.
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024 #ifdef __STDC__
3025 # include <limits.h>
3026 #else
3027 # include <assert.h>
3028 #endif
3029 Syntax error
3030 _ACEOF
3031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } >/dev/null; then
3039 if test -s conftest.err; then
3040 ac_cpp_err=$ac_c_preproc_warn_flag
3041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3042 else
3043 ac_cpp_err=
3044 fi
3045 else
3046 ac_cpp_err=yes
3047 fi
3048 if test -z "$ac_cpp_err"; then
3049 :
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 # Broken: fails on valid input.
3055 continue
3056 fi
3057 rm -f conftest.err conftest.$ac_ext
3058
3059 # OK, works on sane cases. Now check whether non-existent headers
3060 # can be detected and how.
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 #include <ac_nonexistent.h>
3068 _ACEOF
3069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } >/dev/null; then
3077 if test -s conftest.err; then
3078 ac_cpp_err=$ac_c_preproc_warn_flag
3079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3080 else
3081 ac_cpp_err=
3082 fi
3083 else
3084 ac_cpp_err=yes
3085 fi
3086 if test -z "$ac_cpp_err"; then
3087 # Broken: success on invalid input.
3088 continue
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 # Passes both tests.
3094 ac_preproc_ok=:
3095 break
3096 fi
3097 rm -f conftest.err conftest.$ac_ext
3098
3099 done
3100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3101 rm -f conftest.err conftest.$ac_ext
3102 if $ac_preproc_ok; then
3103 :
3104 else
3105 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3106 See \`config.log' for more details." >&5
3107 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3108 See \`config.log' for more details." >&2;}
3109 { (exit 1); exit 1; }; }
3110 fi
3111
3112 ac_ext=c
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117
3118
3119 echo "$as_me:$LINENO: checking for inline" >&5
3120 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3121 if test "${ac_cv_c_inline+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124 ac_cv_c_inline=no
3125 for ac_kw in inline __inline__ __inline; do
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3132 #ifndef __cplusplus
3133 typedef int foo_t;
3134 static $ac_kw foo_t static_foo () {return 0; }
3135 $ac_kw foo_t foo () {return 0; }
3136 #endif
3137
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 (eval $ac_try) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_c_inline=$ac_kw; break
3161 else
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165 fi
3166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3167 done
3168
3169 fi
3170 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3171 echo "${ECHO_T}$ac_cv_c_inline" >&6
3172
3173
3174 case $ac_cv_c_inline in
3175 inline | yes) ;;
3176 *)
3177 case $ac_cv_c_inline in
3178 no) ac_val=;;
3179 *) ac_val=$ac_cv_c_inline;;
3180 esac
3181 cat >>confdefs.h <<_ACEOF
3182 #ifndef __cplusplus
3183 #define inline $ac_val
3184 #endif
3185 _ACEOF
3186 ;;
3187 esac
3188
3189
3190 echo "$as_me:$LINENO: checking for long long int" >&5
3191 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3192 if test "${ac_cv_c_long_long+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h. */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3201
3202 int
3203 main ()
3204 {
3205 long long int i;
3206 ;
3207 return 0;
3208 }
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212 (eval $ac_compile) 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } &&
3219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 (eval $ac_try) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3231 ac_cv_c_long_long=yes
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236 ac_cv_c_long_long=no
3237 fi
3238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3239 fi
3240 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3241 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3242 if test $ac_cv_c_long_long = yes; then
3243
3244 cat >>confdefs.h <<\_ACEOF
3245 #define HAVE_LONG_LONG 1
3246 _ACEOF
3247
3248 fi
3249 echo "$as_me:$LINENO: checking for __int64" >&5
3250 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3251 if test "${ac_cv_c___int64+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260
3261 int
3262 main ()
3263 {
3264 __int64 i;
3265 ;
3266 return 0;
3267 }
3268 _ACEOF
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271 (eval $ac_compile) 2>conftest.er1
3272 ac_status=$?
3273 grep -v '^ *+' conftest.er1 >conftest.err
3274 rm -f conftest.er1
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
3278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 (eval $ac_try) 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; } &&
3284 { ac_try='test -s conftest.$ac_objext'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 (eval $ac_try) 2>&5
3287 ac_status=$?
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; }; then
3290 ac_cv_c___int64=yes
3291 else
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295 ac_cv_c___int64=no
3296 fi
3297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3298 fi
3299 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3300 echo "${ECHO_T}$ac_cv_c___int64" >&6
3301 if test $ac_cv_c___int64 = yes; then
3302
3303 cat >>confdefs.h <<\_ACEOF
3304 #define HAVE___INT64 1
3305 _ACEOF
3306
3307 fi
3308
3309
3310 # sizeof(char) is 1 by definition.
3311
3312 echo "$as_me:$LINENO: checking for egrep" >&5
3313 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3314 if test "${ac_cv_prog_egrep+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3318 then ac_cv_prog_egrep='grep -E'
3319 else ac_cv_prog_egrep='egrep'
3320 fi
3321 fi
3322 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3323 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3324 EGREP=$ac_cv_prog_egrep
3325
3326
3327 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3328 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3329 if test "${ac_cv_header_stdc+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h. */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3338 #include <stdlib.h>
3339 #include <stdarg.h>
3340 #include <string.h>
3341 #include <float.h>
3342
3343 int
3344 main ()
3345 {
3346
3347 ;
3348 return 0;
3349 }
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>conftest.er1
3354 ac_status=$?
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 (eval $ac_try) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; } &&
3366 { ac_try='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 ac_cv_header_stdc=yes
3373 else
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377 ac_cv_header_stdc=no
3378 fi
3379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3380
3381 if test $ac_cv_header_stdc = yes; then
3382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3383 cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h. */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 #include <string.h>
3390
3391 _ACEOF
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 $EGREP "memchr" >/dev/null 2>&1; then
3394 :
3395 else
3396 ac_cv_header_stdc=no
3397 fi
3398 rm -f conftest*
3399
3400 fi
3401
3402 if test $ac_cv_header_stdc = yes; then
3403 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3404 cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h. */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 #include <stdlib.h>
3411
3412 _ACEOF
3413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 $EGREP "free" >/dev/null 2>&1; then
3415 :
3416 else
3417 ac_cv_header_stdc=no
3418 fi
3419 rm -f conftest*
3420
3421 fi
3422
3423 if test $ac_cv_header_stdc = yes; then
3424 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3425 if test "$cross_compiling" = yes; then
3426 :
3427 else
3428 cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h. */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3434 #include <ctype.h>
3435 #if ((' ' & 0x0FF) == 0x020)
3436 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3437 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3438 #else
3439 # define ISLOWER(c) \
3440 (('a' <= (c) && (c) <= 'i') \
3441 || ('j' <= (c) && (c) <= 'r') \
3442 || ('s' <= (c) && (c) <= 'z'))
3443 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3444 #endif
3445
3446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3447 int
3448 main ()
3449 {
3450 int i;
3451 for (i = 0; i < 256; i++)
3452 if (XOR (islower (i), ISLOWER (i))
3453 || toupper (i) != TOUPPER (i))
3454 exit(2);
3455 exit (0);
3456 }
3457 _ACEOF
3458 rm -f conftest$ac_exeext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460 (eval $ac_link) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3469 :
3470 else
3471 echo "$as_me: program exited with status $ac_status" >&5
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475 ( exit $ac_status )
3476 ac_cv_header_stdc=no
3477 fi
3478 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3479 fi
3480 fi
3481 fi
3482 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3483 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3484 if test $ac_cv_header_stdc = yes; then
3485
3486 cat >>confdefs.h <<\_ACEOF
3487 #define STDC_HEADERS 1
3488 _ACEOF
3489
3490 fi
3491
3492 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3503 inttypes.h stdint.h unistd.h
3504 do
3505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3506 echo "$as_me:$LINENO: checking for $ac_header" >&5
3507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511 cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h. */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 $ac_includes_default
3518
3519 #include <$ac_header>
3520 _ACEOF
3521 rm -f conftest.$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 eval "$as_ac_Header=yes"
3543 else
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 eval "$as_ac_Header=no"
3548 fi
3549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3550 fi
3551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3554 cat >>confdefs.h <<_ACEOF
3555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3556 _ACEOF
3557
3558 fi
3559
3560 done
3561
3562
3563 echo "$as_me:$LINENO: checking for void *" >&5
3564 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3565 if test "${ac_cv_type_void_p+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 $ac_includes_default
3575 int
3576 main ()
3577 {
3578 if ((void * *) 0)
3579 return 0;
3580 if (sizeof (void *))
3581 return 0;
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 rm -f conftest.$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 (eval $ac_try) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; } &&
3601 { ac_try='test -s conftest.$ac_objext'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3607 ac_cv_type_void_p=yes
3608 else
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612 ac_cv_type_void_p=no
3613 fi
3614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3615 fi
3616 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3617 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3618
3619 echo "$as_me:$LINENO: checking size of void *" >&5
3620 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3621 if test "${ac_cv_sizeof_void_p+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624 if test "$ac_cv_type_void_p" = yes; then
3625 # The cast to unsigned long works around a bug in the HP C Compiler
3626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3628 # This bug is HP SR number 8606223364.
3629 if test "$cross_compiling" = yes; then
3630 # Depending upon the size, compute the lo and hi bounds.
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h. */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637 $ac_includes_default
3638 int
3639 main ()
3640 {
3641 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3642 test_array [0] = 0
3643
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 rm -f conftest.$ac_objext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>conftest.er1
3651 ac_status=$?
3652 grep -v '^ *+' conftest.er1 >conftest.err
3653 rm -f conftest.er1
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 ac_lo=0 ac_mid=0
3670 while :; do
3671 cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h. */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677 $ac_includes_default
3678 int
3679 main ()
3680 {
3681 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3682 test_array [0] = 0
3683
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 rm -f conftest.$ac_objext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 ac_hi=$ac_mid; break
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714 ac_lo=`expr $ac_mid + 1`
3715 if test $ac_lo -le $ac_mid; then
3716 ac_lo= ac_hi=
3717 break
3718 fi
3719 ac_mid=`expr 2 '*' $ac_mid + 1`
3720 fi
3721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3722 done
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h. */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 $ac_includes_default
3734 int
3735 main ()
3736 {
3737 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3738 test_array [0] = 0
3739
3740 ;
3741 return 0;
3742 }
3743 _ACEOF
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>conftest.er1
3747 ac_status=$?
3748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_hi=-1 ac_mid=-1
3766 while :; do
3767 cat >conftest.$ac_ext <<_ACEOF
3768 /* confdefs.h. */
3769 _ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 $ac_includes_default
3774 int
3775 main ()
3776 {
3777 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3778 test_array [0] = 0
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_lo=$ac_mid; break
3806 else
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810 ac_hi=`expr '(' $ac_mid ')' - 1`
3811 if test $ac_mid -le $ac_hi; then
3812 ac_lo= ac_hi=
3813 break
3814 fi
3815 ac_mid=`expr 2 '*' $ac_mid`
3816 fi
3817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3818 done
3819 else
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3822
3823 ac_lo= ac_hi=
3824 fi
3825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3826 fi
3827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3828 # Binary search between lo and hi bounds.
3829 while test "x$ac_lo" != "x$ac_hi"; do
3830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 $ac_includes_default
3838 int
3839 main ()
3840 {
3841 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3842 test_array [0] = 0
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 rm -f conftest.$ac_objext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest.$ac_objext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_hi=$ac_mid
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 ac_lo=`expr '(' $ac_mid ')' + 1`
3875 fi
3876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3877 done
3878 case $ac_lo in
3879 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3880 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3881 See \`config.log' for more details." >&5
3882 echo "$as_me: error: cannot compute sizeof (void *), 77
3883 See \`config.log' for more details." >&2;}
3884 { (exit 1); exit 1; }; } ;;
3885 esac
3886 else
3887 if test "$cross_compiling" = yes; then
3888 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3889 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3890 { (exit 1); exit 1; }; }
3891 else
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 $ac_includes_default
3899 long longval () { return (long) (sizeof (void *)); }
3900 unsigned long ulongval () { return (long) (sizeof (void *)); }
3901 #include <stdio.h>
3902 #include <stdlib.h>
3903 int
3904 main ()
3905 {
3906
3907 FILE *f = fopen ("conftest.val", "w");
3908 if (! f)
3909 exit (1);
3910 if (((long) (sizeof (void *))) < 0)
3911 {
3912 long i = longval ();
3913 if (i != ((long) (sizeof (void *))))
3914 exit (1);
3915 fprintf (f, "%ld\n", i);
3916 }
3917 else
3918 {
3919 unsigned long i = ulongval ();
3920 if (i != ((long) (sizeof (void *))))
3921 exit (1);
3922 fprintf (f, "%lu\n", i);
3923 }
3924 exit (ferror (f) || fclose (f) != 0);
3925
3926 ;
3927 return 0;
3928 }
3929 _ACEOF
3930 rm -f conftest$ac_exeext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932 (eval $ac_link) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 ac_cv_sizeof_void_p=`cat conftest.val`
3942 else
3943 echo "$as_me: program exited with status $ac_status" >&5
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947 ( exit $ac_status )
3948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3949 See \`config.log' for more details." >&5
3950 echo "$as_me: error: cannot compute sizeof (void *), 77
3951 See \`config.log' for more details." >&2;}
3952 { (exit 1); exit 1; }; }
3953 fi
3954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3955 fi
3956 fi
3957 rm -f conftest.val
3958 else
3959 ac_cv_sizeof_void_p=0
3960 fi
3961 fi
3962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3963 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3964 cat >>confdefs.h <<_ACEOF
3965 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3966 _ACEOF
3967
3968
3969 echo "$as_me:$LINENO: checking for short" >&5
3970 echo $ECHO_N "checking for short... $ECHO_C" >&6
3971 if test "${ac_cv_type_short+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974 cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h. */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3980 $ac_includes_default
3981 int
3982 main ()
3983 {
3984 if ((short *) 0)
3985 return 0;
3986 if (sizeof (short))
3987 return 0;
3988 ;
3989 return 0;
3990 }
3991 _ACEOF
3992 rm -f conftest.$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 (eval $ac_try) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 ac_cv_type_short=yes
4014 else
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4017
4018 ac_cv_type_short=no
4019 fi
4020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4021 fi
4022 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4023 echo "${ECHO_T}$ac_cv_type_short" >&6
4024
4025 echo "$as_me:$LINENO: checking size of short" >&5
4026 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4027 if test "${ac_cv_sizeof_short+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 if test "$ac_cv_type_short" = yes; then
4031 # The cast to unsigned long works around a bug in the HP C Compiler
4032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4034 # This bug is HP SR number 8606223364.
4035 if test "$cross_compiling" = yes; then
4036 # Depending upon the size, compute the lo and hi bounds.
4037 cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h. */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 $ac_includes_default
4044 int
4045 main ()
4046 {
4047 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4048 test_array [0] = 0
4049
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 rm -f conftest.$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 (eval $ac_try) 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
4075 ac_lo=0 ac_mid=0
4076 while :; do
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 $ac_includes_default
4084 int
4085 main ()
4086 {
4087 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4088 test_array [0] = 0
4089
4090 ;
4091 return 0;
4092 }
4093 _ACEOF
4094 rm -f conftest.$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>conftest.er1
4097 ac_status=$?
4098 grep -v '^ *+' conftest.er1 >conftest.err
4099 rm -f conftest.er1
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } &&
4103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 (eval $ac_try) 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 ac_hi=$ac_mid; break
4116 else
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 ac_lo=`expr $ac_mid + 1`
4121 if test $ac_lo -le $ac_mid; then
4122 ac_lo= ac_hi=
4123 break
4124 fi
4125 ac_mid=`expr 2 '*' $ac_mid + 1`
4126 fi
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128 done
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h. */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 $ac_includes_default
4140 int
4141 main ()
4142 {
4143 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4144 test_array [0] = 0
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 ac_hi=-1 ac_mid=-1
4172 while :; do
4173 cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h. */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 $ac_includes_default
4180 int
4181 main ()
4182 {
4183 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4184 test_array [0] = 0
4185
4186 ;
4187 return 0;
4188 }
4189 _ACEOF
4190 rm -f conftest.$ac_objext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } &&
4199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_lo=$ac_mid; break
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 ac_hi=`expr '(' $ac_mid ')' - 1`
4217 if test $ac_mid -le $ac_hi; then
4218 ac_lo= ac_hi=
4219 break
4220 fi
4221 ac_mid=`expr 2 '*' $ac_mid`
4222 fi
4223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4224 done
4225 else
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 ac_lo= ac_hi=
4230 fi
4231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232 fi
4233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4234 # Binary search between lo and hi bounds.
4235 while test "x$ac_lo" != "x$ac_hi"; do
4236 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 $ac_includes_default
4244 int
4245 main ()
4246 {
4247 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4248 test_array [0] = 0
4249
4250 ;
4251 return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256 (eval $ac_compile) 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 (eval $ac_try) 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest.$ac_objext'
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_hi=$ac_mid
4276 else
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 ac_lo=`expr '(' $ac_mid ')' + 1`
4281 fi
4282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4283 done
4284 case $ac_lo in
4285 ?*) ac_cv_sizeof_short=$ac_lo;;
4286 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4287 See \`config.log' for more details." >&5
4288 echo "$as_me: error: cannot compute sizeof (short), 77
4289 See \`config.log' for more details." >&2;}
4290 { (exit 1); exit 1; }; } ;;
4291 esac
4292 else
4293 if test "$cross_compiling" = yes; then
4294 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4295 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4296 { (exit 1); exit 1; }; }
4297 else
4298 cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h. */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 $ac_includes_default
4305 long longval () { return (long) (sizeof (short)); }
4306 unsigned long ulongval () { return (long) (sizeof (short)); }
4307 #include <stdio.h>
4308 #include <stdlib.h>
4309 int
4310 main ()
4311 {
4312
4313 FILE *f = fopen ("conftest.val", "w");
4314 if (! f)
4315 exit (1);
4316 if (((long) (sizeof (short))) < 0)
4317 {
4318 long i = longval ();
4319 if (i != ((long) (sizeof (short))))
4320 exit (1);
4321 fprintf (f, "%ld\n", i);
4322 }
4323 else
4324 {
4325 unsigned long i = ulongval ();
4326 if (i != ((long) (sizeof (short))))
4327 exit (1);
4328 fprintf (f, "%lu\n", i);
4329 }
4330 exit (ferror (f) || fclose (f) != 0);
4331
4332 ;
4333 return 0;
4334 }
4335 _ACEOF
4336 rm -f conftest$ac_exeext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338 (eval $ac_link) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_sizeof_short=`cat conftest.val`
4348 else
4349 echo "$as_me: program exited with status $ac_status" >&5
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 ( exit $ac_status )
4354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4355 See \`config.log' for more details." >&5
4356 echo "$as_me: error: cannot compute sizeof (short), 77
4357 See \`config.log' for more details." >&2;}
4358 { (exit 1); exit 1; }; }
4359 fi
4360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4361 fi
4362 fi
4363 rm -f conftest.val
4364 else
4365 ac_cv_sizeof_short=0
4366 fi
4367 fi
4368 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4369 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4370 cat >>confdefs.h <<_ACEOF
4371 #define SIZEOF_SHORT $ac_cv_sizeof_short
4372 _ACEOF
4373
4374
4375 echo "$as_me:$LINENO: checking for int" >&5
4376 echo $ECHO_N "checking for int... $ECHO_C" >&6
4377 if test "${ac_cv_type_int+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 $ac_includes_default
4387 int
4388 main ()
4389 {
4390 if ((int *) 0)
4391 return 0;
4392 if (sizeof (int))
4393 return 0;
4394 ;
4395 return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>conftest.er1
4401 ac_status=$?
4402 grep -v '^ *+' conftest.er1 >conftest.err
4403 rm -f conftest.er1
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try='test -s conftest.$ac_objext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 ac_cv_type_int=yes
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 ac_cv_type_int=no
4425 fi
4426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4427 fi
4428 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4429 echo "${ECHO_T}$ac_cv_type_int" >&6
4430
4431 echo "$as_me:$LINENO: checking size of int" >&5
4432 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4433 if test "${ac_cv_sizeof_int+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 if test "$ac_cv_type_int" = yes; then
4437 # The cast to unsigned long works around a bug in the HP C Compiler
4438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4440 # This bug is HP SR number 8606223364.
4441 if test "$cross_compiling" = yes; then
4442 # Depending upon the size, compute the lo and hi bounds.
4443 cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h. */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 $ac_includes_default
4450 int
4451 main ()
4452 {
4453 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4454 test_array [0] = 0
4455
4456 ;
4457 return 0;
4458 }
4459 _ACEOF
4460 rm -f conftest.$ac_objext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>conftest.er1
4463 ac_status=$?
4464 grep -v '^ *+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_lo=0 ac_mid=0
4482 while :; do
4483 cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h. */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 $ac_includes_default
4490 int
4491 main ()
4492 {
4493 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4494 test_array [0] = 0
4495
4496 ;
4497 return 0;
4498 }
4499 _ACEOF
4500 rm -f conftest.$ac_objext
4501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4502 (eval $ac_compile) 2>conftest.er1
4503 ac_status=$?
4504 grep -v '^ *+' conftest.er1 >conftest.err
4505 rm -f conftest.er1
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; } &&
4515 { ac_try='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_hi=$ac_mid; break
4522 else
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526 ac_lo=`expr $ac_mid + 1`
4527 if test $ac_lo -le $ac_mid; then
4528 ac_lo= ac_hi=
4529 break
4530 fi
4531 ac_mid=`expr 2 '*' $ac_mid + 1`
4532 fi
4533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4534 done
4535 else
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h. */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 $ac_includes_default
4546 int
4547 main ()
4548 {
4549 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4550 test_array [0] = 0
4551
4552 ;
4553 return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558 (eval $ac_compile) 2>conftest.er1
4559 ac_status=$?
4560 grep -v '^ *+' conftest.er1 >conftest.err
4561 rm -f conftest.er1
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest.$ac_objext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_hi=-1 ac_mid=-1
4578 while :; do
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h. */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 $ac_includes_default
4586 int
4587 main ()
4588 {
4589 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4590 test_array [0] = 0
4591
4592 ;
4593 return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_lo=$ac_mid; break
4618 else
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_hi=`expr '(' $ac_mid ')' - 1`
4623 if test $ac_mid -le $ac_hi; then
4624 ac_lo= ac_hi=
4625 break
4626 fi
4627 ac_mid=`expr 2 '*' $ac_mid`
4628 fi
4629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4630 done
4631 else
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635 ac_lo= ac_hi=
4636 fi
4637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4638 fi
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 # Binary search between lo and hi bounds.
4641 while test "x$ac_lo" != "x$ac_hi"; do
4642 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 $ac_includes_default
4650 int
4651 main ()
4652 {
4653 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4654 test_array [0] = 0
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 rm -f conftest.$ac_objext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662 (eval $ac_compile) 2>conftest.er1
4663 ac_status=$?
4664 grep -v '^ *+' conftest.er1 >conftest.err
4665 rm -f conftest.er1
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } &&
4669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_hi=$ac_mid
4682 else
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4685
4686 ac_lo=`expr '(' $ac_mid ')' + 1`
4687 fi
4688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4689 done
4690 case $ac_lo in
4691 ?*) ac_cv_sizeof_int=$ac_lo;;
4692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4693 See \`config.log' for more details." >&5
4694 echo "$as_me: error: cannot compute sizeof (int), 77
4695 See \`config.log' for more details." >&2;}
4696 { (exit 1); exit 1; }; } ;;
4697 esac
4698 else
4699 if test "$cross_compiling" = yes; then
4700 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4701 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4702 { (exit 1); exit 1; }; }
4703 else
4704 cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h. */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 $ac_includes_default
4711 long longval () { return (long) (sizeof (int)); }
4712 unsigned long ulongval () { return (long) (sizeof (int)); }
4713 #include <stdio.h>
4714 #include <stdlib.h>
4715 int
4716 main ()
4717 {
4718
4719 FILE *f = fopen ("conftest.val", "w");
4720 if (! f)
4721 exit (1);
4722 if (((long) (sizeof (int))) < 0)
4723 {
4724 long i = longval ();
4725 if (i != ((long) (sizeof (int))))
4726 exit (1);
4727 fprintf (f, "%ld\n", i);
4728 }
4729 else
4730 {
4731 unsigned long i = ulongval ();
4732 if (i != ((long) (sizeof (int))))
4733 exit (1);
4734 fprintf (f, "%lu\n", i);
4735 }
4736 exit (ferror (f) || fclose (f) != 0);
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest$ac_exeext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 ac_cv_sizeof_int=`cat conftest.val`
4754 else
4755 echo "$as_me: program exited with status $ac_status" >&5
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 ( exit $ac_status )
4760 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4761 See \`config.log' for more details." >&5
4762 echo "$as_me: error: cannot compute sizeof (int), 77
4763 See \`config.log' for more details." >&2;}
4764 { (exit 1); exit 1; }; }
4765 fi
4766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 fi
4769 rm -f conftest.val
4770 else
4771 ac_cv_sizeof_int=0
4772 fi
4773 fi
4774 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4775 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4776 cat >>confdefs.h <<_ACEOF
4777 #define SIZEOF_INT $ac_cv_sizeof_int
4778 _ACEOF
4779
4780
4781 echo "$as_me:$LINENO: checking for long" >&5
4782 echo $ECHO_N "checking for long... $ECHO_C" >&6
4783 if test "${ac_cv_type_long+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
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 if ((long *) 0)
4797 return 0;
4798 if (sizeof (long))
4799 return 0;
4800 ;
4801 return 0;
4802 }
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try='test -z "$ac_c_werror_flag" || 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_cv_type_long=yes
4826 else
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 ac_cv_type_long=no
4831 fi
4832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833 fi
4834 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4835 echo "${ECHO_T}$ac_cv_type_long" >&6
4836
4837 echo "$as_me:$LINENO: checking size of long" >&5
4838 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4839 if test "${ac_cv_sizeof_long+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842 if test "$ac_cv_type_long" = yes; then
4843 # The cast to unsigned long works around a bug in the HP C Compiler
4844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4846 # This bug is HP SR number 8606223364.
4847 if test "$cross_compiling" = yes; then
4848 # Depending upon the size, compute the lo and hi bounds.
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 $ac_includes_default
4856 int
4857 main ()
4858 {
4859 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4860 test_array [0] = 0
4861
4862 ;
4863 return 0;
4864 }
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_lo=0 ac_mid=0
4888 while :; do
4889 cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 $ac_includes_default
4896 int
4897 main ()
4898 {
4899 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4900 test_array [0] = 0
4901
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest.$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 (eval $ac_try) 2>&5
4918 ac_status=$?
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 (eval $ac_try) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_hi=$ac_mid; break
4928 else
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ac_lo=`expr $ac_mid + 1`
4933 if test $ac_lo -le $ac_mid; then
4934 ac_lo= ac_hi=
4935 break
4936 fi
4937 ac_mid=`expr 2 '*' $ac_mid + 1`
4938 fi
4939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4940 done
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h. */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 $ac_includes_default
4952 int
4953 main ()
4954 {
4955 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4956 test_array [0] = 0
4957
4958 ;
4959 return 0;
4960 }
4961 _ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4965 ac_status=$?
4966 grep -v '^ *+' conftest.er1 >conftest.err
4967 rm -f conftest.er1
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 (eval $ac_try) 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 (eval $ac_try) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_hi=-1 ac_mid=-1
4984 while :; do
4985 cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h. */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991 $ac_includes_default
4992 int
4993 main ()
4994 {
4995 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4996 test_array [0] = 0
4997
4998 ;
4999 return 0;
5000 }
5001 _ACEOF
5002 rm -f conftest.$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; } &&
5017 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5023 ac_lo=$ac_mid; break
5024 else
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 ac_hi=`expr '(' $ac_mid ')' - 1`
5029 if test $ac_mid -le $ac_hi; then
5030 ac_lo= ac_hi=
5031 break
5032 fi
5033 ac_mid=`expr 2 '*' $ac_mid`
5034 fi
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 done
5037 else
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041 ac_lo= ac_hi=
5042 fi
5043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5044 fi
5045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5046 # Binary search between lo and hi bounds.
5047 while test "x$ac_lo" != "x$ac_hi"; do
5048 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5049 cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h. */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 $ac_includes_default
5056 int
5057 main ()
5058 {
5059 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5060 test_array [0] = 0
5061
5062 ;
5063 return 0;
5064 }
5065 _ACEOF
5066 rm -f conftest.$ac_objext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 ac_hi=$ac_mid
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 ac_lo=`expr '(' $ac_mid ')' + 1`
5093 fi
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 done
5096 case $ac_lo in
5097 ?*) ac_cv_sizeof_long=$ac_lo;;
5098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5099 See \`config.log' for more details." >&5
5100 echo "$as_me: error: cannot compute sizeof (long), 77
5101 See \`config.log' for more details." >&2;}
5102 { (exit 1); exit 1; }; } ;;
5103 esac
5104 else
5105 if test "$cross_compiling" = yes; then
5106 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5107 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5108 { (exit 1); exit 1; }; }
5109 else
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5117 long longval () { return (long) (sizeof (long)); }
5118 unsigned long ulongval () { return (long) (sizeof (long)); }
5119 #include <stdio.h>
5120 #include <stdlib.h>
5121 int
5122 main ()
5123 {
5124
5125 FILE *f = fopen ("conftest.val", "w");
5126 if (! f)
5127 exit (1);
5128 if (((long) (sizeof (long))) < 0)
5129 {
5130 long i = longval ();
5131 if (i != ((long) (sizeof (long))))
5132 exit (1);
5133 fprintf (f, "%ld\n", i);
5134 }
5135 else
5136 {
5137 unsigned long i = ulongval ();
5138 if (i != ((long) (sizeof (long))))
5139 exit (1);
5140 fprintf (f, "%lu\n", i);
5141 }
5142 exit (ferror (f) || fclose (f) != 0);
5143
5144 ;
5145 return 0;
5146 }
5147 _ACEOF
5148 rm -f conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 (eval $ac_try) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5159 ac_cv_sizeof_long=`cat conftest.val`
5160 else
5161 echo "$as_me: program exited with status $ac_status" >&5
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5164
5165 ( exit $ac_status )
5166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5167 See \`config.log' for more details." >&5
5168 echo "$as_me: error: cannot compute sizeof (long), 77
5169 See \`config.log' for more details." >&2;}
5170 { (exit 1); exit 1; }; }
5171 fi
5172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5173 fi
5174 fi
5175 rm -f conftest.val
5176 else
5177 ac_cv_sizeof_long=0
5178 fi
5179 fi
5180 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5181 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5182 cat >>confdefs.h <<_ACEOF
5183 #define SIZEOF_LONG $ac_cv_sizeof_long
5184 _ACEOF
5185
5186
5187 if test $ac_cv_c_long_long = yes; then
5188 echo "$as_me:$LINENO: checking for long long" >&5
5189 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5190 if test "${ac_cv_type_long_long+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193 cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h. */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 $ac_includes_default
5200 int
5201 main ()
5202 {
5203 if ((long long *) 0)
5204 return 0;
5205 if (sizeof (long long))
5206 return 0;
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 rm -f conftest.$ac_objext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213 (eval $ac_compile) 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5232 ac_cv_type_long_long=yes
5233 else
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 ac_cv_type_long_long=no
5238 fi
5239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5240 fi
5241 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5242 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5243
5244 echo "$as_me:$LINENO: checking size of long long" >&5
5245 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5246 if test "${ac_cv_sizeof_long_long+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 if test "$ac_cv_type_long_long" = yes; then
5250 # The cast to unsigned long works around a bug in the HP C Compiler
5251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5253 # This bug is HP SR number 8606223364.
5254 if test "$cross_compiling" = yes; then
5255 # Depending upon the size, compute the lo and hi bounds.
5256 cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h. */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 $ac_includes_default
5263 int
5264 main ()
5265 {
5266 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5267 test_array [0] = 0
5268
5269 ;
5270 return 0;
5271 }
5272 _ACEOF
5273 rm -f conftest.$ac_objext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275 (eval $ac_compile) 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_lo=0 ac_mid=0
5295 while :; do
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 $ac_includes_default
5303 int
5304 main ()
5305 {
5306 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5307 test_array [0] = 0
5308
5309 ;
5310 return 0;
5311 }
5312 _ACEOF
5313 rm -f conftest.$ac_objext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315 (eval $ac_compile) 2>conftest.er1
5316 ac_status=$?
5317 grep -v '^ *+' conftest.er1 >conftest.err
5318 rm -f conftest.er1
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 (eval $ac_try) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; } &&
5328 { ac_try='test -s conftest.$ac_objext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 (eval $ac_try) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_hi=$ac_mid; break
5335 else
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 ac_lo=`expr $ac_mid + 1`
5340 if test $ac_lo -le $ac_mid; then
5341 ac_lo= ac_hi=
5342 break
5343 fi
5344 ac_mid=`expr 2 '*' $ac_mid + 1`
5345 fi
5346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347 done
5348 else
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5351
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h. */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 $ac_includes_default
5359 int
5360 main ()
5361 {
5362 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5363 test_array [0] = 0
5364
5365 ;
5366 return 0;
5367 }
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5372 ac_status=$?
5373 grep -v '^ *+' conftest.er1 >conftest.err
5374 rm -f conftest.er1
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_hi=-1 ac_mid=-1
5391 while :; do
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5399 int
5400 main ()
5401 {
5402 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5403 test_array [0] = 0
5404
5405 ;
5406 return 0;
5407 }
5408 _ACEOF
5409 rm -f conftest.$ac_objext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411 (eval $ac_compile) 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; } &&
5424 { ac_try='test -s conftest.$ac_objext'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 (eval $ac_try) 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5430 ac_lo=$ac_mid; break
5431 else
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5434
5435 ac_hi=`expr '(' $ac_mid ')' - 1`
5436 if test $ac_mid -le $ac_hi; then
5437 ac_lo= ac_hi=
5438 break
5439 fi
5440 ac_mid=`expr 2 '*' $ac_mid`
5441 fi
5442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5443 done
5444 else
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448 ac_lo= ac_hi=
5449 fi
5450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5451 fi
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453 # Binary search between lo and hi bounds.
5454 while test "x$ac_lo" != "x$ac_hi"; do
5455 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h. */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 $ac_includes_default
5463 int
5464 main ()
5465 {
5466 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5467 test_array [0] = 0
5468
5469 ;
5470 return 0;
5471 }
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5475 (eval $ac_compile) 2>conftest.er1
5476 ac_status=$?
5477 grep -v '^ *+' conftest.er1 >conftest.err
5478 rm -f conftest.er1
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
5482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; } &&
5488 { ac_try='test -s conftest.$ac_objext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 (eval $ac_try) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 ac_hi=$ac_mid
5495 else
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5498
5499 ac_lo=`expr '(' $ac_mid ')' + 1`
5500 fi
5501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5502 done
5503 case $ac_lo in
5504 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5505 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5506 See \`config.log' for more details." >&5
5507 echo "$as_me: error: cannot compute sizeof (long long), 77
5508 See \`config.log' for more details." >&2;}
5509 { (exit 1); exit 1; }; } ;;
5510 esac
5511 else
5512 if test "$cross_compiling" = yes; then
5513 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5514 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5515 { (exit 1); exit 1; }; }
5516 else
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 $ac_includes_default
5524 long longval () { return (long) (sizeof (long long)); }
5525 unsigned long ulongval () { return (long) (sizeof (long long)); }
5526 #include <stdio.h>
5527 #include <stdlib.h>
5528 int
5529 main ()
5530 {
5531
5532 FILE *f = fopen ("conftest.val", "w");
5533 if (! f)
5534 exit (1);
5535 if (((long) (sizeof (long long))) < 0)
5536 {
5537 long i = longval ();
5538 if (i != ((long) (sizeof (long long))))
5539 exit (1);
5540 fprintf (f, "%ld\n", i);
5541 }
5542 else
5543 {
5544 unsigned long i = ulongval ();
5545 if (i != ((long) (sizeof (long long))))
5546 exit (1);
5547 fprintf (f, "%lu\n", i);
5548 }
5549 exit (ferror (f) || fclose (f) != 0);
5550
5551 ;
5552 return 0;
5553 }
5554 _ACEOF
5555 rm -f conftest$ac_exeext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 ac_cv_sizeof_long_long=`cat conftest.val`
5567 else
5568 echo "$as_me: program exited with status $ac_status" >&5
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572 ( exit $ac_status )
5573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5574 See \`config.log' for more details." >&5
5575 echo "$as_me: error: cannot compute sizeof (long long), 77
5576 See \`config.log' for more details." >&2;}
5577 { (exit 1); exit 1; }; }
5578 fi
5579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5580 fi
5581 fi
5582 rm -f conftest.val
5583 else
5584 ac_cv_sizeof_long_long=0
5585 fi
5586 fi
5587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5588 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5589 cat >>confdefs.h <<_ACEOF
5590 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5591 _ACEOF
5592
5593
5594 fi
5595 if test $ac_cv_c___int64 = yes; then
5596 echo "$as_me:$LINENO: checking for __int64" >&5
5597 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5598 if test "${ac_cv_type___int64+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601 cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h. */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 $ac_includes_default
5608 int
5609 main ()
5610 {
5611 if ((__int64 *) 0)
5612 return 0;
5613 if (sizeof (__int64))
5614 return 0;
5615 ;
5616 return 0;
5617 }
5618 _ACEOF
5619 rm -f conftest.$ac_objext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_cv_type___int64=yes
5641 else
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_cv_type___int64=no
5646 fi
5647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5649 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5650 echo "${ECHO_T}$ac_cv_type___int64" >&6
5651
5652 echo "$as_me:$LINENO: checking size of __int64" >&5
5653 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5654 if test "${ac_cv_sizeof___int64+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 if test "$ac_cv_type___int64" = yes; then
5658 # The cast to unsigned long works around a bug in the HP C Compiler
5659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5661 # This bug is HP SR number 8606223364.
5662 if test "$cross_compiling" = yes; then
5663 # Depending upon the size, compute the lo and hi bounds.
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 $ac_includes_default
5671 int
5672 main ()
5673 {
5674 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5675 test_array [0] = 0
5676
5677 ;
5678 return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683 (eval $ac_compile) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 (eval $ac_try) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; } &&
5696 { ac_try='test -s conftest.$ac_objext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5702 ac_lo=0 ac_mid=0
5703 while :; do
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 $ac_includes_default
5711 int
5712 main ()
5713 {
5714 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5715 test_array [0] = 0
5716
5717 ;
5718 return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try='test -s conftest.$ac_objext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_hi=$ac_mid; break
5743 else
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747 ac_lo=`expr $ac_mid + 1`
5748 if test $ac_lo -le $ac_mid; then
5749 ac_lo= ac_hi=
5750 break
5751 fi
5752 ac_mid=`expr 2 '*' $ac_mid + 1`
5753 fi
5754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5755 done
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5767 int
5768 main ()
5769 {
5770 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5771 test_array [0] = 0
5772
5773 ;
5774 return 0;
5775 }
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 ac_hi=-1 ac_mid=-1
5799 while :; do
5800 cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h. */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 $ac_includes_default
5807 int
5808 main ()
5809 {
5810 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5811 test_array [0] = 0
5812
5813 ;
5814 return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try='test -s conftest.$ac_objext'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_lo=$ac_mid; break
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 ac_hi=`expr '(' $ac_mid ')' - 1`
5844 if test $ac_mid -le $ac_hi; then
5845 ac_lo= ac_hi=
5846 break
5847 fi
5848 ac_mid=`expr 2 '*' $ac_mid`
5849 fi
5850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5851 done
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 ac_lo= ac_hi=
5857 fi
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859 fi
5860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5861 # Binary search between lo and hi bounds.
5862 while test "x$ac_lo" != "x$ac_hi"; do
5863 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5864 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 $ac_includes_default
5871 int
5872 main ()
5873 {
5874 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5875 test_array [0] = 0
5876
5877 ;
5878 return 0;
5879 }
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>conftest.er1
5884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_hi=$ac_mid
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_lo=`expr '(' $ac_mid ')' + 1`
5908 fi
5909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910 done
5911 case $ac_lo in
5912 ?*) ac_cv_sizeof___int64=$ac_lo;;
5913 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5914 See \`config.log' for more details." >&5
5915 echo "$as_me: error: cannot compute sizeof (__int64), 77
5916 See \`config.log' for more details." >&2;}
5917 { (exit 1); exit 1; }; } ;;
5918 esac
5919 else
5920 if test "$cross_compiling" = yes; then
5921 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5922 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5923 { (exit 1); exit 1; }; }
5924 else
5925 cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h. */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 $ac_includes_default
5932 long longval () { return (long) (sizeof (__int64)); }
5933 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5934 #include <stdio.h>
5935 #include <stdlib.h>
5936 int
5937 main ()
5938 {
5939
5940 FILE *f = fopen ("conftest.val", "w");
5941 if (! f)
5942 exit (1);
5943 if (((long) (sizeof (__int64))) < 0)
5944 {
5945 long i = longval ();
5946 if (i != ((long) (sizeof (__int64))))
5947 exit (1);
5948 fprintf (f, "%ld\n", i);
5949 }
5950 else
5951 {
5952 unsigned long i = ulongval ();
5953 if (i != ((long) (sizeof (__int64))))
5954 exit (1);
5955 fprintf (f, "%lu\n", i);
5956 }
5957 exit (ferror (f) || fclose (f) != 0);
5958
5959 ;
5960 return 0;
5961 }
5962 _ACEOF
5963 rm -f conftest$ac_exeext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5965 (eval $ac_link) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 (eval $ac_try) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 ac_cv_sizeof___int64=`cat conftest.val`
5975 else
5976 echo "$as_me: program exited with status $ac_status" >&5
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5979
5980 ( exit $ac_status )
5981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5982 See \`config.log' for more details." >&5
5983 echo "$as_me: error: cannot compute sizeof (__int64), 77
5984 See \`config.log' for more details." >&2;}
5985 { (exit 1); exit 1; }; }
5986 fi
5987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5988 fi
5989 fi
5990 rm -f conftest.val
5991 else
5992 ac_cv_sizeof___int64=0
5993 fi
5994 fi
5995 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5996 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5997 cat >>confdefs.h <<_ACEOF
5998 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5999 _ACEOF
6000
6001
6002 fi
6003
6004 # ---------------------
6005 # Warnings and checking
6006 # ---------------------
6007
6008 # Check $CC warning features (if it's GCC).
6009 # We want to use -pedantic, but we don't want warnings about
6010 # * 'long long'
6011 # * variadic macros
6012 # So, we only use -pedantic if we can disable those warnings.
6013
6014 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6015 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6016 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 save_CFLAGS="$CFLAGS"
6020 CFLAGS="-Wno-long-long"
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027
6028 _ACEOF
6029 rm -f conftest.$ac_objext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031 (eval $ac_compile) 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest.$ac_objext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_prog_cc_w_no_long_long=yes
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 ac_cv_prog_cc_w_no_long_long=no
6056 fi
6057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6058 CFLAGS="$save_CFLAGS"
6059
6060 fi
6061 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6062 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6063
6064 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6065 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6066 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069 save_CFLAGS="$CFLAGS"
6070 CFLAGS="-Wno-variadic-macros"
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077
6078 _ACEOF
6079 rm -f conftest.$ac_objext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081 (eval $ac_compile) 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try='test -s conftest.$ac_objext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 (eval $ac_try) 2>&5
6097 ac_status=$?
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_prog_cc_w_no_variadic_macros=yes
6101 else
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105 ac_cv_prog_cc_w_no_variadic_macros=no
6106 fi
6107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6108 CFLAGS="$save_CFLAGS"
6109
6110 fi
6111 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6112 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6113
6114 strict1_warn=
6115 if test $ac_cv_prog_cc_w_no_long_long = yes \
6116 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6117 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6118 fi
6119
6120
6121 # Add -Wold-style-definition if it's accepted
6122 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6123 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6124 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 save_CFLAGS="$CFLAGS"
6128 CFLAGS="-Wold-style-definition"
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135
6136 _ACEOF
6137 rm -f conftest.$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_cv_prog_cc_w_old_style_definition=yes
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6162
6163 ac_cv_prog_cc_w_old_style_definition=no
6164 fi
6165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6166 CFLAGS="$save_CFLAGS"
6167
6168 fi
6169 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6170 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6171 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6172 strict1_warn="${strict1_warn} -Wold-style-definition"
6173 fi
6174
6175 # Enable -Werror, period.
6176 # Check whether --enable-werror_always or --disable-werror_always was given.
6177 if test "${enable_werror_always+set}" = set; then
6178 enableval="$enable_werror_always"
6179
6180 else
6181 enable_werror_always=no
6182 fi;
6183 if test x${enable_werror_always} = xyes ; then
6184 strict1_warn="${strict1_warn} -Werror"
6185 WERROR=-Werror
6186 fi
6187
6188 # If the native compiler is GCC, we can enable warnings even in stage1.
6189 # That's useful for people building cross-compilers, or just running a
6190 # quick `make'.
6191 warn_cflags=
6192 if test "x$GCC" = "xyes"; then
6193 warn_cflags='$(GCC_WARN_CFLAGS)'
6194 fi
6195
6196
6197 # Enable -Werror in bootstrap stage2 and later.
6198 # Check whether --enable-werror or --disable-werror was given.
6199 if test "${enable_werror+set}" = set; then
6200 enableval="$enable_werror"
6201
6202 else
6203 if test x$is_release = x ; then
6204 # Default to "yes" on development branches.
6205 enable_werror=yes
6206 else
6207 # Default to "no" on release branches.
6208 enable_werror=no
6209 fi
6210 fi;
6211 if test x$enable_werror = xyes ; then
6212 WERROR=-Werror
6213 fi
6214
6215
6216 # Enable expensive internal checks
6217 # Check whether --enable-checking or --disable-checking was given.
6218 if test "${enable_checking+set}" = set; then
6219 enableval="$enable_checking"
6220 ac_checking_flags="${enableval}"
6221 else
6222
6223 # Determine the default checks.
6224 if test x$is_release = x ; then
6225 ac_checking_flags=yes
6226 else
6227 ac_checking_flags=release
6228 fi
6229 fi;
6230 ac_assert_checking=1
6231 ac_checking=
6232 ac_tree_checking=
6233 ac_rtl_checking=
6234 ac_rtlflag_checking=
6235 ac_gc_checking=
6236 ac_gc_always_collect=
6237 ac_fold_checking=
6238 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6239 for check in $ac_checking_flags
6240 do
6241 case $check in
6242 yes) ac_assert_checking=1 ; ac_checking=1 ;
6243 ac_tree_checking=1 ; ac_gc_checking=1 ;
6244 ac_rtlflag_checking=1 ;;
6245 no) ac_assert_checking= ; ac_checking= ;
6246 ac_tree_checking= ; ac_rtl_checking= ;
6247 ac_rtlflag_checking= ; ac_gc_checking= ;
6248 ac_gc_always_collect= ; ac_fold_checking= ;;
6249 all) ac_assert_checking=1 ; ac_checking=1 ;
6250 ac_tree_checking=1 ; ac_rtl_checking=1 ;
6251 ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6252 ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6253 release) ac_assert_checking=1 ;;
6254 assert) ac_assert_checking=1 ;;
6255 fold) ac_fold_checking=1 ;;
6256 gc) ac_gc_checking=1 ;;
6257 gcac) ac_gc_always_collect=1 ;;
6258 misc) ac_checking=1 ;;
6259 rtlflag) ac_rtlflag_checking=1 ;;
6260 rtl) ac_rtl_checking=1 ;;
6261 tree) ac_tree_checking=1 ;;
6262 valgrind) ac_checking_valgrind=1 ;;
6263 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6264 echo "$as_me: error: unknown check category $check" >&2;}
6265 { (exit 1); exit 1; }; } ;;
6266 esac
6267 done
6268 IFS="$ac_save_IFS"
6269
6270 nocommon_flag=""
6271 if test x$ac_checking != x ; then
6272
6273 cat >>confdefs.h <<\_ACEOF
6274 #define ENABLE_CHECKING 1
6275 _ACEOF
6276
6277 nocommon_flag=-fno-common
6278 fi
6279
6280 if test x$ac_assert_checking != x ; then
6281
6282 cat >>confdefs.h <<\_ACEOF
6283 #define ENABLE_ASSERT_CHECKING 1
6284 _ACEOF
6285
6286 fi
6287 if test x$ac_tree_checking != x ; then
6288
6289 cat >>confdefs.h <<\_ACEOF
6290 #define ENABLE_TREE_CHECKING 1
6291 _ACEOF
6292
6293 TREEBROWSER=tree-browser.o
6294 fi
6295
6296 if test x$ac_rtl_checking != x ; then
6297
6298 cat >>confdefs.h <<\_ACEOF
6299 #define ENABLE_RTL_CHECKING 1
6300 _ACEOF
6301
6302 fi
6303 if test x$ac_rtlflag_checking != x ; then
6304
6305 cat >>confdefs.h <<\_ACEOF
6306 #define ENABLE_RTL_FLAG_CHECKING 1
6307 _ACEOF
6308
6309 fi
6310 if test x$ac_gc_checking != x ; then
6311
6312 cat >>confdefs.h <<\_ACEOF
6313 #define ENABLE_GC_CHECKING 1
6314 _ACEOF
6315
6316 fi
6317 if test x$ac_gc_always_collect != x ; then
6318
6319 cat >>confdefs.h <<\_ACEOF
6320 #define ENABLE_GC_ALWAYS_COLLECT 1
6321 _ACEOF
6322
6323 fi
6324 if test x$ac_fold_checking != x ; then
6325
6326 cat >>confdefs.h <<\_ACEOF
6327 #define ENABLE_FOLD_CHECKING 1
6328 _ACEOF
6329
6330 fi
6331 valgrind_path_defines=
6332 valgrind_command=
6333
6334 if test "${ac_cv_header_valgrind_h+set}" = set; then
6335 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6336 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6337 if test "${ac_cv_header_valgrind_h+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 fi
6340 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6341 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6342 else
6343 # Is the header compilable?
6344 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6345 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6346 cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h. */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 $ac_includes_default
6353 #include <valgrind.h>
6354 _ACEOF
6355 rm -f conftest.$ac_objext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357 (eval $ac_compile) 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest.$ac_objext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_header_compiler=yes
6377 else
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381 ac_header_compiler=no
6382 fi
6383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6385 echo "${ECHO_T}$ac_header_compiler" >&6
6386
6387 # Is the header present?
6388 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6389 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
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 #include <valgrind.h>
6397 _ACEOF
6398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } >/dev/null; then
6406 if test -s conftest.err; then
6407 ac_cpp_err=$ac_c_preproc_warn_flag
6408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6409 else
6410 ac_cpp_err=
6411 fi
6412 else
6413 ac_cpp_err=yes
6414 fi
6415 if test -z "$ac_cpp_err"; then
6416 ac_header_preproc=yes
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 ac_header_preproc=no
6422 fi
6423 rm -f conftest.err conftest.$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6425 echo "${ECHO_T}$ac_header_preproc" >&6
6426
6427 # So? What about this header?
6428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6429 yes:no: )
6430 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6431 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6433 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6434 ac_header_preproc=yes
6435 ;;
6436 no:yes:* )
6437 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6438 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6440 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6442 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6444 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6446 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6448 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6449 (
6450 cat <<\_ASBOX
6451 ## ------------------------------------------ ##
6452 ## Report this to the AC_PACKAGE_NAME lists. ##
6453 ## ------------------------------------------ ##
6454 _ASBOX
6455 ) |
6456 sed "s/^/$as_me: WARNING: /" >&2
6457 ;;
6458 esac
6459 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6460 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6461 if test "${ac_cv_header_valgrind_h+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464 ac_cv_header_valgrind_h=$ac_header_preproc
6465 fi
6466 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6467 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6468
6469 fi
6470 if test $ac_cv_header_valgrind_h = yes; then
6471 have_valgrind_h=yes
6472 else
6473 have_valgrind_h=no
6474 fi
6475
6476
6477
6478 if test x$ac_checking_valgrind != x ; then
6479 # It is certainly possible that there's valgrind but no valgrind.h.
6480 # GCC relies on making annotations so we must have both.
6481 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6482 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6483 cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h. */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #include <valgrind/memcheck.h>
6490 #ifndef VALGRIND_DISCARD
6491 #error VALGRIND_DISCARD not defined
6492 #endif
6493 _ACEOF
6494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } >/dev/null; then
6502 if test -s conftest.err; then
6503 ac_cpp_err=$ac_c_preproc_warn_flag
6504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6505 else
6506 ac_cpp_err=
6507 fi
6508 else
6509 ac_cpp_err=yes
6510 fi
6511 if test -z "$ac_cpp_err"; then
6512 gcc_cv_header_valgrind_memcheck_h=yes
6513 else
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6516
6517 gcc_cv_header_valgrind_memcheck_h=no
6518 fi
6519 rm -f conftest.err conftest.$ac_ext
6520 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6521 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6522 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6523 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 #include <memcheck.h>
6531 #ifndef VALGRIND_DISCARD
6532 #error VALGRIND_DISCARD not defined
6533 #endif
6534 _ACEOF
6535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } >/dev/null; then
6543 if test -s conftest.err; then
6544 ac_cpp_err=$ac_c_preproc_warn_flag
6545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6546 else
6547 ac_cpp_err=
6548 fi
6549 else
6550 ac_cpp_err=yes
6551 fi
6552 if test -z "$ac_cpp_err"; then
6553 gcc_cv_header_memcheck_h=yes
6554 else
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558 gcc_cv_header_memcheck_h=no
6559 fi
6560 rm -f conftest.err conftest.$ac_ext
6561 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6562 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6563
6564 # Prepare PATH_SEPARATOR.
6565 # The user is always right.
6566 if test "${PATH_SEPARATOR+set}" != set; then
6567 echo "#! /bin/sh" >conf$$.sh
6568 echo "exit 0" >>conf$$.sh
6569 chmod +x conf$$.sh
6570 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6571 PATH_SEPARATOR=';'
6572 else
6573 PATH_SEPARATOR=:
6574 fi
6575 rm -f conf$$.sh
6576 fi
6577
6578 # Find out how to test for executable files. Don't use a zero-byte file,
6579 # as systems may use methods other than mode bits to determine executability.
6580 cat >conf$$.file <<_ASEOF
6581 #! /bin/sh
6582 exit 0
6583 _ASEOF
6584 chmod +x conf$$.file
6585 if test -x conf$$.file >/dev/null 2>&1; then
6586 ac_executable_p="test -x"
6587 else
6588 ac_executable_p="test -f"
6589 fi
6590 rm -f conf$$.file
6591
6592 # Extract the first word of "valgrind", so it can be a program name with args.
6593 set dummy valgrind; ac_word=$2
6594 echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6596 if test "${ac_cv_path_valgrind_path+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599 case "$valgrind_path" in
6600 [\\/]* | ?:[\\/]*)
6601 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6602 ;;
6603 *)
6604 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6605 for ac_dir in $PATH; do
6606 IFS="$ac_save_IFS"
6607 test -z "$ac_dir" && ac_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6610 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6611 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6612 break 2
6613 fi
6614 fi
6615 done
6616 done
6617 IFS="$ac_save_IFS"
6618 ;;
6619 esac
6620 fi
6621 valgrind_path="$ac_cv_path_valgrind_path"
6622 if test -n "$valgrind_path"; then
6623 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6624 echo "${ECHO_T}$valgrind_path" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6
6628 fi
6629
6630 if test "x$valgrind_path" = "x" \
6631 || (test $have_valgrind_h = no \
6632 && test $gcc_cv_header_memcheck_h = no \
6633 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6634 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6635 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6636 { (exit 1); exit 1; }; }
6637 fi
6638 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6639 valgrind_command="$valgrind_path -q"
6640
6641 cat >>confdefs.h <<\_ACEOF
6642 #define ENABLE_VALGRIND_CHECKING 1
6643 _ACEOF
6644
6645 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6646
6647 cat >>confdefs.h <<\_ACEOF
6648 #define HAVE_VALGRIND_MEMCHECK_H 1
6649 _ACEOF
6650
6651 fi
6652 if test $gcc_cv_header_memcheck_h = yes; then
6653
6654 cat >>confdefs.h <<\_ACEOF
6655 #define HAVE_MEMCHECK_H 1
6656 _ACEOF
6657
6658 fi
6659 fi
6660
6661
6662
6663 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6664 if test "${enable_mapped_location+set}" = set; then
6665 enableval="$enable_mapped_location"
6666
6667 else
6668 enable_mapped_location=no
6669 fi;
6670
6671 if test "$enable_mapped_location" = yes ; then
6672
6673 cat >>confdefs.h <<\_ACEOF
6674 #define USE_MAPPED_LOCATION 1
6675 _ACEOF
6676
6677 fi
6678
6679 # Enable code coverage collection
6680 # Check whether --enable-coverage or --disable-coverage was given.
6681 if test "${enable_coverage+set}" = set; then
6682 enableval="$enable_coverage"
6683 case "${enableval}" in
6684 yes|noopt)
6685 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6686 ;;
6687 opt)
6688 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6689 ;;
6690 no)
6691 # a.k.a. --disable-coverage
6692 coverage_flags=""
6693 ;;
6694 *)
6695 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6696 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6697 { (exit 1); exit 1; }; }
6698 ;;
6699 esac
6700 else
6701 coverage_flags=""
6702 fi;
6703
6704
6705 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6706 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6707 enableval="$enable_gather_detailed_mem_stats"
6708
6709 else
6710 enable_gather_detailed_mem_stats=no
6711 fi;
6712 if test x$enable_gather_detailed_mem_stats = xyes ; then
6713
6714 cat >>confdefs.h <<\_ACEOF
6715 #define GATHER_STATISTICS 1
6716 _ACEOF
6717
6718 fi
6719
6720 # -------------------------------
6721 # Miscenalleous configure options
6722 # -------------------------------
6723
6724 # With stabs
6725
6726 # Check whether --with-stabs or --without-stabs was given.
6727 if test "${with_stabs+set}" = set; then
6728 withval="$with_stabs"
6729 stabs="$with_stabs"
6730 else
6731 stabs=no
6732 fi;
6733
6734 # Determine whether or not multilibs are enabled.
6735 # Check whether --enable-multilib or --disable-multilib was given.
6736 if test "${enable_multilib+set}" = set; then
6737 enableval="$enable_multilib"
6738
6739 else
6740 enable_multilib=yes
6741 fi;
6742
6743
6744 # Enable __cxa_atexit for C++.
6745 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6746 if test "${enable___cxa_atexit+set}" = set; then
6747 enableval="$enable___cxa_atexit"
6748
6749 fi;
6750
6751 # Enable threads
6752 # Pass with no value to take the default
6753 # Pass with a value to specify a thread package
6754 # Check whether --enable-threads or --disable-threads was given.
6755 if test "${enable_threads+set}" = set; then
6756 enableval="$enable_threads"
6757
6758 else
6759 enable_threads=''
6760 fi;
6761
6762 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6763 if test "${enable_objc_gc+set}" = set; then
6764 enableval="$enable_objc_gc"
6765 if test x$enable_objc_gc = xno; then
6766 objc_boehm_gc=''
6767 else
6768 objc_boehm_gc=1
6769 fi
6770 else
6771 objc_boehm_gc=''
6772 fi;
6773
6774
6775 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6776 if test "${with_dwarf2+set}" = set; then
6777 withval="$with_dwarf2"
6778 dwarf2="$with_dwarf2"
6779 else
6780 dwarf2=no
6781 fi;
6782
6783 # Check whether --enable-shared or --disable-shared was given.
6784 if test "${enable_shared+set}" = set; then
6785 enableval="$enable_shared"
6786
6787 case $enable_shared in
6788 yes | no) ;;
6789 *)
6790 enable_shared=no
6791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6792 for pkg in $enableval; do
6793 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6794 enable_shared=yes
6795 fi
6796 done
6797 IFS="$ac_save_ifs"
6798 ;;
6799 esac
6800
6801 else
6802 enable_shared=yes
6803 fi;
6804
6805
6806
6807 # Check whether --with-sysroot or --without-sysroot was given.
6808 if test "${with_sysroot+set}" = set; then
6809 withval="$with_sysroot"
6810
6811 case ${with_sysroot} in
6812 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6813 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6814 esac
6815
6816 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6817 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6818
6819 if test "x$exec_prefix" = xNONE; then
6820 if test "x$prefix" = xNONE; then
6821 test_prefix=/usr/local
6822 else
6823 test_prefix=$prefix
6824 fi
6825 else
6826 test_prefix=$exec_prefix
6827 fi
6828 case ${TARGET_SYSTEM_ROOT} in
6829 "${test_prefix}"|"${test_prefix}/"*|\
6830 '${exec_prefix}'|'${exec_prefix}/'*)
6831 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6832 TARGET_SYSTEM_ROOT_DEFINE="$t"
6833 ;;
6834 esac
6835
6836 else
6837
6838 TARGET_SYSTEM_ROOT=
6839 TARGET_SYSTEM_ROOT_DEFINE=
6840 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6841
6842 fi;
6843
6844
6845
6846
6847 # Build with intermodule optimisations
6848 # Check whether --enable-intermodule or --disable-intermodule was given.
6849 if test "${enable_intermodule+set}" = set; then
6850 enableval="$enable_intermodule"
6851 case ${enable_intermodule} in
6852 yes) onestep="-onestep";;
6853 *) onestep="";;
6854 esac
6855 else
6856 onestep=""
6857 fi;
6858
6859
6860 # Sanity check enable_languages in case someone does not run the toplevel
6861 # configure # script.
6862 # Check whether --enable-languages or --disable-languages was given.
6863 if test "${enable_languages+set}" = set; then
6864 enableval="$enable_languages"
6865 case ,${enable_languages}, in
6866 ,,|,yes,)
6867 # go safe -- we cannot be much sure without the toplevel
6868 # configure's
6869 # analysis of which target libs are present and usable
6870 enable_languages=c
6871 ;;
6872 *,all,*)
6873 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6874 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6875 { (exit 1); exit 1; }; }
6876 ;;
6877 *,c,*)
6878 ;;
6879 *)
6880 enable_languages=c,${enable_languages}
6881 ;;
6882 esac
6883 else
6884 enable_languages=c
6885 fi;
6886
6887 subdirs=
6888 for lang in ${srcdir}/*/config-lang.in
6889 do
6890 case $lang in
6891 # The odd quoting in the next line works around
6892 # an apparent bug in bash 1.12 on linux.
6893 ${srcdir}/[*]/config-lang.in) ;;
6894 *)
6895 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6896 if test "x$lang_alias" = x
6897 then
6898 echo "$lang doesn't set \$language." 1>&2
6899 exit 1
6900 fi
6901 case ",$enable_languages," in
6902 *,$lang_alias,*)
6903 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6904 esac
6905 ;;
6906 esac
6907 done
6908
6909
6910 # -------------------------
6911 # Checks for other programs
6912 # -------------------------
6913
6914 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6915 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6916 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6917 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 cat >conftest.make <<\_ACEOF
6921 all:
6922 @echo 'ac_maketemp="$(MAKE)"'
6923 _ACEOF
6924 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6925 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6926 if test -n "$ac_maketemp"; then
6927 eval ac_cv_prog_make_${ac_make}_set=yes
6928 else
6929 eval ac_cv_prog_make_${ac_make}_set=no
6930 fi
6931 rm -f conftest.make
6932 fi
6933 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6934 echo "$as_me:$LINENO: result: yes" >&5
6935 echo "${ECHO_T}yes" >&6
6936 SET_MAKE=
6937 else
6938 echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6
6940 SET_MAKE="MAKE=${MAKE-make}"
6941 fi
6942
6943
6944 # Find some useful tools
6945 for ac_prog in gawk mawk nawk awk
6946 do
6947 # Extract the first word of "$ac_prog", so it can be a program name with args.
6948 set dummy $ac_prog; ac_word=$2
6949 echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6951 if test "${ac_cv_prog_AWK+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 if test -n "$AWK"; then
6955 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_AWK="$ac_prog"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968 done
6969 done
6970
6971 fi
6972 fi
6973 AWK=$ac_cv_prog_AWK
6974 if test -n "$AWK"; then
6975 echo "$as_me:$LINENO: result: $AWK" >&5
6976 echo "${ECHO_T}$AWK" >&6
6977 else
6978 echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6
6980 fi
6981
6982 test -n "$AWK" && break
6983 done
6984
6985 # We need awk to create options.c and options.h.
6986 # Bail out if it's missing.
6987 case ${AWK} in
6988 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
6989 echo "$as_me: error: can't build without awk, bailing out" >&2;}
6990 { (exit 1); exit 1; }; } ;;
6991 esac
6992
6993 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6994 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6995 if test "${gcc_cv_prog_LN_S+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 rm -f conftestdata_t
6999 echo >conftestdata_f
7000 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7001 then
7002 gcc_cv_prog_LN_S="ln -s"
7003 else
7004 if ln conftestdata_f conftestdata_t 2>/dev/null
7005 then
7006 gcc_cv_prog_LN_S=ln
7007 else
7008 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7009 then
7010 gcc_cv_prog_LN_S="cp -p"
7011 else
7012 gcc_cv_prog_LN_S=cp
7013 fi
7014 fi
7015 fi
7016 rm -f conftestdata_f conftestdata_t
7017
7018 fi
7019 LN_S="$gcc_cv_prog_LN_S"
7020 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7021 echo "$as_me:$LINENO: result: yes" >&5
7022 echo "${ECHO_T}yes" >&6
7023 else
7024 if test "$gcc_cv_prog_LN_S" = "ln"; then
7025 echo "$as_me:$LINENO: result: no, using ln" >&5
7026 echo "${ECHO_T}no, using ln" >&6
7027 else
7028 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7029 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7030 fi
7031 fi
7032
7033 echo "$as_me:$LINENO: checking whether ln works" >&5
7034 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7035 if test "${acx_cv_prog_LN+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 rm -f conftestdata_t
7039 echo >conftestdata_f
7040 if ln conftestdata_f conftestdata_t 2>/dev/null
7041 then
7042 acx_cv_prog_LN=ln
7043 else
7044 acx_cv_prog_LN=no
7045 fi
7046 rm -f conftestdata_f conftestdata_t
7047
7048 fi
7049 if test $acx_cv_prog_LN = no; then
7050 LN="$LN_S"
7051 echo "$as_me:$LINENO: result: no, using $LN" >&5
7052 echo "${ECHO_T}no, using $LN" >&6
7053 else
7054 LN="$acx_cv_prog_LN"
7055 echo "$as_me:$LINENO: result: yes" >&5
7056 echo "${ECHO_T}yes" >&6
7057 fi
7058
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7062 echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7064 if test "${ac_cv_prog_RANLIB+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 if test -n "$RANLIB"; then
7068 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081 done
7082 done
7083
7084 fi
7085 fi
7086 RANLIB=$ac_cv_prog_RANLIB
7087 if test -n "$RANLIB"; then
7088 echo "$as_me:$LINENO: result: $RANLIB" >&5
7089 echo "${ECHO_T}$RANLIB" >&6
7090 else
7091 echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6
7093 fi
7094
7095 fi
7096 if test -z "$ac_cv_prog_RANLIB"; then
7097 ac_ct_RANLIB=$RANLIB
7098 # Extract the first word of "ranlib", so it can be a program name with args.
7099 set dummy ranlib; ac_word=$2
7100 echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7102 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 if test -n "$ac_ct_RANLIB"; then
7106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_ac_ct_RANLIB="ranlib"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119 done
7120 done
7121
7122 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7123 fi
7124 fi
7125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7126 if test -n "$ac_ct_RANLIB"; then
7127 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7128 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7129 else
7130 echo "$as_me:$LINENO: result: no" >&5
7131 echo "${ECHO_T}no" >&6
7132 fi
7133
7134 RANLIB=$ac_ct_RANLIB
7135 else
7136 RANLIB="$ac_cv_prog_RANLIB"
7137 fi
7138
7139 case "${host}" in
7140 *-*-darwin*)
7141 # By default, the Darwin ranlib will not treat common symbols as
7142 # definitions when building the archive table of contents. Other
7143 # ranlibs do that; pass an option to the Darwin ranlib that makes
7144 # it behave similarly.
7145 ranlib_flags="-c"
7146 ;;
7147 *)
7148 ranlib_flags=""
7149 esac
7150
7151
7152 # Find a good install program. We prefer a C program (faster),
7153 # so one script is as good as another. But avoid the broken or
7154 # incompatible versions:
7155 # SysV /etc/install, /usr/sbin/install
7156 # SunOS /usr/etc/install
7157 # IRIX /sbin/install
7158 # AIX /bin/install
7159 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7160 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7161 # ./install, which can be erroneously created by make from ./install.sh.
7162 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7163 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7164 if test -z "$INSTALL"; then
7165 if test "${ac_cv_path_install+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7169 for ac_dir in $PATH; do
7170 # Account for people who put trailing slashes in PATH elements.
7171 case "$ac_dir/" in
7172 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7173 *)
7174 # OSF1 and SCO ODT 3.0 have their own names for install.
7175 for ac_prog in ginstall scoinst install; do
7176 if test -f $ac_dir/$ac_prog; then
7177 if test $ac_prog = install &&
7178 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7179 # AIX install. It has an incompatible calling convention.
7180 # OSF/1 installbsd also uses dspmsg, but is usable.
7181 :
7182 else
7183 ac_cv_path_install="$ac_dir/$ac_prog -c"
7184 break 2
7185 fi
7186 fi
7187 done
7188 ;;
7189 esac
7190 done
7191 IFS="$ac_save_IFS"
7192
7193 fi
7194 if test "${ac_cv_path_install+set}" = set; then
7195 INSTALL="$ac_cv_path_install"
7196 else
7197 # As a last resort, use the slow shell script. We don't cache a
7198 # path for INSTALL within a source directory, because that will
7199 # break other packages using the cache if that directory is
7200 # removed, or if the path is relative.
7201 INSTALL="$ac_install_sh"
7202 fi
7203 fi
7204 echo "$as_me:$LINENO: result: $INSTALL" >&5
7205 echo "${ECHO_T}$INSTALL" >&6
7206
7207 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7208 # It thinks the first close brace ends the variable substitution.
7209 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7210
7211 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7212
7213
7214 # See if cmp has --ignore-initial.
7215 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7216 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7217 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 echo abfoo >t1
7221 echo cdfoo >t2
7222 gcc_cv_prog_cmp_skip=slowcompare
7223 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7224 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7225 :
7226 else
7227 gcc_cv_prog_cmp_skip=gnucompare
7228 fi
7229 fi
7230 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7231 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7232 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7233 :
7234 else
7235 gcc_cv_prog_cmp_skip=fastcompare
7236 fi
7237 fi
7238 fi
7239 rm t1 t2
7240
7241 fi
7242 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7243 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7244 make_compare_target=$gcc_cv_prog_cmp_skip
7245
7246
7247
7248 # See if we have the mktemp command.
7249 # Extract the first word of "mktemp", so it can be a program name with args.
7250 set dummy mktemp; ac_word=$2
7251 echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7253 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256 if test -n "$have_mktemp_command"; then
7257 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_have_mktemp_command="yes"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270 done
7271 done
7272
7273 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7274 fi
7275 fi
7276 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7277 if test -n "$have_mktemp_command"; then
7278 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7279 echo "${ECHO_T}$have_mktemp_command" >&6
7280 else
7281 echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7283 fi
7284
7285
7286 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7287
7288 # See if makeinfo has been installed and is modern enough
7289 # that we can use it.
7290 # Extract the first word of "makeinfo", so it can be a program name with args.
7291 set dummy makeinfo; ac_word=$2
7292 echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7294 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 if test -n "$MAKEINFO"; then
7298 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_MAKEINFO="makeinfo"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7310 fi
7311 done
7312 done
7313
7314 fi
7315 fi
7316 MAKEINFO=$ac_cv_prog_MAKEINFO
7317 if test -n "$MAKEINFO"; then
7318 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7319 echo "${ECHO_T}$MAKEINFO" >&6
7320 else
7321 echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7323 fi
7324
7325 if test -n "$MAKEINFO"; then
7326 # Found it, now check the version.
7327 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7328 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7329 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332 ac_prog_version=`$MAKEINFO --version 2>&1 |
7333 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7334 echo "configure:7334: version of makeinfo is $ac_prog_version" >&5
7335 case $ac_prog_version in
7336 '') gcc_cv_prog_makeinfo_modern=no;;
7337 4.[2-9]*)
7338 gcc_cv_prog_makeinfo_modern=yes;;
7339 *) gcc_cv_prog_makeinfo_modern=no;;
7340 esac
7341
7342 fi
7343 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7344 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7345 else
7346 gcc_cv_prog_makeinfo_modern=no
7347 fi
7348
7349 if test $gcc_cv_prog_makeinfo_modern = no; then
7350 MAKEINFO="$MISSING makeinfo"
7351 { echo "$as_me:$LINENO: WARNING:
7352 *** Makeinfo is missing or too old.
7353 *** Info documentation will not be built." >&5
7354 echo "$as_me: WARNING:
7355 *** Makeinfo is missing or too old.
7356 *** Info documentation will not be built." >&2;}
7357 BUILD_INFO=
7358 else
7359 BUILD_INFO=info
7360 fi
7361
7362
7363 # Is pod2man recent enough to regenerate manpages?
7364 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7365 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7366 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7367 echo "$as_me:$LINENO: result: yes" >&5
7368 echo "${ECHO_T}yes" >&6
7369 GENERATED_MANPAGES=generated-manpages
7370 else
7371 echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7373 GENERATED_MANPAGES=
7374 fi
7375
7376
7377 # How about lex?
7378 for ac_prog in flex
7379 do
7380 # Extract the first word of "$ac_prog", so it can be a program name with args.
7381 set dummy $ac_prog; ac_word=$2
7382 echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7384 if test "${ac_cv_prog_FLEX+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 if test -n "$FLEX"; then
7388 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_FLEX="$ac_prog"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401 done
7402 done
7403
7404 fi
7405 fi
7406 FLEX=$ac_cv_prog_FLEX
7407 if test -n "$FLEX"; then
7408 echo "$as_me:$LINENO: result: $FLEX" >&5
7409 echo "${ECHO_T}$FLEX" >&6
7410 else
7411 echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7413 fi
7414
7415 test -n "$FLEX" && break
7416 done
7417 test -n "$FLEX" || FLEX="$MISSING flex"
7418
7419
7420 # Bison?
7421 for ac_prog in bison
7422 do
7423 # Extract the first word of "$ac_prog", so it can be a program name with args.
7424 set dummy $ac_prog; ac_word=$2
7425 echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7427 if test "${ac_cv_prog_BISON+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430 if test -n "$BISON"; then
7431 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_BISON="$ac_prog"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7443 fi
7444 done
7445 done
7446
7447 fi
7448 fi
7449 BISON=$ac_cv_prog_BISON
7450 if test -n "$BISON"; then
7451 echo "$as_me:$LINENO: result: $BISON" >&5
7452 echo "${ECHO_T}$BISON" >&6
7453 else
7454 echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6
7456 fi
7457
7458 test -n "$BISON" && break
7459 done
7460 test -n "$BISON" || BISON="$MISSING bison"
7461
7462
7463 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7464 # check for build == host before using them.
7465
7466 # NM
7467 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7468 && test -d ../binutils ; then
7469 NM='$(objdir)/../binutils/nm-new'
7470 else
7471 # Extract the first word of "nm", so it can be a program name with args.
7472 set dummy nm; ac_word=$2
7473 echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7475 if test "${ac_cv_prog_NM+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478 if test -n "$NM"; then
7479 ac_cv_prog_NM="$NM" # Let the user override the test.
7480 else
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_NM="nm"
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492 done
7493 done
7494
7495 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7496 fi
7497 fi
7498 NM=$ac_cv_prog_NM
7499 if test -n "$NM"; then
7500 echo "$as_me:$LINENO: result: $NM" >&5
7501 echo "${ECHO_T}$NM" >&6
7502 else
7503 echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6
7505 fi
7506
7507 fi
7508
7509 # AR
7510 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7511 && test -d ../binutils ; then
7512 AR='$(objdir)/../binutils/ar'
7513 else
7514 # Extract the first word of "ar", so it can be a program name with args.
7515 set dummy ar; ac_word=$2
7516 echo "$as_me:$LINENO: checking for $ac_word" >&5
7517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7518 if test "${ac_cv_prog_AR+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521 if test -n "$AR"; then
7522 ac_cv_prog_AR="$AR" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_AR="ar"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535 done
7536 done
7537
7538 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7539 fi
7540 fi
7541 AR=$ac_cv_prog_AR
7542 if test -n "$AR"; then
7543 echo "$as_me:$LINENO: result: $AR" >&5
7544 echo "${ECHO_T}$AR" >&6
7545 else
7546 echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7548 fi
7549
7550 fi
7551
7552
7553 # --------------------
7554 # Checks for C headers
7555 # --------------------
7556
7557 echo "$as_me:$LINENO: checking for GNU C library" >&5
7558 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7559 if test "${gcc_cv_glibc+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <features.h>
7569 int
7570 main ()
7571 {
7572
7573 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7574 #error Not a GNU C library system
7575 #endif
7576 ;
7577 return 0;
7578 }
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582 (eval $ac_compile) 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 (eval $ac_try) 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; } &&
7595 { ac_try='test -s conftest.$ac_objext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 (eval $ac_try) 2>&5
7598 ac_status=$?
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 gcc_cv_glibc=yes
7602 else
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7605
7606 gcc_cv_glibc=no
7607 fi
7608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7609 fi
7610
7611 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7612 echo "${ECHO_T}$gcc_cv_glibc" >&6
7613 if test $gcc_cv_glibc = yes; then
7614
7615 cat >>confdefs.h <<\_ACEOF
7616 #define _GNU_SOURCE 1
7617 _ACEOF
7618
7619 fi
7620
7621 # Need to reject headers which give warnings, so that the -Werror bootstrap
7622 # works later. *sigh* This needs to come before all header checks.
7623
7624 ac_c_preproc_warn_flag=yes
7625
7626 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7627 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7628 if test "${ac_cv_header_stdc+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631 cat >conftest.$ac_ext <<_ACEOF
7632 /* confdefs.h. */
7633 _ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7637 #include <stdlib.h>
7638 #include <stdarg.h>
7639 #include <string.h>
7640 #include <float.h>
7641
7642 int
7643 main ()
7644 {
7645
7646 ;
7647 return 0;
7648 }
7649 _ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>conftest.er1
7653 ac_status=$?
7654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
7659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; } &&
7665 { ac_try='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_cv_header_stdc=yes
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7675
7676 ac_cv_header_stdc=no
7677 fi
7678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7679
7680 if test $ac_cv_header_stdc = yes; then
7681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 #include <string.h>
7689
7690 _ACEOF
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 $EGREP "memchr" >/dev/null 2>&1; then
7693 :
7694 else
7695 ac_cv_header_stdc=no
7696 fi
7697 rm -f conftest*
7698
7699 fi
7700
7701 if test $ac_cv_header_stdc = yes; then
7702 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7703 cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h. */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 #include <stdlib.h>
7710
7711 _ACEOF
7712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7713 $EGREP "free" >/dev/null 2>&1; then
7714 :
7715 else
7716 ac_cv_header_stdc=no
7717 fi
7718 rm -f conftest*
7719
7720 fi
7721
7722 if test $ac_cv_header_stdc = yes; then
7723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7724 if test "$cross_compiling" = yes; then
7725 :
7726 else
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7733 #include <ctype.h>
7734 #if ((' ' & 0x0FF) == 0x020)
7735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7737 #else
7738 # define ISLOWER(c) \
7739 (('a' <= (c) && (c) <= 'i') \
7740 || ('j' <= (c) && (c) <= 'r') \
7741 || ('s' <= (c) && (c) <= 'z'))
7742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7743 #endif
7744
7745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7746 int
7747 main ()
7748 {
7749 int i;
7750 for (i = 0; i < 256; i++)
7751 if (XOR (islower (i), ISLOWER (i))
7752 || toupper (i) != TOUPPER (i))
7753 exit(2);
7754 exit (0);
7755 }
7756 _ACEOF
7757 rm -f conftest$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 :
7769 else
7770 echo "$as_me: program exited with status $ac_status" >&5
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 ( exit $ac_status )
7775 ac_cv_header_stdc=no
7776 fi
7777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7778 fi
7779 fi
7780 fi
7781 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7782 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7783 if test $ac_cv_header_stdc = yes; then
7784
7785 cat >>confdefs.h <<\_ACEOF
7786 #define STDC_HEADERS 1
7787 _ACEOF
7788
7789 fi
7790
7791 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7792 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7793 if test "${ac_cv_header_time+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h. */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 #include <sys/types.h>
7803 #include <sys/time.h>
7804 #include <time.h>
7805
7806 int
7807 main ()
7808 {
7809 if ((struct tm *) 0)
7810 return 0;
7811 ;
7812 return 0;
7813 }
7814 _ACEOF
7815 rm -f conftest.$ac_objext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7817 (eval $ac_compile) 2>conftest.er1
7818 ac_status=$?
7819 grep -v '^ *+' conftest.er1 >conftest.err
7820 rm -f conftest.er1
7821 cat conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest.$ac_objext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_header_time=yes
7837 else
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7840
7841 ac_cv_header_time=no
7842 fi
7843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7844 fi
7845 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7846 echo "${ECHO_T}$ac_cv_header_time" >&6
7847 if test $ac_cv_header_time = yes; then
7848
7849 cat >>confdefs.h <<\_ACEOF
7850 #define TIME_WITH_SYS_TIME 1
7851 _ACEOF
7852
7853 fi
7854
7855 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7856 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7857 if test "${gcc_cv_header_string+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860 cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h. */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 #include <string.h>
7867 #include <strings.h>
7868 int
7869 main ()
7870 {
7871
7872 ;
7873 return 0;
7874 }
7875 _ACEOF
7876 rm -f conftest.$ac_objext
7877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7878 (eval $ac_compile) 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 (eval $ac_try) 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try='test -s conftest.$ac_objext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 gcc_cv_header_string=yes
7898 else
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7901
7902 gcc_cv_header_string=no
7903 fi
7904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7905 fi
7906 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7907 echo "${ECHO_T}$gcc_cv_header_string" >&6
7908 if test $gcc_cv_header_string = yes; then
7909
7910 cat >>confdefs.h <<\_ACEOF
7911 #define STRING_WITH_STRINGS 1
7912 _ACEOF
7913
7914 fi
7915
7916 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7917 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7918 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 #include <sys/types.h>
7928 #include <sys/wait.h>
7929 #ifndef WEXITSTATUS
7930 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7931 #endif
7932 #ifndef WIFEXITED
7933 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7934 #endif
7935
7936 int
7937 main ()
7938 {
7939 int s;
7940 wait (&s);
7941 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7942 ;
7943 return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948 (eval $ac_compile) 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_header_sys_wait_h=yes
7968 else
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972 ac_cv_header_sys_wait_h=no
7973 fi
7974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7975 fi
7976 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7977 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7978 if test $ac_cv_header_sys_wait_h = yes; then
7979
7980 cat >>confdefs.h <<\_ACEOF
7981 #define HAVE_SYS_WAIT_H 1
7982 _ACEOF
7983
7984 fi
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8009 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8010 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8011 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8012 do
8013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8014 echo "$as_me:$LINENO: checking for $ac_header" >&5
8015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h. */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <$ac_header>
8026 _ACEOF
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } >/dev/null; then
8035 if test -s conftest.err; then
8036 ac_cpp_err=$ac_c_preproc_warn_flag
8037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8038 else
8039 ac_cpp_err=
8040 fi
8041 else
8042 ac_cpp_err=yes
8043 fi
8044 if test -z "$ac_cpp_err"; then
8045 eval "$as_ac_Header=yes"
8046 else
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050 eval "$as_ac_Header=no"
8051 fi
8052 rm -f conftest.err conftest.$ac_ext
8053 fi
8054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8057 cat >>confdefs.h <<_ACEOF
8058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8059 _ACEOF
8060
8061 fi
8062 done
8063
8064
8065 # Check for thread headers.
8066 echo "$as_me:$LINENO: checking for thread.h" >&5
8067 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8068 if test "${ac_cv_header_thread_h+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #include <thread.h>
8078 _ACEOF
8079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } >/dev/null; then
8087 if test -s conftest.err; then
8088 ac_cpp_err=$ac_c_preproc_warn_flag
8089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8090 else
8091 ac_cpp_err=
8092 fi
8093 else
8094 ac_cpp_err=yes
8095 fi
8096 if test -z "$ac_cpp_err"; then
8097 ac_cv_header_thread_h=yes
8098 else
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 ac_cv_header_thread_h=no
8103 fi
8104 rm -f conftest.err conftest.$ac_ext
8105 fi
8106 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8107 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8108 if test $ac_cv_header_thread_h = yes; then
8109 have_thread_h=yes
8110 else
8111 have_thread_h=
8112 fi
8113
8114 echo "$as_me:$LINENO: checking for pthread.h" >&5
8115 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8116 if test "${ac_cv_header_pthread_h+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 #include <pthread.h>
8126 _ACEOF
8127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } >/dev/null; then
8135 if test -s conftest.err; then
8136 ac_cpp_err=$ac_c_preproc_warn_flag
8137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8138 else
8139 ac_cpp_err=
8140 fi
8141 else
8142 ac_cpp_err=yes
8143 fi
8144 if test -z "$ac_cpp_err"; then
8145 ac_cv_header_pthread_h=yes
8146 else
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 ac_cv_header_pthread_h=no
8151 fi
8152 rm -f conftest.err conftest.$ac_ext
8153 fi
8154 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8155 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8156 if test $ac_cv_header_pthread_h = yes; then
8157 have_pthread_h=yes
8158 else
8159 have_pthread_h=
8160 fi
8161
8162
8163 # These tests can't be done till we know if we have limits.h.
8164 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8165 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8166 if test "${gcc_cv_decl_char_bit+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h. */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 #ifdef HAVE_LIMITS_H
8176 #include <limits.h>
8177 #endif
8178 #ifdef CHAR_BIT
8179 found
8180 #endif
8181 _ACEOF
8182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8183 $EGREP "found" >/dev/null 2>&1; then
8184 gcc_cv_decl_char_bit=yes
8185 else
8186 gcc_cv_decl_char_bit=no
8187 fi
8188 rm -f conftest*
8189
8190
8191 fi
8192 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8193 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8194 if test $gcc_cv_decl_char_bit = no; then
8195 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8196 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8197 if test "${gcc_cv_c_nbby+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200 i=8
8201 gcc_cv_c_nbby=
8202 while test $i -lt 65; do
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209
8210 int
8211 main ()
8212 {
8213 switch(0) {
8214 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8215 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8216 ; }
8217 ;
8218 return 0;
8219 }
8220 _ACEOF
8221 rm -f conftest.$ac_objext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8223 (eval $ac_compile) 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 (eval $ac_try) 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; } &&
8236 { ac_try='test -s conftest.$ac_objext'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 (eval $ac_try) 2>&5
8239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8242 gcc_cv_c_nbby=$i; break
8243 else
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247 fi
8248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8249 i=`expr $i + 1`
8250 done
8251 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8252
8253 fi
8254 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8255 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8256 if test $gcc_cv_c_nbby = failed; then
8257 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8258 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8259 { (exit 1); exit 1; }; }
8260 else
8261
8262 cat >>confdefs.h <<_ACEOF
8263 #define CHAR_BIT $gcc_cv_c_nbby
8264 _ACEOF
8265
8266 fi
8267 fi
8268 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8269 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8270 if test "${ac_cv_c_bigendian+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273 ac_cv_c_bigendian=unknown
8274 # See if sys/param.h defines the BYTE_ORDER macro.
8275 cat >conftest.$ac_ext <<_ACEOF
8276 /* confdefs.h. */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 #include <sys/types.h>
8282 #include <sys/param.h>
8283 int
8284 main ()
8285 {
8286
8287 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8288 bogus endian macros
8289 #endif
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8296 (eval $ac_compile) 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 (eval $ac_try) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 # It does; now see whether it defined to BIG_ENDIAN or not.
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h. */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <sys/types.h>
8323 #include <sys/param.h>
8324 int
8325 main ()
8326 {
8327
8328 #if BYTE_ORDER != BIG_ENDIAN
8329 not big endian
8330 #endif
8331 ;
8332 return 0;
8333 }
8334 _ACEOF
8335 rm -f conftest.$ac_objext
8336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8337 (eval $ac_compile) 2>conftest.er1
8338 ac_status=$?
8339 grep -v '^ *+' conftest.er1 >conftest.err
8340 rm -f conftest.er1
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_c_bigendian=yes
8357 else
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361 ac_cv_c_bigendian=no
8362 fi
8363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8364 else
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8367
8368 fi
8369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8370 if test $ac_cv_c_bigendian = unknown; then
8371 if test "$cross_compiling" = yes; then
8372 echo $ac_n "cross-compiling... " 2>&6
8373 else
8374 cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h. */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 main () {
8381 /* Are we little or big endian? From Harbison&Steele. */
8382 union
8383 {
8384 long l;
8385 char c[sizeof (long)];
8386 } u;
8387 u.l = 1;
8388 exit (u.c[sizeof (long) - 1] == 1);
8389 }
8390 _ACEOF
8391 rm -f conftest$ac_exeext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393 (eval $ac_link) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 (eval $ac_try) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_cv_c_bigendian=no
8403 else
8404 echo "$as_me: program exited with status $ac_status" >&5
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408 ( exit $ac_status )
8409 ac_cv_c_bigendian=yes
8410 fi
8411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8412 fi
8413 fi
8414 fi
8415 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8416 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8417 if test $ac_cv_c_bigendian = unknown; then
8418 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8419 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8420
8421 cat >conftest.c <<EOF
8422 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8423 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8424 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8425 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8426 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8427 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8428 int main() { _ascii (); _ebcdic (); return 0; }
8429 EOF
8430 if test -f conftest.c ; then
8431 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8432 if test `grep -l BIGenDianSyS conftest.o` ; then
8433 echo $ac_n ' big endian probe OK, ' 1>&6
8434 ac_cv_c_bigendian=yes
8435 fi
8436 if test `grep -l LiTTleEnDian conftest.o` ; then
8437 echo $ac_n ' little endian probe OK, ' 1>&6
8438 if test $ac_cv_c_bigendian = yes ; then
8439 ac_cv_c_bigendian=unknown;
8440 else
8441 ac_cv_c_bigendian=no
8442 fi
8443 fi
8444 echo $ac_n 'guessing bigendian ... ' >&6
8445 fi
8446 fi
8447 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8448 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8449 fi
8450 if test $ac_cv_c_bigendian = yes; then
8451
8452 cat >>confdefs.h <<\_ACEOF
8453 #define WORDS_BIGENDIAN 1
8454 _ACEOF
8455
8456
8457 cat >>confdefs.h <<\_ACEOF
8458 #define HOST_WORDS_BIG_ENDIAN 1
8459 _ACEOF
8460
8461 BYTEORDER=4321
8462 else
8463 BYTEORDER=1234
8464 fi
8465
8466 cat >>confdefs.h <<_ACEOF
8467 #define BYTEORDER $BYTEORDER
8468 _ACEOF
8469
8470 if test $ac_cv_c_bigendian = unknown; then
8471 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8472 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8473 { (exit 1); exit 1; }; }
8474 fi
8475
8476
8477 # --------
8478 # UNSORTED
8479 # --------
8480
8481 # Stage specific cflags for build.
8482 stage1_cflags=
8483 case $build in
8484 vax-*-*)
8485 if test x$GCC = xyes
8486 then
8487 stage1_cflags="-Wa,-J"
8488 else
8489 stage1_cflags="-J"
8490 fi
8491 ;;
8492 powerpc-*-darwin*)
8493 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8494 # sources; use -no-cpp-precomp to get to GNU cpp.
8495 # Apple's GCC has bugs in designated initializer handling, so disable
8496 # that too.
8497 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8498 ;;
8499 esac
8500
8501
8502 # These libraries may be used by collect2.
8503 # We may need a special search path to get them linked.
8504 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8505 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8506 if test "${gcc_cv_collect2_libs+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509 save_LIBS="$LIBS"
8510 for libs in '' -lld -lmld \
8511 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8512 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8513 do
8514 LIBS="$libs"
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h. */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521
8522 /* Override any gcc2 internal prototype to avoid an error. */
8523 #ifdef __cplusplus
8524 extern "C"
8525 #endif
8526 /* We use char because int might match the return type of a gcc2
8527 builtin and then its argument prototype would still apply. */
8528 char ldopen ();
8529 int
8530 main ()
8531 {
8532 ldopen ();
8533 ;
8534 return 0;
8535 }
8536 _ACEOF
8537 rm -f conftest.$ac_objext conftest$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539 (eval $ac_link) 2>conftest.er1
8540 ac_status=$?
8541 grep -v '^ *+' conftest.er1 >conftest.err
8542 rm -f conftest.er1
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } &&
8546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 (eval $ac_try) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try='test -s conftest$ac_exeext'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 gcc_cv_collect2_libs="$libs"; break
8559 else
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563 fi
8564 rm -f conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
8566 done
8567 LIBS="$save_LIBS"
8568 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8569 fi
8570 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8571 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8572 case $gcc_cv_collect2_libs in
8573 "none required") ;;
8574 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8575 esac
8576
8577
8578 # When building Ada code on Alpha, we need exc_resume which is usually in
8579 # -lexc. So test for it.
8580 save_LIBS="$LIBS"
8581 LIBS=
8582 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8583 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8584 if test "${ac_cv_search_exc_resume+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587 ac_func_search_save_LIBS=$LIBS
8588 ac_cv_search_exc_resume=no
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h. */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595
8596 /* Override any gcc2 internal prototype to avoid an error. */
8597 #ifdef __cplusplus
8598 extern "C"
8599 #endif
8600 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8602 char exc_resume ();
8603 int
8604 main ()
8605 {
8606 exc_resume ();
8607 ;
8608 return 0;
8609 }
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>conftest.er1
8614 ac_status=$?
8615 grep -v '^ *+' conftest.er1 >conftest.err
8616 rm -f conftest.er1
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 (eval $ac_try) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try='test -s conftest$ac_exeext'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 (eval $ac_try) 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 ac_cv_search_exc_resume="none required"
8633 else
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 fi
8638 rm -f conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 if test "$ac_cv_search_exc_resume" = no; then
8641 for ac_lib in exc; do
8642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h. */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649
8650 /* Override any gcc2 internal prototype to avoid an error. */
8651 #ifdef __cplusplus
8652 extern "C"
8653 #endif
8654 /* We use char because int might match the return type of a gcc2
8655 builtin and then its argument prototype would still apply. */
8656 char exc_resume ();
8657 int
8658 main ()
8659 {
8660 exc_resume ();
8661 ;
8662 return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try='test -s conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_cv_search_exc_resume="-l$ac_lib"
8687 break
8688 else
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 fi
8693 rm -f conftest.err conftest.$ac_objext \
8694 conftest$ac_exeext conftest.$ac_ext
8695 done
8696 fi
8697 LIBS=$ac_func_search_save_LIBS
8698 fi
8699 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8700 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8701 if test "$ac_cv_search_exc_resume" != no; then
8702 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8703
8704 fi
8705
8706 GNAT_LIBEXC="$LIBS"
8707 LIBS="$save_LIBS"
8708
8709
8710 # Some systems put ldexp and frexp in libm instead of libc; assume
8711 # they're both in the same place. jcf-dump needs them.
8712 save_LIBS="$LIBS"
8713 LIBS=
8714 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8715 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8716 if test "${ac_cv_search_ldexp+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719 ac_func_search_save_LIBS=$LIBS
8720 ac_cv_search_ldexp=no
8721 cat >conftest.$ac_ext <<_ACEOF
8722 /* confdefs.h. */
8723 _ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8727
8728 /* Override any gcc2 internal prototype to avoid an error. */
8729 #ifdef __cplusplus
8730 extern "C"
8731 #endif
8732 /* We use char because int might match the return type of a gcc2
8733 builtin and then its argument prototype would still apply. */
8734 char ldexp ();
8735 int
8736 main ()
8737 {
8738 ldexp ();
8739 ;
8740 return 0;
8741 }
8742 _ACEOF
8743 rm -f conftest.$ac_objext conftest$ac_exeext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8745 (eval $ac_link) 2>conftest.er1
8746 ac_status=$?
8747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 (eval $ac_try) 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_search_ldexp="none required"
8765 else
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769 fi
8770 rm -f conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
8772 if test "$ac_cv_search_ldexp" = no; then
8773 for ac_lib in m; do
8774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8775 cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h. */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781
8782 /* Override any gcc2 internal prototype to avoid an error. */
8783 #ifdef __cplusplus
8784 extern "C"
8785 #endif
8786 /* We use char because int might match the return type of a gcc2
8787 builtin and then its argument prototype would still apply. */
8788 char ldexp ();
8789 int
8790 main ()
8791 {
8792 ldexp ();
8793 ;
8794 return 0;
8795 }
8796 _ACEOF
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8799 (eval $ac_link) 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 (eval $ac_try) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest$ac_exeext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 (eval $ac_try) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_cv_search_ldexp="-l$ac_lib"
8819 break
8820 else
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824 fi
8825 rm -f conftest.err conftest.$ac_objext \
8826 conftest$ac_exeext conftest.$ac_ext
8827 done
8828 fi
8829 LIBS=$ac_func_search_save_LIBS
8830 fi
8831 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8832 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8833 if test "$ac_cv_search_ldexp" != no; then
8834 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8835
8836 fi
8837
8838 LDEXP_LIB="$LIBS"
8839 LIBS="$save_LIBS"
8840
8841
8842 # Use <inttypes.h> only if it exists,
8843 # doesn't clash with <sys/types.h>, and declares intmax_t.
8844 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8845 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8846 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 else
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 #include <sys/types.h>
8856 #include <inttypes.h>
8857 int
8858 main ()
8859 {
8860 intmax_t i = -1;
8861 ;
8862 return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest.$ac_objext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8867 (eval $ac_compile) 2>conftest.er1
8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 (eval $ac_try) 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; } &&
8880 { ac_try='test -s conftest.$ac_objext'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 (eval $ac_try) 2>&5
8883 ac_status=$?
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; }; then
8886 gcc_cv_header_inttypes_h=yes
8887 else
8888 echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8890
8891 gcc_cv_header_inttypes_h=no
8892 fi
8893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8894 fi
8895
8896 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8897 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8898 if test $gcc_cv_header_inttypes_h = yes; then
8899
8900 cat >>confdefs.h <<\_ACEOF
8901 #define HAVE_INTTYPES_H 1
8902 _ACEOF
8903
8904 fi
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
8933 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8934 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8935 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8936 setlocale
8937 do
8938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8939 echo "$as_me:$LINENO: checking for $ac_func" >&5
8940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8941 if eval "test \"\${$as_ac_var+set}\" = set"; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944 cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h. */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8952 #define $ac_func innocuous_$ac_func
8953
8954 /* System header to define __stub macros and hopefully few prototypes,
8955 which can conflict with char $ac_func (); below.
8956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957 <limits.h> exists even on freestanding compilers. */
8958
8959 #ifdef __STDC__
8960 # include <limits.h>
8961 #else
8962 # include <assert.h>
8963 #endif
8964
8965 #undef $ac_func
8966
8967 /* Override any gcc2 internal prototype to avoid an error. */
8968 #ifdef __cplusplus
8969 extern "C"
8970 {
8971 #endif
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8974 char $ac_func ();
8975 /* The GNU C library defines this for functions which it implements
8976 to always fail with ENOSYS. Some functions are actually named
8977 something starting with __ and the normal name is an alias. */
8978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8979 choke me
8980 #else
8981 char (*f) () = $ac_func;
8982 #endif
8983 #ifdef __cplusplus
8984 }
8985 #endif
8986
8987 int
8988 main ()
8989 {
8990 return f != $ac_func;
8991 ;
8992 return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>conftest.er1
8998 ac_status=$?
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; } &&
9010 { ac_try='test -s conftest$ac_exeext'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 eval "$as_ac_var=yes"
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021 eval "$as_ac_var=no"
9022 fi
9023 rm -f conftest.err conftest.$ac_objext \
9024 conftest$ac_exeext conftest.$ac_ext
9025 fi
9026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9028 if test `eval echo '${'$as_ac_var'}'` = yes; then
9029 cat >>confdefs.h <<_ACEOF
9030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9031 _ACEOF
9032
9033 fi
9034 done
9035
9036
9037 if test x$ac_cv_func_mbstowcs = xyes; then
9038 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9039 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9040 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043 if test "$cross_compiling" = yes; then
9044 gcc_cv_func_mbstowcs_works=yes
9045 else
9046 cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h. */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 #include <stdlib.h>
9053 int main()
9054 {
9055 mbstowcs(0, "", 0);
9056 return 0;
9057 }
9058 _ACEOF
9059 rm -f conftest$ac_exeext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 gcc_cv_func_mbstowcs_works=yes
9071 else
9072 echo "$as_me: program exited with status $ac_status" >&5
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9075
9076 ( exit $ac_status )
9077 gcc_cv_func_mbstowcs_works=no
9078 fi
9079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9080 fi
9081 fi
9082 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9083 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9084 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9085
9086 cat >>confdefs.h <<\_ACEOF
9087 #define HAVE_WORKING_MBSTOWCS 1
9088 _ACEOF
9089
9090 fi
9091 fi
9092
9093 echo "$as_me:$LINENO: checking for ssize_t" >&5
9094 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9095 if test "${ac_cv_type_ssize_t+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h. */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 $ac_includes_default
9105 int
9106 main ()
9107 {
9108 if ((ssize_t *) 0)
9109 return 0;
9110 if (sizeof (ssize_t))
9111 return 0;
9112 ;
9113 return 0;
9114 }
9115 _ACEOF
9116 rm -f conftest.$ac_objext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9118 (eval $ac_compile) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_type_ssize_t=yes
9138 else
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 ac_cv_type_ssize_t=no
9143 fi
9144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9145 fi
9146 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9147 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9148 if test $ac_cv_type_ssize_t = yes; then
9149 :
9150 else
9151
9152 cat >>confdefs.h <<_ACEOF
9153 #define ssize_t int
9154 _ACEOF
9155
9156 fi
9157
9158
9159 # Try to determine the array type of the second argument of getgroups
9160 # for the target system (int or gid_t).
9161 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9162 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9163 if test "${ac_cv_type_uid_t+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166 cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h. */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 #include <sys/types.h>
9173
9174 _ACEOF
9175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9176 $EGREP "uid_t" >/dev/null 2>&1; then
9177 ac_cv_type_uid_t=yes
9178 else
9179 ac_cv_type_uid_t=no
9180 fi
9181 rm -f conftest*
9182
9183 fi
9184 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9185 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9186 if test $ac_cv_type_uid_t = no; then
9187
9188 cat >>confdefs.h <<\_ACEOF
9189 #define uid_t int
9190 _ACEOF
9191
9192
9193 cat >>confdefs.h <<\_ACEOF
9194 #define gid_t int
9195 _ACEOF
9196
9197 fi
9198
9199 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9200 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9201 if test "${ac_cv_type_getgroups+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204 if test "$cross_compiling" = yes; then
9205 ac_cv_type_getgroups=cross
9206 else
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h. */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 /* Thanks to Mike Rendell for this test. */
9214 #include <sys/types.h>
9215 #define NGID 256
9216 #undef MAX
9217 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9218
9219 int
9220 main ()
9221 {
9222 gid_t gidset[NGID];
9223 int i, n;
9224 union { gid_t gval; long lval; } val;
9225
9226 val.lval = -1;
9227 for (i = 0; i < NGID; i++)
9228 gidset[i] = val.gval;
9229 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9230 gidset);
9231 /* Exit non-zero if getgroups seems to require an array of ints. This
9232 happens when gid_t is short but getgroups modifies an array of ints. */
9233 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9234 }
9235 _ACEOF
9236 rm -f conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_cv_type_getgroups=gid_t
9248 else
9249 echo "$as_me: program exited with status $ac_status" >&5
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9252
9253 ( exit $ac_status )
9254 ac_cv_type_getgroups=int
9255 fi
9256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9257 fi
9258 if test $ac_cv_type_getgroups = cross; then
9259 cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h. */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9265 #include <unistd.h>
9266
9267 _ACEOF
9268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9269 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9270 ac_cv_type_getgroups=gid_t
9271 else
9272 ac_cv_type_getgroups=int
9273 fi
9274 rm -f conftest*
9275
9276 fi
9277 fi
9278 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9279 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9280
9281 cat >>confdefs.h <<_ACEOF
9282 #define GETGROUPS_T $ac_cv_type_getgroups
9283 _ACEOF
9284
9285
9286 if test "${target}" = "${build}"; then
9287 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9288 else
9289 case "${target}" in
9290 # This condition may need some tweaking. It should include all
9291 # targets where the array type of the second argument of getgroups
9292 # is int and the type of gid_t is not equivalent to int.
9293 *-*-sunos* | *-*-ultrix*)
9294 TARGET_GETGROUPS_T=int
9295 ;;
9296 *)
9297 TARGET_GETGROUPS_T=gid_t
9298 ;;
9299 esac
9300 fi
9301
9302
9303 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9304 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9305 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308 if test "$cross_compiling" = yes; then
9309 gcc_cv_func_printf_ptr=no
9310 else
9311 cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h. */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9317 #include <stdio.h>
9318
9319 int main()
9320 {
9321 char buf[64];
9322 char *p = buf, *q = NULL;
9323 sprintf(buf, "%p", p);
9324 sscanf(buf, "%p", &q);
9325 return (p != q);
9326 }
9327 _ACEOF
9328 rm -f conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 gcc_cv_func_printf_ptr=yes
9340 else
9341 echo "$as_me: program exited with status $ac_status" >&5
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345 ( exit $ac_status )
9346 gcc_cv_func_printf_ptr=no
9347 fi
9348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9349 fi
9350 rm -f core core.* *.core
9351 fi
9352 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9353 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9354 if test $gcc_cv_func_printf_ptr = yes ; then
9355
9356 cat >>confdefs.h <<\_ACEOF
9357 #define HAVE_PRINTF_PTR 1
9358 _ACEOF
9359
9360 fi
9361
9362
9363 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9364 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9365 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368 cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h. */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 #include <sys/mman.h>
9375 _ACEOF
9376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } >/dev/null; then
9384 if test -s conftest.err; then
9385 ac_cpp_err=$ac_c_preproc_warn_flag
9386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9387 else
9388 ac_cpp_err=
9389 fi
9390 else
9391 ac_cpp_err=yes
9392 fi
9393 if test -z "$ac_cpp_err"; then
9394 ac_cv_header_sys_mman_h=yes
9395 else
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399 ac_cv_header_sys_mman_h=no
9400 fi
9401 rm -f conftest.err conftest.$ac_ext
9402 fi
9403 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9404 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9405 if test $ac_cv_header_sys_mman_h = yes; then
9406 gcc_header_sys_mman_h=yes
9407 else
9408 gcc_header_sys_mman_h=no
9409 fi
9410
9411 echo "$as_me:$LINENO: checking for mmap" >&5
9412 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9413 if test "${ac_cv_func_mmap+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416 cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h. */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9422 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9424 #define mmap innocuous_mmap
9425
9426 /* System header to define __stub macros and hopefully few prototypes,
9427 which can conflict with char mmap (); below.
9428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9429 <limits.h> exists even on freestanding compilers. */
9430
9431 #ifdef __STDC__
9432 # include <limits.h>
9433 #else
9434 # include <assert.h>
9435 #endif
9436
9437 #undef mmap
9438
9439 /* Override any gcc2 internal prototype to avoid an error. */
9440 #ifdef __cplusplus
9441 extern "C"
9442 {
9443 #endif
9444 /* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9446 char mmap ();
9447 /* The GNU C library defines this for functions which it implements
9448 to always fail with ENOSYS. Some functions are actually named
9449 something starting with __ and the normal name is an alias. */
9450 #if defined (__stub_mmap) || defined (__stub___mmap)
9451 choke me
9452 #else
9453 char (*f) () = mmap;
9454 #endif
9455 #ifdef __cplusplus
9456 }
9457 #endif
9458
9459 int
9460 main ()
9461 {
9462 return f != mmap;
9463 ;
9464 return 0;
9465 }
9466 _ACEOF
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469 (eval $ac_link) 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 (eval $ac_try) 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; } &&
9482 { ac_try='test -s conftest$ac_exeext'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9488 ac_cv_func_mmap=yes
9489 else
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493 ac_cv_func_mmap=no
9494 fi
9495 rm -f conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 fi
9498 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9499 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9500 if test $ac_cv_func_mmap = yes; then
9501 gcc_func_mmap=yes
9502 else
9503 gcc_func_mmap=no
9504 fi
9505
9506 if test "$gcc_header_sys_mman_h" != yes \
9507 || test "$gcc_func_mmap" != yes; then
9508 gcc_cv_func_mmap_file=no
9509 gcc_cv_func_mmap_dev_zero=no
9510 gcc_cv_func_mmap_anon=no
9511 else
9512 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9513 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9514 if test "${gcc_cv_func_mmap_file+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517 # Add a system to this blacklist if
9518 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9519 # memory area containing the same data that you'd get if you applied
9520 # read() to the same fd. The only system known to have a problem here
9521 # is VMS, where text files have record structure.
9522 case "$host_os" in
9523 vms* | ultrix*)
9524 gcc_cv_func_mmap_file=no ;;
9525 *)
9526 gcc_cv_func_mmap_file=yes;;
9527 esac
9528 fi
9529 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9530 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9531 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9532 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9533 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536 # Add a system to this blacklist if it has mmap() but /dev/zero
9537 # does not exist, or if mmapping /dev/zero does not give anonymous
9538 # zeroed pages with both the following properties:
9539 # 1. If you map N consecutive pages in with one call, and then
9540 # unmap any subset of those pages, the pages that were not
9541 # explicitly unmapped remain accessible.
9542 # 2. If you map two adjacent blocks of memory and then unmap them
9543 # both at once, they must both go away.
9544 # Systems known to be in this category are Windows (all variants),
9545 # VMS, and Darwin.
9546 case "$host_os" in
9547 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9548 gcc_cv_func_mmap_dev_zero=no ;;
9549 *)
9550 gcc_cv_func_mmap_dev_zero=yes;;
9551 esac
9552 fi
9553 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9554 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9555
9556 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9557 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9558 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9559 if test "${gcc_cv_decl_map_anon+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562 cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h. */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 #include <sys/types.h>
9569 #include <sys/mman.h>
9570 #include <unistd.h>
9571
9572 #ifndef MAP_ANONYMOUS
9573 #define MAP_ANONYMOUS MAP_ANON
9574 #endif
9575
9576 int
9577 main ()
9578 {
9579 int n = MAP_ANONYMOUS;
9580 ;
9581 return 0;
9582 }
9583 _ACEOF
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 (eval $ac_try) 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; } &&
9599 { ac_try='test -s conftest.$ac_objext'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 (eval $ac_try) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 gcc_cv_decl_map_anon=yes
9606 else
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610 gcc_cv_decl_map_anon=no
9611 fi
9612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9613 fi
9614 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9615 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9616
9617 if test $gcc_cv_decl_map_anon = no; then
9618 gcc_cv_func_mmap_anon=no
9619 else
9620 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9621 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9622 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9626 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9627 # doesn't give anonymous zeroed pages with the same properties listed
9628 # above for use of /dev/zero.
9629 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9630 case "$host_os" in
9631 vms* | cygwin* | pe | mingw* | sco* | udk* )
9632 gcc_cv_func_mmap_anon=no ;;
9633 *)
9634 gcc_cv_func_mmap_anon=yes;;
9635 esac
9636 fi
9637 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9638 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9639 fi
9640 fi
9641
9642 if test $gcc_cv_func_mmap_file = yes; then
9643
9644 cat >>confdefs.h <<\_ACEOF
9645 #define HAVE_MMAP_FILE 1
9646 _ACEOF
9647
9648 fi
9649 if test $gcc_cv_func_mmap_dev_zero = yes; then
9650
9651 cat >>confdefs.h <<\_ACEOF
9652 #define HAVE_MMAP_DEV_ZERO 1
9653 _ACEOF
9654
9655 fi
9656 if test $gcc_cv_func_mmap_anon = yes; then
9657
9658 cat >>confdefs.h <<\_ACEOF
9659 #define HAVE_MMAP_ANON 1
9660 _ACEOF
9661
9662 fi
9663
9664
9665 case "${host}" in
9666 *-*-*vms*)
9667 # Under VMS, vfork works very differently than on Unix. The standard test
9668 # won't work, and it isn't easily adaptable. It makes more sense to
9669 # just force it.
9670 ac_cv_func_vfork_works=yes
9671 ;;
9672 esac
9673 echo "$as_me:$LINENO: checking for pid_t" >&5
9674 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9675 if test "${ac_cv_type_pid_t+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678 cat >conftest.$ac_ext <<_ACEOF
9679 /* confdefs.h. */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 $ac_includes_default
9685 int
9686 main ()
9687 {
9688 if ((pid_t *) 0)
9689 return 0;
9690 if (sizeof (pid_t))
9691 return 0;
9692 ;
9693 return 0;
9694 }
9695 _ACEOF
9696 rm -f conftest.$ac_objext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9698 (eval $ac_compile) 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest.$ac_objext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_type_pid_t=yes
9718 else
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9721
9722 ac_cv_type_pid_t=no
9723 fi
9724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9725 fi
9726 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9727 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9728 if test $ac_cv_type_pid_t = yes; then
9729 :
9730 else
9731
9732 cat >>confdefs.h <<_ACEOF
9733 #define pid_t int
9734 _ACEOF
9735
9736 fi
9737
9738
9739
9740 for ac_header in unistd.h vfork.h
9741 do
9742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9743 echo "$as_me:$LINENO: checking for $ac_header" >&5
9744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748 cat >conftest.$ac_ext <<_ACEOF
9749 /* confdefs.h. */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 #include <$ac_header>
9755 _ACEOF
9756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9758 ac_status=$?
9759 grep -v '^ *+' conftest.er1 >conftest.err
9760 rm -f conftest.er1
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } >/dev/null; then
9764 if test -s conftest.err; then
9765 ac_cpp_err=$ac_c_preproc_warn_flag
9766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9767 else
9768 ac_cpp_err=
9769 fi
9770 else
9771 ac_cpp_err=yes
9772 fi
9773 if test -z "$ac_cpp_err"; then
9774 eval "$as_ac_Header=yes"
9775 else
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9778
9779 eval "$as_ac_Header=no"
9780 fi
9781 rm -f conftest.err conftest.$ac_ext
9782 fi
9783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9786 cat >>confdefs.h <<_ACEOF
9787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9788 _ACEOF
9789
9790 fi
9791 done
9792
9793
9794
9795 for ac_func in fork vfork
9796 do
9797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9798 echo "$as_me:$LINENO: checking for $ac_func" >&5
9799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9800 if eval "test \"\${$as_ac_var+set}\" = set"; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h. */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9811 #define $ac_func innocuous_$ac_func
9812
9813 /* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char $ac_func (); below.
9815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9816 <limits.h> exists even on freestanding compilers. */
9817
9818 #ifdef __STDC__
9819 # include <limits.h>
9820 #else
9821 # include <assert.h>
9822 #endif
9823
9824 #undef $ac_func
9825
9826 /* Override any gcc2 internal prototype to avoid an error. */
9827 #ifdef __cplusplus
9828 extern "C"
9829 {
9830 #endif
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9833 char $ac_func ();
9834 /* The GNU C library defines this for functions which it implements
9835 to always fail with ENOSYS. Some functions are actually named
9836 something starting with __ and the normal name is an alias. */
9837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9838 choke me
9839 #else
9840 char (*f) () = $ac_func;
9841 #endif
9842 #ifdef __cplusplus
9843 }
9844 #endif
9845
9846 int
9847 main ()
9848 {
9849 return f != $ac_func;
9850 ;
9851 return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856 (eval $ac_link) 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 eval "$as_ac_var=yes"
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 eval "$as_ac_var=no"
9881 fi
9882 rm -f conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884 fi
9885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9887 if test `eval echo '${'$as_ac_var'}'` = yes; then
9888 cat >>confdefs.h <<_ACEOF
9889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9890 _ACEOF
9891
9892 fi
9893 done
9894
9895 if test "x$ac_cv_func_fork" = xyes; then
9896 echo "$as_me:$LINENO: checking for working fork" >&5
9897 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9898 if test "${ac_cv_func_fork_works+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901 if test "$cross_compiling" = yes; then
9902 ac_cv_func_fork_works=cross
9903 else
9904 cat >conftest.$ac_ext <<_ACEOF
9905 /* By Ruediger Kuhlmann. */
9906 #include <sys/types.h>
9907 #if HAVE_UNISTD_H
9908 # include <unistd.h>
9909 #endif
9910 /* Some systems only have a dummy stub for fork() */
9911 int main ()
9912 {
9913 if (fork() < 0)
9914 exit (1);
9915 exit (0);
9916 }
9917 _ACEOF
9918 rm -f conftest$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 (eval $ac_try) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_func_fork_works=yes
9930 else
9931 echo "$as_me: program exited with status $ac_status" >&5
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9934
9935 ( exit $ac_status )
9936 ac_cv_func_fork_works=no
9937 fi
9938 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9939 fi
9940 fi
9941 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9942 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9943
9944 else
9945 ac_cv_func_fork_works=$ac_cv_func_fork
9946 fi
9947 if test "x$ac_cv_func_fork_works" = xcross; then
9948 case $host in
9949 *-*-amigaos* | *-*-msdosdjgpp*)
9950 # Override, as these systems have only a dummy fork() stub
9951 ac_cv_func_fork_works=no
9952 ;;
9953 *)
9954 ac_cv_func_fork_works=yes
9955 ;;
9956 esac
9957 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9958 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9959 fi
9960 ac_cv_func_vfork_works=$ac_cv_func_vfork
9961 if test "x$ac_cv_func_vfork" = xyes; then
9962 echo "$as_me:$LINENO: checking for working vfork" >&5
9963 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9964 if test "${ac_cv_func_vfork_works+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967 if test "$cross_compiling" = yes; then
9968 ac_cv_func_vfork_works=cross
9969 else
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 /* Thanks to Paul Eggert for this test. */
9977 #include <stdio.h>
9978 #include <stdlib.h>
9979 #include <sys/types.h>
9980 #include <sys/stat.h>
9981 #include <sys/wait.h>
9982 #if HAVE_UNISTD_H
9983 # include <unistd.h>
9984 #endif
9985 #if HAVE_VFORK_H
9986 # include <vfork.h>
9987 #endif
9988 /* On some sparc systems, changes by the child to local and incoming
9989 argument registers are propagated back to the parent. The compiler
9990 is told about this with #include <vfork.h>, but some compilers
9991 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9992 static variable whose address is put into a register that is
9993 clobbered by the vfork. */
9994 static void
9995 #ifdef __cplusplus
9996 sparc_address_test (int arg)
9997 # else
9998 sparc_address_test (arg) int arg;
9999 #endif
10000 {
10001 static pid_t child;
10002 if (!child) {
10003 child = vfork ();
10004 if (child < 0) {
10005 perror ("vfork");
10006 _exit(2);
10007 }
10008 if (!child) {
10009 arg = getpid();
10010 write(-1, "", 0);
10011 _exit (arg);
10012 }
10013 }
10014 }
10015
10016 int
10017 main ()
10018 {
10019 pid_t parent = getpid ();
10020 pid_t child;
10021
10022 sparc_address_test (0);
10023
10024 child = vfork ();
10025
10026 if (child == 0) {
10027 /* Here is another test for sparc vfork register problems. This
10028 test uses lots of local variables, at least as many local
10029 variables as main has allocated so far including compiler
10030 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10031 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10032 reuse the register of parent for one of the local variables,
10033 since it will think that parent can't possibly be used any more
10034 in this routine. Assigning to the local variable will thus
10035 munge parent in the parent process. */
10036 pid_t
10037 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10038 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10039 /* Convince the compiler that p..p7 are live; otherwise, it might
10040 use the same hardware register for all 8 local variables. */
10041 if (p != p1 || p != p2 || p != p3 || p != p4
10042 || p != p5 || p != p6 || p != p7)
10043 _exit(1);
10044
10045 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10046 from child file descriptors. If the child closes a descriptor
10047 before it execs or exits, this munges the parent's descriptor
10048 as well. Test for this by closing stdout in the child. */
10049 _exit(close(fileno(stdout)) != 0);
10050 } else {
10051 int status;
10052 struct stat st;
10053
10054 while (wait(&status) != child)
10055 ;
10056 exit(
10057 /* Was there some problem with vforking? */
10058 child < 0
10059
10060 /* Did the child fail? (This shouldn't happen.) */
10061 || status
10062
10063 /* Did the vfork/compiler bug occur? */
10064 || parent != getpid()
10065
10066 /* Did the file descriptor bug occur? */
10067 || fstat(fileno(stdout), &st) != 0
10068 );
10069 }
10070 }
10071 _ACEOF
10072 rm -f conftest$ac_exeext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074 (eval $ac_link) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_func_vfork_works=yes
10084 else
10085 echo "$as_me: program exited with status $ac_status" >&5
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10088
10089 ( exit $ac_status )
10090 ac_cv_func_vfork_works=no
10091 fi
10092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10093 fi
10094 fi
10095 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10096 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10097
10098 fi;
10099 if test "x$ac_cv_func_fork_works" = xcross; then
10100 ac_cv_func_vfork_works=$ac_cv_func_vfork
10101 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10102 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10103 fi
10104
10105 if test "x$ac_cv_func_vfork_works" = xyes; then
10106
10107 cat >>confdefs.h <<\_ACEOF
10108 #define HAVE_WORKING_VFORK 1
10109 _ACEOF
10110
10111 else
10112
10113 cat >>confdefs.h <<\_ACEOF
10114 #define vfork fork
10115 _ACEOF
10116
10117 fi
10118 if test "x$ac_cv_func_fork_works" = xyes; then
10119
10120 cat >>confdefs.h <<\_ACEOF
10121 #define HAVE_WORKING_FORK 1
10122 _ACEOF
10123
10124 fi
10125
10126
10127
10128 if test "X$prefix" = "XNONE"; then
10129 acl_final_prefix="$ac_default_prefix"
10130 else
10131 acl_final_prefix="$prefix"
10132 fi
10133 if test "X$exec_prefix" = "XNONE"; then
10134 acl_final_exec_prefix='${prefix}'
10135 else
10136 acl_final_exec_prefix="$exec_prefix"
10137 fi
10138 acl_save_prefix="$prefix"
10139 prefix="$acl_final_prefix"
10140 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10141 prefix="$acl_save_prefix"
10142
10143
10144 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10145 if test "${with_gnu_ld+set}" = set; then
10146 withval="$with_gnu_ld"
10147 test "$withval" = no || with_gnu_ld=yes
10148 else
10149 with_gnu_ld=no
10150 fi;
10151 # Prepare PATH_SEPARATOR.
10152 # The user is always right.
10153 if test "${PATH_SEPARATOR+set}" != set; then
10154 echo "#! /bin/sh" >conf$$.sh
10155 echo "exit 0" >>conf$$.sh
10156 chmod +x conf$$.sh
10157 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10158 PATH_SEPARATOR=';'
10159 else
10160 PATH_SEPARATOR=:
10161 fi
10162 rm -f conf$$.sh
10163 fi
10164 ac_prog=ld
10165 if test "$GCC" = yes; then
10166 # Check if gcc -print-prog-name=ld gives a path.
10167 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10168 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10169 case $host in
10170 *-*-mingw*)
10171 # gcc leaves a trailing carriage return which upsets mingw
10172 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10173 *)
10174 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10175 esac
10176 case $ac_prog in
10177 # Accept absolute paths.
10178 [\\/]* | [A-Za-z]:[\\/]*)
10179 re_direlt='/[^/][^/]*/\.\./'
10180 # Canonicalize the path of ld
10181 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10182 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10183 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10184 done
10185 test -z "$LD" && LD="$ac_prog"
10186 ;;
10187 "")
10188 # If it fails, then pretend we aren't using GCC.
10189 ac_prog=ld
10190 ;;
10191 *)
10192 # If it is relative, then search for the first ld in PATH.
10193 with_gnu_ld=unknown
10194 ;;
10195 esac
10196 elif test "$with_gnu_ld" = yes; then
10197 echo "$as_me:$LINENO: checking for GNU ld" >&5
10198 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10199 else
10200 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10201 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10202 fi
10203 if test "${acl_cv_path_LD+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 if test -z "$LD"; then
10207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10208 for ac_dir in $PATH; do
10209 test -z "$ac_dir" && ac_dir=.
10210 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10211 acl_cv_path_LD="$ac_dir/$ac_prog"
10212 # Check to see if the program is GNU ld. I'd rather use --version,
10213 # but apparently some GNU ld's only accept -v.
10214 # Break only if it was the GNU/non-GNU ld that we prefer.
10215 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10216 test "$with_gnu_ld" != no && break
10217 else
10218 test "$with_gnu_ld" != yes && break
10219 fi
10220 fi
10221 done
10222 IFS="$ac_save_ifs"
10223 else
10224 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10225 fi
10226 fi
10227
10228 LD="$acl_cv_path_LD"
10229 if test -n "$LD"; then
10230 echo "$as_me:$LINENO: result: $LD" >&5
10231 echo "${ECHO_T}$LD" >&6
10232 else
10233 echo "$as_me:$LINENO: result: no" >&5
10234 echo "${ECHO_T}no" >&6
10235 fi
10236 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10237 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10238 { (exit 1); exit 1; }; }
10239 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10240 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10241 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10245 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10246 acl_cv_prog_gnu_ld=yes
10247 else
10248 acl_cv_prog_gnu_ld=no
10249 fi
10250 fi
10251 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10252 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10253 with_gnu_ld=$acl_cv_prog_gnu_ld
10254
10255
10256
10257 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10258 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10259 if test "${acl_cv_rpath+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262
10263 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10264 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10265 . ./conftest.sh
10266 rm -f ./conftest.sh
10267 acl_cv_rpath=done
10268
10269 fi
10270 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10271 echo "${ECHO_T}$acl_cv_rpath" >&6
10272 wl="$acl_cv_wl"
10273 libext="$acl_cv_libext"
10274 shlibext="$acl_cv_shlibext"
10275 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10276 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10277 hardcode_direct="$acl_cv_hardcode_direct"
10278 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10279 # Check whether --enable-rpath or --disable-rpath was given.
10280 if test "${enable_rpath+set}" = set; then
10281 enableval="$enable_rpath"
10282 :
10283 else
10284 enable_rpath=yes
10285 fi;
10286
10287
10288
10289
10290
10291
10292
10293 use_additional=yes
10294
10295 acl_save_prefix="$prefix"
10296 prefix="$acl_final_prefix"
10297 acl_save_exec_prefix="$exec_prefix"
10298 exec_prefix="$acl_final_exec_prefix"
10299
10300 eval additional_includedir=\"$includedir\"
10301 eval additional_libdir=\"$libdir\"
10302
10303 exec_prefix="$acl_save_exec_prefix"
10304 prefix="$acl_save_prefix"
10305
10306
10307 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10308 if test "${with_libiconv_prefix+set}" = set; then
10309 withval="$with_libiconv_prefix"
10310
10311 if test "X$withval" = "Xno"; then
10312 use_additional=no
10313 else
10314 if test "X$withval" = "X"; then
10315
10316 acl_save_prefix="$prefix"
10317 prefix="$acl_final_prefix"
10318 acl_save_exec_prefix="$exec_prefix"
10319 exec_prefix="$acl_final_exec_prefix"
10320
10321 eval additional_includedir=\"$includedir\"
10322 eval additional_libdir=\"$libdir\"
10323
10324 exec_prefix="$acl_save_exec_prefix"
10325 prefix="$acl_save_prefix"
10326
10327 else
10328 additional_includedir="$withval/include"
10329 additional_libdir="$withval/lib"
10330 fi
10331 fi
10332
10333 fi;
10334 LIBICONV=
10335 LTLIBICONV=
10336 INCICONV=
10337 rpathdirs=
10338 ltrpathdirs=
10339 names_already_handled=
10340 names_next_round='iconv '
10341 while test -n "$names_next_round"; do
10342 names_this_round="$names_next_round"
10343 names_next_round=
10344 for name in $names_this_round; do
10345 already_handled=
10346 for n in $names_already_handled; do
10347 if test "$n" = "$name"; then
10348 already_handled=yes
10349 break
10350 fi
10351 done
10352 if test -z "$already_handled"; then
10353 names_already_handled="$names_already_handled $name"
10354 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10355 eval value=\"\$HAVE_LIB$uppername\"
10356 if test -n "$value"; then
10357 if test "$value" = yes; then
10358 eval value=\"\$LIB$uppername\"
10359 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10360 eval value=\"\$LTLIB$uppername\"
10361 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10362 else
10363 :
10364 fi
10365 else
10366 found_dir=
10367 found_la=
10368 found_so=
10369 found_a=
10370 if test $use_additional = yes; then
10371 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10372 found_dir="$additional_libdir"
10373 found_so="$additional_libdir/lib$name.$shlibext"
10374 if test -f "$additional_libdir/lib$name.la"; then
10375 found_la="$additional_libdir/lib$name.la"
10376 fi
10377 else
10378 if test -f "$additional_libdir/lib$name.$libext"; then
10379 found_dir="$additional_libdir"
10380 found_a="$additional_libdir/lib$name.$libext"
10381 if test -f "$additional_libdir/lib$name.la"; then
10382 found_la="$additional_libdir/lib$name.la"
10383 fi
10384 fi
10385 fi
10386 fi
10387 if test "X$found_dir" = "X"; then
10388 for x in $LDFLAGS $LTLIBICONV; do
10389
10390 acl_save_prefix="$prefix"
10391 prefix="$acl_final_prefix"
10392 acl_save_exec_prefix="$exec_prefix"
10393 exec_prefix="$acl_final_exec_prefix"
10394 eval x=\"$x\"
10395 exec_prefix="$acl_save_exec_prefix"
10396 prefix="$acl_save_prefix"
10397
10398 case "$x" in
10399 -L*)
10400 dir=`echo "X$x" | sed -e 's/^X-L//'`
10401 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10402 found_dir="$dir"
10403 found_so="$dir/lib$name.$shlibext"
10404 if test -f "$dir/lib$name.la"; then
10405 found_la="$dir/lib$name.la"
10406 fi
10407 else
10408 if test -f "$dir/lib$name.$libext"; then
10409 found_dir="$dir"
10410 found_a="$dir/lib$name.$libext"
10411 if test -f "$dir/lib$name.la"; then
10412 found_la="$dir/lib$name.la"
10413 fi
10414 fi
10415 fi
10416 ;;
10417 esac
10418 if test "X$found_dir" != "X"; then
10419 break
10420 fi
10421 done
10422 fi
10423 if test "X$found_dir" != "X"; then
10424 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10425 if test "X$found_so" != "X"; then
10426 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10427 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10428 else
10429 haveit=
10430 for x in $ltrpathdirs; do
10431 if test "X$x" = "X$found_dir"; then
10432 haveit=yes
10433 break
10434 fi
10435 done
10436 if test -z "$haveit"; then
10437 ltrpathdirs="$ltrpathdirs $found_dir"
10438 fi
10439 if test "$hardcode_direct" = yes; then
10440 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10441 else
10442 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10443 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10444 haveit=
10445 for x in $rpathdirs; do
10446 if test "X$x" = "X$found_dir"; then
10447 haveit=yes
10448 break
10449 fi
10450 done
10451 if test -z "$haveit"; then
10452 rpathdirs="$rpathdirs $found_dir"
10453 fi
10454 else
10455 haveit=
10456 for x in $LDFLAGS $LIBICONV; do
10457
10458 acl_save_prefix="$prefix"
10459 prefix="$acl_final_prefix"
10460 acl_save_exec_prefix="$exec_prefix"
10461 exec_prefix="$acl_final_exec_prefix"
10462 eval x=\"$x\"
10463 exec_prefix="$acl_save_exec_prefix"
10464 prefix="$acl_save_prefix"
10465
10466 if test "X$x" = "X-L$found_dir"; then
10467 haveit=yes
10468 break
10469 fi
10470 done
10471 if test -z "$haveit"; then
10472 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10473 fi
10474 if test "$hardcode_minus_L" != no; then
10475 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10476 else
10477 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10478 fi
10479 fi
10480 fi
10481 fi
10482 else
10483 if test "X$found_a" != "X"; then
10484 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10485 else
10486 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10487 fi
10488 fi
10489 additional_includedir=
10490 case "$found_dir" in
10491 */lib | */lib/)
10492 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10493 additional_includedir="$basedir/include"
10494 ;;
10495 esac
10496 if test "X$additional_includedir" != "X"; then
10497 if test "X$additional_includedir" != "X/usr/include"; then
10498 haveit=
10499 if test "X$additional_includedir" = "X/usr/local/include"; then
10500 if test -n "$GCC"; then
10501 case $host_os in
10502 linux*) haveit=yes;;
10503 esac
10504 fi
10505 fi
10506 if test -z "$haveit"; then
10507 for x in $CPPFLAGS $INCICONV; do
10508
10509 acl_save_prefix="$prefix"
10510 prefix="$acl_final_prefix"
10511 acl_save_exec_prefix="$exec_prefix"
10512 exec_prefix="$acl_final_exec_prefix"
10513 eval x=\"$x\"
10514 exec_prefix="$acl_save_exec_prefix"
10515 prefix="$acl_save_prefix"
10516
10517 if test "X$x" = "X-I$additional_includedir"; then
10518 haveit=yes
10519 break
10520 fi
10521 done
10522 if test -z "$haveit"; then
10523 if test -d "$additional_includedir"; then
10524 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10525 fi
10526 fi
10527 fi
10528 fi
10529 fi
10530 if test -n "$found_la"; then
10531 save_libdir="$libdir"
10532 case "$found_la" in
10533 */* | *\\*) . "$found_la" ;;
10534 *) . "./$found_la" ;;
10535 esac
10536 libdir="$save_libdir"
10537 for dep in $dependency_libs; do
10538 case "$dep" in
10539 -L*)
10540 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10541 if test "X$additional_libdir" != "X/usr/lib"; then
10542 haveit=
10543 if test "X$additional_libdir" = "X/usr/local/lib"; then
10544 if test -n "$GCC"; then
10545 case $host_os in
10546 linux*) haveit=yes;;
10547 esac
10548 fi
10549 fi
10550 if test -z "$haveit"; then
10551 haveit=
10552 for x in $LDFLAGS $LIBICONV; do
10553
10554 acl_save_prefix="$prefix"
10555 prefix="$acl_final_prefix"
10556 acl_save_exec_prefix="$exec_prefix"
10557 exec_prefix="$acl_final_exec_prefix"
10558 eval x=\"$x\"
10559 exec_prefix="$acl_save_exec_prefix"
10560 prefix="$acl_save_prefix"
10561
10562 if test "X$x" = "X-L$additional_libdir"; then
10563 haveit=yes
10564 break
10565 fi
10566 done
10567 if test -z "$haveit"; then
10568 if test -d "$additional_libdir"; then
10569 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10570 fi
10571 fi
10572 haveit=
10573 for x in $LDFLAGS $LTLIBICONV; do
10574
10575 acl_save_prefix="$prefix"
10576 prefix="$acl_final_prefix"
10577 acl_save_exec_prefix="$exec_prefix"
10578 exec_prefix="$acl_final_exec_prefix"
10579 eval x=\"$x\"
10580 exec_prefix="$acl_save_exec_prefix"
10581 prefix="$acl_save_prefix"
10582
10583 if test "X$x" = "X-L$additional_libdir"; then
10584 haveit=yes
10585 break
10586 fi
10587 done
10588 if test -z "$haveit"; then
10589 if test -d "$additional_libdir"; then
10590 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10591 fi
10592 fi
10593 fi
10594 fi
10595 ;;
10596 -R*)
10597 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10598 if test "$enable_rpath" != no; then
10599 haveit=
10600 for x in $rpathdirs; do
10601 if test "X$x" = "X$dir"; then
10602 haveit=yes
10603 break
10604 fi
10605 done
10606 if test -z "$haveit"; then
10607 rpathdirs="$rpathdirs $dir"
10608 fi
10609 haveit=
10610 for x in $ltrpathdirs; do
10611 if test "X$x" = "X$dir"; then
10612 haveit=yes
10613 break
10614 fi
10615 done
10616 if test -z "$haveit"; then
10617 ltrpathdirs="$ltrpathdirs $dir"
10618 fi
10619 fi
10620 ;;
10621 -l*)
10622 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10623 ;;
10624 *.la)
10625 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10626 ;;
10627 *)
10628 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10629 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10630 ;;
10631 esac
10632 done
10633 fi
10634 else
10635 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10636 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10637 fi
10638 fi
10639 fi
10640 done
10641 done
10642 if test "X$rpathdirs" != "X"; then
10643 if test -n "$hardcode_libdir_separator"; then
10644 alldirs=
10645 for found_dir in $rpathdirs; do
10646 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10647 done
10648 acl_save_libdir="$libdir"
10649 libdir="$alldirs"
10650 eval flag=\"$hardcode_libdir_flag_spec\"
10651 libdir="$acl_save_libdir"
10652 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10653 else
10654 for found_dir in $rpathdirs; do
10655 acl_save_libdir="$libdir"
10656 libdir="$found_dir"
10657 eval flag=\"$hardcode_libdir_flag_spec\"
10658 libdir="$acl_save_libdir"
10659 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10660 done
10661 fi
10662 fi
10663 if test "X$ltrpathdirs" != "X"; then
10664 for found_dir in $ltrpathdirs; do
10665 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10666 done
10667 fi
10668
10669
10670
10671
10672
10673
10674
10675 am_save_CPPFLAGS="$CPPFLAGS"
10676
10677 for element in $INCICONV; do
10678 haveit=
10679 for x in $CPPFLAGS; do
10680
10681 acl_save_prefix="$prefix"
10682 prefix="$acl_final_prefix"
10683 acl_save_exec_prefix="$exec_prefix"
10684 exec_prefix="$acl_final_exec_prefix"
10685 eval x=\"$x\"
10686 exec_prefix="$acl_save_exec_prefix"
10687 prefix="$acl_save_prefix"
10688
10689 if test "X$x" = "X$element"; then
10690 haveit=yes
10691 break
10692 fi
10693 done
10694 if test -z "$haveit"; then
10695 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10696 fi
10697 done
10698
10699
10700 echo "$as_me:$LINENO: checking for iconv" >&5
10701 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10702 if test "${am_cv_func_iconv+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 else
10705
10706 am_cv_func_iconv="no, consider installing GNU libiconv"
10707 am_cv_lib_iconv=no
10708 cat >conftest.$ac_ext <<_ACEOF
10709 /* confdefs.h. */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714 #include <stdlib.h>
10715 #include <iconv.h>
10716 int
10717 main ()
10718 {
10719 iconv_t cd = iconv_open("","");
10720 iconv(cd,NULL,NULL,NULL,NULL);
10721 iconv_close(cd);
10722 ;
10723 return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try='test -s conftest$ac_exeext'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 am_cv_func_iconv=yes
10748 else
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 fi
10753 rm -f conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755 if test "$am_cv_func_iconv" != yes; then
10756 am_save_LIBS="$LIBS"
10757 LIBS="$LIBS $LIBICONV"
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h. */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 #include <stdlib.h>
10765 #include <iconv.h>
10766 int
10767 main ()
10768 {
10769 iconv_t cd = iconv_open("","");
10770 iconv(cd,NULL,NULL,NULL,NULL);
10771 iconv_close(cd);
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10778 (eval $ac_link) 2>conftest.er1
10779 ac_status=$?
10780 grep -v '^ *+' conftest.er1 >conftest.err
10781 rm -f conftest.er1
10782 cat conftest.err >&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; } &&
10791 { ac_try='test -s conftest$ac_exeext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 am_cv_lib_iconv=yes
10798 am_cv_func_iconv=yes
10799 else
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803 fi
10804 rm -f conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
10806 LIBS="$am_save_LIBS"
10807 fi
10808
10809 fi
10810 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10811 echo "${ECHO_T}$am_cv_func_iconv" >&6
10812 if test "$am_cv_func_iconv" = yes; then
10813
10814 cat >>confdefs.h <<\_ACEOF
10815 #define HAVE_ICONV 1
10816 _ACEOF
10817
10818 fi
10819 if test "$am_cv_lib_iconv" = yes; then
10820 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10821 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10822 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10823 echo "${ECHO_T}$LIBICONV" >&6
10824 else
10825 CPPFLAGS="$am_save_CPPFLAGS"
10826 LIBICONV=
10827 LTLIBICONV=
10828 fi
10829
10830
10831
10832 if test "$am_cv_func_iconv" = yes; then
10833 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10834 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10835 if test "${am_cv_proto_iconv+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838
10839 cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h. */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845
10846 #include <stdlib.h>
10847 #include <iconv.h>
10848 extern
10849 #ifdef __cplusplus
10850 "C"
10851 #endif
10852 #if defined(__STDC__) || defined(__cplusplus)
10853 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10854 #else
10855 size_t iconv();
10856 #endif
10857
10858 int
10859 main ()
10860 {
10861
10862 ;
10863 return 0;
10864 }
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868 (eval $ac_compile) 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try='test -s conftest.$ac_objext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 am_cv_proto_iconv_arg1=""
10888 else
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 am_cv_proto_iconv_arg1="const"
10893 fi
10894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10895 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);"
10896 fi
10897
10898 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10899 echo "$as_me:$LINENO: result: ${ac_t:-
10900 }$am_cv_proto_iconv" >&5
10901 echo "${ECHO_T}${ac_t:-
10902 }$am_cv_proto_iconv" >&6
10903
10904 cat >>confdefs.h <<_ACEOF
10905 #define ICONV_CONST $am_cv_proto_iconv_arg1
10906 _ACEOF
10907
10908 fi
10909
10910 # Until we have in-tree GNU iconv:
10911 LIBICONV_DEP=
10912
10913
10914
10915 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10916 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10917 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h. */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 #include <locale.h>
10927 int
10928 main ()
10929 {
10930 return LC_MESSAGES
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 rm -f conftest.$ac_objext conftest$ac_exeext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10937 (eval $ac_link) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest$ac_exeext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 am_cv_val_LC_MESSAGES=yes
10957 else
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10960
10961 am_cv_val_LC_MESSAGES=no
10962 fi
10963 rm -f conftest.err conftest.$ac_objext \
10964 conftest$ac_exeext conftest.$ac_ext
10965 fi
10966 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10967 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10968 if test $am_cv_val_LC_MESSAGES = yes; then
10969
10970 cat >>confdefs.h <<\_ACEOF
10971 #define HAVE_LC_MESSAGES 1
10972 _ACEOF
10973
10974 fi
10975
10976
10977
10978 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10979 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10980 if test "${am_cv_langinfo_codeset+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983 cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h. */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 #include <langinfo.h>
10990 int
10991 main ()
10992 {
10993 char* cs = nl_langinfo(CODESET);
10994 ;
10995 return 0;
10996 }
10997 _ACEOF
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; } &&
11013 { ac_try='test -s conftest$ac_exeext'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 am_cv_langinfo_codeset=yes
11020 else
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024 am_cv_langinfo_codeset=no
11025 fi
11026 rm -f conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028
11029 fi
11030 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11031 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11032 if test $am_cv_langinfo_codeset = yes; then
11033
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_LANGINFO_CODESET 1
11036 _ACEOF
11037
11038 fi
11039
11040
11041 # We will need to find libiberty.h and ansidecl.h
11042 saved_CFLAGS="$CFLAGS"
11043 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068 for ac_func in getenv atol sbrk abort atof getcwd getwd \
11069 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11070 fprintf_unlocked strstr errno snprintf vasprintf \
11071 malloc realloc calloc free basename getopt clock getpagesize
11072 do
11073 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11074 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11075 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11076 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h. */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 #undef $ac_tr_decl
11086 #define $ac_tr_decl 1
11087
11088 #include "ansidecl.h"
11089 #include "system.h"
11090
11091 int
11092 main ()
11093 {
11094 #ifndef $ac_func
11095 char *(*pfn) = (char *(*)) $ac_func ;
11096 #endif
11097 ;
11098 return 0;
11099 }
11100 _ACEOF
11101 rm -f conftest.$ac_objext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103 (eval $ac_compile) 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; } &&
11116 { ac_try='test -s conftest.$ac_objext'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 eval "gcc_cv_have_decl_$ac_func=yes"
11123 else
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11126
11127 eval "gcc_cv_have_decl_$ac_func=no"
11128 fi
11129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11130 fi
11131
11132 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11133 echo "$as_me:$LINENO: result: yes" >&5
11134 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11135 #define $ac_tr_decl 1
11136 _ACEOF
11137
11138 else
11139 echo "$as_me:$LINENO: result: no" >&5
11140 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11141 #define $ac_tr_decl 0
11142 _ACEOF
11143
11144 fi
11145
11146 done
11147
11148
11149
11150
11151
11152 for ac_func in getrlimit setrlimit getrusage
11153 do
11154 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11155 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11156 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11157 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 #undef $ac_tr_decl
11167 #define $ac_tr_decl 1
11168
11169 #include "ansidecl.h"
11170 #include "system.h"
11171 #ifdef HAVE_SYS_RESOURCE_H
11172 #include <sys/resource.h>
11173 #endif
11174
11175
11176 int
11177 main ()
11178 {
11179 #ifndef $ac_func
11180 char *(*pfn) = (char *(*)) $ac_func ;
11181 #endif
11182 ;
11183 return 0;
11184 }
11185 _ACEOF
11186 rm -f conftest.$ac_objext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11188 (eval $ac_compile) 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 eval "gcc_cv_have_decl_$ac_func=yes"
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 eval "gcc_cv_have_decl_$ac_func=no"
11213 fi
11214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11215 fi
11216
11217 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11218 echo "$as_me:$LINENO: result: yes" >&5
11219 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11220 #define $ac_tr_decl 1
11221 _ACEOF
11222
11223 else
11224 echo "$as_me:$LINENO: result: no" >&5
11225 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11226 #define $ac_tr_decl 0
11227 _ACEOF
11228
11229 fi
11230
11231 done
11232
11233
11234 cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h. */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240
11241 #include "ansidecl.h"
11242 #include "system.h"
11243 #ifdef HAVE_SYS_RESOURCE_H
11244 #include <sys/resource.h>
11245 #endif
11246
11247 int
11248 main ()
11249 {
11250 rlim_t l = 0;
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 rm -f conftest.$ac_objext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11257 (eval $ac_compile) 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest.$ac_objext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 :
11277 else
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281
11282 cat >>confdefs.h <<\_ACEOF
11283 #define rlim_t long
11284 _ACEOF
11285
11286 fi
11287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11288
11289 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11290 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11291 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11292 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11293
11294 for ac_func in ldgetname
11295 do
11296 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11297 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11298 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11299 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 #undef $ac_tr_decl
11309 #define $ac_tr_decl 1
11310
11311 #include "ansidecl.h"
11312 #include "system.h"
11313 #ifdef HAVE_LDFCN_H
11314 #undef FREAD
11315 #undef FWRITE
11316 #include <ldfcn.h>
11317 #endif
11318
11319
11320 int
11321 main ()
11322 {
11323 #ifndef $ac_func
11324 char *(*pfn) = (char *(*)) $ac_func ;
11325 #endif
11326 ;
11327 return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332 (eval $ac_compile) 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try='test -s conftest.$ac_objext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 eval "gcc_cv_have_decl_$ac_func=yes"
11352 else
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356 eval "gcc_cv_have_decl_$ac_func=no"
11357 fi
11358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11359 fi
11360
11361 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11362 echo "$as_me:$LINENO: result: yes" >&5
11363 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11364 #define $ac_tr_decl 1
11365 _ACEOF
11366
11367 else
11368 echo "$as_me:$LINENO: result: no" >&5
11369 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11370 #define $ac_tr_decl 0
11371 _ACEOF
11372
11373 fi
11374
11375 done
11376
11377
11378
11379 for ac_func in times
11380 do
11381 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11382 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11383 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11384 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387 cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h. */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11393 #undef $ac_tr_decl
11394 #define $ac_tr_decl 1
11395
11396 #include "ansidecl.h"
11397 #include "system.h"
11398 #ifdef HAVE_SYS_TIMES_H
11399 #include <sys/times.h>
11400 #endif
11401
11402
11403 int
11404 main ()
11405 {
11406 #ifndef $ac_func
11407 char *(*pfn) = (char *(*)) $ac_func ;
11408 #endif
11409 ;
11410 return 0;
11411 }
11412 _ACEOF
11413 rm -f conftest.$ac_objext
11414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11415 (eval $ac_compile) 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; } &&
11428 { ac_try='test -s conftest.$ac_objext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 eval "gcc_cv_have_decl_$ac_func=yes"
11435 else
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 eval "gcc_cv_have_decl_$ac_func=no"
11440 fi
11441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11442 fi
11443
11444 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11445 echo "$as_me:$LINENO: result: yes" >&5
11446 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11447 #define $ac_tr_decl 1
11448 _ACEOF
11449
11450 else
11451 echo "$as_me:$LINENO: result: no" >&5
11452 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11453 #define $ac_tr_decl 0
11454 _ACEOF
11455
11456 fi
11457
11458 done
11459
11460
11461 # More time-related stuff.
11462 echo "$as_me:$LINENO: checking for struct tms" >&5
11463 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11464 if test "${ac_cv_struct_tms+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h. */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474
11475 #include "ansidecl.h"
11476 #include "system.h"
11477 #ifdef HAVE_SYS_TIMES_H
11478 #include <sys/times.h>
11479 #endif
11480
11481 int
11482 main ()
11483 {
11484 struct tms tms;
11485 ;
11486 return 0;
11487 }
11488 _ACEOF
11489 rm -f conftest.$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491 (eval $ac_compile) 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest.$ac_objext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_struct_tms=yes
11511 else
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 ac_cv_struct_tms=no
11516 fi
11517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11518 fi
11519 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11520 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11521 if test $ac_cv_struct_tms = yes; then
11522
11523 cat >>confdefs.h <<\_ACEOF
11524 #define HAVE_STRUCT_TMS 1
11525 _ACEOF
11526
11527 fi
11528
11529 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11530 # revisit after autoconf 2.50.
11531 echo "$as_me:$LINENO: checking for clock_t" >&5
11532 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11533 if test "${gcc_cv_type_clock_t+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h. */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543
11544 #include "ansidecl.h"
11545 #include "system.h"
11546
11547 int
11548 main ()
11549 {
11550 clock_t x;
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557 (eval $ac_compile) 2>conftest.er1
11558 ac_status=$?
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 gcc_cv_type_clock_t=yes
11577 else
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581 gcc_cv_type_clock_t=no
11582 fi
11583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11584 fi
11585 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11586 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11587 if test $gcc_cv_type_clock_t = yes; then
11588
11589 cat >>confdefs.h <<\_ACEOF
11590 #define HAVE_CLOCK_T 1
11591 _ACEOF
11592
11593 fi
11594
11595 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11596 CFLAGS="$saved_CFLAGS"
11597
11598 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11599 if test "${enable_initfini_array+set}" = set; then
11600 enableval="$enable_initfini_array"
11601
11602 else
11603
11604 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11605 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11606 if test "${gcc_cv_initfini_array+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609 if test "$cross_compiling" = yes; then
11610 gcc_cv_initfini_array=no
11611 else
11612 cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h. */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618
11619 static int x = -1;
11620 int main (void) { return x; }
11621 int foo (void) { x = 0; }
11622 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11623 _ACEOF
11624 rm -f conftest$ac_exeext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 gcc_cv_initfini_array=yes
11636 else
11637 echo "$as_me: program exited with status $ac_status" >&5
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11640
11641 ( exit $ac_status )
11642 gcc_cv_initfini_array=no
11643 fi
11644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11645 fi
11646 fi
11647 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11648 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11649 enable_initfini_array=$gcc_cv_initfini_array
11650
11651 fi;
11652 if test $enable_initfini_array = yes; then
11653
11654 cat >>confdefs.h <<\_ACEOF
11655 #define HAVE_INITFINI_ARRAY 1
11656 _ACEOF
11657
11658 fi
11659
11660 # mkdir takes a single argument on some systems.
11661 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11662 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11663 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666 cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h. */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672
11673 #include <sys/types.h>
11674 #ifdef HAVE_SYS_STAT_H
11675 # include <sys/stat.h>
11676 #endif
11677 #ifdef HAVE_UNISTD_H
11678 # include <unistd.h>
11679 #endif
11680 #ifdef HAVE_DIRECT_H
11681 # include <direct.h>
11682 #endif
11683 int
11684 main ()
11685 {
11686 mkdir ("foo", 0);
11687 ;
11688 return 0;
11689 }
11690 _ACEOF
11691 rm -f conftest.$ac_objext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11693 (eval $ac_compile) 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; } &&
11706 { ac_try='test -s conftest.$ac_objext'
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; }; then
11712 gcc_cv_mkdir_takes_one_arg=no
11713 else
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11716
11717 gcc_cv_mkdir_takes_one_arg=yes
11718 fi
11719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11720 fi
11721 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11722 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11723 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11724
11725 cat >>confdefs.h <<\_ACEOF
11726 #define MKDIR_TAKES_ONE_ARG 1
11727 _ACEOF
11728
11729 fi
11730
11731
11732 # File extensions
11733 manext='.1'
11734 objext='.o'
11735
11736
11737
11738 # With Setjmp/Longjmp based exception handling.
11739 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11740 if test "${enable_sjlj_exceptions+set}" = set; then
11741 enableval="$enable_sjlj_exceptions"
11742 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11743
11744 cat >>confdefs.h <<_ACEOF
11745 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11746 _ACEOF
11747
11748 fi;
11749
11750 # For platforms with the unwind ABI which includes an unwind library,
11751 # libunwind, we can choose to use the system libunwind.
11752
11753 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11754 if test "${with_system_libunwind+set}" = set; then
11755 withval="$with_system_libunwind"
11756
11757 fi;
11758
11759 # --------------------------------------------------------
11760 # Build, host, and target specific configuration fragments
11761 # --------------------------------------------------------
11762
11763 # Collect build-machine-specific information.
11764 . ${srcdir}/config.build
11765
11766 # Collect host-machine-specific information.
11767 . ${srcdir}/config.host
11768
11769 target_gtfiles=
11770
11771 # Collect target-machine-specific information.
11772 . ${srcdir}/config.gcc
11773
11774 extra_objs="${host_extra_objs} ${extra_objs}"
11775 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11776
11777 # Default the target-machine variables that were not explicitly set.
11778 if test x"$tm_file" = x
11779 then tm_file=$cpu_type/$cpu_type.h; fi
11780
11781 if test x"$extra_headers" = x
11782 then extra_headers=; fi
11783
11784 if test x$md_file = x
11785 then md_file=$cpu_type/$cpu_type.md; fi
11786
11787 if test x$out_file = x
11788 then out_file=$cpu_type/$cpu_type.c; fi
11789
11790 if test x"$tmake_file" = x
11791 then tmake_file=$cpu_type/t-$cpu_type
11792 fi
11793
11794 if test x"$dwarf2" = xyes
11795 then tm_file="$tm_file tm-dwarf2.h"
11796 fi
11797
11798 # Say what files are being used for the output code and MD file.
11799 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11800 echo "Using \`$srcdir/config/$md_file' as machine description file."
11801
11802 # If any of the xm_file variables contain nonexistent files, warn
11803 # about them and drop them.
11804
11805 bx=
11806 for x in $build_xm_file; do
11807 if test -f $srcdir/config/$x
11808 then bx="$bx $x"
11809 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11810 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11811 fi
11812 done
11813 build_xm_file="$bx"
11814
11815 hx=
11816 for x in $host_xm_file; do
11817 if test -f $srcdir/config/$x
11818 then hx="$hx $x"
11819 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11820 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11821 fi
11822 done
11823 host_xm_file="$hx"
11824
11825 tx=
11826 for x in $xm_file; do
11827 if test -f $srcdir/config/$x
11828 then tx="$tx $x"
11829 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11830 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11831 fi
11832 done
11833 xm_file="$tx"
11834
11835 count=a
11836 for f in $tm_file; do
11837 count=${count}x
11838 done
11839 if test $count = ax; then
11840 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11841 else
11842 echo "Using the following target machine macro files:"
11843 for f in $tm_file; do
11844 echo " $srcdir/config/$f"
11845 done
11846 fi
11847
11848 if test x$need_64bit_hwint = xyes; then
11849
11850 cat >>confdefs.h <<\_ACEOF
11851 #define NEED_64BIT_HOST_WIDE_INT 1
11852 _ACEOF
11853
11854 fi
11855
11856 if test x$use_long_long_for_widest_fast_int = xyes; then
11857
11858 cat >>confdefs.h <<\_ACEOF
11859 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11860 _ACEOF
11861
11862 fi
11863
11864 count=a
11865 for f in $host_xm_file; do
11866 count=${count}x
11867 done
11868 if test $count = a; then
11869 :
11870 elif test $count = ax; then
11871 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11872 else
11873 echo "Using the following host machine macro files:"
11874 for f in $host_xm_file; do
11875 echo " $srcdir/config/$f"
11876 done
11877 fi
11878 echo "Using ${out_host_hook_obj} for host machine hooks."
11879
11880 if test "$host_xm_file" != "$build_xm_file"; then
11881 count=a
11882 for f in $build_xm_file; do
11883 count=${count}x
11884 done
11885 if test $count = a; then
11886 :
11887 elif test $count = ax; then
11888 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11889 else
11890 echo "Using the following build machine macro files:"
11891 for f in $build_xm_file; do
11892 echo " $srcdir/config/$f"
11893 done
11894 fi
11895 fi
11896
11897 # ---------
11898 # Threading
11899 # ---------
11900
11901 # Check if a valid thread package
11902 case ${enable_threads} in
11903 "" | no)
11904 # No threads
11905 target_thread_file='single'
11906 ;;
11907 yes)
11908 # default
11909 target_thread_file='single'
11910 ;;
11911 aix | dce | gnat | irix | posix | posix95 | rtems | \
11912 single | solaris | vxworks | win32 )
11913 target_thread_file=${enable_threads}
11914 ;;
11915 *)
11916 echo "${enable_threads} is an unknown thread package" 1>&2
11917 exit 1
11918 ;;
11919 esac
11920
11921 if test x${thread_file} = x; then
11922 # No thread file set by target-specific clauses in config.gcc,
11923 # so use file chosen by default logic above
11924 thread_file=${target_thread_file}
11925 fi
11926
11927 # Make gthr-default.h if we have a thread file.
11928 gthread_flags=
11929 if test $thread_file != single; then
11930 rm -f gthr-default.h
11931 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11932 gthread_flags=-DHAVE_GTHR_DEFAULT
11933 fi
11934
11935
11936 # --------
11937 # UNSORTED
11938 # --------
11939
11940 use_cxa_atexit=no
11941 if test x$enable___cxa_atexit = xyes || \
11942 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11943 if test x$host = x$target; then
11944 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11945 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11946 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h. */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11955 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
11956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11957 #define __cxa_atexit innocuous___cxa_atexit
11958
11959 /* System header to define __stub macros and hopefully few prototypes,
11960 which can conflict with char __cxa_atexit (); below.
11961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11962 <limits.h> exists even on freestanding compilers. */
11963
11964 #ifdef __STDC__
11965 # include <limits.h>
11966 #else
11967 # include <assert.h>
11968 #endif
11969
11970 #undef __cxa_atexit
11971
11972 /* Override any gcc2 internal prototype to avoid an error. */
11973 #ifdef __cplusplus
11974 extern "C"
11975 {
11976 #endif
11977 /* We use char because int might match the return type of a gcc2
11978 builtin and then its argument prototype would still apply. */
11979 char __cxa_atexit ();
11980 /* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
11984 choke me
11985 #else
11986 char (*f) () = __cxa_atexit;
11987 #endif
11988 #ifdef __cplusplus
11989 }
11990 #endif
11991
11992 int
11993 main ()
11994 {
11995 return f != __cxa_atexit;
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002 (eval $ac_link) 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_cv_func___cxa_atexit=yes
12022 else
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026 ac_cv_func___cxa_atexit=no
12027 fi
12028 rm -f conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030 fi
12031 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12032 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12033 if test $ac_cv_func___cxa_atexit = yes; then
12034 use_cxa_atexit=yes
12035 else
12036 echo "__cxa_atexit can't be enabled on this target"
12037 fi
12038
12039 else
12040 # We can't check for __cxa_atexit when building a cross, so assume
12041 # it is available
12042 use_cxa_atexit=yes
12043 fi
12044 if test x$use_cxa_atexit = xyes; then
12045
12046 cat >>confdefs.h <<\_ACEOF
12047 #define DEFAULT_USE_CXA_ATEXIT 1
12048 _ACEOF
12049
12050 fi
12051 fi
12052
12053 # Look for a file containing extra machine modes.
12054 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12055 extra_modes_file='$(srcdir)'/config/${extra_modes}
12056
12057
12058 cat >>confdefs.h <<_ACEOF
12059 #define EXTRA_MODES_FILE "config/$extra_modes"
12060 _ACEOF
12061
12062 fi
12063
12064 # auto-host.h is the file containing items generated by autoconf and is
12065 # the first file included by config.h.
12066 # If host=build, it is correct to have bconfig include auto-host.h
12067 # as well. If host!=build, we are in error and need to do more
12068 # work to find out the build config parameters.
12069 if test x$host = x$build
12070 then
12071 build_auto=auto-host.h
12072 else
12073 # We create a subdir, then run autoconf in the subdir.
12074 # To prevent recursion we set host and build for the new
12075 # invocation of configure to the build for this invocation
12076 # of configure.
12077 tempdir=build.$$
12078 rm -rf $tempdir
12079 mkdir $tempdir
12080 cd $tempdir
12081 case ${srcdir} in
12082 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12083 *) realsrcdir=../${srcdir};;
12084 esac
12085 saved_CFLAGS="${CFLAGS}"
12086 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12087 ${realsrcdir}/configure \
12088 --enable-languages=${enable_languages-all} \
12089 --target=$target_alias --host=$build_alias --build=$build_alias
12090 CFLAGS="${saved_CFLAGS}"
12091
12092 # We just finished tests for the build machine, so rename
12093 # the file auto-build.h in the gcc directory.
12094 mv auto-host.h ../auto-build.h
12095 cd ..
12096 rm -rf $tempdir
12097 build_auto=auto-build.h
12098 fi
12099
12100
12101 tm_file="${tm_file} defaults.h"
12102 tm_p_file="${tm_p_file} tm-preds.h"
12103 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12104 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12105 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12106 # put this back in temporarily.
12107 xm_file="ansidecl.h ${xm_file}"
12108
12109 # --------
12110 # UNSORTED
12111 # --------
12112
12113 # Compile in configure arguments.
12114 if test -f configargs.h ; then
12115 # Being re-configured.
12116 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12117 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12118 else
12119 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12120 fi
12121
12122 # Double all backslashes and backslash all quotes to turn
12123 # gcc_config_arguments into a C string.
12124 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12125 $gcc_config_arguments
12126 EOF
12127 gcc_config_arguments_str=`cat conftest.out`
12128 rm -f conftest.out
12129
12130 cat > configargs.h <<EOF
12131 /* Generated automatically. */
12132 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12133 static const char thread_model[] = "$thread_file";
12134
12135 static const struct {
12136 const char *name, *value;
12137 } configure_default_options[] = $configure_default_options;
12138 EOF
12139
12140 # Internationalization
12141 PACKAGE=gcc
12142 VERSION="$gcc_version"
12143
12144 cat >>confdefs.h <<_ACEOF
12145 #define PACKAGE "$PACKAGE"
12146 _ACEOF
12147
12148
12149
12150
12151 # If we haven't got the data from the intl directory,
12152 # assume NLS is disabled.
12153 USE_NLS=no
12154 LIBINTL=
12155 LIBINTL_DEP=
12156 INCINTL=
12157 XGETTEXT=
12158 GMSGFMT=
12159 POSUB=
12160 if test -f ../intl/config.intl; then
12161 . ../intl/config.intl
12162 fi
12163 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12164 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12165 if test x"$USE_NLS" != xyes; then
12166 echo "$as_me:$LINENO: result: no" >&5
12167 echo "${ECHO_T}no" >&6
12168 else
12169 echo "$as_me:$LINENO: result: yes" >&5
12170 echo "${ECHO_T}yes" >&6
12171
12172 cat >>confdefs.h <<\_ACEOF
12173 #define ENABLE_NLS 1
12174 _ACEOF
12175
12176
12177 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12178 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12179 # Look for .po and .gmo files in the source directory.
12180 CATALOGS=
12181 XLINGUAS=
12182 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12183 # If there aren't any .gmo files the shell will give us the
12184 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12185 # weeded out.
12186 case "$cat" in *\**)
12187 continue;;
12188 esac
12189 # The quadruple backslash is collapsed to a double backslash
12190 # by the backticks, then collapsed again by the double quotes,
12191 # leaving us with one backslash in the sed expression (right
12192 # before the dot that mustn't act as a wildcard).
12193 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12194 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12195 # The user is allowed to set LINGUAS to a list of languages to
12196 # install catalogs for. If it's empty that means "all of them."
12197 if test "x$LINGUAS" = x; then
12198 CATALOGS="$CATALOGS $cat"
12199 XLINGUAS="$XLINGUAS $lang"
12200 else
12201 case "$LINGUAS" in *$lang*)
12202 CATALOGS="$CATALOGS $cat"
12203 XLINGUAS="$XLINGUAS $lang"
12204 ;;
12205 esac
12206 fi
12207 done
12208 LINGUAS="$XLINGUAS"
12209 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12210 echo "${ECHO_T}$LINGUAS" >&6
12211 fi
12212
12213 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12214 # -liconv on the link line twice.
12215 case "$LIBINTL" in *$LIBICONV*)
12216 LIBICONV= ;;
12217 esac
12218
12219 # Windows32 Registry support for specifying GCC installation paths.
12220 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12221 if test "${enable_win32_registry+set}" = set; then
12222 enableval="$enable_win32_registry"
12223
12224 fi;
12225 case $host_os in
12226 win32 | pe | cygwin* | mingw32* | uwin*)
12227 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12228 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12229 if test "x$enable_win32_registry" != xno; then
12230
12231 cat >>confdefs.h <<\_ACEOF
12232 #define ENABLE_WIN32_REGISTRY 1
12233 _ACEOF
12234
12235 echo "$as_me:$LINENO: result: yes" >&5
12236 echo "${ECHO_T}yes" >&6
12237 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12238 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12239 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 else
12242 ac_func_search_save_LIBS=$LIBS
12243 ac_cv_search_RegOpenKeyExA=no
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250
12251 /* Override any gcc2 internal prototype to avoid an error. */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 /* We use char because int might match the return type of a gcc2
12256 builtin and then its argument prototype would still apply. */
12257 char RegOpenKeyExA ();
12258 int
12259 main ()
12260 {
12261 RegOpenKeyExA ();
12262 ;
12263 return 0;
12264 }
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try='test -s conftest$ac_exeext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 ac_cv_search_RegOpenKeyExA="none required"
12288 else
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 fi
12293 rm -f conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12296 for ac_lib in advapi32; do
12297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h. */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304
12305 /* Override any gcc2 internal prototype to avoid an error. */
12306 #ifdef __cplusplus
12307 extern "C"
12308 #endif
12309 /* We use char because int might match the return type of a gcc2
12310 builtin and then its argument prototype would still apply. */
12311 char RegOpenKeyExA ();
12312 int
12313 main ()
12314 {
12315 RegOpenKeyExA ();
12316 ;
12317 return 0;
12318 }
12319 _ACEOF
12320 rm -f conftest.$ac_objext conftest$ac_exeext
12321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12322 (eval $ac_link) 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } &&
12329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12342 break
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12346
12347 fi
12348 rm -f conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350 done
12351 fi
12352 LIBS=$ac_func_search_save_LIBS
12353 fi
12354 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12355 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12356 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12357 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12358
12359 fi
12360
12361 else
12362 echo "$as_me:$LINENO: result: no" >&5
12363 echo "${ECHO_T}no" >&6
12364 fi
12365
12366 # Check if user specified a different registry key.
12367 case "x${enable_win32_registry}" in
12368 x | xyes)
12369 # default.
12370 gcc_cv_win32_registry_key="$VERSION"
12371 ;;
12372 xno)
12373 # no registry lookup.
12374 gcc_cv_win32_registry_key=''
12375 ;;
12376 *)
12377 # user-specified key.
12378 gcc_cv_win32_registry_key="$enable_win32_registry"
12379 ;;
12380 esac
12381
12382 if test "x$enable_win32_registry" != xno; then
12383 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12384 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12385
12386 cat >>confdefs.h <<_ACEOF
12387 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12388 _ACEOF
12389
12390 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12391 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12392 fi
12393 ;;
12394 esac
12395
12396 # Get an absolute path to the GCC top-level source directory
12397 holddir=`${PWDCMD-pwd}`
12398 cd $srcdir
12399 topdir=`${PWDCMD-pwd}`
12400 cd $holddir
12401
12402 # Conditionalize the makefile for this host machine.
12403 xmake_file=
12404 for f in ${host_xmake_file}
12405 do
12406 if test -f ${srcdir}/config/$f
12407 then
12408 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12409 fi
12410 done
12411
12412 # Conditionalize the makefile for this target machine.
12413 tmake_file_=
12414 for f in ${tmake_file}
12415 do
12416 if test -f ${srcdir}/config/$f
12417 then
12418 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12419 fi
12420 done
12421 tmake_file="${tmake_file_}"
12422
12423 # If the host doesn't support symlinks, modify CC in
12424 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12425 # Otherwise, we can use "CC=$(CC)".
12426 rm -f symtest.tem
12427 case "$LN_S" in
12428 *-s*)
12429 cc_set_by_configure="\$(CC)"
12430 quoted_cc_set_by_configure="\$(CC)"
12431 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12432 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12433 ;;
12434 *)
12435 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12436 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12437 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12438 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12439 ;;
12440 esac
12441
12442 # This is a terrible hack which will go away some day.
12443 host_cc_for_libada=${CC}
12444
12445
12446 out_object_file=`basename $out_file .c`.o
12447
12448 tm_file_list=
12449 tm_include_list=
12450 for f in $tm_file; do
12451 case $f in
12452 defaults.h )
12453 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12454 tm_include_list="${tm_include_list} $f"
12455 ;;
12456 * )
12457 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12458 tm_include_list="${tm_include_list} config/$f"
12459 ;;
12460 esac
12461 done
12462
12463 tm_p_file_list=
12464 tm_p_include_list=
12465 for f in $tm_p_file; do
12466 case $f in
12467 tm-preds.h )
12468 tm_p_file_list="${tm_p_file_list} $f"
12469 tm_p_include_list="${tm_p_include_list} $f"
12470 ;;
12471 * )
12472 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12473 tm_p_include_list="${tm_p_include_list} config/$f"
12474 esac
12475 done
12476
12477 xm_file_list=
12478 xm_include_list=
12479 for f in $xm_file; do
12480 case $f in
12481 ansidecl.h )
12482 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12483 xm_include_list="${xm_include_list} $f"
12484 ;;
12485 auto-host.h )
12486 xm_file_list="${xm_file_list} $f"
12487 xm_include_list="${xm_include_list} $f"
12488 ;;
12489 * )
12490 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12491 xm_include_list="${xm_include_list} config/$f"
12492 ;;
12493 esac
12494 done
12495
12496 host_xm_file_list=
12497 host_xm_include_list=
12498 for f in $host_xm_file; do
12499 case $f in
12500 ansidecl.h )
12501 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12502 host_xm_include_list="${host_xm_include_list} $f"
12503 ;;
12504 auto-host.h )
12505 host_xm_file_list="${host_xm_file_list} $f"
12506 host_xm_include_list="${host_xm_include_list} $f"
12507 ;;
12508 * )
12509 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12510 host_xm_include_list="${host_xm_include_list} config/$f"
12511 ;;
12512 esac
12513 done
12514
12515 build_xm_file_list=
12516 for f in $build_xm_file; do
12517 case $f in
12518 ansidecl.h )
12519 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12520 build_xm_include_list="${build_xm_include_list} $f"
12521 ;;
12522 auto-build.h | auto-host.h )
12523 build_xm_file_list="${build_xm_file_list} $f"
12524 build_xm_include_list="${build_xm_include_list} $f"
12525 ;;
12526 * )
12527 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12528 build_xm_include_list="${build_xm_include_list} config/$f"
12529 ;;
12530 esac
12531 done
12532
12533 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12534 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12535 CROSS=
12536 ALL=all.internal
12537 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12538 if test x$host != x$target
12539 then
12540 CROSS="-DCROSS_COMPILE"
12541 ALL=all.cross
12542 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12543 case "$host","$target" in
12544 # Darwin crosses can use the host system's libraries and headers,
12545 # because of the fat library support. Of course, it must be the
12546 # same version of Darwin on both sides. Allow the user to
12547 # just say --target=foo-darwin without a version number to mean
12548 # "the version on this system".
12549 *-*-darwin*,*-*-darwin*)
12550 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12551 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12552 if test $hostos = $targetos -o $targetos = darwin ; then
12553 CROSS=
12554 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12555 with_headers=yes
12556 fi
12557 ;;
12558
12559 i?86-*-*,x86_64-*-* \
12560 | powerpc*-*-*,powerpc64*-*-*)
12561 CROSS="$CROSS -DNATIVE_CROSS" ;;
12562 esac
12563 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12564 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12565 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12566 fi
12567
12568 # If this is a cross-compiler that does not
12569 # have its own set of headers then define
12570 # inhibit_libc
12571
12572 # If this is using newlib, without having the headers available now,
12573 # then define inhibit_libc in LIBGCC2_CFLAGS.
12574 # This prevents libgcc2 from containing any code which requires libc
12575 # support.
12576 inhibit_libc=
12577 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12578 test x$with_newlib = xyes ; } &&
12579 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12580 inhibit_libc=-Dinhibit_libc
12581 fi
12582
12583
12584 # When building gcc with a cross-compiler, we need to adjust things so
12585 # that the generator programs are still built with the native compiler.
12586 # Also, we cannot run fixincludes or fix-header.
12587
12588 # These are the normal (build=host) settings:
12589 CC_FOR_BUILD='$(CC)'
12590 BUILD_CFLAGS='$(ALL_CFLAGS)'
12591 STMP_FIXINC=stmp-fixinc
12592
12593 # Possibly disable fixproto, on a per-target basis.
12594 case ${use_fixproto} in
12595 no)
12596 STMP_FIXPROTO=
12597 ;;
12598 yes)
12599 STMP_FIXPROTO=stmp-fixproto
12600 ;;
12601 esac
12602
12603
12604 # And these apply if build != host, or we are generating coverage data
12605 if test x$build != x$host || test "x$coverage_flags" != x
12606 then
12607 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12608
12609 if test "x$TARGET_SYSTEM_ROOT" = x; then
12610 if "x$STMP_FIXPROTO" != x ; then
12611 STMP_FIXPROTO=stmp-install-fixproto
12612 fi
12613 fi
12614 fi
12615
12616 # Expand extra_headers to include complete path.
12617 # This substitutes for lots of t-* files.
12618 extra_headers_list=
12619 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12620 for file in ${extra_headers} ; do
12621 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12622 done
12623
12624 # Define collect2 in Makefile.
12625 case $host_can_use_collect2 in
12626 no) collect2= ;;
12627 *) collect2='collect2$(exeext)' ;;
12628 esac
12629
12630
12631 # Add a definition of USE_COLLECT2 if system wants one.
12632 case $use_collect2 in
12633 no) use_collect2= ;;
12634 "") ;;
12635 *)
12636 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12637 xm_defines="${xm_defines} USE_COLLECT2"
12638 case $host_can_use_collect2 in
12639 no)
12640 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12641 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12642 { (exit 1); exit 1; }; }
12643 ;;
12644 esac
12645 ;;
12646 esac
12647
12648 # ---------------------------
12649 # Assembler & linker features
12650 # ---------------------------
12651
12652 # Identify the assembler which will work hand-in-glove with the newly
12653 # built GCC, so that we can examine its features. This is the assembler
12654 # which will be driven by the driver program.
12655 #
12656 # If build != host, and we aren't building gas in-tree, we identify a
12657 # build->target assembler and hope that it will have the same features
12658 # as the host->target assembler we'll be using.
12659 echo "$as_me:$LINENO: checking what assembler to use" >&5
12660 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12661 in_tree_gas=no
12662 gcc_cv_as=
12663 gcc_cv_gas_major_version=
12664 gcc_cv_gas_minor_version=
12665 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12666 if test -x "$DEFAULT_ASSEMBLER"; then
12667 gcc_cv_as="$DEFAULT_ASSEMBLER"
12668 elif test -x as$build_exeext; then
12669 # Build using assembler in the current directory.
12670 gcc_cv_as=./as$build_exeext
12671 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12672 && test -f ../gas/Makefile \
12673 && test x$build = x$host; then
12674 # Single tree build which includes gas. We want to prefer it
12675 # over whatever linker top-level may have detected, since
12676 # we'll use what we're building after installation anyway.
12677 in_tree_gas=yes
12678 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12679 for f in $gcc_cv_as_bfd_srcdir/configure \
12680 $gcc_cv_as_gas_srcdir/configure \
12681 $gcc_cv_as_gas_srcdir/configure.in \
12682 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12683 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12684 if test x$gcc_cv_gas_version != x; then
12685 break
12686 fi
12687 done
12688 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12689 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12690 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12691 case $gcc_cv_gas_patch_version in
12692 "") gcc_cv_gas_patch_version="0" ;;
12693 esac
12694 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12695 + $gcc_cv_gas_minor_version \) \* 1000 \
12696 + $gcc_cv_gas_patch_version`
12697
12698 rm -f as$build_exeext
12699 $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12700 in_tree_gas_is_elf=no
12701 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12702 || (grep 'obj_format = multi' ../gas/Makefile \
12703 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12704 then
12705 in_tree_gas_is_elf=yes
12706 fi
12707 elif test -x "$AS_FOR_TARGET"; then
12708 gcc_cv_as="$AS_FOR_TARGET"
12709 elif test -x "$AS" && test x$host = x$target; then
12710 gcc_cv_as="$AS"
12711 fi
12712
12713 if test "x$gcc_cv_as" = x; then
12714 # Search the same directories that the installed compiler will
12715 # search. Else we may find the wrong assembler and lose. If we
12716 # do not find a suitable assembler binary, then try the user's
12717 # path.
12718 #
12719 # Also note we have to check MD_EXEC_PREFIX before checking the
12720 # user's path. Unfortunately, there is no good way to get at the
12721 # value of MD_EXEC_PREFIX here. So we do a brute force search
12722 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12723 # to be fixed as part of the make/configure rewrite too.
12724
12725 if test "x$exec_prefix" = xNONE; then
12726 if test "x$prefix" = xNONE; then
12727 test_prefix=/usr/local
12728 else
12729 test_prefix=$prefix
12730 fi
12731 else
12732 test_prefix=$exec_prefix
12733 fi
12734
12735 # If the loop below does not find an assembler, then use whatever
12736 # one we can find in the users's path. We are looking for a
12737 # ${build} -> ${target} assembler.
12738 if test "x$program_prefix" != xNONE; then
12739 gcc_cv_as=${program_prefix}as$build_exeext
12740 elif test x$build != x$host && test x$build != x$target; then
12741 gcc_cv_as=${target_noncanonical}-as$build_exeext
12742 else
12743 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12744 fi
12745
12746 if test x$host = x$build; then
12747 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12748 $test_prefix/libexec/gcc/$target_noncanonical \
12749 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12750 /usr/lib/gcc/$target_noncanonical \
12751 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12752 $test_prefix/$target_noncanonical/bin"
12753 else
12754 test_dirs=
12755 fi
12756
12757 if test x$build = x$target; then
12758 test_dirs="$test_dirs \
12759 /usr/libexec \
12760 /usr/ccs/gcc \
12761 /usr/ccs/bin \
12762 /udk/usr/ccs/bin \
12763 /bsd43/usr/lib/cmplrs/cc \
12764 /usr/cross64/usr/bin \
12765 /usr/lib/cmplrs/cc \
12766 /sysv/usr/lib/cmplrs/cc \
12767 /svr4/usr/lib/cmplrs/cc \
12768 /usr/bin"
12769 fi
12770
12771 for dir in $test_dirs; do
12772 if test -x $dir/as$build_exeext; then
12773 gcc_cv_as=$dir/as$build_exeext
12774 break;
12775 fi
12776 done
12777 fi
12778 case $in_tree_gas in
12779 yes)
12780 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12781 echo "${ECHO_T}\"newly built gas\"" >&6
12782 ;;
12783 no)
12784 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12785 echo "${ECHO_T}$gcc_cv_as" >&6
12786 ;;
12787 esac
12788
12789 # Identify the linker which will work hand-in-glove with the newly
12790 # built GCC, so that we can examine its features. This is the linker
12791 # which will be driven by the driver program.
12792 #
12793 # If build != host, and we aren't building gas in-tree, we identify a
12794 # build->target linker and hope that it will have the same features
12795 # as the host->target linker we'll be using.
12796 echo "$as_me:$LINENO: checking what linker to use" >&5
12797 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12798 in_tree_ld=no
12799 gcc_cv_ld=
12800 gcc_cv_gld_major_version=
12801 gcc_cv_gld_minor_version=
12802 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12803 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12804 if test -x "$DEFAULT_LINKER"; then
12805 gcc_cv_ld="$DEFAULT_LINKER"
12806 elif test -x collect-ld$build_exeext; then
12807 # Build using linker in the current directory.
12808 gcc_cv_ld=./collect-ld$build_exeext
12809 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12810 && test -f ../ld/Makefile \
12811 && test x$build = x$host; then
12812 # Single tree build which includes ld. We want to prefer it
12813 # over whatever linker top-level may have detected, since
12814 # we'll use what we're building after installation anyway.
12815 in_tree_ld=yes
12816 in_tree_ld_is_elf=no
12817 if (grep 'EMUL = .*elf' ../ld/Makefile \
12818 || grep 'EMUL = .*linux' ../ld/Makefile \
12819 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12820 in_tree_ld_is_elf=yes
12821 fi
12822 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
12823 do
12824 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12825 if test x$gcc_cv_gld_version != x; then
12826 break
12827 fi
12828 done
12829 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12830 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12831 rm -f collect-ld$build_exeext
12832 $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12833 elif test -x "$LD_FOR_TARGET"; then
12834 gcc_cv_ld="$LD_FOR_TARGET"
12835 elif test -x "$LD" && test x$host = x$target; then
12836 gcc_cv_ld="$LD"
12837 fi
12838
12839 if test "x$gcc_cv_ld" = x; then
12840 # Search the same directories that the installed compiler will
12841 # search. Else we may find the wrong linker and lose. If we
12842 # do not find a suitable linker binary, then try the user's
12843 # path.
12844 #
12845 # Also note we have to check MD_EXEC_PREFIX before checking the
12846 # user's path. Unfortunately, there is no good way to get at the
12847 # value of MD_EXEC_PREFIX here. So we do a brute force search
12848 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12849 # to be fixed as part of the make/configure rewrite too.
12850
12851 if test "x$exec_prefix" = xNONE; then
12852 if test "x$prefix" = xNONE; then
12853 test_prefix=/usr/local
12854 else
12855 test_prefix=$prefix
12856 fi
12857 else
12858 test_prefix=$exec_prefix
12859 fi
12860
12861 # If the loop below does not find a linker, then use whatever
12862 # one we can find in the users's path. We are looking for a
12863 # ${build} -> ${target} linker.
12864 if test "x$program_prefix" != xNONE; then
12865 gcc_cv_ld=${program_prefix}ld$build_exeext
12866 elif test x$build != x$host && test x$build != x$target; then
12867 gcc_cv_ld=${target_noncanonical}-ld$build_exeext
12868 else
12869 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
12870 fi
12871
12872 if test x$host = x$build; then
12873 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12874 $test_prefix/libexec/gcc/$target_noncanonical \
12875 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12876 /usr/lib/gcc/$target_noncanonical \
12877 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12878 $test_prefix/$target_noncanonical/bin"
12879 else
12880 test_dirs=
12881 fi
12882
12883 if test x$build = x$target; then
12884 test_dirs="$test_dirs \
12885 /usr/libexec \
12886 /usr/ccs/gcc \
12887 /usr/ccs/bin \
12888 /udk/usr/ccs/bin \
12889 /bsd43/usr/lib/cmplrs/cc \
12890 /usr/cross64/usr/bin \
12891 /usr/lib/cmplrs/cc \
12892 /sysv/usr/lib/cmplrs/cc \
12893 /svr4/usr/lib/cmplrs/cc \
12894 /usr/bin"
12895 fi
12896
12897 for dir in $test_dirs; do
12898 if test -x $dir/ld$build_exeext; then
12899 gcc_cv_ld=$dir/ld$build_exeext
12900 break;
12901 fi
12902 done
12903 fi
12904 case $in_tree_ld in
12905 yes)
12906 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12907 echo "${ECHO_T}\"newly built ld\"" >&6
12908 ;;
12909 no)
12910 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12911 echo "${ECHO_T}$gcc_cv_ld" >&6
12912 ;;
12913 esac
12914
12915 # Figure out what nm we will be using.
12916 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12917 echo "$as_me:$LINENO: checking what nm to use" >&5
12918 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12919 in_tree_nm=no
12920 if test -x nm$build_exeext; then
12921 gcc_cv_nm=./nm$build_exeext
12922 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12923 && test -f ../binutils/Makefile; then
12924 # Single tree build which includes binutils.
12925 in_tree_nm=yes
12926 gcc_cv_nm=./nm$build_exeext
12927 rm -f nm$build_exeext
12928 $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
12929 elif test "x$program_prefix" != xNONE; then
12930 gcc_cv_nm=${program_prefix}nm$build_exeext
12931 elif test x$build != x$host && test x$build != x$target; then
12932 gcc_cv_nm=${target_noncanonical}-nm$build_exeext
12933 else
12934 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
12935 fi
12936 case $in_tree_nm in
12937 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12938 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12939 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12940 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12941 esac
12942
12943 # Figure out what objdump we will be using.
12944 echo "$as_me:$LINENO: checking what objdump to use" >&5
12945 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12946 in_tree_objdump=no
12947 if test -x objdump$build_exeext; then
12948 gcc_cv_objdump=./objdump$build_exeext
12949 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12950 && test -f ../binutils/Makefile; then
12951 # Single tree build which includes binutils.
12952 in_tree_objdump=yes
12953 gcc_cv_objdump=./objdump$build_exeext
12954 rm -f objdump$build_exeext
12955 $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
12956 elif test "x$program_prefix" != xNONE; then
12957 gcc_cv_objdump=${program_prefix}objdump$build_exeext
12958 elif test x$build != x$host && test x$build != x$target; then
12959 gcc_cv_objdump=${target_noncanonical}-objdump$build_exeext
12960 else
12961 gcc_cv_objdump=`echo objdump | \
12962 sed "${program_transform_name}"`$build_exeext
12963 fi
12964 case $in_tree_objdump in
12965 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12966 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12967 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12968 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12969 esac
12970
12971 # Figure out what assembler alignment features are present.
12972 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
12973 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
12974 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977 gcc_cv_as_balign_and_p2align=no
12978 if test $in_tree_gas = yes; then
12979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
12980 then gcc_cv_as_balign_and_p2align=yes
12981 fi
12982 elif test x$gcc_cv_as != x; then
12983 echo '.balign 4
12984 .p2align 2' > conftest.s
12985 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }
12991 then
12992 gcc_cv_as_balign_and_p2align=yes
12993 else
12994 echo "configure: failed program was" >&5
12995 cat conftest.s >&5
12996 fi
12997 rm -f conftest.o conftest.s
12998 fi
12999 fi
13000 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13001 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13002 if test $gcc_cv_as_balign_and_p2align = yes; then
13003
13004 cat >>confdefs.h <<\_ACEOF
13005 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13006 _ACEOF
13007
13008 fi
13009
13010 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13011 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13012 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 else
13015 gcc_cv_as_max_skip_p2align=no
13016 if test $in_tree_gas = yes; then
13017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13018 then gcc_cv_as_max_skip_p2align=yes
13019 fi
13020 elif test x$gcc_cv_as != x; then
13021 echo '.p2align 4,,7' > conftest.s
13022 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }
13028 then
13029 gcc_cv_as_max_skip_p2align=yes
13030 else
13031 echo "configure: failed program was" >&5
13032 cat conftest.s >&5
13033 fi
13034 rm -f conftest.o conftest.s
13035 fi
13036 fi
13037 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13038 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13039 if test $gcc_cv_as_max_skip_p2align = yes; then
13040
13041 cat >>confdefs.h <<\_ACEOF
13042 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13043 _ACEOF
13044
13045 fi
13046
13047 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13048 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13049 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13050 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 else
13052 gcc_cv_as_subsection_m1=no
13053 if test $in_tree_gas = yes; then
13054 if test $in_tree_gas_is_elf = yes \
13055 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13056 then gcc_cv_as_subsection_m1=yes
13057 fi
13058 elif test x$gcc_cv_as != x; then
13059 echo 'conftest_label1: .word 0
13060 .subsection -1
13061 conftest_label2: .word 0
13062 .previous' > conftest.s
13063 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }
13069 then
13070 if test x$gcc_cv_nm != x; then
13071 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13072 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13073 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13074 then :
13075 else gcc_cv_as_subsection_m1=yes
13076 fi
13077 rm -f conftest.nm1 conftest.nm2
13078 fi
13079 else
13080 echo "configure: failed program was" >&5
13081 cat conftest.s >&5
13082 fi
13083 rm -f conftest.o conftest.s
13084 fi
13085 fi
13086 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13087 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13088 if test $gcc_cv_as_subsection_m1 = yes; then
13089
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_GAS_SUBSECTION_ORDERING 1
13092 _ACEOF
13093
13094 fi
13095
13096 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13097 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13098 if test "${gcc_cv_as_weak+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 else
13101 gcc_cv_as_weak=no
13102 if test $in_tree_gas = yes; then
13103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13104 then gcc_cv_as_weak=yes
13105 fi
13106 elif test x$gcc_cv_as != x; then
13107 echo ' .weak foobar' > conftest.s
13108 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13111 ac_status=$?
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }
13114 then
13115 gcc_cv_as_weak=yes
13116 else
13117 echo "configure: failed program was" >&5
13118 cat conftest.s >&5
13119 fi
13120 rm -f conftest.o conftest.s
13121 fi
13122 fi
13123 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13124 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13125 if test $gcc_cv_as_weak = yes; then
13126
13127 cat >>confdefs.h <<\_ACEOF
13128 #define HAVE_GAS_WEAK 1
13129 _ACEOF
13130
13131 fi
13132
13133 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13134 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13135 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 else
13138 gcc_cv_as_nsubspa_comdat=no
13139 if test $in_tree_gas = yes; then
13140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13141 then gcc_cv_as_nsubspa_comdat=yes
13142 fi
13143 elif test x$gcc_cv_as != x; then
13144 echo ' .SPACE $TEXT$
13145 .NSUBSPA $CODE$,COMDAT' > conftest.s
13146 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }
13152 then
13153 gcc_cv_as_nsubspa_comdat=yes
13154 else
13155 echo "configure: failed program was" >&5
13156 cat conftest.s >&5
13157 fi
13158 rm -f conftest.o conftest.s
13159 fi
13160 fi
13161 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13162 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13163 if test $gcc_cv_as_nsubspa_comdat = yes; then
13164
13165 cat >>confdefs.h <<\_ACEOF
13166 #define HAVE_GAS_NSUBSPA_COMDAT 1
13167 _ACEOF
13168
13169 fi
13170
13171 # .hidden needs to be supported in both the assembler and the linker,
13172 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13173 # This is irritatingly difficult to feature test for; we have to check the
13174 # date string after the version number. If we've got an in-tree
13175 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13176 # to be safe.
13177 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13178 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13179 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13180 if test "${gcc_cv_as_hidden+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183 gcc_cv_as_hidden=no
13184 if test $in_tree_gas = yes; then
13185 if test $in_tree_gas_is_elf = yes \
13186 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13187 then gcc_cv_as_hidden=yes
13188 fi
13189 elif test x$gcc_cv_as != x; then
13190 echo ' .hidden foobar
13191 foobar:' > conftest.s
13192 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; }
13198 then
13199 gcc_cv_as_hidden=yes
13200 else
13201 echo "configure: failed program was" >&5
13202 cat conftest.s >&5
13203 fi
13204 rm -f conftest.o conftest.s
13205 fi
13206 fi
13207 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13208 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13209
13210
13211 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13212 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13213 if test "${gcc_cv_ld_hidden+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216 if test $in_tree_ld = yes ; then
13217 gcc_cv_ld_hidden=no
13218 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 \
13219 && test $in_tree_ld_is_elf = yes; then
13220 gcc_cv_ld_hidden=yes
13221 fi
13222 else
13223 gcc_cv_ld_hidden=yes
13224 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13225 if echo "$ld_ver" | grep GNU > /dev/null; then
13226 ld_vers=`echo $ld_ver | sed -n \
13227 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13228 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13229 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13230 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13231 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13232 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13233 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'`
13234 if test 0"$ld_date" -lt 20020404; then
13235 if test -n "$ld_date"; then
13236 # If there was date string, but was earlier than 2002-04-04, fail
13237 gcc_cv_ld_hidden=no
13238 elif test -z "$ld_vers"; then
13239 # If there was no date string nor ld version number, something is wrong
13240 gcc_cv_ld_hidden=no
13241 else
13242 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13243 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13244 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13245 test -z "$ld_vers_patch" && ld_vers_patch=0
13246 if test "$ld_vers_major" -lt 2; then
13247 gcc_cv_ld_hidden=no
13248 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13249 gcc_cv_ld_hidden="no"
13250 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13251 gcc_cv_ld_hidden=no
13252 fi
13253 fi
13254 fi
13255 else
13256 case "${target}" in
13257 hppa64*-*-hpux* | ia64*-*-hpux*)
13258 gcc_cv_ld_hidden=yes
13259 ;;
13260 *)
13261 gcc_cv_ld_hidden=no
13262 ;;
13263 esac
13264 fi
13265 fi
13266 fi
13267 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13268 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13269 libgcc_visibility=no
13270
13271 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13272 libgcc_visibility=yes
13273
13274 cat >>confdefs.h <<\_ACEOF
13275 #define HAVE_GAS_HIDDEN 1
13276 _ACEOF
13277
13278 fi
13279
13280 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13281 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13282 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13283 if test "${gcc_cv_as_leb128+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 else
13286 gcc_cv_as_leb128=no
13287 if test $in_tree_gas = yes; then
13288 if test $in_tree_gas_is_elf = yes \
13289 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13290 then gcc_cv_as_leb128=yes
13291 fi
13292 elif test x$gcc_cv_as != x; then
13293 echo ' .data
13294 .uleb128 L2 - L1
13295 L1:
13296 .uleb128 1280
13297 .sleb128 -1010
13298 L2:' > conftest.s
13299 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }
13305 then
13306 # GAS versions before 2.11 do not support uleb128,
13307 # despite appearing to.
13308 # ??? There exists an elf-specific test that will crash
13309 # the assembler. Perhaps it's better to figure out whether
13310 # arbitrary sections are supported and try the test.
13311 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13312 if echo "$as_ver" | grep GNU > /dev/null; then
13313 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13314 as_major=`echo $as_ver | sed 's/\..*//'`
13315 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13316 if test $as_major -eq 2 && test $as_minor -lt 11
13317 then :
13318 else gcc_cv_as_leb128=yes
13319 fi
13320 fi
13321 else
13322 echo "configure: failed program was" >&5
13323 cat conftest.s >&5
13324 fi
13325 rm -f conftest.o conftest.s
13326 fi
13327 fi
13328 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13329 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13330 if test $gcc_cv_as_leb128 = yes; then
13331
13332 cat >>confdefs.h <<\_ACEOF
13333 #define HAVE_AS_LEB128 1
13334 _ACEOF
13335
13336 fi
13337
13338 # GAS versions up to and including 2.11.0 may mis-optimize
13339 # .eh_frame data.
13340 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13341 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13342 if test "${gcc_cv_as_eh_frame+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345 gcc_cv_as_eh_frame=no
13346 if test $in_tree_gas = yes; then
13347 if test $in_tree_gas_is_elf = yes \
13348 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13349 then gcc_cv_as_eh_frame=yes
13350 fi
13351 elif test x$gcc_cv_as != x; then
13352 echo ' .text
13353 .LFB1:
13354 .4byte 0
13355 .L1:
13356 .4byte 0
13357 .LFE1:
13358 .section .eh_frame,"aw",@progbits
13359 __FRAME_BEGIN__:
13360 .4byte .LECIE1-.LSCIE1
13361 .LSCIE1:
13362 .4byte 0x0
13363 .byte 0x1
13364 .ascii "z\0"
13365 .byte 0x1
13366 .byte 0x78
13367 .byte 0x1a
13368 .byte 0x0
13369 .byte 0x4
13370 .4byte 1
13371 .p2align 1
13372 .LECIE1:
13373 .LSFDE1:
13374 .4byte .LEFDE1-.LASFDE1
13375 .LASFDE1:
13376 .4byte .LASFDE1-__FRAME_BEGIN__
13377 .4byte .LFB1
13378 .4byte .LFE1-.LFB1
13379 .byte 0x4
13380 .4byte .LFE1-.LFB1
13381 .byte 0x4
13382 .4byte .L1-.LFB1
13383 .LEFDE1:' > conftest.s
13384 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }
13390 then
13391 cat > conftest.lit <<EOF
13392 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13393 0010 01000000 12000000 18000000 00000000 ................
13394 0020 08000000 04080000 0044 .........D
13395 EOF
13396 cat > conftest.big <<EOF
13397 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13398 0010 00000001 00000012 00000018 00000000 ................
13399 0020 00000008 04000000 0844 .........D
13400 EOF
13401 # If the assembler didn't choke, and we can objdump,
13402 # and we got the correct data, then succeed.
13403 if test x$gcc_cv_objdump != x \
13404 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13405 | tail -3 > conftest.got \
13406 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13407 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13408 then
13409 gcc_cv_as_eh_frame=yes
13410 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 gcc_cv_as_eh_frame=buggy
13417 else
13418 # Uh oh, what do we do now?
13419 gcc_cv_as_eh_frame=no
13420 fi
13421 else
13422 echo "configure: failed program was" >&5
13423 cat conftest.s >&5
13424 fi
13425 rm -f conftest.o conftest.s
13426 fi
13427 fi
13428 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13429 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13430
13431
13432 if test $gcc_cv_as_eh_frame = buggy; then
13433
13434 cat >>confdefs.h <<\_ACEOF
13435 #define USE_AS_TRADITIONAL_FORMAT 1
13436 _ACEOF
13437
13438 fi
13439
13440 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13441 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13442 if test "${gcc_cv_as_shf_merge+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445 gcc_cv_as_shf_merge=no
13446 if test $in_tree_gas = yes; then
13447 if test $in_tree_gas_is_elf = yes \
13448 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13449 then gcc_cv_as_shf_merge=yes
13450 fi
13451 elif test x$gcc_cv_as != x; then
13452 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13453 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }
13459 then
13460 gcc_cv_as_shf_merge=yes
13461 else
13462 echo "configure: failed program was" >&5
13463 cat conftest.s >&5
13464 fi
13465 rm -f conftest.o conftest.s
13466 fi
13467 fi
13468 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13469 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13470
13471 if test $gcc_cv_as_shf_merge = no; then
13472 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13473 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13474 if test "${gcc_cv_as_shf_merge+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477 gcc_cv_as_shf_merge=no
13478 if test $in_tree_gas = yes; then
13479 if test $in_tree_gas_is_elf = yes \
13480 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13481 then gcc_cv_as_shf_merge=yes
13482 fi
13483 elif test x$gcc_cv_as != x; then
13484 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13485 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }
13491 then
13492 gcc_cv_as_shf_merge=yes
13493 else
13494 echo "configure: failed program was" >&5
13495 cat conftest.s >&5
13496 fi
13497 rm -f conftest.o conftest.s
13498 fi
13499 fi
13500 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13501 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13502
13503 fi
13504
13505 cat >>confdefs.h <<_ACEOF
13506 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13507 _ACEOF
13508
13509
13510 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13511 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13512 if test "${gcc_cv_as_comdat_group+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 else
13515 gcc_cv_as_comdat_group=no
13516 if test $in_tree_gas = yes; then
13517 if test $in_tree_gas_is_elf = yes \
13518 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13519 then gcc_cv_as_comdat_group=yes
13520 fi
13521 elif test x$gcc_cv_as != x; then
13522 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13523 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }
13529 then
13530 gcc_cv_as_comdat_group=yes
13531 else
13532 echo "configure: failed program was" >&5
13533 cat conftest.s >&5
13534 fi
13535 rm -f conftest.o conftest.s
13536 fi
13537 fi
13538 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13539 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13540
13541 if test $gcc_cv_as_comdat_group = yes; then
13542 gcc_cv_as_comdat_group_percent=no
13543 else
13544 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13545 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13546 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13548 else
13549 gcc_cv_as_comdat_group_percent=no
13550 if test $in_tree_gas = yes; then
13551 if test $in_tree_gas_is_elf = yes \
13552 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13553 then gcc_cv_as_comdat_group_percent=yes
13554 fi
13555 elif test x$gcc_cv_as != x; then
13556 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13557 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }
13563 then
13564 gcc_cv_as_comdat_group_percent=yes
13565 else
13566 echo "configure: failed program was" >&5
13567 cat conftest.s >&5
13568 fi
13569 rm -f conftest.o conftest.s
13570 fi
13571 fi
13572 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13573 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13574
13575 fi
13576
13577 cat >>confdefs.h <<_ACEOF
13578 #define HAVE_GAS_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`
13579 _ACEOF
13580
13581
13582 # Thread-local storage - the check is heavily parametrized.
13583 conftest_s=
13584 tls_first_major=
13585 tls_first_minor=
13586 tls_as_opt=
13587 case "$target" in
13588 alpha*-*-*)
13589 conftest_s='
13590 .section ".tdata","awT",@progbits
13591 foo: .long 25
13592 .text
13593 ldq $27,__tls_get_addr($29) !literal!1
13594 lda $16,foo($29) !tlsgd!1
13595 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13596 ldq $27,__tls_get_addr($29) !literal!2
13597 lda $16,foo($29) !tlsldm!2
13598 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13599 ldq $1,foo($29) !gotdtprel
13600 ldah $2,foo($29) !dtprelhi
13601 lda $3,foo($2) !dtprello
13602 lda $4,foo($29) !dtprel
13603 ldq $1,foo($29) !gottprel
13604 ldah $2,foo($29) !tprelhi
13605 lda $3,foo($2) !tprello
13606 lda $4,foo($29) !tprel'
13607 tls_first_major=2
13608 tls_first_minor=13
13609 tls_as_opt=--fatal-warnings
13610 ;;
13611 frv*-*-*)
13612 conftest_s='
13613 .section ".tdata","awT",@progbits
13614 x: .long 25
13615 .text
13616 call #gettlsoff(x)'
13617 tls_first_major=2
13618 tls_first_minor=14
13619 ;;
13620 i[34567]86-*-*)
13621 conftest_s='
13622 .section ".tdata","awT",@progbits
13623 foo: .long 25
13624 .text
13625 movl %gs:0, %eax
13626 leal foo@TLSGD(,%ebx,1), %eax
13627 leal foo@TLSLDM(%ebx), %eax
13628 leal foo@DTPOFF(%eax), %edx
13629 movl foo@GOTTPOFF(%ebx), %eax
13630 subl foo@GOTTPOFF(%ebx), %eax
13631 addl foo@GOTNTPOFF(%ebx), %eax
13632 movl foo@INDNTPOFF, %eax
13633 movl $foo@TPOFF, %eax
13634 subl $foo@TPOFF, %eax
13635 leal foo@NTPOFF(%ecx), %eax'
13636 tls_first_major=2
13637 tls_first_minor=14
13638 tls_as_opt=--fatal-warnings
13639 ;;
13640 x86_64-*-*)
13641 conftest_s='
13642 .section ".tdata","awT",@progbits
13643 foo: .long 25
13644 .text
13645 movq %fs:0, %rax
13646 leaq foo@TLSGD(%rip), %rdi
13647 leaq foo@TLSLD(%rip), %rdi
13648 leaq foo@DTPOFF(%rax), %rdx
13649 movq foo@GOTTPOFF(%rip), %rax
13650 movq $foo@TPOFF, %rax'
13651 tls_first_major=2
13652 tls_first_minor=14
13653 tls_as_opt=--fatal-warnings
13654 ;;
13655 ia64-*-*)
13656 conftest_s='
13657 .section ".tdata","awT",@progbits
13658 foo: data8 25
13659 .text
13660 addl r16 = @ltoff(@dtpmod(foo#)), gp
13661 addl r17 = @ltoff(@dtprel(foo#)), gp
13662 addl r18 = @ltoff(@tprel(foo#)), gp
13663 addl r19 = @dtprel(foo#), gp
13664 adds r21 = @dtprel(foo#), r13
13665 movl r23 = @dtprel(foo#)
13666 addl r20 = @tprel(foo#), gp
13667 adds r22 = @tprel(foo#), r13
13668 movl r24 = @tprel(foo#)'
13669 tls_first_major=2
13670 tls_first_minor=13
13671 tls_as_opt=--fatal-warnings
13672 ;;
13673 powerpc-*-*)
13674 conftest_s='
13675 .section ".tdata","awT",@progbits
13676 .align 2
13677 ld0: .space 4
13678 ld1: .space 4
13679 x1: .space 4
13680 x2: .space 4
13681 x3: .space 4
13682 .text
13683 addi 3,31,ld0@got@tlsgd
13684 bl __tls_get_addr
13685 addi 3,31,x1@got@tlsld
13686 bl __tls_get_addr
13687 addi 9,3,x1@dtprel
13688 addis 9,3,x2@dtprel@ha
13689 addi 9,9,x2@dtprel@l
13690 lwz 9,x3@got@tprel(31)
13691 add 9,9,x@tls
13692 addi 9,2,x1@tprel
13693 addis 9,2,x2@tprel@ha
13694 addi 9,9,x2@tprel@l'
13695 tls_first_major=2
13696 tls_first_minor=14
13697 tls_as_opt="-a32 --fatal-warnings"
13698 ;;
13699 powerpc64-*-*)
13700 conftest_s='
13701 .section ".tdata","awT",@progbits
13702 .align 3
13703 ld0: .space 8
13704 ld1: .space 8
13705 x1: .space 8
13706 x2: .space 8
13707 x3: .space 8
13708 .text
13709 addi 3,2,ld0@got@tlsgd
13710 bl .__tls_get_addr
13711 nop
13712 addi 3,2,ld1@toc
13713 bl .__tls_get_addr
13714 nop
13715 addi 3,2,x1@got@tlsld
13716 bl .__tls_get_addr
13717 nop
13718 addi 9,3,x1@dtprel
13719 bl .__tls_get_addr
13720 nop
13721 addis 9,3,x2@dtprel@ha
13722 addi 9,9,x2@dtprel@l
13723 bl .__tls_get_addr
13724 nop
13725 ld 9,x3@got@dtprel(2)
13726 add 9,9,3
13727 bl .__tls_get_addr
13728 nop'
13729 tls_first_major=2
13730 tls_first_minor=14
13731 tls_as_opt="-a64 --fatal-warnings"
13732 ;;
13733 s390-*-*)
13734 conftest_s='
13735 .section ".tdata","awT",@progbits
13736 foo: .long 25
13737 .text
13738 .long foo@TLSGD
13739 .long foo@TLSLDM
13740 .long foo@DTPOFF
13741 .long foo@NTPOFF
13742 .long foo@GOTNTPOFF
13743 .long foo@INDNTPOFF
13744 l %r1,foo@GOTNTPOFF(%r12)
13745 l %r1,0(%r1):tls_load:foo
13746 bas %r14,0(%r1,%r13):tls_gdcall:foo
13747 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13748 tls_first_major=2
13749 tls_first_minor=14
13750 tls_as_opt="-m31 --fatal-warnings"
13751 ;;
13752 s390x-*-*)
13753 conftest_s='
13754 .section ".tdata","awT",@progbits
13755 foo: .long 25
13756 .text
13757 .quad foo@TLSGD
13758 .quad foo@TLSLDM
13759 .quad foo@DTPOFF
13760 .quad foo@NTPOFF
13761 .quad foo@GOTNTPOFF
13762 lg %r1,foo@GOTNTPOFF(%r12)
13763 larl %r1,foo@INDNTPOFF
13764 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13765 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13766 tls_first_major=2
13767 tls_first_minor=14
13768 tls_as_opt="-m64 -Aesame --fatal-warnings"
13769 ;;
13770 sh-*-* | sh[34]-*-*)
13771 conftest_s='
13772 .section ".tdata","awT",@progbits
13773 foo: .long 25
13774 .text
13775 .long foo@TLSGD
13776 .long foo@TLSLDM
13777 .long foo@DTPOFF
13778 .long foo@GOTTPOFF
13779 .long foo@TPOFF'
13780 tls_first_major=2
13781 tls_first_minor=13
13782 tls_as_opt=--fatal-warnings
13783 ;;
13784 sparc*-*-*)
13785 case "$target" in
13786 sparc*-sun-solaris2.*)
13787 on_solaris=yes
13788 ;;
13789 *)
13790 on_solaris=no
13791 ;;
13792 esac
13793 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13794 conftest_s='
13795 .section ".tdata",#alloc,#write,#tls
13796 foo: .long 25
13797 .text
13798 sethi %tgd_hi22(foo), %o0
13799 add %o0, %tgd_lo10(foo), %o1
13800 add %l7, %o1, %o0, %tgd_add(foo)
13801 call __tls_get_addr, %tgd_call(foo)
13802 sethi %tldm_hi22(foo), %l1
13803 add %l1, %tldm_lo10(foo), %l2
13804 add %l7, %l2, %o0, %tldm_add(foo)
13805 call __tls_get_addr, %tldm_call(foo)
13806 sethi %tldo_hix22(foo), %l3
13807 xor %l3, %tldo_lox10(foo), %l4
13808 add %o0, %l4, %l5, %tldo_add(foo)
13809 sethi %tie_hi22(foo), %o3
13810 add %o3, %tie_lo10(foo), %o3
13811 ld [%l7 + %o3], %o2, %tie_ld(foo)
13812 add %g7, %o2, %o4, %tie_add(foo)
13813 sethi %tle_hix22(foo), %l1
13814 xor %l1, %tle_lox10(foo), %o5
13815 ld [%g7 + %o5], %o1'
13816 tls_first_major=0
13817 tls_first_minor=0
13818 else
13819 conftest_s='
13820 .section ".tdata","awT",@progbits
13821 foo: .long 25
13822 .text
13823 sethi %tgd_hi22(foo), %o0
13824 add %o0, %tgd_lo10(foo), %o1
13825 add %l7, %o1, %o0, %tgd_add(foo)
13826 call __tls_get_addr, %tgd_call(foo)
13827 sethi %tldm_hi22(foo), %l1
13828 add %l1, %tldm_lo10(foo), %l2
13829 add %l7, %l2, %o0, %tldm_add(foo)
13830 call __tls_get_addr, %tldm_call(foo)
13831 sethi %tldo_hix22(foo), %l3
13832 xor %l3, %tldo_lox10(foo), %l4
13833 add %o0, %l4, %l5, %tldo_add(foo)
13834 sethi %tie_hi22(foo), %o3
13835 add %o3, %tie_lo10(foo), %o3
13836 ld [%l7 + %o3], %o2, %tie_ld(foo)
13837 add %g7, %o2, %o4, %tie_add(foo)
13838 sethi %tle_hix22(foo), %l1
13839 xor %l1, %tle_lox10(foo), %o5
13840 ld [%g7 + %o5], %o1'
13841 tls_first_major=2
13842 tls_first_minor=14
13843 tls_as_opt="-32 --fatal-warnings"
13844 fi
13845 ;;
13846 esac
13847 if test -z "$tls_first_major"; then
13848 : # If we don't have a check, assume no support.
13849 else
13850 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13851 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13852 if test "${gcc_cv_as_tls+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 else
13855 gcc_cv_as_tls=no
13856 if test $in_tree_gas = yes; then
13857 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13858 then gcc_cv_as_tls=yes
13859 fi
13860 elif test x$gcc_cv_as != x; then
13861 echo "$conftest_s" > conftest.s
13862 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13865 ac_status=$?
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; }
13868 then
13869 gcc_cv_as_tls=yes
13870 else
13871 echo "configure: failed program was" >&5
13872 cat conftest.s >&5
13873 fi
13874 rm -f conftest.o conftest.s
13875 fi
13876 fi
13877 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13878 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13879 if test $gcc_cv_as_tls = yes; then
13880
13881 cat >>confdefs.h <<\_ACEOF
13882 #define HAVE_AS_TLS 1
13883 _ACEOF
13884
13885 fi
13886 fi
13887
13888 # Target-specific assembler checks.
13889
13890 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13891 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13892 gcc_cv_ld_static_dynamic=no
13893 if test $in_tree_ld = yes ; then
13894 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13895 gcc_cv_ld_static_dynamic=yes
13896 fi
13897 elif test x$gcc_cv_ld != x; then
13898 # Check if linker supports -Bstatic/-Bdynamic option
13899 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
13900 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
13901 gcc_cv_ld_static_dynamic=yes
13902 fi
13903 fi
13904 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
13905
13906 cat >>confdefs.h <<\_ACEOF
13907 #define HAVE_LD_STATIC_DYNAMIC 1
13908 _ACEOF
13909
13910 fi
13911 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13912 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13913
13914 if test x"$demangler_in_ld" = xyes; then
13915 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13916 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13917 gcc_cv_ld_demangle=no
13918 if test $in_tree_ld = yes; then
13919 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 \
13920 gcc_cv_ld_demangle=yes
13921 fi
13922 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
13923 # Check if the GNU linker supports --demangle option
13924 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
13925 gcc_cv_ld_demangle=yes
13926 fi
13927 fi
13928 if test x"$gcc_cv_ld_demangle" = xyes; then
13929
13930 cat >>confdefs.h <<\_ACEOF
13931 #define HAVE_LD_DEMANGLE 1
13932 _ACEOF
13933
13934 fi
13935 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13936 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13937 fi
13938
13939 case "$target" in
13940 # All TARGET_ABI_OSF targets.
13941 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
13942 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13943 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13944 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947 gcc_cv_as_alpha_explicit_relocs=no
13948 if test $in_tree_gas = yes; then
13949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13950 then gcc_cv_as_alpha_explicit_relocs=yes
13951 fi
13952 elif test x$gcc_cv_as != x; then
13953 echo ' .set nomacro
13954 .text
13955 extbl $3, $2, $3 !lituse_bytoff!1
13956 ldq $2, a($29) !literal!1
13957 ldq $4, b($29) !literal!2
13958 ldq_u $3, 0($2) !lituse_base!1
13959 ldq $27, f($29) !literal!5
13960 jsr $26, ($27), f !lituse_jsr!5
13961 ldah $29, 0($26) !gpdisp!3
13962 lda $0, c($29) !gprel
13963 ldah $1, d($29) !gprelhigh
13964 lda $1, d($1) !gprellow
13965 lda $29, 0($29) !gpdisp!3' > conftest.s
13966 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }
13972 then
13973 gcc_cv_as_alpha_explicit_relocs=yes
13974 else
13975 echo "configure: failed program was" >&5
13976 cat conftest.s >&5
13977 fi
13978 rm -f conftest.o conftest.s
13979 fi
13980 fi
13981 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
13982 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
13983 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
13984
13985 cat >>confdefs.h <<\_ACEOF
13986 #define HAVE_AS_EXPLICIT_RELOCS 1
13987 _ACEOF
13988
13989 fi
13990 ;;
13991
13992 cris-*-*)
13993 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
13994 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
13995 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998 gcc_cv_as_cris_no_mul_bug=no
13999 if test $in_tree_gas = yes; then
14000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14001 then gcc_cv_as_cris_no_mul_bug=yes
14002 fi
14003 elif test x$gcc_cv_as != x; then
14004 echo '.text' > conftest.s
14005 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }
14011 then
14012 gcc_cv_as_cris_no_mul_bug=yes
14013 else
14014 echo "configure: failed program was" >&5
14015 cat conftest.s >&5
14016 fi
14017 rm -f conftest.o conftest.s
14018 fi
14019 fi
14020 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14021 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14022 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14023
14024 cat >>confdefs.h <<\_ACEOF
14025 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14026 _ACEOF
14027
14028 fi
14029 ;;
14030
14031 sparc*-*-*)
14032 echo "$as_me:$LINENO: checking assembler for .register" >&5
14033 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14034 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037 gcc_cv_as_sparc_register_op=no
14038 if test x$gcc_cv_as != x; then
14039 echo '.register %g2, #scratch' > conftest.s
14040 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }
14046 then
14047 gcc_cv_as_sparc_register_op=yes
14048 else
14049 echo "configure: failed program was" >&5
14050 cat conftest.s >&5
14051 fi
14052 rm -f conftest.o conftest.s
14053 fi
14054 fi
14055 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14056 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14057 if test $gcc_cv_as_sparc_register_op = yes; then
14058
14059 cat >>confdefs.h <<\_ACEOF
14060 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14061 _ACEOF
14062
14063 fi
14064
14065 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14066 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14067 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070 gcc_cv_as_sparc_relax=no
14071 if test x$gcc_cv_as != x; then
14072 echo '.text' > conftest.s
14073 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075 (eval $ac_try) 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }
14079 then
14080 gcc_cv_as_sparc_relax=yes
14081 else
14082 echo "configure: failed program was" >&5
14083 cat conftest.s >&5
14084 fi
14085 rm -f conftest.o conftest.s
14086 fi
14087 fi
14088 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14089 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14090 if test $gcc_cv_as_sparc_relax = yes; then
14091
14092 cat >>confdefs.h <<\_ACEOF
14093 #define HAVE_AS_RELAX_OPTION 1
14094 _ACEOF
14095
14096 fi
14097
14098 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14099 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14100 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103 gcc_cv_as_sparc_ua_pcrel=no
14104 if test x$gcc_cv_as != x; then
14105 echo '.text
14106 foo:
14107 nop
14108 .data
14109 .align 4
14110 .byte 0
14111 .uaword %r_disp32(foo)' > conftest.s
14112 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; }
14118 then
14119 if test x$gcc_cv_ld != x \
14120 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14121 gcc_cv_as_sparc_ua_pcrel=yes
14122 fi
14123 rm -f conftest
14124 else
14125 echo "configure: failed program was" >&5
14126 cat conftest.s >&5
14127 fi
14128 rm -f conftest.o conftest.s
14129 fi
14130 fi
14131 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14132 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14133 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14134
14135 cat >>confdefs.h <<\_ACEOF
14136 #define HAVE_AS_SPARC_UA_PCREL 1
14137 _ACEOF
14138
14139
14140 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14141 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14142 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 gcc_cv_as_sparc_ua_pcrel_hidden=no
14146 if test x$gcc_cv_as != x; then
14147 echo '.data
14148 .align 4
14149 .byte 0x31
14150 .uaword %r_disp32(foo)
14151 .byte 0x32, 0x33, 0x34
14152 .global foo
14153 .hidden foo
14154 foo:
14155 .skip 4' > conftest.s
14156 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }
14162 then
14163 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14164 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14165 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14166 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14167 if $gcc_cv_objdump -R conftest 2> /dev/null \
14168 | grep 'DISP32' > /dev/null 2>&1; then
14169 :
14170 else
14171 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14172 fi
14173 fi
14174 rm -f conftest
14175 else
14176 echo "configure: failed program was" >&5
14177 cat conftest.s >&5
14178 fi
14179 rm -f conftest.o conftest.s
14180 fi
14181 fi
14182 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14183 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14184 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14185
14186 cat >>confdefs.h <<\_ACEOF
14187 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14188 _ACEOF
14189
14190 fi
14191
14192 fi # unaligned pcrel relocs
14193
14194 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14195 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14196 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199 gcc_cv_as_sparc_offsetable_lo10=no
14200 if test x$gcc_cv_as != x; then
14201 echo '.text
14202 or %g1, %lo(ab) + 12, %g1
14203 or %g1, %lo(ab + 12), %g1' > conftest.s
14204 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }
14210 then
14211 if test x$gcc_cv_objdump != x \
14212 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14213 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14214 gcc_cv_as_sparc_offsetable_lo10=yes
14215 fi
14216 else
14217 echo "configure: failed program was" >&5
14218 cat conftest.s >&5
14219 fi
14220 rm -f conftest.o conftest.s
14221 fi
14222 fi
14223 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14224 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14225 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14226
14227 cat >>confdefs.h <<\_ACEOF
14228 #define HAVE_AS_OFFSETABLE_LO10 1
14229 _ACEOF
14230
14231 fi
14232 ;;
14233
14234 i[34567]86-*-* | x86_64-*-*)
14235 case $target_os in
14236 cygwin* | pe | mingw32*)
14237 # Used for DWARF 2 in PE
14238 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14239 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14240 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243 gcc_cv_as_ix86_pe_secrel32=no
14244 if test $in_tree_gas = yes; then
14245 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14246 then gcc_cv_as_ix86_pe_secrel32=yes
14247 fi
14248 elif test x$gcc_cv_as != x; then
14249 echo '.text
14250 foo: nop
14251 .data
14252 .secrel32 foo' > conftest.s
14253 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14256 ac_status=$?
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }
14259 then
14260 if test x$gcc_cv_ld != x \
14261 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14262 gcc_cv_as_ix86_pe_secrel32=yes
14263 fi
14264 rm -f conftest
14265 else
14266 echo "configure: failed program was" >&5
14267 cat conftest.s >&5
14268 fi
14269 rm -f conftest.o conftest.s
14270 fi
14271 fi
14272 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14273 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14274 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14275
14276 cat >>confdefs.h <<\_ACEOF
14277 #define HAVE_GAS_PE_SECREL32_RELOC 1
14278 _ACEOF
14279
14280 fi
14281 ;;
14282 esac
14283
14284 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14285 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14286 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289 gcc_cv_as_ix86_filds_fists=no
14290 if test $in_tree_gas = yes; then
14291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14292 then gcc_cv_as_ix86_filds_fists=yes
14293 fi
14294 elif test x$gcc_cv_as != x; then
14295 echo 'filds mem; fists mem' > conftest.s
14296 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }
14302 then
14303 gcc_cv_as_ix86_filds_fists=yes
14304 else
14305 echo "configure: failed program was" >&5
14306 cat conftest.s >&5
14307 fi
14308 rm -f conftest.o conftest.s
14309 fi
14310 fi
14311 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14312 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14313 if test $gcc_cv_as_ix86_filds_fists = yes; then
14314
14315 cat >>confdefs.h <<\_ACEOF
14316 #define HAVE_GAS_FILDS_FISTS 1
14317 _ACEOF
14318
14319 fi
14320
14321 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14322 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14323 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326 gcc_cv_as_ix86_cmov_sun_syntax=no
14327 if test x$gcc_cv_as != x; then
14328 echo 'cmovl.l %edx, %eax' > conftest.s
14329 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }
14335 then
14336 gcc_cv_as_ix86_cmov_sun_syntax=yes
14337 else
14338 echo "configure: failed program was" >&5
14339 cat conftest.s >&5
14340 fi
14341 rm -f conftest.o conftest.s
14342 fi
14343 fi
14344 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14345 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14346 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14347
14348 cat >>confdefs.h <<\_ACEOF
14349 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14350 _ACEOF
14351
14352 fi
14353
14354 # This one is used unconditionally by i386.[ch]; it is to be defined
14355 # to 1 if the feature is present, 0 otherwise.
14356 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14357 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14358 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361 gcc_cv_as_ix86_gotoff_in_data=no
14362 if test $in_tree_gas = yes; then
14363 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14364 then gcc_cv_as_ix86_gotoff_in_data=yes
14365 fi
14366 elif test x$gcc_cv_as != x; then
14367 echo ' .text
14368 .L0:
14369 nop
14370 .data
14371 .long .L0@GOTOFF' > conftest.s
14372 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; }
14378 then
14379 gcc_cv_as_ix86_gotoff_in_data=yes
14380 else
14381 echo "configure: failed program was" >&5
14382 cat conftest.s >&5
14383 fi
14384 rm -f conftest.o conftest.s
14385 fi
14386 fi
14387 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14388 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14389
14390
14391 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14393 _ACEOF
14394
14395 ;;
14396
14397 ia64*-*-*)
14398 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14399 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14400 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
14403 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14404 if test $in_tree_gas = yes; then
14405 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14406 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14407 fi
14408 elif test x$gcc_cv_as != x; then
14409 echo ' .text
14410 addl r15 = @ltoffx(x#), gp
14411 ;;
14412 ld8.mov r16 = [r15], x#' > conftest.s
14413 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }
14419 then
14420 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14421 else
14422 echo "configure: failed program was" >&5
14423 cat conftest.s >&5
14424 fi
14425 rm -f conftest.o conftest.s
14426 fi
14427 fi
14428 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14429 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14430 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14431
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14434 _ACEOF
14435
14436 fi
14437
14438 ;;
14439
14440 powerpc*-*-*)
14441 case $target in
14442 *-*-aix*) conftest_s=' .csect .text[PR]
14443 mfcr 3,128';;
14444 *-*-darwin*)
14445 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14446 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14447 if test "${gcc_cv_as_machine_directive+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450 gcc_cv_as_machine_directive=no
14451 if test x$gcc_cv_as != x; then
14452 echo ' .machine ppc7400' > conftest.s
14453 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; }
14459 then
14460 gcc_cv_as_machine_directive=yes
14461 else
14462 echo "configure: failed program was" >&5
14463 cat conftest.s >&5
14464 fi
14465 rm -f conftest.o conftest.s
14466 fi
14467 fi
14468 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14469 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14470
14471 if test x$gcc_cv_as_machine_directive != xyes; then
14472 echo "*** This target requires an assembler supporting \".machine\"" >&2
14473 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14474 test x$build = x$target && exit 1
14475 fi
14476 conftest_s=' .text
14477 mfcr r3,128';;
14478 *) conftest_s=' .machine power4
14479 .text
14480 mfcr 3,128';;
14481 esac
14482
14483 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14484 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14485 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488 gcc_cv_as_powerpc_mfcrf=no
14489 if test $in_tree_gas = yes; then
14490 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14491 then gcc_cv_as_powerpc_mfcrf=yes
14492 fi
14493 elif test x$gcc_cv_as != x; then
14494 echo "$conftest_s" > conftest.s
14495 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }
14501 then
14502 gcc_cv_as_powerpc_mfcrf=yes
14503 else
14504 echo "configure: failed program was" >&5
14505 cat conftest.s >&5
14506 fi
14507 rm -f conftest.o conftest.s
14508 fi
14509 fi
14510 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14511 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14512 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14513
14514 cat >>confdefs.h <<\_ACEOF
14515 #define HAVE_AS_MFCRF 1
14516 _ACEOF
14517
14518 fi
14519 ;;
14520
14521 mips*-*-*)
14522 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14523 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14524 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 else
14527 gcc_cv_as_mips_explicit_relocs=no
14528 if test $in_tree_gas = yes; then
14529 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14530 then gcc_cv_as_mips_explicit_relocs=yes
14531 fi
14532 elif test x$gcc_cv_as != x; then
14533 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14534 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }
14540 then
14541 gcc_cv_as_mips_explicit_relocs=yes
14542 else
14543 echo "configure: failed program was" >&5
14544 cat conftest.s >&5
14545 fi
14546 rm -f conftest.o conftest.s
14547 fi
14548 fi
14549 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14550 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14551 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14552 if test x$target_cpu_default = x
14553 then target_cpu_default=MASK_EXPLICIT_RELOCS
14554 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14555 fi
14556 fi
14557
14558 if test x$gas_flag = xyes \
14559 || test x"$host" != x"$build" \
14560 || test ! -x "$gcc_cv_as" \
14561 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14562 :
14563 else
14564 echo "*** This configuration requires the GNU assembler" >&2
14565 exit 1
14566 fi
14567 ;;
14568 esac
14569 # ??? Not all targets support dwarf2 debug_line, even within a version
14570 # of gas. Moreover, we need to emit a valid instruction to trigger any
14571 # info to the output file. So, as supported targets are added to gas 2.11,
14572 # add some instruction here to (also) show we expect this might work.
14573 # ??? Once 2.11 is released, probably need to add first known working
14574 # version to the per-target configury.
14575 case "$target" in
14576 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14577 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14578 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14579 insn="nop"
14580 ;;
14581 ia64*-*-* | s390*-*-*)
14582 insn="nop 0"
14583 ;;
14584 mmix-*-*)
14585 insn="swym 0"
14586 ;;
14587 esac
14588 if test x"$insn" != x; then
14589 conftest_s="\
14590 .file 1 \"conftest.s\"
14591 .loc 1 3 0
14592 $insn"
14593 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14594 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14595 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 else
14598 gcc_cv_as_dwarf2_debug_line=no
14599 if test $in_tree_gas = yes; then
14600 if test $in_tree_gas_is_elf = yes \
14601 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14602 then gcc_cv_as_dwarf2_debug_line=yes
14603 fi
14604 elif test x$gcc_cv_as != x; then
14605 echo "$conftest_s" > conftest.s
14606 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }
14612 then
14613 if test x$gcc_cv_objdump != x \
14614 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14615 | grep debug_line > /dev/null 2>&1; then
14616 gcc_cv_as_dwarf2_debug_line=yes
14617 fi
14618 else
14619 echo "configure: failed program was" >&5
14620 cat conftest.s >&5
14621 fi
14622 rm -f conftest.o conftest.s
14623 fi
14624 fi
14625 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14626 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14627
14628
14629 # The .debug_line file table must be in the exact order that
14630 # we specified the files, since these indices are also used
14631 # by DW_AT_decl_file. Approximate this test by testing if
14632 # the assembler bitches if the same index is assigned twice.
14633 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14634 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14635 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638 gcc_cv_as_dwarf2_file_buggy=no
14639 if test x$gcc_cv_as != x; then
14640 echo ' .file 1 "foo.s"
14641 .file 1 "bar.s"' > conftest.s
14642 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }
14648 then
14649 gcc_cv_as_dwarf2_file_buggy=yes
14650 else
14651 echo "configure: failed program was" >&5
14652 cat conftest.s >&5
14653 fi
14654 rm -f conftest.o conftest.s
14655 fi
14656 fi
14657 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14658 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14659
14660
14661 if test $gcc_cv_as_dwarf2_debug_line = yes \
14662 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14663
14664 cat >>confdefs.h <<\_ACEOF
14665 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14666 _ACEOF
14667
14668 fi
14669
14670 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14671 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14672 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675 gcc_cv_as_gdwarf2_flag=no
14676 if test $in_tree_gas = yes; then
14677 if test $in_tree_gas_is_elf = yes \
14678 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14679 then gcc_cv_as_gdwarf2_flag=yes
14680 fi
14681 elif test x$gcc_cv_as != x; then
14682 echo "$insn" > conftest.s
14683 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14686 ac_status=$?
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }
14689 then
14690 gcc_cv_as_gdwarf2_flag=yes
14691 else
14692 echo "configure: failed program was" >&5
14693 cat conftest.s >&5
14694 fi
14695 rm -f conftest.o conftest.s
14696 fi
14697 fi
14698 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14699 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14700 if test $gcc_cv_as_gdwarf2_flag = yes; then
14701
14702 cat >>confdefs.h <<\_ACEOF
14703 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14704 _ACEOF
14705
14706 fi
14707
14708 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14709 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14710 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713 gcc_cv_as_gstabs_flag=no
14714 if test $in_tree_gas = yes; then
14715 if test $in_tree_gas_is_elf = yes \
14716 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14717 then gcc_cv_as_gstabs_flag=yes
14718 fi
14719 elif test x$gcc_cv_as != x; then
14720 echo "$insn" > conftest.s
14721 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }
14727 then
14728 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14729 # and warns about it, but still exits successfully. So check for
14730 # this.
14731 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }
14737 then :
14738 else gcc_cv_as_gstabs_flag=yes
14739 fi
14740 else
14741 echo "configure: failed program was" >&5
14742 cat conftest.s >&5
14743 fi
14744 rm -f conftest.o conftest.s
14745 fi
14746 fi
14747 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14748 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14749 if test $gcc_cv_as_gstabs_flag = yes; then
14750
14751 cat >>confdefs.h <<\_ACEOF
14752 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14753 _ACEOF
14754
14755 fi
14756 fi
14757
14758 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14759 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14760 gcc_cv_ld_ro_rw_mix=unknown
14761 if test $in_tree_ld = yes ; then
14762 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 \
14763 && test $in_tree_ld_is_elf = yes; then
14764 gcc_cv_ld_ro_rw_mix=read-write
14765 fi
14766 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14767 echo '.section myfoosect, "a"' > conftest1.s
14768 echo '.section myfoosect, "aw"' > conftest2.s
14769 echo '.byte 1' >> conftest2.s
14770 echo '.section myfoosect, "a"' > conftest3.s
14771 echo '.byte 0' >> conftest3.s
14772 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14773 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14774 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14775 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14776 conftest2.o conftest3.o > /dev/null 2>&1; then
14777 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14778 | sed -e '/myfoosect/!d' -e N`
14779 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14780 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14781 gcc_cv_ld_ro_rw_mix=read-only
14782 else
14783 gcc_cv_ld_ro_rw_mix=read-write
14784 fi
14785 fi
14786 fi
14787 rm -f conftest.* conftest[123].*
14788 fi
14789 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14790
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14793 _ACEOF
14794
14795 fi
14796 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14797 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14798
14799 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14800 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14801 gcc_cv_ld_eh_frame_hdr=no
14802 if test $in_tree_ld = yes ; then
14803 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 \
14804 && test $in_tree_ld_is_elf = yes; then
14805 gcc_cv_ld_eh_frame_hdr=yes
14806 fi
14807 elif test x$gcc_cv_ld != x; then
14808 # Check if linker supports --eh-frame-hdr option
14809 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14810 gcc_cv_ld_eh_frame_hdr=yes
14811 fi
14812 fi
14813 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14814
14815 cat >>confdefs.h <<\_ACEOF
14816 #define HAVE_LD_EH_FRAME_HDR 1
14817 _ACEOF
14818
14819 fi
14820 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14821 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14822
14823 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14824 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14825 gcc_cv_ld_pie=no
14826 if test $in_tree_ld = yes ; then
14827 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 \
14828 && test $in_tree_ld_is_elf = yes; then
14829 gcc_cv_ld_pie=yes
14830 fi
14831 elif test x$gcc_cv_ld != x; then
14832 # Check if linker supports -pie option
14833 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14834 gcc_cv_ld_pie=yes
14835 fi
14836 fi
14837 if test x"$gcc_cv_ld_pie" = xyes; then
14838
14839 cat >>confdefs.h <<\_ACEOF
14840 #define HAVE_LD_PIE 1
14841 _ACEOF
14842
14843 fi
14844 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14845 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14846
14847 # --------
14848 # UNSORTED
14849 # --------
14850
14851 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14852 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14853 if test "${gcc_cv_ld_as_needed+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 else
14856 gcc_cv_ld_as_needed=no
14857 if test $in_tree_ld = yes ; then
14858 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 \
14859 && test $in_tree_ld_is_elf = yes; then
14860 gcc_cv_ld_as_needed=yes
14861 fi
14862 elif test x$gcc_cv_ld != x; then
14863 # Check if linker supports --as-needed and --no-as-needed options
14864 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14865 gcc_cv_ld_as_needed=yes
14866 fi
14867 fi
14868
14869 fi
14870 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14871 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14872 if test x"$gcc_cv_ld_as_needed" = xyes; then
14873
14874 cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_LD_AS_NEEDED 1
14876 _ACEOF
14877
14878 fi
14879
14880 case "$target" in
14881 powerpc64*-*-linux*)
14882 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14883 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14884 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 else
14887 gcc_cv_ld_no_dot_syms=no
14888 if test $in_tree_ld = yes ; then
14889 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
14890 gcc_cv_ld_no_dot_syms=yes
14891 fi
14892 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14893 cat > conftest1.s <<EOF
14894 .text
14895 bl .foo
14896 EOF
14897 cat > conftest2.s <<EOF
14898 .section ".opd","aw"
14899 .align 3
14900 .globl foo
14901 .type foo,@function
14902 foo:
14903 .quad .LEfoo,.TOC.@tocbase,0
14904 .text
14905 .LEfoo:
14906 blr
14907 .size foo,.-.LEfoo
14908 EOF
14909 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14910 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14911 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14912 gcc_cv_ld_no_dot_syms=yes
14913 fi
14914 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14915 fi
14916
14917 fi
14918 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14919 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14920 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
14921
14922 cat >>confdefs.h <<\_ACEOF
14923 #define HAVE_LD_NO_DOT_SYMS 1
14924 _ACEOF
14925
14926 fi
14927 ;;
14928 esac
14929
14930 if test x$with_sysroot = x && test x$host = x$target \
14931 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14932
14933 cat >>confdefs.h <<_ACEOF
14934 #define PREFIX_INCLUDE_DIR "$prefix/include"
14935 _ACEOF
14936
14937 fi
14938
14939 # Find out what GC implementation we want, or may, use.
14940
14941 # Check whether --with-gc or --without-gc was given.
14942 if test "${with_gc+set}" = set; then
14943 withval="$with_gc"
14944 case "$withval" in
14945 page | zone)
14946 GGC=ggc-$withval
14947 ;;
14948 *)
14949 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14950 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14951 { (exit 1); exit 1; }; }
14952 ;;
14953 esac
14954 else
14955 GGC=ggc-page
14956 fi;
14957
14958 echo "Using $GGC for garbage collection."
14959
14960 # Use the system's zlib library.
14961 zlibdir=-L../zlib
14962 zlibinc="-I\$(srcdir)/../zlib"
14963
14964 # Check whether --with-system-zlib or --without-system-zlib was given.
14965 if test "${with_system_zlib+set}" = set; then
14966 withval="$with_system_zlib"
14967 zlibdir=
14968 zlibinc=
14969
14970 fi;
14971
14972
14973
14974
14975 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14976 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14977 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14978 if test "${enable_maintainer_mode+set}" = set; then
14979 enableval="$enable_maintainer_mode"
14980 maintainer_mode=$enableval
14981 else
14982 maintainer_mode=no
14983 fi;
14984
14985 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
14986 echo "${ECHO_T}$maintainer_mode" >&6
14987
14988 if test "$maintainer_mode" = "yes"; then
14989 MAINT=''
14990 else
14991 MAINT='#'
14992 fi
14993
14994 # --------------
14995 # Language hooks
14996 # --------------
14997
14998 # Make empty files to contain the specs and options for each language.
14999 # Then add #include lines to for a compiler that has specs and/or options.
15000
15001 lang_opt_files=
15002 lang_specs_files=
15003 lang_tree_files=
15004 for subdir in . $subdirs
15005 do
15006 if test -f $srcdir/$subdir/lang.opt; then
15007 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15008 fi
15009 if test -f $srcdir/$subdir/lang-specs.h; then
15010 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15011 fi
15012 if test -f $srcdir/$subdir/$subdir-tree.def; then
15013 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15014 fi
15015 done
15016
15017 # These (without "all_") are set in each config-lang.in.
15018 # `language' must be a single word so is spelled singularly.
15019 all_languages=
15020 all_boot_languages=
15021 all_compilers=
15022 all_stagestuff=
15023 all_outputs='Makefile gccbug mklibgcc libada-mk'
15024 # List of language makefile fragments.
15025 all_lang_makefrags=
15026 # List of language subdirectory makefiles. Deprecated.
15027 all_lang_makefiles=
15028 # Files for gengtype
15029 all_gtfiles="$target_gtfiles"
15030 # Files for gengtype with language
15031 all_gtfiles_files_langs=
15032 all_gtfiles_files_files=
15033
15034 # Add the language fragments.
15035 # Languages are added via two mechanisms. Some information must be
15036 # recorded in makefile variables, these are defined in config-lang.in.
15037 # We accumulate them and plug them into the main Makefile.
15038 # The other mechanism is a set of hooks for each of the main targets
15039 # like `clean', `install', etc.
15040
15041 language_hooks="Make-hooks"
15042
15043 for s in $subdirs
15044 do
15045 language=
15046 boot_language=
15047 compilers=
15048 stagestuff=
15049 outputs=
15050 gtfiles=
15051 . ${srcdir}/$s/config-lang.in
15052 if test "x$language" = x
15053 then
15054 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15055 exit 1
15056 fi
15057 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15058 if test -f ${srcdir}/$s/Makefile.in
15059 then all_lang_makefiles="$s/Makefile"
15060 fi
15061 all_languages="$all_languages $language"
15062 if test "x$boot_language" = xyes
15063 then
15064 all_boot_languages="$all_boot_languages $language"
15065 fi
15066 all_compilers="$all_compilers $compilers"
15067 all_stagestuff="$all_stagestuff $stagestuff"
15068 all_outputs="$all_outputs $outputs"
15069 all_gtfiles="$all_gtfiles $gtfiles"
15070 for f in $gtfiles
15071 do
15072 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15073 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15074 done
15075 done
15076
15077 # Pick up gtfiles for c
15078 gtfiles=
15079 s="c"
15080 . ${srcdir}/c-config-lang.in
15081 all_gtfiles="$all_gtfiles $gtfiles"
15082 for f in $gtfiles
15083 do
15084 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15085 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15086 done
15087
15088 check_languages=
15089 for language in $all_languages
15090 do
15091 check_languages="$check_languages check-$language"
15092 done
15093
15094 # We link each language in with a set of hooks, reached indirectly via
15095 # lang.${target}.
15096
15097 rm -f Make-hooks
15098 touch Make-hooks
15099 target_list="all.build all.cross start.encap rest.encap tags \
15100 install-normal install-common install-man \
15101 uninstall info man srcextra srcman srcinfo \
15102 mostlyclean clean distclean maintainer-clean \
15103 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15104 for t in $target_list
15105 do
15106 x=
15107 for lang in $all_languages
15108 do
15109 x="$x $lang.$t"
15110 done
15111 echo "lang.$t: $x" >> Make-hooks
15112 done
15113
15114 # --------
15115 # UNSORTED
15116 # --------
15117
15118 # Create .gdbinit.
15119
15120 echo "dir ." > .gdbinit
15121 echo "dir ${srcdir}" >> .gdbinit
15122 if test x$gdb_needs_out_file_path = xyes
15123 then
15124 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15125 fi
15126 if test "x$subdirs" != x; then
15127 for s in $subdirs
15128 do
15129 echo "dir ${srcdir}/$s" >> .gdbinit
15130 done
15131 fi
15132 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15133
15134 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15135 # absolute path for gcc_tooldir based on inserting the number of up-directory
15136 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15137 # $(libsubdir)/@(unlibsubdir) based path.
15138 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15139 # make and thus we'd get different behavior depending on where we built the
15140 # sources.
15141 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15142 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15143 else
15144 # An explanation of the sed strings:
15145 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15146 # -e 's|/$||' match a trailing forward slash and eliminates it
15147 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15148 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15149 #
15150 # (*) Note this pattern overwrites the first character of the string
15151 # with a forward slash if one is not already present. This is not a
15152 # problem because the exact names of the sub-directories concerned is
15153 # unimportant, just the number of them matters.
15154 #
15155 # The practical upshot of these patterns is like this:
15156 #
15157 # prefix exec_prefix result
15158 # ------ ----------- ------
15159 # /foo /foo/bar ../
15160 # /foo/ /foo/bar ../
15161 # /foo /foo/bar/ ../
15162 # /foo/ /foo/bar/ ../
15163 # /foo /foo/bar/ugg ../../
15164 #
15165 dollar='$$'
15166 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15167 fi
15168
15169
15170
15171 # Find a directory in which to install a shared libgcc.
15172
15173 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15174 if test "${enable_version_specific_runtime_libs+set}" = set; then
15175 enableval="$enable_version_specific_runtime_libs"
15176
15177 fi;
15178
15179
15180 # Check whether --with-slibdir or --without-slibdir was given.
15181 if test "${with_slibdir+set}" = set; then
15182 withval="$with_slibdir"
15183 slibdir="$with_slibdir"
15184 else
15185 if test "${enable_version_specific_runtime_libs+set}" = set; then
15186 slibdir='$(libsubdir)'
15187 elif test "$host" != "$target"; then
15188 slibdir='$(build_tooldir)/lib'
15189 else
15190 slibdir='$(libdir)'
15191 fi
15192 fi;
15193
15194
15195 objdir=`${PWDCMD-pwd}`
15196
15197
15198 # Substitute configuration variables
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
15264 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15265 #
15266 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15267 #
15268 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15269 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15270 set_gcc_lib_path="export $set_gcc_lib_path"
15271 else
15272 set_gcc_lib_path=
15273 fi
15274
15275
15276
15277 # Echo link setup.
15278 if test x${build} = x${host} ; then
15279 if test x${host} = x${target} ; then
15280 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15281 else
15282 echo "Links are now set up to build a cross-compiler" 1>&2
15283 echo " from ${host} to ${target}." 1>&2
15284 fi
15285 else
15286 if test x${host} = x${target} ; then
15287 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15288 echo " for ${target}." 1>&2
15289 else
15290 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15291 echo " from ${host} to ${target}." 1>&2
15292 fi
15293 fi
15294
15295
15296
15297
15298 # Configure the subdirectories
15299 # AC_CONFIG_SUBDIRS($subdirs)
15300
15301 # Create the Makefile
15302 # and configure language subdirectories
15303 ac_config_files="$ac_config_files $all_outputs"
15304
15305
15306 ac_config_commands="$ac_config_commands default"
15307
15308 cat >confcache <<\_ACEOF
15309 # This file is a shell script that caches the results of configure
15310 # tests run on this system so they can be shared between configure
15311 # scripts and configure runs, see configure's option --config-cache.
15312 # It is not useful on other systems. If it contains results you don't
15313 # want to keep, you may remove or edit it.
15314 #
15315 # config.status only pays attention to the cache file if you give it
15316 # the --recheck option to rerun configure.
15317 #
15318 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15319 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15320 # following values.
15321
15322 _ACEOF
15323
15324 # The following way of writing the cache mishandles newlines in values,
15325 # but we know of no workaround that is simple, portable, and efficient.
15326 # So, don't put newlines in cache variables' values.
15327 # Ultrix sh set writes to stderr and can't be redirected directly,
15328 # and sets the high bit in the cache file unless we assign to the vars.
15329 {
15330 (set) 2>&1 |
15331 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15332 *ac_space=\ *)
15333 # `set' does not quote correctly, so add quotes (double-quote
15334 # substitution turns \\\\ into \\, and sed turns \\ into \).
15335 sed -n \
15336 "s/'/'\\\\''/g;
15337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15338 ;;
15339 *)
15340 # `set' quotes correctly as required by POSIX, so do not add quotes.
15341 sed -n \
15342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15343 ;;
15344 esac;
15345 } |
15346 sed '
15347 t clear
15348 : clear
15349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15350 t end
15351 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15352 : end' >>confcache
15353 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15354 if test -w $cache_file; then
15355 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15356 cat confcache >$cache_file
15357 else
15358 echo "not updating unwritable cache $cache_file"
15359 fi
15360 fi
15361 rm -f confcache
15362
15363 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15364 # Let make expand exec_prefix.
15365 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15366
15367 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15368 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15369 # trailing colons and then remove the whole line if VPATH becomes empty
15370 # (actually we leave an empty line to preserve line numbers).
15371 if test "x$srcdir" = x.; then
15372 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15373 s/:*\$(srcdir):*/:/;
15374 s/:*\${srcdir}:*/:/;
15375 s/:*@srcdir@:*/:/;
15376 s/^\([^=]*=[ ]*\):*/\1/;
15377 s/:*$//;
15378 s/^[^=]*=[ ]*$//;
15379 }'
15380 fi
15381
15382 DEFS=-DHAVE_CONFIG_H
15383
15384 ac_libobjs=
15385 ac_ltlibobjs=
15386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15387 # 1. Remove the extension, and $U if already installed.
15388 ac_i=`echo "$ac_i" |
15389 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15390 # 2. Add them.
15391 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15392 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15393 done
15394 LIBOBJS=$ac_libobjs
15395
15396 LTLIBOBJS=$ac_ltlibobjs
15397
15398
15399
15400 : ${CONFIG_STATUS=./config.status}
15401 ac_clean_files_save=$ac_clean_files
15402 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15403 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15404 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15405 cat >$CONFIG_STATUS <<_ACEOF
15406 #! $SHELL
15407 # Generated by $as_me.
15408 # Run this file to recreate the current configuration.
15409 # Compiler output produced by configure, useful for debugging
15410 # configure, is in config.log if it exists.
15411
15412 debug=false
15413 ac_cs_recheck=false
15414 ac_cs_silent=false
15415 SHELL=\${CONFIG_SHELL-$SHELL}
15416 _ACEOF
15417
15418 cat >>$CONFIG_STATUS <<\_ACEOF
15419 ## --------------------- ##
15420 ## M4sh Initialization. ##
15421 ## --------------------- ##
15422
15423 # Be Bourne compatible
15424 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15425 emulate sh
15426 NULLCMD=:
15427 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15428 # is contrary to our usage. Disable this feature.
15429 alias -g '${1+"$@"}'='"$@"'
15430 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15431 set -o posix
15432 fi
15433 DUALCASE=1; export DUALCASE # for MKS sh
15434
15435 # Support unset when possible.
15436 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15437 as_unset=unset
15438 else
15439 as_unset=false
15440 fi
15441
15442
15443 # Work around bugs in pre-3.0 UWIN ksh.
15444 $as_unset ENV MAIL MAILPATH
15445 PS1='$ '
15446 PS2='> '
15447 PS4='+ '
15448
15449 # NLS nuisances.
15450 for as_var in \
15451 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15452 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15453 LC_TELEPHONE LC_TIME
15454 do
15455 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15456 eval $as_var=C; export $as_var
15457 else
15458 $as_unset $as_var
15459 fi
15460 done
15461
15462 # Required to use basename.
15463 if expr a : '\(a\)' >/dev/null 2>&1; then
15464 as_expr=expr
15465 else
15466 as_expr=false
15467 fi
15468
15469 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15470 as_basename=basename
15471 else
15472 as_basename=false
15473 fi
15474
15475
15476 # Name of the executable.
15477 as_me=`$as_basename "$0" ||
15478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15479 X"$0" : 'X\(//\)$' \| \
15480 X"$0" : 'X\(/\)$' \| \
15481 . : '\(.\)' 2>/dev/null ||
15482 echo X/"$0" |
15483 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15484 /^X\/\(\/\/\)$/{ s//\1/; q; }
15485 /^X\/\(\/\).*/{ s//\1/; q; }
15486 s/.*/./; q'`
15487
15488
15489 # PATH needs CR, and LINENO needs CR and PATH.
15490 # Avoid depending upon Character Ranges.
15491 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15494 as_cr_digits='0123456789'
15495 as_cr_alnum=$as_cr_Letters$as_cr_digits
15496
15497 # The user is always right.
15498 if test "${PATH_SEPARATOR+set}" != set; then
15499 echo "#! /bin/sh" >conf$$.sh
15500 echo "exit 0" >>conf$$.sh
15501 chmod +x conf$$.sh
15502 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15503 PATH_SEPARATOR=';'
15504 else
15505 PATH_SEPARATOR=:
15506 fi
15507 rm -f conf$$.sh
15508 fi
15509
15510
15511 as_lineno_1=$LINENO
15512 as_lineno_2=$LINENO
15513 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15514 test "x$as_lineno_1" != "x$as_lineno_2" &&
15515 test "x$as_lineno_3" = "x$as_lineno_2" || {
15516 # Find who we are. Look in the path if we contain no path at all
15517 # relative or not.
15518 case $0 in
15519 *[\\/]* ) as_myself=$0 ;;
15520 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15521 for as_dir in $PATH
15522 do
15523 IFS=$as_save_IFS
15524 test -z "$as_dir" && as_dir=.
15525 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15526 done
15527
15528 ;;
15529 esac
15530 # We did not find ourselves, most probably we were run as `sh COMMAND'
15531 # in which case we are not to be found in the path.
15532 if test "x$as_myself" = x; then
15533 as_myself=$0
15534 fi
15535 if test ! -f "$as_myself"; then
15536 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15537 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15538 { (exit 1); exit 1; }; }
15539 fi
15540 case $CONFIG_SHELL in
15541 '')
15542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15543 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15544 do
15545 IFS=$as_save_IFS
15546 test -z "$as_dir" && as_dir=.
15547 for as_base in sh bash ksh sh5; do
15548 case $as_dir in
15549 /*)
15550 if ("$as_dir/$as_base" -c '
15551 as_lineno_1=$LINENO
15552 as_lineno_2=$LINENO
15553 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15554 test "x$as_lineno_1" != "x$as_lineno_2" &&
15555 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15556 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15557 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15558 CONFIG_SHELL=$as_dir/$as_base
15559 export CONFIG_SHELL
15560 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15561 fi;;
15562 esac
15563 done
15564 done
15565 ;;
15566 esac
15567
15568 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15569 # uniformly replaced by the line number. The first 'sed' inserts a
15570 # line-number line before each line; the second 'sed' does the real
15571 # work. The second script uses 'N' to pair each line-number line
15572 # with the numbered line, and appends trailing '-' during
15573 # substitution so that $LINENO is not a special case at line end.
15574 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15575 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15576 sed '=' <$as_myself |
15577 sed '
15578 N
15579 s,$,-,
15580 : loop
15581 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15582 t loop
15583 s,-$,,
15584 s,^['$as_cr_digits']*\n,,
15585 ' >$as_me.lineno &&
15586 chmod +x $as_me.lineno ||
15587 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15588 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15589 { (exit 1); exit 1; }; }
15590
15591 # Don't try to exec as it changes $[0], causing all sort of problems
15592 # (the dirname of $[0] is not the place where we might find the
15593 # original and so on. Autoconf is especially sensible to this).
15594 . ./$as_me.lineno
15595 # Exit status is that of the last command.
15596 exit
15597 }
15598
15599
15600 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15601 *c*,-n*) ECHO_N= ECHO_C='
15602 ' ECHO_T=' ' ;;
15603 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15604 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15605 esac
15606
15607 if expr a : '\(a\)' >/dev/null 2>&1; then
15608 as_expr=expr
15609 else
15610 as_expr=false
15611 fi
15612
15613 rm -f conf$$ conf$$.exe conf$$.file
15614 echo >conf$$.file
15615 if ln -s conf$$.file conf$$ 2>/dev/null; then
15616 # We could just check for DJGPP; but this test a) works b) is more generic
15617 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15618 if test -f conf$$.exe; then
15619 # Don't use ln at all; we don't have any links
15620 as_ln_s='cp -p'
15621 else
15622 as_ln_s='ln -s'
15623 fi
15624 elif ln conf$$.file conf$$ 2>/dev/null; then
15625 as_ln_s=ln
15626 else
15627 as_ln_s='cp -p'
15628 fi
15629 rm -f conf$$ conf$$.exe conf$$.file
15630
15631 if mkdir -p . 2>/dev/null; then
15632 as_mkdir_p=:
15633 else
15634 test -d ./-p && rmdir ./-p
15635 as_mkdir_p=false
15636 fi
15637
15638 as_executable_p="test -f"
15639
15640 # Sed expression to map a string onto a valid CPP name.
15641 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15642
15643 # Sed expression to map a string onto a valid variable name.
15644 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15645
15646
15647 # IFS
15648 # We need space, tab and new line, in precisely that order.
15649 as_nl='
15650 '
15651 IFS=" $as_nl"
15652
15653 # CDPATH.
15654 $as_unset CDPATH
15655
15656 exec 6>&1
15657
15658 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15659 # report actual input values of CONFIG_FILES etc. instead of their
15660 # values after options handling. Logging --version etc. is OK.
15661 exec 5>>config.log
15662 {
15663 echo
15664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15665 ## Running $as_me. ##
15666 _ASBOX
15667 } >&5
15668 cat >&5 <<_CSEOF
15669
15670 This file was extended by $as_me, which was
15671 generated by GNU Autoconf 2.59. Invocation command line was
15672
15673 CONFIG_FILES = $CONFIG_FILES
15674 CONFIG_HEADERS = $CONFIG_HEADERS
15675 CONFIG_LINKS = $CONFIG_LINKS
15676 CONFIG_COMMANDS = $CONFIG_COMMANDS
15677 $ $0 $@
15678
15679 _CSEOF
15680 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15681 echo >&5
15682 _ACEOF
15683
15684 # Files that config.status was made for.
15685 if test -n "$ac_config_files"; then
15686 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15687 fi
15688
15689 if test -n "$ac_config_headers"; then
15690 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15691 fi
15692
15693 if test -n "$ac_config_links"; then
15694 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15695 fi
15696
15697 if test -n "$ac_config_commands"; then
15698 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15699 fi
15700
15701 cat >>$CONFIG_STATUS <<\_ACEOF
15702
15703 ac_cs_usage="\
15704 \`$as_me' instantiates files from templates according to the
15705 current configuration.
15706
15707 Usage: $0 [OPTIONS] [FILE]...
15708
15709 -h, --help print this help, then exit
15710 -V, --version print version number, then exit
15711 -q, --quiet do not print progress messages
15712 -d, --debug don't remove temporary files
15713 --recheck update $as_me by reconfiguring in the same conditions
15714 --file=FILE[:TEMPLATE]
15715 instantiate the configuration file FILE
15716 --header=FILE[:TEMPLATE]
15717 instantiate the configuration header FILE
15718
15719 Configuration files:
15720 $config_files
15721
15722 Configuration headers:
15723 $config_headers
15724
15725 Configuration commands:
15726 $config_commands
15727
15728 Report bugs to <bug-autoconf@gnu.org>."
15729 _ACEOF
15730
15731 cat >>$CONFIG_STATUS <<_ACEOF
15732 ac_cs_version="\\
15733 config.status
15734 configured by $0, generated by GNU Autoconf 2.59,
15735 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15736
15737 Copyright (C) 2003 Free Software Foundation, Inc.
15738 This config.status script is free software; the Free Software Foundation
15739 gives unlimited permission to copy, distribute and modify it."
15740 srcdir=$srcdir
15741 _ACEOF
15742
15743 cat >>$CONFIG_STATUS <<\_ACEOF
15744 # If no file are specified by the user, then we need to provide default
15745 # value. By we need to know if files were specified by the user.
15746 ac_need_defaults=:
15747 while test $# != 0
15748 do
15749 case $1 in
15750 --*=*)
15751 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15752 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15753 ac_shift=:
15754 ;;
15755 -*)
15756 ac_option=$1
15757 ac_optarg=$2
15758 ac_shift=shift
15759 ;;
15760 *) # This is not an option, so the user has probably given explicit
15761 # arguments.
15762 ac_option=$1
15763 ac_need_defaults=false;;
15764 esac
15765
15766 case $ac_option in
15767 # Handling of the options.
15768 _ACEOF
15769 cat >>$CONFIG_STATUS <<\_ACEOF
15770 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15771 ac_cs_recheck=: ;;
15772 --version | --vers* | -V )
15773 echo "$ac_cs_version"; exit 0 ;;
15774 --he | --h)
15775 # Conflict between --help and --header
15776 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15777 Try \`$0 --help' for more information." >&5
15778 echo "$as_me: error: ambiguous option: $1
15779 Try \`$0 --help' for more information." >&2;}
15780 { (exit 1); exit 1; }; };;
15781 --help | --hel | -h )
15782 echo "$ac_cs_usage"; exit 0 ;;
15783 --debug | --d* | -d )
15784 debug=: ;;
15785 --file | --fil | --fi | --f )
15786 $ac_shift
15787 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15788 ac_need_defaults=false;;
15789 --header | --heade | --head | --hea )
15790 $ac_shift
15791 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15792 ac_need_defaults=false;;
15793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15794 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15795 ac_cs_silent=: ;;
15796
15797 # This is an error.
15798 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15799 Try \`$0 --help' for more information." >&5
15800 echo "$as_me: error: unrecognized option: $1
15801 Try \`$0 --help' for more information." >&2;}
15802 { (exit 1); exit 1; }; } ;;
15803
15804 *) ac_config_targets="$ac_config_targets $1" ;;
15805
15806 esac
15807 shift
15808 done
15809
15810 ac_configure_extra_args=
15811
15812 if $ac_cs_silent; then
15813 exec 6>/dev/null
15814 ac_configure_extra_args="$ac_configure_extra_args --silent"
15815 fi
15816
15817 _ACEOF
15818 cat >>$CONFIG_STATUS <<_ACEOF
15819 if \$ac_cs_recheck; then
15820 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15821 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15822 fi
15823
15824 _ACEOF
15825
15826 cat >>$CONFIG_STATUS <<_ACEOF
15827 #
15828 # INIT-COMMANDS section.
15829 #
15830
15831 subdirs='$subdirs'
15832
15833 _ACEOF
15834
15835
15836
15837 cat >>$CONFIG_STATUS <<\_ACEOF
15838 for ac_config_target in $ac_config_targets
15839 do
15840 case "$ac_config_target" in
15841 # Handling of arguments.
15842 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15843 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15844 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15845 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15846 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15847 { (exit 1); exit 1; }; };;
15848 esac
15849 done
15850
15851 # If the user did not use the arguments to specify the items to instantiate,
15852 # then the envvar interface is used. Set only those that are not.
15853 # We use the long form for the default assignment because of an extremely
15854 # bizarre bug on SunOS 4.1.3.
15855 if $ac_need_defaults; then
15856 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15857 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15859 fi
15860
15861 # Have a temporary directory for convenience. Make it in the build tree
15862 # simply because there is no reason to put it here, and in addition,
15863 # creating and moving files from /tmp can sometimes cause problems.
15864 # Create a temporary directory, and hook for its removal unless debugging.
15865 $debug ||
15866 {
15867 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15868 trap '{ (exit 1); exit 1; }' 1 2 13 15
15869 }
15870
15871 # Create a (secure) tmp directory for tmp files.
15872
15873 {
15874 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15875 test -n "$tmp" && test -d "$tmp"
15876 } ||
15877 {
15878 tmp=./confstat$$-$RANDOM
15879 (umask 077 && mkdir $tmp)
15880 } ||
15881 {
15882 echo "$me: cannot create a temporary directory in ." >&2
15883 { (exit 1); exit 1; }
15884 }
15885
15886 _ACEOF
15887
15888 cat >>$CONFIG_STATUS <<_ACEOF
15889
15890 #
15891 # CONFIG_FILES section.
15892 #
15893
15894 # No need to generate the scripts if there are no CONFIG_FILES.
15895 # This happens for instance when ./config.status config.h
15896 if test -n "\$CONFIG_FILES"; then
15897 # Protect against being on the right side of a sed subst in config.status.
15898 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15899 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15900 s,@SHELL@,$SHELL,;t t
15901 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15902 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15903 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15904 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15905 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15906 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15907 s,@exec_prefix@,$exec_prefix,;t t
15908 s,@prefix@,$prefix,;t t
15909 s,@program_transform_name@,$program_transform_name,;t t
15910 s,@bindir@,$bindir,;t t
15911 s,@sbindir@,$sbindir,;t t
15912 s,@libexecdir@,$libexecdir,;t t
15913 s,@datadir@,$datadir,;t t
15914 s,@sysconfdir@,$sysconfdir,;t t
15915 s,@sharedstatedir@,$sharedstatedir,;t t
15916 s,@localstatedir@,$localstatedir,;t t
15917 s,@libdir@,$libdir,;t t
15918 s,@includedir@,$includedir,;t t
15919 s,@oldincludedir@,$oldincludedir,;t t
15920 s,@infodir@,$infodir,;t t
15921 s,@mandir@,$mandir,;t t
15922 s,@build_alias@,$build_alias,;t t
15923 s,@host_alias@,$host_alias,;t t
15924 s,@target_alias@,$target_alias,;t t
15925 s,@DEFS@,$DEFS,;t t
15926 s,@ECHO_C@,$ECHO_C,;t t
15927 s,@ECHO_N@,$ECHO_N,;t t
15928 s,@ECHO_T@,$ECHO_T,;t t
15929 s,@LIBS@,$LIBS,;t t
15930 s,@build@,$build,;t t
15931 s,@build_cpu@,$build_cpu,;t t
15932 s,@build_vendor@,$build_vendor,;t t
15933 s,@build_os@,$build_os,;t t
15934 s,@host@,$host,;t t
15935 s,@host_cpu@,$host_cpu,;t t
15936 s,@host_vendor@,$host_vendor,;t t
15937 s,@host_os@,$host_os,;t t
15938 s,@target@,$target,;t t
15939 s,@target_cpu@,$target_cpu,;t t
15940 s,@target_vendor@,$target_vendor,;t t
15941 s,@target_os@,$target_os,;t t
15942 s,@target_noncanonical@,$target_noncanonical,;t t
15943 s,@build_subdir@,$build_subdir,;t t
15944 s,@host_subdir@,$host_subdir,;t t
15945 s,@target_subdir@,$target_subdir,;t t
15946 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
15947 s,@gcc_version_full@,$gcc_version_full,;t t
15948 s,@gcc_version@,$gcc_version,;t t
15949 s,@GENINSRC@,$GENINSRC,;t t
15950 s,@CC@,$CC,;t t
15951 s,@CFLAGS@,$CFLAGS,;t t
15952 s,@LDFLAGS@,$LDFLAGS,;t t
15953 s,@CPPFLAGS@,$CPPFLAGS,;t t
15954 s,@ac_ct_CC@,$ac_ct_CC,;t t
15955 s,@EXEEXT@,$EXEEXT,;t t
15956 s,@OBJEXT@,$OBJEXT,;t t
15957 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15958 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15959 s,@CPP@,$CPP,;t t
15960 s,@EGREP@,$EGREP,;t t
15961 s,@strict1_warn@,$strict1_warn,;t t
15962 s,@warn_cflags@,$warn_cflags,;t t
15963 s,@WERROR@,$WERROR,;t t
15964 s,@nocommon_flag@,$nocommon_flag,;t t
15965 s,@TREEBROWSER@,$TREEBROWSER,;t t
15966 s,@valgrind_path@,$valgrind_path,;t t
15967 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
15968 s,@valgrind_command@,$valgrind_command,;t t
15969 s,@coverage_flags@,$coverage_flags,;t t
15970 s,@enable_multilib@,$enable_multilib,;t t
15971 s,@enable_shared@,$enable_shared,;t t
15972 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15973 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15974 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
15975 s,@onestep@,$onestep,;t t
15976 s,@SET_MAKE@,$SET_MAKE,;t t
15977 s,@AWK@,$AWK,;t t
15978 s,@LN_S@,$LN_S,;t t
15979 s,@LN@,$LN,;t t
15980 s,@RANLIB@,$RANLIB,;t t
15981 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15982 s,@ranlib_flags@,$ranlib_flags,;t t
15983 s,@INSTALL@,$INSTALL,;t t
15984 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15985 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15986 s,@make_compare_target@,$make_compare_target,;t t
15987 s,@have_mktemp_command@,$have_mktemp_command,;t t
15988 s,@MAKEINFO@,$MAKEINFO,;t t
15989 s,@BUILD_INFO@,$BUILD_INFO,;t t
15990 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
15991 s,@FLEX@,$FLEX,;t t
15992 s,@BISON@,$BISON,;t t
15993 s,@NM@,$NM,;t t
15994 s,@AR@,$AR,;t t
15995 s,@stage1_cflags@,$stage1_cflags,;t t
15996 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
15997 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
15998 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
15999 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16000 s,@LIBICONV@,$LIBICONV,;t t
16001 s,@LTLIBICONV@,$LTLIBICONV,;t t
16002 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16003 s,@manext@,$manext,;t t
16004 s,@objext@,$objext,;t t
16005 s,@gthread_flags@,$gthread_flags,;t t
16006 s,@extra_modes_file@,$extra_modes_file,;t t
16007 s,@PACKAGE@,$PACKAGE,;t t
16008 s,@VERSION@,$VERSION,;t t
16009 s,@USE_NLS@,$USE_NLS,;t t
16010 s,@LIBINTL@,$LIBINTL,;t t
16011 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16012 s,@INCINTL@,$INCINTL,;t t
16013 s,@XGETTEXT@,$XGETTEXT,;t t
16014 s,@GMSGFMT@,$GMSGFMT,;t t
16015 s,@POSUB@,$POSUB,;t t
16016 s,@CATALOGS@,$CATALOGS,;t t
16017 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16018 s,@CROSS@,$CROSS,;t t
16019 s,@ALL@,$ALL,;t t
16020 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16021 s,@inhibit_libc@,$inhibit_libc,;t t
16022 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16023 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16024 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16025 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16026 s,@collect2@,$collect2,;t t
16027 s,@libgcc_visibility@,$libgcc_visibility,;t t
16028 s,@GGC@,$GGC,;t t
16029 s,@zlibdir@,$zlibdir,;t t
16030 s,@zlibinc@,$zlibinc,;t t
16031 s,@MAINT@,$MAINT,;t t
16032 s,@gcc_tooldir@,$gcc_tooldir,;t t
16033 s,@dollar@,$dollar,;t t
16034 s,@slibdir@,$slibdir,;t t
16035 s,@objdir@,$objdir,;t t
16036 s,@subdirs@,$subdirs,;t t
16037 s,@srcdir@,$srcdir,;t t
16038 s,@all_boot_languages@,$all_boot_languages,;t t
16039 s,@all_compilers@,$all_compilers,;t t
16040 s,@all_gtfiles@,$all_gtfiles,;t t
16041 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16042 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16043 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16044 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16045 s,@all_languages@,$all_languages,;t t
16046 s,@all_stagestuff@,$all_stagestuff,;t t
16047 s,@build_exeext@,$build_exeext,;t t
16048 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16049 s,@build_xm_file_list@,$build_xm_file_list,;t t
16050 s,@build_xm_include_list@,$build_xm_include_list,;t t
16051 s,@build_xm_defines@,$build_xm_defines,;t t
16052 s,@check_languages@,$check_languages,;t t
16053 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16054 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16055 s,@cpp_install_dir@,$cpp_install_dir,;t t
16056 s,@xmake_file@,$xmake_file,;t t
16057 s,@tmake_file@,$tmake_file,;t t
16058 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16059 s,@extra_headers_list@,$extra_headers_list,;t t
16060 s,@extra_objs@,$extra_objs,;t t
16061 s,@extra_parts@,$extra_parts,;t t
16062 s,@extra_passes@,$extra_passes,;t t
16063 s,@extra_programs@,$extra_programs,;t t
16064 s,@float_h_file@,$float_h_file,;t t
16065 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16066 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16067 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16068 s,@host_exeext@,$host_exeext,;t t
16069 s,@host_xm_file_list@,$host_xm_file_list,;t t
16070 s,@host_xm_include_list@,$host_xm_include_list,;t t
16071 s,@host_xm_defines@,$host_xm_defines,;t t
16072 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16073 s,@install@,$install,;t t
16074 s,@lang_opt_files@,$lang_opt_files,;t t
16075 s,@lang_specs_files@,$lang_specs_files,;t t
16076 s,@lang_tree_files@,$lang_tree_files,;t t
16077 s,@local_prefix@,$local_prefix,;t t
16078 s,@md_file@,$md_file,;t t
16079 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16080 s,@out_file@,$out_file,;t t
16081 s,@out_object_file@,$out_object_file,;t t
16082 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16083 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16084 s,@thread_file@,$thread_file,;t t
16085 s,@tm_file_list@,$tm_file_list,;t t
16086 s,@tm_include_list@,$tm_include_list,;t t
16087 s,@tm_defines@,$tm_defines,;t t
16088 s,@tm_p_file_list@,$tm_p_file_list,;t t
16089 s,@tm_p_include_list@,$tm_p_include_list,;t t
16090 s,@xm_file_list@,$xm_file_list,;t t
16091 s,@xm_include_list@,$xm_include_list,;t t
16092 s,@xm_defines@,$xm_defines,;t t
16093 s,@c_target_objs@,$c_target_objs,;t t
16094 s,@cxx_target_objs@,$cxx_target_objs,;t t
16095 s,@target_cpu_default@,$target_cpu_default,;t t
16096 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16097 s,@GMPLIBS@,$GMPLIBS,;t t
16098 s,@GMPINC@,$GMPINC,;t t
16099 s,@LIBOBJS@,$LIBOBJS,;t t
16100 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16101 /@language_hooks@/r $language_hooks
16102 s,@language_hooks@,,;t t
16103 CEOF
16104
16105 _ACEOF
16106
16107 cat >>$CONFIG_STATUS <<\_ACEOF
16108 # Split the substitutions into bite-sized pieces for seds with
16109 # small command number limits, like on Digital OSF/1 and HP-UX.
16110 ac_max_sed_lines=48
16111 ac_sed_frag=1 # Number of current file.
16112 ac_beg=1 # First line for current file.
16113 ac_end=$ac_max_sed_lines # Line after last line for current file.
16114 ac_more_lines=:
16115 ac_sed_cmds=
16116 while $ac_more_lines; do
16117 if test $ac_beg -gt 1; then
16118 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16119 else
16120 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16121 fi
16122 if test ! -s $tmp/subs.frag; then
16123 ac_more_lines=false
16124 else
16125 # The purpose of the label and of the branching condition is to
16126 # speed up the sed processing (if there are no `@' at all, there
16127 # is no need to browse any of the substitutions).
16128 # These are the two extra sed commands mentioned above.
16129 (echo ':t
16130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16131 if test -z "$ac_sed_cmds"; then
16132 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16133 else
16134 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16135 fi
16136 ac_sed_frag=`expr $ac_sed_frag + 1`
16137 ac_beg=$ac_end
16138 ac_end=`expr $ac_end + $ac_max_sed_lines`
16139 fi
16140 done
16141 if test -z "$ac_sed_cmds"; then
16142 ac_sed_cmds=cat
16143 fi
16144 fi # test -n "$CONFIG_FILES"
16145
16146 _ACEOF
16147 cat >>$CONFIG_STATUS <<\_ACEOF
16148 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16150 case $ac_file in
16151 - | *:- | *:-:* ) # input from stdin
16152 cat >$tmp/stdin
16153 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16154 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16155 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16156 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16157 * ) ac_file_in=$ac_file.in ;;
16158 esac
16159
16160 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16161 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16162 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16163 X"$ac_file" : 'X\(//\)[^/]' \| \
16164 X"$ac_file" : 'X\(//\)$' \| \
16165 X"$ac_file" : 'X\(/\)' \| \
16166 . : '\(.\)' 2>/dev/null ||
16167 echo X"$ac_file" |
16168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16170 /^X\(\/\/\)$/{ s//\1/; q; }
16171 /^X\(\/\).*/{ s//\1/; q; }
16172 s/.*/./; q'`
16173 { if $as_mkdir_p; then
16174 mkdir -p "$ac_dir"
16175 else
16176 as_dir="$ac_dir"
16177 as_dirs=
16178 while test ! -d "$as_dir"; do
16179 as_dirs="$as_dir $as_dirs"
16180 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16182 X"$as_dir" : 'X\(//\)[^/]' \| \
16183 X"$as_dir" : 'X\(//\)$' \| \
16184 X"$as_dir" : 'X\(/\)' \| \
16185 . : '\(.\)' 2>/dev/null ||
16186 echo X"$as_dir" |
16187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16189 /^X\(\/\/\)$/{ s//\1/; q; }
16190 /^X\(\/\).*/{ s//\1/; q; }
16191 s/.*/./; q'`
16192 done
16193 test ! -n "$as_dirs" || mkdir $as_dirs
16194 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16195 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16196 { (exit 1); exit 1; }; }; }
16197
16198 ac_builddir=.
16199
16200 if test "$ac_dir" != .; then
16201 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16202 # A "../" for each directory in $ac_dir_suffix.
16203 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16204 else
16205 ac_dir_suffix= ac_top_builddir=
16206 fi
16207
16208 case $srcdir in
16209 .) # No --srcdir option. We are building in place.
16210 ac_srcdir=.
16211 if test -z "$ac_top_builddir"; then
16212 ac_top_srcdir=.
16213 else
16214 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16215 fi ;;
16216 [\\/]* | ?:[\\/]* ) # Absolute path.
16217 ac_srcdir=$srcdir$ac_dir_suffix;
16218 ac_top_srcdir=$srcdir ;;
16219 *) # Relative path.
16220 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16221 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16222 esac
16223
16224 # Do not use `cd foo && pwd` to compute absolute paths, because
16225 # the directories may not exist.
16226 case `pwd` in
16227 .) ac_abs_builddir="$ac_dir";;
16228 *)
16229 case "$ac_dir" in
16230 .) ac_abs_builddir=`pwd`;;
16231 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16232 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16233 esac;;
16234 esac
16235 case $ac_abs_builddir in
16236 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16237 *)
16238 case ${ac_top_builddir}. in
16239 .) ac_abs_top_builddir=$ac_abs_builddir;;
16240 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16241 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16242 esac;;
16243 esac
16244 case $ac_abs_builddir in
16245 .) ac_abs_srcdir=$ac_srcdir;;
16246 *)
16247 case $ac_srcdir in
16248 .) ac_abs_srcdir=$ac_abs_builddir;;
16249 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16250 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16251 esac;;
16252 esac
16253 case $ac_abs_builddir in
16254 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16255 *)
16256 case $ac_top_srcdir in
16257 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16258 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16259 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16260 esac;;
16261 esac
16262
16263
16264
16265 # Let's still pretend it is `configure' which instantiates (i.e., don't
16266 # use $as_me), people would be surprised to read:
16267 # /* config.h. Generated by config.status. */
16268 if test x"$ac_file" = x-; then
16269 configure_input=
16270 else
16271 configure_input="$ac_file. "
16272 fi
16273 configure_input=$configure_input"Generated from `echo $ac_file_in |
16274 sed 's,.*/,,'` by configure."
16275
16276 # First look for the input files in the build tree, otherwise in the
16277 # src tree.
16278 ac_file_inputs=`IFS=:
16279 for f in $ac_file_in; do
16280 case $f in
16281 -) echo $tmp/stdin ;;
16282 [\\/$]*)
16283 # Absolute (can't be DOS-style, as IFS=:)
16284 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16285 echo "$as_me: error: cannot find input file: $f" >&2;}
16286 { (exit 1); exit 1; }; }
16287 echo "$f";;
16288 *) # Relative
16289 if test -f "$f"; then
16290 # Build tree
16291 echo "$f"
16292 elif test -f "$srcdir/$f"; then
16293 # Source tree
16294 echo "$srcdir/$f"
16295 else
16296 # /dev/null tree
16297 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16298 echo "$as_me: error: cannot find input file: $f" >&2;}
16299 { (exit 1); exit 1; }; }
16300 fi;;
16301 esac
16302 done` || { (exit 1); exit 1; }
16303
16304 if test x"$ac_file" != x-; then
16305 { echo "$as_me:$LINENO: creating $ac_file" >&5
16306 echo "$as_me: creating $ac_file" >&6;}
16307 rm -f "$ac_file"
16308 fi
16309 _ACEOF
16310 cat >>$CONFIG_STATUS <<_ACEOF
16311 sed "$ac_vpsub
16312 $extrasub
16313 _ACEOF
16314 cat >>$CONFIG_STATUS <<\_ACEOF
16315 :t
16316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16317 s,@configure_input@,$configure_input,;t t
16318 s,@srcdir@,$ac_srcdir,;t t
16319 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16320 s,@top_srcdir@,$ac_top_srcdir,;t t
16321 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16322 s,@builddir@,$ac_builddir,;t t
16323 s,@abs_builddir@,$ac_abs_builddir,;t t
16324 s,@top_builddir@,$ac_top_builddir,;t t
16325 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16326 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16327 rm -f $tmp/stdin
16328 if test x"$ac_file" != x-; then
16329 mv $tmp/out $ac_file
16330 else
16331 cat $tmp/out
16332 rm -f $tmp/out
16333 fi
16334
16335 done
16336 _ACEOF
16337 cat >>$CONFIG_STATUS <<\_ACEOF
16338
16339 #
16340 # CONFIG_HEADER section.
16341 #
16342
16343 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16344 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16345 #
16346 # ac_d sets the value in "#define NAME VALUE" lines.
16347 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16348 ac_dB='[ ].*$,\1#\2'
16349 ac_dC=' '
16350 ac_dD=',;t'
16351 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16352 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16353 ac_uB='$,\1#\2define\3'
16354 ac_uC=' '
16355 ac_uD=',;t'
16356
16357 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16358 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16359 case $ac_file in
16360 - | *:- | *:-:* ) # input from stdin
16361 cat >$tmp/stdin
16362 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16363 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16364 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16365 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16366 * ) ac_file_in=$ac_file.in ;;
16367 esac
16368
16369 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16370 echo "$as_me: creating $ac_file" >&6;}
16371
16372 # First look for the input files in the build tree, otherwise in the
16373 # src tree.
16374 ac_file_inputs=`IFS=:
16375 for f in $ac_file_in; do
16376 case $f in
16377 -) echo $tmp/stdin ;;
16378 [\\/$]*)
16379 # Absolute (can't be DOS-style, as IFS=:)
16380 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16381 echo "$as_me: error: cannot find input file: $f" >&2;}
16382 { (exit 1); exit 1; }; }
16383 # Do quote $f, to prevent DOS paths from being IFS'd.
16384 echo "$f";;
16385 *) # Relative
16386 if test -f "$f"; then
16387 # Build tree
16388 echo "$f"
16389 elif test -f "$srcdir/$f"; then
16390 # Source tree
16391 echo "$srcdir/$f"
16392 else
16393 # /dev/null tree
16394 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16395 echo "$as_me: error: cannot find input file: $f" >&2;}
16396 { (exit 1); exit 1; }; }
16397 fi;;
16398 esac
16399 done` || { (exit 1); exit 1; }
16400 # Remove the trailing spaces.
16401 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16402
16403 _ACEOF
16404
16405 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16406 # `conftest.undefs', that substitutes the proper values into
16407 # config.h.in to produce config.h. The first handles `#define'
16408 # templates, and the second `#undef' templates.
16409 # And first: Protect against being on the right side of a sed subst in
16410 # config.status. Protect against being in an unquoted here document
16411 # in config.status.
16412 rm -f conftest.defines conftest.undefs
16413 # Using a here document instead of a string reduces the quoting nightmare.
16414 # Putting comments in sed scripts is not portable.
16415 #
16416 # `end' is used to avoid that the second main sed command (meant for
16417 # 0-ary CPP macros) applies to n-ary macro definitions.
16418 # See the Autoconf documentation for `clear'.
16419 cat >confdef2sed.sed <<\_ACEOF
16420 s/[\\&,]/\\&/g
16421 s,[\\$`],\\&,g
16422 t clear
16423 : clear
16424 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16425 t end
16426 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16427 : end
16428 _ACEOF
16429 # If some macros were called several times there might be several times
16430 # the same #defines, which is useless. Nevertheless, we may not want to
16431 # sort them, since we want the *last* AC-DEFINE to be honored.
16432 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16433 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16434 rm -f confdef2sed.sed
16435
16436 # This sed command replaces #undef with comments. This is necessary, for
16437 # example, in the case of _POSIX_SOURCE, which is predefined and required
16438 # on some systems where configure will not decide to define it.
16439 cat >>conftest.undefs <<\_ACEOF
16440 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16441 _ACEOF
16442
16443 # Break up conftest.defines because some shells have a limit on the size
16444 # of here documents, and old seds have small limits too (100 cmds).
16445 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16446 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16447 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16448 echo ' :' >>$CONFIG_STATUS
16449 rm -f conftest.tail
16450 while grep . conftest.defines >/dev/null
16451 do
16452 # Write a limited-size here document to $tmp/defines.sed.
16453 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16454 # Speed up: don't consider the non `#define' lines.
16455 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16456 # Work around the forget-to-reset-the-flag bug.
16457 echo 't clr' >>$CONFIG_STATUS
16458 echo ': clr' >>$CONFIG_STATUS
16459 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16460 echo 'CEOF
16461 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16462 rm -f $tmp/in
16463 mv $tmp/out $tmp/in
16464 ' >>$CONFIG_STATUS
16465 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16466 rm -f conftest.defines
16467 mv conftest.tail conftest.defines
16468 done
16469 rm -f conftest.defines
16470 echo ' fi # grep' >>$CONFIG_STATUS
16471 echo >>$CONFIG_STATUS
16472
16473 # Break up conftest.undefs because some shells have a limit on the size
16474 # of here documents, and old seds have small limits too (100 cmds).
16475 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16476 rm -f conftest.tail
16477 while grep . conftest.undefs >/dev/null
16478 do
16479 # Write a limited-size here document to $tmp/undefs.sed.
16480 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16481 # Speed up: don't consider the non `#undef'
16482 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16483 # Work around the forget-to-reset-the-flag bug.
16484 echo 't clr' >>$CONFIG_STATUS
16485 echo ': clr' >>$CONFIG_STATUS
16486 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16487 echo 'CEOF
16488 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16489 rm -f $tmp/in
16490 mv $tmp/out $tmp/in
16491 ' >>$CONFIG_STATUS
16492 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16493 rm -f conftest.undefs
16494 mv conftest.tail conftest.undefs
16495 done
16496 rm -f conftest.undefs
16497
16498 cat >>$CONFIG_STATUS <<\_ACEOF
16499 # Let's still pretend it is `configure' which instantiates (i.e., don't
16500 # use $as_me), people would be surprised to read:
16501 # /* config.h. Generated by config.status. */
16502 if test x"$ac_file" = x-; then
16503 echo "/* Generated by configure. */" >$tmp/config.h
16504 else
16505 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16506 fi
16507 cat $tmp/in >>$tmp/config.h
16508 rm -f $tmp/in
16509 if test x"$ac_file" != x-; then
16510 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16511 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16512 echo "$as_me: $ac_file is unchanged" >&6;}
16513 else
16514 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16515 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16516 X"$ac_file" : 'X\(//\)[^/]' \| \
16517 X"$ac_file" : 'X\(//\)$' \| \
16518 X"$ac_file" : 'X\(/\)' \| \
16519 . : '\(.\)' 2>/dev/null ||
16520 echo X"$ac_file" |
16521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16523 /^X\(\/\/\)$/{ s//\1/; q; }
16524 /^X\(\/\).*/{ s//\1/; q; }
16525 s/.*/./; q'`
16526 { if $as_mkdir_p; then
16527 mkdir -p "$ac_dir"
16528 else
16529 as_dir="$ac_dir"
16530 as_dirs=
16531 while test ! -d "$as_dir"; do
16532 as_dirs="$as_dir $as_dirs"
16533 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16535 X"$as_dir" : 'X\(//\)[^/]' \| \
16536 X"$as_dir" : 'X\(//\)$' \| \
16537 X"$as_dir" : 'X\(/\)' \| \
16538 . : '\(.\)' 2>/dev/null ||
16539 echo X"$as_dir" |
16540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16542 /^X\(\/\/\)$/{ s//\1/; q; }
16543 /^X\(\/\).*/{ s//\1/; q; }
16544 s/.*/./; q'`
16545 done
16546 test ! -n "$as_dirs" || mkdir $as_dirs
16547 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16548 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16549 { (exit 1); exit 1; }; }; }
16550
16551 rm -f $ac_file
16552 mv $tmp/config.h $ac_file
16553 fi
16554 else
16555 cat $tmp/config.h
16556 rm -f $tmp/config.h
16557 fi
16558 done
16559 _ACEOF
16560 cat >>$CONFIG_STATUS <<\_ACEOF
16561
16562 #
16563 # CONFIG_COMMANDS section.
16564 #
16565 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16566 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16567 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16568 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16569 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16570 X"$ac_dest" : 'X\(//\)[^/]' \| \
16571 X"$ac_dest" : 'X\(//\)$' \| \
16572 X"$ac_dest" : 'X\(/\)' \| \
16573 . : '\(.\)' 2>/dev/null ||
16574 echo X"$ac_dest" |
16575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16577 /^X\(\/\/\)$/{ s//\1/; q; }
16578 /^X\(\/\).*/{ s//\1/; q; }
16579 s/.*/./; q'`
16580 { if $as_mkdir_p; then
16581 mkdir -p "$ac_dir"
16582 else
16583 as_dir="$ac_dir"
16584 as_dirs=
16585 while test ! -d "$as_dir"; do
16586 as_dirs="$as_dir $as_dirs"
16587 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16589 X"$as_dir" : 'X\(//\)[^/]' \| \
16590 X"$as_dir" : 'X\(//\)$' \| \
16591 X"$as_dir" : 'X\(/\)' \| \
16592 . : '\(.\)' 2>/dev/null ||
16593 echo X"$as_dir" |
16594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16596 /^X\(\/\/\)$/{ s//\1/; q; }
16597 /^X\(\/\).*/{ s//\1/; q; }
16598 s/.*/./; q'`
16599 done
16600 test ! -n "$as_dirs" || mkdir $as_dirs
16601 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16602 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16603 { (exit 1); exit 1; }; }; }
16604
16605 ac_builddir=.
16606
16607 if test "$ac_dir" != .; then
16608 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16609 # A "../" for each directory in $ac_dir_suffix.
16610 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16611 else
16612 ac_dir_suffix= ac_top_builddir=
16613 fi
16614
16615 case $srcdir in
16616 .) # No --srcdir option. We are building in place.
16617 ac_srcdir=.
16618 if test -z "$ac_top_builddir"; then
16619 ac_top_srcdir=.
16620 else
16621 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16622 fi ;;
16623 [\\/]* | ?:[\\/]* ) # Absolute path.
16624 ac_srcdir=$srcdir$ac_dir_suffix;
16625 ac_top_srcdir=$srcdir ;;
16626 *) # Relative path.
16627 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16628 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16629 esac
16630
16631 # Do not use `cd foo && pwd` to compute absolute paths, because
16632 # the directories may not exist.
16633 case `pwd` in
16634 .) ac_abs_builddir="$ac_dir";;
16635 *)
16636 case "$ac_dir" in
16637 .) ac_abs_builddir=`pwd`;;
16638 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16639 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16640 esac;;
16641 esac
16642 case $ac_abs_builddir in
16643 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16644 *)
16645 case ${ac_top_builddir}. in
16646 .) ac_abs_top_builddir=$ac_abs_builddir;;
16647 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16648 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16649 esac;;
16650 esac
16651 case $ac_abs_builddir in
16652 .) ac_abs_srcdir=$ac_srcdir;;
16653 *)
16654 case $ac_srcdir in
16655 .) ac_abs_srcdir=$ac_abs_builddir;;
16656 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16657 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16658 esac;;
16659 esac
16660 case $ac_abs_builddir in
16661 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16662 *)
16663 case $ac_top_srcdir in
16664 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16665 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16666 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16667 esac;;
16668 esac
16669
16670
16671 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16672 echo "$as_me: executing $ac_dest commands" >&6;}
16673 case $ac_dest in
16674 default )
16675 case ${CONFIG_HEADERS} in
16676 *auto-host.h:config.in*)
16677 echo > cstamp-h ;;
16678 esac
16679 # Make sure all the subdirs exist.
16680 for d in $subdirs doc build
16681 do
16682 test -d $d || mkdir $d
16683 done
16684 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16685 # bootstrapping and the installation procedure can still use
16686 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16687 # FLAGS_TO_PASS has been modified to solve the problem there.
16688 # This is virtually a duplicate of what happens in configure.lang; we do
16689 # an extra check to make sure this only happens if ln -s can be used.
16690 case "$LN_S" in
16691 *-s*)
16692 for d in ${subdirs} ; do
16693 STARTDIR=`${PWDCMD-pwd}`
16694 cd $d
16695 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16696 do
16697 rm -f $t
16698 $LN_S ../$t $t 2>/dev/null
16699 done
16700 cd $STARTDIR
16701 done
16702 ;;
16703 esac
16704 ;;
16705 esac
16706 done
16707 _ACEOF
16708
16709 cat >>$CONFIG_STATUS <<\_ACEOF
16710
16711 { (exit 0); exit 0; }
16712 _ACEOF
16713 chmod +x $CONFIG_STATUS
16714 ac_clean_files=$ac_clean_files_save
16715
16716
16717 # configure is writing to config.log, and then calls config.status.
16718 # config.status does its own redirection, appending to config.log.
16719 # Unfortunately, on DOS this fails, as config.log is still kept open
16720 # by configure, so config.status won't be able to write to it; its
16721 # output is simply discarded. So we exec the FD to /dev/null,
16722 # effectively closing config.log, so it can be properly (re)opened and
16723 # appended to by config.status. When coming back to configure, we
16724 # need to make the FD available again.
16725 if test "$no_create" != yes; then
16726 ac_cs_success=:
16727 ac_config_status_args=
16728 test "$silent" = yes &&
16729 ac_config_status_args="$ac_config_status_args --quiet"
16730 exec 5>/dev/null
16731 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16732 exec 5>>config.log
16733 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16734 # would make configure fail if this is the last instruction.
16735 $ac_cs_success || { (exit 1); exit 1; }
16736 fi
16737
This page took 0.910129 seconds and 5 git commands to generate.