]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
ed7bba16e0e8dc95b42114ebdab8e0135b32d1b6
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn cxx_compat_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
839
840 cat <<\_ACEOF
841
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
846
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror despite compiler version
866 --enable-checking=LIST
867 enable expensive run-time checks. With LIST,
868 enable only specific categories of checks.
869 Categories are: yes,no,all,none,release.
870 Flags are: assert,df,fold,gc,gcac,misc,
871 rtlflag,rtl,runtime,tree,valgrind,types.
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-decimal-float={no,yes,bid,dpd}
883 enable decimal float extension to C. Selecting 'bid'
884 or 'dpd' choses which decimal floating point format
885 to use
886 --enable-fixed-point enable fixed-point arithmetic extension to C
887 --enable-threads enable thread usage for target GCC
888 --enable-threads=LIB use LIB thread package for target GCC
889 --enable-tls enable or disable generation of tls code
890 overriding the assembler check for tls support
891 --enable-objc-gc enable the use of Boehm's garbage collector with
892 the GNU Objective-C runtime
893 --disable-shared don't provide a shared libgcc
894 --enable-intermodule build the compiler in one step
895 --enable-languages=LIST specify which front-ends to build
896 --disable-rpath do not hardcode runtime library paths
897 --enable-initfini-array use .init_array/.fini_array sections
898 --enable-sjlj-exceptions
899 arrange to use setjmp/longjmp exception handling
900 --enable-secureplt enable -msecure-plt by default for PowerPC
901 --disable-win32-registry
902 disable lookup of installation paths in the
903 Registry on Windows hosts
904 --enable-win32-registry enable registry lookup (default)
905 --enable-win32-registry=KEY
906 use KEY instead of GCC version as the last portion
907 of the registry key
908 --enable-maintainer-mode
909 enable make rules and dependencies not useful
910 (and sometimes confusing) to the casual installer
911 --enable-version-specific-runtime-libs
912 specify that runtime libraries should be
913 installed in a compiler-specific directory
914
915 Optional Packages:
916 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
917 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
918 --with-build-libsubdir=DIR Directory where to find libraries for build system
919 --with-local-prefix=DIR specifies directory to put local include
920 --with-gxx-include-dir=DIR
921 specifies directory to put g++ header files
922 --with-cpp-install-dir=DIR
923 install the user visible C preprocessor in DIR
924 (relative to PREFIX) as well as PREFIX/bin
925 --with-gnu-ld arrange to work with GNU ld.
926 --with-ld arrange to use the specified ld (full pathname)
927 --with-demangler-in-ld try to use demangler in GNU ld.
928 --with-gnu-as arrange to work with GNU as
929 --with-as arrange to use the specified as (full pathname)
930 --with-stabs arrange to use stabs instead of host debug format
931 --with-dwarf2 force the default debug format to be DWARF 2
932 --with-build-sysroot=sysroot
933 use sysroot as the system root during the build
934 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
935 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
936 --with-bugurl=URL Direct users to URL to report a bug
937 --with-gnu-ld assume the C compiler uses GNU ld default=no
938 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
939 --without-libiconv-prefix don't search for libiconv in includedir and libdir
940 --with-system-libunwind use installed libunwind
941 --with-long-double-128 Use 128-bit long double by default.
942 --with-gc={page,zone} choose the garbage collection mechanism to use
943 with the compiler
944 --with-system-zlib use installed libz
945 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
946 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
947 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
948 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
949
950 Some influential environment variables:
951 CC C compiler command
952 CFLAGS C compiler flags
953 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
954 nonstandard directory <lib dir>
955 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
956 headers in a nonstandard directory <include dir>
957 CPP C preprocessor
958 GMPLIBS How to link GMP
959 GMPINC How to find GMP include files
960
961 Use these variables to override the choices made by `configure' or to help
962 it to find libraries and programs with nonstandard names/locations.
963
964 _ACEOF
965 fi
966
967 if test "$ac_init_help" = "recursive"; then
968 # If there are subdirs, report their specific --help.
969 ac_popdir=`pwd`
970 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
971 test -d $ac_dir || continue
972 ac_builddir=.
973
974 if test "$ac_dir" != .; then
975 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
976 # A "../" for each directory in $ac_dir_suffix.
977 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
978 else
979 ac_dir_suffix= ac_top_builddir=
980 fi
981
982 case $srcdir in
983 .) # No --srcdir option. We are building in place.
984 ac_srcdir=.
985 if test -z "$ac_top_builddir"; then
986 ac_top_srcdir=.
987 else
988 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
989 fi ;;
990 [\\/]* | ?:[\\/]* ) # Absolute path.
991 ac_srcdir=$srcdir$ac_dir_suffix;
992 ac_top_srcdir=$srcdir ;;
993 *) # Relative path.
994 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
995 ac_top_srcdir=$ac_top_builddir$srcdir ;;
996 esac
997
998 # Do not use `cd foo && pwd` to compute absolute paths, because
999 # the directories may not exist.
1000 case `pwd` in
1001 .) ac_abs_builddir="$ac_dir";;
1002 *)
1003 case "$ac_dir" in
1004 .) ac_abs_builddir=`pwd`;;
1005 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1006 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1007 esac;;
1008 esac
1009 case $ac_abs_builddir in
1010 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1011 *)
1012 case ${ac_top_builddir}. in
1013 .) ac_abs_top_builddir=$ac_abs_builddir;;
1014 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1015 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1016 esac;;
1017 esac
1018 case $ac_abs_builddir in
1019 .) ac_abs_srcdir=$ac_srcdir;;
1020 *)
1021 case $ac_srcdir in
1022 .) ac_abs_srcdir=$ac_abs_builddir;;
1023 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1024 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1025 esac;;
1026 esac
1027 case $ac_abs_builddir in
1028 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1029 *)
1030 case $ac_top_srcdir in
1031 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1032 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1033 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1034 esac;;
1035 esac
1036
1037 cd $ac_dir
1038 # Check for guested configure; otherwise get Cygnus style configure.
1039 if test -f $ac_srcdir/configure.gnu; then
1040 echo
1041 $SHELL $ac_srcdir/configure.gnu --help=recursive
1042 elif test -f $ac_srcdir/configure; then
1043 echo
1044 $SHELL $ac_srcdir/configure --help=recursive
1045 elif test -f $ac_srcdir/configure.ac ||
1046 test -f $ac_srcdir/configure.in; then
1047 echo
1048 $ac_configure --help
1049 else
1050 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1051 fi
1052 cd $ac_popdir
1053 done
1054 fi
1055
1056 test -n "$ac_init_help" && exit 0
1057 if $ac_init_version; then
1058 cat <<\_ACEOF
1059
1060 Copyright (C) 2003 Free Software Foundation, Inc.
1061 This configure script is free software; the Free Software Foundation
1062 gives unlimited permission to copy, distribute and modify it.
1063 _ACEOF
1064 exit 0
1065 fi
1066 exec 5>config.log
1067 cat >&5 <<_ACEOF
1068 This file contains any messages produced by compilers while
1069 running configure, to aid debugging if configure makes a mistake.
1070
1071 It was created by $as_me, which was
1072 generated by GNU Autoconf 2.59. Invocation command line was
1073
1074 $ $0 $@
1075
1076 _ACEOF
1077 {
1078 cat <<_ASUNAME
1079 ## --------- ##
1080 ## Platform. ##
1081 ## --------- ##
1082
1083 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1084 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1085 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1086 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1087 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1088
1089 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1090 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1091
1092 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1093 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1094 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1095 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1096 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1097 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1098 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1099
1100 _ASUNAME
1101
1102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1103 for as_dir in $PATH
1104 do
1105 IFS=$as_save_IFS
1106 test -z "$as_dir" && as_dir=.
1107 echo "PATH: $as_dir"
1108 done
1109
1110 } >&5
1111
1112 cat >&5 <<_ACEOF
1113
1114
1115 ## ----------- ##
1116 ## Core tests. ##
1117 ## ----------- ##
1118
1119 _ACEOF
1120
1121
1122 # Keep a trace of the command line.
1123 # Strip out --no-create and --no-recursion so they do not pile up.
1124 # Strip out --silent because we don't want to record it for future runs.
1125 # Also quote any args containing shell meta-characters.
1126 # Make two passes to allow for proper duplicate-argument suppression.
1127 ac_configure_args=
1128 ac_configure_args0=
1129 ac_configure_args1=
1130 ac_sep=
1131 ac_must_keep_next=false
1132 for ac_pass in 1 2
1133 do
1134 for ac_arg
1135 do
1136 case $ac_arg in
1137 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 continue ;;
1141 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1142 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1143 esac
1144 case $ac_pass in
1145 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1146 2)
1147 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1148 if test $ac_must_keep_next = true; then
1149 ac_must_keep_next=false # Got value, back to normal.
1150 else
1151 case $ac_arg in
1152 *=* | --config-cache | -C | -disable-* | --disable-* \
1153 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1154 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1155 | -with-* | --with-* | -without-* | --without-* | --x)
1156 case "$ac_configure_args0 " in
1157 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1158 esac
1159 ;;
1160 -* ) ac_must_keep_next=true ;;
1161 esac
1162 fi
1163 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1164 # Get rid of the leading space.
1165 ac_sep=" "
1166 ;;
1167 esac
1168 done
1169 done
1170 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1171 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1172
1173 # When interrupted or exit'd, cleanup temporary files, and complete
1174 # config.log. We remove comments because anyway the quotes in there
1175 # would cause problems or look ugly.
1176 # WARNING: Be sure not to use single quotes in there, as some shells,
1177 # such as our DU 5.0 friend, will then `close' the trap.
1178 trap 'exit_status=$?
1179 # Save into config.log some information that might help in debugging.
1180 {
1181 echo
1182
1183 cat <<\_ASBOX
1184 ## ---------------- ##
1185 ## Cache variables. ##
1186 ## ---------------- ##
1187 _ASBOX
1188 echo
1189 # The following way of writing the cache mishandles newlines in values,
1190 {
1191 (set) 2>&1 |
1192 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1193 *ac_space=\ *)
1194 sed -n \
1195 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1197 ;;
1198 *)
1199 sed -n \
1200 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1201 ;;
1202 esac;
1203 }
1204 echo
1205
1206 cat <<\_ASBOX
1207 ## ----------------- ##
1208 ## Output variables. ##
1209 ## ----------------- ##
1210 _ASBOX
1211 echo
1212 for ac_var in $ac_subst_vars
1213 do
1214 eval ac_val=$`echo $ac_var`
1215 echo "$ac_var='"'"'$ac_val'"'"'"
1216 done | sort
1217 echo
1218
1219 if test -n "$ac_subst_files"; then
1220 cat <<\_ASBOX
1221 ## ------------- ##
1222 ## Output files. ##
1223 ## ------------- ##
1224 _ASBOX
1225 echo
1226 for ac_var in $ac_subst_files
1227 do
1228 eval ac_val=$`echo $ac_var`
1229 echo "$ac_var='"'"'$ac_val'"'"'"
1230 done | sort
1231 echo
1232 fi
1233
1234 if test -s confdefs.h; then
1235 cat <<\_ASBOX
1236 ## ----------- ##
1237 ## confdefs.h. ##
1238 ## ----------- ##
1239 _ASBOX
1240 echo
1241 sed "/^$/d" confdefs.h | sort
1242 echo
1243 fi
1244 test "$ac_signal" != 0 &&
1245 echo "$as_me: caught signal $ac_signal"
1246 echo "$as_me: exit $exit_status"
1247 } >&5
1248 rm -f core *.core &&
1249 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1250 exit $exit_status
1251 ' 0
1252 for ac_signal in 1 2 13 15; do
1253 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1254 done
1255 ac_signal=0
1256
1257 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1258 rm -rf conftest* confdefs.h
1259 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1260 echo >confdefs.h
1261
1262 # Predefined preprocessor variables.
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_NAME "$PACKAGE_NAME"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1276 _ACEOF
1277
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_STRING "$PACKAGE_STRING"
1281 _ACEOF
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1286 _ACEOF
1287
1288
1289 # Let the site file select an alternate cache file if it wants to.
1290 # Prefer explicitly selected file to automatically selected ones.
1291 if test -z "$CONFIG_SITE"; then
1292 if test "x$prefix" != xNONE; then
1293 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1294 else
1295 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1296 fi
1297 fi
1298 for ac_site_file in $CONFIG_SITE; do
1299 if test -r "$ac_site_file"; then
1300 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1301 echo "$as_me: loading site script $ac_site_file" >&6;}
1302 sed 's/^/| /' "$ac_site_file" >&5
1303 . "$ac_site_file"
1304 fi
1305 done
1306
1307 if test -r "$cache_file"; then
1308 # Some versions of bash will fail to source /dev/null (special
1309 # files actually), so we avoid doing that.
1310 if test -f "$cache_file"; then
1311 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1312 echo "$as_me: loading cache $cache_file" >&6;}
1313 case $cache_file in
1314 [\\/]* | ?:[\\/]* ) . $cache_file;;
1315 *) . ./$cache_file;;
1316 esac
1317 fi
1318 else
1319 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1320 echo "$as_me: creating cache $cache_file" >&6;}
1321 >$cache_file
1322 fi
1323
1324 # Check that the precious variables saved in the cache have kept the same
1325 # value.
1326 ac_cache_corrupted=false
1327 for ac_var in `(set) 2>&1 |
1328 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1330 eval ac_new_set=\$ac_env_${ac_var}_set
1331 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1332 eval ac_new_val="\$ac_env_${ac_var}_value"
1333 case $ac_old_set,$ac_new_set in
1334 set,)
1335 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1336 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1337 ac_cache_corrupted=: ;;
1338 ,set)
1339 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1340 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1341 ac_cache_corrupted=: ;;
1342 ,);;
1343 *)
1344 if test "x$ac_old_val" != "x$ac_new_val"; then
1345 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1346 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1347 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1348 echo "$as_me: former value: $ac_old_val" >&2;}
1349 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1350 echo "$as_me: current value: $ac_new_val" >&2;}
1351 ac_cache_corrupted=:
1352 fi;;
1353 esac
1354 # Pass precious variables to config.status.
1355 if test "$ac_new_set" = set; then
1356 case $ac_new_val in
1357 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1358 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1359 *) ac_arg=$ac_var=$ac_new_val ;;
1360 esac
1361 case " $ac_configure_args " in
1362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1363 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1364 esac
1365 fi
1366 done
1367 if $ac_cache_corrupted; then
1368 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1369 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1370 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1371 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1372 { (exit 1); exit 1; }; }
1373 fi
1374
1375 ac_ext=c
1376 ac_cpp='$CPP $CPPFLAGS'
1377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1401
1402
1403 gcc_version=`cat $srcdir/BASE-VER`
1404
1405 # Determine the host, build, and target systems
1406 ac_aux_dir=
1407 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1408 if test -f $ac_dir/install-sh; then
1409 ac_aux_dir=$ac_dir
1410 ac_install_sh="$ac_aux_dir/install-sh -c"
1411 break
1412 elif test -f $ac_dir/install.sh; then
1413 ac_aux_dir=$ac_dir
1414 ac_install_sh="$ac_aux_dir/install.sh -c"
1415 break
1416 elif test -f $ac_dir/shtool; then
1417 ac_aux_dir=$ac_dir
1418 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 break
1420 fi
1421 done
1422 if test -z "$ac_aux_dir"; then
1423 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1424 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1425 { (exit 1); exit 1; }; }
1426 fi
1427 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1428 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1429 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1430
1431 # Make sure we can run config.sub.
1432 $ac_config_sub sun4 >/dev/null 2>&1 ||
1433 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1434 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1435 { (exit 1); exit 1; }; }
1436
1437 echo "$as_me:$LINENO: checking build system type" >&5
1438 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1439 if test "${ac_cv_build+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442 ac_cv_build_alias=$build_alias
1443 test -z "$ac_cv_build_alias" &&
1444 ac_cv_build_alias=`$ac_config_guess`
1445 test -z "$ac_cv_build_alias" &&
1446 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1447 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1448 { (exit 1); exit 1; }; }
1449 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1450 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1451 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1452 { (exit 1); exit 1; }; }
1453
1454 fi
1455 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1456 echo "${ECHO_T}$ac_cv_build" >&6
1457 build=$ac_cv_build
1458 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1459 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1460 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1461
1462
1463 echo "$as_me:$LINENO: checking host system type" >&5
1464 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1465 if test "${ac_cv_host+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468 ac_cv_host_alias=$host_alias
1469 test -z "$ac_cv_host_alias" &&
1470 ac_cv_host_alias=$ac_cv_build_alias
1471 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1473 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1474 { (exit 1); exit 1; }; }
1475
1476 fi
1477 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1478 echo "${ECHO_T}$ac_cv_host" >&6
1479 host=$ac_cv_host
1480 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1481 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1482 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1483
1484
1485 echo "$as_me:$LINENO: checking target system type" >&5
1486 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1487 if test "${ac_cv_target+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490 ac_cv_target_alias=$target_alias
1491 test "x$ac_cv_target_alias" = "x" &&
1492 ac_cv_target_alias=$ac_cv_host_alias
1493 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1495 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1496 { (exit 1); exit 1; }; }
1497
1498 fi
1499 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1500 echo "${ECHO_T}$ac_cv_target" >&6
1501 target=$ac_cv_target
1502 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1503 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1504 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505
1506
1507 # The aliases save the names the user supplied, while $host etc.
1508 # will get canonicalized.
1509 test -n "$target_alias" &&
1510 test "$program_prefix$program_suffix$program_transform_name" = \
1511 NONENONEs,x,x, &&
1512 program_prefix=${target_alias}-
1513
1514 # Determine the noncanonical target name, for directory use.
1515 case ${build_alias} in
1516 "") build_noncanonical=${build} ;;
1517 *) build_noncanonical=${build_alias} ;;
1518 esac
1519
1520 case ${host_alias} in
1521 "") host_noncanonical=${build_noncanonical} ;;
1522 *) host_noncanonical=${host_alias} ;;
1523 esac
1524
1525 case ${target_alias} in
1526 "") target_noncanonical=${host_noncanonical} ;;
1527 *) target_noncanonical=${target_alias} ;;
1528 esac
1529
1530
1531
1532
1533 # Determine the target- and build-specific subdirectories
1534
1535 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1536 # have matching libraries, they should use host libraries: Makefile.tpl
1537 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1538 # However, they still use the build modules, because the corresponding
1539 # host modules (e.g. bison) are only built for the host when bootstrap
1540 # finishes. So:
1541 # - build_subdir is where we find build modules, and never changes.
1542 # - build_libsubdir is where we find build libraries, and can be overridden.
1543
1544 # Prefix 'build-' so this never conflicts with target_subdir.
1545 build_subdir="build-${build_noncanonical}"
1546
1547 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1548 if test "${with_build_libsubdir+set}" = set; then
1549 withval="$with_build_libsubdir"
1550 build_libsubdir="$withval"
1551 else
1552 build_libsubdir="$build_subdir"
1553 fi;
1554 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1555 if ( test $srcdir = . && test -d gcc ) \
1556 || test -d $srcdir/../host-${host_noncanonical}; then
1557 host_subdir="host-${host_noncanonical}"
1558 else
1559 host_subdir=.
1560 fi
1561 # No prefix.
1562 target_subdir=${target_noncanonical}
1563
1564
1565 # Set program_transform_name
1566 test "$program_prefix" != NONE &&
1567 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1568 # Use a double $ so make ignores it.
1569 test "$program_suffix" != NONE &&
1570 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1571 # Double any \ or $. echo might interpret backslashes.
1572 # By default was `s,x,x', remove it if useless.
1573 cat <<\_ACEOF >conftest.sed
1574 s/[\\$]/&&/g;s/;s,x,x,$//
1575 _ACEOF
1576 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1577 rm conftest.sed
1578
1579
1580 # Check for bogus environment variables.
1581 # Test if LIBRARY_PATH contains the notation for the current directory
1582 # since this would lead to problems installing/building glibc.
1583 # LIBRARY_PATH contains the current directory if one of the following
1584 # is true:
1585 # - one of the terminals (":" and ";") is the first or last sign
1586 # - two terminals occur directly after each other
1587 # - the path contains an element with a dot in it
1588 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1589 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1590 case ${LIBRARY_PATH} in
1591 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1592 library_path_setting="contains current directory"
1593 ;;
1594 *)
1595 library_path_setting="ok"
1596 ;;
1597 esac
1598 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1599 echo "${ECHO_T}$library_path_setting" >&6
1600 if test "$library_path_setting" != "ok"; then
1601 { { echo "$as_me:$LINENO: error:
1602 *** LIBRARY_PATH shouldn't contain the current directory when
1603 *** building gcc. Please change the environment variable
1604 *** and run configure again." >&5
1605 echo "$as_me: error:
1606 *** LIBRARY_PATH shouldn't contain the current directory when
1607 *** building gcc. Please change the environment variable
1608 *** and run configure again." >&2;}
1609 { (exit 1); exit 1; }; }
1610 fi
1611
1612 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1613 # since this would lead to problems installing/building glibc.
1614 # GCC_EXEC_PREFIX contains the current directory if one of the following
1615 # is true:
1616 # - one of the terminals (":" and ";") is the first or last sign
1617 # - two terminals occur directly after each other
1618 # - the path contains an element with a dot in it
1619 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1620 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1621 case ${GCC_EXEC_PREFIX} in
1622 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1623 gcc_exec_prefix_setting="contains current directory"
1624 ;;
1625 *)
1626 gcc_exec_prefix_setting="ok"
1627 ;;
1628 esac
1629 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1630 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1631 if test "$gcc_exec_prefix_setting" != "ok"; then
1632 { { echo "$as_me:$LINENO: error:
1633 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1634 *** building gcc. Please change the environment variable
1635 *** and run configure again." >&5
1636 echo "$as_me: error:
1637 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1638 *** building gcc. Please change the environment variable
1639 *** and run configure again." >&2;}
1640 { (exit 1); exit 1; }; }
1641 fi
1642
1643 # -----------
1644 # Directories
1645 # -----------
1646
1647 # Specify the local prefix
1648 local_prefix=
1649
1650 # Check whether --with-local-prefix or --without-local-prefix was given.
1651 if test "${with_local_prefix+set}" = set; then
1652 withval="$with_local_prefix"
1653 case "${withval}" in
1654 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1655 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1656 { (exit 1); exit 1; }; } ;;
1657 no) ;;
1658 *) local_prefix=$with_local_prefix ;;
1659 esac
1660 fi;
1661
1662 # Default local prefix if it is empty
1663 if test x$local_prefix = x; then
1664 local_prefix=/usr/local
1665 fi
1666
1667 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1668 # passed in by the toplevel make and thus we'd get different behavior
1669 # depending on where we built the sources.
1670 gcc_gxx_include_dir=
1671 # Specify the g++ header file directory
1672
1673 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1674 if test "${with_gxx_include_dir+set}" = set; then
1675 withval="$with_gxx_include_dir"
1676 case "${withval}" in
1677 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1678 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1679 { (exit 1); exit 1; }; } ;;
1680 no) ;;
1681 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1682 esac
1683 fi;
1684
1685 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1686 if test x${gcc_gxx_include_dir} = x; then
1687 if test x${enable_version_specific_runtime_libs} = xyes; then
1688 gcc_gxx_include_dir='${libsubdir}/include/c++'
1689 else
1690 libstdcxx_incdir='include/c++/$(version)'
1691 if test x$host != x$target; then
1692 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1693 fi
1694 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1695 fi
1696 fi
1697
1698
1699 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1700 if test "${with_cpp_install_dir+set}" = set; then
1701 withval="$with_cpp_install_dir"
1702 if test x$withval = xyes; then
1703 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1704 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1705 { (exit 1); exit 1; }; }
1706 elif test x$withval != xno; then
1707 cpp_install_dir=$withval
1708 fi
1709 fi;
1710
1711 # We would like to our source tree to be readonly. However when releases or
1712 # pre-releases are generated, the flex/bison generated files as well as the
1713 # various formats of manuals need to be included along with the rest of the
1714 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1715 # just that.
1716
1717 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1718 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1719 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1720 if test "${enable_generated_files_in_srcdir+set}" = set; then
1721 enableval="$enable_generated_files_in_srcdir"
1722 generated_files_in_srcdir=$enableval
1723 else
1724 generated_files_in_srcdir=no
1725 fi;
1726
1727 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1728 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1729
1730 if test "$generated_files_in_srcdir" = "yes"; then
1731 GENINSRC=''
1732 else
1733 GENINSRC='#'
1734 fi
1735
1736
1737 # -------------------
1738 # Find default linker
1739 # -------------------
1740
1741 # With GNU ld
1742
1743 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1744 if test "${with_gnu_ld+set}" = set; then
1745 withval="$with_gnu_ld"
1746 gnu_ld_flag="$with_gnu_ld"
1747 else
1748 gnu_ld_flag=no
1749 fi;
1750
1751 # With pre-defined ld
1752
1753 # Check whether --with-ld or --without-ld was given.
1754 if test "${with_ld+set}" = set; then
1755 withval="$with_ld"
1756 DEFAULT_LINKER="$with_ld"
1757 fi;
1758 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1759 if test ! -x "$DEFAULT_LINKER"; then
1760 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1761 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1762 { (exit 1); exit 1; }; }
1763 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1764 gnu_ld_flag=yes
1765 fi
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1769 _ACEOF
1770
1771 fi
1772
1773 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define HAVE_GNU_LD $gnu_ld
1777 _ACEOF
1778
1779
1780 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1781 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1782 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1783 if test x"$gnu_ld_flag" = x"no"; then
1784 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1785 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1786 else
1787 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1788 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1789 fi
1790 else
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793 fi
1794
1795 # With demangler in GNU ld
1796
1797 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1798 if test "${with_demangler_in_ld+set}" = set; then
1799 withval="$with_demangler_in_ld"
1800 demangler_in_ld="$with_demangler_in_ld"
1801 else
1802 demangler_in_ld=no
1803 fi;
1804
1805 # ----------------------
1806 # Find default assembler
1807 # ----------------------
1808
1809 # With GNU as
1810
1811 # Check whether --with-gnu-as or --without-gnu-as was given.
1812 if test "${with_gnu_as+set}" = set; then
1813 withval="$with_gnu_as"
1814 gas_flag="$with_gnu_as"
1815 else
1816 gas_flag=no
1817 fi;
1818
1819
1820 # Check whether --with-as or --without-as was given.
1821 if test "${with_as+set}" = set; then
1822 withval="$with_as"
1823 DEFAULT_ASSEMBLER="$with_as"
1824 fi;
1825 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1826 if test ! -x "$DEFAULT_ASSEMBLER"; then
1827 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1828 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1829 { (exit 1); exit 1; }; }
1830 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1831 gas_flag=yes
1832 fi
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1836 _ACEOF
1837
1838 fi
1839
1840 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1841
1842 cat >>confdefs.h <<_ACEOF
1843 #define HAVE_GNU_AS $gnu_as
1844 _ACEOF
1845
1846
1847 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1848 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1849 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1850 if test x"$gas_flag" = x"no"; then
1851 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1852 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1853 else
1854 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1855 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1856 fi
1857 else
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1860 fi
1861
1862 # ---------------
1863 # Find C compiler
1864 # ---------------
1865
1866 # If a non-executable a.out is present (e.g. created by GNU as above even if
1867 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1868 # file, even when creating an executable, so an execution test fails.
1869 # Remove possible default executable files to avoid this.
1870 #
1871 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1872 # Autoconf includes it.
1873 rm -f a.out a.exe b.out
1874
1875 # Find the native compiler
1876 ac_ext=c
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 break 2
1902 fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 CC=$ac_cv_prog_CC
1909 if test -n "$CC"; then
1910 echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6
1912 else
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917 fi
1918 if test -z "$ac_cv_prog_CC"; then
1919 ac_ct_CC=$CC
1920 # Extract the first word of "gcc", so it can be a program name with args.
1921 set dummy gcc; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 if test -n "$ac_ct_CC"; then
1928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_CC="gcc"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1940 fi
1941 done
1942 done
1943
1944 fi
1945 fi
1946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1947 if test -n "$ac_ct_CC"; then
1948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1949 echo "${ECHO_T}$ac_ct_CC" >&6
1950 else
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1953 fi
1954
1955 CC=$ac_ct_CC
1956 else
1957 CC="$ac_cv_prog_CC"
1958 fi
1959
1960 if test -z "$CC"; then
1961 if test -n "$ac_tool_prefix"; then
1962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1963 set dummy ${ac_tool_prefix}cc; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 ac_cv_prog_CC="${ac_tool_prefix}cc"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 break 2
1982 fi
1983 done
1984 done
1985
1986 fi
1987 fi
1988 CC=$ac_cv_prog_CC
1989 if test -n "$CC"; then
1990 echo "$as_me:$LINENO: result: $CC" >&5
1991 echo "${ECHO_T}$CC" >&6
1992 else
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1995 fi
1996
1997 fi
1998 if test -z "$ac_cv_prog_CC"; then
1999 ac_ct_CC=$CC
2000 # Extract the first word of "cc", so it can be a program name with args.
2001 set dummy cc; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 if test -n "$ac_ct_CC"; then
2008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_ac_ct_CC="cc"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 break 2
2020 fi
2021 done
2022 done
2023
2024 fi
2025 fi
2026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2027 if test -n "$ac_ct_CC"; then
2028 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2029 echo "${ECHO_T}$ac_ct_CC" >&6
2030 else
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 CC=$ac_ct_CC
2036 else
2037 CC="$ac_cv_prog_CC"
2038 fi
2039
2040 fi
2041 if test -z "$CC"; then
2042 # Extract the first word of "cc", so it can be a program name with args.
2043 set dummy cc; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
2051 else
2052 ac_prog_rejected=no
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2061 ac_prog_rejected=yes
2062 continue
2063 fi
2064 ac_cv_prog_CC="cc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2067 fi
2068 done
2069 done
2070
2071 if test $ac_prog_rejected = yes; then
2072 # We found a bogon in the path, so make sure we never use it.
2073 set dummy $ac_cv_prog_CC
2074 shift
2075 if test $# != 0; then
2076 # We chose a different compiler from the bogus one.
2077 # However, it has the same basename, so the bogon will be chosen
2078 # first if we set CC to just the basename; use the full file name.
2079 shift
2080 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2081 fi
2082 fi
2083 fi
2084 fi
2085 CC=$ac_cv_prog_CC
2086 if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2089 else
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2092 fi
2093
2094 fi
2095 if test -z "$CC"; then
2096 if test -n "$ac_tool_prefix"; then
2097 for ac_prog in cl
2098 do
2099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 if test -n "$CC"; then
2107 ac_cv_prog_CC="$CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 break 2
2119 fi
2120 done
2121 done
2122
2123 fi
2124 fi
2125 CC=$ac_cv_prog_CC
2126 if test -n "$CC"; then
2127 echo "$as_me:$LINENO: result: $CC" >&5
2128 echo "${ECHO_T}$CC" >&6
2129 else
2130 echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2132 fi
2133
2134 test -n "$CC" && break
2135 done
2136 fi
2137 if test -z "$CC"; then
2138 ac_ct_CC=$CC
2139 for ac_prog in cl
2140 do
2141 # Extract the first word of "$ac_prog", so it can be a program name with args.
2142 set dummy $ac_prog; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 if test -n "$ac_ct_CC"; then
2149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158 ac_cv_prog_ac_ct_CC="$ac_prog"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2161 fi
2162 done
2163 done
2164
2165 fi
2166 fi
2167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2168 if test -n "$ac_ct_CC"; then
2169 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2170 echo "${ECHO_T}$ac_ct_CC" >&6
2171 else
2172 echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2174 fi
2175
2176 test -n "$ac_ct_CC" && break
2177 done
2178
2179 CC=$ac_ct_CC
2180 fi
2181
2182 fi
2183
2184
2185 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: no acceptable C compiler found in \$PATH
2188 See \`config.log' for more details." >&2;}
2189 { (exit 1); exit 1; }; }
2190
2191 # Provide some information about the compiler.
2192 echo "$as_me:$LINENO:" \
2193 "checking for C compiler version" >&5
2194 ac_compiler=`set X $ac_compile; echo $2`
2195 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2196 (eval $ac_compiler --version </dev/null >&5) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2201 (eval $ac_compiler -v </dev/null >&5) 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }
2205 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2206 (eval $ac_compiler -V </dev/null >&5) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }
2210
2211 cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h. */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2217
2218 int
2219 main ()
2220 {
2221
2222 ;
2223 return 0;
2224 }
2225 _ACEOF
2226 ac_clean_files_save=$ac_clean_files
2227 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2228 # Try to create an executable without -o first, disregard a.out.
2229 # It will help us diagnose broken compilers, and finding out an intuition
2230 # of exeext.
2231 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2232 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2233 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2234 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2235 (eval $ac_link_default) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; then
2239 # Find the output, starting from the most likely. This scheme is
2240 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2241 # resort.
2242
2243 # Be careful to initialize this variable, since it used to be cached.
2244 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2245 ac_cv_exeext=
2246 # b.out is created by i960 compilers.
2247 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2248 do
2249 test -f "$ac_file" || continue
2250 case $ac_file in
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2252 ;;
2253 conftest.$ac_ext )
2254 # This is the source file.
2255 ;;
2256 [ab].out )
2257 # We found the default executable, but exeext='' is most
2258 # certainly right.
2259 break;;
2260 *.* )
2261 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262 # FIXME: I believe we export ac_cv_exeext for Libtool,
2263 # but it would be cool to find out if it's true. Does anybody
2264 # maintain Libtool? --akim.
2265 export ac_cv_exeext
2266 break;;
2267 * )
2268 break;;
2269 esac
2270 done
2271 else
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: C compiler cannot create executables
2278 See \`config.log' for more details." >&2;}
2279 { (exit 77); exit 77; }; }
2280 fi
2281
2282 ac_exeext=$ac_cv_exeext
2283 echo "$as_me:$LINENO: result: $ac_file" >&5
2284 echo "${ECHO_T}$ac_file" >&6
2285
2286 # Check the compiler produces executables we can run. If not, either
2287 # the compiler is broken, or we cross compile.
2288 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2289 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2290 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2291 # If not cross compiling, check that we can run a simple program.
2292 if test "$cross_compiling" != yes; then
2293 if { ac_try='./$ac_file'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 (eval $ac_try) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2299 cross_compiling=no
2300 else
2301 if test "$cross_compiling" = maybe; then
2302 cross_compiling=yes
2303 else
2304 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2305 If you meant to cross compile, use \`--host'.
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: cannot run C compiled programs.
2308 If you meant to cross compile, use \`--host'.
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2311 fi
2312 fi
2313 fi
2314 echo "$as_me:$LINENO: result: yes" >&5
2315 echo "${ECHO_T}yes" >&6
2316
2317 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2318 ac_clean_files=$ac_clean_files_save
2319 # Check the compiler produces executables we can run. If not, either
2320 # the compiler is broken, or we cross compile.
2321 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2322 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2323 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2324 echo "${ECHO_T}$cross_compiling" >&6
2325
2326 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2327 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2329 (eval $ac_link) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2334 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2335 # work properly (i.e., refer to `conftest.exe'), while it won't with
2336 # `rm'.
2337 for ac_file in conftest.exe conftest conftest.*; do
2338 test -f "$ac_file" || continue
2339 case $ac_file in
2340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2341 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2342 export ac_cv_exeext
2343 break;;
2344 * ) break;;
2345 esac
2346 done
2347 else
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2351 See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2353 fi
2354
2355 rm -f conftest$ac_cv_exeext
2356 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2357 echo "${ECHO_T}$ac_cv_exeext" >&6
2358
2359 rm -f conftest.$ac_ext
2360 EXEEXT=$ac_cv_exeext
2361 ac_exeext=$EXEEXT
2362 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2363 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2364 if test "${ac_cv_objext+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h. */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2373
2374 int
2375 main ()
2376 {
2377
2378 ;
2379 return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.o conftest.obj
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; then
2388 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2389 case $ac_file in
2390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2391 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2392 break;;
2393 esac
2394 done
2395 else
2396 echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2398
2399 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2400 See \`config.log' for more details." >&5
2401 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2402 See \`config.log' for more details." >&2;}
2403 { (exit 1); exit 1; }; }
2404 fi
2405
2406 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2407 fi
2408 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2409 echo "${ECHO_T}$ac_cv_objext" >&6
2410 OBJEXT=$ac_cv_objext
2411 ac_objext=$OBJEXT
2412 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2413 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2414 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h. */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2423
2424 int
2425 main ()
2426 {
2427 #ifndef __GNUC__
2428 choke me
2429 #endif
2430
2431 ;
2432 return 0;
2433 }
2434 _ACEOF
2435 rm -f conftest.$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>conftest.er1
2438 ac_status=$?
2439 grep -v '^ *+' conftest.er1 >conftest.err
2440 rm -f conftest.er1
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -z "$ac_c_werror_flag"
2445 || test ! -s conftest.err'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2457 ac_compiler_gnu=yes
2458 else
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 ac_compiler_gnu=no
2463 fi
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2466
2467 fi
2468 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2469 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2470 GCC=`test $ac_compiler_gnu = yes && echo yes`
2471 ac_test_CFLAGS=${CFLAGS+set}
2472 ac_save_CFLAGS=$CFLAGS
2473 CFLAGS="-g"
2474 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2475 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_g+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h. */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2485
2486 int
2487 main ()
2488 {
2489
2490 ;
2491 return 0;
2492 }
2493 _ACEOF
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>conftest.er1
2497 ac_status=$?
2498 grep -v '^ *+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 ac_cv_prog_cc_g=yes
2517 else
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520
2521 ac_cv_prog_cc_g=no
2522 fi
2523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2524 fi
2525 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2526 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2527 if test "$ac_test_CFLAGS" = set; then
2528 CFLAGS=$ac_save_CFLAGS
2529 elif test $ac_cv_prog_cc_g = yes; then
2530 if test "$GCC" = yes; then
2531 CFLAGS="-g -O2"
2532 else
2533 CFLAGS="-g"
2534 fi
2535 else
2536 if test "$GCC" = yes; then
2537 CFLAGS="-O2"
2538 else
2539 CFLAGS=
2540 fi
2541 fi
2542 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2543 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2544 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547 ac_cv_prog_cc_stdc=no
2548 ac_save_CC=$CC
2549 cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h. */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2555 #include <stdarg.h>
2556 #include <stdio.h>
2557 #include <sys/types.h>
2558 #include <sys/stat.h>
2559 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2560 struct buf { int x; };
2561 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2562 static char *e (p, i)
2563 char **p;
2564 int i;
2565 {
2566 return p[i];
2567 }
2568 static char *f (char * (*g) (char **, int), char **p, ...)
2569 {
2570 char *s;
2571 va_list v;
2572 va_start (v,p);
2573 s = g (p, va_arg (v,int));
2574 va_end (v);
2575 return s;
2576 }
2577
2578 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2579 function prototypes and stuff, but not '\xHH' hex character constants.
2580 These don't provoke an error unfortunately, instead are silently treated
2581 as 'x'. The following induces an error, until -std1 is added to get
2582 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2583 array size at least. It's necessary to write '\x00'==0 to get something
2584 that's true only with -std1. */
2585 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2586
2587 int test (int i, double x);
2588 struct s1 {int (*f) (int a);};
2589 struct s2 {int (*f) (double a);};
2590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2591 int argc;
2592 char **argv;
2593 int
2594 main ()
2595 {
2596 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2597 ;
2598 return 0;
2599 }
2600 _ACEOF
2601 # Don't try gcc -ansi; that turns off useful extensions and
2602 # breaks some systems' header files.
2603 # AIX -qlanglvl=ansi
2604 # Ultrix and OSF/1 -std1
2605 # HP-UX 10.20 and later -Ae
2606 # HP-UX older versions -Aa -D_HPUX_SOURCE
2607 # SVR4 -Xc -D__EXTENSIONS__
2608 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2609 do
2610 CC="$ac_save_CC $ac_arg"
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2614 ac_status=$?
2615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 ac_cv_prog_cc_stdc=$ac_arg
2634 break
2635 else
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 fi
2640 rm -f conftest.err conftest.$ac_objext
2641 done
2642 rm -f conftest.$ac_ext conftest.$ac_objext
2643 CC=$ac_save_CC
2644
2645 fi
2646
2647 case "x$ac_cv_prog_cc_stdc" in
2648 x|xno)
2649 echo "$as_me:$LINENO: result: none needed" >&5
2650 echo "${ECHO_T}none needed" >&6 ;;
2651 *)
2652 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2654 CC="$CC $ac_cv_prog_cc_stdc" ;;
2655 esac
2656
2657 # Some people use a C++ compiler to compile C. Since we use `exit',
2658 # in C++ we need to declare it. In case someone uses the same compiler
2659 # for both compiling C and C++ we need to have the C++ compiler decide
2660 # the declaration of exit, since it's the most demanding environment.
2661 cat >conftest.$ac_ext <<_ACEOF
2662 #ifndef __cplusplus
2663 choke me
2664 #endif
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 for ac_declaration in \
2689 '' \
2690 'extern "C" void std::exit (int) throw (); using std::exit;' \
2691 'extern "C" void std::exit (int); using std::exit;' \
2692 'extern "C" void exit (int) throw ();' \
2693 'extern "C" void exit (int);' \
2694 'void exit (int);'
2695 do
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h. */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2702 $ac_declaration
2703 #include <stdlib.h>
2704 int
2705 main ()
2706 {
2707 exit (42);
2708 ;
2709 return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag"
2722 || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 :
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 continue
2740 fi
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h. */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2748 $ac_declaration
2749 int
2750 main ()
2751 {
2752 exit (42);
2753 ;
2754 return 0;
2755 }
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>conftest.er1
2760 ac_status=$?
2761 grep -v '^ *+' conftest.er1 >conftest.err
2762 rm -f conftest.er1
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -z "$ac_c_werror_flag"
2767 || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2779 break
2780 else
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2783
2784 fi
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786 done
2787 rm -f conftest*
2788 if test -n "$ac_declaration"; then
2789 echo '#ifdef __cplusplus' >>confdefs.h
2790 echo $ac_declaration >>confdefs.h
2791 echo '#endif' >>confdefs.h
2792 fi
2793
2794 else
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2797
2798 fi
2799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805
2806 if test "x$CC" != xcc; then
2807 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2808 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2809 else
2810 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2811 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2812 fi
2813 set dummy $CC; ac_cc=`echo $2 |
2814 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2815 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824
2825 int
2826 main ()
2827 {
2828
2829 ;
2830 return 0;
2831 }
2832 _ACEOF
2833 # Make sure it works both with $CC and with simple cc.
2834 # We do the test twice because some compilers refuse to overwrite an
2835 # existing .o file with -o, though they will create one.
2836 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2837 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); };
2847 then
2848 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2849 if test "x$CC" != xcc; then
2850 # Test first that cc exists at all.
2851 if { ac_try='cc -c conftest.$ac_ext >&5'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2858 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); };
2868 then
2869 # cc works too.
2870 :
2871 else
2872 # cc exists but doesn't like -o.
2873 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2874 fi
2875 fi
2876 fi
2877 else
2878 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2879 fi
2880 rm -f conftest*
2881
2882 fi
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2884 echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6
2886 else
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2889
2890 cat >>confdefs.h <<\_ACEOF
2891 #define NO_MINUS_C_MINUS_O 1
2892 _ACEOF
2893
2894 fi
2895
2896 # expand $ac_aux_dir to an absolute path
2897 am_aux_dir=`cd $ac_aux_dir && pwd`
2898
2899 # FIXME: we rely on the cache variable name because
2900 # there is no other way.
2901 set dummy $CC
2902 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2904 # Losing compiler, so override with the script.
2905 # FIXME: It is wrong to rewrite CC.
2906 # But if we don't then we get into trouble of one sort or another.
2907 # A longer-term fix would be to have automake use am__CC in this case,
2908 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2909 CC="$am_aux_dir/compile $CC"
2910 fi
2911
2912 # autoconf is lame and doesn't give us any substitution variable for this.
2913 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2914 NO_MINUS_C_MINUS_O=yes
2915 else
2916 OUTPUT_OPTION='-o $@'
2917 fi
2918
2919
2920
2921 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2922 # optimizations to be activated explicitly by the toplevel.
2923 case "$CC" in
2924 */prev-gcc/xgcc*) ;;
2925 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2926 esac
2927
2928
2929 # -------------------------
2930 # Check C compiler features
2931 # -------------------------
2932
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2942 CPP=
2943 fi
2944 if test -z "$CPP"; then
2945 if test "${ac_cv_prog_CPP+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 # Double quotes because CPP needs to be expanded
2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2950 do
2951 ac_preproc_ok=false
2952 for ac_c_preproc_warn_flag in '' yes
2953 do
2954 # Use a header file that comes with gcc, so configuring glibc
2955 # with a fresh cross-compiler works.
2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957 # <limits.h> exists even on freestanding compilers.
2958 # On the NeXT, cc -E runs the code through the compiler's parser,
2959 # not just through cpp. "Syntax error" is here to catch this case.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #ifdef __STDC__
2967 # include <limits.h>
2968 #else
2969 # include <assert.h>
2970 #endif
2971 Syntax error
2972 _ACEOF
2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } >/dev/null; then
2981 if test -s conftest.err; then
2982 ac_cpp_err=$ac_c_preproc_warn_flag
2983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2984 else
2985 ac_cpp_err=
2986 fi
2987 else
2988 ac_cpp_err=yes
2989 fi
2990 if test -z "$ac_cpp_err"; then
2991 :
2992 else
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 # Broken: fails on valid input.
2997 continue
2998 fi
2999 rm -f conftest.err conftest.$ac_ext
3000
3001 # OK, works on sane cases. Now check whether non-existent headers
3002 # can be detected and how.
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009 #include <ac_nonexistent.h>
3010 _ACEOF
3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } >/dev/null; then
3019 if test -s conftest.err; then
3020 ac_cpp_err=$ac_c_preproc_warn_flag
3021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3022 else
3023 ac_cpp_err=
3024 fi
3025 else
3026 ac_cpp_err=yes
3027 fi
3028 if test -z "$ac_cpp_err"; then
3029 # Broken: success on invalid input.
3030 continue
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 # Passes both tests.
3036 ac_preproc_ok=:
3037 break
3038 fi
3039 rm -f conftest.err conftest.$ac_ext
3040
3041 done
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err conftest.$ac_ext
3044 if $ac_preproc_ok; then
3045 break
3046 fi
3047
3048 done
3049 ac_cv_prog_CPP=$CPP
3050
3051 fi
3052 CPP=$ac_cv_prog_CPP
3053 else
3054 ac_cv_prog_CPP=$CPP
3055 fi
3056 echo "$as_me:$LINENO: result: $CPP" >&5
3057 echo "${ECHO_T}$CPP" >&6
3058 ac_preproc_ok=false
3059 for ac_c_preproc_warn_flag in '' yes
3060 do
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064 # <limits.h> exists even on freestanding compilers.
3065 # On the NeXT, cc -E runs the code through the compiler's parser,
3066 # not just through cpp. "Syntax error" is here to catch this case.
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #ifdef __STDC__
3074 # include <limits.h>
3075 #else
3076 # include <assert.h>
3077 #endif
3078 Syntax error
3079 _ACEOF
3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } >/dev/null; then
3088 if test -s conftest.err; then
3089 ac_cpp_err=$ac_c_preproc_warn_flag
3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3091 else
3092 ac_cpp_err=
3093 fi
3094 else
3095 ac_cpp_err=yes
3096 fi
3097 if test -z "$ac_cpp_err"; then
3098 :
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 # Broken: fails on valid input.
3104 continue
3105 fi
3106 rm -f conftest.err conftest.$ac_ext
3107
3108 # OK, works on sane cases. Now check whether non-existent headers
3109 # can be detected and how.
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <ac_nonexistent.h>
3117 _ACEOF
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } >/dev/null; then
3126 if test -s conftest.err; then
3127 ac_cpp_err=$ac_c_preproc_warn_flag
3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3129 else
3130 ac_cpp_err=
3131 fi
3132 else
3133 ac_cpp_err=yes
3134 fi
3135 if test -z "$ac_cpp_err"; then
3136 # Broken: success on invalid input.
3137 continue
3138 else
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142 # Passes both tests.
3143 ac_preproc_ok=:
3144 break
3145 fi
3146 rm -f conftest.err conftest.$ac_ext
3147
3148 done
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3152 :
3153 else
3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }
3159 fi
3160
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166
3167
3168 echo "$as_me:$LINENO: checking for inline" >&5
3169 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3170 if test "${ac_cv_c_inline+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173 ac_cv_c_inline=no
3174 for ac_kw in inline __inline__ __inline; do
3175 cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181 #ifndef __cplusplus
3182 typedef int foo_t;
3183 static $ac_kw foo_t static_foo () {return 0; }
3184 $ac_kw foo_t foo () {return 0; }
3185 #endif
3186
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag"
3198 || test ! -s conftest.err'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 (eval $ac_try) 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 (eval $ac_try) 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 ac_cv_c_inline=$ac_kw; break
3211 else
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 fi
3216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3217 done
3218
3219 fi
3220 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3221 echo "${ECHO_T}$ac_cv_c_inline" >&6
3222
3223
3224 case $ac_cv_c_inline in
3225 inline | yes) ;;
3226 *)
3227 case $ac_cv_c_inline in
3228 no) ac_val=;;
3229 *) ac_val=$ac_cv_c_inline;;
3230 esac
3231 cat >>confdefs.h <<_ACEOF
3232 #ifndef __cplusplus
3233 #define inline $ac_val
3234 #endif
3235 _ACEOF
3236 ;;
3237 esac
3238
3239
3240 # sizeof(char) is 1 by definition.
3241
3242 echo "$as_me:$LINENO: checking for egrep" >&5
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3244 if test "${ac_cv_prog_egrep+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3248 then ac_cv_prog_egrep='grep -E'
3249 else ac_cv_prog_egrep='egrep'
3250 fi
3251 fi
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3254 EGREP=$ac_cv_prog_egrep
3255
3256
3257 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3258 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3259 if test "${ac_cv_header_stdc+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h. */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3268 #include <stdlib.h>
3269 #include <stdarg.h>
3270 #include <string.h>
3271 #include <float.h>
3272
3273 int
3274 main ()
3275 {
3276
3277 ;
3278 return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 (eval $ac_try) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_cv_header_stdc=yes
3304 else
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308 ac_cv_header_stdc=no
3309 fi
3310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3311
3312 if test $ac_cv_header_stdc = yes; then
3313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3314 cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h. */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3320 #include <string.h>
3321
3322 _ACEOF
3323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3324 $EGREP "memchr" >/dev/null 2>&1; then
3325 :
3326 else
3327 ac_cv_header_stdc=no
3328 fi
3329 rm -f conftest*
3330
3331 fi
3332
3333 if test $ac_cv_header_stdc = yes; then
3334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <stdlib.h>
3342
3343 _ACEOF
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 $EGREP "free" >/dev/null 2>&1; then
3346 :
3347 else
3348 ac_cv_header_stdc=no
3349 fi
3350 rm -f conftest*
3351
3352 fi
3353
3354 if test $ac_cv_header_stdc = yes; then
3355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3356 if test "$cross_compiling" = yes; then
3357 :
3358 else
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h. */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 #include <ctype.h>
3366 #if ((' ' & 0x0FF) == 0x020)
3367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3369 #else
3370 # define ISLOWER(c) \
3371 (('a' <= (c) && (c) <= 'i') \
3372 || ('j' <= (c) && (c) <= 'r') \
3373 || ('s' <= (c) && (c) <= 'z'))
3374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3375 #endif
3376
3377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3378 int
3379 main ()
3380 {
3381 int i;
3382 for (i = 0; i < 256; i++)
3383 if (XOR (islower (i), ISLOWER (i))
3384 || toupper (i) != TOUPPER (i))
3385 exit(2);
3386 exit (0);
3387 }
3388 _ACEOF
3389 rm -f conftest$ac_exeext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3391 (eval $ac_link) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 :
3401 else
3402 echo "$as_me: program exited with status $ac_status" >&5
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 ( exit $ac_status )
3407 ac_cv_header_stdc=no
3408 fi
3409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3410 fi
3411 fi
3412 fi
3413 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3414 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3415 if test $ac_cv_header_stdc = yes; then
3416
3417 cat >>confdefs.h <<\_ACEOF
3418 #define STDC_HEADERS 1
3419 _ACEOF
3420
3421 fi
3422
3423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3434 inttypes.h stdint.h unistd.h
3435 do
3436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3437 echo "$as_me:$LINENO: checking for $ac_header" >&5
3438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h. */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 $ac_includes_default
3449
3450 #include <$ac_header>
3451 _ACEOF
3452 rm -f conftest.$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try='test -z "$ac_c_werror_flag"
3462 || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 eval "$as_ac_Header=yes"
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 eval "$as_ac_Header=no"
3480 fi
3481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3482 fi
3483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3486 cat >>confdefs.h <<_ACEOF
3487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3488 _ACEOF
3489
3490 fi
3491
3492 done
3493
3494
3495 echo "$as_me:$LINENO: checking for void *" >&5
3496 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3497 if test "${ac_cv_type_void_p+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 $ac_includes_default
3507 int
3508 main ()
3509 {
3510 if ((void * *) 0)
3511 return 0;
3512 if (sizeof (void *))
3513 return 0;
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 ac_cv_type_void_p=yes
3541 else
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 ac_cv_type_void_p=no
3546 fi
3547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3548 fi
3549 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3550 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3551
3552 echo "$as_me:$LINENO: checking size of void *" >&5
3553 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3554 if test "${ac_cv_sizeof_void_p+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 if test "$ac_cv_type_void_p" = yes; then
3558 # The cast to unsigned long works around a bug in the HP C Compiler
3559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3561 # This bug is HP SR number 8606223364.
3562 if test "$cross_compiling" = yes; then
3563 # Depending upon the size, compute the lo and hi bounds.
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 $ac_includes_default
3571 int
3572 main ()
3573 {
3574 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3575 test_array [0] = 0
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_c_werror_flag"
3591 || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 (eval $ac_try) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 ac_lo=0 ac_mid=0
3604 while :; do
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h. */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 $ac_includes_default
3612 int
3613 main ()
3614 {
3615 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3616 test_array [0] = 0
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_hi=$ac_mid; break
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 ac_lo=`expr $ac_mid + 1`
3650 if test $ac_lo -le $ac_mid; then
3651 ac_lo= ac_hi=
3652 break
3653 fi
3654 ac_mid=`expr 2 '*' $ac_mid + 1`
3655 fi
3656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3657 done
3658 else
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 $ac_includes_default
3669 int
3670 main ()
3671 {
3672 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3673 test_array [0] = 0
3674
3675 ;
3676 return 0;
3677 }
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_c_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_hi=-1 ac_mid=-1
3702 while :; do
3703 cat >conftest.$ac_ext <<_ACEOF
3704 /* confdefs.h. */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 $ac_includes_default
3710 int
3711 main ()
3712 {
3713 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3714 test_array [0] = 0
3715
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 rm -f conftest.$ac_objext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try='test -s conftest.$ac_objext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 ac_lo=$ac_mid; break
3743 else
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747 ac_hi=`expr '(' $ac_mid ')' - 1`
3748 if test $ac_mid -le $ac_hi; then
3749 ac_lo= ac_hi=
3750 break
3751 fi
3752 ac_mid=`expr 2 '*' $ac_mid`
3753 fi
3754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3755 done
3756 else
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3759
3760 ac_lo= ac_hi=
3761 fi
3762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3763 fi
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 # Binary search between lo and hi bounds.
3766 while test "x$ac_lo" != "x$ac_hi"; do
3767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 $ac_includes_default
3775 int
3776 main ()
3777 {
3778 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3779 test_array [0] = 0
3780
3781 ;
3782 return 0;
3783 }
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_hi=$ac_mid
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 ac_lo=`expr '(' $ac_mid ')' + 1`
3813 fi
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 done
3816 case $ac_lo in
3817 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3818 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3819 See \`config.log' for more details." >&5
3820 echo "$as_me: error: cannot compute sizeof (void *), 77
3821 See \`config.log' for more details." >&2;}
3822 { (exit 1); exit 1; }; } ;;
3823 esac
3824 else
3825 if test "$cross_compiling" = yes; then
3826 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3827 See \`config.log' for more details." >&5
3828 echo "$as_me: error: cannot run test program while cross compiling
3829 See \`config.log' for more details." >&2;}
3830 { (exit 1); exit 1; }; }
3831 else
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 $ac_includes_default
3839 long longval () { return (long) (sizeof (void *)); }
3840 unsigned long ulongval () { return (long) (sizeof (void *)); }
3841 #include <stdio.h>
3842 #include <stdlib.h>
3843 int
3844 main ()
3845 {
3846
3847 FILE *f = fopen ("conftest.val", "w");
3848 if (! f)
3849 exit (1);
3850 if (((long) (sizeof (void *))) < 0)
3851 {
3852 long i = longval ();
3853 if (i != ((long) (sizeof (void *))))
3854 exit (1);
3855 fprintf (f, "%ld\n", i);
3856 }
3857 else
3858 {
3859 unsigned long i = ulongval ();
3860 if (i != ((long) (sizeof (void *))))
3861 exit (1);
3862 fprintf (f, "%lu\n", i);
3863 }
3864 exit (ferror (f) || fclose (f) != 0);
3865
3866 ;
3867 return 0;
3868 }
3869 _ACEOF
3870 rm -f conftest$ac_exeext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3872 (eval $ac_link) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_sizeof_void_p=`cat conftest.val`
3882 else
3883 echo "$as_me: program exited with status $ac_status" >&5
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3886
3887 ( exit $ac_status )
3888 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3889 See \`config.log' for more details." >&5
3890 echo "$as_me: error: cannot compute sizeof (void *), 77
3891 See \`config.log' for more details." >&2;}
3892 { (exit 1); exit 1; }; }
3893 fi
3894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3895 fi
3896 fi
3897 rm -f conftest.val
3898 else
3899 ac_cv_sizeof_void_p=0
3900 fi
3901 fi
3902 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3903 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3904 cat >>confdefs.h <<_ACEOF
3905 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3906 _ACEOF
3907
3908
3909 echo "$as_me:$LINENO: checking for short" >&5
3910 echo $ECHO_N "checking for short... $ECHO_C" >&6
3911 if test "${ac_cv_type_short+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 $ac_includes_default
3921 int
3922 main ()
3923 {
3924 if ((short *) 0)
3925 return 0;
3926 if (sizeof (short))
3927 return 0;
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.$ac_objext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest.$ac_objext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 ac_cv_type_short=yes
3955 else
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959 ac_cv_type_short=no
3960 fi
3961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3962 fi
3963 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3964 echo "${ECHO_T}$ac_cv_type_short" >&6
3965
3966 echo "$as_me:$LINENO: checking size of short" >&5
3967 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3968 if test "${ac_cv_sizeof_short+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971 if test "$ac_cv_type_short" = yes; then
3972 # The cast to unsigned long works around a bug in the HP C Compiler
3973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3975 # This bug is HP SR number 8606223364.
3976 if test "$cross_compiling" = yes; then
3977 # Depending upon the size, compute the lo and hi bounds.
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 $ac_includes_default
3985 int
3986 main ()
3987 {
3988 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3989 test_array [0] = 0
3990
3991 ;
3992 return 0;
3993 }
3994 _ACEOF
3995 rm -f conftest.$ac_objext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997 (eval $ac_compile) 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -z "$ac_c_werror_flag"
4005 || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest.$ac_objext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_lo=0 ac_mid=0
4018 while :; do
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4026 int
4027 main ()
4028 {
4029 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4030 test_array [0] = 0
4031
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 ac_hi=$ac_mid; break
4059 else
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 ac_lo=`expr $ac_mid + 1`
4064 if test $ac_lo -le $ac_mid; then
4065 ac_lo= ac_hi=
4066 break
4067 fi
4068 ac_mid=`expr 2 '*' $ac_mid + 1`
4069 fi
4070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4071 done
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4075
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 $ac_includes_default
4083 int
4084 main ()
4085 {
4086 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4087 test_array [0] = 0
4088
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>conftest.er1
4096 ac_status=$?
4097 grep -v '^ *+' conftest.er1 >conftest.err
4098 rm -f conftest.er1
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -z "$ac_c_werror_flag"
4103 || 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=-1 ac_mid=-1
4116 while :; do
4117 cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h. */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 $ac_includes_default
4124 int
4125 main ()
4126 {
4127 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4128 test_array [0] = 0
4129
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 (eval $ac_try) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_lo=$ac_mid; break
4157 else
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 ac_hi=`expr '(' $ac_mid ')' - 1`
4162 if test $ac_mid -le $ac_hi; then
4163 ac_lo= ac_hi=
4164 break
4165 fi
4166 ac_mid=`expr 2 '*' $ac_mid`
4167 fi
4168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169 done
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 ac_lo= ac_hi=
4175 fi
4176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4177 fi
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179 # Binary search between lo and hi bounds.
4180 while test "x$ac_lo" != "x$ac_hi"; do
4181 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 $ac_includes_default
4189 int
4190 main ()
4191 {
4192 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4193 test_array [0] = 0
4194
4195 ;
4196 return 0;
4197 }
4198 _ACEOF
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>conftest.er1
4202 ac_status=$?
4203 grep -v '^ *+' conftest.er1 >conftest.err
4204 rm -f conftest.er1
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -z "$ac_c_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_hi=$ac_mid
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226 ac_lo=`expr '(' $ac_mid ')' + 1`
4227 fi
4228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4229 done
4230 case $ac_lo in
4231 ?*) ac_cv_sizeof_short=$ac_lo;;
4232 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4233 See \`config.log' for more details." >&5
4234 echo "$as_me: error: cannot compute sizeof (short), 77
4235 See \`config.log' for more details." >&2;}
4236 { (exit 1); exit 1; }; } ;;
4237 esac
4238 else
4239 if test "$cross_compiling" = yes; then
4240 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4241 See \`config.log' for more details." >&5
4242 echo "$as_me: error: cannot run test program while cross compiling
4243 See \`config.log' for more details." >&2;}
4244 { (exit 1); exit 1; }; }
4245 else
4246 cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h. */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 $ac_includes_default
4253 long longval () { return (long) (sizeof (short)); }
4254 unsigned long ulongval () { return (long) (sizeof (short)); }
4255 #include <stdio.h>
4256 #include <stdlib.h>
4257 int
4258 main ()
4259 {
4260
4261 FILE *f = fopen ("conftest.val", "w");
4262 if (! f)
4263 exit (1);
4264 if (((long) (sizeof (short))) < 0)
4265 {
4266 long i = longval ();
4267 if (i != ((long) (sizeof (short))))
4268 exit (1);
4269 fprintf (f, "%ld\n", i);
4270 }
4271 else
4272 {
4273 unsigned long i = ulongval ();
4274 if (i != ((long) (sizeof (short))))
4275 exit (1);
4276 fprintf (f, "%lu\n", i);
4277 }
4278 exit (ferror (f) || fclose (f) != 0);
4279
4280 ;
4281 return 0;
4282 }
4283 _ACEOF
4284 rm -f conftest$ac_exeext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286 (eval $ac_link) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_cv_sizeof_short=`cat conftest.val`
4296 else
4297 echo "$as_me: program exited with status $ac_status" >&5
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 ( exit $ac_status )
4302 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4303 See \`config.log' for more details." >&5
4304 echo "$as_me: error: cannot compute sizeof (short), 77
4305 See \`config.log' for more details." >&2;}
4306 { (exit 1); exit 1; }; }
4307 fi
4308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4309 fi
4310 fi
4311 rm -f conftest.val
4312 else
4313 ac_cv_sizeof_short=0
4314 fi
4315 fi
4316 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4317 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4318 cat >>confdefs.h <<_ACEOF
4319 #define SIZEOF_SHORT $ac_cv_sizeof_short
4320 _ACEOF
4321
4322
4323 echo "$as_me:$LINENO: checking for int" >&5
4324 echo $ECHO_N "checking for int... $ECHO_C" >&6
4325 if test "${ac_cv_type_int+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 $ac_includes_default
4335 int
4336 main ()
4337 {
4338 if ((int *) 0)
4339 return 0;
4340 if (sizeof (int))
4341 return 0;
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 rm -f conftest.$ac_objext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_cv_type_int=yes
4369 else
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 ac_cv_type_int=no
4374 fi
4375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4376 fi
4377 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4378 echo "${ECHO_T}$ac_cv_type_int" >&6
4379
4380 echo "$as_me:$LINENO: checking size of int" >&5
4381 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4382 if test "${ac_cv_sizeof_int+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 if test "$ac_cv_type_int" = yes; then
4386 # The cast to unsigned long works around a bug in the HP C Compiler
4387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4389 # This bug is HP SR number 8606223364.
4390 if test "$cross_compiling" = yes; then
4391 # Depending upon the size, compute the lo and hi bounds.
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 $ac_includes_default
4399 int
4400 main ()
4401 {
4402 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4403 test_array [0] = 0
4404
4405 ;
4406 return 0;
4407 }
4408 _ACEOF
4409 rm -f conftest.$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>conftest.er1
4412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_c_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_lo=0 ac_mid=0
4432 while :; do
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h. */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 $ac_includes_default
4440 int
4441 main ()
4442 {
4443 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4444 test_array [0] = 0
4445
4446 ;
4447 return 0;
4448 }
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_hi=$ac_mid; break
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 ac_lo=`expr $ac_mid + 1`
4478 if test $ac_lo -le $ac_mid; then
4479 ac_lo= ac_hi=
4480 break
4481 fi
4482 ac_mid=`expr 2 '*' $ac_mid + 1`
4483 fi
4484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4485 done
4486 else
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 $ac_includes_default
4497 int
4498 main ()
4499 {
4500 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4501 test_array [0] = 0
4502
4503 ;
4504 return 0;
4505 }
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_hi=-1 ac_mid=-1
4530 while :; do
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h. */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4538 int
4539 main ()
4540 {
4541 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4542 test_array [0] = 0
4543
4544 ;
4545 return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_lo=$ac_mid; break
4571 else
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 ac_hi=`expr '(' $ac_mid ')' - 1`
4576 if test $ac_mid -le $ac_hi; then
4577 ac_lo= ac_hi=
4578 break
4579 fi
4580 ac_mid=`expr 2 '*' $ac_mid`
4581 fi
4582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583 done
4584 else
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 ac_lo= ac_hi=
4589 fi
4590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4591 fi
4592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4593 # Binary search between lo and hi bounds.
4594 while test "x$ac_lo" != "x$ac_hi"; do
4595 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h. */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4603 int
4604 main ()
4605 {
4606 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4607 test_array [0] = 0
4608
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 rm -f conftest.$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 (eval $ac_try) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 (eval $ac_try) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 ac_hi=$ac_mid
4636 else
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4639
4640 ac_lo=`expr '(' $ac_mid ')' + 1`
4641 fi
4642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643 done
4644 case $ac_lo in
4645 ?*) ac_cv_sizeof_int=$ac_lo;;
4646 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4647 See \`config.log' for more details." >&5
4648 echo "$as_me: error: cannot compute sizeof (int), 77
4649 See \`config.log' for more details." >&2;}
4650 { (exit 1); exit 1; }; } ;;
4651 esac
4652 else
4653 if test "$cross_compiling" = yes; then
4654 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4655 See \`config.log' for more details." >&5
4656 echo "$as_me: error: cannot run test program while cross compiling
4657 See \`config.log' for more details." >&2;}
4658 { (exit 1); exit 1; }; }
4659 else
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 long longval () { return (long) (sizeof (int)); }
4668 unsigned long ulongval () { return (long) (sizeof (int)); }
4669 #include <stdio.h>
4670 #include <stdlib.h>
4671 int
4672 main ()
4673 {
4674
4675 FILE *f = fopen ("conftest.val", "w");
4676 if (! f)
4677 exit (1);
4678 if (((long) (sizeof (int))) < 0)
4679 {
4680 long i = longval ();
4681 if (i != ((long) (sizeof (int))))
4682 exit (1);
4683 fprintf (f, "%ld\n", i);
4684 }
4685 else
4686 {
4687 unsigned long i = ulongval ();
4688 if (i != ((long) (sizeof (int))))
4689 exit (1);
4690 fprintf (f, "%lu\n", i);
4691 }
4692 exit (ferror (f) || fclose (f) != 0);
4693
4694 ;
4695 return 0;
4696 }
4697 _ACEOF
4698 rm -f conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 (eval $ac_try) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_sizeof_int=`cat conftest.val`
4710 else
4711 echo "$as_me: program exited with status $ac_status" >&5
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715 ( exit $ac_status )
4716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4717 See \`config.log' for more details." >&5
4718 echo "$as_me: error: cannot compute sizeof (int), 77
4719 See \`config.log' for more details." >&2;}
4720 { (exit 1); exit 1; }; }
4721 fi
4722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 fi
4725 rm -f conftest.val
4726 else
4727 ac_cv_sizeof_int=0
4728 fi
4729 fi
4730 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4731 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4732 cat >>confdefs.h <<_ACEOF
4733 #define SIZEOF_INT $ac_cv_sizeof_int
4734 _ACEOF
4735
4736
4737 echo "$as_me:$LINENO: checking for long" >&5
4738 echo $ECHO_N "checking for long... $ECHO_C" >&6
4739 if test "${ac_cv_type_long+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 $ac_includes_default
4749 int
4750 main ()
4751 {
4752 if ((long *) 0)
4753 return 0;
4754 if (sizeof (long))
4755 return 0;
4756 ;
4757 return 0;
4758 }
4759 _ACEOF
4760 rm -f conftest.$ac_objext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag"
4770 || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_cv_type_long=yes
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 ac_cv_type_long=no
4788 fi
4789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4790 fi
4791 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4792 echo "${ECHO_T}$ac_cv_type_long" >&6
4793
4794 echo "$as_me:$LINENO: checking size of long" >&5
4795 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4796 if test "${ac_cv_sizeof_long+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 if test "$ac_cv_type_long" = yes; then
4800 # The cast to unsigned long works around a bug in the HP C Compiler
4801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4803 # This bug is HP SR number 8606223364.
4804 if test "$cross_compiling" = yes; then
4805 # Depending upon the size, compute the lo and hi bounds.
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 $ac_includes_default
4813 int
4814 main ()
4815 {
4816 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4817 test_array [0] = 0
4818
4819 ;
4820 return 0;
4821 }
4822 _ACEOF
4823 rm -f conftest.$ac_objext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -z "$ac_c_werror_flag"
4833 || test ! -s conftest.err'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 (eval $ac_try) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; } &&
4839 { ac_try='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_lo=0 ac_mid=0
4846 while :; do
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4854 int
4855 main ()
4856 {
4857 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4858 test_array [0] = 0
4859
4860 ;
4861 return 0;
4862 }
4863 _ACEOF
4864 rm -f conftest.$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_hi=$ac_mid; break
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 ac_lo=`expr $ac_mid + 1`
4892 if test $ac_lo -le $ac_mid; then
4893 ac_lo= ac_hi=
4894 break
4895 fi
4896 ac_mid=`expr 2 '*' $ac_mid + 1`
4897 fi
4898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4899 done
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4903
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 $ac_includes_default
4911 int
4912 main ()
4913 {
4914 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4915 test_array [0] = 0
4916
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } &&
4930 { ac_try='test -z "$ac_c_werror_flag"
4931 || test ! -s conftest.err'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest.$ac_objext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 (eval $ac_try) 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 ac_hi=-1 ac_mid=-1
4944 while :; do
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))) >= $ac_mid)];
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"
4972 || test ! -s conftest.err'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; } &&
4978 { ac_try='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_lo=$ac_mid; break
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4988
4989 ac_hi=`expr '(' $ac_mid ')' - 1`
4990 if test $ac_mid -le $ac_hi; then
4991 ac_lo= ac_hi=
4992 break
4993 fi
4994 ac_mid=`expr 2 '*' $ac_mid`
4995 fi
4996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4997 done
4998 else
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002 ac_lo= ac_hi=
5003 fi
5004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5005 fi
5006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5007 # Binary search between lo and hi bounds.
5008 while test "x$ac_lo" != "x$ac_hi"; do
5009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h. */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_includes_default
5017 int
5018 main ()
5019 {
5020 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5021 test_array [0] = 0
5022
5023 ;
5024 return 0;
5025 }
5026 _ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 ac_hi=$ac_mid
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 ac_lo=`expr '(' $ac_mid ')' + 1`
5055 fi
5056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5057 done
5058 case $ac_lo in
5059 ?*) ac_cv_sizeof_long=$ac_lo;;
5060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5061 See \`config.log' for more details." >&5
5062 echo "$as_me: error: cannot compute sizeof (long), 77
5063 See \`config.log' for more details." >&2;}
5064 { (exit 1); exit 1; }; } ;;
5065 esac
5066 else
5067 if test "$cross_compiling" = yes; then
5068 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5069 See \`config.log' for more details." >&5
5070 echo "$as_me: error: cannot run test program while cross compiling
5071 See \`config.log' for more details." >&2;}
5072 { (exit 1); exit 1; }; }
5073 else
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 $ac_includes_default
5081 long longval () { return (long) (sizeof (long)); }
5082 unsigned long ulongval () { return (long) (sizeof (long)); }
5083 #include <stdio.h>
5084 #include <stdlib.h>
5085 int
5086 main ()
5087 {
5088
5089 FILE *f = fopen ("conftest.val", "w");
5090 if (! f)
5091 exit (1);
5092 if (((long) (sizeof (long))) < 0)
5093 {
5094 long i = longval ();
5095 if (i != ((long) (sizeof (long))))
5096 exit (1);
5097 fprintf (f, "%ld\n", i);
5098 }
5099 else
5100 {
5101 unsigned long i = ulongval ();
5102 if (i != ((long) (sizeof (long))))
5103 exit (1);
5104 fprintf (f, "%lu\n", i);
5105 }
5106 exit (ferror (f) || fclose (f) != 0);
5107
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 rm -f conftest$ac_exeext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114 (eval $ac_link) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_cv_sizeof_long=`cat conftest.val`
5124 else
5125 echo "$as_me: program exited with status $ac_status" >&5
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 ( exit $ac_status )
5130 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5131 See \`config.log' for more details." >&5
5132 echo "$as_me: error: cannot compute sizeof (long), 77
5133 See \`config.log' for more details." >&2;}
5134 { (exit 1); exit 1; }; }
5135 fi
5136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5137 fi
5138 fi
5139 rm -f conftest.val
5140 else
5141 ac_cv_sizeof_long=0
5142 fi
5143 fi
5144 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5145 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5146 cat >>confdefs.h <<_ACEOF
5147 #define SIZEOF_LONG $ac_cv_sizeof_long
5148 _ACEOF
5149
5150
5151 echo "$as_me:$LINENO: checking for long long" >&5
5152 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5153 if test "${ac_cv_type_long_long+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 $ac_includes_default
5163 int
5164 main ()
5165 {
5166 if ((long long *) 0)
5167 return 0;
5168 if (sizeof (long long))
5169 return 0;
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 rm -f conftest.$ac_objext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176 (eval $ac_compile) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_type_long_long=yes
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 ac_cv_type_long_long=no
5202 fi
5203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5204 fi
5205 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5206 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5207 if test $ac_cv_type_long_long = yes; then
5208
5209 cat >>confdefs.h <<_ACEOF
5210 #define HAVE_LONG_LONG 1
5211 _ACEOF
5212
5213 echo "$as_me:$LINENO: checking for long long" >&5
5214 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5215 if test "${ac_cv_type_long_long+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 $ac_includes_default
5225 int
5226 main ()
5227 {
5228 if ((long long *) 0)
5229 return 0;
5230 if (sizeof (long long))
5231 return 0;
5232 ;
5233 return 0;
5234 }
5235 _ACEOF
5236 rm -f conftest.$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -z "$ac_c_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 (eval $ac_try) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest.$ac_objext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 (eval $ac_try) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_type_long_long=yes
5259 else
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5262
5263 ac_cv_type_long_long=no
5264 fi
5265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5266 fi
5267 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5268 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5269
5270 echo "$as_me:$LINENO: checking size of long long" >&5
5271 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5272 if test "${ac_cv_sizeof_long_long+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 if test "$ac_cv_type_long_long" = yes; then
5276 # The cast to unsigned long works around a bug in the HP C Compiler
5277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5279 # This bug is HP SR number 8606223364.
5280 if test "$cross_compiling" = yes; then
5281 # Depending upon the size, compute the lo and hi bounds.
5282 cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h. */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 $ac_includes_default
5289 int
5290 main ()
5291 {
5292 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5293 test_array [0] = 0
5294
5295 ;
5296 return 0;
5297 }
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -z "$ac_c_werror_flag"
5309 || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_lo=0 ac_mid=0
5322 while :; do
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 int
5331 main ()
5332 {
5333 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5334 test_array [0] = 0
5335
5336 ;
5337 return 0;
5338 }
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5343 ac_status=$?
5344 grep -v '^ *+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -z "$ac_c_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 (eval $ac_try) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_hi=$ac_mid; break
5363 else
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5366
5367 ac_lo=`expr $ac_mid + 1`
5368 if test $ac_lo -le $ac_mid; then
5369 ac_lo= ac_hi=
5370 break
5371 fi
5372 ac_mid=`expr 2 '*' $ac_mid + 1`
5373 fi
5374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5375 done
5376 else
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380 cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 $ac_includes_default
5387 int
5388 main ()
5389 {
5390 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5391 test_array [0] = 0
5392
5393 ;
5394 return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399 (eval $ac_compile) 2>conftest.er1
5400 ac_status=$?
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_c_werror_flag"
5407 || test ! -s conftest.err'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest.$ac_objext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 (eval $ac_try) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5419 ac_hi=-1 ac_mid=-1
5420 while :; do
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 $ac_includes_default
5428 int
5429 main ()
5430 {
5431 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5432 test_array [0] = 0
5433
5434 ;
5435 return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_lo=$ac_mid; break
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465 ac_hi=`expr '(' $ac_mid ')' - 1`
5466 if test $ac_mid -le $ac_hi; then
5467 ac_lo= ac_hi=
5468 break
5469 fi
5470 ac_mid=`expr 2 '*' $ac_mid`
5471 fi
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 done
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478 ac_lo= ac_hi=
5479 fi
5480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5481 fi
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 # Binary search between lo and hi bounds.
5484 while test "x$ac_lo" != "x$ac_hi"; do
5485 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 $ac_includes_default
5493 int
5494 main ()
5495 {
5496 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5497 test_array [0] = 0
5498
5499 ;
5500 return 0;
5501 }
5502 _ACEOF
5503 rm -f conftest.$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try='test -s conftest.$ac_objext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 ac_hi=$ac_mid
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5529
5530 ac_lo=`expr '(' $ac_mid ')' + 1`
5531 fi
5532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5533 done
5534 case $ac_lo in
5535 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5536 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5537 See \`config.log' for more details." >&5
5538 echo "$as_me: error: cannot compute sizeof (long long), 77
5539 See \`config.log' for more details." >&2;}
5540 { (exit 1); exit 1; }; } ;;
5541 esac
5542 else
5543 if test "$cross_compiling" = yes; then
5544 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5545 See \`config.log' for more details." >&5
5546 echo "$as_me: error: cannot run test program while cross compiling
5547 See \`config.log' for more details." >&2;}
5548 { (exit 1); exit 1; }; }
5549 else
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 $ac_includes_default
5557 long longval () { return (long) (sizeof (long long)); }
5558 unsigned long ulongval () { return (long) (sizeof (long long)); }
5559 #include <stdio.h>
5560 #include <stdlib.h>
5561 int
5562 main ()
5563 {
5564
5565 FILE *f = fopen ("conftest.val", "w");
5566 if (! f)
5567 exit (1);
5568 if (((long) (sizeof (long long))) < 0)
5569 {
5570 long i = longval ();
5571 if (i != ((long) (sizeof (long long))))
5572 exit (1);
5573 fprintf (f, "%ld\n", i);
5574 }
5575 else
5576 {
5577 unsigned long i = ulongval ();
5578 if (i != ((long) (sizeof (long long))))
5579 exit (1);
5580 fprintf (f, "%lu\n", i);
5581 }
5582 exit (ferror (f) || fclose (f) != 0);
5583
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest$ac_exeext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5590 (eval $ac_link) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 (eval $ac_try) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5599 ac_cv_sizeof_long_long=`cat conftest.val`
5600 else
5601 echo "$as_me: program exited with status $ac_status" >&5
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605 ( exit $ac_status )
5606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5607 See \`config.log' for more details." >&5
5608 echo "$as_me: error: cannot compute sizeof (long long), 77
5609 See \`config.log' for more details." >&2;}
5610 { (exit 1); exit 1; }; }
5611 fi
5612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5613 fi
5614 fi
5615 rm -f conftest.val
5616 else
5617 ac_cv_sizeof_long_long=0
5618 fi
5619 fi
5620 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5621 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5622 cat >>confdefs.h <<_ACEOF
5623 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5624 _ACEOF
5625
5626
5627 fi
5628
5629 echo "$as_me:$LINENO: checking for __int64" >&5
5630 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5631 if test "${ac_cv_type___int64+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5641 int
5642 main ()
5643 {
5644 if ((__int64 *) 0)
5645 return 0;
5646 if (sizeof (__int64))
5647 return 0;
5648 ;
5649 return 0;
5650 }
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_type___int64=yes
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 ac_cv_type___int64=no
5680 fi
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5682 fi
5683 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5684 echo "${ECHO_T}$ac_cv_type___int64" >&6
5685 if test $ac_cv_type___int64 = yes; then
5686
5687 cat >>confdefs.h <<_ACEOF
5688 #define HAVE___INT64 1
5689 _ACEOF
5690
5691 echo "$as_me:$LINENO: checking for __int64" >&5
5692 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5693 if test "${ac_cv_type___int64+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 $ac_includes_default
5703 int
5704 main ()
5705 {
5706 if ((__int64 *) 0)
5707 return 0;
5708 if (sizeof (__int64))
5709 return 0;
5710 ;
5711 return 0;
5712 }
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try='test -z "$ac_c_werror_flag"
5724 || test ! -s conftest.err'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5736 ac_cv_type___int64=yes
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 ac_cv_type___int64=no
5742 fi
5743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5744 fi
5745 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5746 echo "${ECHO_T}$ac_cv_type___int64" >&6
5747
5748 echo "$as_me:$LINENO: checking size of __int64" >&5
5749 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5750 if test "${ac_cv_sizeof___int64+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 if test "$ac_cv_type___int64" = yes; then
5754 # The cast to unsigned long works around a bug in the HP C Compiler
5755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5757 # This bug is HP SR number 8606223364.
5758 if test "$cross_compiling" = yes; then
5759 # Depending upon the size, compute the lo and hi bounds.
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"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_lo=0 ac_mid=0
5800 while :; do
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 $ac_includes_default
5808 int
5809 main ()
5810 {
5811 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5812 test_array [0] = 0
5813
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_c_werror_flag"
5828 || test ! -s conftest.err'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 ac_hi=$ac_mid; break
5841 else
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 ac_lo=`expr $ac_mid + 1`
5846 if test $ac_lo -le $ac_mid; then
5847 ac_lo= ac_hi=
5848 break
5849 fi
5850 ac_mid=`expr 2 '*' $ac_mid + 1`
5851 fi
5852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5853 done
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5857
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 $ac_includes_default
5865 int
5866 main ()
5867 {
5868 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5869 test_array [0] = 0
5870
5871 ;
5872 return 0;
5873 }
5874 _ACEOF
5875 rm -f conftest.$ac_objext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -z "$ac_c_werror_flag"
5885 || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_hi=-1 ac_mid=-1
5898 while :; do
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5906 int
5907 main ()
5908 {
5909 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5910 test_array [0] = 0
5911
5912 ;
5913 return 0;
5914 }
5915 _ACEOF
5916 rm -f conftest.$ac_objext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_c_werror_flag"
5926 || test ! -s conftest.err'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try='test -s conftest.$ac_objext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 ac_lo=$ac_mid; break
5939 else
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5942
5943 ac_hi=`expr '(' $ac_mid ')' - 1`
5944 if test $ac_mid -le $ac_hi; then
5945 ac_lo= ac_hi=
5946 break
5947 fi
5948 ac_mid=`expr 2 '*' $ac_mid`
5949 fi
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 done
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 ac_lo= ac_hi=
5957 fi
5958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959 fi
5960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5961 # Binary search between lo and hi bounds.
5962 while test "x$ac_lo" != "x$ac_hi"; do
5963 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5964 cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h. */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 $ac_includes_default
5971 int
5972 main ()
5973 {
5974 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5975 test_array [0] = 0
5976
5977 ;
5978 return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest.$ac_objext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag"
5991 || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest.$ac_objext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_hi=$ac_mid
6004 else
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6007
6008 ac_lo=`expr '(' $ac_mid ')' + 1`
6009 fi
6010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6011 done
6012 case $ac_lo in
6013 ?*) ac_cv_sizeof___int64=$ac_lo;;
6014 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (__int64), 77
6017 See \`config.log' for more details." >&2;}
6018 { (exit 1); exit 1; }; } ;;
6019 esac
6020 else
6021 if test "$cross_compiling" = yes; then
6022 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6023 See \`config.log' for more details." >&5
6024 echo "$as_me: error: cannot run test program while cross compiling
6025 See \`config.log' for more details." >&2;}
6026 { (exit 1); exit 1; }; }
6027 else
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 $ac_includes_default
6035 long longval () { return (long) (sizeof (__int64)); }
6036 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6037 #include <stdio.h>
6038 #include <stdlib.h>
6039 int
6040 main ()
6041 {
6042
6043 FILE *f = fopen ("conftest.val", "w");
6044 if (! f)
6045 exit (1);
6046 if (((long) (sizeof (__int64))) < 0)
6047 {
6048 long i = longval ();
6049 if (i != ((long) (sizeof (__int64))))
6050 exit (1);
6051 fprintf (f, "%ld\n", i);
6052 }
6053 else
6054 {
6055 unsigned long i = ulongval ();
6056 if (i != ((long) (sizeof (__int64))))
6057 exit (1);
6058 fprintf (f, "%lu\n", i);
6059 }
6060 exit (ferror (f) || fclose (f) != 0);
6061
6062 ;
6063 return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068 (eval $ac_link) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_sizeof___int64=`cat conftest.val`
6078 else
6079 echo "$as_me: program exited with status $ac_status" >&5
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 ( exit $ac_status )
6084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6085 See \`config.log' for more details." >&5
6086 echo "$as_me: error: cannot compute sizeof (__int64), 77
6087 See \`config.log' for more details." >&2;}
6088 { (exit 1); exit 1; }; }
6089 fi
6090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6091 fi
6092 fi
6093 rm -f conftest.val
6094 else
6095 ac_cv_sizeof___int64=0
6096 fi
6097 fi
6098 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6099 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6100 cat >>confdefs.h <<_ACEOF
6101 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6102 _ACEOF
6103
6104
6105 fi
6106
6107
6108 # ---------------------
6109 # Warnings and checking
6110 # ---------------------
6111
6112 # Check $CC warning features (if it's GCC).
6113 # We want to use -pedantic, but we don't want warnings about
6114 # * 'long long'
6115 # * variadic macros
6116 # * overlong strings
6117 # So, we only use -pedantic if we can disable those warnings.
6118
6119 loose_warn=
6120 save_CFLAGS="$CFLAGS"
6121 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6122 -Wmissing-prototypes; do
6123 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6124
6125 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6126 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6127 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 CFLAGS="$option"
6131 cat >conftest.$ac_ext <<_ACEOF
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137
6138 int
6139 main ()
6140 {
6141
6142 ;
6143 return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>conftest.er1
6149 ac_status=$?
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest.$ac_objext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 (eval $ac_try) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 eval "$as_acx_Woption=yes"
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 eval "$as_acx_Woption=no"
6174 fi
6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6176
6177 fi
6178 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6180 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6181 loose_warn="$loose_warn${loose_warn:+ }$option"
6182 fi
6183
6184 done
6185 CFLAGS="$save_CFLAGS"
6186
6187 cxx_compat_warn=
6188 save_CFLAGS="$CFLAGS"
6189 for option in -Wc++-compat; do
6190 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6191
6192 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6193 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6194 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197 CFLAGS="$option"
6198 cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h. */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204
6205 int
6206 main ()
6207 {
6208
6209 ;
6210 return 0;
6211 }
6212 _ACEOF
6213 rm -f conftest.$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>conftest.er1
6216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_c_werror_flag"
6223 || test ! -s conftest.err'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; } &&
6229 { ac_try='test -s conftest.$ac_objext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 (eval $ac_try) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 eval "$as_acx_Woption=yes"
6236 else
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.$ac_ext >&5
6239
6240 eval "$as_acx_Woption=no"
6241 fi
6242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6243
6244 fi
6245 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6246 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6247 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6248 cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6249 fi
6250
6251 done
6252 CFLAGS="$save_CFLAGS"
6253
6254 strict_warn=
6255 save_CFLAGS="$CFLAGS"
6256 for option in -Wold-style-definition \
6257 -Wmissing-format-attribute; do
6258 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6259
6260 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6261 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6262 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 CFLAGS="$option"
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272
6273 int
6274 main ()
6275 {
6276
6277 ;
6278 return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 eval "$as_acx_Woption=yes"
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6307
6308 eval "$as_acx_Woption=no"
6309 fi
6310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6311
6312 fi
6313 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6314 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6315 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6316 strict_warn="$strict_warn${strict_warn:+ }$option"
6317 fi
6318
6319 done
6320 CFLAGS="$save_CFLAGS"
6321
6322 if test "$GCC" = yes; then
6323 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6324 -Wno-overlength-strings" >&5
6325 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6326 -Wno-overlength-strings... $ECHO_C" >&6
6327 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 save_CFLAGS="$CFLAGS"
6331 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6332 -Wno-overlength-strings"
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339
6340 int
6341 main ()
6342 {
6343
6344 ;
6345 return 0;
6346 }
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_c_werror_flag"
6358 || test ! -s conftest.err'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6370 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
6376 fi
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378 CFLAGS="$save_CFLAGS"
6379 fi
6380 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6381 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6382 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6383 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6384 -Wno-overlength-strings"
6385 fi
6386
6387
6388 fi
6389
6390
6391 # Check whether --enable-werror-always or --disable-werror-always was given.
6392 if test "${enable_werror_always+set}" = set; then
6393 enableval="$enable_werror_always"
6394
6395 else
6396 enable_werror_always=no
6397 fi;
6398 if test $enable_werror_always = yes; then
6399 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6400 fi
6401
6402
6403
6404
6405 # The above macros do nothing if the compiler is not GCC. However, the
6406 # Makefile has more goo to add other flags, so this variabl is used to
6407 # enables warnings only for GCC.
6408 warn_cflags=
6409 if test "x$GCC" = "xyes"; then
6410 warn_cflags='$(GCC_WARN_CFLAGS)'
6411 fi
6412
6413
6414 # Enable expensive internal checks
6415 is_release=
6416 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6417 is_release=yes
6418 fi
6419
6420 # Check whether --enable-checking or --disable-checking was given.
6421 if test "${enable_checking+set}" = set; then
6422 enableval="$enable_checking"
6423 ac_checking_flags="${enableval}"
6424 else
6425
6426 # Determine the default checks.
6427 if test x$is_release = x ; then
6428 ac_checking_flags=yes
6429 else
6430 ac_checking_flags=release
6431 fi
6432 fi;
6433 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6434 for check in release $ac_checking_flags
6435 do
6436 case $check in
6437 # these set all the flags to specific states
6438 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6439 ac_fold_checking= ; ac_gc_checking=1 ;
6440 ac_gc_always_collect= ; ac_rtl_checking= ;
6441 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6442 ac_tree_checking=1 ; ac_valgrind_checking= ;
6443 ac_types_checking= ;;
6444 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6445 ac_fold_checking= ; ac_gc_checking= ;
6446 ac_gc_always_collect= ; ac_rtl_checking= ;
6447 ac_rtlflag_checking= ; ac_runtime_checking= ;
6448 ac_tree_checking= ; ac_valgrind_checking= ;
6449 ac_types_checking= ;;
6450 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6451 ac_fold_checking=1 ; ac_gc_checking=1 ;
6452 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6453 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6454 ac_tree_checking=1 ; ac_valgrind_checking= ;
6455 ac_types_checking=1 ;;
6456 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6457 ac_fold_checking= ; ac_gc_checking= ;
6458 ac_gc_always_collect= ; ac_rtl_checking= ;
6459 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6460 ac_tree_checking= ; ac_valgrind_checking= ;
6461 ac_types_checking= ;;
6462 # these enable particular checks
6463 assert) ac_assert_checking=1 ;;
6464 df) ac_df_checking=1 ;;
6465 fold) ac_fold_checking=1 ;;
6466 gc) ac_gc_checking=1 ;;
6467 gcac) ac_gc_always_collect=1 ;;
6468 misc) ac_checking=1 ;;
6469 rtl) ac_rtl_checking=1 ;;
6470 rtlflag) ac_rtlflag_checking=1 ;;
6471 runtime) ac_runtime_checking=1 ;;
6472 tree) ac_tree_checking=1 ;;
6473 types) ac_types_checking=1 ;;
6474 valgrind) ac_valgrind_checking=1 ;;
6475 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6476 echo "$as_me: error: unknown check category $check" >&2;}
6477 { (exit 1); exit 1; }; } ;;
6478 esac
6479 done
6480 IFS="$ac_save_IFS"
6481
6482 nocommon_flag=""
6483 if test x$ac_checking != x ; then
6484
6485 cat >>confdefs.h <<\_ACEOF
6486 #define ENABLE_CHECKING 1
6487 _ACEOF
6488
6489 nocommon_flag=-fno-common
6490 fi
6491
6492 if test x$ac_df_checking != x ; then
6493
6494 cat >>confdefs.h <<\_ACEOF
6495 #define ENABLE_DF_CHECKING 1
6496 _ACEOF
6497
6498 fi
6499 if test x$ac_assert_checking != x ; then
6500
6501 cat >>confdefs.h <<\_ACEOF
6502 #define ENABLE_ASSERT_CHECKING 1
6503 _ACEOF
6504
6505 fi
6506
6507 if test x$ac_runtime_checking != x ; then
6508
6509 cat >>confdefs.h <<\_ACEOF
6510 #define ENABLE_RUNTIME_CHECKING 1
6511 _ACEOF
6512
6513 fi
6514 if test x$ac_tree_checking != x ; then
6515
6516 cat >>confdefs.h <<\_ACEOF
6517 #define ENABLE_TREE_CHECKING 1
6518 _ACEOF
6519
6520 TREEBROWSER=tree-browser.o
6521 fi
6522 if test x$ac_types_checking != x ; then
6523
6524 cat >>confdefs.h <<\_ACEOF
6525 #define ENABLE_TYPES_CHECKING 1
6526 _ACEOF
6527
6528 fi
6529
6530 if test x$ac_rtl_checking != x ; then
6531
6532 cat >>confdefs.h <<\_ACEOF
6533 #define ENABLE_RTL_CHECKING 1
6534 _ACEOF
6535
6536 fi
6537 if test x$ac_rtlflag_checking != x ; then
6538
6539 cat >>confdefs.h <<\_ACEOF
6540 #define ENABLE_RTL_FLAG_CHECKING 1
6541 _ACEOF
6542
6543 fi
6544 if test x$ac_gc_checking != x ; then
6545
6546 cat >>confdefs.h <<\_ACEOF
6547 #define ENABLE_GC_CHECKING 1
6548 _ACEOF
6549
6550 fi
6551 if test x$ac_gc_always_collect != x ; then
6552
6553 cat >>confdefs.h <<\_ACEOF
6554 #define ENABLE_GC_ALWAYS_COLLECT 1
6555 _ACEOF
6556
6557 fi
6558 if test x$ac_fold_checking != x ; then
6559
6560 cat >>confdefs.h <<\_ACEOF
6561 #define ENABLE_FOLD_CHECKING 1
6562 _ACEOF
6563
6564 fi
6565 valgrind_path_defines=
6566 valgrind_command=
6567
6568 if test "${ac_cv_header_valgrind_h+set}" = set; then
6569 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6570 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6571 if test "${ac_cv_header_valgrind_h+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 fi
6574 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6575 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6576 else
6577 # Is the header compilable?
6578 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6579 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6587 #include <valgrind.h>
6588 _ACEOF
6589 rm -f conftest.$ac_objext
6590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6591 (eval $ac_compile) 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -z "$ac_c_werror_flag"
6599 || test ! -s conftest.err'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; } &&
6605 { ac_try='test -s conftest.$ac_objext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_header_compiler=yes
6612 else
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 ac_header_compiler=no
6617 fi
6618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6620 echo "${ECHO_T}$ac_header_compiler" >&6
6621
6622 # Is the header present?
6623 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6624 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 #include <valgrind.h>
6632 _ACEOF
6633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } >/dev/null; then
6641 if test -s conftest.err; then
6642 ac_cpp_err=$ac_c_preproc_warn_flag
6643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6644 else
6645 ac_cpp_err=
6646 fi
6647 else
6648 ac_cpp_err=yes
6649 fi
6650 if test -z "$ac_cpp_err"; then
6651 ac_header_preproc=yes
6652 else
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6655
6656 ac_header_preproc=no
6657 fi
6658 rm -f conftest.err conftest.$ac_ext
6659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6660 echo "${ECHO_T}$ac_header_preproc" >&6
6661
6662 # So? What about this header?
6663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6664 yes:no: )
6665 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6666 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6668 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6669 ac_header_preproc=yes
6670 ;;
6671 no:yes:* )
6672 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6673 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6675 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6677 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6679 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6681 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6683 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6684 (
6685 cat <<\_ASBOX
6686 ## ------------------------------------------ ##
6687 ## Report this to the AC_PACKAGE_NAME lists. ##
6688 ## ------------------------------------------ ##
6689 _ASBOX
6690 ) |
6691 sed "s/^/$as_me: WARNING: /" >&2
6692 ;;
6693 esac
6694 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6695 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6696 if test "${ac_cv_header_valgrind_h+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 ac_cv_header_valgrind_h=$ac_header_preproc
6700 fi
6701 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6702 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6703
6704 fi
6705 if test $ac_cv_header_valgrind_h = yes; then
6706 have_valgrind_h=yes
6707 else
6708 have_valgrind_h=no
6709 fi
6710
6711
6712
6713 if test x$ac_valgrind_checking != x ; then
6714 # It is certainly possible that there's valgrind but no valgrind.h.
6715 # GCC relies on making annotations so we must have both.
6716 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6717 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h. */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <valgrind/memcheck.h>
6725 #ifndef VALGRIND_DISCARD
6726 #error VALGRIND_DISCARD not defined
6727 #endif
6728 _ACEOF
6729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } >/dev/null; then
6737 if test -s conftest.err; then
6738 ac_cpp_err=$ac_c_preproc_warn_flag
6739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6740 else
6741 ac_cpp_err=
6742 fi
6743 else
6744 ac_cpp_err=yes
6745 fi
6746 if test -z "$ac_cpp_err"; then
6747 gcc_cv_header_valgrind_memcheck_h=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6751
6752 gcc_cv_header_valgrind_memcheck_h=no
6753 fi
6754 rm -f conftest.err conftest.$ac_ext
6755 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6756 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6757 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6758 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6759 cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h. */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 #include <memcheck.h>
6766 #ifndef VALGRIND_DISCARD
6767 #error VALGRIND_DISCARD not defined
6768 #endif
6769 _ACEOF
6770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6772 ac_status=$?
6773 grep -v '^ *+' conftest.er1 >conftest.err
6774 rm -f conftest.er1
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } >/dev/null; then
6778 if test -s conftest.err; then
6779 ac_cpp_err=$ac_c_preproc_warn_flag
6780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6781 else
6782 ac_cpp_err=
6783 fi
6784 else
6785 ac_cpp_err=yes
6786 fi
6787 if test -z "$ac_cpp_err"; then
6788 gcc_cv_header_memcheck_h=yes
6789 else
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 gcc_cv_header_memcheck_h=no
6794 fi
6795 rm -f conftest.err conftest.$ac_ext
6796 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6797 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6798
6799 # Prepare PATH_SEPARATOR.
6800 # The user is always right.
6801 if test "${PATH_SEPARATOR+set}" != set; then
6802 echo "#! /bin/sh" >conf$$.sh
6803 echo "exit 0" >>conf$$.sh
6804 chmod +x conf$$.sh
6805 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6806 PATH_SEPARATOR=';'
6807 else
6808 PATH_SEPARATOR=:
6809 fi
6810 rm -f conf$$.sh
6811 fi
6812
6813 # Find out how to test for executable files. Don't use a zero-byte file,
6814 # as systems may use methods other than mode bits to determine executability.
6815 cat >conf$$.file <<_ASEOF
6816 #! /bin/sh
6817 exit 0
6818 _ASEOF
6819 chmod +x conf$$.file
6820 if test -x conf$$.file >/dev/null 2>&1; then
6821 ac_executable_p="test -x"
6822 else
6823 ac_executable_p="test -f"
6824 fi
6825 rm -f conf$$.file
6826
6827 # Extract the first word of "valgrind", so it can be a program name with args.
6828 set dummy valgrind; ac_word=$2
6829 echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6831 if test "${ac_cv_path_valgrind_path+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834 case "$valgrind_path" in
6835 [\\/]* | ?:[\\/]*)
6836 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6837 ;;
6838 *)
6839 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6840 for ac_dir in $PATH; do
6841 IFS="$ac_save_IFS"
6842 test -z "$ac_dir" && ac_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6845 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6846 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6847 break 2
6848 fi
6849 fi
6850 done
6851 done
6852 IFS="$ac_save_IFS"
6853 ;;
6854 esac
6855 fi
6856 valgrind_path="$ac_cv_path_valgrind_path"
6857 if test -n "$valgrind_path"; then
6858 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6859 echo "${ECHO_T}$valgrind_path" >&6
6860 else
6861 echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6
6863 fi
6864
6865 if test "x$valgrind_path" = "x" \
6866 || (test $have_valgrind_h = no \
6867 && test $gcc_cv_header_memcheck_h = no \
6868 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6869 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6870 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6871 { (exit 1); exit 1; }; }
6872 fi
6873 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6874 valgrind_command="$valgrind_path -q"
6875
6876 cat >>confdefs.h <<\_ACEOF
6877 #define ENABLE_VALGRIND_CHECKING 1
6878 _ACEOF
6879
6880 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6881
6882 cat >>confdefs.h <<\_ACEOF
6883 #define HAVE_VALGRIND_MEMCHECK_H 1
6884 _ACEOF
6885
6886 fi
6887 if test $gcc_cv_header_memcheck_h = yes; then
6888
6889 cat >>confdefs.h <<\_ACEOF
6890 #define HAVE_MEMCHECK_H 1
6891 _ACEOF
6892
6893 fi
6894 fi
6895
6896
6897
6898 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6899 if test "${enable_mapped_location+set}" = set; then
6900 enableval="$enable_mapped_location"
6901
6902 else
6903 enable_mapped_location=yes
6904 fi;
6905
6906 if test "$enable_mapped_location" = yes ; then
6907
6908 cat >>confdefs.h <<\_ACEOF
6909 #define USE_MAPPED_LOCATION 1
6910 _ACEOF
6911
6912 fi
6913
6914 # Enable code coverage collection
6915 # Check whether --enable-coverage or --disable-coverage was given.
6916 if test "${enable_coverage+set}" = set; then
6917 enableval="$enable_coverage"
6918 case "${enableval}" in
6919 yes|noopt)
6920 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6921 ;;
6922 opt)
6923 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6924 ;;
6925 no)
6926 # a.k.a. --disable-coverage
6927 coverage_flags=""
6928 ;;
6929 *)
6930 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6931 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6932 { (exit 1); exit 1; }; }
6933 ;;
6934 esac
6935 else
6936 coverage_flags=""
6937 fi;
6938
6939
6940 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6941 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6942 enableval="$enable_gather_detailed_mem_stats"
6943
6944 else
6945 enable_gather_detailed_mem_stats=no
6946 fi;
6947 if test x$enable_gather_detailed_mem_stats = xyes ; then
6948
6949 cat >>confdefs.h <<\_ACEOF
6950 #define GATHER_STATISTICS 1
6951 _ACEOF
6952
6953 fi
6954
6955 # -------------------------------
6956 # Miscenalleous configure options
6957 # -------------------------------
6958
6959 # With stabs
6960
6961 # Check whether --with-stabs or --without-stabs was given.
6962 if test "${with_stabs+set}" = set; then
6963 withval="$with_stabs"
6964 stabs="$with_stabs"
6965 else
6966 stabs=no
6967 fi;
6968
6969 # Determine whether or not multilibs are enabled.
6970 # Check whether --enable-multilib or --disable-multilib was given.
6971 if test "${enable_multilib+set}" = set; then
6972 enableval="$enable_multilib"
6973
6974 else
6975 enable_multilib=yes
6976 fi;
6977
6978
6979 # Enable __cxa_atexit for C++.
6980 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6981 if test "${enable___cxa_atexit+set}" = set; then
6982 enableval="$enable___cxa_atexit"
6983
6984 fi;
6985
6986 # Enable C extension for decimal float if target supports it.
6987 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6988 if test "${enable_decimal_float+set}" = set; then
6989 enableval="$enable_decimal_float"
6990
6991 case $enable_decimal_float in
6992 yes | no | bid | dpd) ;;
6993 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6994 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
6995 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6996 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
6997 { (exit 1); exit 1; }; } ;;
6998 esac
6999
7000 else
7001
7002 case $target in
7003 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7004 enable_decimal_float=yes
7005 ;;
7006 *)
7007 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7008 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7009 enable_decimal_float=no
7010 ;;
7011 esac
7012
7013 fi;
7014
7015 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7016
7017 cat >>confdefs.h <<_ACEOF
7018 #define ENABLE_DECIMAL_FLOAT $dfp
7019 _ACEOF
7020
7021
7022 # x86's use BID format instead of DPD
7023 case x$enable_decimal_float in
7024 xyes)
7025 case $target in
7026 i?86*-*-linux* | x86_64*-*-linux*)
7027 enable_decimal_float=bid
7028 ;;
7029 *)
7030 enable_decimal_float=dpd
7031 ;;
7032 esac
7033 ;;
7034 xno)
7035 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7036 # dependency on libdecnumber.
7037 enable_decimal_float=dpd
7038 ;;
7039 esac
7040
7041
7042 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7043
7044 cat >>confdefs.h <<_ACEOF
7045 #define ENABLE_DECIMAL_BID_FORMAT $bid
7046 _ACEOF
7047
7048
7049 # Enable C extension for fixed-point arithmetic.
7050 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7051 if test "${enable_fixed_point+set}" = set; then
7052 enableval="$enable_fixed_point"
7053
7054
7055 else
7056
7057 case $target in
7058 mips*-*-*)
7059 case $host in
7060 mips*-sgi-irix*)
7061 { echo "$as_me:$LINENO: WARNING: fixed-point support is not available for IRIX" >&5
7062 echo "$as_me: WARNING: fixed-point support is not available for IRIX" >&2;}
7063 enable_fixed_point=no
7064 ;;
7065 *)
7066 enable_fixed_point=yes
7067 ;;
7068 esac
7069 ;;
7070 *)
7071 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7072 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7073 enable_fixed_point=no
7074 ;;
7075 esac
7076
7077 fi;
7078
7079
7080 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7081
7082 cat >>confdefs.h <<_ACEOF
7083 #define ENABLE_FIXED_POINT $fixedpoint
7084 _ACEOF
7085
7086
7087 # Enable threads
7088 # Pass with no value to take the default
7089 # Pass with a value to specify a thread package
7090 # Check whether --enable-threads or --disable-threads was given.
7091 if test "${enable_threads+set}" = set; then
7092 enableval="$enable_threads"
7093
7094 else
7095 enable_threads=''
7096 fi;
7097
7098 # Check whether --enable-tls or --disable-tls was given.
7099 if test "${enable_tls+set}" = set; then
7100 enableval="$enable_tls"
7101
7102 case $enable_tls in
7103 yes | no) ;;
7104 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7105 Valid choices are 'yes' and 'no'." >&5
7106 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7107 Valid choices are 'yes' and 'no'." >&2;}
7108 { (exit 1); exit 1; }; } ;;
7109 esac
7110
7111 else
7112 enable_tls=''
7113 fi;
7114
7115 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7116 if test "${enable_objc_gc+set}" = set; then
7117 enableval="$enable_objc_gc"
7118 if test x$enable_objc_gc = xno; then
7119 objc_boehm_gc=''
7120 else
7121 objc_boehm_gc=1
7122 fi
7123 else
7124 objc_boehm_gc=''
7125 fi;
7126
7127
7128 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7129 if test "${with_dwarf2+set}" = set; then
7130 withval="$with_dwarf2"
7131 dwarf2="$with_dwarf2"
7132 else
7133 dwarf2=no
7134 fi;
7135
7136 # Check whether --enable-shared or --disable-shared was given.
7137 if test "${enable_shared+set}" = set; then
7138 enableval="$enable_shared"
7139
7140 case $enable_shared in
7141 yes | no) ;;
7142 *)
7143 enable_shared=no
7144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7145 for pkg in $enableval; do
7146 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7147 enable_shared=yes
7148 fi
7149 done
7150 IFS="$ac_save_ifs"
7151 ;;
7152 esac
7153
7154 else
7155 enable_shared=yes
7156 fi;
7157
7158
7159
7160 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7161 if test "${with_build_sysroot+set}" = set; then
7162 withval="$with_build_sysroot"
7163
7164 fi;
7165
7166
7167 # Check whether --with-sysroot or --without-sysroot was given.
7168 if test "${with_sysroot+set}" = set; then
7169 withval="$with_sysroot"
7170
7171 case ${with_sysroot} in
7172 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7173 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7174 esac
7175
7176 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7177 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7178
7179 if test "x$prefix" = xNONE; then
7180 test_prefix=/usr/local
7181 else
7182 test_prefix=$prefix
7183 fi
7184 if test "x$exec_prefix" = xNONE; then
7185 test_exec_prefix=$test_prefix
7186 else
7187 test_exec_prefix=$exec_prefix
7188 fi
7189 case ${TARGET_SYSTEM_ROOT} in
7190 "${test_prefix}"|"${test_prefix}/"*|\
7191 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7192 '${prefix}'|'${prefix}/'*|\
7193 '${exec_prefix}'|'${exec_prefix}/'*)
7194 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7195 TARGET_SYSTEM_ROOT_DEFINE="$t"
7196 ;;
7197 esac
7198
7199 else
7200
7201 TARGET_SYSTEM_ROOT=
7202 TARGET_SYSTEM_ROOT_DEFINE=
7203 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7204
7205 fi;
7206
7207
7208
7209
7210 # Build with intermodule optimisations
7211 # Check whether --enable-intermodule or --disable-intermodule was given.
7212 if test "${enable_intermodule+set}" = set; then
7213 enableval="$enable_intermodule"
7214 case ${enable_intermodule} in
7215 yes) onestep="-onestep";;
7216 *) onestep="";;
7217 esac
7218 else
7219 onestep=""
7220 fi;
7221
7222
7223
7224
7225 # Check whether --with-pkgversion or --without-pkgversion was given.
7226 if test "${with_pkgversion+set}" = set; then
7227 withval="$with_pkgversion"
7228 case "$withval" in
7229 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7230 echo "$as_me: error: package version not specified" >&2;}
7231 { (exit 1); exit 1; }; } ;;
7232 no) PKGVERSION= ;;
7233 *) PKGVERSION="($withval) " ;;
7234 esac
7235 else
7236 PKGVERSION="(GCC) "
7237
7238 fi;
7239
7240
7241
7242
7243 # Check whether --with-bugurl or --without-bugurl was given.
7244 if test "${with_bugurl+set}" = set; then
7245 withval="$with_bugurl"
7246 case "$withval" in
7247 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7248 echo "$as_me: error: bug URL not specified" >&2;}
7249 { (exit 1); exit 1; }; } ;;
7250 no) BUGURL=
7251 ;;
7252 *) BUGURL="$withval"
7253 ;;
7254 esac
7255 else
7256 BUGURL="http://gcc.gnu.org/bugs.html"
7257
7258 fi;
7259 case ${BUGURL} in
7260 "")
7261 REPORT_BUGS_TO=
7262 REPORT_BUGS_TEXI=
7263 ;;
7264 *)
7265 REPORT_BUGS_TO="<$BUGURL>"
7266 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7267 ;;
7268 esac;
7269
7270
7271
7272
7273 # Sanity check enable_languages in case someone does not run the toplevel
7274 # configure # script.
7275 # Check whether --enable-languages or --disable-languages was given.
7276 if test "${enable_languages+set}" = set; then
7277 enableval="$enable_languages"
7278 case ,${enable_languages}, in
7279 ,,|,yes,)
7280 # go safe -- we cannot be much sure without the toplevel
7281 # configure's
7282 # analysis of which target libs are present and usable
7283 enable_languages=c
7284 ;;
7285 *,all,*)
7286 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7287 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7288 { (exit 1); exit 1; }; }
7289 ;;
7290 *,c,*)
7291 ;;
7292 *)
7293 enable_languages=c,${enable_languages}
7294 ;;
7295 esac
7296 else
7297 enable_languages=c
7298 fi;
7299
7300 # Used by documentation targets
7301
7302
7303
7304
7305 # -------------------------
7306 # Checks for other programs
7307 # -------------------------
7308
7309 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7310 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7311 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7312 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 cat >conftest.make <<\_ACEOF
7316 all:
7317 @echo 'ac_maketemp="$(MAKE)"'
7318 _ACEOF
7319 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7320 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7321 if test -n "$ac_maketemp"; then
7322 eval ac_cv_prog_make_${ac_make}_set=yes
7323 else
7324 eval ac_cv_prog_make_${ac_make}_set=no
7325 fi
7326 rm -f conftest.make
7327 fi
7328 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7329 echo "$as_me:$LINENO: result: yes" >&5
7330 echo "${ECHO_T}yes" >&6
7331 SET_MAKE=
7332 else
7333 echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7335 SET_MAKE="MAKE=${MAKE-make}"
7336 fi
7337
7338
7339 # Find some useful tools
7340 for ac_prog in gawk mawk nawk awk
7341 do
7342 # Extract the first word of "$ac_prog", so it can be a program name with args.
7343 set dummy $ac_prog; ac_word=$2
7344 echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346 if test "${ac_cv_prog_AWK+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349 if test -n "$AWK"; then
7350 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_AWK="$ac_prog"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363 done
7364 done
7365
7366 fi
7367 fi
7368 AWK=$ac_cv_prog_AWK
7369 if test -n "$AWK"; then
7370 echo "$as_me:$LINENO: result: $AWK" >&5
7371 echo "${ECHO_T}$AWK" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7375 fi
7376
7377 test -n "$AWK" && break
7378 done
7379
7380 # We need awk to create options.c and options.h.
7381 # Bail out if it's missing.
7382 case ${AWK} in
7383 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7384 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7385 { (exit 1); exit 1; }; } ;;
7386 esac
7387
7388 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7389 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7390 if test "${gcc_cv_prog_LN_S+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393 rm -f conftestdata_t
7394 echo >conftestdata_f
7395 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7396 then
7397 gcc_cv_prog_LN_S="ln -s"
7398 else
7399 if ln conftestdata_f conftestdata_t 2>/dev/null
7400 then
7401 gcc_cv_prog_LN_S=ln
7402 else
7403 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7404 then
7405 gcc_cv_prog_LN_S="cp -p"
7406 else
7407 gcc_cv_prog_LN_S=cp
7408 fi
7409 fi
7410 fi
7411 rm -f conftestdata_f conftestdata_t
7412
7413 fi
7414 LN_S="$gcc_cv_prog_LN_S"
7415 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417 echo "${ECHO_T}yes" >&6
7418 else
7419 if test "$gcc_cv_prog_LN_S" = "ln"; then
7420 echo "$as_me:$LINENO: result: no, using ln" >&5
7421 echo "${ECHO_T}no, using ln" >&6
7422 else
7423 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7424 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7425 fi
7426 fi
7427
7428 echo "$as_me:$LINENO: checking whether ln works" >&5
7429 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7430 if test "${acx_cv_prog_LN+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 rm -f conftestdata_t
7434 echo >conftestdata_f
7435 if ln conftestdata_f conftestdata_t 2>/dev/null
7436 then
7437 acx_cv_prog_LN=ln
7438 else
7439 acx_cv_prog_LN=no
7440 fi
7441 rm -f conftestdata_f conftestdata_t
7442
7443 fi
7444 if test $acx_cv_prog_LN = no; then
7445 LN="$LN_S"
7446 echo "$as_me:$LINENO: result: no, using $LN" >&5
7447 echo "${ECHO_T}no, using $LN" >&6
7448 else
7449 LN="$acx_cv_prog_LN"
7450 echo "$as_me:$LINENO: result: yes" >&5
7451 echo "${ECHO_T}yes" >&6
7452 fi
7453
7454 if test -n "$ac_tool_prefix"; then
7455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7456 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7457 echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7459 if test "${ac_cv_prog_RANLIB+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462 if test -n "$RANLIB"; then
7463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476 done
7477 done
7478
7479 fi
7480 fi
7481 RANLIB=$ac_cv_prog_RANLIB
7482 if test -n "$RANLIB"; then
7483 echo "$as_me:$LINENO: result: $RANLIB" >&5
7484 echo "${ECHO_T}$RANLIB" >&6
7485 else
7486 echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6
7488 fi
7489
7490 fi
7491 if test -z "$ac_cv_prog_RANLIB"; then
7492 ac_ct_RANLIB=$RANLIB
7493 # Extract the first word of "ranlib", so it can be a program name with args.
7494 set dummy ranlib; ac_word=$2
7495 echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7497 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500 if test -n "$ac_ct_RANLIB"; then
7501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_ac_ct_RANLIB="ranlib"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514 done
7515 done
7516
7517 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7518 fi
7519 fi
7520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7521 if test -n "$ac_ct_RANLIB"; then
7522 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7523 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7524 else
7525 echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6
7527 fi
7528
7529 RANLIB=$ac_ct_RANLIB
7530 else
7531 RANLIB="$ac_cv_prog_RANLIB"
7532 fi
7533
7534 case "${host}" in
7535 *-*-darwin*)
7536 # By default, the Darwin ranlib will not treat common symbols as
7537 # definitions when building the archive table of contents. Other
7538 # ranlibs do that; pass an option to the Darwin ranlib that makes
7539 # it behave similarly.
7540 ranlib_flags="-c"
7541 ;;
7542 *)
7543 ranlib_flags=""
7544 esac
7545
7546
7547 # Find a good install program. We prefer a C program (faster),
7548 # so one script is as good as another. But avoid the broken or
7549 # incompatible versions:
7550 # SysV /etc/install, /usr/sbin/install
7551 # SunOS /usr/etc/install
7552 # IRIX /sbin/install
7553 # AIX /bin/install
7554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7556 # ./install, which can be erroneously created by make from ./install.sh.
7557 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7558 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7559 if test -z "$INSTALL"; then
7560 if test "${ac_cv_path_install+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7564 for ac_dir in $PATH; do
7565 # Account for people who put trailing slashes in PATH elements.
7566 case "$ac_dir/" in
7567 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7568 *)
7569 # OSF1 and SCO ODT 3.0 have their own names for install.
7570 for ac_prog in ginstall scoinst install; do
7571 if test -f $ac_dir/$ac_prog; then
7572 if test $ac_prog = install &&
7573 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7574 # AIX install. It has an incompatible calling convention.
7575 # OSF/1 installbsd also uses dspmsg, but is usable.
7576 :
7577 else
7578 ac_cv_path_install="$ac_dir/$ac_prog -c"
7579 break 2
7580 fi
7581 fi
7582 done
7583 ;;
7584 esac
7585 done
7586 IFS="$ac_save_IFS"
7587
7588 fi
7589 if test "${ac_cv_path_install+set}" = set; then
7590 INSTALL="$ac_cv_path_install"
7591 else
7592 # As a last resort, use the slow shell script. We don't cache a
7593 # path for INSTALL within a source directory, because that will
7594 # break other packages using the cache if that directory is
7595 # removed, or if the path is relative.
7596 INSTALL="$ac_install_sh"
7597 fi
7598 fi
7599 echo "$as_me:$LINENO: result: $INSTALL" >&5
7600 echo "${ECHO_T}$INSTALL" >&6
7601
7602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7603 # It thinks the first close brace ends the variable substitution.
7604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7605
7606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7607
7608
7609 # See if cmp has --ignore-initial.
7610 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7611 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7612 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 echo abfoo >t1
7616 echo cdfoo >t2
7617 gcc_cv_prog_cmp_skip=slowcompare
7618 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7619 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7620 :
7621 else
7622 gcc_cv_prog_cmp_skip=gnucompare
7623 fi
7624 fi
7625 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7626 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7627 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7628 :
7629 else
7630 gcc_cv_prog_cmp_skip=fastcompare
7631 fi
7632 fi
7633 fi
7634 rm t1 t2
7635
7636 fi
7637 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7638 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7639 make_compare_target=$gcc_cv_prog_cmp_skip
7640
7641
7642
7643 # See if we have the mktemp command.
7644 # Extract the first word of "mktemp", so it can be a program name with args.
7645 set dummy mktemp; ac_word=$2
7646 echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7648 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651 if test -n "$have_mktemp_command"; then
7652 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_have_mktemp_command="yes"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 break 2
7664 fi
7665 done
7666 done
7667
7668 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7669 fi
7670 fi
7671 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7672 if test -n "$have_mktemp_command"; then
7673 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7674 echo "${ECHO_T}$have_mktemp_command" >&6
7675 else
7676 echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6
7678 fi
7679
7680
7681 # See if makeinfo has been installed and is modern enough
7682 # that we can use it.
7683
7684 # Extract the first word of "makeinfo", so it can be a program name with args.
7685 set dummy makeinfo; ac_word=$2
7686 echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7688 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691 if test -n "$MAKEINFO"; then
7692 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697 IFS=$as_save_IFS
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_prog_MAKEINFO="makeinfo"
7702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 break 2
7704 fi
7705 done
7706 done
7707
7708 fi
7709 fi
7710 MAKEINFO=$ac_cv_prog_MAKEINFO
7711 if test -n "$MAKEINFO"; then
7712 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7713 echo "${ECHO_T}$MAKEINFO" >&6
7714 else
7715 echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6
7717 fi
7718
7719 if test -n "$MAKEINFO"; then
7720 # Found it, now check the version.
7721 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7722 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7723 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7727 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7728
7729 case $ac_prog_version in
7730 '') gcc_cv_prog_makeinfo_modern=no;;
7731 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7732 *) gcc_cv_prog_makeinfo_modern=no;;
7733 esac
7734
7735 fi
7736 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7737 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7738 else
7739 gcc_cv_prog_makeinfo_modern=no
7740 fi
7741 if test $gcc_cv_prog_makeinfo_modern = no; then
7742 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7743 fi
7744
7745 if test $gcc_cv_prog_makeinfo_modern = no; then
7746 { echo "$as_me:$LINENO: WARNING:
7747 *** Makeinfo is missing or too old.
7748 *** Info documentation will not be built." >&5
7749 echo "$as_me: WARNING:
7750 *** Makeinfo is missing or too old.
7751 *** Info documentation will not be built." >&2;}
7752 BUILD_INFO=
7753 else
7754 BUILD_INFO=info
7755 fi
7756
7757
7758 # Is pod2man recent enough to regenerate manpages?
7759 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7760 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7761 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7762 echo "$as_me:$LINENO: result: yes" >&5
7763 echo "${ECHO_T}yes" >&6
7764 GENERATED_MANPAGES=generated-manpages
7765 else
7766 echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7768 GENERATED_MANPAGES=
7769 fi
7770
7771
7772 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7773
7774 # How about lex?
7775 for ac_prog in flex
7776 do
7777 # Extract the first word of "$ac_prog", so it can be a program name with args.
7778 set dummy $ac_prog; ac_word=$2
7779 echo "$as_me:$LINENO: checking for $ac_word" >&5
7780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781 if test "${ac_cv_prog_FLEX+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 if test -n "$FLEX"; then
7785 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_FLEX="$ac_prog"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7797 fi
7798 done
7799 done
7800
7801 fi
7802 fi
7803 FLEX=$ac_cv_prog_FLEX
7804 if test -n "$FLEX"; then
7805 echo "$as_me:$LINENO: result: $FLEX" >&5
7806 echo "${ECHO_T}$FLEX" >&6
7807 else
7808 echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6
7810 fi
7811
7812 test -n "$FLEX" && break
7813 done
7814 test -n "$FLEX" || FLEX="$MISSING flex"
7815
7816
7817 # Bison?
7818 for ac_prog in bison
7819 do
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7824 if test "${ac_cv_prog_BISON+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827 if test -n "$BISON"; then
7828 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_BISON="$ac_prog"
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841 done
7842 done
7843
7844 fi
7845 fi
7846 BISON=$ac_cv_prog_BISON
7847 if test -n "$BISON"; then
7848 echo "$as_me:$LINENO: result: $BISON" >&5
7849 echo "${ECHO_T}$BISON" >&6
7850 else
7851 echo "$as_me:$LINENO: result: no" >&5
7852 echo "${ECHO_T}no" >&6
7853 fi
7854
7855 test -n "$BISON" && break
7856 done
7857 test -n "$BISON" || BISON="$MISSING bison"
7858
7859
7860 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7861 # check for build == host before using them.
7862
7863 # NM
7864 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7865 && test -d ../binutils ; then
7866 NM='$(objdir)/../binutils/nm-new'
7867 else
7868 # Extract the first word of "nm", so it can be a program name with args.
7869 set dummy nm; ac_word=$2
7870 echo "$as_me:$LINENO: checking for $ac_word" >&5
7871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7872 if test "${ac_cv_prog_NM+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875 if test -n "$NM"; then
7876 ac_cv_prog_NM="$NM" # Let the user override the test.
7877 else
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7880 do
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7885 ac_cv_prog_NM="nm"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7888 fi
7889 done
7890 done
7891
7892 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7893 fi
7894 fi
7895 NM=$ac_cv_prog_NM
7896 if test -n "$NM"; then
7897 echo "$as_me:$LINENO: result: $NM" >&5
7898 echo "${ECHO_T}$NM" >&6
7899 else
7900 echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6
7902 fi
7903
7904 fi
7905
7906 # AR
7907 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7908 && test -d ../binutils ; then
7909 AR='$(objdir)/../binutils/ar'
7910 else
7911 # Extract the first word of "ar", so it can be a program name with args.
7912 set dummy ar; ac_word=$2
7913 echo "$as_me:$LINENO: checking for $ac_word" >&5
7914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7915 if test "${ac_cv_prog_AR+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918 if test -n "$AR"; then
7919 ac_cv_prog_AR="$AR" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7923 do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_AR="ar"
7929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932 done
7933 done
7934
7935 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7936 fi
7937 fi
7938 AR=$ac_cv_prog_AR
7939 if test -n "$AR"; then
7940 echo "$as_me:$LINENO: result: $AR" >&5
7941 echo "${ECHO_T}$AR" >&6
7942 else
7943 echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6
7945 fi
7946
7947 fi
7948
7949
7950 # --------------------
7951 # Checks for C headers
7952 # --------------------
7953
7954 echo "$as_me:$LINENO: checking for GNU C library" >&5
7955 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7956 if test "${gcc_cv_glibc+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959 cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h. */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 #include <features.h>
7966 int
7967 main ()
7968 {
7969
7970 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7971 #error Not a GNU C library system
7972 #endif
7973 ;
7974 return 0;
7975 }
7976 _ACEOF
7977 rm -f conftest.$ac_objext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7979 (eval $ac_compile) 2>conftest.er1
7980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -z "$ac_c_werror_flag"
7987 || test ! -s conftest.err'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 (eval $ac_try) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; } &&
7993 { ac_try='test -s conftest.$ac_objext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 (eval $ac_try) 2>&5
7996 ac_status=$?
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 gcc_cv_glibc=yes
8000 else
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8003
8004 gcc_cv_glibc=no
8005 fi
8006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8007 fi
8008
8009 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8010 echo "${ECHO_T}$gcc_cv_glibc" >&6
8011 if test $gcc_cv_glibc = yes; then
8012
8013 cat >>confdefs.h <<\_ACEOF
8014 #define _GNU_SOURCE 1
8015 _ACEOF
8016
8017 fi
8018
8019 # Need to reject headers which give warnings, so that the -Werror bootstrap
8020 # works later. *sigh* This needs to come before all header checks.
8021
8022 ac_c_preproc_warn_flag=yes
8023
8024 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8025 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8026 if test "${ac_cv_header_stdc+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h. */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 #include <stdlib.h>
8036 #include <stdarg.h>
8037 #include <string.h>
8038 #include <float.h>
8039
8040 int
8041 main ()
8042 {
8043
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8050 (eval $ac_compile) 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_header_stdc=yes
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 ac_cv_header_stdc=no
8076 fi
8077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8078
8079 if test $ac_cv_header_stdc = yes; then
8080 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8081 cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 #include <string.h>
8088
8089 _ACEOF
8090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8091 $EGREP "memchr" >/dev/null 2>&1; then
8092 :
8093 else
8094 ac_cv_header_stdc=no
8095 fi
8096 rm -f conftest*
8097
8098 fi
8099
8100 if test $ac_cv_header_stdc = yes; then
8101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8102 cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h. */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8108 #include <stdlib.h>
8109
8110 _ACEOF
8111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8112 $EGREP "free" >/dev/null 2>&1; then
8113 :
8114 else
8115 ac_cv_header_stdc=no
8116 fi
8117 rm -f conftest*
8118
8119 fi
8120
8121 if test $ac_cv_header_stdc = yes; then
8122 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8123 if test "$cross_compiling" = yes; then
8124 :
8125 else
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h. */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 #include <ctype.h>
8133 #if ((' ' & 0x0FF) == 0x020)
8134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8136 #else
8137 # define ISLOWER(c) \
8138 (('a' <= (c) && (c) <= 'i') \
8139 || ('j' <= (c) && (c) <= 'r') \
8140 || ('s' <= (c) && (c) <= 'z'))
8141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8142 #endif
8143
8144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8145 int
8146 main ()
8147 {
8148 int i;
8149 for (i = 0; i < 256; i++)
8150 if (XOR (islower (i), ISLOWER (i))
8151 || toupper (i) != TOUPPER (i))
8152 exit(2);
8153 exit (0);
8154 }
8155 _ACEOF
8156 rm -f conftest$ac_exeext
8157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8158 (eval $ac_link) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 (eval $ac_try) 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 :
8168 else
8169 echo "$as_me: program exited with status $ac_status" >&5
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ( exit $ac_status )
8174 ac_cv_header_stdc=no
8175 fi
8176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8177 fi
8178 fi
8179 fi
8180 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8181 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8182 if test $ac_cv_header_stdc = yes; then
8183
8184 cat >>confdefs.h <<\_ACEOF
8185 #define STDC_HEADERS 1
8186 _ACEOF
8187
8188 fi
8189
8190 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8191 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8192 if test "${ac_cv_header_time+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195 cat >conftest.$ac_ext <<_ACEOF
8196 /* confdefs.h. */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 #include <sys/types.h>
8202 #include <sys/time.h>
8203 #include <time.h>
8204
8205 int
8206 main ()
8207 {
8208 if ((struct tm *) 0)
8209 return 0;
8210 ;
8211 return 0;
8212 }
8213 _ACEOF
8214 rm -f conftest.$ac_objext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8216 (eval $ac_compile) 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -z "$ac_c_werror_flag"
8224 || test ! -s conftest.err'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8236 ac_cv_header_time=yes
8237 else
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ac_cv_header_time=no
8242 fi
8243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8244 fi
8245 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8246 echo "${ECHO_T}$ac_cv_header_time" >&6
8247 if test $ac_cv_header_time = yes; then
8248
8249 cat >>confdefs.h <<\_ACEOF
8250 #define TIME_WITH_SYS_TIME 1
8251 _ACEOF
8252
8253 fi
8254
8255 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8256 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8257 if test "${gcc_cv_header_string+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 #include <string.h>
8267 #include <strings.h>
8268 int
8269 main ()
8270 {
8271
8272 ;
8273 return 0;
8274 }
8275 _ACEOF
8276 rm -f conftest.$ac_objext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8278 (eval $ac_compile) 2>conftest.er1
8279 ac_status=$?
8280 grep -v '^ *+' conftest.er1 >conftest.err
8281 rm -f conftest.er1
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } &&
8285 { ac_try='test -z "$ac_c_werror_flag"
8286 || test ! -s conftest.err'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 (eval $ac_try) 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try='test -s conftest.$ac_objext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 gcc_cv_header_string=yes
8299 else
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8302
8303 gcc_cv_header_string=no
8304 fi
8305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8306 fi
8307 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8308 echo "${ECHO_T}$gcc_cv_header_string" >&6
8309 if test $gcc_cv_header_string = yes; then
8310
8311 cat >>confdefs.h <<\_ACEOF
8312 #define STRING_WITH_STRINGS 1
8313 _ACEOF
8314
8315 fi
8316
8317 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8318 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8319 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 else
8322 cat >conftest.$ac_ext <<_ACEOF
8323 /* confdefs.h. */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8328 #include <sys/types.h>
8329 #include <sys/wait.h>
8330 #ifndef WEXITSTATUS
8331 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8332 #endif
8333 #ifndef WIFEXITED
8334 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8335 #endif
8336
8337 int
8338 main ()
8339 {
8340 int s;
8341 wait (&s);
8342 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8349 (eval $ac_compile) 2>conftest.er1
8350 ac_status=$?
8351 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -f conftest.er1
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try='test -z "$ac_c_werror_flag"
8357 || test ! -s conftest.err'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 (eval $ac_try) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; } &&
8363 { ac_try='test -s conftest.$ac_objext'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 (eval $ac_try) 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 ac_cv_header_sys_wait_h=yes
8370 else
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8373
8374 ac_cv_header_sys_wait_h=no
8375 fi
8376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8377 fi
8378 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8379 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8380 if test $ac_cv_header_sys_wait_h = yes; then
8381
8382 cat >>confdefs.h <<\_ACEOF
8383 #define HAVE_SYS_WAIT_H 1
8384 _ACEOF
8385
8386 fi
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8411 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8412 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8413 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8414 do
8415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8416 echo "$as_me:$LINENO: checking for $ac_header" >&5
8417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 #include <$ac_header>
8428 _ACEOF
8429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev/null; then
8437 if test -s conftest.err; then
8438 ac_cpp_err=$ac_c_preproc_warn_flag
8439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8440 else
8441 ac_cpp_err=
8442 fi
8443 else
8444 ac_cpp_err=yes
8445 fi
8446 if test -z "$ac_cpp_err"; then
8447 eval "$as_ac_Header=yes"
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 eval "$as_ac_Header=no"
8453 fi
8454 rm -f conftest.err conftest.$ac_ext
8455 fi
8456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8459 cat >>confdefs.h <<_ACEOF
8460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8461 _ACEOF
8462
8463 fi
8464 done
8465
8466
8467 # Check for thread headers.
8468 echo "$as_me:$LINENO: checking for thread.h" >&5
8469 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8470 if test "${ac_cv_header_thread_h+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 #include <thread.h>
8480 _ACEOF
8481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } >/dev/null; then
8489 if test -s conftest.err; then
8490 ac_cpp_err=$ac_c_preproc_warn_flag
8491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8492 else
8493 ac_cpp_err=
8494 fi
8495 else
8496 ac_cpp_err=yes
8497 fi
8498 if test -z "$ac_cpp_err"; then
8499 ac_cv_header_thread_h=yes
8500 else
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8503
8504 ac_cv_header_thread_h=no
8505 fi
8506 rm -f conftest.err conftest.$ac_ext
8507 fi
8508 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8509 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8510 if test $ac_cv_header_thread_h = yes; then
8511 have_thread_h=yes
8512 else
8513 have_thread_h=
8514 fi
8515
8516 echo "$as_me:$LINENO: checking for pthread.h" >&5
8517 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8518 if test "${ac_cv_header_pthread_h+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h. */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 #include <pthread.h>
8528 _ACEOF
8529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } >/dev/null; then
8537 if test -s conftest.err; then
8538 ac_cpp_err=$ac_c_preproc_warn_flag
8539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8540 else
8541 ac_cpp_err=
8542 fi
8543 else
8544 ac_cpp_err=yes
8545 fi
8546 if test -z "$ac_cpp_err"; then
8547 ac_cv_header_pthread_h=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552 ac_cv_header_pthread_h=no
8553 fi
8554 rm -f conftest.err conftest.$ac_ext
8555 fi
8556 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8557 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8558 if test $ac_cv_header_pthread_h = yes; then
8559 have_pthread_h=yes
8560 else
8561 have_pthread_h=
8562 fi
8563
8564
8565 # These tests can't be done till we know if we have limits.h.
8566 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8567 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8568 if test "${gcc_cv_decl_char_bit+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571 cat >conftest.$ac_ext <<_ACEOF
8572 /* confdefs.h. */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577 #ifdef HAVE_LIMITS_H
8578 #include <limits.h>
8579 #endif
8580 #ifdef CHAR_BIT
8581 found
8582 #endif
8583 _ACEOF
8584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8585 $EGREP "found" >/dev/null 2>&1; then
8586 gcc_cv_decl_char_bit=yes
8587 else
8588 gcc_cv_decl_char_bit=no
8589 fi
8590 rm -f conftest*
8591
8592
8593 fi
8594 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8595 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8596 if test $gcc_cv_decl_char_bit = no; then
8597 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8598 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8599 if test "${gcc_cv_c_nbby+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602 i=8
8603 gcc_cv_c_nbby=
8604 while test $i -lt 65; do
8605 cat >conftest.$ac_ext <<_ACEOF
8606 /* confdefs.h. */
8607 _ACEOF
8608 cat confdefs.h >>conftest.$ac_ext
8609 cat >>conftest.$ac_ext <<_ACEOF
8610 /* end confdefs.h. */
8611
8612 int
8613 main ()
8614 {
8615 switch(0) {
8616 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8617 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8618 ; }
8619 ;
8620 return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8625 (eval $ac_compile) 2>conftest.er1
8626 ac_status=$?
8627 grep -v '^ *+' conftest.er1 >conftest.err
8628 rm -f conftest.er1
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_c_werror_flag"
8633 || test ! -s conftest.err'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 (eval $ac_try) 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; } &&
8639 { ac_try='test -s conftest.$ac_objext'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 (eval $ac_try) 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 gcc_cv_c_nbby=$i; break
8646 else
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8649
8650 fi
8651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8652 i=`expr $i + 1`
8653 done
8654 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8655
8656 fi
8657 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8658 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8659 if test $gcc_cv_c_nbby = failed; then
8660 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8661 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8662 { (exit 1); exit 1; }; }
8663 else
8664
8665 cat >>confdefs.h <<_ACEOF
8666 #define CHAR_BIT $gcc_cv_c_nbby
8667 _ACEOF
8668
8669 fi
8670 fi
8671 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8672 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8673 if test "${ac_cv_c_bigendian+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676 # See if sys/param.h defines the BYTE_ORDER macro.
8677 cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h. */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 #include <sys/types.h>
8684 #include <sys/param.h>
8685
8686 int
8687 main ()
8688 {
8689 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8690 bogus endian macros
8691 #endif
8692
8693 ;
8694 return 0;
8695 }
8696 _ACEOF
8697 rm -f conftest.$ac_objext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8699 (eval $ac_compile) 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -z "$ac_c_werror_flag"
8707 || test ! -s conftest.err'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } &&
8713 { ac_try='test -s conftest.$ac_objext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 (eval $ac_try) 2>&5
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 # It does; now see whether it defined to BIG_ENDIAN or not.
8720 cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h. */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8726 #include <sys/types.h>
8727 #include <sys/param.h>
8728
8729 int
8730 main ()
8731 {
8732 #if BYTE_ORDER != BIG_ENDIAN
8733 not big endian
8734 #endif
8735
8736 ;
8737 return 0;
8738 }
8739 _ACEOF
8740 rm -f conftest.$ac_objext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8742 (eval $ac_compile) 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try='test -z "$ac_c_werror_flag"
8750 || test ! -s conftest.err'
8751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 (eval $ac_try) 2>&5
8753 ac_status=$?
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; } &&
8756 { ac_try='test -s conftest.$ac_objext'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 (eval $ac_try) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; }; then
8762 ac_cv_c_bigendian=yes
8763 else
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767 ac_cv_c_bigendian=no
8768 fi
8769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 # It does not; compile a test program.
8775 if test "$cross_compiling" = yes; then
8776 # try to guess the endianness by grepping values into an object file
8777 ac_cv_c_bigendian=unknown
8778 cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h. */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8785 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8786 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8787 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8788 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8789 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8790 int
8791 main ()
8792 {
8793 _ascii (); _ebcdic ();
8794 ;
8795 return 0;
8796 }
8797 _ACEOF
8798 rm -f conftest.$ac_objext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800 (eval $ac_compile) 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try='test -z "$ac_c_werror_flag"
8808 || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8821 ac_cv_c_bigendian=yes
8822 fi
8823 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8824 if test "$ac_cv_c_bigendian" = unknown; then
8825 ac_cv_c_bigendian=no
8826 else
8827 # finding both strings is unlikely to happen, but who knows?
8828 ac_cv_c_bigendian=unknown
8829 fi
8830 fi
8831 else
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835 fi
8836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8837 else
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 int
8845 main ()
8846 {
8847 /* Are we little or big endian? From Harbison&Steele. */
8848 union
8849 {
8850 long l;
8851 char c[sizeof (long)];
8852 } u;
8853 u.l = 1;
8854 exit (u.c[sizeof (long) - 1] == 1);
8855 }
8856 _ACEOF
8857 rm -f conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_cv_c_bigendian=no
8869 else
8870 echo "$as_me: program exited with status $ac_status" >&5
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 ( exit $ac_status )
8875 ac_cv_c_bigendian=yes
8876 fi
8877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8878 fi
8879 fi
8880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8881 fi
8882 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8883 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8884 case $ac_cv_c_bigendian in
8885 yes)
8886
8887 cat >>confdefs.h <<\_ACEOF
8888 #define WORDS_BIGENDIAN 1
8889 _ACEOF
8890 ;;
8891 no)
8892 ;;
8893 *)
8894 { { echo "$as_me:$LINENO: error: unknown endianness
8895 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8896 echo "$as_me: error: unknown endianness
8897 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8898 { (exit 1); exit 1; }; } ;;
8899 esac
8900
8901
8902 # --------
8903 # UNSORTED
8904 # --------
8905
8906
8907 # These libraries may be used by collect2.
8908 # We may need a special search path to get them linked.
8909 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8910 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8911 if test "${gcc_cv_collect2_libs+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8914 save_LIBS="$LIBS"
8915 for libs in '' -lld -lmld \
8916 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8917 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8918 do
8919 LIBS="$libs"
8920 cat >conftest.$ac_ext <<_ACEOF
8921 /* confdefs.h. */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8926
8927 /* Override any gcc2 internal prototype to avoid an error. */
8928 #ifdef __cplusplus
8929 extern "C"
8930 #endif
8931 /* We use char because int might match the return type of a gcc2
8932 builtin and then its argument prototype would still apply. */
8933 char ldopen ();
8934 int
8935 main ()
8936 {
8937 ldopen ();
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 gcc_cv_collect2_libs="$libs"; break
8965 else
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969 fi
8970 rm -f conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8972 done
8973 LIBS="$save_LIBS"
8974 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8975 fi
8976 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8977 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8978 case $gcc_cv_collect2_libs in
8979 "none required") ;;
8980 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8981 esac
8982
8983
8984 # When building Ada code on Alpha, we need exc_resume which is usually in
8985 # -lexc. So test for it.
8986 save_LIBS="$LIBS"
8987 LIBS=
8988 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8989 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8990 if test "${ac_cv_search_exc_resume+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993 ac_func_search_save_LIBS=$LIBS
8994 ac_cv_search_exc_resume=no
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h. */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001
9002 /* Override any gcc2 internal prototype to avoid an error. */
9003 #ifdef __cplusplus
9004 extern "C"
9005 #endif
9006 /* We use char because int might match the return type of a gcc2
9007 builtin and then its argument prototype would still apply. */
9008 char exc_resume ();
9009 int
9010 main ()
9011 {
9012 exc_resume ();
9013 ;
9014 return 0;
9015 }
9016 _ACEOF
9017 rm -f conftest.$ac_objext conftest$ac_exeext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9019 (eval $ac_link) 2>conftest.er1
9020 ac_status=$?
9021 grep -v '^ *+' conftest.er1 >conftest.err
9022 rm -f conftest.er1
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
9026 { ac_try='test -z "$ac_c_werror_flag"
9027 || test ! -s conftest.err'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 (eval $ac_try) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; } &&
9033 { ac_try='test -s conftest$ac_exeext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 (eval $ac_try) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_cv_search_exc_resume="none required"
9040 else
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044 fi
9045 rm -f conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
9047 if test "$ac_cv_search_exc_resume" = no; then
9048 for ac_lib in exc; do
9049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h. */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056
9057 /* Override any gcc2 internal prototype to avoid an error. */
9058 #ifdef __cplusplus
9059 extern "C"
9060 #endif
9061 /* We use char because int might match the return type of a gcc2
9062 builtin and then its argument prototype would still apply. */
9063 char exc_resume ();
9064 int
9065 main ()
9066 {
9067 exc_resume ();
9068 ;
9069 return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>conftest.er1
9075 ac_status=$?
9076 grep -v '^ *+' conftest.er1 >conftest.err
9077 rm -f conftest.er1
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try='test -z "$ac_c_werror_flag"
9082 || test ! -s conftest.err'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 (eval $ac_try) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_cv_search_exc_resume="-l$ac_lib"
9095 break
9096 else
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9099
9100 fi
9101 rm -f conftest.err conftest.$ac_objext \
9102 conftest$ac_exeext conftest.$ac_ext
9103 done
9104 fi
9105 LIBS=$ac_func_search_save_LIBS
9106 fi
9107 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9108 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9109 if test "$ac_cv_search_exc_resume" != no; then
9110 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9111
9112 fi
9113
9114 GNAT_LIBEXC="$LIBS"
9115 LIBS="$save_LIBS"
9116
9117
9118 # Some systems put ldexp and frexp in libm instead of libc; assume
9119 # they're both in the same place. jcf-dump needs them.
9120 save_LIBS="$LIBS"
9121 LIBS=
9122 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9123 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9124 if test "${ac_cv_search_ldexp+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 else
9127 ac_func_search_save_LIBS=$LIBS
9128 ac_cv_search_ldexp=no
9129 cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h. */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135
9136 /* Override any gcc2 internal prototype to avoid an error. */
9137 #ifdef __cplusplus
9138 extern "C"
9139 #endif
9140 /* We use char because int might match the return type of a gcc2
9141 builtin and then its argument prototype would still apply. */
9142 char ldexp ();
9143 int
9144 main ()
9145 {
9146 ldexp ();
9147 ;
9148 return 0;
9149 }
9150 _ACEOF
9151 rm -f conftest.$ac_objext conftest$ac_exeext
9152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153 (eval $ac_link) 2>conftest.er1
9154 ac_status=$?
9155 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -z "$ac_c_werror_flag"
9161 || test ! -s conftest.err'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; } &&
9167 { ac_try='test -s conftest$ac_exeext'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 ac_cv_search_ldexp="none required"
9174 else
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178 fi
9179 rm -f conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
9181 if test "$ac_cv_search_ldexp" = no; then
9182 for ac_lib in m; do
9183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9184 cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h. */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9190
9191 /* Override any gcc2 internal prototype to avoid an error. */
9192 #ifdef __cplusplus
9193 extern "C"
9194 #endif
9195 /* We use char because int might match the return type of a gcc2
9196 builtin and then its argument prototype would still apply. */
9197 char ldexp ();
9198 int
9199 main ()
9200 {
9201 ldexp ();
9202 ;
9203 return 0;
9204 }
9205 _ACEOF
9206 rm -f conftest.$ac_objext conftest$ac_exeext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9208 (eval $ac_link) 2>conftest.er1
9209 ac_status=$?
9210 grep -v '^ *+' conftest.er1 >conftest.err
9211 rm -f conftest.er1
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } &&
9215 { ac_try='test -z "$ac_c_werror_flag"
9216 || test ! -s conftest.err'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 (eval $ac_try) 2>&5
9219 ac_status=$?
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; } &&
9222 { ac_try='test -s conftest$ac_exeext'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 (eval $ac_try) 2>&5
9225 ac_status=$?
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; }; then
9228 ac_cv_search_ldexp="-l$ac_lib"
9229 break
9230 else
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9233
9234 fi
9235 rm -f conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9237 done
9238 fi
9239 LIBS=$ac_func_search_save_LIBS
9240 fi
9241 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9242 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9243 if test "$ac_cv_search_ldexp" != no; then
9244 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9245
9246 fi
9247
9248 LDEXP_LIB="$LIBS"
9249 LIBS="$save_LIBS"
9250
9251
9252 # Use <inttypes.h> only if it exists,
9253 # doesn't clash with <sys/types.h>, and declares intmax_t.
9254 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9255 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9256 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
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 <sys/types.h>
9266 #include <inttypes.h>
9267 int
9268 main ()
9269 {
9270 intmax_t i = -1;
9271 ;
9272 return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277 (eval $ac_compile) 2>conftest.er1
9278 ac_status=$?
9279 grep -v '^ *+' conftest.er1 >conftest.err
9280 rm -f conftest.er1
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag"
9285 || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 (eval $ac_try) 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest.$ac_objext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 (eval $ac_try) 2>&5
9294 ac_status=$?
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 gcc_cv_header_inttypes_h=yes
9298 else
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 gcc_cv_header_inttypes_h=no
9303 fi
9304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9305 fi
9306
9307 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9308 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9309 if test $gcc_cv_header_inttypes_h = yes; then
9310
9311 cat >>confdefs.h <<\_ACEOF
9312 #define HAVE_INTTYPES_H 1
9313 _ACEOF
9314
9315 fi
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9355 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9356 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9357 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9358 do
9359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9360 echo "$as_me:$LINENO: checking for $ac_func" >&5
9361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9362 if eval "test \"\${$as_ac_var+set}\" = set"; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h. */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9373 #define $ac_func innocuous_$ac_func
9374
9375 /* System header to define __stub macros and hopefully few prototypes,
9376 which can conflict with char $ac_func (); below.
9377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9378 <limits.h> exists even on freestanding compilers. */
9379
9380 #ifdef __STDC__
9381 # include <limits.h>
9382 #else
9383 # include <assert.h>
9384 #endif
9385
9386 #undef $ac_func
9387
9388 /* Override any gcc2 internal prototype to avoid an error. */
9389 #ifdef __cplusplus
9390 extern "C"
9391 {
9392 #endif
9393 /* We use char because int might match the return type of a gcc2
9394 builtin and then its argument prototype would still apply. */
9395 char $ac_func ();
9396 /* The GNU C library defines this for functions which it implements
9397 to always fail with ENOSYS. Some functions are actually named
9398 something starting with __ and the normal name is an alias. */
9399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9400 choke me
9401 #else
9402 char (*f) () = $ac_func;
9403 #endif
9404 #ifdef __cplusplus
9405 }
9406 #endif
9407
9408 int
9409 main ()
9410 {
9411 return f != $ac_func;
9412 ;
9413 return 0;
9414 }
9415 _ACEOF
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418 (eval $ac_link) 2>conftest.er1
9419 ac_status=$?
9420 grep -v '^ *+' conftest.er1 >conftest.err
9421 rm -f conftest.er1
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -z "$ac_c_werror_flag"
9426 || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 (eval $ac_try) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 eval "$as_ac_var=yes"
9439 else
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443 eval "$as_ac_var=no"
9444 fi
9445 rm -f conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 fi
9448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9450 if test `eval echo '${'$as_ac_var'}'` = yes; then
9451 cat >>confdefs.h <<_ACEOF
9452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9453 _ACEOF
9454
9455 fi
9456 done
9457
9458
9459 if test x$ac_cv_func_mbstowcs = xyes; then
9460 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9461 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9462 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465 if test "$cross_compiling" = yes; then
9466 gcc_cv_func_mbstowcs_works=yes
9467 else
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h. */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 #include <stdlib.h>
9475 int main()
9476 {
9477 mbstowcs(0, "", 0);
9478 return 0;
9479 }
9480 _ACEOF
9481 rm -f conftest$ac_exeext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492 gcc_cv_func_mbstowcs_works=yes
9493 else
9494 echo "$as_me: program exited with status $ac_status" >&5
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9497
9498 ( exit $ac_status )
9499 gcc_cv_func_mbstowcs_works=no
9500 fi
9501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9502 fi
9503 fi
9504 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9505 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9506 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9507
9508 cat >>confdefs.h <<\_ACEOF
9509 #define HAVE_WORKING_MBSTOWCS 1
9510 _ACEOF
9511
9512 fi
9513 fi
9514
9515 echo "$as_me:$LINENO: checking for ssize_t" >&5
9516 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9517 if test "${ac_cv_type_ssize_t+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 $ac_includes_default
9527 int
9528 main ()
9529 {
9530 if ((ssize_t *) 0)
9531 return 0;
9532 if (sizeof (ssize_t))
9533 return 0;
9534 ;
9535 return 0;
9536 }
9537 _ACEOF
9538 rm -f conftest.$ac_objext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9540 (eval $ac_compile) 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -z "$ac_c_werror_flag"
9548 || test ! -s conftest.err'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; } &&
9554 { ac_try='test -s conftest.$ac_objext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 (eval $ac_try) 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_cv_type_ssize_t=yes
9561 else
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 ac_cv_type_ssize_t=no
9566 fi
9567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9568 fi
9569 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9570 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9571 if test $ac_cv_type_ssize_t = yes; then
9572 :
9573 else
9574
9575 cat >>confdefs.h <<_ACEOF
9576 #define ssize_t int
9577 _ACEOF
9578
9579 fi
9580
9581
9582 # Try to determine the array type of the second argument of getgroups
9583 # for the target system (int or gid_t).
9584 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9585 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9586 if test "${ac_cv_type_uid_t+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 #include <sys/types.h>
9596
9597 _ACEOF
9598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9599 $EGREP "uid_t" >/dev/null 2>&1; then
9600 ac_cv_type_uid_t=yes
9601 else
9602 ac_cv_type_uid_t=no
9603 fi
9604 rm -f conftest*
9605
9606 fi
9607 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9608 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9609 if test $ac_cv_type_uid_t = no; then
9610
9611 cat >>confdefs.h <<\_ACEOF
9612 #define uid_t int
9613 _ACEOF
9614
9615
9616 cat >>confdefs.h <<\_ACEOF
9617 #define gid_t int
9618 _ACEOF
9619
9620 fi
9621
9622 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9623 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9624 if test "${ac_cv_type_getgroups+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 else
9627 if test "$cross_compiling" = yes; then
9628 ac_cv_type_getgroups=cross
9629 else
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h. */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 /* Thanks to Mike Rendell for this test. */
9637 #include <sys/types.h>
9638 #define NGID 256
9639 #undef MAX
9640 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9641
9642 int
9643 main ()
9644 {
9645 gid_t gidset[NGID];
9646 int i, n;
9647 union { gid_t gval; long lval; } val;
9648
9649 val.lval = -1;
9650 for (i = 0; i < NGID; i++)
9651 gidset[i] = val.gval;
9652 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9653 gidset);
9654 /* Exit non-zero if getgroups seems to require an array of ints. This
9655 happens when gid_t is short but getgroups modifies an array of ints. */
9656 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9657 }
9658 _ACEOF
9659 rm -f conftest$ac_exeext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_type_getgroups=gid_t
9671 else
9672 echo "$as_me: program exited with status $ac_status" >&5
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676 ( exit $ac_status )
9677 ac_cv_type_getgroups=int
9678 fi
9679 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9680 fi
9681 if test $ac_cv_type_getgroups = cross; then
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h. */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 #include <unistd.h>
9689
9690 _ACEOF
9691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9692 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9693 ac_cv_type_getgroups=gid_t
9694 else
9695 ac_cv_type_getgroups=int
9696 fi
9697 rm -f conftest*
9698
9699 fi
9700 fi
9701 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9702 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9703
9704 cat >>confdefs.h <<_ACEOF
9705 #define GETGROUPS_T $ac_cv_type_getgroups
9706 _ACEOF
9707
9708
9709 if test "${target}" = "${build}"; then
9710 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9711 else
9712 case "${target}" in
9713 # This condition may need some tweaking. It should include all
9714 # targets where the array type of the second argument of getgroups
9715 # is int and the type of gid_t is not equivalent to int.
9716 *-*-sunos* | *-*-ultrix*)
9717 TARGET_GETGROUPS_T=int
9718 ;;
9719 *)
9720 TARGET_GETGROUPS_T=gid_t
9721 ;;
9722 esac
9723 fi
9724
9725
9726
9727 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9728 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9729 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h. */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 #include <sys/mman.h>
9739 _ACEOF
9740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } >/dev/null; then
9748 if test -s conftest.err; then
9749 ac_cpp_err=$ac_c_preproc_warn_flag
9750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9751 else
9752 ac_cpp_err=
9753 fi
9754 else
9755 ac_cpp_err=yes
9756 fi
9757 if test -z "$ac_cpp_err"; then
9758 ac_cv_header_sys_mman_h=yes
9759 else
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763 ac_cv_header_sys_mman_h=no
9764 fi
9765 rm -f conftest.err conftest.$ac_ext
9766 fi
9767 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9768 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9769 if test $ac_cv_header_sys_mman_h = yes; then
9770 gcc_header_sys_mman_h=yes
9771 else
9772 gcc_header_sys_mman_h=no
9773 fi
9774
9775 echo "$as_me:$LINENO: checking for mmap" >&5
9776 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9777 if test "${ac_cv_func_mmap+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9788 #define mmap innocuous_mmap
9789
9790 /* System header to define __stub macros and hopefully few prototypes,
9791 which can conflict with char mmap (); below.
9792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9793 <limits.h> exists even on freestanding compilers. */
9794
9795 #ifdef __STDC__
9796 # include <limits.h>
9797 #else
9798 # include <assert.h>
9799 #endif
9800
9801 #undef mmap
9802
9803 /* Override any gcc2 internal prototype to avoid an error. */
9804 #ifdef __cplusplus
9805 extern "C"
9806 {
9807 #endif
9808 /* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */
9810 char mmap ();
9811 /* The GNU C library defines this for functions which it implements
9812 to always fail with ENOSYS. Some functions are actually named
9813 something starting with __ and the normal name is an alias. */
9814 #if defined (__stub_mmap) || defined (__stub___mmap)
9815 choke me
9816 #else
9817 char (*f) () = mmap;
9818 #endif
9819 #ifdef __cplusplus
9820 }
9821 #endif
9822
9823 int
9824 main ()
9825 {
9826 return f != mmap;
9827 ;
9828 return 0;
9829 }
9830 _ACEOF
9831 rm -f conftest.$ac_objext conftest$ac_exeext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833 (eval $ac_link) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_cv_func_mmap=yes
9854 else
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858 ac_cv_func_mmap=no
9859 fi
9860 rm -f conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 fi
9863 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9864 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9865 if test $ac_cv_func_mmap = yes; then
9866 gcc_func_mmap=yes
9867 else
9868 gcc_func_mmap=no
9869 fi
9870
9871 if test "$gcc_header_sys_mman_h" != yes \
9872 || test "$gcc_func_mmap" != yes; then
9873 gcc_cv_func_mmap_file=no
9874 gcc_cv_func_mmap_dev_zero=no
9875 gcc_cv_func_mmap_anon=no
9876 else
9877 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9878 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9879 if test "${gcc_cv_func_mmap_file+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 else
9882 # Add a system to this blacklist if
9883 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9884 # memory area containing the same data that you'd get if you applied
9885 # read() to the same fd. The only system known to have a problem here
9886 # is VMS, where text files have record structure.
9887 case "$host_os" in
9888 vms* | ultrix*)
9889 gcc_cv_func_mmap_file=no ;;
9890 *)
9891 gcc_cv_func_mmap_file=yes;;
9892 esac
9893 fi
9894 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9895 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9896 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9897 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9898 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901 # Add a system to this blacklist if it has mmap() but /dev/zero
9902 # does not exist, or if mmapping /dev/zero does not give anonymous
9903 # zeroed pages with both the following properties:
9904 # 1. If you map N consecutive pages in with one call, and then
9905 # unmap any subset of those pages, the pages that were not
9906 # explicitly unmapped remain accessible.
9907 # 2. If you map two adjacent blocks of memory and then unmap them
9908 # both at once, they must both go away.
9909 # Systems known to be in this category are Windows (all variants),
9910 # VMS, and Darwin.
9911 case "$host_os" in
9912 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9913 gcc_cv_func_mmap_dev_zero=no ;;
9914 *)
9915 gcc_cv_func_mmap_dev_zero=yes;;
9916 esac
9917 fi
9918 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9919 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9920
9921 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9922 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9923 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9924 if test "${gcc_cv_decl_map_anon+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h. */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9933 #include <sys/types.h>
9934 #include <sys/mman.h>
9935 #include <unistd.h>
9936
9937 #ifndef MAP_ANONYMOUS
9938 #define MAP_ANONYMOUS MAP_ANON
9939 #endif
9940
9941 int
9942 main ()
9943 {
9944 int n = MAP_ANONYMOUS;
9945 ;
9946 return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9951 (eval $ac_compile) 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag"
9959 || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest.$ac_objext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 (eval $ac_try) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 gcc_cv_decl_map_anon=yes
9972 else
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9975
9976 gcc_cv_decl_map_anon=no
9977 fi
9978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9979 fi
9980 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9981 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9982
9983 if test $gcc_cv_decl_map_anon = no; then
9984 gcc_cv_func_mmap_anon=no
9985 else
9986 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9987 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9988 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9992 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9993 # doesn't give anonymous zeroed pages with the same properties listed
9994 # above for use of /dev/zero.
9995 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9996 case "$host_os" in
9997 vms* | cygwin* | pe | mingw* | sco* | udk* )
9998 gcc_cv_func_mmap_anon=no ;;
9999 *)
10000 gcc_cv_func_mmap_anon=yes;;
10001 esac
10002 fi
10003 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10004 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10005 fi
10006 fi
10007
10008 if test $gcc_cv_func_mmap_file = yes; then
10009
10010 cat >>confdefs.h <<\_ACEOF
10011 #define HAVE_MMAP_FILE 1
10012 _ACEOF
10013
10014 fi
10015 if test $gcc_cv_func_mmap_dev_zero = yes; then
10016
10017 cat >>confdefs.h <<\_ACEOF
10018 #define HAVE_MMAP_DEV_ZERO 1
10019 _ACEOF
10020
10021 fi
10022 if test $gcc_cv_func_mmap_anon = yes; then
10023
10024 cat >>confdefs.h <<\_ACEOF
10025 #define HAVE_MMAP_ANON 1
10026 _ACEOF
10027
10028 fi
10029
10030
10031 case "${host}" in
10032 *-*-*vms*)
10033 # Under VMS, vfork works very differently than on Unix. The standard test
10034 # won't work, and it isn't easily adaptable. It makes more sense to
10035 # just force it.
10036 ac_cv_func_vfork_works=yes
10037 ;;
10038 esac
10039 echo "$as_me:$LINENO: checking for pid_t" >&5
10040 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10041 if test "${ac_cv_type_pid_t+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044 cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h. */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 $ac_includes_default
10051 int
10052 main ()
10053 {
10054 if ((pid_t *) 0)
10055 return 0;
10056 if (sizeof (pid_t))
10057 return 0;
10058 ;
10059 return 0;
10060 }
10061 _ACEOF
10062 rm -f conftest.$ac_objext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064 (eval $ac_compile) 2>conftest.er1
10065 ac_status=$?
10066 grep -v '^ *+' conftest.er1 >conftest.err
10067 rm -f conftest.er1
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag"
10072 || test ! -s conftest.err'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest.$ac_objext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_type_pid_t=yes
10085 else
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10088
10089 ac_cv_type_pid_t=no
10090 fi
10091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10092 fi
10093 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10094 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10095 if test $ac_cv_type_pid_t = yes; then
10096 :
10097 else
10098
10099 cat >>confdefs.h <<_ACEOF
10100 #define pid_t int
10101 _ACEOF
10102
10103 fi
10104
10105
10106
10107 for ac_header in unistd.h vfork.h
10108 do
10109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10110 echo "$as_me:$LINENO: checking for $ac_header" >&5
10111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 #include <$ac_header>
10122 _ACEOF
10123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10125 ac_status=$?
10126 grep -v '^ *+' conftest.er1 >conftest.err
10127 rm -f conftest.er1
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } >/dev/null; then
10131 if test -s conftest.err; then
10132 ac_cpp_err=$ac_c_preproc_warn_flag
10133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10134 else
10135 ac_cpp_err=
10136 fi
10137 else
10138 ac_cpp_err=yes
10139 fi
10140 if test -z "$ac_cpp_err"; then
10141 eval "$as_ac_Header=yes"
10142 else
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 eval "$as_ac_Header=no"
10147 fi
10148 rm -f conftest.err conftest.$ac_ext
10149 fi
10150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10153 cat >>confdefs.h <<_ACEOF
10154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10155 _ACEOF
10156
10157 fi
10158 done
10159
10160
10161
10162 for ac_func in fork vfork
10163 do
10164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10165 echo "$as_me:$LINENO: checking for $ac_func" >&5
10166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10167 if eval "test \"\${$as_ac_var+set}\" = set"; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170 cat >conftest.$ac_ext <<_ACEOF
10171 /* confdefs.h. */
10172 _ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10178 #define $ac_func innocuous_$ac_func
10179
10180 /* System header to define __stub macros and hopefully few prototypes,
10181 which can conflict with char $ac_func (); below.
10182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10183 <limits.h> exists even on freestanding compilers. */
10184
10185 #ifdef __STDC__
10186 # include <limits.h>
10187 #else
10188 # include <assert.h>
10189 #endif
10190
10191 #undef $ac_func
10192
10193 /* Override any gcc2 internal prototype to avoid an error. */
10194 #ifdef __cplusplus
10195 extern "C"
10196 {
10197 #endif
10198 /* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
10200 char $ac_func ();
10201 /* The GNU C library defines this for functions which it implements
10202 to always fail with ENOSYS. Some functions are actually named
10203 something starting with __ and the normal name is an alias. */
10204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10205 choke me
10206 #else
10207 char (*f) () = $ac_func;
10208 #endif
10209 #ifdef __cplusplus
10210 }
10211 #endif
10212
10213 int
10214 main ()
10215 {
10216 return f != $ac_func;
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 rm -f conftest.$ac_objext conftest$ac_exeext
10222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10223 (eval $ac_link) 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } &&
10230 { ac_try='test -z "$ac_c_werror_flag"
10231 || test ! -s conftest.err'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; } &&
10237 { ac_try='test -s conftest$ac_exeext'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 eval "$as_ac_var=yes"
10244 else
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248 eval "$as_ac_var=no"
10249 fi
10250 rm -f conftest.err conftest.$ac_objext \
10251 conftest$ac_exeext conftest.$ac_ext
10252 fi
10253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10255 if test `eval echo '${'$as_ac_var'}'` = yes; then
10256 cat >>confdefs.h <<_ACEOF
10257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10258 _ACEOF
10259
10260 fi
10261 done
10262
10263 if test "x$ac_cv_func_fork" = xyes; then
10264 echo "$as_me:$LINENO: checking for working fork" >&5
10265 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10266 if test "${ac_cv_func_fork_works+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269 if test "$cross_compiling" = yes; then
10270 ac_cv_func_fork_works=cross
10271 else
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* By Ruediger Kuhlmann. */
10274 #include <sys/types.h>
10275 #if HAVE_UNISTD_H
10276 # include <unistd.h>
10277 #endif
10278 /* Some systems only have a dummy stub for fork() */
10279 int main ()
10280 {
10281 if (fork() < 0)
10282 exit (1);
10283 exit (0);
10284 }
10285 _ACEOF
10286 rm -f conftest$ac_exeext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 ac_cv_func_fork_works=yes
10298 else
10299 echo "$as_me: program exited with status $ac_status" >&5
10300 echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10302
10303 ( exit $ac_status )
10304 ac_cv_func_fork_works=no
10305 fi
10306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10307 fi
10308 fi
10309 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10310 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10311
10312 else
10313 ac_cv_func_fork_works=$ac_cv_func_fork
10314 fi
10315 if test "x$ac_cv_func_fork_works" = xcross; then
10316 case $host in
10317 *-*-amigaos* | *-*-msdosdjgpp*)
10318 # Override, as these systems have only a dummy fork() stub
10319 ac_cv_func_fork_works=no
10320 ;;
10321 *)
10322 ac_cv_func_fork_works=yes
10323 ;;
10324 esac
10325 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10326 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10327 fi
10328 ac_cv_func_vfork_works=$ac_cv_func_vfork
10329 if test "x$ac_cv_func_vfork" = xyes; then
10330 echo "$as_me:$LINENO: checking for working vfork" >&5
10331 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10332 if test "${ac_cv_func_vfork_works+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335 if test "$cross_compiling" = yes; then
10336 ac_cv_func_vfork_works=cross
10337 else
10338 cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h. */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344 /* Thanks to Paul Eggert for this test. */
10345 #include <stdio.h>
10346 #include <stdlib.h>
10347 #include <sys/types.h>
10348 #include <sys/stat.h>
10349 #include <sys/wait.h>
10350 #if HAVE_UNISTD_H
10351 # include <unistd.h>
10352 #endif
10353 #if HAVE_VFORK_H
10354 # include <vfork.h>
10355 #endif
10356 /* On some sparc systems, changes by the child to local and incoming
10357 argument registers are propagated back to the parent. The compiler
10358 is told about this with #include <vfork.h>, but some compilers
10359 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10360 static variable whose address is put into a register that is
10361 clobbered by the vfork. */
10362 static void
10363 #ifdef __cplusplus
10364 sparc_address_test (int arg)
10365 # else
10366 sparc_address_test (arg) int arg;
10367 #endif
10368 {
10369 static pid_t child;
10370 if (!child) {
10371 child = vfork ();
10372 if (child < 0) {
10373 perror ("vfork");
10374 _exit(2);
10375 }
10376 if (!child) {
10377 arg = getpid();
10378 write(-1, "", 0);
10379 _exit (arg);
10380 }
10381 }
10382 }
10383
10384 int
10385 main ()
10386 {
10387 pid_t parent = getpid ();
10388 pid_t child;
10389
10390 sparc_address_test (0);
10391
10392 child = vfork ();
10393
10394 if (child == 0) {
10395 /* Here is another test for sparc vfork register problems. This
10396 test uses lots of local variables, at least as many local
10397 variables as main has allocated so far including compiler
10398 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10399 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10400 reuse the register of parent for one of the local variables,
10401 since it will think that parent can't possibly be used any more
10402 in this routine. Assigning to the local variable will thus
10403 munge parent in the parent process. */
10404 pid_t
10405 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10406 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10407 /* Convince the compiler that p..p7 are live; otherwise, it might
10408 use the same hardware register for all 8 local variables. */
10409 if (p != p1 || p != p2 || p != p3 || p != p4
10410 || p != p5 || p != p6 || p != p7)
10411 _exit(1);
10412
10413 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10414 from child file descriptors. If the child closes a descriptor
10415 before it execs or exits, this munges the parent's descriptor
10416 as well. Test for this by closing stdout in the child. */
10417 _exit(close(fileno(stdout)) != 0);
10418 } else {
10419 int status;
10420 struct stat st;
10421
10422 while (wait(&status) != child)
10423 ;
10424 exit(
10425 /* Was there some problem with vforking? */
10426 child < 0
10427
10428 /* Did the child fail? (This shouldn't happen.) */
10429 || status
10430
10431 /* Did the vfork/compiler bug occur? */
10432 || parent != getpid()
10433
10434 /* Did the file descriptor bug occur? */
10435 || fstat(fileno(stdout), &st) != 0
10436 );
10437 }
10438 }
10439 _ACEOF
10440 rm -f conftest$ac_exeext
10441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10442 (eval $ac_link) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_cv_func_vfork_works=yes
10452 else
10453 echo "$as_me: program exited with status $ac_status" >&5
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10456
10457 ( exit $ac_status )
10458 ac_cv_func_vfork_works=no
10459 fi
10460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10461 fi
10462 fi
10463 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10464 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10465
10466 fi;
10467 if test "x$ac_cv_func_fork_works" = xcross; then
10468 ac_cv_func_vfork_works=$ac_cv_func_vfork
10469 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10470 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10471 fi
10472
10473 if test "x$ac_cv_func_vfork_works" = xyes; then
10474
10475 cat >>confdefs.h <<\_ACEOF
10476 #define HAVE_WORKING_VFORK 1
10477 _ACEOF
10478
10479 else
10480
10481 cat >>confdefs.h <<\_ACEOF
10482 #define vfork fork
10483 _ACEOF
10484
10485 fi
10486 if test "x$ac_cv_func_fork_works" = xyes; then
10487
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_WORKING_FORK 1
10490 _ACEOF
10491
10492 fi
10493
10494
10495
10496 if test "X$prefix" = "XNONE"; then
10497 acl_final_prefix="$ac_default_prefix"
10498 else
10499 acl_final_prefix="$prefix"
10500 fi
10501 if test "X$exec_prefix" = "XNONE"; then
10502 acl_final_exec_prefix='${prefix}'
10503 else
10504 acl_final_exec_prefix="$exec_prefix"
10505 fi
10506 acl_save_prefix="$prefix"
10507 prefix="$acl_final_prefix"
10508 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10509 prefix="$acl_save_prefix"
10510
10511
10512 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10513 if test "${with_gnu_ld+set}" = set; then
10514 withval="$with_gnu_ld"
10515 test "$withval" = no || with_gnu_ld=yes
10516 else
10517 with_gnu_ld=no
10518 fi;
10519 # Prepare PATH_SEPARATOR.
10520 # The user is always right.
10521 if test "${PATH_SEPARATOR+set}" != set; then
10522 echo "#! /bin/sh" >conf$$.sh
10523 echo "exit 0" >>conf$$.sh
10524 chmod +x conf$$.sh
10525 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10526 PATH_SEPARATOR=';'
10527 else
10528 PATH_SEPARATOR=:
10529 fi
10530 rm -f conf$$.sh
10531 fi
10532 ac_prog=ld
10533 if test "$GCC" = yes; then
10534 # Check if gcc -print-prog-name=ld gives a path.
10535 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10536 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10537 case $host in
10538 *-*-mingw*)
10539 # gcc leaves a trailing carriage return which upsets mingw
10540 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10541 *)
10542 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10543 esac
10544 case $ac_prog in
10545 # Accept absolute paths.
10546 [\\/]* | [A-Za-z]:[\\/]*)
10547 re_direlt='/[^/][^/]*/\.\./'
10548 # Canonicalize the path of ld
10549 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10550 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10551 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10552 done
10553 test -z "$LD" && LD="$ac_prog"
10554 ;;
10555 "")
10556 # If it fails, then pretend we aren't using GCC.
10557 ac_prog=ld
10558 ;;
10559 *)
10560 # If it is relative, then search for the first ld in PATH.
10561 with_gnu_ld=unknown
10562 ;;
10563 esac
10564 elif test "$with_gnu_ld" = yes; then
10565 echo "$as_me:$LINENO: checking for GNU ld" >&5
10566 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10567 else
10568 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10569 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10570 fi
10571 if test "${acl_cv_path_LD+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574 if test -z "$LD"; then
10575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10576 for ac_dir in $PATH; do
10577 test -z "$ac_dir" && ac_dir=.
10578 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10579 acl_cv_path_LD="$ac_dir/$ac_prog"
10580 # Check to see if the program is GNU ld. I'd rather use --version,
10581 # but apparently some GNU ld's only accept -v.
10582 # Break only if it was the GNU/non-GNU ld that we prefer.
10583 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10584 test "$with_gnu_ld" != no && break
10585 else
10586 test "$with_gnu_ld" != yes && break
10587 fi
10588 fi
10589 done
10590 IFS="$ac_save_ifs"
10591 else
10592 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10593 fi
10594 fi
10595
10596 LD="$acl_cv_path_LD"
10597 if test -n "$LD"; then
10598 echo "$as_me:$LINENO: result: $LD" >&5
10599 echo "${ECHO_T}$LD" >&6
10600 else
10601 echo "$as_me:$LINENO: result: no" >&5
10602 echo "${ECHO_T}no" >&6
10603 fi
10604 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10605 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10606 { (exit 1); exit 1; }; }
10607 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10608 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10609 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10613 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10614 acl_cv_prog_gnu_ld=yes
10615 else
10616 acl_cv_prog_gnu_ld=no
10617 fi
10618 fi
10619 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10620 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10621 with_gnu_ld=$acl_cv_prog_gnu_ld
10622
10623
10624
10625 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10626 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10627 if test "${acl_cv_rpath+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630
10631 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10632 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10633 . ./conftest.sh
10634 rm -f ./conftest.sh
10635 acl_cv_rpath=done
10636
10637 fi
10638 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10639 echo "${ECHO_T}$acl_cv_rpath" >&6
10640 wl="$acl_cv_wl"
10641 libext="$acl_cv_libext"
10642 shlibext="$acl_cv_shlibext"
10643 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10644 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10645 hardcode_direct="$acl_cv_hardcode_direct"
10646 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10647 # Check whether --enable-rpath or --disable-rpath was given.
10648 if test "${enable_rpath+set}" = set; then
10649 enableval="$enable_rpath"
10650 :
10651 else
10652 enable_rpath=yes
10653 fi;
10654
10655
10656
10657
10658
10659
10660
10661 use_additional=yes
10662
10663 acl_save_prefix="$prefix"
10664 prefix="$acl_final_prefix"
10665 acl_save_exec_prefix="$exec_prefix"
10666 exec_prefix="$acl_final_exec_prefix"
10667
10668 eval additional_includedir=\"$includedir\"
10669 eval additional_libdir=\"$libdir\"
10670
10671 exec_prefix="$acl_save_exec_prefix"
10672 prefix="$acl_save_prefix"
10673
10674
10675 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10676 if test "${with_libiconv_prefix+set}" = set; then
10677 withval="$with_libiconv_prefix"
10678
10679 if test "X$withval" = "Xno"; then
10680 use_additional=no
10681 else
10682 if test "X$withval" = "X"; then
10683
10684 acl_save_prefix="$prefix"
10685 prefix="$acl_final_prefix"
10686 acl_save_exec_prefix="$exec_prefix"
10687 exec_prefix="$acl_final_exec_prefix"
10688
10689 eval additional_includedir=\"$includedir\"
10690 eval additional_libdir=\"$libdir\"
10691
10692 exec_prefix="$acl_save_exec_prefix"
10693 prefix="$acl_save_prefix"
10694
10695 else
10696 additional_includedir="$withval/include"
10697 additional_libdir="$withval/lib"
10698 fi
10699 fi
10700
10701 fi;
10702 LIBICONV=
10703 LTLIBICONV=
10704 INCICONV=
10705 rpathdirs=
10706 ltrpathdirs=
10707 names_already_handled=
10708 names_next_round='iconv '
10709 while test -n "$names_next_round"; do
10710 names_this_round="$names_next_round"
10711 names_next_round=
10712 for name in $names_this_round; do
10713 already_handled=
10714 for n in $names_already_handled; do
10715 if test "$n" = "$name"; then
10716 already_handled=yes
10717 break
10718 fi
10719 done
10720 if test -z "$already_handled"; then
10721 names_already_handled="$names_already_handled $name"
10722 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10723 eval value=\"\$HAVE_LIB$uppername\"
10724 if test -n "$value"; then
10725 if test "$value" = yes; then
10726 eval value=\"\$LIB$uppername\"
10727 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10728 eval value=\"\$LTLIB$uppername\"
10729 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10730 else
10731 :
10732 fi
10733 else
10734 found_dir=
10735 found_la=
10736 found_so=
10737 found_a=
10738 if test $use_additional = yes; then
10739 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10740 found_dir="$additional_libdir"
10741 found_so="$additional_libdir/lib$name.$shlibext"
10742 if test -f "$additional_libdir/lib$name.la"; then
10743 found_la="$additional_libdir/lib$name.la"
10744 fi
10745 else
10746 if test -f "$additional_libdir/lib$name.$libext"; then
10747 found_dir="$additional_libdir"
10748 found_a="$additional_libdir/lib$name.$libext"
10749 if test -f "$additional_libdir/lib$name.la"; then
10750 found_la="$additional_libdir/lib$name.la"
10751 fi
10752 fi
10753 fi
10754 fi
10755 if test "X$found_dir" = "X"; then
10756 for x in $LDFLAGS $LTLIBICONV; do
10757
10758 acl_save_prefix="$prefix"
10759 prefix="$acl_final_prefix"
10760 acl_save_exec_prefix="$exec_prefix"
10761 exec_prefix="$acl_final_exec_prefix"
10762 eval x=\"$x\"
10763 exec_prefix="$acl_save_exec_prefix"
10764 prefix="$acl_save_prefix"
10765
10766 case "$x" in
10767 -L*)
10768 dir=`echo "X$x" | sed -e 's/^X-L//'`
10769 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10770 found_dir="$dir"
10771 found_so="$dir/lib$name.$shlibext"
10772 if test -f "$dir/lib$name.la"; then
10773 found_la="$dir/lib$name.la"
10774 fi
10775 else
10776 if test -f "$dir/lib$name.$libext"; then
10777 found_dir="$dir"
10778 found_a="$dir/lib$name.$libext"
10779 if test -f "$dir/lib$name.la"; then
10780 found_la="$dir/lib$name.la"
10781 fi
10782 fi
10783 fi
10784 ;;
10785 esac
10786 if test "X$found_dir" != "X"; then
10787 break
10788 fi
10789 done
10790 fi
10791 if test "X$found_dir" != "X"; then
10792 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10793 if test "X$found_so" != "X"; then
10794 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10795 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10796 else
10797 haveit=
10798 for x in $ltrpathdirs; do
10799 if test "X$x" = "X$found_dir"; then
10800 haveit=yes
10801 break
10802 fi
10803 done
10804 if test -z "$haveit"; then
10805 ltrpathdirs="$ltrpathdirs $found_dir"
10806 fi
10807 if test "$hardcode_direct" = yes; then
10808 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10809 else
10810 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10811 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10812 haveit=
10813 for x in $rpathdirs; do
10814 if test "X$x" = "X$found_dir"; then
10815 haveit=yes
10816 break
10817 fi
10818 done
10819 if test -z "$haveit"; then
10820 rpathdirs="$rpathdirs $found_dir"
10821 fi
10822 else
10823 haveit=
10824 for x in $LDFLAGS $LIBICONV; do
10825
10826 acl_save_prefix="$prefix"
10827 prefix="$acl_final_prefix"
10828 acl_save_exec_prefix="$exec_prefix"
10829 exec_prefix="$acl_final_exec_prefix"
10830 eval x=\"$x\"
10831 exec_prefix="$acl_save_exec_prefix"
10832 prefix="$acl_save_prefix"
10833
10834 if test "X$x" = "X-L$found_dir"; then
10835 haveit=yes
10836 break
10837 fi
10838 done
10839 if test -z "$haveit"; then
10840 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10841 fi
10842 if test "$hardcode_minus_L" != no; then
10843 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10844 else
10845 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10846 fi
10847 fi
10848 fi
10849 fi
10850 else
10851 if test "X$found_a" != "X"; then
10852 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10853 else
10854 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10855 fi
10856 fi
10857 additional_includedir=
10858 case "$found_dir" in
10859 */lib | */lib/)
10860 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10861 additional_includedir="$basedir/include"
10862 ;;
10863 esac
10864 if test "X$additional_includedir" != "X"; then
10865 if test "X$additional_includedir" != "X/usr/include"; then
10866 haveit=
10867 if test "X$additional_includedir" = "X/usr/local/include"; then
10868 if test -n "$GCC"; then
10869 case $host_os in
10870 linux*) haveit=yes;;
10871 esac
10872 fi
10873 fi
10874 if test -z "$haveit"; then
10875 for x in $CPPFLAGS $INCICONV; do
10876
10877 acl_save_prefix="$prefix"
10878 prefix="$acl_final_prefix"
10879 acl_save_exec_prefix="$exec_prefix"
10880 exec_prefix="$acl_final_exec_prefix"
10881 eval x=\"$x\"
10882 exec_prefix="$acl_save_exec_prefix"
10883 prefix="$acl_save_prefix"
10884
10885 if test "X$x" = "X-I$additional_includedir"; then
10886 haveit=yes
10887 break
10888 fi
10889 done
10890 if test -z "$haveit"; then
10891 if test -d "$additional_includedir"; then
10892 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10893 fi
10894 fi
10895 fi
10896 fi
10897 fi
10898 if test -n "$found_la"; then
10899 save_libdir="$libdir"
10900 case "$found_la" in
10901 */* | *\\*) . "$found_la" ;;
10902 *) . "./$found_la" ;;
10903 esac
10904 libdir="$save_libdir"
10905 for dep in $dependency_libs; do
10906 case "$dep" in
10907 -L*)
10908 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10909 if test "X$additional_libdir" != "X/usr/lib"; then
10910 haveit=
10911 if test "X$additional_libdir" = "X/usr/local/lib"; then
10912 if test -n "$GCC"; then
10913 case $host_os in
10914 linux*) haveit=yes;;
10915 esac
10916 fi
10917 fi
10918 if test -z "$haveit"; then
10919 haveit=
10920 for x in $LDFLAGS $LIBICONV; do
10921
10922 acl_save_prefix="$prefix"
10923 prefix="$acl_final_prefix"
10924 acl_save_exec_prefix="$exec_prefix"
10925 exec_prefix="$acl_final_exec_prefix"
10926 eval x=\"$x\"
10927 exec_prefix="$acl_save_exec_prefix"
10928 prefix="$acl_save_prefix"
10929
10930 if test "X$x" = "X-L$additional_libdir"; then
10931 haveit=yes
10932 break
10933 fi
10934 done
10935 if test -z "$haveit"; then
10936 if test -d "$additional_libdir"; then
10937 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10938 fi
10939 fi
10940 haveit=
10941 for x in $LDFLAGS $LTLIBICONV; do
10942
10943 acl_save_prefix="$prefix"
10944 prefix="$acl_final_prefix"
10945 acl_save_exec_prefix="$exec_prefix"
10946 exec_prefix="$acl_final_exec_prefix"
10947 eval x=\"$x\"
10948 exec_prefix="$acl_save_exec_prefix"
10949 prefix="$acl_save_prefix"
10950
10951 if test "X$x" = "X-L$additional_libdir"; then
10952 haveit=yes
10953 break
10954 fi
10955 done
10956 if test -z "$haveit"; then
10957 if test -d "$additional_libdir"; then
10958 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10959 fi
10960 fi
10961 fi
10962 fi
10963 ;;
10964 -R*)
10965 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10966 if test "$enable_rpath" != no; then
10967 haveit=
10968 for x in $rpathdirs; do
10969 if test "X$x" = "X$dir"; then
10970 haveit=yes
10971 break
10972 fi
10973 done
10974 if test -z "$haveit"; then
10975 rpathdirs="$rpathdirs $dir"
10976 fi
10977 haveit=
10978 for x in $ltrpathdirs; do
10979 if test "X$x" = "X$dir"; then
10980 haveit=yes
10981 break
10982 fi
10983 done
10984 if test -z "$haveit"; then
10985 ltrpathdirs="$ltrpathdirs $dir"
10986 fi
10987 fi
10988 ;;
10989 -l*)
10990 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10991 ;;
10992 *.la)
10993 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10994 ;;
10995 *)
10996 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10997 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10998 ;;
10999 esac
11000 done
11001 fi
11002 else
11003 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11004 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11005 fi
11006 fi
11007 fi
11008 done
11009 done
11010 if test "X$rpathdirs" != "X"; then
11011 if test -n "$hardcode_libdir_separator"; then
11012 alldirs=
11013 for found_dir in $rpathdirs; do
11014 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11015 done
11016 acl_save_libdir="$libdir"
11017 libdir="$alldirs"
11018 eval flag=\"$hardcode_libdir_flag_spec\"
11019 libdir="$acl_save_libdir"
11020 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11021 else
11022 for found_dir in $rpathdirs; do
11023 acl_save_libdir="$libdir"
11024 libdir="$found_dir"
11025 eval flag=\"$hardcode_libdir_flag_spec\"
11026 libdir="$acl_save_libdir"
11027 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11028 done
11029 fi
11030 fi
11031 if test "X$ltrpathdirs" != "X"; then
11032 for found_dir in $ltrpathdirs; do
11033 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11034 done
11035 fi
11036
11037
11038
11039
11040
11041
11042
11043 am_save_CPPFLAGS="$CPPFLAGS"
11044
11045 for element in $INCICONV; do
11046 haveit=
11047 for x in $CPPFLAGS; do
11048
11049 acl_save_prefix="$prefix"
11050 prefix="$acl_final_prefix"
11051 acl_save_exec_prefix="$exec_prefix"
11052 exec_prefix="$acl_final_exec_prefix"
11053 eval x=\"$x\"
11054 exec_prefix="$acl_save_exec_prefix"
11055 prefix="$acl_save_prefix"
11056
11057 if test "X$x" = "X$element"; then
11058 haveit=yes
11059 break
11060 fi
11061 done
11062 if test -z "$haveit"; then
11063 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11064 fi
11065 done
11066
11067
11068 echo "$as_me:$LINENO: checking for iconv" >&5
11069 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11070 if test "${am_cv_func_iconv+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073
11074 am_cv_func_iconv="no, consider installing GNU libiconv"
11075 am_cv_lib_iconv=no
11076 cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h. */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 #include <stdlib.h>
11083 #include <iconv.h>
11084 int
11085 main ()
11086 {
11087 iconv_t cd = iconv_open("","");
11088 iconv(cd,NULL,NULL,NULL,NULL);
11089 iconv_close(cd);
11090 ;
11091 return 0;
11092 }
11093 _ACEOF
11094 rm -f conftest.$ac_objext conftest$ac_exeext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11096 (eval $ac_link) 2>conftest.er1
11097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -z "$ac_c_werror_flag"
11104 || test ! -s conftest.err'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; } &&
11110 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11116 am_cv_func_iconv=yes
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121 fi
11122 rm -f conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11124 if test "$am_cv_func_iconv" != yes; then
11125 am_save_LIBS="$LIBS"
11126 LIBS="$LIBS $LIBICONV"
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h. */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 #include <stdlib.h>
11134 #include <iconv.h>
11135 int
11136 main ()
11137 {
11138 iconv_t cd = iconv_open("","");
11139 iconv(cd,NULL,NULL,NULL,NULL);
11140 iconv_close(cd);
11141 ;
11142 return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11147 (eval $ac_link) 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -z "$ac_c_werror_flag"
11155 || test ! -s conftest.err'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try='test -s conftest$ac_exeext'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 am_cv_lib_iconv=yes
11168 am_cv_func_iconv=yes
11169 else
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 fi
11174 rm -f conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LIBS="$am_save_LIBS"
11177 fi
11178
11179 fi
11180 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11181 echo "${ECHO_T}$am_cv_func_iconv" >&6
11182 if test "$am_cv_func_iconv" = yes; then
11183
11184 cat >>confdefs.h <<\_ACEOF
11185 #define HAVE_ICONV 1
11186 _ACEOF
11187
11188 fi
11189 if test "$am_cv_lib_iconv" = yes; then
11190 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11191 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11192 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11193 echo "${ECHO_T}$LIBICONV" >&6
11194 else
11195 CPPFLAGS="$am_save_CPPFLAGS"
11196 LIBICONV=
11197 LTLIBICONV=
11198 fi
11199
11200
11201
11202 if test "$am_cv_func_iconv" = yes; then
11203 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11204 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11205 if test "${am_cv_proto_iconv+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h. */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215
11216 #include <stdlib.h>
11217 #include <iconv.h>
11218 extern
11219 #ifdef __cplusplus
11220 "C"
11221 #endif
11222 #if defined(__STDC__) || defined(__cplusplus)
11223 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11224 #else
11225 size_t iconv();
11226 #endif
11227
11228 int
11229 main ()
11230 {
11231
11232 ;
11233 return 0;
11234 }
11235 _ACEOF
11236 rm -f conftest.$ac_objext
11237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11238 (eval $ac_compile) 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -z "$ac_c_werror_flag"
11246 || test ! -s conftest.err'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; } &&
11252 { ac_try='test -s conftest.$ac_objext'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 am_cv_proto_iconv_arg1=""
11259 else
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11262
11263 am_cv_proto_iconv_arg1="const"
11264 fi
11265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11266 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);"
11267 fi
11268
11269 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11270 echo "$as_me:$LINENO: result: ${ac_t:-
11271 }$am_cv_proto_iconv" >&5
11272 echo "${ECHO_T}${ac_t:-
11273 }$am_cv_proto_iconv" >&6
11274
11275 cat >>confdefs.h <<_ACEOF
11276 #define ICONV_CONST $am_cv_proto_iconv_arg1
11277 _ACEOF
11278
11279 fi
11280
11281 # Until we have in-tree GNU iconv:
11282 LIBICONV_DEP=
11283
11284
11285
11286 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11287 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11288 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291 cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h. */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 #include <locale.h>
11298 int
11299 main ()
11300 {
11301 return LC_MESSAGES
11302 ;
11303 return 0;
11304 }
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 am_cv_val_LC_MESSAGES=yes
11329 else
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11332
11333 am_cv_val_LC_MESSAGES=no
11334 fi
11335 rm -f conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337 fi
11338 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11339 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11340 if test $am_cv_val_LC_MESSAGES = yes; then
11341
11342 cat >>confdefs.h <<\_ACEOF
11343 #define HAVE_LC_MESSAGES 1
11344 _ACEOF
11345
11346 fi
11347
11348
11349
11350 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11351 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11352 if test "${am_cv_langinfo_codeset+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355 cat >conftest.$ac_ext <<_ACEOF
11356 /* confdefs.h. */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 #include <langinfo.h>
11362 int
11363 main ()
11364 {
11365 char* cs = nl_langinfo(CODESET);
11366 ;
11367 return 0;
11368 }
11369 _ACEOF
11370 rm -f conftest.$ac_objext conftest$ac_exeext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372 (eval $ac_link) 2>conftest.er1
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
11379 { ac_try='test -z "$ac_c_werror_flag"
11380 || test ! -s conftest.err'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try='test -s conftest$ac_exeext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 am_cv_langinfo_codeset=yes
11393 else
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 am_cv_langinfo_codeset=no
11398 fi
11399 rm -f conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
11401
11402 fi
11403 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11404 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11405 if test $am_cv_langinfo_codeset = yes; then
11406
11407 cat >>confdefs.h <<\_ACEOF
11408 #define HAVE_LANGINFO_CODESET 1
11409 _ACEOF
11410
11411 fi
11412
11413
11414 # We will need to find libiberty.h and ansidecl.h
11415 saved_CFLAGS="$CFLAGS"
11416 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11457 strsignal strstr strverscmp \
11458 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11459 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11460 do
11461 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11462 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11463 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11464 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h. */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 #undef $ac_tr_decl
11474 #define $ac_tr_decl 1
11475
11476 #include "ansidecl.h"
11477 #include "system.h"
11478
11479 int
11480 main ()
11481 {
11482 #ifndef $ac_func
11483 char *(*pfn) = (char *(*)) $ac_func ;
11484 #endif
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"
11499 || test ! -s conftest.err'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest.$ac_objext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 eval "gcc_cv_have_decl_$ac_func=yes"
11512 else
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11515
11516 eval "gcc_cv_have_decl_$ac_func=no"
11517 fi
11518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11519 fi
11520
11521 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11522 echo "$as_me:$LINENO: result: yes" >&5
11523 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11524 #define $ac_tr_decl 1
11525 _ACEOF
11526
11527 else
11528 echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11530 #define $ac_tr_decl 0
11531 _ACEOF
11532
11533 fi
11534
11535 done
11536
11537
11538
11539
11540
11541 for ac_func in getrlimit setrlimit getrusage
11542 do
11543 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11544 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11545 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11546 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549 cat >conftest.$ac_ext <<_ACEOF
11550 /* confdefs.h. */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 #undef $ac_tr_decl
11556 #define $ac_tr_decl 1
11557
11558 #include "ansidecl.h"
11559 #include "system.h"
11560 #ifdef HAVE_SYS_RESOURCE_H
11561 #include <sys/resource.h>
11562 #endif
11563
11564
11565 int
11566 main ()
11567 {
11568 #ifndef $ac_func
11569 char *(*pfn) = (char *(*)) $ac_func ;
11570 #endif
11571 ;
11572 return 0;
11573 }
11574 _ACEOF
11575 rm -f conftest.$ac_objext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11577 (eval $ac_compile) 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -z "$ac_c_werror_flag"
11585 || test ! -s conftest.err'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; } &&
11591 { ac_try='test -s conftest.$ac_objext'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }; then
11597 eval "gcc_cv_have_decl_$ac_func=yes"
11598 else
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11601
11602 eval "gcc_cv_have_decl_$ac_func=no"
11603 fi
11604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11605 fi
11606
11607 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11608 echo "$as_me:$LINENO: result: yes" >&5
11609 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11610 #define $ac_tr_decl 1
11611 _ACEOF
11612
11613 else
11614 echo "$as_me:$LINENO: result: no" >&5
11615 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11616 #define $ac_tr_decl 0
11617 _ACEOF
11618
11619 fi
11620
11621 done
11622
11623
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h. */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630
11631 #include "ansidecl.h"
11632 #include "system.h"
11633 #ifdef HAVE_SYS_RESOURCE_H
11634 #include <sys/resource.h>
11635 #endif
11636
11637 int
11638 main ()
11639 {
11640 rlim_t l = 0;
11641 ;
11642 return 0;
11643 }
11644 _ACEOF
11645 rm -f conftest.$ac_objext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11647 (eval $ac_compile) 2>conftest.er1
11648 ac_status=$?
11649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
11654 { ac_try='test -z "$ac_c_werror_flag"
11655 || test ! -s conftest.err'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest.$ac_objext'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 :
11668 else
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672
11673 cat >>confdefs.h <<\_ACEOF
11674 #define rlim_t long
11675 _ACEOF
11676
11677 fi
11678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11679
11680 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11681 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11682 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11683 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11684
11685 for ac_func in ldgetname
11686 do
11687 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11688 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11689 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11690 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h. */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11699 #undef $ac_tr_decl
11700 #define $ac_tr_decl 1
11701
11702 #include "ansidecl.h"
11703 #include "system.h"
11704 #ifdef HAVE_LDFCN_H
11705 #undef FREAD
11706 #undef FWRITE
11707 #include <ldfcn.h>
11708 #endif
11709
11710
11711 int
11712 main ()
11713 {
11714 #ifndef $ac_func
11715 char *(*pfn) = (char *(*)) $ac_func ;
11716 #endif
11717 ;
11718 return 0;
11719 }
11720 _ACEOF
11721 rm -f conftest.$ac_objext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723 (eval $ac_compile) 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -z "$ac_c_werror_flag"
11731 || test ! -s conftest.err'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; } &&
11737 { ac_try='test -s conftest.$ac_objext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "gcc_cv_have_decl_$ac_func=yes"
11744 else
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11747
11748 eval "gcc_cv_have_decl_$ac_func=no"
11749 fi
11750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11751 fi
11752
11753 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11754 echo "$as_me:$LINENO: result: yes" >&5
11755 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11756 #define $ac_tr_decl 1
11757 _ACEOF
11758
11759 else
11760 echo "$as_me:$LINENO: result: no" >&5
11761 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11762 #define $ac_tr_decl 0
11763 _ACEOF
11764
11765 fi
11766
11767 done
11768
11769
11770
11771 for ac_func in times
11772 do
11773 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11774 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11775 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11776 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11778 else
11779 cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h. */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 #undef $ac_tr_decl
11786 #define $ac_tr_decl 1
11787
11788 #include "ansidecl.h"
11789 #include "system.h"
11790 #ifdef HAVE_SYS_TIMES_H
11791 #include <sys/times.h>
11792 #endif
11793
11794
11795 int
11796 main ()
11797 {
11798 #ifndef $ac_func
11799 char *(*pfn) = (char *(*)) $ac_func ;
11800 #endif
11801 ;
11802 return 0;
11803 }
11804 _ACEOF
11805 rm -f conftest.$ac_objext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11807 (eval $ac_compile) 2>conftest.er1
11808 ac_status=$?
11809 grep -v '^ *+' conftest.er1 >conftest.err
11810 rm -f conftest.er1
11811 cat conftest.err >&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -z "$ac_c_werror_flag"
11815 || test ! -s conftest.err'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest.$ac_objext'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 eval "gcc_cv_have_decl_$ac_func=yes"
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 eval "gcc_cv_have_decl_$ac_func=no"
11833 fi
11834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11835 fi
11836
11837 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11838 echo "$as_me:$LINENO: result: yes" >&5
11839 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11840 #define $ac_tr_decl 1
11841 _ACEOF
11842
11843 else
11844 echo "$as_me:$LINENO: result: no" >&5
11845 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11846 #define $ac_tr_decl 0
11847 _ACEOF
11848
11849 fi
11850
11851 done
11852
11853
11854
11855 for ac_func in sigaltstack
11856 do
11857 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11858 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11859 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11860 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 #undef $ac_tr_decl
11870 #define $ac_tr_decl 1
11871
11872 #include "ansidecl.h"
11873 #include "system.h"
11874 #include <signal.h>
11875
11876
11877 int
11878 main ()
11879 {
11880 #ifndef $ac_func
11881 char *(*pfn) = (char *(*)) $ac_func ;
11882 #endif
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 rm -f conftest.$ac_objext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889 (eval $ac_compile) 2>conftest.er1
11890 ac_status=$?
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -z "$ac_c_werror_flag"
11897 || test ! -s conftest.err'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest.$ac_objext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 eval "gcc_cv_have_decl_$ac_func=yes"
11910 else
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 eval "gcc_cv_have_decl_$ac_func=no"
11915 fi
11916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917 fi
11918
11919 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11920 echo "$as_me:$LINENO: result: yes" >&5
11921 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11922 #define $ac_tr_decl 1
11923 _ACEOF
11924
11925 else
11926 echo "$as_me:$LINENO: result: no" >&5
11927 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11928 #define $ac_tr_decl 0
11929 _ACEOF
11930
11931 fi
11932
11933 done
11934
11935
11936 # More time-related stuff.
11937 echo "$as_me:$LINENO: checking for struct tms" >&5
11938 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11939 if test "${ac_cv_struct_tms+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949
11950 #include "ansidecl.h"
11951 #include "system.h"
11952 #ifdef HAVE_SYS_TIMES_H
11953 #include <sys/times.h>
11954 #endif
11955
11956 int
11957 main ()
11958 {
11959 struct tms tms;
11960 ;
11961 return 0;
11962 }
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_c_werror_flag"
11974 || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_cv_struct_tms=yes
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991 ac_cv_struct_tms=no
11992 fi
11993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11994 fi
11995 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11996 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11997 if test $ac_cv_struct_tms = yes; then
11998
11999 cat >>confdefs.h <<\_ACEOF
12000 #define HAVE_STRUCT_TMS 1
12001 _ACEOF
12002
12003 fi
12004
12005 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12006 # revisit after autoconf 2.50.
12007 echo "$as_me:$LINENO: checking for clock_t" >&5
12008 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12009 if test "${gcc_cv_type_clock_t+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012
12013 cat >conftest.$ac_ext <<_ACEOF
12014 /* confdefs.h. */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019
12020 #include "ansidecl.h"
12021 #include "system.h"
12022
12023 int
12024 main ()
12025 {
12026 clock_t x;
12027 ;
12028 return 0;
12029 }
12030 _ACEOF
12031 rm -f conftest.$ac_objext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12033 (eval $ac_compile) 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest.$ac_objext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 gcc_cv_type_clock_t=yes
12054 else
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058 gcc_cv_type_clock_t=no
12059 fi
12060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12061 fi
12062 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12063 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12064 if test $gcc_cv_type_clock_t = yes; then
12065
12066 cat >>confdefs.h <<\_ACEOF
12067 #define HAVE_CLOCK_T 1
12068 _ACEOF
12069
12070 fi
12071
12072 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12073 CFLAGS="$saved_CFLAGS"
12074
12075 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12076 if test "${enable_initfini_array+set}" = set; then
12077 enableval="$enable_initfini_array"
12078
12079 else
12080
12081 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12082 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12083 if test "${gcc_cv_initfini_array+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086 if test "$cross_compiling" = yes; then
12087 gcc_cv_initfini_array=no
12088 else
12089 cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h. */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12095
12096 static int x = -1;
12097 int main (void) { return x; }
12098 int foo (void) { x = 0; }
12099 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12100 _ACEOF
12101 rm -f conftest$ac_exeext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103 (eval $ac_link) 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 gcc_cv_initfini_array=yes
12113 else
12114 echo "$as_me: program exited with status $ac_status" >&5
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12117
12118 ( exit $ac_status )
12119 gcc_cv_initfini_array=no
12120 fi
12121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12122 fi
12123 fi
12124 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12125 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12126 enable_initfini_array=$gcc_cv_initfini_array
12127
12128 fi;
12129 if test $enable_initfini_array = yes; then
12130
12131 cat >>confdefs.h <<\_ACEOF
12132 #define HAVE_INITFINI_ARRAY 1
12133 _ACEOF
12134
12135 fi
12136
12137 # mkdir takes a single argument on some systems.
12138 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12139 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12140 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143 cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h. */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149
12150 #include <sys/types.h>
12151 #ifdef HAVE_SYS_STAT_H
12152 # include <sys/stat.h>
12153 #endif
12154 #ifdef HAVE_UNISTD_H
12155 # include <unistd.h>
12156 #endif
12157 #ifdef HAVE_DIRECT_H
12158 # include <direct.h>
12159 #endif
12160 int
12161 main ()
12162 {
12163 mkdir ("foo", 0);
12164 ;
12165 return 0;
12166 }
12167 _ACEOF
12168 rm -f conftest.$ac_objext
12169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12170 (eval $ac_compile) 2>conftest.er1
12171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag"
12178 || test ! -s conftest.err'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; } &&
12184 { ac_try='test -s conftest.$ac_objext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 gcc_cv_mkdir_takes_one_arg=no
12191 else
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12194
12195 gcc_cv_mkdir_takes_one_arg=yes
12196 fi
12197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12198 fi
12199 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12200 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12201 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12202
12203 cat >>confdefs.h <<\_ACEOF
12204 #define MKDIR_TAKES_ONE_ARG 1
12205 _ACEOF
12206
12207 fi
12208
12209
12210 # File extensions
12211 manext='.1'
12212 objext='.o'
12213
12214
12215
12216 # With Setjmp/Longjmp based exception handling.
12217 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12218 if test "${enable_sjlj_exceptions+set}" = set; then
12219 enableval="$enable_sjlj_exceptions"
12220 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12221
12222 cat >>confdefs.h <<_ACEOF
12223 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12224 _ACEOF
12225
12226 fi;
12227
12228 # For platforms with the unwind ABI which includes an unwind library,
12229 # libunwind, we can choose to use the system libunwind.
12230
12231 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12232 if test "${with_system_libunwind+set}" = set; then
12233 withval="$with_system_libunwind"
12234
12235 fi;
12236
12237 # config.gcc also contains tests of with_system_libunwind.
12238 if test x$with_system_libunwind = xyes; then
12239
12240 cat >>confdefs.h <<\_ACEOF
12241 #define HAVE_GETIPINFO 1
12242 _ACEOF
12243
12244 fi
12245
12246 # --------------------------------------------------------
12247 # Build, host, and target specific configuration fragments
12248 # --------------------------------------------------------
12249
12250 # Collect build-machine-specific information.
12251 . ${srcdir}/config.build
12252
12253 # Collect host-machine-specific information.
12254 . ${srcdir}/config.host
12255
12256 target_gtfiles=
12257
12258 # Collect target-machine-specific information.
12259 . ${srcdir}/config.gcc
12260
12261 extra_objs="${host_extra_objs} ${extra_objs}"
12262 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12263
12264 # Default the target-machine variables that were not explicitly set.
12265 if test x"$tm_file" = x
12266 then tm_file=$cpu_type/$cpu_type.h; fi
12267
12268 if test x"$extra_headers" = x
12269 then extra_headers=; fi
12270
12271 if test x$md_file = x
12272 then md_file=$cpu_type/$cpu_type.md; fi
12273
12274 if test x$out_file = x
12275 then out_file=$cpu_type/$cpu_type.c; fi
12276
12277 if test x"$tmake_file" = x
12278 then tmake_file=$cpu_type/t-$cpu_type
12279 fi
12280
12281 if test x"$dwarf2" = xyes
12282 then tm_file="$tm_file tm-dwarf2.h"
12283 fi
12284
12285 # Say what files are being used for the output code and MD file.
12286 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12287 echo "Using \`$srcdir/config/$md_file' as machine description file."
12288
12289 # If any of the xm_file variables contain nonexistent files, warn
12290 # about them and drop them.
12291
12292 bx=
12293 for x in $build_xm_file; do
12294 if test -f $srcdir/config/$x
12295 then bx="$bx $x"
12296 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12297 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12298 fi
12299 done
12300 build_xm_file="$bx"
12301
12302 hx=
12303 for x in $host_xm_file; do
12304 if test -f $srcdir/config/$x
12305 then hx="$hx $x"
12306 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12307 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12308 fi
12309 done
12310 host_xm_file="$hx"
12311
12312 tx=
12313 for x in $xm_file; do
12314 if test -f $srcdir/config/$x
12315 then tx="$tx $x"
12316 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12317 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12318 fi
12319 done
12320 xm_file="$tx"
12321
12322 count=a
12323 for f in $tm_file; do
12324 count=${count}x
12325 done
12326 if test $count = ax; then
12327 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12328 else
12329 echo "Using the following target machine macro files:"
12330 for f in $tm_file; do
12331 echo " $srcdir/config/$f"
12332 done
12333 fi
12334
12335 if test x$need_64bit_hwint = xyes; then
12336
12337 cat >>confdefs.h <<\_ACEOF
12338 #define NEED_64BIT_HOST_WIDE_INT 1
12339 _ACEOF
12340
12341 fi
12342
12343 if test x$use_long_long_for_widest_fast_int = xyes; then
12344
12345 cat >>confdefs.h <<\_ACEOF
12346 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12347 _ACEOF
12348
12349 fi
12350
12351 count=a
12352 for f in $host_xm_file; do
12353 count=${count}x
12354 done
12355 if test $count = a; then
12356 :
12357 elif test $count = ax; then
12358 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12359 else
12360 echo "Using the following host machine macro files:"
12361 for f in $host_xm_file; do
12362 echo " $srcdir/config/$f"
12363 done
12364 fi
12365 echo "Using ${out_host_hook_obj} for host machine hooks."
12366
12367 if test "$host_xm_file" != "$build_xm_file"; then
12368 count=a
12369 for f in $build_xm_file; do
12370 count=${count}x
12371 done
12372 if test $count = a; then
12373 :
12374 elif test $count = ax; then
12375 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12376 else
12377 echo "Using the following build machine macro files:"
12378 for f in $build_xm_file; do
12379 echo " $srcdir/config/$f"
12380 done
12381 fi
12382 fi
12383
12384 case ${host} in
12385 powerpc*-*-darwin*)
12386 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12387 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12388 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391 cat >conftest.$ac_ext <<_ACEOF
12392
12393 #include <sys/cdefs.h>
12394 #include <sys/signal.h>
12395 #include <ucontext.h>
12396 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12397
12398 _ACEOF
12399 rm -f conftest.$ac_objext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_c_werror_flag"
12409 || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest.$ac_objext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 gcc_cv_mcontext_underscores=no
12422 else
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12425
12426 gcc_cv_mcontext_underscores=yes
12427 fi
12428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12429 fi
12430 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12431 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12432 if test $gcc_cv_mcontext_underscores = yes; then
12433
12434 cat >>confdefs.h <<\_ACEOF
12435 #define HAS_MCONTEXT_T_UNDERSCORES
12436 _ACEOF
12437
12438 fi
12439 ;;
12440 esac
12441
12442 # ---------
12443 # Threading
12444 # ---------
12445
12446 # Check if a valid thread package
12447 case ${enable_threads} in
12448 "" | no)
12449 # No threads
12450 target_thread_file='single'
12451 ;;
12452 yes)
12453 # default
12454 target_thread_file='single'
12455 ;;
12456 aix | dce | gnat | irix | posix | posix95 | rtems | \
12457 single | solaris | vxworks | win32 | mipssde)
12458 target_thread_file=${enable_threads}
12459 ;;
12460 *)
12461 echo "${enable_threads} is an unknown thread package" 1>&2
12462 exit 1
12463 ;;
12464 esac
12465
12466 if test x${thread_file} = x; then
12467 # No thread file set by target-specific clauses in config.gcc,
12468 # so use file chosen by default logic above
12469 thread_file=${target_thread_file}
12470 fi
12471
12472 # Make gthr-default.h if we have a thread file.
12473 gthread_flags=
12474 if test $thread_file != single; then
12475 rm -f gthr-default.h
12476 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12477 gthread_flags=-DHAVE_GTHR_DEFAULT
12478 fi
12479
12480
12481 # --------
12482 # UNSORTED
12483 # --------
12484
12485 use_cxa_atexit=no
12486 if test x$enable___cxa_atexit = xyes || \
12487 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12488 if test x$host = x$target; then
12489 case $host in
12490 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12491 # keyed to flag_use_cxa_atexit
12492 *-*-mingw32*)
12493 use_cxa_atexit=yes
12494 ;;
12495 *)
12496 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12497 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12498 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 else
12501 cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h. */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12509 #define __cxa_atexit innocuous___cxa_atexit
12510
12511 /* System header to define __stub macros and hopefully few prototypes,
12512 which can conflict with char __cxa_atexit (); below.
12513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12514 <limits.h> exists even on freestanding compilers. */
12515
12516 #ifdef __STDC__
12517 # include <limits.h>
12518 #else
12519 # include <assert.h>
12520 #endif
12521
12522 #undef __cxa_atexit
12523
12524 /* Override any gcc2 internal prototype to avoid an error. */
12525 #ifdef __cplusplus
12526 extern "C"
12527 {
12528 #endif
12529 /* We use char because int might match the return type of a gcc2
12530 builtin and then its argument prototype would still apply. */
12531 char __cxa_atexit ();
12532 /* The GNU C library defines this for functions which it implements
12533 to always fail with ENOSYS. Some functions are actually named
12534 something starting with __ and the normal name is an alias. */
12535 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12536 choke me
12537 #else
12538 char (*f) () = __cxa_atexit;
12539 #endif
12540 #ifdef __cplusplus
12541 }
12542 #endif
12543
12544 int
12545 main ()
12546 {
12547 return f != __cxa_atexit;
12548 ;
12549 return 0;
12550 }
12551 _ACEOF
12552 rm -f conftest.$ac_objext conftest$ac_exeext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12554 (eval $ac_link) 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -z "$ac_c_werror_flag"
12562 || test ! -s conftest.err'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12565 ac_status=$?
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } &&
12568 { ac_try='test -s conftest$ac_exeext'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12574 ac_cv_func___cxa_atexit=yes
12575 else
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_cv_func___cxa_atexit=no
12580 fi
12581 rm -f conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext conftest.$ac_ext
12583 fi
12584 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12585 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12586 if test $ac_cv_func___cxa_atexit = yes; then
12587 use_cxa_atexit=yes
12588 else
12589 echo "__cxa_atexit can't be enabled on this target"
12590 fi
12591
12592 ;;
12593 esac
12594 else
12595 # We can't check for __cxa_atexit when building a cross, so assume
12596 # it is available
12597 use_cxa_atexit=yes
12598 fi
12599 if test x$use_cxa_atexit = xyes; then
12600
12601 cat >>confdefs.h <<\_ACEOF
12602 #define DEFAULT_USE_CXA_ATEXIT 2
12603 _ACEOF
12604
12605 fi
12606 fi
12607
12608 use_getipinfo=yes
12609 if test x$with_system_libunwind = xyes; then
12610 if test x$host = x$target; then
12611 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12612 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12613 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616 ac_func_search_save_LIBS=$LIBS
12617 ac_cv_search__Unwind_GetIPInfo=no
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h. */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624
12625 /* Override any gcc2 internal prototype to avoid an error. */
12626 #ifdef __cplusplus
12627 extern "C"
12628 #endif
12629 /* We use char because int might match the return type of a gcc2
12630 builtin and then its argument prototype would still apply. */
12631 char _Unwind_GetIPInfo ();
12632 int
12633 main ()
12634 {
12635 _Unwind_GetIPInfo ();
12636 ;
12637 return 0;
12638 }
12639 _ACEOF
12640 rm -f conftest.$ac_objext conftest$ac_exeext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642 (eval $ac_link) 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag"
12650 || test ! -s conftest.err'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest$ac_exeext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_search__Unwind_GetIPInfo="none required"
12663 else
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 fi
12668 rm -f conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12671 for ac_lib in unwind; do
12672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12673 cat >conftest.$ac_ext <<_ACEOF
12674 /* confdefs.h. */
12675 _ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12679
12680 /* Override any gcc2 internal prototype to avoid an error. */
12681 #ifdef __cplusplus
12682 extern "C"
12683 #endif
12684 /* We use char because int might match the return type of a gcc2
12685 builtin and then its argument prototype would still apply. */
12686 char _Unwind_GetIPInfo ();
12687 int
12688 main ()
12689 {
12690 _Unwind_GetIPInfo ();
12691 ;
12692 return 0;
12693 }
12694 _ACEOF
12695 rm -f conftest.$ac_objext conftest$ac_exeext
12696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12697 (eval $ac_link) 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -z "$ac_c_werror_flag"
12705 || test ! -s conftest.err'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest$ac_exeext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12718 break
12719 else
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 fi
12724 rm -f conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726 done
12727 fi
12728 LIBS=$ac_func_search_save_LIBS
12729 fi
12730 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12731 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12732 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12733 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12734
12735 else
12736 use_getipinfo=no
12737 fi
12738
12739 fi
12740 fi
12741
12742 if test x$use_getipinfo = xyes; then
12743
12744 cat >>confdefs.h <<\_ACEOF
12745 #define HAVE_GETIPINFO 1
12746 _ACEOF
12747
12748 else
12749 echo "The system unwind library does not support _Unwind_GetIPInfo."
12750 fi
12751
12752 # Look for a file containing extra machine modes.
12753 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12754 extra_modes_file='$(srcdir)'/config/${extra_modes}
12755
12756
12757 cat >>confdefs.h <<_ACEOF
12758 #define EXTRA_MODES_FILE "config/$extra_modes"
12759 _ACEOF
12760
12761 fi
12762
12763 # Convert extra_options into a form suitable for Makefile use.
12764 extra_opt_files=
12765 for f in $extra_options; do
12766 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12767 done
12768
12769
12770 # auto-host.h is the file containing items generated by autoconf and is
12771 # the first file included by config.h.
12772 # If host=build, it is correct to have bconfig include auto-host.h
12773 # as well. If host!=build, we are in error and need to do more
12774 # work to find out the build config parameters.
12775 if test x$host = x$build
12776 then
12777 build_auto=auto-host.h
12778 else
12779 # We create a subdir, then run autoconf in the subdir.
12780 # To prevent recursion we set host and build for the new
12781 # invocation of configure to the build for this invocation
12782 # of configure.
12783 tempdir=build.$$
12784 rm -rf $tempdir
12785 mkdir $tempdir
12786 cd $tempdir
12787 case ${srcdir} in
12788 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12789 *) realsrcdir=../${srcdir};;
12790 esac
12791 saved_CFLAGS="${CFLAGS}"
12792 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12793 ${realsrcdir}/configure \
12794 --enable-languages=${enable_languages-all} \
12795 --target=$target_alias --host=$build_alias --build=$build_alias
12796 CFLAGS="${saved_CFLAGS}"
12797
12798 # We just finished tests for the build machine, so rename
12799 # the file auto-build.h in the gcc directory.
12800 mv auto-host.h ../auto-build.h
12801 cd ..
12802 rm -rf $tempdir
12803 build_auto=auto-build.h
12804 fi
12805
12806
12807 tm_file="${tm_file} defaults.h"
12808 tm_p_file="${tm_p_file} tm-preds.h"
12809 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12810 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12811 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12812 # put this back in temporarily.
12813 xm_file="auto-host.h ansidecl.h ${xm_file}"
12814
12815 # --------
12816 # UNSORTED
12817 # --------
12818
12819 # Compile in configure arguments.
12820 if test -f configargs.h ; then
12821 # Being re-configured.
12822 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12823 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12824 else
12825 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12826 fi
12827
12828 # Double all backslashes and backslash all quotes to turn
12829 # gcc_config_arguments into a C string.
12830 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12831 $gcc_config_arguments
12832 EOF
12833 gcc_config_arguments_str=`cat conftest.out`
12834 rm -f conftest.out
12835
12836 cat > configargs.h <<EOF
12837 /* Generated automatically. */
12838 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12839 static const char thread_model[] = "$thread_file";
12840
12841 static const struct {
12842 const char *name, *value;
12843 } configure_default_options[] = $configure_default_options;
12844 EOF
12845
12846 # Internationalization
12847 # If we haven't got the data from the intl directory,
12848 # assume NLS is disabled.
12849 USE_NLS=no
12850 LIBINTL=
12851 LIBINTL_DEP=
12852 INCINTL=
12853 XGETTEXT=
12854 GMSGFMT=
12855 POSUB=
12856
12857 if test -f ../intl/config.intl; then
12858 . ../intl/config.intl
12859 fi
12860 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12861 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12862 if test x"$USE_NLS" != xyes; then
12863 echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6
12865 else
12866 echo "$as_me:$LINENO: result: yes" >&5
12867 echo "${ECHO_T}yes" >&6
12868
12869 cat >>confdefs.h <<\_ACEOF
12870 #define ENABLE_NLS 1
12871 _ACEOF
12872
12873
12874 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12875 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12876 # Look for .po and .gmo files in the source directory.
12877 CATALOGS=
12878 XLINGUAS=
12879 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12880 # If there aren't any .gmo files the shell will give us the
12881 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12882 # weeded out.
12883 case "$cat" in *\**)
12884 continue;;
12885 esac
12886 # The quadruple backslash is collapsed to a double backslash
12887 # by the backticks, then collapsed again by the double quotes,
12888 # leaving us with one backslash in the sed expression (right
12889 # before the dot that mustn't act as a wildcard).
12890 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12891 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12892 # The user is allowed to set LINGUAS to a list of languages to
12893 # install catalogs for. If it's empty that means "all of them."
12894 if test "x$LINGUAS" = x; then
12895 CATALOGS="$CATALOGS $cat"
12896 XLINGUAS="$XLINGUAS $lang"
12897 else
12898 case "$LINGUAS" in *$lang*)
12899 CATALOGS="$CATALOGS $cat"
12900 XLINGUAS="$XLINGUAS $lang"
12901 ;;
12902 esac
12903 fi
12904 done
12905 LINGUAS="$XLINGUAS"
12906 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12907 echo "${ECHO_T}$LINGUAS" >&6
12908
12909
12910 DATADIRNAME=share
12911
12912 INSTOBJEXT=.mo
12913
12914 GENCAT=gencat
12915
12916 CATOBJEXT=.gmo
12917
12918 fi
12919
12920 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12921 # -liconv on the link line twice.
12922 case "$LIBINTL" in *$LIBICONV*)
12923 LIBICONV= ;;
12924 esac
12925
12926 # Check whether --enable-secureplt or --disable-secureplt was given.
12927 if test "${enable_secureplt+set}" = set; then
12928 enableval="$enable_secureplt"
12929
12930 fi;
12931
12932 # Windows32 Registry support for specifying GCC installation paths.
12933 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12934 if test "${enable_win32_registry+set}" = set; then
12935 enableval="$enable_win32_registry"
12936
12937 fi;
12938
12939 case $host_os in
12940 win32 | pe | cygwin* | mingw32* | uwin*)
12941 if test "x$enable_win32_registry" != xno; then
12942 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12943 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12944 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947 ac_func_search_save_LIBS=$LIBS
12948 ac_cv_search_RegOpenKeyExA=no
12949 cat >conftest.$ac_ext <<_ACEOF
12950 /* confdefs.h. */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955
12956 /* Override any gcc2 internal prototype to avoid an error. */
12957 #ifdef __cplusplus
12958 extern "C"
12959 #endif
12960 /* We use char because int might match the return type of a gcc2
12961 builtin and then its argument prototype would still apply. */
12962 char RegOpenKeyExA ();
12963 int
12964 main ()
12965 {
12966 RegOpenKeyExA ();
12967 ;
12968 return 0;
12969 }
12970 _ACEOF
12971 rm -f conftest.$ac_objext conftest$ac_exeext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12973 (eval $ac_link) 2>conftest.er1
12974 ac_status=$?
12975 grep -v '^ *+' conftest.er1 >conftest.err
12976 rm -f conftest.er1
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -z "$ac_c_werror_flag"
12981 || test ! -s conftest.err'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; } &&
12987 { ac_try='test -s conftest$ac_exeext'
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_cv_search_RegOpenKeyExA="none required"
12994 else
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12997
12998 fi
12999 rm -f conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13001 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13002 for ac_lib in advapi32; do
13003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13004 cat >conftest.$ac_ext <<_ACEOF
13005 /* confdefs.h. */
13006 _ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13010
13011 /* Override any gcc2 internal prototype to avoid an error. */
13012 #ifdef __cplusplus
13013 extern "C"
13014 #endif
13015 /* We use char because int might match the return type of a gcc2
13016 builtin and then its argument prototype would still apply. */
13017 char RegOpenKeyExA ();
13018 int
13019 main ()
13020 {
13021 RegOpenKeyExA ();
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 rm -f conftest.$ac_objext conftest$ac_exeext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028 (eval $ac_link) 2>conftest.er1
13029 ac_status=$?
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest$ac_exeext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13049 break
13050 else
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054 fi
13055 rm -f conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13057 done
13058 fi
13059 LIBS=$ac_func_search_save_LIBS
13060 fi
13061 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13062 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13063 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13064 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13065
13066 else
13067 enable_win32_registry=no
13068 fi
13069
13070 fi
13071
13072 if test "x$enable_win32_registry" != xno; then
13073
13074 cat >>confdefs.h <<\_ACEOF
13075 #define ENABLE_WIN32_REGISTRY 1
13076 _ACEOF
13077
13078
13079 if test "x$enable_win32_registry" != xyes \
13080 && test "x$enable_win32_registry" != x; then
13081
13082 cat >>confdefs.h <<_ACEOF
13083 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13084 _ACEOF
13085
13086 fi
13087 fi
13088 ;;
13089 esac
13090
13091 # Get an absolute path to the GCC top-level source directory
13092 holddir=`${PWDCMD-pwd}`
13093 cd $srcdir
13094 topdir=`${PWDCMD-pwd}`
13095 cd $holddir
13096
13097 # Conditionalize the makefile for this host machine.
13098 xmake_file=
13099 for f in ${host_xmake_file}
13100 do
13101 if test -f ${srcdir}/config/$f
13102 then
13103 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13104 fi
13105 done
13106
13107 # Conditionalize the makefile for this target machine.
13108 tmake_file_=
13109 for f in ${tmake_file}
13110 do
13111 if test -f ${srcdir}/config/$f
13112 then
13113 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13114 fi
13115 done
13116 tmake_file="${tmake_file_}"
13117
13118 # This is a terrible hack which will go away some day.
13119 host_cc_for_libada=${CC}
13120
13121
13122 out_object_file=`basename $out_file .c`.o
13123
13124 tm_file_list="options.h"
13125 tm_include_list="options.h"
13126 for f in $tm_file; do
13127 case $f in
13128 ./* )
13129 f=`echo $f | sed 's/^..//'`
13130 tm_file_list="${tm_file_list} $f"
13131 tm_include_list="${tm_include_list} $f"
13132 ;;
13133 defaults.h )
13134 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13135 tm_include_list="${tm_include_list} $f"
13136 ;;
13137 * )
13138 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13139 tm_include_list="${tm_include_list} config/$f"
13140 ;;
13141 esac
13142 done
13143
13144 tm_p_file_list=
13145 tm_p_include_list=
13146 for f in $tm_p_file; do
13147 case $f in
13148 tm-preds.h )
13149 tm_p_file_list="${tm_p_file_list} $f"
13150 tm_p_include_list="${tm_p_include_list} $f"
13151 ;;
13152 * )
13153 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13154 tm_p_include_list="${tm_p_include_list} config/$f"
13155 esac
13156 done
13157
13158 xm_file_list=
13159 xm_include_list=
13160 for f in $xm_file; do
13161 case $f in
13162 ansidecl.h )
13163 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13164 xm_include_list="${xm_include_list} $f"
13165 ;;
13166 auto-host.h )
13167 xm_file_list="${xm_file_list} $f"
13168 xm_include_list="${xm_include_list} $f"
13169 ;;
13170 * )
13171 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13172 xm_include_list="${xm_include_list} config/$f"
13173 ;;
13174 esac
13175 done
13176
13177 host_xm_file_list=
13178 host_xm_include_list=
13179 for f in $host_xm_file; do
13180 case $f in
13181 ansidecl.h )
13182 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13183 host_xm_include_list="${host_xm_include_list} $f"
13184 ;;
13185 auto-host.h )
13186 host_xm_file_list="${host_xm_file_list} $f"
13187 host_xm_include_list="${host_xm_include_list} $f"
13188 ;;
13189 * )
13190 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13191 host_xm_include_list="${host_xm_include_list} config/$f"
13192 ;;
13193 esac
13194 done
13195
13196 build_xm_file_list=
13197 for f in $build_xm_file; do
13198 case $f in
13199 ansidecl.h )
13200 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13201 build_xm_include_list="${build_xm_include_list} $f"
13202 ;;
13203 auto-build.h | auto-host.h )
13204 build_xm_file_list="${build_xm_file_list} $f"
13205 build_xm_include_list="${build_xm_include_list} $f"
13206 ;;
13207 * )
13208 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13209 build_xm_include_list="${build_xm_include_list} config/$f"
13210 ;;
13211 esac
13212 done
13213
13214 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13215 # cross-compiler which does not use the native headers and libraries.
13216 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13217 CROSS=
13218 ALL=all.internal
13219 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13220
13221 if test "x$with_build_sysroot" != x; then
13222 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13223 else
13224 # This value is used, even on a native system, because
13225 # CROSS_SYSTEM_HEADER_DIR is just
13226 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13227 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13228 fi
13229
13230 if test x$host != x$target
13231 then
13232 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13233 ALL=all.cross
13234 SYSTEM_HEADER_DIR=$build_system_header_dir
13235 case "$host","$target" in
13236 # Darwin crosses can use the host system's libraries and headers,
13237 # because of the fat library support. Of course, it must be the
13238 # same version of Darwin on both sides. Allow the user to
13239 # just say --target=foo-darwin without a version number to mean
13240 # "the version on this system".
13241 *-*-darwin*,*-*-darwin*)
13242 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13243 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13244 if test $hostos = $targetos -o $targetos = darwin ; then
13245 CROSS=
13246 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13247 with_headers=yes
13248 fi
13249 ;;
13250
13251 i?86-*-*,x86_64-*-* \
13252 | powerpc*-*-*,powerpc64*-*-*)
13253 CROSS="$CROSS -DNATIVE_CROSS" ;;
13254 esac
13255 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13256 SYSTEM_HEADER_DIR=$build_system_header_dir
13257 fi
13258
13259 # If this is a cross-compiler that does not
13260 # have its own set of headers then define
13261 # inhibit_libc
13262
13263 # If this is using newlib, without having the headers available now,
13264 # then define inhibit_libc in LIBGCC2_CFLAGS.
13265 # This prevents libgcc2 from containing any code which requires libc
13266 # support.
13267 inhibit_libc=false
13268 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13269 test x$with_newlib = xyes ; } &&
13270 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13271 inhibit_libc=true
13272 fi
13273
13274
13275 # When building gcc with a cross-compiler, we need to adjust things so
13276 # that the generator programs are still built with the native compiler.
13277 # Also, we cannot run fixincludes or fix-header.
13278
13279 # These are the normal (build=host) settings:
13280 CC_FOR_BUILD='$(CC)'
13281 BUILD_CFLAGS='$(ALL_CFLAGS)'
13282 STMP_FIXINC=stmp-fixinc
13283
13284 # Possibly disable fixproto, on a per-target basis.
13285 case ${use_fixproto} in
13286 no)
13287 STMP_FIXPROTO=
13288 ;;
13289 yes)
13290 STMP_FIXPROTO=stmp-fixproto
13291 ;;
13292 esac
13293
13294
13295 # And these apply if build != host, or we are generating coverage data
13296 if test x$build != x$host || test "x$coverage_flags" != x
13297 then
13298 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13299
13300 if test "x$TARGET_SYSTEM_ROOT" = x; then
13301 if test "x$STMP_FIXPROTO" != x; then
13302 STMP_FIXPROTO=stmp-install-fixproto
13303 fi
13304 fi
13305 fi
13306
13307 # Expand extra_headers to include complete path.
13308 # This substitutes for lots of t-* files.
13309 extra_headers_list=
13310 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13311 for file in ${extra_headers} ; do
13312 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13313 done
13314
13315 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13316 if test x"$use_gcc_tgmath" = xyes
13317 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13318 fi
13319
13320 # Define collect2 in Makefile.
13321 case $host_can_use_collect2 in
13322 no) collect2= ;;
13323 *) collect2='collect2$(exeext)' ;;
13324 esac
13325
13326
13327 # Add a definition of USE_COLLECT2 if system wants one.
13328 case $use_collect2 in
13329 no) use_collect2= ;;
13330 "") ;;
13331 *)
13332 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13333 xm_defines="${xm_defines} USE_COLLECT2"
13334 case $host_can_use_collect2 in
13335 no)
13336 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13337 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13338 { (exit 1); exit 1; }; }
13339 ;;
13340 esac
13341 ;;
13342 esac
13343
13344 # ---------------------------
13345 # Assembler & linker features
13346 # ---------------------------
13347
13348 # Identify the assembler which will work hand-in-glove with the newly
13349 # built GCC, so that we can examine its features. This is the assembler
13350 # which will be driven by the driver program.
13351 #
13352 # If build != host, and we aren't building gas in-tree, we identify a
13353 # build->target assembler and hope that it will have the same features
13354 # as the host->target assembler we'll be using.
13355 gcc_cv_gas_major_version=
13356 gcc_cv_gas_minor_version=
13357 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13358
13359 if test "${gcc_cv_as+set}" = set; then
13360 :
13361 else
13362
13363 if test -x "$DEFAULT_ASSEMBLER"; then
13364 gcc_cv_as="$DEFAULT_ASSEMBLER"
13365 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13366 && test -f ../gas/Makefile \
13367 && test x$build = x$host; then
13368 gcc_cv_as=../gas/as-new$build_exeext
13369 elif test -x as$build_exeext; then
13370 # Build using assembler in the current directory.
13371 gcc_cv_as=./as$build_exeext
13372 elif test -x $AS_FOR_TARGET; then
13373 gcc_cv_as="$AS_FOR_TARGET"
13374 else
13375 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13376 set dummy $AS_FOR_TARGET; ac_word=$2
13377 echo "$as_me:$LINENO: checking for $ac_word" >&5
13378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13379 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382 case $gcc_cv_as in
13383 [\\/]* | ?:[\\/]*)
13384 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13385 ;;
13386 *)
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13389 do
13390 IFS=$as_save_IFS
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13396 break 2
13397 fi
13398 done
13399 done
13400
13401 ;;
13402 esac
13403 fi
13404 gcc_cv_as=$ac_cv_path_gcc_cv_as
13405
13406 if test -n "$gcc_cv_as"; then
13407 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13408 echo "${ECHO_T}$gcc_cv_as" >&6
13409 else
13410 echo "$as_me:$LINENO: result: no" >&5
13411 echo "${ECHO_T}no" >&6
13412 fi
13413
13414 fi
13415 fi
13416
13417
13418 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13419
13420 case "$ORIGINAL_AS_FOR_TARGET" in
13421 ./as | ./as$build_exeext) ;;
13422 *) ac_config_files="$ac_config_files as:exec-tool.in"
13423 ;;
13424 esac
13425
13426 echo "$as_me:$LINENO: checking what assembler to use" >&5
13427 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13428 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13429 # Single tree build which includes gas. We want to prefer it
13430 # over whatever linker top-level may have detected, since
13431 # we'll use what we're building after installation anyway.
13432 echo "$as_me:$LINENO: result: newly built gas" >&5
13433 echo "${ECHO_T}newly built gas" >&6
13434 in_tree_gas=yes
13435 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13436 for f in $gcc_cv_as_bfd_srcdir/configure \
13437 $gcc_cv_as_gas_srcdir/configure \
13438 $gcc_cv_as_gas_srcdir/configure.in \
13439 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13440 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13441 if test x$gcc_cv_gas_version != x; then
13442 break
13443 fi
13444 done
13445 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13446 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13447 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13448 case $gcc_cv_gas_patch_version in
13449 "") gcc_cv_gas_patch_version="0" ;;
13450 esac
13451 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13452 + $gcc_cv_gas_minor_version \) \* 1000 \
13453 + $gcc_cv_gas_patch_version`
13454
13455 in_tree_gas_is_elf=no
13456 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13457 || (grep 'obj_format = multi' ../gas/Makefile \
13458 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13459 then
13460 in_tree_gas_is_elf=yes
13461 fi
13462 else
13463 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13464 echo "${ECHO_T}$gcc_cv_as" >&6
13465 in_tree_gas=no
13466 fi
13467
13468 # Identify the linker which will work hand-in-glove with the newly
13469 # built GCC, so that we can examine its features. This is the linker
13470 # which will be driven by the driver program.
13471 #
13472 # If build != host, and we aren't building gas in-tree, we identify a
13473 # build->target linker and hope that it will have the same features
13474 # as the host->target linker we'll be using.
13475 gcc_cv_gld_major_version=
13476 gcc_cv_gld_minor_version=
13477 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13478 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13479
13480 if test "${gcc_cv_ld+set}" = set; then
13481 :
13482 else
13483
13484 if test -x "$DEFAULT_LINKER"; then
13485 gcc_cv_ld="$DEFAULT_LINKER"
13486 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13487 && test -f ../ld/Makefile \
13488 && test x$build = x$host; then
13489 gcc_cv_ld=../ld/ld-new$build_exeext
13490 elif test -x collect-ld$build_exeext; then
13491 # Build using linker in the current directory.
13492 gcc_cv_ld=./collect-ld$build_exeext
13493 elif test -x $LD_FOR_TARGET; then
13494 gcc_cv_ld="$LD_FOR_TARGET"
13495 else
13496 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13497 set dummy $LD_FOR_TARGET; ac_word=$2
13498 echo "$as_me:$LINENO: checking for $ac_word" >&5
13499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13500 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503 case $gcc_cv_ld in
13504 [\\/]* | ?:[\\/]*)
13505 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13506 ;;
13507 *)
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $PATH
13510 do
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
13513 for ac_exec_ext in '' $ac_executable_extensions; do
13514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13515 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 break 2
13518 fi
13519 done
13520 done
13521
13522 ;;
13523 esac
13524 fi
13525 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13526
13527 if test -n "$gcc_cv_ld"; then
13528 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13529 echo "${ECHO_T}$gcc_cv_ld" >&6
13530 else
13531 echo "$as_me:$LINENO: result: no" >&5
13532 echo "${ECHO_T}no" >&6
13533 fi
13534
13535 fi
13536 fi
13537
13538
13539 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13540
13541 case "$ORIGINAL_LD_FOR_TARGET" in
13542 ./collect-ld | ./collect-ld$build_exeext) ;;
13543 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13544 ;;
13545 esac
13546
13547 echo "$as_me:$LINENO: checking what linker to use" >&5
13548 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13549 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13550 # Single tree build which includes ld. We want to prefer it
13551 # over whatever linker top-level may have detected, since
13552 # we'll use what we're building after installation anyway.
13553 echo "$as_me:$LINENO: result: newly built ld" >&5
13554 echo "${ECHO_T}newly built ld" >&6
13555 in_tree_ld=yes
13556 in_tree_ld_is_elf=no
13557 if (grep 'EMUL = .*elf' ../ld/Makefile \
13558 || grep 'EMUL = .*linux' ../ld/Makefile \
13559 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13560 in_tree_ld_is_elf=yes
13561 fi
13562 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
13563 do
13564 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13565 if test x$gcc_cv_gld_version != x; then
13566 break
13567 fi
13568 done
13569 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13570 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13571 else
13572 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13573 echo "${ECHO_T}$gcc_cv_ld" >&6
13574 in_tree_ld=no
13575 fi
13576
13577 # Figure out what nm we will be using.
13578 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13579 if test "${gcc_cv_nm+set}" = set; then
13580 :
13581 else
13582
13583 if test -f $gcc_cv_binutils_srcdir/configure.in \
13584 && test -f ../binutils/Makefile \
13585 && test x$build = x$host; then
13586 gcc_cv_nm=../binutils/nm-new$build_exeext
13587 elif test -x nm$build_exeext; then
13588 gcc_cv_nm=./nm$build_exeext
13589 elif test -x $NM_FOR_TARGET; then
13590 gcc_cv_nm="$NM_FOR_TARGET"
13591 else
13592 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13593 set dummy $NM_FOR_TARGET; ac_word=$2
13594 echo "$as_me:$LINENO: checking for $ac_word" >&5
13595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13596 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599 case $gcc_cv_nm in
13600 [\\/]* | ?:[\\/]*)
13601 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13602 ;;
13603 *)
13604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13605 for as_dir in $PATH
13606 do
13607 IFS=$as_save_IFS
13608 test -z "$as_dir" && as_dir=.
13609 for ac_exec_ext in '' $ac_executable_extensions; do
13610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13611 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13613 break 2
13614 fi
13615 done
13616 done
13617
13618 ;;
13619 esac
13620 fi
13621 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13622
13623 if test -n "$gcc_cv_nm"; then
13624 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13625 echo "${ECHO_T}$gcc_cv_nm" >&6
13626 else
13627 echo "$as_me:$LINENO: result: no" >&5
13628 echo "${ECHO_T}no" >&6
13629 fi
13630
13631 fi
13632 fi
13633
13634
13635 echo "$as_me:$LINENO: checking what nm to use" >&5
13636 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13637 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13638 # Single tree build which includes binutils.
13639 echo "$as_me:$LINENO: result: newly built nm" >&5
13640 echo "${ECHO_T}newly built nm" >&6
13641 in_tree_nm=yes
13642 else
13643 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13644 echo "${ECHO_T}$gcc_cv_nm" >&6
13645 in_tree_nm=no
13646 fi
13647
13648 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13649
13650 case "$ORIGINAL_NM_FOR_TARGET" in
13651 ./nm | ./nm$build_exeext) ;;
13652 *) ac_config_files="$ac_config_files nm:exec-tool.in"
13653 ;;
13654 esac
13655
13656
13657 # Figure out what objdump we will be using.
13658 if test "${gcc_cv_objdump+set}" = set; then
13659 :
13660 else
13661
13662 if test -f $gcc_cv_binutils_srcdir/configure.in \
13663 && test -f ../binutils/Makefile \
13664 && test x$build = x$host; then
13665 # Single tree build which includes binutils.
13666 gcc_cv_objdump=../binutils/objdump$build_exeext
13667 elif test -x objdump$build_exeext; then
13668 gcc_cv_objdump=./objdump$build_exeext
13669 elif test -x $OBJDUMP_FOR_TARGET; then
13670 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13671 else
13672 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13673 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13674 echo "$as_me:$LINENO: checking for $ac_word" >&5
13675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13676 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679 case $gcc_cv_objdump in
13680 [\\/]* | ?:[\\/]*)
13681 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13682 ;;
13683 *)
13684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685 for as_dir in $PATH
13686 do
13687 IFS=$as_save_IFS
13688 test -z "$as_dir" && as_dir=.
13689 for ac_exec_ext in '' $ac_executable_extensions; do
13690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13691 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13693 break 2
13694 fi
13695 done
13696 done
13697
13698 ;;
13699 esac
13700 fi
13701 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13702
13703 if test -n "$gcc_cv_objdump"; then
13704 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13705 echo "${ECHO_T}$gcc_cv_objdump" >&6
13706 else
13707 echo "$as_me:$LINENO: result: no" >&5
13708 echo "${ECHO_T}no" >&6
13709 fi
13710
13711 fi
13712 fi
13713
13714
13715 echo "$as_me:$LINENO: checking what objdump to use" >&5
13716 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13717 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13718 # Single tree build which includes binutils.
13719 echo "$as_me:$LINENO: result: newly built objdump" >&5
13720 echo "${ECHO_T}newly built objdump" >&6
13721 elif test x$gcc_cv_objdump = x; then
13722 echo "$as_me:$LINENO: result: not found" >&5
13723 echo "${ECHO_T}not found" >&6
13724 else
13725 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13726 echo "${ECHO_T}$gcc_cv_objdump" >&6
13727 fi
13728
13729 # Figure out what assembler alignment features are present.
13730 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13731 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13732 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735 gcc_cv_as_balign_and_p2align=no
13736 if test $in_tree_gas = yes; then
13737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13738 then gcc_cv_as_balign_and_p2align=yes
13739 fi
13740 elif test x$gcc_cv_as != x; then
13741 echo '.balign 4
13742 .p2align 2' > conftest.s
13743 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }
13749 then
13750 gcc_cv_as_balign_and_p2align=yes
13751 else
13752 echo "configure: failed program was" >&5
13753 cat conftest.s >&5
13754 fi
13755 rm -f conftest.o conftest.s
13756 fi
13757 fi
13758 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13759 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13760 if test $gcc_cv_as_balign_and_p2align = yes; then
13761
13762 cat >>confdefs.h <<\_ACEOF
13763 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13764 _ACEOF
13765
13766 fi
13767
13768 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13769 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13770 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 gcc_cv_as_max_skip_p2align=no
13774 if test $in_tree_gas = yes; then
13775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13776 then gcc_cv_as_max_skip_p2align=yes
13777 fi
13778 elif test x$gcc_cv_as != x; then
13779 echo '.p2align 4,,7' > conftest.s
13780 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }
13786 then
13787 gcc_cv_as_max_skip_p2align=yes
13788 else
13789 echo "configure: failed program was" >&5
13790 cat conftest.s >&5
13791 fi
13792 rm -f conftest.o conftest.s
13793 fi
13794 fi
13795 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13796 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13797 if test $gcc_cv_as_max_skip_p2align = yes; then
13798
13799 cat >>confdefs.h <<\_ACEOF
13800 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13801 _ACEOF
13802
13803 fi
13804
13805 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13806 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13807 if test "${gcc_cv_as_literal16+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810 gcc_cv_as_literal16=no
13811 if test $in_tree_gas = yes; then
13812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13813 then gcc_cv_as_literal16=yes
13814 fi
13815 elif test x$gcc_cv_as != x; then
13816 echo '.literal16' > conftest.s
13817 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }
13823 then
13824 gcc_cv_as_literal16=yes
13825 else
13826 echo "configure: failed program was" >&5
13827 cat conftest.s >&5
13828 fi
13829 rm -f conftest.o conftest.s
13830 fi
13831 fi
13832 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13833 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13834 if test $gcc_cv_as_literal16 = yes; then
13835
13836 cat >>confdefs.h <<\_ACEOF
13837 #define HAVE_GAS_LITERAL16 1
13838 _ACEOF
13839
13840 fi
13841
13842 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13843 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13844 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847 gcc_cv_as_subsection_m1=no
13848 if test $in_tree_gas = yes; then
13849 if test $in_tree_gas_is_elf = yes \
13850 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13851 then gcc_cv_as_subsection_m1=yes
13852 fi
13853 elif test x$gcc_cv_as != x; then
13854 echo 'conftest_label1: .word 0
13855 .subsection -1
13856 conftest_label2: .word 0
13857 .previous' > conftest.s
13858 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }
13864 then
13865 if test x$gcc_cv_nm != x; then
13866 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13867 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13868 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13869 then :
13870 else gcc_cv_as_subsection_m1=yes
13871 fi
13872 rm -f conftest.nm1 conftest.nm2
13873 fi
13874 else
13875 echo "configure: failed program was" >&5
13876 cat conftest.s >&5
13877 fi
13878 rm -f conftest.o conftest.s
13879 fi
13880 fi
13881 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13882 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13883 if test $gcc_cv_as_subsection_m1 = yes; then
13884
13885 cat >>confdefs.h <<\_ACEOF
13886 #define HAVE_GAS_SUBSECTION_ORDERING 1
13887 _ACEOF
13888
13889 fi
13890
13891 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13892 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13893 if test "${gcc_cv_as_weak+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896 gcc_cv_as_weak=no
13897 if test $in_tree_gas = yes; then
13898 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13899 then gcc_cv_as_weak=yes
13900 fi
13901 elif test x$gcc_cv_as != x; then
13902 echo ' .weak foobar' > conftest.s
13903 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }
13909 then
13910 gcc_cv_as_weak=yes
13911 else
13912 echo "configure: failed program was" >&5
13913 cat conftest.s >&5
13914 fi
13915 rm -f conftest.o conftest.s
13916 fi
13917 fi
13918 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13919 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13920 if test $gcc_cv_as_weak = yes; then
13921
13922 cat >>confdefs.h <<\_ACEOF
13923 #define HAVE_GAS_WEAK 1
13924 _ACEOF
13925
13926 fi
13927
13928 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13929 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13930 if test "${gcc_cv_as_weakref+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933 gcc_cv_as_weakref=no
13934 if test $in_tree_gas = yes; then
13935 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13936 then gcc_cv_as_weakref=yes
13937 fi
13938 elif test x$gcc_cv_as != x; then
13939 echo ' .weakref foobar, barfnot' > conftest.s
13940 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }
13946 then
13947 gcc_cv_as_weakref=yes
13948 else
13949 echo "configure: failed program was" >&5
13950 cat conftest.s >&5
13951 fi
13952 rm -f conftest.o conftest.s
13953 fi
13954 fi
13955 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13956 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13957 if test $gcc_cv_as_weakref = yes; then
13958
13959 cat >>confdefs.h <<\_ACEOF
13960 #define HAVE_GAS_WEAKREF 1
13961 _ACEOF
13962
13963 fi
13964
13965 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13966 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13967 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 else
13970 gcc_cv_as_nsubspa_comdat=no
13971 if test $in_tree_gas = yes; then
13972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13973 then gcc_cv_as_nsubspa_comdat=yes
13974 fi
13975 elif test x$gcc_cv_as != x; then
13976 echo ' .SPACE $TEXT$
13977 .NSUBSPA $CODE$,COMDAT' > conftest.s
13978 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }
13984 then
13985 gcc_cv_as_nsubspa_comdat=yes
13986 else
13987 echo "configure: failed program was" >&5
13988 cat conftest.s >&5
13989 fi
13990 rm -f conftest.o conftest.s
13991 fi
13992 fi
13993 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13994 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13995 if test $gcc_cv_as_nsubspa_comdat = yes; then
13996
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_GAS_NSUBSPA_COMDAT 1
13999 _ACEOF
14000
14001 fi
14002
14003 # .hidden needs to be supported in both the assembler and the linker,
14004 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14005 # This is irritatingly difficult to feature test for; we have to check the
14006 # date string after the version number. If we've got an in-tree
14007 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14008 # to be safe.
14009 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14010 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14011 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14012 if test "${gcc_cv_as_hidden+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015 gcc_cv_as_hidden=no
14016 if test $in_tree_gas = yes; then
14017 if test $in_tree_gas_is_elf = yes \
14018 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14019 then gcc_cv_as_hidden=yes
14020 fi
14021 elif test x$gcc_cv_as != x; then
14022 echo ' .hidden foobar
14023 foobar:' > conftest.s
14024 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }
14030 then
14031 gcc_cv_as_hidden=yes
14032 else
14033 echo "configure: failed program was" >&5
14034 cat conftest.s >&5
14035 fi
14036 rm -f conftest.o conftest.s
14037 fi
14038 fi
14039 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14040 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14041
14042
14043 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14044 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14045 if test "${gcc_cv_ld_hidden+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048 if test $in_tree_ld = yes ; then
14049 gcc_cv_ld_hidden=no
14050 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 \
14051 && test $in_tree_ld_is_elf = yes; then
14052 gcc_cv_ld_hidden=yes
14053 fi
14054 else
14055 gcc_cv_ld_hidden=yes
14056 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14057 if echo "$ld_ver" | grep GNU > /dev/null; then
14058 ld_vers=`echo $ld_ver | sed -n \
14059 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14060 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'`
14061 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14062 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14063 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14064 if test 0"$ld_date" -lt 20020404; then
14065 if test -n "$ld_date"; then
14066 # If there was date string, but was earlier than 2002-04-04, fail
14067 gcc_cv_ld_hidden=no
14068 elif test -z "$ld_vers"; then
14069 # If there was no date string nor ld version number, something is wrong
14070 gcc_cv_ld_hidden=no
14071 else
14072 test -z "$ld_vers_patch" && ld_vers_patch=0
14073 if test "$ld_vers_major" -lt 2; then
14074 gcc_cv_ld_hidden=no
14075 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14076 gcc_cv_ld_hidden="no"
14077 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14078 gcc_cv_ld_hidden=no
14079 fi
14080 fi
14081 fi
14082 else
14083 case "${target}" in
14084 hppa64*-*-hpux* | ia64*-*-hpux*)
14085 gcc_cv_ld_hidden=yes
14086 ;;
14087 *)
14088 gcc_cv_ld_hidden=no
14089 ;;
14090 esac
14091 fi
14092 fi
14093 fi
14094 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14095 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14096 libgcc_visibility=no
14097
14098
14099 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14100 libgcc_visibility=yes
14101
14102 cat >>confdefs.h <<\_ACEOF
14103 #define HAVE_GAS_HIDDEN 1
14104 _ACEOF
14105
14106 fi
14107
14108 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14109 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14110 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14111 if test "${gcc_cv_as_leb128+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114 gcc_cv_as_leb128=no
14115 if test $in_tree_gas = yes; then
14116 if test $in_tree_gas_is_elf = yes \
14117 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14118 then gcc_cv_as_leb128=yes
14119 fi
14120 elif test x$gcc_cv_as != x; then
14121 echo ' .data
14122 .uleb128 L2 - L1
14123 L1:
14124 .uleb128 1280
14125 .sleb128 -1010
14126 L2:' > conftest.s
14127 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }
14133 then
14134 # GAS versions before 2.11 do not support uleb128,
14135 # despite appearing to.
14136 # ??? There exists an elf-specific test that will crash
14137 # the assembler. Perhaps it's better to figure out whether
14138 # arbitrary sections are supported and try the test.
14139 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14140 if echo "$as_ver" | grep GNU > /dev/null; then
14141 as_vers=`echo $as_ver | sed -n \
14142 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14143 as_major=`expr "$as_vers" : '\([0-9]*\)'`
14144 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14145 if test $as_major -eq 2 && test $as_minor -lt 11
14146 then :
14147 else gcc_cv_as_leb128=yes
14148 fi
14149 fi
14150 else
14151 echo "configure: failed program was" >&5
14152 cat conftest.s >&5
14153 fi
14154 rm -f conftest.o conftest.s
14155 fi
14156 fi
14157 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14158 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14159 if test $gcc_cv_as_leb128 = yes; then
14160
14161 cat >>confdefs.h <<\_ACEOF
14162 #define HAVE_AS_LEB128 1
14163 _ACEOF
14164
14165 fi
14166
14167 # GAS versions up to and including 2.11.0 may mis-optimize
14168 # .eh_frame data.
14169 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14170 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14171 if test "${gcc_cv_as_eh_frame+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174 gcc_cv_as_eh_frame=no
14175 if test $in_tree_gas = yes; then
14176 if test $in_tree_gas_is_elf = yes \
14177 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14178 then gcc_cv_as_eh_frame=yes
14179 fi
14180 elif test x$gcc_cv_as != x; then
14181 echo ' .text
14182 .LFB1:
14183 .4byte 0
14184 .L1:
14185 .4byte 0
14186 .LFE1:
14187 .section .eh_frame,"aw",@progbits
14188 __FRAME_BEGIN__:
14189 .4byte .LECIE1-.LSCIE1
14190 .LSCIE1:
14191 .4byte 0x0
14192 .byte 0x1
14193 .ascii "z\0"
14194 .byte 0x1
14195 .byte 0x78
14196 .byte 0x1a
14197 .byte 0x0
14198 .byte 0x4
14199 .4byte 1
14200 .p2align 1
14201 .LECIE1:
14202 .LSFDE1:
14203 .4byte .LEFDE1-.LASFDE1
14204 .LASFDE1:
14205 .4byte .LASFDE1-__FRAME_BEGIN__
14206 .4byte .LFB1
14207 .4byte .LFE1-.LFB1
14208 .byte 0x4
14209 .4byte .LFE1-.LFB1
14210 .byte 0x4
14211 .4byte .L1-.LFB1
14212 .LEFDE1:' > conftest.s
14213 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }
14219 then
14220 cat > conftest.lit <<EOF
14221 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14222 0010 01000000 12000000 18000000 00000000 ................
14223 0020 08000000 04080000 0044 .........D
14224 EOF
14225 cat > conftest.big <<EOF
14226 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14227 0010 00000001 00000012 00000018 00000000 ................
14228 0020 00000008 04000000 0844 .........D
14229 EOF
14230 # If the assembler didn't choke, and we can objdump,
14231 # and we got the correct data, then succeed.
14232 # The text in the here-document typically retains its unix-style line
14233 # endings, while the output of objdump will use host line endings.
14234 # Therefore, use diff -b for the comparisons.
14235 if test x$gcc_cv_objdump != x \
14236 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14237 | tail -3 > conftest.got \
14238 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14239 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14240 then
14241 gcc_cv_as_eh_frame=yes
14242 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14245 ac_status=$?
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; }; then
14248 gcc_cv_as_eh_frame=buggy
14249 else
14250 # Uh oh, what do we do now?
14251 gcc_cv_as_eh_frame=no
14252 fi
14253 else
14254 echo "configure: failed program was" >&5
14255 cat conftest.s >&5
14256 fi
14257 rm -f conftest.o conftest.s
14258 fi
14259 fi
14260 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14261 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14262
14263
14264 if test $gcc_cv_as_eh_frame = buggy; then
14265
14266 cat >>confdefs.h <<\_ACEOF
14267 #define USE_AS_TRADITIONAL_FORMAT 1
14268 _ACEOF
14269
14270 fi
14271
14272 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14273 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14274 if test "${gcc_cv_as_shf_merge+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277 gcc_cv_as_shf_merge=no
14278 if test $in_tree_gas = yes; then
14279 if test $in_tree_gas_is_elf = yes \
14280 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14281 then gcc_cv_as_shf_merge=yes
14282 fi
14283 elif test x$gcc_cv_as != x; then
14284 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14285 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }
14291 then
14292 gcc_cv_as_shf_merge=yes
14293 else
14294 echo "configure: failed program was" >&5
14295 cat conftest.s >&5
14296 fi
14297 rm -f conftest.o conftest.s
14298 fi
14299 fi
14300 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14301 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14302
14303 if test $gcc_cv_as_shf_merge = no; then
14304 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14305 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14306 if test "${gcc_cv_as_shf_merge+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 else
14309 gcc_cv_as_shf_merge=no
14310 if test $in_tree_gas = yes; then
14311 if test $in_tree_gas_is_elf = yes \
14312 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14313 then gcc_cv_as_shf_merge=yes
14314 fi
14315 elif test x$gcc_cv_as != x; then
14316 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14317 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }
14323 then
14324 gcc_cv_as_shf_merge=yes
14325 else
14326 echo "configure: failed program was" >&5
14327 cat conftest.s >&5
14328 fi
14329 rm -f conftest.o conftest.s
14330 fi
14331 fi
14332 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14333 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14334
14335 fi
14336
14337 cat >>confdefs.h <<_ACEOF
14338 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14339 _ACEOF
14340
14341
14342 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14343 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14344 if test "${gcc_cv_as_comdat_group+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347 gcc_cv_as_comdat_group=no
14348 if test $in_tree_gas = yes; then
14349 if test $in_tree_gas_is_elf = yes \
14350 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14351 then gcc_cv_as_comdat_group=yes
14352 fi
14353 elif test x$gcc_cv_as != x; then
14354 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14355 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }
14361 then
14362 gcc_cv_as_comdat_group=yes
14363 else
14364 echo "configure: failed program was" >&5
14365 cat conftest.s >&5
14366 fi
14367 rm -f conftest.o conftest.s
14368 fi
14369 fi
14370 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14371 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14372
14373 if test $gcc_cv_as_comdat_group = yes; then
14374 gcc_cv_as_comdat_group_percent=no
14375 else
14376 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14377 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14378 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 else
14381 gcc_cv_as_comdat_group_percent=no
14382 if test $in_tree_gas = yes; then
14383 if test $in_tree_gas_is_elf = yes \
14384 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14385 then gcc_cv_as_comdat_group_percent=yes
14386 fi
14387 elif test x$gcc_cv_as != x; then
14388 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14389 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14392 ac_status=$?
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }
14395 then
14396 gcc_cv_as_comdat_group_percent=yes
14397 else
14398 echo "configure: failed program was" >&5
14399 cat conftest.s >&5
14400 fi
14401 rm -f conftest.o conftest.s
14402 fi
14403 fi
14404 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14405 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14406
14407 fi
14408 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14409 comdat_group=yes
14410 if test 0"$ld_date" -lt 20050308; then
14411 if test -n "$ld_date"; then
14412 # If there was date string, but was earlier than 2005-03-08, fail
14413 comdat_group=no
14414 elif test "$ld_vers_major" -lt 2; then
14415 comdat_group=no
14416 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14417 comdat_group=no
14418 fi
14419 fi
14420 else
14421 # assume linkers other than GNU ld don't support COMDAT group
14422 comdat_group=no
14423 fi
14424 if test $comdat_group = no; then
14425 gcc_cv_as_comdat_group=no
14426 gcc_cv_as_comdat_group_percent=no
14427 fi
14428
14429 cat >>confdefs.h <<_ACEOF
14430 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14431 _ACEOF
14432
14433
14434 # Thread-local storage - the check is heavily parametrized.
14435 conftest_s=
14436 tls_first_major=
14437 tls_first_minor=
14438 tls_as_opt=
14439 case "$target" in
14440 alpha*-*-*)
14441 conftest_s='
14442 .section ".tdata","awT",@progbits
14443 foo: .long 25
14444 .text
14445 ldq $27,__tls_get_addr($29) !literal!1
14446 lda $16,foo($29) !tlsgd!1
14447 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14448 ldq $27,__tls_get_addr($29) !literal!2
14449 lda $16,foo($29) !tlsldm!2
14450 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14451 ldq $1,foo($29) !gotdtprel
14452 ldah $2,foo($29) !dtprelhi
14453 lda $3,foo($2) !dtprello
14454 lda $4,foo($29) !dtprel
14455 ldq $1,foo($29) !gottprel
14456 ldah $2,foo($29) !tprelhi
14457 lda $3,foo($2) !tprello
14458 lda $4,foo($29) !tprel'
14459 tls_first_major=2
14460 tls_first_minor=13
14461 tls_as_opt=--fatal-warnings
14462 ;;
14463 frv*-*-*)
14464 conftest_s='
14465 .section ".tdata","awT",@progbits
14466 x: .long 25
14467 .text
14468 call #gettlsoff(x)'
14469 tls_first_major=2
14470 tls_first_minor=14
14471 ;;
14472 hppa*-*-linux*)
14473 conftest_s='
14474 t1: .reg %r20
14475 t2: .reg %r21
14476 gp: .reg %r19
14477 .section ".tdata","awT",@progbits
14478 foo: .long 25
14479 .text
14480 .align 4
14481 addil LT%foo-$tls_gdidx$,gp
14482 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14483 b __tls_get_addr
14484 nop
14485 addil LT%foo-$tls_ldidx$,gp
14486 b __tls_get_addr
14487 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14488 addil LR%foo-$tls_dtpoff$,%ret0
14489 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14490 mfctl %cr27,%t1
14491 addil LT%foo-$tls_ieoff$,gp
14492 ldw RT%foo-$tls_ieoff$(%r1),%t2
14493 add %t1,%t2,%t3
14494 mfctl %cr27,%t1
14495 addil LR%foo-$tls_leoff$,%t1
14496 ldo RR%foo-$tls_leoff$(%r1),%t2'
14497 tls_first_major=2
14498 tls_first_minor=15
14499 tls_as_opt=--fatal-warnings
14500 ;;
14501 arm*-*-*)
14502 conftest_s='
14503 .section ".tdata","awT",%progbits
14504 foo: .long 25
14505 .text
14506 .word foo(gottpoff)
14507 .word foo(tpoff)
14508 .word foo(tlsgd)
14509 .word foo(tlsldm)
14510 .word foo(tlsldo)'
14511 tls_first_major=2
14512 tls_first_minor=17
14513 ;;
14514 i[34567]86-*-*)
14515 conftest_s='
14516 .section ".tdata","awT",@progbits
14517 foo: .long 25
14518 .text
14519 movl %gs:0, %eax
14520 leal foo@TLSGD(,%ebx,1), %eax
14521 leal foo@TLSLDM(%ebx), %eax
14522 leal foo@DTPOFF(%eax), %edx
14523 movl foo@GOTTPOFF(%ebx), %eax
14524 subl foo@GOTTPOFF(%ebx), %eax
14525 addl foo@GOTNTPOFF(%ebx), %eax
14526 movl foo@INDNTPOFF, %eax
14527 movl $foo@TPOFF, %eax
14528 subl $foo@TPOFF, %eax
14529 leal foo@NTPOFF(%ecx), %eax'
14530 tls_first_major=2
14531 tls_first_minor=14
14532 tls_as_opt=--fatal-warnings
14533 ;;
14534 x86_64-*-*)
14535 conftest_s='
14536 .section ".tdata","awT",@progbits
14537 foo: .long 25
14538 .text
14539 movq %fs:0, %rax
14540 leaq foo@TLSGD(%rip), %rdi
14541 leaq foo@TLSLD(%rip), %rdi
14542 leaq foo@DTPOFF(%rax), %rdx
14543 movq foo@GOTTPOFF(%rip), %rax
14544 movq $foo@TPOFF, %rax'
14545 tls_first_major=2
14546 tls_first_minor=14
14547 tls_as_opt=--fatal-warnings
14548 ;;
14549 ia64-*-*)
14550 conftest_s='
14551 .section ".tdata","awT",@progbits
14552 foo: data8 25
14553 .text
14554 addl r16 = @ltoff(@dtpmod(foo#)), gp
14555 addl r17 = @ltoff(@dtprel(foo#)), gp
14556 addl r18 = @ltoff(@tprel(foo#)), gp
14557 addl r19 = @dtprel(foo#), gp
14558 adds r21 = @dtprel(foo#), r13
14559 movl r23 = @dtprel(foo#)
14560 addl r20 = @tprel(foo#), gp
14561 adds r22 = @tprel(foo#), r13
14562 movl r24 = @tprel(foo#)'
14563 tls_first_major=2
14564 tls_first_minor=13
14565 tls_as_opt=--fatal-warnings
14566 ;;
14567 mips*-*-*)
14568 conftest_s='
14569 .section .tdata,"awT",@progbits
14570 x:
14571 .word 2
14572 .text
14573 addiu $4, $28, %tlsgd(x)
14574 addiu $4, $28, %tlsldm(x)
14575 lui $4, %dtprel_hi(x)
14576 addiu $4, $4, %dtprel_lo(x)
14577 lw $4, %gottprel(x)($28)
14578 lui $4, %tprel_hi(x)
14579 addiu $4, $4, %tprel_lo(x)'
14580 tls_first_major=2
14581 tls_first_minor=16
14582 tls_as_opt='-32 --fatal-warnings'
14583 ;;
14584 powerpc-*-*)
14585 conftest_s='
14586 .section ".tdata","awT",@progbits
14587 .align 2
14588 ld0: .space 4
14589 ld1: .space 4
14590 x1: .space 4
14591 x2: .space 4
14592 x3: .space 4
14593 .text
14594 addi 3,31,ld0@got@tlsgd
14595 bl __tls_get_addr
14596 addi 3,31,x1@got@tlsld
14597 bl __tls_get_addr
14598 addi 9,3,x1@dtprel
14599 addis 9,3,x2@dtprel@ha
14600 addi 9,9,x2@dtprel@l
14601 lwz 9,x3@got@tprel(31)
14602 add 9,9,x@tls
14603 addi 9,2,x1@tprel
14604 addis 9,2,x2@tprel@ha
14605 addi 9,9,x2@tprel@l'
14606 tls_first_major=2
14607 tls_first_minor=14
14608 tls_as_opt="-a32 --fatal-warnings"
14609 ;;
14610 powerpc64-*-*)
14611 conftest_s='
14612 .section ".tdata","awT",@progbits
14613 .align 3
14614 ld0: .space 8
14615 ld1: .space 8
14616 x1: .space 8
14617 x2: .space 8
14618 x3: .space 8
14619 .text
14620 addi 3,2,ld0@got@tlsgd
14621 bl .__tls_get_addr
14622 nop
14623 addi 3,2,ld1@toc
14624 bl .__tls_get_addr
14625 nop
14626 addi 3,2,x1@got@tlsld
14627 bl .__tls_get_addr
14628 nop
14629 addi 9,3,x1@dtprel
14630 bl .__tls_get_addr
14631 nop
14632 addis 9,3,x2@dtprel@ha
14633 addi 9,9,x2@dtprel@l
14634 bl .__tls_get_addr
14635 nop
14636 ld 9,x3@got@dtprel(2)
14637 add 9,9,3
14638 bl .__tls_get_addr
14639 nop'
14640 tls_first_major=2
14641 tls_first_minor=14
14642 tls_as_opt="-a64 --fatal-warnings"
14643 ;;
14644 s390-*-*)
14645 conftest_s='
14646 .section ".tdata","awT",@progbits
14647 foo: .long 25
14648 .text
14649 .long foo@TLSGD
14650 .long foo@TLSLDM
14651 .long foo@DTPOFF
14652 .long foo@NTPOFF
14653 .long foo@GOTNTPOFF
14654 .long foo@INDNTPOFF
14655 l %r1,foo@GOTNTPOFF(%r12)
14656 l %r1,0(%r1):tls_load:foo
14657 bas %r14,0(%r1,%r13):tls_gdcall:foo
14658 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14659 tls_first_major=2
14660 tls_first_minor=14
14661 tls_as_opt="-m31 --fatal-warnings"
14662 ;;
14663 s390x-*-*)
14664 conftest_s='
14665 .section ".tdata","awT",@progbits
14666 foo: .long 25
14667 .text
14668 .quad foo@TLSGD
14669 .quad foo@TLSLDM
14670 .quad foo@DTPOFF
14671 .quad foo@NTPOFF
14672 .quad foo@GOTNTPOFF
14673 lg %r1,foo@GOTNTPOFF(%r12)
14674 larl %r1,foo@INDNTPOFF
14675 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14676 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14677 tls_first_major=2
14678 tls_first_minor=14
14679 tls_as_opt="-m64 -Aesame --fatal-warnings"
14680 ;;
14681 sh-*-* | sh[34]-*-*)
14682 conftest_s='
14683 .section ".tdata","awT",@progbits
14684 foo: .long 25
14685 .text
14686 .long foo@TLSGD
14687 .long foo@TLSLDM
14688 .long foo@DTPOFF
14689 .long foo@GOTTPOFF
14690 .long foo@TPOFF'
14691 tls_first_major=2
14692 tls_first_minor=13
14693 tls_as_opt=--fatal-warnings
14694 ;;
14695 sparc*-*-*)
14696 case "$target" in
14697 sparc*-sun-solaris2.[56789]*)
14698 # TLS was introduced in the Solaris 9 4/04 release but
14699 # we do not enable it by default on Solaris 9 either.
14700 if test "x$enable_tls" = xyes ; then
14701 on_solaris=yes
14702 else
14703 enable_tls=no;
14704 fi
14705 ;;
14706 sparc*-sun-solaris2.*)
14707 on_solaris=yes
14708 ;;
14709 *)
14710 on_solaris=no
14711 ;;
14712 esac
14713 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14714 conftest_s='
14715 .section ".tdata",#alloc,#write,#tls
14716 foo: .long 25
14717 .text
14718 sethi %tgd_hi22(foo), %o0
14719 add %o0, %tgd_lo10(foo), %o1
14720 add %l7, %o1, %o0, %tgd_add(foo)
14721 call __tls_get_addr, %tgd_call(foo)
14722 sethi %tldm_hi22(foo), %l1
14723 add %l1, %tldm_lo10(foo), %l2
14724 add %l7, %l2, %o0, %tldm_add(foo)
14725 call __tls_get_addr, %tldm_call(foo)
14726 sethi %tldo_hix22(foo), %l3
14727 xor %l3, %tldo_lox10(foo), %l4
14728 add %o0, %l4, %l5, %tldo_add(foo)
14729 sethi %tie_hi22(foo), %o3
14730 add %o3, %tie_lo10(foo), %o3
14731 ld [%l7 + %o3], %o2, %tie_ld(foo)
14732 add %g7, %o2, %o4, %tie_add(foo)
14733 sethi %tle_hix22(foo), %l1
14734 xor %l1, %tle_lox10(foo), %o5
14735 ld [%g7 + %o5], %o1'
14736 tls_first_major=0
14737 tls_first_minor=0
14738 else
14739 conftest_s='
14740 .section ".tdata","awT",@progbits
14741 foo: .long 25
14742 .text
14743 sethi %tgd_hi22(foo), %o0
14744 add %o0, %tgd_lo10(foo), %o1
14745 add %l7, %o1, %o0, %tgd_add(foo)
14746 call __tls_get_addr, %tgd_call(foo)
14747 sethi %tldm_hi22(foo), %l1
14748 add %l1, %tldm_lo10(foo), %l2
14749 add %l7, %l2, %o0, %tldm_add(foo)
14750 call __tls_get_addr, %tldm_call(foo)
14751 sethi %tldo_hix22(foo), %l3
14752 xor %l3, %tldo_lox10(foo), %l4
14753 add %o0, %l4, %l5, %tldo_add(foo)
14754 sethi %tie_hi22(foo), %o3
14755 add %o3, %tie_lo10(foo), %o3
14756 ld [%l7 + %o3], %o2, %tie_ld(foo)
14757 add %g7, %o2, %o4, %tie_add(foo)
14758 sethi %tle_hix22(foo), %l1
14759 xor %l1, %tle_lox10(foo), %o5
14760 ld [%g7 + %o5], %o1'
14761 tls_first_major=2
14762 tls_first_minor=14
14763 tls_as_opt="-32 --fatal-warnings"
14764 fi
14765 ;;
14766 esac
14767 set_have_as_tls=no
14768 if test "x$enable_tls" = xno ; then
14769 : # TLS explicitly disabled.
14770 elif test "x$enable_tls" = xyes ; then
14771 set_have_as_tls=yes # TLS explicitly enabled.
14772 elif test -z "$tls_first_major"; then
14773 : # If we don't have a check, assume no support.
14774 else
14775 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14776 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14777 if test "${gcc_cv_as_tls+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 else
14780 gcc_cv_as_tls=no
14781 if test $in_tree_gas = yes; then
14782 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14783 then gcc_cv_as_tls=yes
14784 fi
14785 elif test x$gcc_cv_as != x; then
14786 echo "$conftest_s" > conftest.s
14787 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14790 ac_status=$?
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }
14793 then
14794 gcc_cv_as_tls=yes
14795 else
14796 echo "configure: failed program was" >&5
14797 cat conftest.s >&5
14798 fi
14799 rm -f conftest.o conftest.s
14800 fi
14801 fi
14802 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14803 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14804 if test $gcc_cv_as_tls = yes; then
14805 set_have_as_tls=yes
14806 fi
14807 fi
14808 if test $set_have_as_tls = yes ; then
14809
14810 cat >>confdefs.h <<\_ACEOF
14811 #define HAVE_AS_TLS 1
14812 _ACEOF
14813
14814 fi
14815
14816 # Target-specific assembler checks.
14817
14818 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14819 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14820 gcc_cv_ld_static_dynamic=no
14821 if test $in_tree_ld = yes ; then
14822 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14823 gcc_cv_ld_static_dynamic=yes
14824 fi
14825 elif test x$gcc_cv_ld != x; then
14826 # Check if linker supports -Bstatic/-Bdynamic option
14827 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14828 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14829 gcc_cv_ld_static_dynamic=yes
14830 fi
14831 fi
14832 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14833
14834 cat >>confdefs.h <<\_ACEOF
14835 #define HAVE_LD_STATIC_DYNAMIC 1
14836 _ACEOF
14837
14838 fi
14839 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14840 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14841
14842 if test x"$demangler_in_ld" = xyes; then
14843 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14844 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14845 gcc_cv_ld_demangle=no
14846 if test $in_tree_ld = yes; then
14847 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 \
14848 gcc_cv_ld_demangle=yes
14849 fi
14850 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14851 # Check if the GNU linker supports --demangle option
14852 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14853 gcc_cv_ld_demangle=yes
14854 fi
14855 fi
14856 if test x"$gcc_cv_ld_demangle" = xyes; then
14857
14858 cat >>confdefs.h <<\_ACEOF
14859 #define HAVE_LD_DEMANGLE 1
14860 _ACEOF
14861
14862 fi
14863 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14864 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14865 fi
14866
14867 case "$target" in
14868 # All TARGET_ABI_OSF targets.
14869 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14870 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14871 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14872 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 else
14875 gcc_cv_as_alpha_explicit_relocs=no
14876 if test $in_tree_gas = yes; then
14877 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14878 then gcc_cv_as_alpha_explicit_relocs=yes
14879 fi
14880 elif test x$gcc_cv_as != x; then
14881 echo ' .set nomacro
14882 .text
14883 extbl $3, $2, $3 !lituse_bytoff!1
14884 ldq $2, a($29) !literal!1
14885 ldq $4, b($29) !literal!2
14886 ldq_u $3, 0($2) !lituse_base!1
14887 ldq $27, f($29) !literal!5
14888 jsr $26, ($27), f !lituse_jsr!5
14889 ldah $29, 0($26) !gpdisp!3
14890 lda $0, c($29) !gprel
14891 ldah $1, d($29) !gprelhigh
14892 lda $1, d($1) !gprellow
14893 lda $29, 0($29) !gpdisp!3' > conftest.s
14894 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }
14900 then
14901 gcc_cv_as_alpha_explicit_relocs=yes
14902 else
14903 echo "configure: failed program was" >&5
14904 cat conftest.s >&5
14905 fi
14906 rm -f conftest.o conftest.s
14907 fi
14908 fi
14909 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14910 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14911 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14912
14913 cat >>confdefs.h <<\_ACEOF
14914 #define HAVE_AS_EXPLICIT_RELOCS 1
14915 _ACEOF
14916
14917 fi
14918 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14919 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14920 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923 gcc_cv_as_alpha_jsrdirect_relocs=no
14924 if test $in_tree_gas = yes; then
14925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14926 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14927 fi
14928 elif test x$gcc_cv_as != x; then
14929 echo ' .set nomacro
14930 .text
14931 ldq $27, a($29) !literal!1
14932 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14933 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }
14939 then
14940 gcc_cv_as_alpha_jsrdirect_relocs=yes
14941 else
14942 echo "configure: failed program was" >&5
14943 cat conftest.s >&5
14944 fi
14945 rm -f conftest.o conftest.s
14946 fi
14947 fi
14948 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14949 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14950 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14951
14952 cat >>confdefs.h <<\_ACEOF
14953 #define HAVE_AS_JSRDIRECT_RELOCS 1
14954 _ACEOF
14955
14956 fi
14957 ;;
14958
14959 cris-*-*)
14960 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14961 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14962 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965 gcc_cv_as_cris_no_mul_bug=no
14966 if test $in_tree_gas = yes; then
14967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14968 then gcc_cv_as_cris_no_mul_bug=yes
14969 fi
14970 elif test x$gcc_cv_as != x; then
14971 echo '.text' > conftest.s
14972 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }
14978 then
14979 gcc_cv_as_cris_no_mul_bug=yes
14980 else
14981 echo "configure: failed program was" >&5
14982 cat conftest.s >&5
14983 fi
14984 rm -f conftest.o conftest.s
14985 fi
14986 fi
14987 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14988 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14989 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14990
14991 cat >>confdefs.h <<\_ACEOF
14992 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14993 _ACEOF
14994
14995 fi
14996 ;;
14997
14998 sparc*-*-*)
14999 echo "$as_me:$LINENO: checking assembler for .register" >&5
15000 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
15001 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15002 echo $ECHO_N "(cached) $ECHO_C" >&6
15003 else
15004 gcc_cv_as_sparc_register_op=no
15005 if test x$gcc_cv_as != x; then
15006 echo '.register %g2, #scratch' > conftest.s
15007 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }
15013 then
15014 gcc_cv_as_sparc_register_op=yes
15015 else
15016 echo "configure: failed program was" >&5
15017 cat conftest.s >&5
15018 fi
15019 rm -f conftest.o conftest.s
15020 fi
15021 fi
15022 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15023 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15024 if test $gcc_cv_as_sparc_register_op = yes; then
15025
15026 cat >>confdefs.h <<\_ACEOF
15027 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15028 _ACEOF
15029
15030 fi
15031
15032 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15033 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15034 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 else
15037 gcc_cv_as_sparc_relax=no
15038 if test x$gcc_cv_as != x; then
15039 echo '.text' > conftest.s
15040 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }
15046 then
15047 gcc_cv_as_sparc_relax=yes
15048 else
15049 echo "configure: failed program was" >&5
15050 cat conftest.s >&5
15051 fi
15052 rm -f conftest.o conftest.s
15053 fi
15054 fi
15055 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15056 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15057 if test $gcc_cv_as_sparc_relax = yes; then
15058
15059 cat >>confdefs.h <<\_ACEOF
15060 #define HAVE_AS_RELAX_OPTION 1
15061 _ACEOF
15062
15063 fi
15064
15065 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15066 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15067 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070 gcc_cv_as_sparc_ua_pcrel=no
15071 if test x$gcc_cv_as != x; then
15072 echo '.text
15073 foo:
15074 nop
15075 .data
15076 .align 4
15077 .byte 0
15078 .uaword %r_disp32(foo)' > conftest.s
15079 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }
15085 then
15086 if test x$gcc_cv_ld != x \
15087 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15088 gcc_cv_as_sparc_ua_pcrel=yes
15089 fi
15090 rm -f conftest
15091 else
15092 echo "configure: failed program was" >&5
15093 cat conftest.s >&5
15094 fi
15095 rm -f conftest.o conftest.s
15096 fi
15097 fi
15098 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15099 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15100 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15101
15102 cat >>confdefs.h <<\_ACEOF
15103 #define HAVE_AS_SPARC_UA_PCREL 1
15104 _ACEOF
15105
15106
15107 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15108 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15109 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15111 else
15112 gcc_cv_as_sparc_ua_pcrel_hidden=no
15113 if test x$gcc_cv_as != x; then
15114 echo '.data
15115 .align 4
15116 .byte 0x31
15117 .uaword %r_disp32(foo)
15118 .byte 0x32, 0x33, 0x34
15119 .global foo
15120 .hidden foo
15121 foo:
15122 .skip 4' > conftest.s
15123 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }
15129 then
15130 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15131 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15132 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15133 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15134 if $gcc_cv_objdump -R conftest 2> /dev/null \
15135 | grep 'DISP32' > /dev/null 2>&1; then
15136 :
15137 else
15138 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15139 fi
15140 fi
15141 rm -f conftest
15142 else
15143 echo "configure: failed program was" >&5
15144 cat conftest.s >&5
15145 fi
15146 rm -f conftest.o conftest.s
15147 fi
15148 fi
15149 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15150 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15151 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15152
15153 cat >>confdefs.h <<\_ACEOF
15154 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15155 _ACEOF
15156
15157 fi
15158
15159 fi # unaligned pcrel relocs
15160
15161 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15162 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15163 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15165 else
15166 gcc_cv_as_sparc_offsetable_lo10=no
15167 if test x$gcc_cv_as != x; then
15168 echo '.text
15169 or %g1, %lo(ab) + 12, %g1
15170 or %g1, %lo(ab + 12), %g1' > conftest.s
15171 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }
15177 then
15178 if test x$gcc_cv_objdump != x \
15179 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15180 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15181 gcc_cv_as_sparc_offsetable_lo10=yes
15182 fi
15183 else
15184 echo "configure: failed program was" >&5
15185 cat conftest.s >&5
15186 fi
15187 rm -f conftest.o conftest.s
15188 fi
15189 fi
15190 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15191 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15192 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15193
15194 cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_AS_OFFSETABLE_LO10 1
15196 _ACEOF
15197
15198 fi
15199 ;;
15200
15201 i[34567]86-*-* | x86_64-*-*)
15202 case $target_os in
15203 cygwin* | pe | mingw32*)
15204 # Used for DWARF 2 in PE
15205 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15206 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15207 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 else
15210 gcc_cv_as_ix86_pe_secrel32=no
15211 if test $in_tree_gas = yes; then
15212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15213 then gcc_cv_as_ix86_pe_secrel32=yes
15214 fi
15215 elif test x$gcc_cv_as != x; then
15216 echo '.text
15217 foo: nop
15218 .data
15219 .secrel32 foo' > conftest.s
15220 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }
15226 then
15227 if test x$gcc_cv_ld != x \
15228 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15229 gcc_cv_as_ix86_pe_secrel32=yes
15230 fi
15231 rm -f conftest
15232 else
15233 echo "configure: failed program was" >&5
15234 cat conftest.s >&5
15235 fi
15236 rm -f conftest.o conftest.s
15237 fi
15238 fi
15239 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15240 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15241 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15242
15243 cat >>confdefs.h <<\_ACEOF
15244 #define HAVE_GAS_PE_SECREL32_RELOC 1
15245 _ACEOF
15246
15247 fi
15248 ;;
15249 esac
15250
15251 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15252 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15253 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 else
15256 gcc_cv_as_ix86_filds_fists=no
15257 if test $in_tree_gas = yes; then
15258 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15259 then gcc_cv_as_ix86_filds_fists=yes
15260 fi
15261 elif test x$gcc_cv_as != x; then
15262 echo 'filds mem; fists mem' > conftest.s
15263 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }
15269 then
15270 gcc_cv_as_ix86_filds_fists=yes
15271 else
15272 echo "configure: failed program was" >&5
15273 cat conftest.s >&5
15274 fi
15275 rm -f conftest.o conftest.s
15276 fi
15277 fi
15278 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15279 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15280 if test $gcc_cv_as_ix86_filds_fists = yes; then
15281
15282 cat >>confdefs.h <<\_ACEOF
15283 #define HAVE_GAS_FILDS_FISTS 1
15284 _ACEOF
15285
15286 fi
15287
15288 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15289 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15290 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15292 else
15293 gcc_cv_as_ix86_cmov_sun_syntax=no
15294 if test x$gcc_cv_as != x; then
15295 echo 'cmovl.l %edx, %eax' > conftest.s
15296 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }
15302 then
15303 gcc_cv_as_ix86_cmov_sun_syntax=yes
15304 else
15305 echo "configure: failed program was" >&5
15306 cat conftest.s >&5
15307 fi
15308 rm -f conftest.o conftest.s
15309 fi
15310 fi
15311 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15312 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15313 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15314
15315 cat >>confdefs.h <<\_ACEOF
15316 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15317 _ACEOF
15318
15319 fi
15320
15321 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15322 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15323 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326 gcc_cv_as_ix86_ffreep=no
15327 if test x$gcc_cv_as != x; then
15328 echo 'ffreep %st(1)' > conftest.s
15329 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }
15335 then
15336 gcc_cv_as_ix86_ffreep=yes
15337 else
15338 echo "configure: failed program was" >&5
15339 cat conftest.s >&5
15340 fi
15341 rm -f conftest.o conftest.s
15342 fi
15343 fi
15344 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15345 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15346 if test $gcc_cv_as_ix86_ffreep = yes; then
15347
15348 cat >>confdefs.h <<\_ACEOF
15349 #define HAVE_AS_IX86_FFREEP 1
15350 _ACEOF
15351
15352 fi
15353
15354 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15355 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15356 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359 gcc_cv_as_ix86_sahf=no
15360 if test x$gcc_cv_as != x; then
15361 echo 'sahf' > conftest.s
15362 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }
15368 then
15369 gcc_cv_as_ix86_sahf=yes
15370 else
15371 echo "configure: failed program was" >&5
15372 cat conftest.s >&5
15373 fi
15374 rm -f conftest.o conftest.s
15375 fi
15376 fi
15377 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15378 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15379 if test $gcc_cv_as_ix86_sahf = yes; then
15380
15381 cat >>confdefs.h <<\_ACEOF
15382 #define HAVE_AS_IX86_SAHF 1
15383 _ACEOF
15384
15385 fi
15386
15387 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15388 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15389 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 else
15392 gcc_cv_as_ix86_diff_sect_delta=no
15393 if test x$gcc_cv_as != x; then
15394 echo '.section .rodata
15395 .L1:
15396 .long .L2-.L1
15397 .long .L3-.L1
15398 .text
15399 .L3: nop
15400 .L2: nop' > conftest.s
15401 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }
15407 then
15408 gcc_cv_as_ix86_diff_sect_delta=yes
15409 else
15410 echo "configure: failed program was" >&5
15411 cat conftest.s >&5
15412 fi
15413 rm -f conftest.o conftest.s
15414 fi
15415 fi
15416 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15417 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15418 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15419
15420 cat >>confdefs.h <<\_ACEOF
15421 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15422 _ACEOF
15423
15424 fi
15425
15426 # This one is used unconditionally by i386.[ch]; it is to be defined
15427 # to 1 if the feature is present, 0 otherwise.
15428 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15429 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15430 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 else
15433 gcc_cv_as_ix86_gotoff_in_data=no
15434 if test $in_tree_gas = yes; then
15435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15436 then gcc_cv_as_ix86_gotoff_in_data=yes
15437 fi
15438 elif test x$gcc_cv_as != x; then
15439 echo ' .text
15440 .L0:
15441 nop
15442 .data
15443 .long .L0@GOTOFF' > conftest.s
15444 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }
15450 then
15451 gcc_cv_as_ix86_gotoff_in_data=yes
15452 else
15453 echo "configure: failed program was" >&5
15454 cat conftest.s >&5
15455 fi
15456 rm -f conftest.o conftest.s
15457 fi
15458 fi
15459 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15460 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15461
15462
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15465 _ACEOF
15466
15467 ;;
15468
15469 ia64*-*-*)
15470 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15471 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15472 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15476 if test $in_tree_gas = yes; then
15477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15478 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15479 fi
15480 elif test x$gcc_cv_as != x; then
15481 echo ' .text
15482 addl r15 = @ltoffx(x#), gp
15483 ;;
15484 ld8.mov r16 = [r15], x#' > conftest.s
15485 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }
15491 then
15492 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15493 else
15494 echo "configure: failed program was" >&5
15495 cat conftest.s >&5
15496 fi
15497 rm -f conftest.o conftest.s
15498 fi
15499 fi
15500 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15501 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15502 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15503
15504 cat >>confdefs.h <<\_ACEOF
15505 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15506 _ACEOF
15507
15508 fi
15509
15510 ;;
15511
15512 powerpc*-*-*)
15513 case $target in
15514 *-*-aix*) conftest_s=' .machine "pwr5"
15515 .csect .text[PR]
15516 mfcr 3,128';;
15517 *-*-darwin*)
15518 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15519 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15520 if test "${gcc_cv_as_machine_directive+set}" = set; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 else
15523 gcc_cv_as_machine_directive=no
15524 if test x$gcc_cv_as != x; then
15525 echo ' .machine ppc7400' > conftest.s
15526 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }
15532 then
15533 gcc_cv_as_machine_directive=yes
15534 else
15535 echo "configure: failed program was" >&5
15536 cat conftest.s >&5
15537 fi
15538 rm -f conftest.o conftest.s
15539 fi
15540 fi
15541 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15542 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15543
15544 if test x$gcc_cv_as_machine_directive != xyes; then
15545 echo "*** This target requires an assembler supporting \".machine\"" >&2
15546 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15547 test x$build = x$target && exit 1
15548 fi
15549 conftest_s=' .text
15550 mfcr r3,128';;
15551 *) conftest_s=' .machine power4
15552 .text
15553 mfcr 3,128';;
15554 esac
15555
15556 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15557 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15558 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 else
15561 gcc_cv_as_powerpc_mfcrf=no
15562 if test $in_tree_gas = yes; then
15563 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15564 then gcc_cv_as_powerpc_mfcrf=yes
15565 fi
15566 elif test x$gcc_cv_as != x; then
15567 echo "$conftest_s" > conftest.s
15568 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }
15574 then
15575 gcc_cv_as_powerpc_mfcrf=yes
15576 else
15577 echo "configure: failed program was" >&5
15578 cat conftest.s >&5
15579 fi
15580 rm -f conftest.o conftest.s
15581 fi
15582 fi
15583 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15584 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15585 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15586
15587 cat >>confdefs.h <<\_ACEOF
15588 #define HAVE_AS_MFCRF 1
15589 _ACEOF
15590
15591 fi
15592
15593 case $target in
15594 *-*-aix*) conftest_s=' .machine "pwr5"
15595 .csect .text[PR]
15596 popcntb 3,3';;
15597 *) conftest_s=' .machine power5
15598 .text
15599 popcntb 3,3';;
15600 esac
15601
15602 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15603 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15604 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 else
15607 gcc_cv_as_powerpc_popcntb=no
15608 if test $in_tree_gas = yes; then
15609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15610 then gcc_cv_as_powerpc_popcntb=yes
15611 fi
15612 elif test x$gcc_cv_as != x; then
15613 echo "$conftest_s" > conftest.s
15614 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }
15620 then
15621 gcc_cv_as_powerpc_popcntb=yes
15622 else
15623 echo "configure: failed program was" >&5
15624 cat conftest.s >&5
15625 fi
15626 rm -f conftest.o conftest.s
15627 fi
15628 fi
15629 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15630 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15631 if test $gcc_cv_as_powerpc_popcntb = yes; then
15632
15633 cat >>confdefs.h <<\_ACEOF
15634 #define HAVE_AS_POPCNTB 1
15635 _ACEOF
15636
15637 fi
15638
15639 case $target in
15640 *-*-aix*) conftest_s=' .machine "pwr5x"
15641 .csect .text[PR]
15642 frin 1,1';;
15643 *) conftest_s=' .machine power5
15644 .text
15645 frin 1,1';;
15646 esac
15647
15648 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15649 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15650 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 else
15653 gcc_cv_as_powerpc_fprnd=no
15654 if test $in_tree_gas = yes; then
15655 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15656 then gcc_cv_as_powerpc_fprnd=yes
15657 fi
15658 elif test x$gcc_cv_as != x; then
15659 echo "$conftest_s" > conftest.s
15660 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }
15666 then
15667 gcc_cv_as_powerpc_fprnd=yes
15668 else
15669 echo "configure: failed program was" >&5
15670 cat conftest.s >&5
15671 fi
15672 rm -f conftest.o conftest.s
15673 fi
15674 fi
15675 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15676 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15677 if test $gcc_cv_as_powerpc_fprnd = yes; then
15678
15679 cat >>confdefs.h <<\_ACEOF
15680 #define HAVE_AS_FPRND 1
15681 _ACEOF
15682
15683 fi
15684
15685 case $target in
15686 *-*-aix*) conftest_s=' .machine "pwr6"
15687 .csect .text[PR]
15688 mffgpr 1,3';;
15689 *) conftest_s=' .machine power6
15690 .text
15691 mffgpr 1,3';;
15692 esac
15693
15694 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15695 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15696 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 else
15699 gcc_cv_as_powerpc_mfpgpr=no
15700 if test $in_tree_gas = yes; then
15701 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15702 then gcc_cv_as_powerpc_mfpgpr=yes
15703 fi
15704 elif test x$gcc_cv_as != x; then
15705 echo "$conftest_s" > conftest.s
15706 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; }
15712 then
15713 gcc_cv_as_powerpc_mfpgpr=yes
15714 else
15715 echo "configure: failed program was" >&5
15716 cat conftest.s >&5
15717 fi
15718 rm -f conftest.o conftest.s
15719 fi
15720 fi
15721 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15722 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15723 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15724
15725 cat >>confdefs.h <<\_ACEOF
15726 #define HAVE_AS_MFPGPR 1
15727 _ACEOF
15728
15729 fi
15730
15731 case $target in
15732 *-*-aix*) conftest_s=' .csect .text[PR]
15733 LCF..0:
15734 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15735 *-*-darwin*)
15736 conftest_s=' .text
15737 LCF0:
15738 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15739 *) conftest_s=' .text
15740 .LCF0:
15741 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15742 esac
15743
15744 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15745 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15746 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 else
15749 gcc_cv_as_powerpc_rel16=no
15750 if test $in_tree_gas = yes; then
15751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15752 then gcc_cv_as_powerpc_rel16=yes
15753 fi
15754 elif test x$gcc_cv_as != x; then
15755 echo "$conftest_s" > conftest.s
15756 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }
15762 then
15763 gcc_cv_as_powerpc_rel16=yes
15764 else
15765 echo "configure: failed program was" >&5
15766 cat conftest.s >&5
15767 fi
15768 rm -f conftest.o conftest.s
15769 fi
15770 fi
15771 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15772 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15773 if test $gcc_cv_as_powerpc_rel16 = yes; then
15774
15775 cat >>confdefs.h <<\_ACEOF
15776 #define HAVE_AS_REL16 1
15777 _ACEOF
15778
15779 fi
15780
15781 case $target in
15782 *-*-aix*) conftest_s=' .machine "pwr6"
15783 .csect .text[PR]
15784 cmpb 3,4,5';;
15785 *) conftest_s=' .machine power6
15786 .text
15787 cmpb 3,4,5';;
15788 esac
15789
15790 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15791 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15792 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795 gcc_cv_as_powerpc_cmpb=no
15796 if test $in_tree_gas = yes; then
15797 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15798 then gcc_cv_as_powerpc_cmpb=yes
15799 fi
15800 elif test x$gcc_cv_as != x; then
15801 echo "$conftest_s" > conftest.s
15802 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }
15808 then
15809 gcc_cv_as_powerpc_cmpb=yes
15810 else
15811 echo "configure: failed program was" >&5
15812 cat conftest.s >&5
15813 fi
15814 rm -f conftest.o conftest.s
15815 fi
15816 fi
15817 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15818 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15819 if test $gcc_cv_as_powerpc_cmpb = yes; then
15820
15821 cat >>confdefs.h <<\_ACEOF
15822 #define HAVE_AS_CMPB 1
15823 _ACEOF
15824
15825 fi
15826
15827 case $target in
15828 *-*-aix*) conftest_s=' .machine "pwr6"
15829 .csect .text[PR]
15830 dadd 1,2,3';;
15831 *) conftest_s=' .machine power6
15832 .text
15833 dadd 1,2,3';;
15834 esac
15835
15836 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15837 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15838 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15840 else
15841 gcc_cv_as_powerpc_dfp=no
15842 if test $in_tree_gas = yes; then
15843 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15844 then gcc_cv_as_powerpc_dfp=yes
15845 fi
15846 elif test x$gcc_cv_as != x; then
15847 echo "$conftest_s" > conftest.s
15848 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }
15854 then
15855 gcc_cv_as_powerpc_dfp=yes
15856 else
15857 echo "configure: failed program was" >&5
15858 cat conftest.s >&5
15859 fi
15860 rm -f conftest.o conftest.s
15861 fi
15862 fi
15863 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15864 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15865 if test $gcc_cv_as_powerpc_dfp = yes; then
15866
15867 cat >>confdefs.h <<\_ACEOF
15868 #define HAVE_AS_DFP 1
15869 _ACEOF
15870
15871 fi
15872
15873 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15874 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15875 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 else
15878 gcc_cv_as_powerpc_gnu_attribute=no
15879 if test $in_tree_gas = yes; then
15880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15881 then gcc_cv_as_powerpc_gnu_attribute=yes
15882 fi
15883 elif test x$gcc_cv_as != x; then
15884 echo '.gnu_attribute 4,1' > conftest.s
15885 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }
15891 then
15892 gcc_cv_as_powerpc_gnu_attribute=yes
15893 else
15894 echo "configure: failed program was" >&5
15895 cat conftest.s >&5
15896 fi
15897 rm -f conftest.o conftest.s
15898 fi
15899 fi
15900 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
15901 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
15902 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
15903
15904 cat >>confdefs.h <<\_ACEOF
15905 #define HAVE_AS_GNU_ATTRIBUTE 1
15906 _ACEOF
15907
15908 fi
15909 ;;
15910
15911 mips*-*-*)
15912 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15913 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15914 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15915 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 else
15917 gcc_cv_as_mips_explicit_relocs=no
15918 if test $in_tree_gas = yes; then
15919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15920 then gcc_cv_as_mips_explicit_relocs=yes
15921 fi
15922 elif test x$gcc_cv_as != x; then
15923 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15924 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }
15930 then
15931 gcc_cv_as_mips_explicit_relocs=yes
15932 else
15933 echo "configure: failed program was" >&5
15934 cat conftest.s >&5
15935 fi
15936 rm -f conftest.o conftest.s
15937 fi
15938 fi
15939 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15940 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15941 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15942 if test x$target_cpu_default = x
15943 then target_cpu_default=MASK_EXPLICIT_RELOCS
15944 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15945 fi
15946 fi
15947 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15948 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15949 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952 gcc_cv_as_mips_no_shared=no
15953 if test $in_tree_gas = yes; then
15954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15955 then gcc_cv_as_mips_no_shared=yes
15956 fi
15957 elif test x$gcc_cv_as != x; then
15958 echo 'nop' > conftest.s
15959 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; }
15965 then
15966 gcc_cv_as_mips_no_shared=yes
15967 else
15968 echo "configure: failed program was" >&5
15969 cat conftest.s >&5
15970 fi
15971 rm -f conftest.o conftest.s
15972 fi
15973 fi
15974 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15975 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15976 if test $gcc_cv_as_mips_no_shared = yes; then
15977
15978 cat >>confdefs.h <<\_ACEOF
15979 #define HAVE_AS_NO_SHARED 1
15980 _ACEOF
15981
15982 fi
15983
15984 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15985 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15986 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 else
15989 gcc_cv_as_mips_gnu_attribute=no
15990 if test $in_tree_gas = yes; then
15991 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15992 then gcc_cv_as_mips_gnu_attribute=yes
15993 fi
15994 elif test x$gcc_cv_as != x; then
15995 echo '.gnu_attribute 4,1' > conftest.s
15996 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }
16002 then
16003 gcc_cv_as_mips_gnu_attribute=yes
16004 else
16005 echo "configure: failed program was" >&5
16006 cat conftest.s >&5
16007 fi
16008 rm -f conftest.o conftest.s
16009 fi
16010 fi
16011 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
16012 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
16013 if test $gcc_cv_as_mips_gnu_attribute = yes; then
16014
16015 cat >>confdefs.h <<\_ACEOF
16016 #define HAVE_AS_GNU_ATTRIBUTE 1
16017 _ACEOF
16018
16019 fi
16020
16021 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16022 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
16023 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16025 else
16026 gcc_cv_as_mips_dtprelword=no
16027 if test $in_tree_gas = yes; then
16028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16029 then gcc_cv_as_mips_dtprelword=yes
16030 fi
16031 elif test x$gcc_cv_as != x; then
16032 echo '.section .tdata,"awT",@progbits
16033 x:
16034 .word 2
16035 .text
16036 .dtprelword x+0x8000' > conftest.s
16037 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }
16043 then
16044 gcc_cv_as_mips_dtprelword=yes
16045 else
16046 echo "configure: failed program was" >&5
16047 cat conftest.s >&5
16048 fi
16049 rm -f conftest.o conftest.s
16050 fi
16051 fi
16052 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16053 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
16054 if test $gcc_cv_as_mips_dtprelword = yes; then
16055
16056 cat >>confdefs.h <<\_ACEOF
16057 #define HAVE_AS_DTPRELWORD 1
16058 _ACEOF
16059
16060 fi
16061 ;;
16062 esac
16063
16064 # Mips and HP-UX need the GNU assembler.
16065 # Linux on IA64 might be able to use the Intel assembler.
16066
16067 case "$target" in
16068 mips*-*-* | *-*-hpux* )
16069 if test x$gas_flag = xyes \
16070 || test x"$host" != x"$build" \
16071 || test ! -x "$gcc_cv_as" \
16072 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16073 :
16074 else
16075 echo "*** This configuration requires the GNU assembler" >&2
16076 exit 1
16077 fi
16078 ;;
16079 esac
16080
16081 # ??? Not all targets support dwarf2 debug_line, even within a version
16082 # of gas. Moreover, we need to emit a valid instruction to trigger any
16083 # info to the output file. So, as supported targets are added to gas 2.11,
16084 # add some instruction here to (also) show we expect this might work.
16085 # ??? Once 2.11 is released, probably need to add first known working
16086 # version to the per-target configury.
16087 case "$target" in
16088 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16089 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16090 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16091 insn="nop"
16092 ;;
16093 ia64*-*-* | s390*-*-*)
16094 insn="nop 0"
16095 ;;
16096 mmix-*-*)
16097 insn="swym 0"
16098 ;;
16099 esac
16100 if test x"$insn" != x; then
16101 conftest_s="\
16102 .file 1 \"conftest.s\"
16103 .loc 1 3 0
16104 $insn"
16105 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16106 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16107 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110 gcc_cv_as_dwarf2_debug_line=no
16111 if test $in_tree_gas = yes; then
16112 if test $in_tree_gas_is_elf = yes \
16113 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16114 then gcc_cv_as_dwarf2_debug_line=yes
16115 fi
16116 elif test x$gcc_cv_as != x; then
16117 echo "$conftest_s" > conftest.s
16118 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; }
16124 then
16125 if test x$gcc_cv_objdump != x \
16126 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16127 | grep debug_line > /dev/null 2>&1; then
16128 gcc_cv_as_dwarf2_debug_line=yes
16129 fi
16130 else
16131 echo "configure: failed program was" >&5
16132 cat conftest.s >&5
16133 fi
16134 rm -f conftest.o conftest.s
16135 fi
16136 fi
16137 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16138 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16139
16140
16141 # The .debug_line file table must be in the exact order that
16142 # we specified the files, since these indices are also used
16143 # by DW_AT_decl_file. Approximate this test by testing if
16144 # the assembler bitches if the same index is assigned twice.
16145 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16146 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16147 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150 gcc_cv_as_dwarf2_file_buggy=no
16151 if test x$gcc_cv_as != x; then
16152 echo ' .file 1 "foo.s"
16153 .file 1 "bar.s"' > conftest.s
16154 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }
16160 then
16161 gcc_cv_as_dwarf2_file_buggy=yes
16162 else
16163 echo "configure: failed program was" >&5
16164 cat conftest.s >&5
16165 fi
16166 rm -f conftest.o conftest.s
16167 fi
16168 fi
16169 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16170 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16171
16172
16173 if test $gcc_cv_as_dwarf2_debug_line = yes \
16174 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16175
16176 cat >>confdefs.h <<\_ACEOF
16177 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16178 _ACEOF
16179
16180 fi
16181
16182 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16183 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16184 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 else
16187 gcc_cv_as_gdwarf2_flag=no
16188 if test $in_tree_gas = yes; then
16189 if test $in_tree_gas_is_elf = yes \
16190 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16191 then gcc_cv_as_gdwarf2_flag=yes
16192 fi
16193 elif test x$gcc_cv_as != x; then
16194 echo "$insn" > conftest.s
16195 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }
16201 then
16202 gcc_cv_as_gdwarf2_flag=yes
16203 else
16204 echo "configure: failed program was" >&5
16205 cat conftest.s >&5
16206 fi
16207 rm -f conftest.o conftest.s
16208 fi
16209 fi
16210 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16211 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16212 if test $gcc_cv_as_gdwarf2_flag = yes; then
16213
16214 cat >>confdefs.h <<\_ACEOF
16215 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16216 _ACEOF
16217
16218 fi
16219
16220 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16221 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16222 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225 gcc_cv_as_gstabs_flag=no
16226 if test $in_tree_gas = yes; then
16227 if test $in_tree_gas_is_elf = yes \
16228 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16229 then gcc_cv_as_gstabs_flag=yes
16230 fi
16231 elif test x$gcc_cv_as != x; then
16232 echo "$insn" > conftest.s
16233 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }
16239 then
16240 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16241 # and warns about it, but still exits successfully. So check for
16242 # this.
16243 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }
16249 then :
16250 else gcc_cv_as_gstabs_flag=yes
16251 fi
16252 else
16253 echo "configure: failed program was" >&5
16254 cat conftest.s >&5
16255 fi
16256 rm -f conftest.o conftest.s
16257 fi
16258 fi
16259 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16260 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16261 if test $gcc_cv_as_gstabs_flag = yes; then
16262
16263 cat >>confdefs.h <<\_ACEOF
16264 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16265 _ACEOF
16266
16267 fi
16268
16269 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16270 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
16271 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 else
16274 gcc_cv_as_debug_prefix_map_flag=no
16275 if test $in_tree_gas = yes; then
16276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16277 then gcc_cv_as_debug_prefix_map_flag=yes
16278 fi
16279 elif test x$gcc_cv_as != x; then
16280 echo "$insn" > conftest.s
16281 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }
16287 then
16288 gcc_cv_as_debug_prefix_map_flag=yes
16289 else
16290 echo "configure: failed program was" >&5
16291 cat conftest.s >&5
16292 fi
16293 rm -f conftest.o conftest.s
16294 fi
16295 fi
16296 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16297 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
16298 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16299
16300 cat >>confdefs.h <<\_ACEOF
16301 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16302 _ACEOF
16303
16304 fi
16305 fi
16306
16307 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16308 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16309 if test "${gcc_cv_as_line_zero+set}" = set; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 else
16312 gcc_cv_as_line_zero=no
16313 if test $in_tree_gas = yes; then
16314 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16315 then gcc_cv_as_line_zero=yes
16316 fi
16317 elif test "x$gcc_cv_as" != x; then
16318 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16319 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; } &&
16325 test "x`cat conftest.out`" = x
16326 then
16327 gcc_cv_as_line_zero=yes
16328 else
16329 echo "configure: failed program was" >&5
16330 cat conftest.s >&5
16331 echo "configure: error output was" >&5
16332 cat conftest.out >&5
16333 fi
16334 rm -f conftest.o conftest.s conftest.out
16335 fi
16336 fi
16337 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16338 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16339 if test "x$gcc_cv_as_line_zero" = xyes; then
16340
16341 cat >>confdefs.h <<\_ACEOF
16342 #define HAVE_AS_LINE_ZERO 1
16343 _ACEOF
16344
16345 fi
16346
16347 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16348 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16349 gcc_cv_ld_ro_rw_mix=unknown
16350 if test $in_tree_ld = yes ; then
16351 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 \
16352 && test $in_tree_ld_is_elf = yes; then
16353 gcc_cv_ld_ro_rw_mix=read-write
16354 fi
16355 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16356 echo '.section myfoosect, "a"' > conftest1.s
16357 echo '.section myfoosect, "aw"' > conftest2.s
16358 echo '.byte 1' >> conftest2.s
16359 echo '.section myfoosect, "a"' > conftest3.s
16360 echo '.byte 0' >> conftest3.s
16361 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16362 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16363 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16364 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16365 conftest2.o conftest3.o > /dev/null 2>&1; then
16366 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16367 | sed -e '/myfoosect/!d' -e N`
16368 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16369 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16370 gcc_cv_ld_ro_rw_mix=read-only
16371 else
16372 gcc_cv_ld_ro_rw_mix=read-write
16373 fi
16374 fi
16375 fi
16376 rm -f conftest.* conftest[123].*
16377 fi
16378 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16379
16380 cat >>confdefs.h <<\_ACEOF
16381 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16382 _ACEOF
16383
16384 fi
16385 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16386 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16387
16388 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16389 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16390 gcc_cv_ld_eh_frame_hdr=no
16391 if test $in_tree_ld = yes ; then
16392 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 \
16393 && test $in_tree_ld_is_elf = yes; then
16394 gcc_cv_ld_eh_frame_hdr=yes
16395 fi
16396 elif test x$gcc_cv_ld != x; then
16397 # Check if linker supports --eh-frame-hdr option
16398 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16399 gcc_cv_ld_eh_frame_hdr=yes
16400 fi
16401 fi
16402
16403 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16404
16405 cat >>confdefs.h <<\_ACEOF
16406 #define HAVE_LD_EH_FRAME_HDR 1
16407 _ACEOF
16408
16409 fi
16410 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16411 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16412
16413 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16414 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16415 gcc_cv_ld_pie=no
16416 if test $in_tree_ld = yes ; then
16417 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 \
16418 && test $in_tree_ld_is_elf = yes; then
16419 gcc_cv_ld_pie=yes
16420 fi
16421 elif test x$gcc_cv_ld != x; then
16422 # Check if linker supports -pie option
16423 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16424 gcc_cv_ld_pie=yes
16425 fi
16426 fi
16427 if test x"$gcc_cv_ld_pie" = xyes; then
16428
16429 cat >>confdefs.h <<\_ACEOF
16430 #define HAVE_LD_PIE 1
16431 _ACEOF
16432
16433 fi
16434 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16435 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16436
16437 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16438 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16439 gcc_cv_ld_eh_gc_sections=no
16440 if test $in_tree_ld = yes ; then
16441 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16442 && test $in_tree_ld_is_elf = yes; then
16443 gcc_cv_ld_eh_gc_sections=yes
16444 fi
16445 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16446 cat > conftest.s <<EOF
16447 .section .text
16448 .globl _start
16449 .type _start, @function
16450 _start:
16451 .long foo
16452 .size _start, .-_start
16453 .section .text.foo,"ax",@progbits
16454 .type foo, @function
16455 foo:
16456 .long 0
16457 .size foo, .-foo
16458 .section .gcc_except_table.foo,"a",@progbits
16459 .L0:
16460 .long 0
16461 .section .eh_frame,"a",@progbits
16462 .long .L0
16463 EOF
16464 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16465 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16466 | grep "gc-sections option ignored" > /dev/null; then
16467 gcc_cv_ld_eh_gc_sections=no
16468 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16469 gcc_cv_ld_eh_gc_sections=yes
16470 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16471 if test x$gcc_cv_as_comdat_group != xyes; then
16472 gcc_cv_ld_eh_gc_sections=no
16473 cat > conftest.s <<EOF
16474 .section .text
16475 .globl _start
16476 .type _start, @function
16477 _start:
16478 .long foo
16479 .size _start, .-_start
16480 .section .gnu.linkonce.t.foo,"ax",@progbits
16481 .type foo, @function
16482 foo:
16483 .long 0
16484 .size foo, .-foo
16485 .section .gcc_except_table.foo,"a",@progbits
16486 .L0:
16487 .long 0
16488 .section .eh_frame,"a",@progbits
16489 .long .L0
16490 EOF
16491 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16492 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16493 | grep "gc-sections option ignored" > /dev/null; then
16494 gcc_cv_ld_eh_gc_sections=no
16495 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16496 gcc_cv_ld_eh_gc_sections=yes
16497 fi
16498 fi
16499 fi
16500 fi
16501 fi
16502 rm -f conftest.s conftest.o conftest
16503 fi
16504 case "$target" in
16505 hppa*-*-linux*)
16506 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16507 gcc_cv_ld_eh_gc_sections=no
16508 ;;
16509 esac
16510 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16511
16512 cat >>confdefs.h <<\_ACEOF
16513 #define HAVE_LD_EH_GC_SECTIONS 1
16514 _ACEOF
16515
16516 fi
16517 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16518 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16519
16520 # --------
16521 # UNSORTED
16522 # --------
16523
16524 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16525 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16526 if test "${gcc_cv_ld_as_needed+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529 gcc_cv_ld_as_needed=no
16530 if test $in_tree_ld = yes ; then
16531 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 \
16532 && test $in_tree_ld_is_elf = yes; then
16533 gcc_cv_ld_as_needed=yes
16534 fi
16535 elif test x$gcc_cv_ld != x; then
16536 # Check if linker supports --as-needed and --no-as-needed options
16537 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16538 gcc_cv_ld_as_needed=yes
16539 fi
16540 fi
16541
16542 fi
16543 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16544 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16545 if test x"$gcc_cv_ld_as_needed" = xyes; then
16546
16547 cat >>confdefs.h <<\_ACEOF
16548 #define HAVE_LD_AS_NEEDED 1
16549 _ACEOF
16550
16551 fi
16552
16553 case "$target:$tm_file" in
16554 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16555 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16556 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16557 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560 gcc_cv_ld_no_dot_syms=no
16561 if test $in_tree_ld = yes ; then
16562 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
16563 gcc_cv_ld_no_dot_syms=yes
16564 fi
16565 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16566 cat > conftest1.s <<EOF
16567 .text
16568 bl .foo
16569 EOF
16570 cat > conftest2.s <<EOF
16571 .section ".opd","aw"
16572 .align 3
16573 .globl foo
16574 .type foo,@function
16575 foo:
16576 .quad .LEfoo,.TOC.@tocbase,0
16577 .text
16578 .LEfoo:
16579 blr
16580 .size foo,.-.LEfoo
16581 EOF
16582 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16583 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16584 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16585 gcc_cv_ld_no_dot_syms=yes
16586 fi
16587 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16588 fi
16589
16590 fi
16591 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16592 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16593 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16594
16595 cat >>confdefs.h <<\_ACEOF
16596 #define HAVE_LD_NO_DOT_SYMS 1
16597 _ACEOF
16598
16599 fi
16600 ;;
16601 esac
16602
16603 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16604 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16605 if test "${gcc_cv_ld_sysroot+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608 gcc_cv_ld_sysroot=no
16609 if test $in_tree_ld = yes ; then
16610 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
16611 gcc_cv_ld_sysroot=yes
16612 fi
16613 elif test x$gcc_cv_ld != x; then
16614 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16615 gcc_cv_ld_sysroot=yes
16616 fi
16617 fi
16618 fi
16619 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16620 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16621 if test x"$gcc_cv_ld_sysroot" = xyes; then
16622
16623 cat >>confdefs.h <<\_ACEOF
16624 #define HAVE_LD_SYSROOT 1
16625 _ACEOF
16626
16627 fi
16628
16629 if test x$with_sysroot = x && test x$host = x$target \
16630 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16631 && test "$prefix" != "NONE"; then
16632
16633 cat >>confdefs.h <<_ACEOF
16634 #define PREFIX_INCLUDE_DIR "$prefix/include"
16635 _ACEOF
16636
16637 fi
16638
16639 # Test for stack protector support in target C library.
16640 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16641 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16642 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645 gcc_cv_libc_provides_ssp=no
16646 case "$target" in
16647 *-*-linux*)
16648 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16649 if test "x$with_sysroot" = x; then
16650 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16651 elif test "x$with_build_sysroot" != "x"; then
16652 glibc_header_dir="${with_build_sysroot}/usr/include"
16653 elif test "x$with_sysroot" = xyes; then
16654 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16655 else
16656 glibc_header_dir="${with_sysroot}/usr/include"
16657 fi
16658 else
16659 glibc_header_dir=/usr/include
16660 fi
16661 # glibc 2.4 and later provides __stack_chk_fail and
16662 # either __stack_chk_guard, or TLS access to stack guard canary.
16663 if test -f $glibc_header_dir/features.h \
16664 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16665 $glibc_header_dir/features.h > /dev/null; then
16666 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16667 $glibc_header_dir/features.h > /dev/null; then
16668 gcc_cv_libc_provides_ssp=yes
16669 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16670 $glibc_header_dir/features.h > /dev/null \
16671 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16672 $glibc_header_dir/features.h > /dev/null; then
16673 gcc_cv_libc_provides_ssp=yes
16674 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
16675 $glibc_header_dir/features.h > /dev/null && \
16676 test -f $glibc_header_dir/bits/uClibc_config.h && \
16677 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
16678 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
16679 gcc_cv_libc_provides_ssp=yes
16680 fi
16681 fi
16682 ;;
16683 *-*-darwin*)
16684 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16685 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16686 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 else
16689 cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h. */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16697 #define __stack_chk_fail innocuous___stack_chk_fail
16698
16699 /* System header to define __stub macros and hopefully few prototypes,
16700 which can conflict with char __stack_chk_fail (); below.
16701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16702 <limits.h> exists even on freestanding compilers. */
16703
16704 #ifdef __STDC__
16705 # include <limits.h>
16706 #else
16707 # include <assert.h>
16708 #endif
16709
16710 #undef __stack_chk_fail
16711
16712 /* Override any gcc2 internal prototype to avoid an error. */
16713 #ifdef __cplusplus
16714 extern "C"
16715 {
16716 #endif
16717 /* We use char because int might match the return type of a gcc2
16718 builtin and then its argument prototype would still apply. */
16719 char __stack_chk_fail ();
16720 /* The GNU C library defines this for functions which it implements
16721 to always fail with ENOSYS. Some functions are actually named
16722 something starting with __ and the normal name is an alias. */
16723 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16724 choke me
16725 #else
16726 char (*f) () = __stack_chk_fail;
16727 #endif
16728 #ifdef __cplusplus
16729 }
16730 #endif
16731
16732 int
16733 main ()
16734 {
16735 return f != __stack_chk_fail;
16736 ;
16737 return 0;
16738 }
16739 _ACEOF
16740 rm -f conftest.$ac_objext conftest$ac_exeext
16741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16742 (eval $ac_link) 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -z "$ac_c_werror_flag"
16750 || test ! -s conftest.err'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest$ac_exeext'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_cv_func___stack_chk_fail=yes
16763 else
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767 ac_cv_func___stack_chk_fail=no
16768 fi
16769 rm -f conftest.err conftest.$ac_objext \
16770 conftest$ac_exeext conftest.$ac_ext
16771 fi
16772 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16773 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16774 if test $ac_cv_func___stack_chk_fail = yes; then
16775 gcc_cv_libc_provides_ssp=yes
16776 else
16777 echo "no __stack_chk_fail on this target"
16778 fi
16779
16780 ;;
16781 *) gcc_cv_libc_provides_ssp=no ;;
16782 esac
16783 fi
16784 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16785 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16786
16787 if test x$gcc_cv_libc_provides_ssp = xyes; then
16788
16789 cat >>confdefs.h <<\_ACEOF
16790 #define TARGET_LIBC_PROVIDES_SSP 1
16791 _ACEOF
16792
16793 fi
16794
16795 # Check if TFmode long double should be used by default or not.
16796 # Some glibc targets used DFmode long double, but with glibc 2.4
16797 # and later they can use TFmode.
16798 case "$target" in
16799 powerpc*-*-linux* | \
16800 powerpc*-*-gnu* | \
16801 sparc*-*-linux* | \
16802 s390*-*-linux* | \
16803 alpha*-*-linux*)
16804
16805 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16806 if test "${with_long_double_128+set}" = set; then
16807 withval="$with_long_double_128"
16808 gcc_cv_target_ldbl128="$with_long_double_128"
16809 else
16810 gcc_cv_target_ldbl128=no
16811 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16812 if test "x$with_sysroot" = x; then
16813 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16814 elif test "x$with_build_sysroot" != "x"; then
16815 glibc_header_dir="${with_build_sysroot}/usr/include"
16816 elif test "x$with_sysroot" = xyes; then
16817 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16818 else
16819 glibc_header_dir="${with_sysroot}/usr/include"
16820 fi
16821 else
16822 glibc_header_dir=/usr/include
16823 fi
16824 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16825 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16826 && gcc_cv_target_ldbl128=yes
16827
16828 fi;
16829 ;;
16830 esac
16831 if test x$gcc_cv_target_ldbl128 = xyes; then
16832
16833 cat >>confdefs.h <<\_ACEOF
16834 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16835 _ACEOF
16836
16837 fi
16838
16839 # Find out what GC implementation we want, or may, use.
16840
16841 # Check whether --with-gc or --without-gc was given.
16842 if test "${with_gc+set}" = set; then
16843 withval="$with_gc"
16844 case "$withval" in
16845 page)
16846 GGC=ggc-$withval
16847 ;;
16848 zone)
16849 GGC=ggc-$withval
16850
16851 cat >>confdefs.h <<\_ACEOF
16852 #define GGC_ZONE 1
16853 _ACEOF
16854
16855 ;;
16856 *)
16857 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16858 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16859 { (exit 1); exit 1; }; }
16860 ;;
16861 esac
16862 else
16863 GGC=ggc-page
16864 fi;
16865
16866 echo "Using $GGC for garbage collection."
16867
16868 # Use the system's zlib library.
16869 zlibdir=-L../zlib
16870 zlibinc="-I\$(srcdir)/../zlib"
16871
16872 # Check whether --with-system-zlib or --without-system-zlib was given.
16873 if test "${with_system_zlib+set}" = set; then
16874 withval="$with_system_zlib"
16875 zlibdir=
16876 zlibinc=
16877
16878 fi;
16879
16880
16881
16882
16883 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16884 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16885 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16886 if test "${enable_maintainer_mode+set}" = set; then
16887 enableval="$enable_maintainer_mode"
16888 maintainer_mode=$enableval
16889 else
16890 maintainer_mode=no
16891 fi;
16892
16893 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16894 echo "${ECHO_T}$maintainer_mode" >&6
16895
16896 if test "$maintainer_mode" = "yes"; then
16897 MAINT=''
16898 else
16899 MAINT='#'
16900 fi
16901
16902 # --------------
16903 # Language hooks
16904 # --------------
16905
16906 # Make empty files to contain the specs and options for each language.
16907 # Then add #include lines to for a compiler that has specs and/or options.
16908
16909 subdirs=
16910 lang_opt_files=
16911 lang_specs_files=
16912 lang_tree_files=
16913 # These (without "all_") are set in each config-lang.in.
16914 # `language' must be a single word so is spelled singularly.
16915 all_languages=
16916 all_compilers=
16917 all_outputs='Makefile gccbug libada-mk'
16918 # List of language makefile fragments.
16919 all_lang_makefrags=
16920 # List of language subdirectory makefiles. Deprecated.
16921 all_lang_makefiles=
16922 # Additional files for gengtype
16923 all_gtfiles="$target_gtfiles"
16924
16925 # These are the languages that are set in --enable-languages,
16926 # and are available in the GCC tree.
16927 all_selected_languages=
16928
16929 # Add the language fragments.
16930 # Languages are added via two mechanisms. Some information must be
16931 # recorded in makefile variables, these are defined in config-lang.in.
16932 # We accumulate them and plug them into the main Makefile.
16933 # The other mechanism is a set of hooks for each of the main targets
16934 # like `clean', `install', etc.
16935
16936 language_hooks="Make-hooks"
16937
16938 for lang in ${srcdir}/*/config-lang.in
16939 do
16940 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16941
16942 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16943 if test "x$lang_alias" = x
16944 then
16945 echo "$lang doesn't set \$language." 1>&2
16946 exit 1
16947 fi
16948 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16949 subdirs="$subdirs $subdir"
16950 case ",$enable_languages," in
16951 *,$lang_alias,*)
16952 all_selected_languages="$all_selected_languages $lang_alias"
16953 if test -f $srcdir/$subdir/lang-specs.h; then
16954 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16955 fi
16956 ;;
16957 esac
16958
16959 language=
16960 boot_language=
16961 compilers=
16962 outputs=
16963 gtfiles=
16964 subdir_requires=
16965 . ${srcdir}/$subdir/config-lang.in
16966 if test "x$language" = x
16967 then
16968 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16969 exit 1
16970 fi
16971
16972 ok=:
16973 case ",$enable_languages," in
16974 *,$lang_alias,*) ;;
16975 *)
16976 for i in $subdir_requires; do
16977 test -f "${srcdir}/$i/config-lang.in" && continue
16978 ok=false
16979 break
16980 done
16981 ;;
16982 esac
16983 $ok || continue
16984
16985 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16986 if test -f $srcdir/$subdir/lang.opt; then
16987 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16988 fi
16989 if test -f $srcdir/$subdir/$subdir-tree.def; then
16990 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16991 fi
16992 if test -f ${srcdir}/$subdir/Makefile.in
16993 then all_lang_makefiles="$subdir/Makefile"
16994 fi
16995 all_languages="$all_languages $language"
16996 all_compilers="$all_compilers $compilers"
16997 all_outputs="$all_outputs $outputs"
16998 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
16999 done
17000
17001 # Pick up gtfiles for c
17002 gtfiles=
17003 . ${srcdir}/c-config-lang.in
17004 all_gtfiles="$all_gtfiles [c] $gtfiles"
17005
17006 check_languages=
17007 for language in $all_selected_languages
17008 do
17009 check_languages="$check_languages check-$language"
17010 done
17011
17012 # We link each language in with a set of hooks, reached indirectly via
17013 # lang.${target}. Only do so for selected languages.
17014
17015 rm -f Make-hooks
17016 touch Make-hooks
17017 target_list="all.cross start.encap rest.encap tags \
17018 install-common install-man install-info install-pdf dvi pdf \
17019 html uninstall info man srcextra srcman srcinfo \
17020 mostlyclean clean distclean maintainer-clean"
17021
17022 for t in $target_list
17023 do
17024 x=
17025 for lang in $all_selected_languages
17026 do
17027 x="$x $lang.$t"
17028 done
17029 echo "lang.$t: $x" >> Make-hooks
17030 done
17031
17032 # --------
17033 # UNSORTED
17034 # --------
17035
17036 # Create .gdbinit.
17037
17038 echo "dir ." > .gdbinit
17039 echo "dir ${srcdir}" >> .gdbinit
17040 if test x$gdb_needs_out_file_path = xyes
17041 then
17042 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17043 fi
17044 if test "x$subdirs" != x; then
17045 for s in $subdirs
17046 do
17047 echo "dir ${srcdir}/$s" >> .gdbinit
17048 done
17049 fi
17050 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17051
17052 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17053
17054
17055
17056 # Find a directory in which to install a shared libgcc.
17057
17058 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17059 if test "${enable_version_specific_runtime_libs+set}" = set; then
17060 enableval="$enable_version_specific_runtime_libs"
17061
17062 fi;
17063
17064
17065 # Check whether --with-slibdir or --without-slibdir was given.
17066 if test "${with_slibdir+set}" = set; then
17067 withval="$with_slibdir"
17068 slibdir="$with_slibdir"
17069 else
17070 if test "${enable_version_specific_runtime_libs+set}" = set; then
17071 slibdir='$(libsubdir)'
17072 elif test "$host" != "$target"; then
17073 slibdir='$(build_tooldir)/lib'
17074 else
17075 slibdir='$(libdir)'
17076 fi
17077 fi;
17078
17079
17080 objdir=`${PWDCMD-pwd}`
17081
17082
17083
17084 # Check whether --with-datarootdir or --without-datarootdir was given.
17085 if test "${with_datarootdir+set}" = set; then
17086 withval="$with_datarootdir"
17087 datarootdir="\${prefix}/$with_datarootdir"
17088 else
17089 datarootdir='$(prefix)/share'
17090 fi;
17091
17092
17093
17094 # Check whether --with-docdir or --without-docdir was given.
17095 if test "${with_docdir+set}" = set; then
17096 withval="$with_docdir"
17097 docdir="\${prefix}/$with_docdir"
17098 else
17099 docdir='$(datarootdir)'
17100 fi;
17101
17102
17103
17104 # Check whether --with-htmldir or --without-htmldir was given.
17105 if test "${with_htmldir+set}" = set; then
17106 withval="$with_htmldir"
17107 htmldir="\${prefix}/$with_htmldir"
17108 else
17109 htmldir='$(docdir)'
17110 fi;
17111
17112
17113 # Substitute configuration variables
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169 # Echo link setup.
17170 if test x${build} = x${host} ; then
17171 if test x${host} = x${target} ; then
17172 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17173 else
17174 echo "Links are now set up to build a cross-compiler" 1>&2
17175 echo " from ${host} to ${target}." 1>&2
17176 fi
17177 else
17178 if test x${host} = x${target} ; then
17179 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17180 echo " for ${target}." 1>&2
17181 else
17182 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17183 echo " from ${host} to ${target}." 1>&2
17184 fi
17185 fi
17186
17187
17188
17189
17190 # Configure the subdirectories
17191 # AC_CONFIG_SUBDIRS($subdirs)
17192
17193 # Create the Makefile
17194 # and configure language subdirectories
17195 ac_config_files="$ac_config_files $all_outputs"
17196
17197
17198 ac_config_commands="$ac_config_commands default"
17199
17200 cat >confcache <<\_ACEOF
17201 # This file is a shell script that caches the results of configure
17202 # tests run on this system so they can be shared between configure
17203 # scripts and configure runs, see configure's option --config-cache.
17204 # It is not useful on other systems. If it contains results you don't
17205 # want to keep, you may remove or edit it.
17206 #
17207 # config.status only pays attention to the cache file if you give it
17208 # the --recheck option to rerun configure.
17209 #
17210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17212 # following values.
17213
17214 _ACEOF
17215
17216 # The following way of writing the cache mishandles newlines in values,
17217 # but we know of no workaround that is simple, portable, and efficient.
17218 # So, don't put newlines in cache variables' values.
17219 # Ultrix sh set writes to stderr and can't be redirected directly,
17220 # and sets the high bit in the cache file unless we assign to the vars.
17221 {
17222 (set) 2>&1 |
17223 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17224 *ac_space=\ *)
17225 # `set' does not quote correctly, so add quotes (double-quote
17226 # substitution turns \\\\ into \\, and sed turns \\ into \).
17227 sed -n \
17228 "s/'/'\\\\''/g;
17229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17230 ;;
17231 *)
17232 # `set' quotes correctly as required by POSIX, so do not add quotes.
17233 sed -n \
17234 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17235 ;;
17236 esac;
17237 } |
17238 sed '
17239 t clear
17240 : clear
17241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17242 t end
17243 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17244 : end' >>confcache
17245 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17246 if test -w $cache_file; then
17247 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17248 cat confcache >$cache_file
17249 else
17250 echo "not updating unwritable cache $cache_file"
17251 fi
17252 fi
17253 rm -f confcache
17254
17255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17256 # Let make expand exec_prefix.
17257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17258
17259 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17260 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17261 # trailing colons and then remove the whole line if VPATH becomes empty
17262 # (actually we leave an empty line to preserve line numbers).
17263 if test "x$srcdir" = x.; then
17264 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17265 s/:*\$(srcdir):*/:/;
17266 s/:*\${srcdir}:*/:/;
17267 s/:*@srcdir@:*/:/;
17268 s/^\([^=]*=[ ]*\):*/\1/;
17269 s/:*$//;
17270 s/^[^=]*=[ ]*$//;
17271 }'
17272 fi
17273
17274 DEFS=-DHAVE_CONFIG_H
17275
17276 ac_libobjs=
17277 ac_ltlibobjs=
17278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17279 # 1. Remove the extension, and $U if already installed.
17280 ac_i=`echo "$ac_i" |
17281 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17282 # 2. Add them.
17283 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17284 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17285 done
17286 LIBOBJS=$ac_libobjs
17287
17288 LTLIBOBJS=$ac_ltlibobjs
17289
17290
17291
17292 : ${CONFIG_STATUS=./config.status}
17293 ac_clean_files_save=$ac_clean_files
17294 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17295 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17296 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17297 cat >$CONFIG_STATUS <<_ACEOF
17298 #! $SHELL
17299 # Generated by $as_me.
17300 # Run this file to recreate the current configuration.
17301 # Compiler output produced by configure, useful for debugging
17302 # configure, is in config.log if it exists.
17303
17304 debug=false
17305 ac_cs_recheck=false
17306 ac_cs_silent=false
17307 SHELL=\${CONFIG_SHELL-$SHELL}
17308 _ACEOF
17309
17310 cat >>$CONFIG_STATUS <<\_ACEOF
17311 ## --------------------- ##
17312 ## M4sh Initialization. ##
17313 ## --------------------- ##
17314
17315 # Be Bourne compatible
17316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17317 emulate sh
17318 NULLCMD=:
17319 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17320 # is contrary to our usage. Disable this feature.
17321 alias -g '${1+"$@"}'='"$@"'
17322 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17323 set -o posix
17324 fi
17325 DUALCASE=1; export DUALCASE # for MKS sh
17326
17327 # Support unset when possible.
17328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17329 as_unset=unset
17330 else
17331 as_unset=false
17332 fi
17333
17334
17335 # Work around bugs in pre-3.0 UWIN ksh.
17336 $as_unset ENV MAIL MAILPATH
17337 PS1='$ '
17338 PS2='> '
17339 PS4='+ '
17340
17341 # NLS nuisances.
17342 for as_var in \
17343 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17344 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17345 LC_TELEPHONE LC_TIME
17346 do
17347 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17348 eval $as_var=C; export $as_var
17349 else
17350 $as_unset $as_var
17351 fi
17352 done
17353
17354 # Required to use basename.
17355 if expr a : '\(a\)' >/dev/null 2>&1; then
17356 as_expr=expr
17357 else
17358 as_expr=false
17359 fi
17360
17361 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17362 as_basename=basename
17363 else
17364 as_basename=false
17365 fi
17366
17367
17368 # Name of the executable.
17369 as_me=`$as_basename "$0" ||
17370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17371 X"$0" : 'X\(//\)$' \| \
17372 X"$0" : 'X\(/\)$' \| \
17373 . : '\(.\)' 2>/dev/null ||
17374 echo X/"$0" |
17375 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17376 /^X\/\(\/\/\)$/{ s//\1/; q; }
17377 /^X\/\(\/\).*/{ s//\1/; q; }
17378 s/.*/./; q'`
17379
17380
17381 # PATH needs CR, and LINENO needs CR and PATH.
17382 # Avoid depending upon Character Ranges.
17383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17386 as_cr_digits='0123456789'
17387 as_cr_alnum=$as_cr_Letters$as_cr_digits
17388
17389 # The user is always right.
17390 if test "${PATH_SEPARATOR+set}" != set; then
17391 echo "#! /bin/sh" >conf$$.sh
17392 echo "exit 0" >>conf$$.sh
17393 chmod +x conf$$.sh
17394 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17395 PATH_SEPARATOR=';'
17396 else
17397 PATH_SEPARATOR=:
17398 fi
17399 rm -f conf$$.sh
17400 fi
17401
17402
17403 as_lineno_1=$LINENO
17404 as_lineno_2=$LINENO
17405 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17406 test "x$as_lineno_1" != "x$as_lineno_2" &&
17407 test "x$as_lineno_3" = "x$as_lineno_2" || {
17408 # Find who we are. Look in the path if we contain no path at all
17409 # relative or not.
17410 case $0 in
17411 *[\\/]* ) as_myself=$0 ;;
17412 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17413 for as_dir in $PATH
17414 do
17415 IFS=$as_save_IFS
17416 test -z "$as_dir" && as_dir=.
17417 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17418 done
17419
17420 ;;
17421 esac
17422 # We did not find ourselves, most probably we were run as `sh COMMAND'
17423 # in which case we are not to be found in the path.
17424 if test "x$as_myself" = x; then
17425 as_myself=$0
17426 fi
17427 if test ! -f "$as_myself"; then
17428 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17429 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17430 { (exit 1); exit 1; }; }
17431 fi
17432 case $CONFIG_SHELL in
17433 '')
17434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17435 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17436 do
17437 IFS=$as_save_IFS
17438 test -z "$as_dir" && as_dir=.
17439 for as_base in sh bash ksh sh5; do
17440 case $as_dir in
17441 /*)
17442 if ("$as_dir/$as_base" -c '
17443 as_lineno_1=$LINENO
17444 as_lineno_2=$LINENO
17445 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17446 test "x$as_lineno_1" != "x$as_lineno_2" &&
17447 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17448 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17449 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17450 CONFIG_SHELL=$as_dir/$as_base
17451 export CONFIG_SHELL
17452 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17453 fi;;
17454 esac
17455 done
17456 done
17457 ;;
17458 esac
17459
17460 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17461 # uniformly replaced by the line number. The first 'sed' inserts a
17462 # line-number line before each line; the second 'sed' does the real
17463 # work. The second script uses 'N' to pair each line-number line
17464 # with the numbered line, and appends trailing '-' during
17465 # substitution so that $LINENO is not a special case at line end.
17466 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17467 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17468 sed '=' <$as_myself |
17469 sed '
17470 N
17471 s,$,-,
17472 : loop
17473 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17474 t loop
17475 s,-$,,
17476 s,^['$as_cr_digits']*\n,,
17477 ' >$as_me.lineno &&
17478 chmod +x $as_me.lineno ||
17479 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17480 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17481 { (exit 1); exit 1; }; }
17482
17483 # Don't try to exec as it changes $[0], causing all sort of problems
17484 # (the dirname of $[0] is not the place where we might find the
17485 # original and so on. Autoconf is especially sensible to this).
17486 . ./$as_me.lineno
17487 # Exit status is that of the last command.
17488 exit
17489 }
17490
17491
17492 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17493 *c*,-n*) ECHO_N= ECHO_C='
17494 ' ECHO_T=' ' ;;
17495 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17496 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17497 esac
17498
17499 if expr a : '\(a\)' >/dev/null 2>&1; then
17500 as_expr=expr
17501 else
17502 as_expr=false
17503 fi
17504
17505 rm -f conf$$ conf$$.exe conf$$.file
17506 echo >conf$$.file
17507 if ln -s conf$$.file conf$$ 2>/dev/null; then
17508 # We could just check for DJGPP; but this test a) works b) is more generic
17509 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17510 if test -f conf$$.exe; then
17511 # Don't use ln at all; we don't have any links
17512 as_ln_s='cp -p'
17513 else
17514 as_ln_s='ln -s'
17515 fi
17516 elif ln conf$$.file conf$$ 2>/dev/null; then
17517 as_ln_s=ln
17518 else
17519 as_ln_s='cp -p'
17520 fi
17521 rm -f conf$$ conf$$.exe conf$$.file
17522
17523 if mkdir -p . 2>/dev/null; then
17524 as_mkdir_p=:
17525 else
17526 test -d ./-p && rmdir ./-p
17527 as_mkdir_p=false
17528 fi
17529
17530 as_executable_p="test -f"
17531
17532 # Sed expression to map a string onto a valid CPP name.
17533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17534
17535 # Sed expression to map a string onto a valid variable name.
17536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17537
17538
17539 # IFS
17540 # We need space, tab and new line, in precisely that order.
17541 as_nl='
17542 '
17543 IFS=" $as_nl"
17544
17545 # CDPATH.
17546 $as_unset CDPATH
17547
17548 exec 6>&1
17549
17550 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17551 # report actual input values of CONFIG_FILES etc. instead of their
17552 # values after options handling. Logging --version etc. is OK.
17553 exec 5>>config.log
17554 {
17555 echo
17556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17557 ## Running $as_me. ##
17558 _ASBOX
17559 } >&5
17560 cat >&5 <<_CSEOF
17561
17562 This file was extended by $as_me, which was
17563 generated by GNU Autoconf 2.59. Invocation command line was
17564
17565 CONFIG_FILES = $CONFIG_FILES
17566 CONFIG_HEADERS = $CONFIG_HEADERS
17567 CONFIG_LINKS = $CONFIG_LINKS
17568 CONFIG_COMMANDS = $CONFIG_COMMANDS
17569 $ $0 $@
17570
17571 _CSEOF
17572 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17573 echo >&5
17574 _ACEOF
17575
17576 # Files that config.status was made for.
17577 if test -n "$ac_config_files"; then
17578 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17579 fi
17580
17581 if test -n "$ac_config_headers"; then
17582 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17583 fi
17584
17585 if test -n "$ac_config_links"; then
17586 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17587 fi
17588
17589 if test -n "$ac_config_commands"; then
17590 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17591 fi
17592
17593 cat >>$CONFIG_STATUS <<\_ACEOF
17594
17595 ac_cs_usage="\
17596 \`$as_me' instantiates files from templates according to the
17597 current configuration.
17598
17599 Usage: $0 [OPTIONS] [FILE]...
17600
17601 -h, --help print this help, then exit
17602 -V, --version print version number, then exit
17603 -q, --quiet do not print progress messages
17604 -d, --debug don't remove temporary files
17605 --recheck update $as_me by reconfiguring in the same conditions
17606 --file=FILE[:TEMPLATE]
17607 instantiate the configuration file FILE
17608 --header=FILE[:TEMPLATE]
17609 instantiate the configuration header FILE
17610
17611 Configuration files:
17612 $config_files
17613
17614 Configuration headers:
17615 $config_headers
17616
17617 Configuration commands:
17618 $config_commands
17619
17620 Report bugs to <bug-autoconf@gnu.org>."
17621 _ACEOF
17622
17623 cat >>$CONFIG_STATUS <<_ACEOF
17624 ac_cs_version="\\
17625 config.status
17626 configured by $0, generated by GNU Autoconf 2.59,
17627 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17628
17629 Copyright (C) 2003 Free Software Foundation, Inc.
17630 This config.status script is free software; the Free Software Foundation
17631 gives unlimited permission to copy, distribute and modify it."
17632 srcdir=$srcdir
17633 _ACEOF
17634
17635 cat >>$CONFIG_STATUS <<\_ACEOF
17636 # If no file are specified by the user, then we need to provide default
17637 # value. By we need to know if files were specified by the user.
17638 ac_need_defaults=:
17639 while test $# != 0
17640 do
17641 case $1 in
17642 --*=*)
17643 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17644 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17645 ac_shift=:
17646 ;;
17647 -*)
17648 ac_option=$1
17649 ac_optarg=$2
17650 ac_shift=shift
17651 ;;
17652 *) # This is not an option, so the user has probably given explicit
17653 # arguments.
17654 ac_option=$1
17655 ac_need_defaults=false;;
17656 esac
17657
17658 case $ac_option in
17659 # Handling of the options.
17660 _ACEOF
17661 cat >>$CONFIG_STATUS <<\_ACEOF
17662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17663 ac_cs_recheck=: ;;
17664 --version | --vers* | -V )
17665 echo "$ac_cs_version"; exit 0 ;;
17666 --he | --h)
17667 # Conflict between --help and --header
17668 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17669 Try \`$0 --help' for more information." >&5
17670 echo "$as_me: error: ambiguous option: $1
17671 Try \`$0 --help' for more information." >&2;}
17672 { (exit 1); exit 1; }; };;
17673 --help | --hel | -h )
17674 echo "$ac_cs_usage"; exit 0 ;;
17675 --debug | --d* | -d )
17676 debug=: ;;
17677 --file | --fil | --fi | --f )
17678 $ac_shift
17679 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17680 ac_need_defaults=false;;
17681 --header | --heade | --head | --hea )
17682 $ac_shift
17683 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17684 ac_need_defaults=false;;
17685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17686 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17687 ac_cs_silent=: ;;
17688
17689 # This is an error.
17690 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17691 Try \`$0 --help' for more information." >&5
17692 echo "$as_me: error: unrecognized option: $1
17693 Try \`$0 --help' for more information." >&2;}
17694 { (exit 1); exit 1; }; } ;;
17695
17696 *) ac_config_targets="$ac_config_targets $1" ;;
17697
17698 esac
17699 shift
17700 done
17701
17702 ac_configure_extra_args=
17703
17704 if $ac_cs_silent; then
17705 exec 6>/dev/null
17706 ac_configure_extra_args="$ac_configure_extra_args --silent"
17707 fi
17708
17709 _ACEOF
17710 cat >>$CONFIG_STATUS <<_ACEOF
17711 if \$ac_cs_recheck; then
17712 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17713 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17714 fi
17715
17716 _ACEOF
17717
17718 cat >>$CONFIG_STATUS <<_ACEOF
17719 #
17720 # INIT-COMMANDS section.
17721 #
17722
17723 subdirs='$subdirs'
17724
17725 _ACEOF
17726
17727
17728
17729 cat >>$CONFIG_STATUS <<\_ACEOF
17730 for ac_config_target in $ac_config_targets
17731 do
17732 case "$ac_config_target" in
17733 # Handling of arguments.
17734 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
17735 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17736 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
17737 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17738 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17739 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17740 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17741 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17742 { (exit 1); exit 1; }; };;
17743 esac
17744 done
17745
17746 # If the user did not use the arguments to specify the items to instantiate,
17747 # then the envvar interface is used. Set only those that are not.
17748 # We use the long form for the default assignment because of an extremely
17749 # bizarre bug on SunOS 4.1.3.
17750 if $ac_need_defaults; then
17751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17754 fi
17755
17756 # Have a temporary directory for convenience. Make it in the build tree
17757 # simply because there is no reason to put it here, and in addition,
17758 # creating and moving files from /tmp can sometimes cause problems.
17759 # Create a temporary directory, and hook for its removal unless debugging.
17760 $debug ||
17761 {
17762 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17763 trap '{ (exit 1); exit 1; }' 1 2 13 15
17764 }
17765
17766 # Create a (secure) tmp directory for tmp files.
17767
17768 {
17769 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17770 test -n "$tmp" && test -d "$tmp"
17771 } ||
17772 {
17773 tmp=./confstat$$-$RANDOM
17774 (umask 077 && mkdir $tmp)
17775 } ||
17776 {
17777 echo "$me: cannot create a temporary directory in ." >&2
17778 { (exit 1); exit 1; }
17779 }
17780
17781 _ACEOF
17782
17783 cat >>$CONFIG_STATUS <<_ACEOF
17784
17785 #
17786 # CONFIG_FILES section.
17787 #
17788
17789 # No need to generate the scripts if there are no CONFIG_FILES.
17790 # This happens for instance when ./config.status config.h
17791 if test -n "\$CONFIG_FILES"; then
17792 # Protect against being on the right side of a sed subst in config.status.
17793 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17794 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17795 s,@SHELL@,$SHELL,;t t
17796 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17797 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17798 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17799 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17800 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17801 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17802 s,@exec_prefix@,$exec_prefix,;t t
17803 s,@prefix@,$prefix,;t t
17804 s,@program_transform_name@,$program_transform_name,;t t
17805 s,@bindir@,$bindir,;t t
17806 s,@sbindir@,$sbindir,;t t
17807 s,@libexecdir@,$libexecdir,;t t
17808 s,@datadir@,$datadir,;t t
17809 s,@sysconfdir@,$sysconfdir,;t t
17810 s,@sharedstatedir@,$sharedstatedir,;t t
17811 s,@localstatedir@,$localstatedir,;t t
17812 s,@libdir@,$libdir,;t t
17813 s,@includedir@,$includedir,;t t
17814 s,@oldincludedir@,$oldincludedir,;t t
17815 s,@infodir@,$infodir,;t t
17816 s,@mandir@,$mandir,;t t
17817 s,@build_alias@,$build_alias,;t t
17818 s,@host_alias@,$host_alias,;t t
17819 s,@target_alias@,$target_alias,;t t
17820 s,@DEFS@,$DEFS,;t t
17821 s,@ECHO_C@,$ECHO_C,;t t
17822 s,@ECHO_N@,$ECHO_N,;t t
17823 s,@ECHO_T@,$ECHO_T,;t t
17824 s,@LIBS@,$LIBS,;t t
17825 s,@build@,$build,;t t
17826 s,@build_cpu@,$build_cpu,;t t
17827 s,@build_vendor@,$build_vendor,;t t
17828 s,@build_os@,$build_os,;t t
17829 s,@host@,$host,;t t
17830 s,@host_cpu@,$host_cpu,;t t
17831 s,@host_vendor@,$host_vendor,;t t
17832 s,@host_os@,$host_os,;t t
17833 s,@target@,$target,;t t
17834 s,@target_cpu@,$target_cpu,;t t
17835 s,@target_vendor@,$target_vendor,;t t
17836 s,@target_os@,$target_os,;t t
17837 s,@target_noncanonical@,$target_noncanonical,;t t
17838 s,@build_libsubdir@,$build_libsubdir,;t t
17839 s,@build_subdir@,$build_subdir,;t t
17840 s,@host_subdir@,$host_subdir,;t t
17841 s,@target_subdir@,$target_subdir,;t t
17842 s,@GENINSRC@,$GENINSRC,;t t
17843 s,@CC@,$CC,;t t
17844 s,@CFLAGS@,$CFLAGS,;t t
17845 s,@LDFLAGS@,$LDFLAGS,;t t
17846 s,@CPPFLAGS@,$CPPFLAGS,;t t
17847 s,@ac_ct_CC@,$ac_ct_CC,;t t
17848 s,@EXEEXT@,$EXEEXT,;t t
17849 s,@OBJEXT@,$OBJEXT,;t t
17850 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17851 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17852 s,@CPP@,$CPP,;t t
17853 s,@EGREP@,$EGREP,;t t
17854 s,@loose_warn@,$loose_warn,;t t
17855 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17856 s,@strict_warn@,$strict_warn,;t t
17857 s,@warn_cflags@,$warn_cflags,;t t
17858 s,@nocommon_flag@,$nocommon_flag,;t t
17859 s,@TREEBROWSER@,$TREEBROWSER,;t t
17860 s,@valgrind_path@,$valgrind_path,;t t
17861 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17862 s,@valgrind_command@,$valgrind_command,;t t
17863 s,@coverage_flags@,$coverage_flags,;t t
17864 s,@enable_multilib@,$enable_multilib,;t t
17865 s,@enable_decimal_float@,$enable_decimal_float,;t t
17866 s,@enable_fixed_point@,$enable_fixed_point,;t t
17867 s,@enable_shared@,$enable_shared,;t t
17868 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17869 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17870 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17871 s,@onestep@,$onestep,;t t
17872 s,@PKGVERSION@,$PKGVERSION,;t t
17873 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
17874 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
17875 s,@datarootdir@,$datarootdir,;t t
17876 s,@docdir@,$docdir,;t t
17877 s,@htmldir@,$htmldir,;t t
17878 s,@SET_MAKE@,$SET_MAKE,;t t
17879 s,@AWK@,$AWK,;t t
17880 s,@LN_S@,$LN_S,;t t
17881 s,@LN@,$LN,;t t
17882 s,@RANLIB@,$RANLIB,;t t
17883 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17884 s,@ranlib_flags@,$ranlib_flags,;t t
17885 s,@INSTALL@,$INSTALL,;t t
17886 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17887 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17888 s,@make_compare_target@,$make_compare_target,;t t
17889 s,@have_mktemp_command@,$have_mktemp_command,;t t
17890 s,@MAKEINFO@,$MAKEINFO,;t t
17891 s,@BUILD_INFO@,$BUILD_INFO,;t t
17892 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17893 s,@FLEX@,$FLEX,;t t
17894 s,@BISON@,$BISON,;t t
17895 s,@NM@,$NM,;t t
17896 s,@AR@,$AR,;t t
17897 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17898 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17899 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17900 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17901 s,@LIBICONV@,$LIBICONV,;t t
17902 s,@LTLIBICONV@,$LTLIBICONV,;t t
17903 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17904 s,@manext@,$manext,;t t
17905 s,@objext@,$objext,;t t
17906 s,@gthread_flags@,$gthread_flags,;t t
17907 s,@extra_modes_file@,$extra_modes_file,;t t
17908 s,@extra_opt_files@,$extra_opt_files,;t t
17909 s,@USE_NLS@,$USE_NLS,;t t
17910 s,@LIBINTL@,$LIBINTL,;t t
17911 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17912 s,@INCINTL@,$INCINTL,;t t
17913 s,@XGETTEXT@,$XGETTEXT,;t t
17914 s,@GMSGFMT@,$GMSGFMT,;t t
17915 s,@POSUB@,$POSUB,;t t
17916 s,@CATALOGS@,$CATALOGS,;t t
17917 s,@DATADIRNAME@,$DATADIRNAME,;t t
17918 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17919 s,@GENCAT@,$GENCAT,;t t
17920 s,@CATOBJEXT@,$CATOBJEXT,;t t
17921 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17922 s,@CROSS@,$CROSS,;t t
17923 s,@ALL@,$ALL,;t t
17924 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17925 s,@inhibit_libc@,$inhibit_libc,;t t
17926 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17927 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17928 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17929 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17930 s,@collect2@,$collect2,;t t
17931 s,@gcc_cv_as@,$gcc_cv_as,;t t
17932 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17933 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17934 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17935 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17936 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17937 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17938 s,@libgcc_visibility@,$libgcc_visibility,;t t
17939 s,@GGC@,$GGC,;t t
17940 s,@zlibdir@,$zlibdir,;t t
17941 s,@zlibinc@,$zlibinc,;t t
17942 s,@MAINT@,$MAINT,;t t
17943 s,@gcc_tooldir@,$gcc_tooldir,;t t
17944 s,@dollar@,$dollar,;t t
17945 s,@slibdir@,$slibdir,;t t
17946 s,@objdir@,$objdir,;t t
17947 s,@subdirs@,$subdirs,;t t
17948 s,@srcdir@,$srcdir,;t t
17949 s,@all_compilers@,$all_compilers,;t t
17950 s,@all_gtfiles@,$all_gtfiles,;t t
17951 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17952 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17953 s,@all_languages@,$all_languages,;t t
17954 s,@all_selected_languages@,$all_selected_languages,;t t
17955 s,@build_exeext@,$build_exeext,;t t
17956 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17957 s,@build_xm_file_list@,$build_xm_file_list,;t t
17958 s,@build_xm_include_list@,$build_xm_include_list,;t t
17959 s,@build_xm_defines@,$build_xm_defines,;t t
17960 s,@check_languages@,$check_languages,;t t
17961 s,@cpp_install_dir@,$cpp_install_dir,;t t
17962 s,@xmake_file@,$xmake_file,;t t
17963 s,@tmake_file@,$tmake_file,;t t
17964 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17965 s,@extra_headers_list@,$extra_headers_list,;t t
17966 s,@extra_objs@,$extra_objs,;t t
17967 s,@extra_parts@,$extra_parts,;t t
17968 s,@extra_passes@,$extra_passes,;t t
17969 s,@extra_programs@,$extra_programs,;t t
17970 s,@float_h_file@,$float_h_file,;t t
17971 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17972 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17973 s,@host_exeext@,$host_exeext,;t t
17974 s,@host_xm_file_list@,$host_xm_file_list,;t t
17975 s,@host_xm_include_list@,$host_xm_include_list,;t t
17976 s,@host_xm_defines@,$host_xm_defines,;t t
17977 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17978 s,@install@,$install,;t t
17979 s,@lang_opt_files@,$lang_opt_files,;t t
17980 s,@lang_specs_files@,$lang_specs_files,;t t
17981 s,@lang_tree_files@,$lang_tree_files,;t t
17982 s,@local_prefix@,$local_prefix,;t t
17983 s,@md_file@,$md_file,;t t
17984 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17985 s,@out_file@,$out_file,;t t
17986 s,@out_object_file@,$out_object_file,;t t
17987 s,@thread_file@,$thread_file,;t t
17988 s,@tm_file_list@,$tm_file_list,;t t
17989 s,@tm_include_list@,$tm_include_list,;t t
17990 s,@tm_defines@,$tm_defines,;t t
17991 s,@tm_p_file_list@,$tm_p_file_list,;t t
17992 s,@tm_p_include_list@,$tm_p_include_list,;t t
17993 s,@xm_file_list@,$xm_file_list,;t t
17994 s,@xm_include_list@,$xm_include_list,;t t
17995 s,@xm_defines@,$xm_defines,;t t
17996 s,@c_target_objs@,$c_target_objs,;t t
17997 s,@cxx_target_objs@,$cxx_target_objs,;t t
17998 s,@target_cpu_default@,$target_cpu_default,;t t
17999 s,@GMPLIBS@,$GMPLIBS,;t t
18000 s,@GMPINC@,$GMPINC,;t t
18001 s,@LIBOBJS@,$LIBOBJS,;t t
18002 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18003 /@language_hooks@/r $language_hooks
18004 s,@language_hooks@,,;t t
18005 CEOF
18006
18007 _ACEOF
18008
18009 cat >>$CONFIG_STATUS <<\_ACEOF
18010 # Split the substitutions into bite-sized pieces for seds with
18011 # small command number limits, like on Digital OSF/1 and HP-UX.
18012 ac_max_sed_lines=48
18013 ac_sed_frag=1 # Number of current file.
18014 ac_beg=1 # First line for current file.
18015 ac_end=$ac_max_sed_lines # Line after last line for current file.
18016 ac_more_lines=:
18017 ac_sed_cmds=
18018 while $ac_more_lines; do
18019 if test $ac_beg -gt 1; then
18020 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18021 else
18022 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18023 fi
18024 if test ! -s $tmp/subs.frag; then
18025 ac_more_lines=false
18026 else
18027 # The purpose of the label and of the branching condition is to
18028 # speed up the sed processing (if there are no `@' at all, there
18029 # is no need to browse any of the substitutions).
18030 # These are the two extra sed commands mentioned above.
18031 (echo ':t
18032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18033 if test -z "$ac_sed_cmds"; then
18034 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18035 else
18036 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18037 fi
18038 ac_sed_frag=`expr $ac_sed_frag + 1`
18039 ac_beg=$ac_end
18040 ac_end=`expr $ac_end + $ac_max_sed_lines`
18041 fi
18042 done
18043 if test -z "$ac_sed_cmds"; then
18044 ac_sed_cmds=cat
18045 fi
18046 fi # test -n "$CONFIG_FILES"
18047
18048 _ACEOF
18049 cat >>$CONFIG_STATUS <<\_ACEOF
18050 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18051 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18052 case $ac_file in
18053 - | *:- | *:-:* ) # input from stdin
18054 cat >$tmp/stdin
18055 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18056 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18057 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18058 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18059 * ) ac_file_in=$ac_file.in ;;
18060 esac
18061
18062 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18063 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18065 X"$ac_file" : 'X\(//\)[^/]' \| \
18066 X"$ac_file" : 'X\(//\)$' \| \
18067 X"$ac_file" : 'X\(/\)' \| \
18068 . : '\(.\)' 2>/dev/null ||
18069 echo X"$ac_file" |
18070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18072 /^X\(\/\/\)$/{ s//\1/; q; }
18073 /^X\(\/\).*/{ s//\1/; q; }
18074 s/.*/./; q'`
18075 { if $as_mkdir_p; then
18076 mkdir -p "$ac_dir"
18077 else
18078 as_dir="$ac_dir"
18079 as_dirs=
18080 while test ! -d "$as_dir"; do
18081 as_dirs="$as_dir $as_dirs"
18082 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18084 X"$as_dir" : 'X\(//\)[^/]' \| \
18085 X"$as_dir" : 'X\(//\)$' \| \
18086 X"$as_dir" : 'X\(/\)' \| \
18087 . : '\(.\)' 2>/dev/null ||
18088 echo X"$as_dir" |
18089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18091 /^X\(\/\/\)$/{ s//\1/; q; }
18092 /^X\(\/\).*/{ s//\1/; q; }
18093 s/.*/./; q'`
18094 done
18095 test ! -n "$as_dirs" || mkdir $as_dirs
18096 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18097 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18098 { (exit 1); exit 1; }; }; }
18099
18100 ac_builddir=.
18101
18102 if test "$ac_dir" != .; then
18103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18104 # A "../" for each directory in $ac_dir_suffix.
18105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18106 else
18107 ac_dir_suffix= ac_top_builddir=
18108 fi
18109
18110 case $srcdir in
18111 .) # No --srcdir option. We are building in place.
18112 ac_srcdir=.
18113 if test -z "$ac_top_builddir"; then
18114 ac_top_srcdir=.
18115 else
18116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18117 fi ;;
18118 [\\/]* | ?:[\\/]* ) # Absolute path.
18119 ac_srcdir=$srcdir$ac_dir_suffix;
18120 ac_top_srcdir=$srcdir ;;
18121 *) # Relative path.
18122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18124 esac
18125
18126 # Do not use `cd foo && pwd` to compute absolute paths, because
18127 # the directories may not exist.
18128 case `pwd` in
18129 .) ac_abs_builddir="$ac_dir";;
18130 *)
18131 case "$ac_dir" in
18132 .) ac_abs_builddir=`pwd`;;
18133 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18134 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18135 esac;;
18136 esac
18137 case $ac_abs_builddir in
18138 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18139 *)
18140 case ${ac_top_builddir}. in
18141 .) ac_abs_top_builddir=$ac_abs_builddir;;
18142 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18143 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18144 esac;;
18145 esac
18146 case $ac_abs_builddir in
18147 .) ac_abs_srcdir=$ac_srcdir;;
18148 *)
18149 case $ac_srcdir in
18150 .) ac_abs_srcdir=$ac_abs_builddir;;
18151 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18152 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18153 esac;;
18154 esac
18155 case $ac_abs_builddir in
18156 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18157 *)
18158 case $ac_top_srcdir in
18159 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18160 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18161 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18162 esac;;
18163 esac
18164
18165
18166
18167 if test x"$ac_file" != x-; then
18168 { echo "$as_me:$LINENO: creating $ac_file" >&5
18169 echo "$as_me: creating $ac_file" >&6;}
18170 rm -f "$ac_file"
18171 fi
18172 # Let's still pretend it is `configure' which instantiates (i.e., don't
18173 # use $as_me), people would be surprised to read:
18174 # /* config.h. Generated by config.status. */
18175 if test x"$ac_file" = x-; then
18176 configure_input=
18177 else
18178 configure_input="$ac_file. "
18179 fi
18180 configure_input=$configure_input"Generated from `echo $ac_file_in |
18181 sed 's,.*/,,'` by configure."
18182
18183 # First look for the input files in the build tree, otherwise in the
18184 # src tree.
18185 ac_file_inputs=`IFS=:
18186 for f in $ac_file_in; do
18187 case $f in
18188 -) echo $tmp/stdin ;;
18189 [\\/$]*)
18190 # Absolute (can't be DOS-style, as IFS=:)
18191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18192 echo "$as_me: error: cannot find input file: $f" >&2;}
18193 { (exit 1); exit 1; }; }
18194 echo "$f";;
18195 *) # Relative
18196 if test -f "$f"; then
18197 # Build tree
18198 echo "$f"
18199 elif test -f "$srcdir/$f"; then
18200 # Source tree
18201 echo "$srcdir/$f"
18202 else
18203 # /dev/null tree
18204 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18205 echo "$as_me: error: cannot find input file: $f" >&2;}
18206 { (exit 1); exit 1; }; }
18207 fi;;
18208 esac
18209 done` || { (exit 1); exit 1; }
18210 _ACEOF
18211 cat >>$CONFIG_STATUS <<_ACEOF
18212 sed "$ac_vpsub
18213 $extrasub
18214 _ACEOF
18215 cat >>$CONFIG_STATUS <<\_ACEOF
18216 :t
18217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18218 s,@configure_input@,$configure_input,;t t
18219 s,@srcdir@,$ac_srcdir,;t t
18220 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18221 s,@top_srcdir@,$ac_top_srcdir,;t t
18222 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18223 s,@builddir@,$ac_builddir,;t t
18224 s,@abs_builddir@,$ac_abs_builddir,;t t
18225 s,@top_builddir@,$ac_top_builddir,;t t
18226 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18227 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18228 rm -f $tmp/stdin
18229 if test x"$ac_file" != x-; then
18230 mv $tmp/out $ac_file
18231 else
18232 cat $tmp/out
18233 rm -f $tmp/out
18234 fi
18235
18236 # Run the commands associated with the file.
18237 case $ac_file in
18238 as ) chmod +x as ;;
18239 collect-ld ) chmod +x collect-ld ;;
18240 nm ) chmod +x nm ;;
18241 esac
18242 done
18243 _ACEOF
18244 cat >>$CONFIG_STATUS <<\_ACEOF
18245
18246 #
18247 # CONFIG_HEADER section.
18248 #
18249
18250 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18251 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18252 #
18253 # ac_d sets the value in "#define NAME VALUE" lines.
18254 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18255 ac_dB='[ ].*$,\1#\2'
18256 ac_dC=' '
18257 ac_dD=',;t'
18258 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18259 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18260 ac_uB='$,\1#\2define\3'
18261 ac_uC=' '
18262 ac_uD=',;t'
18263
18264 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18265 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18266 case $ac_file in
18267 - | *:- | *:-:* ) # input from stdin
18268 cat >$tmp/stdin
18269 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18270 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18271 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18272 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18273 * ) ac_file_in=$ac_file.in ;;
18274 esac
18275
18276 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18277 echo "$as_me: creating $ac_file" >&6;}
18278
18279 # First look for the input files in the build tree, otherwise in the
18280 # src tree.
18281 ac_file_inputs=`IFS=:
18282 for f in $ac_file_in; do
18283 case $f in
18284 -) echo $tmp/stdin ;;
18285 [\\/$]*)
18286 # Absolute (can't be DOS-style, as IFS=:)
18287 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18288 echo "$as_me: error: cannot find input file: $f" >&2;}
18289 { (exit 1); exit 1; }; }
18290 # Do quote $f, to prevent DOS paths from being IFS'd.
18291 echo "$f";;
18292 *) # Relative
18293 if test -f "$f"; then
18294 # Build tree
18295 echo "$f"
18296 elif test -f "$srcdir/$f"; then
18297 # Source tree
18298 echo "$srcdir/$f"
18299 else
18300 # /dev/null tree
18301 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18302 echo "$as_me: error: cannot find input file: $f" >&2;}
18303 { (exit 1); exit 1; }; }
18304 fi;;
18305 esac
18306 done` || { (exit 1); exit 1; }
18307 # Remove the trailing spaces.
18308 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18309
18310 _ACEOF
18311
18312 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18313 # `conftest.undefs', that substitutes the proper values into
18314 # config.h.in to produce config.h. The first handles `#define'
18315 # templates, and the second `#undef' templates.
18316 # And first: Protect against being on the right side of a sed subst in
18317 # config.status. Protect against being in an unquoted here document
18318 # in config.status.
18319 rm -f conftest.defines conftest.undefs
18320 # Using a here document instead of a string reduces the quoting nightmare.
18321 # Putting comments in sed scripts is not portable.
18322 #
18323 # `end' is used to avoid that the second main sed command (meant for
18324 # 0-ary CPP macros) applies to n-ary macro definitions.
18325 # See the Autoconf documentation for `clear'.
18326 cat >confdef2sed.sed <<\_ACEOF
18327 s/[\\&,]/\\&/g
18328 s,[\\$`],\\&,g
18329 t clear
18330 : clear
18331 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18332 t end
18333 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18334 : end
18335 _ACEOF
18336 # If some macros were called several times there might be several times
18337 # the same #defines, which is useless. Nevertheless, we may not want to
18338 # sort them, since we want the *last* AC-DEFINE to be honored.
18339 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18340 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18341 rm -f confdef2sed.sed
18342
18343 # This sed command replaces #undef with comments. This is necessary, for
18344 # example, in the case of _POSIX_SOURCE, which is predefined and required
18345 # on some systems where configure will not decide to define it.
18346 cat >>conftest.undefs <<\_ACEOF
18347 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18348 _ACEOF
18349
18350 # Break up conftest.defines because some shells have a limit on the size
18351 # of here documents, and old seds have small limits too (100 cmds).
18352 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18353 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18354 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18355 echo ' :' >>$CONFIG_STATUS
18356 rm -f conftest.tail
18357 while grep . conftest.defines >/dev/null
18358 do
18359 # Write a limited-size here document to $tmp/defines.sed.
18360 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18361 # Speed up: don't consider the non `#define' lines.
18362 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18363 # Work around the forget-to-reset-the-flag bug.
18364 echo 't clr' >>$CONFIG_STATUS
18365 echo ': clr' >>$CONFIG_STATUS
18366 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18367 echo 'CEOF
18368 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18369 rm -f $tmp/in
18370 mv $tmp/out $tmp/in
18371 ' >>$CONFIG_STATUS
18372 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18373 rm -f conftest.defines
18374 mv conftest.tail conftest.defines
18375 done
18376 rm -f conftest.defines
18377 echo ' fi # grep' >>$CONFIG_STATUS
18378 echo >>$CONFIG_STATUS
18379
18380 # Break up conftest.undefs because some shells have a limit on the size
18381 # of here documents, and old seds have small limits too (100 cmds).
18382 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18383 rm -f conftest.tail
18384 while grep . conftest.undefs >/dev/null
18385 do
18386 # Write a limited-size here document to $tmp/undefs.sed.
18387 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18388 # Speed up: don't consider the non `#undef'
18389 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18390 # Work around the forget-to-reset-the-flag bug.
18391 echo 't clr' >>$CONFIG_STATUS
18392 echo ': clr' >>$CONFIG_STATUS
18393 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18394 echo 'CEOF
18395 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18396 rm -f $tmp/in
18397 mv $tmp/out $tmp/in
18398 ' >>$CONFIG_STATUS
18399 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18400 rm -f conftest.undefs
18401 mv conftest.tail conftest.undefs
18402 done
18403 rm -f conftest.undefs
18404
18405 cat >>$CONFIG_STATUS <<\_ACEOF
18406 # Let's still pretend it is `configure' which instantiates (i.e., don't
18407 # use $as_me), people would be surprised to read:
18408 # /* config.h. Generated by config.status. */
18409 if test x"$ac_file" = x-; then
18410 echo "/* Generated by configure. */" >$tmp/config.h
18411 else
18412 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18413 fi
18414 cat $tmp/in >>$tmp/config.h
18415 rm -f $tmp/in
18416 if test x"$ac_file" != x-; then
18417 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18418 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18419 echo "$as_me: $ac_file is unchanged" >&6;}
18420 else
18421 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18422 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18423 X"$ac_file" : 'X\(//\)[^/]' \| \
18424 X"$ac_file" : 'X\(//\)$' \| \
18425 X"$ac_file" : 'X\(/\)' \| \
18426 . : '\(.\)' 2>/dev/null ||
18427 echo X"$ac_file" |
18428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18429 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18430 /^X\(\/\/\)$/{ s//\1/; q; }
18431 /^X\(\/\).*/{ s//\1/; q; }
18432 s/.*/./; q'`
18433 { if $as_mkdir_p; then
18434 mkdir -p "$ac_dir"
18435 else
18436 as_dir="$ac_dir"
18437 as_dirs=
18438 while test ! -d "$as_dir"; do
18439 as_dirs="$as_dir $as_dirs"
18440 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18442 X"$as_dir" : 'X\(//\)[^/]' \| \
18443 X"$as_dir" : 'X\(//\)$' \| \
18444 X"$as_dir" : 'X\(/\)' \| \
18445 . : '\(.\)' 2>/dev/null ||
18446 echo X"$as_dir" |
18447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18449 /^X\(\/\/\)$/{ s//\1/; q; }
18450 /^X\(\/\).*/{ s//\1/; q; }
18451 s/.*/./; q'`
18452 done
18453 test ! -n "$as_dirs" || mkdir $as_dirs
18454 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18455 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18456 { (exit 1); exit 1; }; }; }
18457
18458 rm -f $ac_file
18459 mv $tmp/config.h $ac_file
18460 fi
18461 else
18462 cat $tmp/config.h
18463 rm -f $tmp/config.h
18464 fi
18465 done
18466 _ACEOF
18467 cat >>$CONFIG_STATUS <<\_ACEOF
18468
18469 #
18470 # CONFIG_COMMANDS section.
18471 #
18472 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18473 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18474 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18475 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18476 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18477 X"$ac_dest" : 'X\(//\)[^/]' \| \
18478 X"$ac_dest" : 'X\(//\)$' \| \
18479 X"$ac_dest" : 'X\(/\)' \| \
18480 . : '\(.\)' 2>/dev/null ||
18481 echo X"$ac_dest" |
18482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18484 /^X\(\/\/\)$/{ s//\1/; q; }
18485 /^X\(\/\).*/{ s//\1/; q; }
18486 s/.*/./; q'`
18487 { if $as_mkdir_p; then
18488 mkdir -p "$ac_dir"
18489 else
18490 as_dir="$ac_dir"
18491 as_dirs=
18492 while test ! -d "$as_dir"; do
18493 as_dirs="$as_dir $as_dirs"
18494 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18496 X"$as_dir" : 'X\(//\)[^/]' \| \
18497 X"$as_dir" : 'X\(//\)$' \| \
18498 X"$as_dir" : 'X\(/\)' \| \
18499 . : '\(.\)' 2>/dev/null ||
18500 echo X"$as_dir" |
18501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18503 /^X\(\/\/\)$/{ s//\1/; q; }
18504 /^X\(\/\).*/{ s//\1/; q; }
18505 s/.*/./; q'`
18506 done
18507 test ! -n "$as_dirs" || mkdir $as_dirs
18508 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18509 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18510 { (exit 1); exit 1; }; }; }
18511
18512 ac_builddir=.
18513
18514 if test "$ac_dir" != .; then
18515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18516 # A "../" for each directory in $ac_dir_suffix.
18517 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18518 else
18519 ac_dir_suffix= ac_top_builddir=
18520 fi
18521
18522 case $srcdir in
18523 .) # No --srcdir option. We are building in place.
18524 ac_srcdir=.
18525 if test -z "$ac_top_builddir"; then
18526 ac_top_srcdir=.
18527 else
18528 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18529 fi ;;
18530 [\\/]* | ?:[\\/]* ) # Absolute path.
18531 ac_srcdir=$srcdir$ac_dir_suffix;
18532 ac_top_srcdir=$srcdir ;;
18533 *) # Relative path.
18534 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18535 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18536 esac
18537
18538 # Do not use `cd foo && pwd` to compute absolute paths, because
18539 # the directories may not exist.
18540 case `pwd` in
18541 .) ac_abs_builddir="$ac_dir";;
18542 *)
18543 case "$ac_dir" in
18544 .) ac_abs_builddir=`pwd`;;
18545 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18546 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18547 esac;;
18548 esac
18549 case $ac_abs_builddir in
18550 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18551 *)
18552 case ${ac_top_builddir}. in
18553 .) ac_abs_top_builddir=$ac_abs_builddir;;
18554 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18555 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18556 esac;;
18557 esac
18558 case $ac_abs_builddir in
18559 .) ac_abs_srcdir=$ac_srcdir;;
18560 *)
18561 case $ac_srcdir in
18562 .) ac_abs_srcdir=$ac_abs_builddir;;
18563 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18564 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18565 esac;;
18566 esac
18567 case $ac_abs_builddir in
18568 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18569 *)
18570 case $ac_top_srcdir in
18571 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18572 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18573 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18574 esac;;
18575 esac
18576
18577
18578 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18579 echo "$as_me: executing $ac_dest commands" >&6;}
18580 case $ac_dest in
18581 default )
18582 case ${CONFIG_HEADERS} in
18583 *auto-host.h:config.in*)
18584 echo > cstamp-h ;;
18585 esac
18586 # Make sure all the subdirs exist.
18587 for d in $subdirs doc build
18588 do
18589 test -d $d || mkdir $d
18590 done
18591 ;;
18592 esac
18593 done
18594 _ACEOF
18595
18596 cat >>$CONFIG_STATUS <<\_ACEOF
18597
18598 { (exit 0); exit 0; }
18599 _ACEOF
18600 chmod +x $CONFIG_STATUS
18601 ac_clean_files=$ac_clean_files_save
18602
18603
18604 # configure is writing to config.log, and then calls config.status.
18605 # config.status does its own redirection, appending to config.log.
18606 # Unfortunately, on DOS this fails, as config.log is still kept open
18607 # by configure, so config.status won't be able to write to it; its
18608 # output is simply discarded. So we exec the FD to /dev/null,
18609 # effectively closing config.log, so it can be properly (re)opened and
18610 # appended to by config.status. When coming back to configure, we
18611 # need to make the FD available again.
18612 if test "$no_create" != yes; then
18613 ac_cs_success=:
18614 ac_config_status_args=
18615 test "$silent" = yes &&
18616 ac_config_status_args="$ac_config_status_args --quiet"
18617 exec 5>/dev/null
18618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18619 exec 5>>config.log
18620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18621 # would make configure fail if this is the last instruction.
18622 $ac_cs_success || { (exit 1); exit 1; }
18623 fi
18624