No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gdb6 / sim / ppc / configure
blob7bb5fd894af043391b0aa06c670a2db0eaf02a5e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LIBOBJS CC_FOR_BUILD CFLAGS_FOR_BUILD HDEFINES AR sim_cflags sim_warnings sim_line_nr sim_config sim_opcode sim_switch sim_dup sim_decode_mechanism sim_jump sim_filter sim_icache sim_hw_src sim_hw_obj sim_pk_src sim_pk_obj sim_bswap sim_igen_smp sim_hostbitsize sim_env sim_timebase sim_trace sim_reserved sim_monitor sim_model sim_model_issue sim_stdio sim_termio sim_devzero sim_callback sim_targ_vals sim_fpu_cflags sim_fpu LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-nls do not use Native Language Support
854 --enable-sim-alignment=align Specify strict or nonstrict alignment.
855 --enable-sim-assert Specify whether to perform random assertions.
856 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
857 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums.
858 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
859 --enable-sim-config=file Override default config file
860 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
861 --enable-sim-default-model=which Specify default PowerPC to model.
862 --enable-sim-duplicate Expand (duplicate) semantic functions.
863 --enable-sim-endian=endian Specify target byte endian orientation.
864 --enable-sim-env=env Specify target environment (operating, virtual, user).
865 --enable-sim-filter=rule Specify filter rules.
866 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
867 --enable-sim-hardware=list Specify the hardware to be included in the build.
868 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
869 --enable-sim-hostendian=end Specify host byte endian orientation.
870 --enable-sim-icache=size Specify instruction-decode cache size and type.
871 --enable-sim-inline=inlines Specify which functions should be inlined.
872 --enable-sim-jump Jump between semantic code (instead of call/return).
873 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
874 --enable-sim-model=which Specify PowerPC to model.
875 --enable-sim-model-issue Specify whether to simulate model specific actions
876 --enable-sim-monitor=mon Specify whether to enable monitoring events.
877 --enable-sim-opcode=which Override default opcode lookup.
878 --enable-sim-packages=list Specify the packages to be included in the build.
879 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific.
880 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
881 --enable-sim-smp=n Specify number of processors to configure for.
882 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific.
883 --enable-sim-stdio Specify whether to use stdio for console input/output.
884 --enable-sim-switch Use a switch instead of a table for instruction call.
885 --enable-sim-timebase Specify whether the PPC timebase is supported.
886 --enable-sim-trace Specify whether tracing is supported.
887 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
888 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
890 Optional Packages:
891 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
892 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
893 --with-included-gettext use the GNU gettext library included here
895 Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
902 CPP C preprocessor
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
907 _ACEOF
910 if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
912 ac_popdir=`pwd`
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
915 ac_builddir=.
917 if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 else
922 ac_dir_suffix= ac_top_builddir=
925 case $srcdir in
926 .) # No --srcdir option. We are building in place.
927 ac_srcdir=.
928 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=.
930 else
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 fi ;;
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
936 *) # Relative path.
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 esac
941 # Do not use `cd foo && pwd` to compute absolute paths, because
942 # the directories may not exist.
943 case `pwd` in
944 .) ac_abs_builddir="$ac_dir";;
946 case "$ac_dir" in
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 esac;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_builddir=${ac_top_builddir}.;;
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 esac;;
960 esac
961 case $ac_abs_builddir in
962 .) ac_abs_srcdir=$ac_srcdir;;
964 case $ac_srcdir in
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_top_srcdir=$ac_top_srcdir;;
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 esac;;
978 esac
980 cd $ac_dir
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
983 echo
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
986 echo
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
990 echo
991 $ac_configure --help
992 else
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 cd $ac_popdir
996 done
999 test -n "$ac_init_help" && exit 0
1000 if $ac_init_version; then
1001 cat <<\_ACEOF
1003 Copyright (C) 2003 Free Software Foundation, Inc.
1004 This configure script is free software; the Free Software Foundation
1005 gives unlimited permission to copy, distribute and modify it.
1006 _ACEOF
1007 exit 0
1009 exec 5>config.log
1010 cat >&5 <<_ACEOF
1011 This file contains any messages produced by compilers while
1012 running configure, to aid debugging if configure makes a mistake.
1014 It was created by $as_me, which was
1015 generated by GNU Autoconf 2.59. Invocation command line was
1017 $ $0 $@
1019 _ACEOF
1021 cat <<_ASUNAME
1022 ## --------- ##
1023 ## Platform. ##
1024 ## --------- ##
1026 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1032 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1035 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1043 _ASUNAME
1045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046 for as_dir in $PATH
1048 IFS=$as_save_IFS
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1051 done
1053 } >&5
1055 cat >&5 <<_ACEOF
1058 ## ----------- ##
1059 ## Core tests. ##
1060 ## ----------- ##
1062 _ACEOF
1065 # Keep a trace of the command line.
1066 # Strip out --no-create and --no-recursion so they do not pile up.
1067 # Strip out --silent because we don't want to record it for future runs.
1068 # Also quote any args containing shell meta-characters.
1069 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_configure_args=
1071 ac_configure_args0=
1072 ac_configure_args1=
1073 ac_sep=
1074 ac_must_keep_next=false
1075 for ac_pass in 1 2
1077 for ac_arg
1079 case $ac_arg in
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 continue ;;
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086 esac
1087 case $ac_pass in
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1093 else
1094 case $ac_arg in
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101 esac
1103 -* ) ac_must_keep_next=true ;;
1104 esac
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1108 ac_sep=" "
1110 esac
1111 done
1112 done
1113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116 # When interrupted or exit'd, cleanup temporary files, and complete
1117 # config.log. We remove comments because anyway the quotes in there
1118 # would cause problems or look ugly.
1119 # WARNING: Be sure not to use single quotes in there, as some shells,
1120 # such as our DU 5.0 friend, will then `close' the trap.
1121 trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1124 echo
1126 cat <<\_ASBOX
1127 ## ---------------- ##
1128 ## Cache variables. ##
1129 ## ---------------- ##
1130 _ASBOX
1131 echo
1132 # The following way of writing the cache mishandles newlines in values,
1134 (set) 2>&1 |
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136 *ac_space=\ *)
1137 sed -n \
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142 sed -n \
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1145 esac;
1147 echo
1149 cat <<\_ASBOX
1150 ## ----------------- ##
1151 ## Output variables. ##
1152 ## ----------------- ##
1153 _ASBOX
1154 echo
1155 for ac_var in $ac_subst_vars
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1162 if test -n "$ac_subst_files"; then
1163 cat <<\_ASBOX
1164 ## ------------- ##
1165 ## Output files. ##
1166 ## ------------- ##
1167 _ASBOX
1168 echo
1169 for ac_var in $ac_subst_files
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1173 done | sort
1174 echo
1177 if test -s confdefs.h; then
1178 cat <<\_ASBOX
1179 ## ----------- ##
1180 ## confdefs.h. ##
1181 ## ----------- ##
1182 _ASBOX
1183 echo
1184 sed "/^$/d" confdefs.h | sort
1185 echo
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1190 } >&5
1191 rm -f core *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 exit $exit_status
1195 for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197 done
1198 ac_signal=0
1200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201 rm -rf conftest* confdefs.h
1202 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203 echo >confdefs.h
1205 # Predefined preprocessor variables.
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_NAME "$PACKAGE_NAME"
1209 _ACEOF
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214 _ACEOF
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1219 _ACEOF
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_STRING "$PACKAGE_STRING"
1224 _ACEOF
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229 _ACEOF
1232 # Let the site file select an alternate cache file if it wants to.
1233 # Prefer explicitly selected file to automatically selected ones.
1234 if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 else
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1241 for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
1246 . "$ac_site_file"
1248 done
1250 if test -r "$cache_file"; then
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 echo "$as_me: loading cache $cache_file" >&6;}
1256 case $cache_file in
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1259 esac
1261 else
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 echo "$as_me: creating cache $cache_file" >&6;}
1264 >$cache_file
1267 # Check that the precious variables saved in the cache have kept the same
1268 # value.
1269 ac_cache_corrupted=false
1270 for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1277 set,)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,set)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,);;
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291 echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293 echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1295 fi;;
1296 esac
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1299 case $ac_new_val in
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1303 esac
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307 esac
1309 done
1310 if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
1318 ac_ext=c
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1343 ac_aux_dir=
1344 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1345 if test -f $ac_dir/install-sh; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install-sh -c"
1348 break
1349 elif test -f $ac_dir/install.sh; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/install.sh -c"
1352 break
1353 elif test -f $ac_dir/shtool; then
1354 ac_aux_dir=$ac_dir
1355 ac_install_sh="$ac_aux_dir/shtool install -c"
1356 break
1358 done
1359 if test -z "$ac_aux_dir"; then
1360 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1361 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1362 { (exit 1); exit 1; }; }
1364 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1368 # Find a good install program. We prefer a C program (faster),
1369 # so one script is as good as another. But avoid the broken or
1370 # incompatible versions:
1371 # SysV /etc/install, /usr/sbin/install
1372 # SunOS /usr/etc/install
1373 # IRIX /sbin/install
1374 # AIX /bin/install
1375 # AmigaOS /C/install, which installs bootblocks on floppy discs
1376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1379 # OS/2's system install, which has a completely different semantic
1380 # ./install, which can be erroneously created by make from ./install.sh.
1381 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1383 if test -z "$INSTALL"; then
1384 if test "${ac_cv_path_install+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388 for as_dir in $PATH
1390 IFS=$as_save_IFS
1391 test -z "$as_dir" && as_dir=.
1392 # Account for people who put trailing slashes in PATH elements.
1393 case $as_dir/ in
1394 ./ | .// | /cC/* | \
1395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1396 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1397 /usr/ucb/* ) ;;
1399 # OSF1 and SCO ODT 3.0 have their own names for install.
1400 # Don't use installbsd from OSF since it installs stuff as root
1401 # by default.
1402 for ac_prog in ginstall scoinst install; do
1403 for ac_exec_ext in '' $ac_executable_extensions; do
1404 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1405 if test $ac_prog = install &&
1406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1407 # AIX install. It has an incompatible calling convention.
1409 elif test $ac_prog = install &&
1410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1411 # program-specific install script used by HP pwplus--don't use.
1413 else
1414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1415 break 3
1418 done
1419 done
1421 esac
1422 done
1426 if test "${ac_cv_path_install+set}" = set; then
1427 INSTALL=$ac_cv_path_install
1428 else
1429 # As a last resort, use the slow shell script. We don't cache a
1430 # path for INSTALL within a source directory, because that will
1431 # break other packages using the cache if that directory is
1432 # removed, or if the path is relative.
1433 INSTALL=$ac_install_sh
1436 echo "$as_me:$LINENO: result: $INSTALL" >&5
1437 echo "${ECHO_T}$INSTALL" >&6
1439 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1440 # It thinks the first close brace ends the variable substitution.
1441 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1443 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1445 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1447 ac_ext=c
1448 ac_cpp='$CPP $CPPFLAGS'
1449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452 if test -n "$ac_tool_prefix"; then
1453 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1454 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_CC+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460 if test -n "$CC"; then
1461 ac_cv_prog_CC="$CC" # Let the user override the test.
1462 else
1463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464 for as_dir in $PATH
1466 IFS=$as_save_IFS
1467 test -z "$as_dir" && as_dir=.
1468 for ac_exec_ext in '' $ac_executable_extensions; do
1469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472 break 2
1474 done
1475 done
1479 CC=$ac_cv_prog_CC
1480 if test -n "$CC"; then
1481 echo "$as_me:$LINENO: result: $CC" >&5
1482 echo "${ECHO_T}$CC" >&6
1483 else
1484 echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1489 if test -z "$ac_cv_prog_CC"; then
1490 ac_ct_CC=$CC
1491 # Extract the first word of "gcc", so it can be a program name with args.
1492 set dummy gcc; ac_word=$2
1493 echo "$as_me:$LINENO: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 else
1498 if test -n "$ac_ct_CC"; then
1499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1500 else
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 for as_dir in $PATH
1504 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=.
1506 for ac_exec_ext in '' $ac_executable_extensions; do
1507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508 ac_cv_prog_ac_ct_CC="gcc"
1509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 break 2
1512 done
1513 done
1517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1518 if test -n "$ac_ct_CC"; then
1519 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1520 echo "${ECHO_T}$ac_ct_CC" >&6
1521 else
1522 echo "$as_me:$LINENO: result: no" >&5
1523 echo "${ECHO_T}no" >&6
1526 CC=$ac_ct_CC
1527 else
1528 CC="$ac_cv_prog_CC"
1531 if test -z "$CC"; then
1532 if test -n "$ac_tool_prefix"; then
1533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1534 set dummy ${ac_tool_prefix}cc; ac_word=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_CC+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540 if test -n "$CC"; then
1541 ac_cv_prog_CC="$CC" # Let the user override the test.
1542 else
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_CC="${ac_tool_prefix}cc"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 break 2
1554 done
1555 done
1559 CC=$ac_cv_prog_CC
1560 if test -n "$CC"; then
1561 echo "$as_me:$LINENO: result: $CC" >&5
1562 echo "${ECHO_T}$CC" >&6
1563 else
1564 echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1569 if test -z "$ac_cv_prog_CC"; then
1570 ac_ct_CC=$CC
1571 # Extract the first word of "cc", so it can be a program name with args.
1572 set dummy cc; ac_word=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 if test -n "$ac_ct_CC"; then
1579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1580 else
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
1586 for ac_exec_ext in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_ac_ct_CC="cc"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 break 2
1592 done
1593 done
1597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1598 if test -n "$ac_ct_CC"; then
1599 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1600 echo "${ECHO_T}$ac_ct_CC" >&6
1601 else
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1606 CC=$ac_ct_CC
1607 else
1608 CC="$ac_cv_prog_CC"
1612 if test -z "$CC"; then
1613 # Extract the first word of "cc", so it can be a program name with args.
1614 set dummy cc; ac_word=$2
1615 echo "$as_me:$LINENO: checking for $ac_word" >&5
1616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617 if test "${ac_cv_prog_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620 if test -n "$CC"; then
1621 ac_cv_prog_CC="$CC" # Let the user override the test.
1622 else
1623 ac_prog_rejected=no
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1632 ac_prog_rejected=yes
1633 continue
1635 ac_cv_prog_CC="cc"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637 break 2
1639 done
1640 done
1642 if test $ac_prog_rejected = yes; then
1643 # We found a bogon in the path, so make sure we never use it.
1644 set dummy $ac_cv_prog_CC
1645 shift
1646 if test $# != 0; then
1647 # We chose a different compiler from the bogus one.
1648 # However, it has the same basename, so the bogon will be chosen
1649 # first if we set CC to just the basename; use the full file name.
1650 shift
1651 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1656 CC=$ac_cv_prog_CC
1657 if test -n "$CC"; then
1658 echo "$as_me:$LINENO: result: $CC" >&5
1659 echo "${ECHO_T}$CC" >&6
1660 else
1661 echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1666 if test -z "$CC"; then
1667 if test -n "$ac_tool_prefix"; then
1668 for ac_prog in cl
1670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1672 echo "$as_me:$LINENO: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 else
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1679 else
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 for as_dir in $PATH
1683 IFS=$as_save_IFS
1684 test -z "$as_dir" && as_dir=.
1685 for ac_exec_ext in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 break 2
1691 done
1692 done
1696 CC=$ac_cv_prog_CC
1697 if test -n "$CC"; then
1698 echo "$as_me:$LINENO: result: $CC" >&5
1699 echo "${ECHO_T}$CC" >&6
1700 else
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1705 test -n "$CC" && break
1706 done
1708 if test -z "$CC"; then
1709 ac_ct_CC=$CC
1710 for ac_prog in cl
1712 # Extract the first word of "$ac_prog", so it can be a program name with args.
1713 set dummy $ac_prog; ac_word=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719 if test -n "$ac_ct_CC"; then
1720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1721 else
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 for as_dir in $PATH
1725 IFS=$as_save_IFS
1726 test -z "$as_dir" && as_dir=.
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_ac_ct_CC="$ac_prog"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731 break 2
1733 done
1734 done
1738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1739 if test -n "$ac_ct_CC"; then
1740 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1741 echo "${ECHO_T}$ac_ct_CC" >&6
1742 else
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1747 test -n "$ac_ct_CC" && break
1748 done
1750 CC=$ac_ct_CC
1756 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1757 See \`config.log' for more details." >&5
1758 echo "$as_me: error: no acceptable C compiler found in \$PATH
1759 See \`config.log' for more details." >&2;}
1760 { (exit 1); exit 1; }; }
1762 # Provide some information about the compiler.
1763 echo "$as_me:$LINENO:" \
1764 "checking for C compiler version" >&5
1765 ac_compiler=`set X $ac_compile; echo $2`
1766 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1767 (eval $ac_compiler --version </dev/null >&5) 2>&5
1768 ac_status=$?
1769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770 (exit $ac_status); }
1771 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1772 (eval $ac_compiler -v </dev/null >&5) 2>&5
1773 ac_status=$?
1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775 (exit $ac_status); }
1776 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1777 (eval $ac_compiler -V </dev/null >&5) 2>&5
1778 ac_status=$?
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }
1782 cat >conftest.$ac_ext <<_ACEOF
1783 /* confdefs.h. */
1784 _ACEOF
1785 cat confdefs.h >>conftest.$ac_ext
1786 cat >>conftest.$ac_ext <<_ACEOF
1787 /* end confdefs.h. */
1790 main ()
1794 return 0;
1796 _ACEOF
1797 ac_clean_files_save=$ac_clean_files
1798 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1799 # Try to create an executable without -o first, disregard a.out.
1800 # It will help us diagnose broken compilers, and finding out an intuition
1801 # of exeext.
1802 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1803 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1804 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1805 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1806 (eval $ac_link_default) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }; then
1810 # Find the output, starting from the most likely. This scheme is
1811 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1812 # resort.
1814 # Be careful to initialize this variable, since it used to be cached.
1815 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1816 ac_cv_exeext=
1817 # b.out is created by i960 compilers.
1818 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1820 test -f "$ac_file" || continue
1821 case $ac_file in
1822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1824 conftest.$ac_ext )
1825 # This is the source file.
1827 [ab].out )
1828 # We found the default executable, but exeext='' is most
1829 # certainly right.
1830 break;;
1831 *.* )
1832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833 # FIXME: I believe we export ac_cv_exeext for Libtool,
1834 # but it would be cool to find out if it's true. Does anybody
1835 # maintain Libtool? --akim.
1836 export ac_cv_exeext
1837 break;;
1839 break;;
1840 esac
1841 done
1842 else
1843 echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1847 See \`config.log' for more details." >&5
1848 echo "$as_me: error: C compiler cannot create executables
1849 See \`config.log' for more details." >&2;}
1850 { (exit 77); exit 77; }; }
1853 ac_exeext=$ac_cv_exeext
1854 echo "$as_me:$LINENO: result: $ac_file" >&5
1855 echo "${ECHO_T}$ac_file" >&6
1857 # Check the compiler produces executables we can run. If not, either
1858 # the compiler is broken, or we cross compile.
1859 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1860 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1861 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1862 # If not cross compiling, check that we can run a simple program.
1863 if test "$cross_compiling" != yes; then
1864 if { ac_try='./$ac_file'
1865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1866 (eval $ac_try) 2>&5
1867 ac_status=$?
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; }; then
1870 cross_compiling=no
1871 else
1872 if test "$cross_compiling" = maybe; then
1873 cross_compiling=yes
1874 else
1875 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1876 If you meant to cross compile, use \`--host'.
1877 See \`config.log' for more details." >&5
1878 echo "$as_me: error: cannot run C compiled programs.
1879 If you meant to cross compile, use \`--host'.
1880 See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }
1885 echo "$as_me:$LINENO: result: yes" >&5
1886 echo "${ECHO_T}yes" >&6
1888 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1889 ac_clean_files=$ac_clean_files_save
1890 # Check the compiler produces executables we can run. If not, either
1891 # the compiler is broken, or we cross compile.
1892 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1893 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1894 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1895 echo "${ECHO_T}$cross_compiling" >&6
1897 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1898 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1900 (eval $ac_link) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1906 # work properly (i.e., refer to `conftest.exe'), while it won't with
1907 # `rm'.
1908 for ac_file in conftest.exe conftest conftest.*; do
1909 test -f "$ac_file" || continue
1910 case $ac_file in
1911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1913 export ac_cv_exeext
1914 break;;
1915 * ) break;;
1916 esac
1917 done
1918 else
1919 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1922 See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }
1926 rm -f conftest$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1928 echo "${ECHO_T}$ac_cv_exeext" >&6
1930 rm -f conftest.$ac_ext
1931 EXEEXT=$ac_cv_exeext
1932 ac_exeext=$EXEEXT
1933 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1934 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1935 if test "${ac_cv_objext+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938 cat >conftest.$ac_ext <<_ACEOF
1939 /* confdefs.h. */
1940 _ACEOF
1941 cat confdefs.h >>conftest.$ac_ext
1942 cat >>conftest.$ac_ext <<_ACEOF
1943 /* end confdefs.h. */
1946 main ()
1950 return 0;
1952 _ACEOF
1953 rm -f conftest.o conftest.obj
1954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1955 (eval $ac_compile) 2>&5
1956 ac_status=$?
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; then
1959 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1960 case $ac_file in
1961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1963 break;;
1964 esac
1965 done
1966 else
1967 echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1970 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1971 See \`config.log' for more details." >&5
1972 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1973 See \`config.log' for more details." >&2;}
1974 { (exit 1); exit 1; }; }
1977 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1979 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1980 echo "${ECHO_T}$ac_cv_objext" >&6
1981 OBJEXT=$ac_cv_objext
1982 ac_objext=$OBJEXT
1983 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1984 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1985 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 cat >conftest.$ac_ext <<_ACEOF
1989 /* confdefs.h. */
1990 _ACEOF
1991 cat confdefs.h >>conftest.$ac_ext
1992 cat >>conftest.$ac_ext <<_ACEOF
1993 /* end confdefs.h. */
1996 main ()
1998 #ifndef __GNUC__
1999 choke me
2000 #endif
2003 return 0;
2005 _ACEOF
2006 rm -f conftest.$ac_objext
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>conftest.er1
2009 ac_status=$?
2010 grep -v '^ *+' conftest.er1 >conftest.err
2011 rm -f conftest.er1
2012 cat conftest.err >&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -z "$ac_c_werror_flag"
2016 || test ! -s conftest.err'
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018 (eval $ac_try) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; } &&
2022 { ac_try='test -s conftest.$ac_objext'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 (eval $ac_try) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2028 ac_compiler_gnu=yes
2029 else
2030 echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 ac_compiler_gnu=no
2035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2039 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2040 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2041 GCC=`test $ac_compiler_gnu = yes && echo yes`
2042 ac_test_CFLAGS=${CFLAGS+set}
2043 ac_save_CFLAGS=$CFLAGS
2044 CFLAGS="-g"
2045 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2047 if test "${ac_cv_prog_cc_g+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050 cat >conftest.$ac_ext <<_ACEOF
2051 /* confdefs.h. */
2052 _ACEOF
2053 cat confdefs.h >>conftest.$ac_ext
2054 cat >>conftest.$ac_ext <<_ACEOF
2055 /* end confdefs.h. */
2058 main ()
2062 return 0;
2064 _ACEOF
2065 rm -f conftest.$ac_objext
2066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>conftest.er1
2068 ac_status=$?
2069 grep -v '^ *+' conftest.er1 >conftest.err
2070 rm -f conftest.er1
2071 cat conftest.err >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
2074 { ac_try='test -z "$ac_c_werror_flag"
2075 || test ! -s conftest.err'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077 (eval $ac_try) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; } &&
2081 { ac_try='test -s conftest.$ac_objext'
2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 (eval $ac_try) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; }; then
2087 ac_cv_prog_cc_g=yes
2088 else
2089 echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2092 ac_cv_prog_cc_g=no
2094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2096 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2097 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2098 if test "$ac_test_CFLAGS" = set; then
2099 CFLAGS=$ac_save_CFLAGS
2100 elif test $ac_cv_prog_cc_g = yes; then
2101 if test "$GCC" = yes; then
2102 CFLAGS="-g -O2"
2103 else
2104 CFLAGS="-g"
2106 else
2107 if test "$GCC" = yes; then
2108 CFLAGS="-O2"
2109 else
2110 CFLAGS=
2113 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2114 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118 ac_cv_prog_cc_stdc=no
2119 ac_save_CC=$CC
2120 cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h. */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2126 #include <stdarg.h>
2127 #include <stdio.h>
2128 #include <sys/types.h>
2129 #include <sys/stat.h>
2130 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2131 struct buf { int x; };
2132 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2133 static char *e (p, i)
2134 char **p;
2135 int i;
2137 return p[i];
2139 static char *f (char * (*g) (char **, int), char **p, ...)
2141 char *s;
2142 va_list v;
2143 va_start (v,p);
2144 s = g (p, va_arg (v,int));
2145 va_end (v);
2146 return s;
2149 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2150 function prototypes and stuff, but not '\xHH' hex character constants.
2151 These don't provoke an error unfortunately, instead are silently treated
2152 as 'x'. The following induces an error, until -std1 is added to get
2153 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2154 array size at least. It's necessary to write '\x00'==0 to get something
2155 that's true only with -std1. */
2156 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2158 int test (int i, double x);
2159 struct s1 {int (*f) (int a);};
2160 struct s2 {int (*f) (double a);};
2161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2162 int argc;
2163 char **argv;
2165 main ()
2167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2169 return 0;
2171 _ACEOF
2172 # Don't try gcc -ansi; that turns off useful extensions and
2173 # breaks some systems' header files.
2174 # AIX -qlanglvl=ansi
2175 # Ultrix and OSF/1 -std1
2176 # HP-UX 10.20 and later -Ae
2177 # HP-UX older versions -Aa -D_HPUX_SOURCE
2178 # SVR4 -Xc -D__EXTENSIONS__
2179 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2181 CC="$ac_save_CC $ac_arg"
2182 rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>conftest.er1
2185 ac_status=$?
2186 grep -v '^ *+' conftest.er1 >conftest.err
2187 rm -f conftest.er1
2188 cat conftest.err >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try='test -z "$ac_c_werror_flag"
2192 || test ! -s conftest.err'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 ac_cv_prog_cc_stdc=$ac_arg
2205 break
2206 else
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2211 rm -f conftest.err conftest.$ac_objext
2212 done
2213 rm -f conftest.$ac_ext conftest.$ac_objext
2214 CC=$ac_save_CC
2218 case "x$ac_cv_prog_cc_stdc" in
2219 x|xno)
2220 echo "$as_me:$LINENO: result: none needed" >&5
2221 echo "${ECHO_T}none needed" >&6 ;;
2223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225 CC="$CC $ac_cv_prog_cc_stdc" ;;
2226 esac
2228 # Some people use a C++ compiler to compile C. Since we use `exit',
2229 # in C++ we need to declare it. In case someone uses the same compiler
2230 # for both compiling C and C++ we need to have the C++ compiler decide
2231 # the declaration of exit, since it's the most demanding environment.
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #ifndef __cplusplus
2234 choke me
2235 #endif
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 for ac_declaration in \
2260 '' \
2261 'extern "C" void std::exit (int) throw (); using std::exit;' \
2262 'extern "C" void std::exit (int); using std::exit;' \
2263 'extern "C" void exit (int) throw ();' \
2264 'extern "C" void exit (int);' \
2265 'void exit (int);'
2267 cat >conftest.$ac_ext <<_ACEOF
2268 /* confdefs.h. */
2269 _ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h. */
2273 $ac_declaration
2274 #include <stdlib.h>
2276 main ()
2278 exit (42);
2280 return 0;
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2286 ac_status=$?
2287 grep -v '^ *+' conftest.er1 >conftest.err
2288 rm -f conftest.er1
2289 cat conftest.err >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -z "$ac_c_werror_flag"
2293 || test ! -s conftest.err'
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); }; } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2306 else
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2310 continue
2312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h. */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2319 $ac_declaration
2321 main ()
2323 exit (42);
2325 return 0;
2327 _ACEOF
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>conftest.er1
2331 ac_status=$?
2332 grep -v '^ *+' conftest.er1 >conftest.err
2333 rm -f conftest.er1
2334 cat conftest.err >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
2337 { ac_try='test -z "$ac_c_werror_flag"
2338 || test ! -s conftest.err'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 (eval $ac_try) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 break
2351 else
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357 done
2358 rm -f conftest*
2359 if test -n "$ac_declaration"; then
2360 echo '#ifdef __cplusplus' >>confdefs.h
2361 echo $ac_declaration >>confdefs.h
2362 echo '#endif' >>confdefs.h
2365 else
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 ac_ext=c
2372 ac_cpp='$CPP $CPPFLAGS'
2373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378 # Put a plausible default for CC_FOR_BUILD in Makefile.
2379 if test "x$cross_compiling" = "xno"; then
2380 CC_FOR_BUILD='$(CC)'
2381 else
2382 CC_FOR_BUILD=gcc
2384 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
2386 ALL_LINGUAS=
2387 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2388 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2389 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2390 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 cat >conftest.make <<\_ACEOF
2394 all:
2395 @echo 'ac_maketemp="$(MAKE)"'
2396 _ACEOF
2397 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2398 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2399 if test -n "$ac_maketemp"; then
2400 eval ac_cv_prog_make_${ac_make}_set=yes
2401 else
2402 eval ac_cv_prog_make_${ac_make}_set=no
2404 rm -f conftest.make
2406 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2407 echo "$as_me:$LINENO: result: yes" >&5
2408 echo "${ECHO_T}yes" >&6
2409 SET_MAKE=
2410 else
2411 echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6
2413 SET_MAKE="MAKE=${MAKE-make}"
2416 if test -n "$ac_tool_prefix"; then
2417 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2418 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2419 echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2421 if test "${ac_cv_prog_RANLIB+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 else
2424 if test -n "$RANLIB"; then
2425 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2438 done
2439 done
2443 RANLIB=$ac_cv_prog_RANLIB
2444 if test -n "$RANLIB"; then
2445 echo "$as_me:$LINENO: result: $RANLIB" >&5
2446 echo "${ECHO_T}$RANLIB" >&6
2447 else
2448 echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6
2453 if test -z "$ac_cv_prog_RANLIB"; then
2454 ac_ct_RANLIB=$RANLIB
2455 # Extract the first word of "ranlib", so it can be a program name with args.
2456 set dummy ranlib; ac_word=$2
2457 echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2459 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462 if test -n "$ac_ct_RANLIB"; then
2463 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472 ac_cv_prog_ac_ct_RANLIB="ranlib"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2476 done
2477 done
2479 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2482 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2483 if test -n "$ac_ct_RANLIB"; then
2484 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2485 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2486 else
2487 echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2491 RANLIB=$ac_ct_RANLIB
2492 else
2493 RANLIB="$ac_cv_prog_RANLIB"
2497 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2498 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2499 if test "${ac_cv_search_strerror+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 ac_func_search_save_LIBS=$LIBS
2503 ac_cv_search_strerror=no
2504 cat >conftest.$ac_ext <<_ACEOF
2505 /* confdefs.h. */
2506 _ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2511 /* Override any gcc2 internal prototype to avoid an error. */
2512 #ifdef __cplusplus
2513 extern "C"
2514 #endif
2515 /* We use char because int might match the return type of a gcc2
2516 builtin and then its argument prototype would still apply. */
2517 char strerror ();
2519 main ()
2521 strerror ();
2523 return 0;
2525 _ACEOF
2526 rm -f conftest.$ac_objext conftest$ac_exeext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2528 (eval $ac_link) 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest$ac_exeext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 ac_cv_search_strerror="none required"
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2554 rm -f conftest.err conftest.$ac_objext \
2555 conftest$ac_exeext conftest.$ac_ext
2556 if test "$ac_cv_search_strerror" = no; then
2557 for ac_lib in cposix; do
2558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2559 cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h. */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2566 /* Override any gcc2 internal prototype to avoid an error. */
2567 #ifdef __cplusplus
2568 extern "C"
2569 #endif
2570 /* We use char because int might match the return type of a gcc2
2571 builtin and then its argument prototype would still apply. */
2572 char strerror ();
2574 main ()
2576 strerror ();
2578 return 0;
2580 _ACEOF
2581 rm -f conftest.$ac_objext conftest$ac_exeext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2583 (eval $ac_link) 2>conftest.er1
2584 ac_status=$?
2585 grep -v '^ *+' conftest.er1 >conftest.err
2586 rm -f conftest.er1
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
2590 { ac_try='test -z "$ac_c_werror_flag"
2591 || test ! -s conftest.err'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 (eval $ac_try) 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; } &&
2597 { ac_try='test -s conftest$ac_exeext'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 (eval $ac_try) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
2603 ac_cv_search_strerror="-l$ac_lib"
2604 break
2605 else
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f conftest.err conftest.$ac_objext \
2611 conftest$ac_exeext conftest.$ac_ext
2612 done
2614 LIBS=$ac_func_search_save_LIBS
2616 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2617 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2618 if test "$ac_cv_search_strerror" != no; then
2619 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2629 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2630 # On Suns, sometimes $CPP names a directory.
2631 if test -n "$CPP" && test -d "$CPP"; then
2632 CPP=
2634 if test -z "$CPP"; then
2635 if test "${ac_cv_prog_CPP+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638 # Double quotes because CPP needs to be expanded
2639 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2641 ac_preproc_ok=false
2642 for ac_c_preproc_warn_flag in '' yes
2644 # Use a header file that comes with gcc, so configuring glibc
2645 # with a fresh cross-compiler works.
2646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2647 # <limits.h> exists even on freestanding compilers.
2648 # On the NeXT, cc -E runs the code through the compiler's parser,
2649 # not just through cpp. "Syntax error" is here to catch this case.
2650 cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h. */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2656 #ifdef __STDC__
2657 # include <limits.h>
2658 #else
2659 # include <assert.h>
2660 #endif
2661 Syntax error
2662 _ACEOF
2663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2665 ac_status=$?
2666 grep -v '^ *+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } >/dev/null; then
2671 if test -s conftest.err; then
2672 ac_cpp_err=$ac_c_preproc_warn_flag
2673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2674 else
2675 ac_cpp_err=
2677 else
2678 ac_cpp_err=yes
2680 if test -z "$ac_cpp_err"; then
2682 else
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2686 # Broken: fails on valid input.
2687 continue
2689 rm -f conftest.err conftest.$ac_ext
2691 # OK, works on sane cases. Now check whether non-existent headers
2692 # can be detected and how.
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2699 #include <ac_nonexistent.h>
2700 _ACEOF
2701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } >/dev/null; then
2709 if test -s conftest.err; then
2710 ac_cpp_err=$ac_c_preproc_warn_flag
2711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2712 else
2713 ac_cpp_err=
2715 else
2716 ac_cpp_err=yes
2718 if test -z "$ac_cpp_err"; then
2719 # Broken: success on invalid input.
2720 continue
2721 else
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 # Passes both tests.
2726 ac_preproc_ok=:
2727 break
2729 rm -f conftest.err conftest.$ac_ext
2731 done
2732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2733 rm -f conftest.err conftest.$ac_ext
2734 if $ac_preproc_ok; then
2735 break
2738 done
2739 ac_cv_prog_CPP=$CPP
2742 CPP=$ac_cv_prog_CPP
2743 else
2744 ac_cv_prog_CPP=$CPP
2746 echo "$as_me:$LINENO: result: $CPP" >&5
2747 echo "${ECHO_T}$CPP" >&6
2748 ac_preproc_ok=false
2749 for ac_c_preproc_warn_flag in '' yes
2751 # Use a header file that comes with gcc, so configuring glibc
2752 # with a fresh cross-compiler works.
2753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2754 # <limits.h> exists even on freestanding compilers.
2755 # On the NeXT, cc -E runs the code through the compiler's parser,
2756 # not just through cpp. "Syntax error" is here to catch this case.
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h. */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2763 #ifdef __STDC__
2764 # include <limits.h>
2765 #else
2766 # include <assert.h>
2767 #endif
2768 Syntax error
2769 _ACEOF
2770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2772 ac_status=$?
2773 grep -v '^ *+' conftest.er1 >conftest.err
2774 rm -f conftest.er1
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } >/dev/null; then
2778 if test -s conftest.err; then
2779 ac_cpp_err=$ac_c_preproc_warn_flag
2780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2781 else
2782 ac_cpp_err=
2784 else
2785 ac_cpp_err=yes
2787 if test -z "$ac_cpp_err"; then
2789 else
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2793 # Broken: fails on valid input.
2794 continue
2796 rm -f conftest.err conftest.$ac_ext
2798 # OK, works on sane cases. Now check whether non-existent headers
2799 # can be detected and how.
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806 #include <ac_nonexistent.h>
2807 _ACEOF
2808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2810 ac_status=$?
2811 grep -v '^ *+' conftest.er1 >conftest.err
2812 rm -f conftest.er1
2813 cat conftest.err >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); } >/dev/null; then
2816 if test -s conftest.err; then
2817 ac_cpp_err=$ac_c_preproc_warn_flag
2818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2819 else
2820 ac_cpp_err=
2822 else
2823 ac_cpp_err=yes
2825 if test -z "$ac_cpp_err"; then
2826 # Broken: success on invalid input.
2827 continue
2828 else
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 # Passes both tests.
2833 ac_preproc_ok=:
2834 break
2836 rm -f conftest.err conftest.$ac_ext
2838 done
2839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2840 rm -f conftest.err conftest.$ac_ext
2841 if $ac_preproc_ok; then
2843 else
2844 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2845 See \`config.log' for more details." >&5
2846 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2847 See \`config.log' for more details." >&2;}
2848 { (exit 1); exit 1; }; }
2851 ac_ext=c
2852 ac_cpp='$CPP $CPPFLAGS'
2853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858 echo "$as_me:$LINENO: checking for egrep" >&5
2859 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2860 if test "${ac_cv_prog_egrep+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2864 then ac_cv_prog_egrep='grep -E'
2865 else ac_cv_prog_egrep='egrep'
2868 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2869 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2870 EGREP=$ac_cv_prog_egrep
2873 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2874 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2875 if test "${ac_cv_header_stdc+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #include <stdlib.h>
2885 #include <stdarg.h>
2886 #include <string.h>
2887 #include <float.h>
2890 main ()
2894 return 0;
2896 _ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -z "$ac_c_werror_flag"
2907 || test ! -s conftest.err'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 (eval $ac_try) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 ac_cv_header_stdc=yes
2920 else
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2924 ac_cv_header_stdc=no
2926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928 if test $ac_cv_header_stdc = yes; then
2929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2930 cat >conftest.$ac_ext <<_ACEOF
2931 /* confdefs.h. */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2936 #include <string.h>
2938 _ACEOF
2939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2940 $EGREP "memchr" >/dev/null 2>&1; then
2942 else
2943 ac_cv_header_stdc=no
2945 rm -f conftest*
2949 if test $ac_cv_header_stdc = yes; then
2950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2951 cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2957 #include <stdlib.h>
2959 _ACEOF
2960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2961 $EGREP "free" >/dev/null 2>&1; then
2963 else
2964 ac_cv_header_stdc=no
2966 rm -f conftest*
2970 if test $ac_cv_header_stdc = yes; then
2971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2972 if test "$cross_compiling" = yes; then
2974 else
2975 cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h. */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2981 #include <ctype.h>
2982 #if ((' ' & 0x0FF) == 0x020)
2983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2985 #else
2986 # define ISLOWER(c) \
2987 (('a' <= (c) && (c) <= 'i') \
2988 || ('j' <= (c) && (c) <= 'r') \
2989 || ('s' <= (c) && (c) <= 'z'))
2990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2991 #endif
2993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2995 main ()
2997 int i;
2998 for (i = 0; i < 256; i++)
2999 if (XOR (islower (i), ISLOWER (i))
3000 || toupper (i) != TOUPPER (i))
3001 exit(2);
3002 exit (0);
3004 _ACEOF
3005 rm -f conftest$ac_exeext
3006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3007 (eval $ac_link) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 (eval $ac_try) 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3017 else
3018 echo "$as_me: program exited with status $ac_status" >&5
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 ( exit $ac_status )
3023 ac_cv_header_stdc=no
3025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3029 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3030 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3031 if test $ac_cv_header_stdc = yes; then
3033 cat >>confdefs.h <<\_ACEOF
3034 #define STDC_HEADERS 1
3035 _ACEOF
3039 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3040 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3041 if test "${ac_cv_c_const+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044 cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h. */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3052 main ()
3054 /* FIXME: Include the comments suggested by Paul. */
3055 #ifndef __cplusplus
3056 /* Ultrix mips cc rejects this. */
3057 typedef int charset[2];
3058 const charset x;
3059 /* SunOS 4.1.1 cc rejects this. */
3060 char const *const *ccp;
3061 char **p;
3062 /* NEC SVR4.0.2 mips cc rejects this. */
3063 struct point {int x, y;};
3064 static struct point const zero = {0,0};
3065 /* AIX XL C 1.02.0.0 rejects this.
3066 It does not let you subtract one const X* pointer from another in
3067 an arm of an if-expression whose if-part is not a constant
3068 expression */
3069 const char *g = "string";
3070 ccp = &g + (g ? g-g : 0);
3071 /* HPUX 7.0 cc rejects these. */
3072 ++ccp;
3073 p = (char**) ccp;
3074 ccp = (char const *const *) p;
3075 { /* SCO 3.2v4 cc rejects this. */
3076 char *t;
3077 char const *s = 0 ? (char *) 0 : (char const *) 0;
3079 *t++ = 0;
3081 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3082 int x[] = {25, 17};
3083 const int *foo = &x[0];
3084 ++foo;
3086 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3087 typedef const int *iptr;
3088 iptr p = 0;
3089 ++p;
3091 { /* AIX XL C 1.02.0.0 rejects this saying
3092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3093 struct s { int j; const int *ap[3]; };
3094 struct s *b; b->j = 5;
3096 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3097 const int foo = 10;
3099 #endif
3102 return 0;
3104 _ACEOF
3105 rm -f conftest.$ac_objext
3106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107 (eval $ac_compile) 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try='test -z "$ac_c_werror_flag"
3115 || test ! -s conftest.err'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 (eval $ac_try) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; } &&
3121 { ac_try='test -s conftest.$ac_objext'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 (eval $ac_try) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 ac_cv_c_const=yes
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 ac_cv_c_const=no
3134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3136 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3137 echo "${ECHO_T}$ac_cv_c_const" >&6
3138 if test $ac_cv_c_const = no; then
3140 cat >>confdefs.h <<\_ACEOF
3141 #define const
3142 _ACEOF
3146 echo "$as_me:$LINENO: checking for inline" >&5
3147 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3148 if test "${ac_cv_c_inline+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 ac_cv_c_inline=no
3152 for ac_kw in inline __inline__ __inline; do
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 #ifndef __cplusplus
3160 typedef int foo_t;
3161 static $ac_kw foo_t static_foo () {return 0; }
3162 $ac_kw foo_t foo () {return 0; }
3163 #endif
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3168 (eval $ac_compile) 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -z "$ac_c_werror_flag"
3176 || test ! -s conftest.err'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; } &&
3182 { ac_try='test -s conftest.$ac_objext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 ac_cv_c_inline=$ac_kw; break
3189 else
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3195 done
3198 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3199 echo "${ECHO_T}$ac_cv_c_inline" >&6
3202 case $ac_cv_c_inline in
3203 inline | yes) ;;
3205 case $ac_cv_c_inline in
3206 no) ac_val=;;
3207 *) ac_val=$ac_cv_c_inline;;
3208 esac
3209 cat >>confdefs.h <<_ACEOF
3210 #ifndef __cplusplus
3211 #define inline $ac_val
3212 #endif
3213 _ACEOF
3215 esac
3217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3227 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3228 inttypes.h stdint.h unistd.h
3230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3231 echo "$as_me:$LINENO: checking for $ac_header" >&5
3232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242 $ac_includes_default
3244 #include <$ac_header>
3245 _ACEOF
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>conftest.er1
3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } &&
3255 { ac_try='test -z "$ac_c_werror_flag"
3256 || test ! -s conftest.err'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 (eval $ac_try) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; } &&
3262 { ac_try='test -s conftest.$ac_objext'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 (eval $ac_try) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
3268 eval "$as_ac_Header=yes"
3269 else
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3273 eval "$as_ac_Header=no"
3275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3280 cat >>confdefs.h <<_ACEOF
3281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3282 _ACEOF
3286 done
3289 echo "$as_me:$LINENO: checking for off_t" >&5
3290 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3291 if test "${ac_cv_type_off_t+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300 $ac_includes_default
3302 main ()
3304 if ((off_t *) 0)
3305 return 0;
3306 if (sizeof (off_t))
3307 return 0;
3309 return 0;
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_type_off_t=yes
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 ac_cv_type_off_t=no
3341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3343 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3344 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3345 if test $ac_cv_type_off_t = yes; then
3347 else
3349 cat >>confdefs.h <<_ACEOF
3350 #define off_t long
3351 _ACEOF
3355 echo "$as_me:$LINENO: checking for size_t" >&5
3356 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3357 if test "${ac_cv_type_size_t+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h. */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3366 $ac_includes_default
3368 main ()
3370 if ((size_t *) 0)
3371 return 0;
3372 if (sizeof (size_t))
3373 return 0;
3375 return 0;
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_type_size_t=yes
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 ac_cv_type_size_t=no
3407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3410 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3411 if test $ac_cv_type_size_t = yes; then
3413 else
3415 cat >>confdefs.h <<_ACEOF
3416 #define size_t unsigned
3417 _ACEOF
3421 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3422 # for constant arguments. Useless!
3423 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3424 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3425 if test "${ac_cv_working_alloca_h+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428 cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h. */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3434 #include <alloca.h>
3436 main ()
3438 char *p = (char *) alloca (2 * sizeof (int));
3440 return 0;
3442 _ACEOF
3443 rm -f conftest.$ac_objext conftest$ac_exeext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3445 (eval $ac_link) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest$ac_exeext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 ac_cv_working_alloca_h=yes
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 ac_cv_working_alloca_h=no
3472 rm -f conftest.err conftest.$ac_objext \
3473 conftest$ac_exeext conftest.$ac_ext
3475 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3476 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3477 if test $ac_cv_working_alloca_h = yes; then
3479 cat >>confdefs.h <<\_ACEOF
3480 #define HAVE_ALLOCA_H 1
3481 _ACEOF
3485 echo "$as_me:$LINENO: checking for alloca" >&5
3486 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3487 if test "${ac_cv_func_alloca_works+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #ifdef __GNUC__
3497 # define alloca __builtin_alloca
3498 #else
3499 # ifdef _MSC_VER
3500 # include <malloc.h>
3501 # define alloca _alloca
3502 # else
3503 # if HAVE_ALLOCA_H
3504 # include <alloca.h>
3505 # else
3506 # ifdef _AIX
3507 #pragma alloca
3508 # else
3509 # ifndef alloca /* predefined by HP cc +Olibcalls */
3510 char *alloca ();
3511 # endif
3512 # endif
3513 # endif
3514 # endif
3515 #endif
3518 main ()
3520 char *p = (char *) alloca (1);
3522 return 0;
3524 _ACEOF
3525 rm -f conftest.$ac_objext conftest$ac_exeext
3526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3527 (eval $ac_link) 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_c_werror_flag"
3535 || test ! -s conftest.err'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest$ac_exeext'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 ac_cv_func_alloca_works=yes
3548 else
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 ac_cv_func_alloca_works=no
3554 rm -f conftest.err conftest.$ac_objext \
3555 conftest$ac_exeext conftest.$ac_ext
3557 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3558 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3560 if test $ac_cv_func_alloca_works = yes; then
3562 cat >>confdefs.h <<\_ACEOF
3563 #define HAVE_ALLOCA 1
3564 _ACEOF
3566 else
3567 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3568 # that cause trouble. Some versions do not even contain alloca or
3569 # contain a buggy version. If you still want to use their alloca,
3570 # use ar to extract alloca.o from them instead of compiling alloca.c.
3572 ALLOCA=alloca.$ac_objext
3574 cat >>confdefs.h <<\_ACEOF
3575 #define C_ALLOCA 1
3576 _ACEOF
3579 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3580 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3581 if test "${ac_cv_os_cray+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #if defined(CRAY) && ! defined(CRAY2)
3591 webecray
3592 #else
3593 wenotbecray
3594 #endif
3596 _ACEOF
3597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3598 $EGREP "webecray" >/dev/null 2>&1; then
3599 ac_cv_os_cray=yes
3600 else
3601 ac_cv_os_cray=no
3603 rm -f conftest*
3606 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3607 echo "${ECHO_T}$ac_cv_os_cray" >&6
3608 if test $ac_cv_os_cray = yes; then
3609 for ac_func in _getb67 GETB67 getb67; do
3610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3611 echo "$as_me:$LINENO: checking for $ac_func" >&5
3612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3613 if eval "test \"\${$as_ac_var+set}\" = set"; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3624 #define $ac_func innocuous_$ac_func
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char $ac_func (); below.
3628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629 <limits.h> exists even on freestanding compilers. */
3631 #ifdef __STDC__
3632 # include <limits.h>
3633 #else
3634 # include <assert.h>
3635 #endif
3637 #undef $ac_func
3639 /* Override any gcc2 internal prototype to avoid an error. */
3640 #ifdef __cplusplus
3641 extern "C"
3643 #endif
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char $ac_func ();
3647 /* The GNU C library defines this for functions which it implements
3648 to always fail with ENOSYS. Some functions are actually named
3649 something starting with __ and the normal name is an alias. */
3650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3651 choke me
3652 #else
3653 char (*f) () = $ac_func;
3654 #endif
3655 #ifdef __cplusplus
3657 #endif
3660 main ()
3662 return f != $ac_func;
3664 return 0;
3666 _ACEOF
3667 rm -f conftest.$ac_objext conftest$ac_exeext
3668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669 (eval $ac_link) 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_c_werror_flag"
3677 || test ! -s conftest.err'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; } &&
3683 { ac_try='test -s conftest$ac_exeext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 eval "$as_ac_var=yes"
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 eval "$as_ac_var=no"
3696 rm -f conftest.err conftest.$ac_objext \
3697 conftest$ac_exeext conftest.$ac_ext
3699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3701 if test `eval echo '${'$as_ac_var'}'` = yes; then
3703 cat >>confdefs.h <<_ACEOF
3704 #define CRAY_STACKSEG_END $ac_func
3705 _ACEOF
3707 break
3710 done
3713 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3714 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3715 if test "${ac_cv_c_stack_direction+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 if test "$cross_compiling" = yes; then
3719 ac_cv_c_stack_direction=0
3720 else
3721 cat >conftest.$ac_ext <<_ACEOF
3722 /* confdefs.h. */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3728 find_stack_direction ()
3730 static char *addr = 0;
3731 auto char dummy;
3732 if (addr == 0)
3734 addr = &dummy;
3735 return find_stack_direction ();
3737 else
3738 return (&dummy > addr) ? 1 : -1;
3742 main ()
3744 exit (find_stack_direction () < 0);
3746 _ACEOF
3747 rm -f conftest$ac_exeext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749 (eval $ac_link) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; }; then
3758 ac_cv_c_stack_direction=1
3759 else
3760 echo "$as_me: program exited with status $ac_status" >&5
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 ( exit $ac_status )
3765 ac_cv_c_stack_direction=-1
3767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3770 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3771 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3773 cat >>confdefs.h <<_ACEOF
3774 #define STACK_DIRECTION $ac_cv_c_stack_direction
3775 _ACEOF
3782 for ac_header in stdlib.h unistd.h
3784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786 echo "$as_me:$LINENO: checking for $ac_header" >&5
3787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3793 else
3794 # Is the header compilable?
3795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 $ac_includes_default
3804 #include <$ac_header>
3805 _ACEOF
3806 rm -f conftest.$ac_objext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_header_compiler=yes
3829 else
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 ac_header_compiler=no
3835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3837 echo "${ECHO_T}$ac_header_compiler" >&6
3839 # Is the header present?
3840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 #include <$ac_header>
3849 _ACEOF
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null; then
3858 if test -s conftest.err; then
3859 ac_cpp_err=$ac_c_preproc_warn_flag
3860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3861 else
3862 ac_cpp_err=
3864 else
3865 ac_cpp_err=yes
3867 if test -z "$ac_cpp_err"; then
3868 ac_header_preproc=yes
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 ac_header_preproc=no
3875 rm -f conftest.err conftest.$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3877 echo "${ECHO_T}$ac_header_preproc" >&6
3879 # So? What about this header?
3880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3881 yes:no: )
3882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3886 ac_header_preproc=yes
3888 no:yes:* )
3889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3902 cat <<\_ASBOX
3903 ## ------------------------------------------ ##
3904 ## Report this to the AC_PACKAGE_NAME lists. ##
3905 ## ------------------------------------------ ##
3906 _ASBOX
3908 sed "s/^/$as_me: WARNING: /" >&2
3910 esac
3911 echo "$as_me:$LINENO: checking for $ac_header" >&5
3912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 eval "$as_ac_Header=\$ac_header_preproc"
3918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3923 cat >>confdefs.h <<_ACEOF
3924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3925 _ACEOF
3929 done
3932 for ac_func in getpagesize
3934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3935 echo "$as_me:$LINENO: checking for $ac_func" >&5
3936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3937 if eval "test \"\${$as_ac_var+set}\" = set"; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3948 #define $ac_func innocuous_$ac_func
3950 /* System header to define __stub macros and hopefully few prototypes,
3951 which can conflict with char $ac_func (); below.
3952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3953 <limits.h> exists even on freestanding compilers. */
3955 #ifdef __STDC__
3956 # include <limits.h>
3957 #else
3958 # include <assert.h>
3959 #endif
3961 #undef $ac_func
3963 /* Override any gcc2 internal prototype to avoid an error. */
3964 #ifdef __cplusplus
3965 extern "C"
3967 #endif
3968 /* We use char because int might match the return type of a gcc2
3969 builtin and then its argument prototype would still apply. */
3970 char $ac_func ();
3971 /* The GNU C library defines this for functions which it implements
3972 to always fail with ENOSYS. Some functions are actually named
3973 something starting with __ and the normal name is an alias. */
3974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3975 choke me
3976 #else
3977 char (*f) () = $ac_func;
3978 #endif
3979 #ifdef __cplusplus
3981 #endif
3984 main ()
3986 return f != $ac_func;
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext conftest$ac_exeext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3993 (eval $ac_link) 2>conftest.er1
3994 ac_status=$?
3995 grep -v '^ *+' conftest.er1 >conftest.err
3996 rm -f conftest.er1
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_c_werror_flag"
4001 || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest$ac_exeext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 (eval $ac_try) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 eval "$as_ac_var=yes"
4014 else
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 eval "$as_ac_var=no"
4020 rm -f conftest.err conftest.$ac_objext \
4021 conftest$ac_exeext conftest.$ac_ext
4023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4025 if test `eval echo '${'$as_ac_var'}'` = yes; then
4026 cat >>confdefs.h <<_ACEOF
4027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4028 _ACEOF
4031 done
4033 echo "$as_me:$LINENO: checking for working mmap" >&5
4034 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4035 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 if test "$cross_compiling" = yes; then
4039 ac_cv_func_mmap_fixed_mapped=no
4040 else
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 $ac_includes_default
4048 /* malloc might have been renamed as rpl_malloc. */
4049 #undef malloc
4051 /* Thanks to Mike Haertel and Jim Avera for this test.
4052 Here is a matrix of mmap possibilities:
4053 mmap private not fixed
4054 mmap private fixed at somewhere currently unmapped
4055 mmap private fixed at somewhere already mapped
4056 mmap shared not fixed
4057 mmap shared fixed at somewhere currently unmapped
4058 mmap shared fixed at somewhere already mapped
4059 For private mappings, we should verify that changes cannot be read()
4060 back from the file, nor mmap's back from the file at a different
4061 address. (There have been systems where private was not correctly
4062 implemented like the infamous i386 svr4.0, and systems where the
4063 VM page cache was not coherent with the file system buffer cache
4064 like early versions of FreeBSD and possibly contemporary NetBSD.)
4065 For shared mappings, we should conversely verify that changes get
4066 propagated back to all the places they're supposed to be.
4068 Grep wants private fixed already mapped.
4069 The main things grep needs to know about mmap are:
4070 * does it exist and is it safe to write into the mmap'd area
4071 * how to use it (BSD variants) */
4073 #include <fcntl.h>
4074 #include <sys/mman.h>
4076 #if !STDC_HEADERS && !HAVE_STDLIB_H
4077 char *malloc ();
4078 #endif
4080 /* This mess was copied from the GNU getpagesize.h. */
4081 #if !HAVE_GETPAGESIZE
4082 /* Assume that all systems that can run configure have sys/param.h. */
4083 # if !HAVE_SYS_PARAM_H
4084 # define HAVE_SYS_PARAM_H 1
4085 # endif
4087 # ifdef _SC_PAGESIZE
4088 # define getpagesize() sysconf(_SC_PAGESIZE)
4089 # else /* no _SC_PAGESIZE */
4090 # if HAVE_SYS_PARAM_H
4091 # include <sys/param.h>
4092 # ifdef EXEC_PAGESIZE
4093 # define getpagesize() EXEC_PAGESIZE
4094 # else /* no EXEC_PAGESIZE */
4095 # ifdef NBPG
4096 # define getpagesize() NBPG * CLSIZE
4097 # ifndef CLSIZE
4098 # define CLSIZE 1
4099 # endif /* no CLSIZE */
4100 # else /* no NBPG */
4101 # ifdef NBPC
4102 # define getpagesize() NBPC
4103 # else /* no NBPC */
4104 # ifdef PAGESIZE
4105 # define getpagesize() PAGESIZE
4106 # endif /* PAGESIZE */
4107 # endif /* no NBPC */
4108 # endif /* no NBPG */
4109 # endif /* no EXEC_PAGESIZE */
4110 # else /* no HAVE_SYS_PARAM_H */
4111 # define getpagesize() 8192 /* punt totally */
4112 # endif /* no HAVE_SYS_PARAM_H */
4113 # endif /* no _SC_PAGESIZE */
4115 #endif /* no HAVE_GETPAGESIZE */
4118 main ()
4120 char *data, *data2, *data3;
4121 int i, pagesize;
4122 int fd;
4124 pagesize = getpagesize ();
4126 /* First, make a file with some known garbage in it. */
4127 data = (char *) malloc (pagesize);
4128 if (!data)
4129 exit (1);
4130 for (i = 0; i < pagesize; ++i)
4131 *(data + i) = rand ();
4132 umask (0);
4133 fd = creat ("conftest.mmap", 0600);
4134 if (fd < 0)
4135 exit (1);
4136 if (write (fd, data, pagesize) != pagesize)
4137 exit (1);
4138 close (fd);
4140 /* Next, try to mmap the file at a fixed address which already has
4141 something else allocated at it. If we can, also make sure that
4142 we see the same garbage. */
4143 fd = open ("conftest.mmap", O_RDWR);
4144 if (fd < 0)
4145 exit (1);
4146 data2 = (char *) malloc (2 * pagesize);
4147 if (!data2)
4148 exit (1);
4149 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4150 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4151 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4152 exit (1);
4153 for (i = 0; i < pagesize; ++i)
4154 if (*(data + i) != *(data2 + i))
4155 exit (1);
4157 /* Finally, make sure that changes to the mapped area do not
4158 percolate back to the file as seen by read(). (This is a bug on
4159 some variants of i386 svr4.0.) */
4160 for (i = 0; i < pagesize; ++i)
4161 *(data2 + i) = *(data2 + i) + 1;
4162 data3 = (char *) malloc (pagesize);
4163 if (!data3)
4164 exit (1);
4165 if (read (fd, data3, pagesize) != pagesize)
4166 exit (1);
4167 for (i = 0; i < pagesize; ++i)
4168 if (*(data + i) != *(data3 + i))
4169 exit (1);
4170 close (fd);
4171 exit (0);
4173 _ACEOF
4174 rm -f conftest$ac_exeext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4176 (eval $ac_link) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; }; then
4185 ac_cv_func_mmap_fixed_mapped=yes
4186 else
4187 echo "$as_me: program exited with status $ac_status" >&5
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 ( exit $ac_status )
4192 ac_cv_func_mmap_fixed_mapped=no
4194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4197 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4198 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4199 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4201 cat >>confdefs.h <<\_ACEOF
4202 #define HAVE_MMAP 1
4203 _ACEOF
4206 rm -f conftest.mmap
4218 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4219 unistd.h values.h sys/param.h
4221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4223 echo "$as_me:$LINENO: checking for $ac_header" >&5
4224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4230 else
4231 # Is the header compilable?
4232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4234 cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h. */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 $ac_includes_default
4241 #include <$ac_header>
4242 _ACEOF
4243 rm -f conftest.$ac_objext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4245 (eval $ac_compile) 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag"
4253 || test ! -s conftest.err'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 (eval $ac_try) 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; } &&
4259 { ac_try='test -s conftest.$ac_objext'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 (eval $ac_try) 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4265 ac_header_compiler=yes
4266 else
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4270 ac_header_compiler=no
4272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4274 echo "${ECHO_T}$ac_header_compiler" >&6
4276 # Is the header present?
4277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4279 cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h. */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4285 #include <$ac_header>
4286 _ACEOF
4287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } >/dev/null; then
4295 if test -s conftest.err; then
4296 ac_cpp_err=$ac_c_preproc_warn_flag
4297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4298 else
4299 ac_cpp_err=
4301 else
4302 ac_cpp_err=yes
4304 if test -z "$ac_cpp_err"; then
4305 ac_header_preproc=yes
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 ac_header_preproc=no
4312 rm -f conftest.err conftest.$ac_ext
4313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4314 echo "${ECHO_T}$ac_header_preproc" >&6
4316 # So? What about this header?
4317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4318 yes:no: )
4319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4323 ac_header_preproc=yes
4325 no:yes:* )
4326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4339 cat <<\_ASBOX
4340 ## ------------------------------------------ ##
4341 ## Report this to the AC_PACKAGE_NAME lists. ##
4342 ## ------------------------------------------ ##
4343 _ASBOX
4345 sed "s/^/$as_me: WARNING: /" >&2
4347 esac
4348 echo "$as_me:$LINENO: checking for $ac_header" >&5
4349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 eval "$as_ac_Header=\$ac_header_preproc"
4355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4360 cat >>confdefs.h <<_ACEOF
4361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362 _ACEOF
4366 done
4378 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4379 __argz_count __argz_stringify __argz_next
4381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4382 echo "$as_me:$LINENO: checking for $ac_func" >&5
4383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4384 if eval "test \"\${$as_ac_var+set}\" = set"; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h. */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4395 #define $ac_func innocuous_$ac_func
4397 /* System header to define __stub macros and hopefully few prototypes,
4398 which can conflict with char $ac_func (); below.
4399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4400 <limits.h> exists even on freestanding compilers. */
4402 #ifdef __STDC__
4403 # include <limits.h>
4404 #else
4405 # include <assert.h>
4406 #endif
4408 #undef $ac_func
4410 /* Override any gcc2 internal prototype to avoid an error. */
4411 #ifdef __cplusplus
4412 extern "C"
4414 #endif
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4417 char $ac_func ();
4418 /* The GNU C library defines this for functions which it implements
4419 to always fail with ENOSYS. Some functions are actually named
4420 something starting with __ and the normal name is an alias. */
4421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4422 choke me
4423 #else
4424 char (*f) () = $ac_func;
4425 #endif
4426 #ifdef __cplusplus
4428 #endif
4431 main ()
4433 return f != $ac_func;
4435 return 0;
4437 _ACEOF
4438 rm -f conftest.$ac_objext conftest$ac_exeext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4440 (eval $ac_link) 2>conftest.er1
4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -z "$ac_c_werror_flag"
4448 || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest$ac_exeext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 eval "$as_ac_var=yes"
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 eval "$as_ac_var=no"
4467 rm -f conftest.err conftest.$ac_objext \
4468 conftest$ac_exeext conftest.$ac_ext
4470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4472 if test `eval echo '${'$as_ac_var'}'` = yes; then
4473 cat >>confdefs.h <<_ACEOF
4474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4475 _ACEOF
4478 done
4481 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4483 for ac_func in stpcpy
4485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4486 echo "$as_me:$LINENO: checking for $ac_func" >&5
4487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4488 if eval "test \"\${$as_ac_var+set}\" = set"; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h. */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4499 #define $ac_func innocuous_$ac_func
4501 /* System header to define __stub macros and hopefully few prototypes,
4502 which can conflict with char $ac_func (); below.
4503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4504 <limits.h> exists even on freestanding compilers. */
4506 #ifdef __STDC__
4507 # include <limits.h>
4508 #else
4509 # include <assert.h>
4510 #endif
4512 #undef $ac_func
4514 /* Override any gcc2 internal prototype to avoid an error. */
4515 #ifdef __cplusplus
4516 extern "C"
4518 #endif
4519 /* We use char because int might match the return type of a gcc2
4520 builtin and then its argument prototype would still apply. */
4521 char $ac_func ();
4522 /* The GNU C library defines this for functions which it implements
4523 to always fail with ENOSYS. Some functions are actually named
4524 something starting with __ and the normal name is an alias. */
4525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4526 choke me
4527 #else
4528 char (*f) () = $ac_func;
4529 #endif
4530 #ifdef __cplusplus
4532 #endif
4535 main ()
4537 return f != $ac_func;
4539 return 0;
4541 _ACEOF
4542 rm -f conftest.$ac_objext conftest$ac_exeext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4544 (eval $ac_link) 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4564 eval "$as_ac_var=yes"
4565 else
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 eval "$as_ac_var=no"
4571 rm -f conftest.err conftest.$ac_objext \
4572 conftest$ac_exeext conftest.$ac_ext
4574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4576 if test `eval echo '${'$as_ac_var'}'` = yes; then
4577 cat >>confdefs.h <<_ACEOF
4578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4579 _ACEOF
4582 done
4585 if test "${ac_cv_func_stpcpy}" = "yes"; then
4587 cat >>confdefs.h <<\_ACEOF
4588 #define HAVE_STPCPY 1
4589 _ACEOF
4593 if test $ac_cv_header_locale_h = yes; then
4594 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4595 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4596 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 #include <locale.h>
4607 main ()
4609 return LC_MESSAGES
4611 return 0;
4613 _ACEOF
4614 rm -f conftest.$ac_objext conftest$ac_exeext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4616 (eval $ac_link) 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
4623 { ac_try='test -z "$ac_c_werror_flag"
4624 || test ! -s conftest.err'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest$ac_exeext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 am_cv_val_LC_MESSAGES=yes
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 am_cv_val_LC_MESSAGES=no
4643 rm -f conftest.err conftest.$ac_objext \
4644 conftest$ac_exeext conftest.$ac_ext
4646 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4647 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4648 if test $am_cv_val_LC_MESSAGES = yes; then
4650 cat >>confdefs.h <<\_ACEOF
4651 #define HAVE_LC_MESSAGES 1
4652 _ACEOF
4656 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4657 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4658 # Check whether --enable-nls or --disable-nls was given.
4659 if test "${enable_nls+set}" = set; then
4660 enableval="$enable_nls"
4661 USE_NLS=$enableval
4662 else
4663 USE_NLS=yes
4665 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4666 echo "${ECHO_T}$USE_NLS" >&6
4669 USE_INCLUDED_LIBINTL=no
4671 if test "$USE_NLS" = "yes"; then
4672 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4673 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4675 # Check whether --with-included-gettext or --without-included-gettext was given.
4676 if test "${with_included_gettext+set}" = set; then
4677 withval="$with_included_gettext"
4678 nls_cv_force_use_gnu_gettext=$withval
4679 else
4680 nls_cv_force_use_gnu_gettext=no
4682 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4683 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4685 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4686 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4687 nls_cv_header_intl=
4688 nls_cv_header_libgt=
4689 CATOBJEXT=
4691 if test "${ac_cv_header_libintl_h+set}" = set; then
4692 echo "$as_me:$LINENO: checking for libintl.h" >&5
4693 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4694 if test "${ac_cv_header_libintl_h+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4698 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4699 else
4700 # Is the header compilable?
4701 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4702 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4703 cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h. */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 $ac_includes_default
4710 #include <libintl.h>
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 ac_header_compiler=yes
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 ac_header_compiler=no
4741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4743 echo "${ECHO_T}$ac_header_compiler" >&6
4745 # Is the header present?
4746 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4747 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 #include <libintl.h>
4755 _ACEOF
4756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } >/dev/null; then
4764 if test -s conftest.err; then
4765 ac_cpp_err=$ac_c_preproc_warn_flag
4766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4767 else
4768 ac_cpp_err=
4770 else
4771 ac_cpp_err=yes
4773 if test -z "$ac_cpp_err"; then
4774 ac_header_preproc=yes
4775 else
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 ac_header_preproc=no
4781 rm -f conftest.err conftest.$ac_ext
4782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4783 echo "${ECHO_T}$ac_header_preproc" >&6
4785 # So? What about this header?
4786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4787 yes:no: )
4788 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4789 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4790 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4791 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4792 ac_header_preproc=yes
4794 no:yes:* )
4795 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4796 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4797 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4798 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4799 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4800 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4802 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4804 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4805 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4806 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4808 cat <<\_ASBOX
4809 ## ------------------------------------------ ##
4810 ## Report this to the AC_PACKAGE_NAME lists. ##
4811 ## ------------------------------------------ ##
4812 _ASBOX
4814 sed "s/^/$as_me: WARNING: /" >&2
4816 esac
4817 echo "$as_me:$LINENO: checking for libintl.h" >&5
4818 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4819 if test "${ac_cv_header_libintl_h+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822 ac_cv_header_libintl_h=$ac_header_preproc
4824 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4825 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4828 if test $ac_cv_header_libintl_h = yes; then
4829 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4830 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4831 if test "${gt_cv_func_gettext_libc+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 #include <libintl.h>
4842 main ()
4844 return (int) gettext ("")
4846 return 0;
4848 _ACEOF
4849 rm -f conftest.$ac_objext conftest$ac_exeext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4851 (eval $ac_link) 2>conftest.er1
4852 ac_status=$?
4853 grep -v '^ *+' conftest.er1 >conftest.err
4854 rm -f conftest.er1
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try='test -z "$ac_c_werror_flag"
4859 || test ! -s conftest.err'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; } &&
4865 { ac_try='test -s conftest$ac_exeext'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4871 gt_cv_func_gettext_libc=yes
4872 else
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4876 gt_cv_func_gettext_libc=no
4878 rm -f conftest.err conftest.$ac_objext \
4879 conftest$ac_exeext conftest.$ac_ext
4881 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4882 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4884 if test "$gt_cv_func_gettext_libc" != "yes"; then
4885 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4886 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4887 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890 ac_check_lib_save_LIBS=$LIBS
4891 LIBS="-lintl $LIBS"
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4899 /* Override any gcc2 internal prototype to avoid an error. */
4900 #ifdef __cplusplus
4901 extern "C"
4902 #endif
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4905 char bindtextdomain ();
4907 main ()
4909 bindtextdomain ();
4911 return 0;
4913 _ACEOF
4914 rm -f conftest.$ac_objext conftest$ac_exeext
4915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4916 (eval $ac_link) 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } &&
4923 { ac_try='test -z "$ac_c_werror_flag"
4924 || test ! -s conftest.err'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; } &&
4930 { ac_try='test -s conftest$ac_exeext'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
4936 ac_cv_lib_intl_bindtextdomain=yes
4937 else
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4941 ac_cv_lib_intl_bindtextdomain=no
4943 rm -f conftest.err conftest.$ac_objext \
4944 conftest$ac_exeext conftest.$ac_ext
4945 LIBS=$ac_check_lib_save_LIBS
4947 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
4948 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
4949 if test $ac_cv_lib_intl_bindtextdomain = yes; then
4950 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
4951 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
4952 if test "${gt_cv_func_gettext_libintl+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h. */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4963 main ()
4965 return (int) gettext ("")
4967 return 0;
4969 _ACEOF
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972 (eval $ac_link) 2>conftest.er1
4973 ac_status=$?
4974 grep -v '^ *+' conftest.er1 >conftest.err
4975 rm -f conftest.er1
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -z "$ac_c_werror_flag"
4980 || test ! -s conftest.err'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; } &&
4986 { ac_try='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 gt_cv_func_gettext_libintl=yes
4993 else
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 gt_cv_func_gettext_libintl=no
4999 rm -f conftest.err conftest.$ac_objext \
5000 conftest$ac_exeext conftest.$ac_ext
5002 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5003 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5008 if test "$gt_cv_func_gettext_libc" = "yes" \
5009 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5011 cat >>confdefs.h <<\_ACEOF
5012 #define HAVE_GETTEXT 1
5013 _ACEOF
5015 # Extract the first word of "msgfmt", so it can be a program name with args.
5016 set dummy msgfmt; ac_word=$2
5017 echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5019 if test "${ac_cv_path_MSGFMT+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 case "$MSGFMT" in
5024 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5028 for ac_dir in $PATH; do
5029 test -z "$ac_dir" && ac_dir=.
5030 if test -f $ac_dir/$ac_word; then
5031 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5032 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5033 break
5036 done
5037 IFS="$ac_save_ifs"
5038 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5040 esac
5042 MSGFMT="$ac_cv_path_MSGFMT"
5043 if test -n "$MSGFMT"; then
5044 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5045 echo "${ECHO_T}$MSGFMT" >&6
5046 else
5047 echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6
5050 if test "$MSGFMT" != "no"; then
5052 for ac_func in dcgettext
5054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5055 echo "$as_me:$LINENO: checking for $ac_func" >&5
5056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5057 if eval "test \"\${$as_ac_var+set}\" = set"; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060 cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h. */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5068 #define $ac_func innocuous_$ac_func
5070 /* System header to define __stub macros and hopefully few prototypes,
5071 which can conflict with char $ac_func (); below.
5072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5073 <limits.h> exists even on freestanding compilers. */
5075 #ifdef __STDC__
5076 # include <limits.h>
5077 #else
5078 # include <assert.h>
5079 #endif
5081 #undef $ac_func
5083 /* Override any gcc2 internal prototype to avoid an error. */
5084 #ifdef __cplusplus
5085 extern "C"
5087 #endif
5088 /* We use char because int might match the return type of a gcc2
5089 builtin and then its argument prototype would still apply. */
5090 char $ac_func ();
5091 /* The GNU C library defines this for functions which it implements
5092 to always fail with ENOSYS. Some functions are actually named
5093 something starting with __ and the normal name is an alias. */
5094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5095 choke me
5096 #else
5097 char (*f) () = $ac_func;
5098 #endif
5099 #ifdef __cplusplus
5101 #endif
5104 main ()
5106 return f != $ac_func;
5108 return 0;
5110 _ACEOF
5111 rm -f conftest.$ac_objext conftest$ac_exeext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113 (eval $ac_link) 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try='test -z "$ac_c_werror_flag"
5121 || test ! -s conftest.err'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 (eval $ac_try) 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; } &&
5127 { ac_try='test -s conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 eval "$as_ac_var=yes"
5134 else
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 eval "$as_ac_var=no"
5140 rm -f conftest.err conftest.$ac_objext \
5141 conftest$ac_exeext conftest.$ac_ext
5143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5145 if test `eval echo '${'$as_ac_var'}'` = yes; then
5146 cat >>confdefs.h <<_ACEOF
5147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5148 _ACEOF
5151 done
5153 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5154 set dummy gmsgfmt; ac_word=$2
5155 echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 case $GMSGFMT in
5161 [\\/]* | ?:[\\/]*)
5162 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5176 done
5177 done
5179 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5181 esac
5183 GMSGFMT=$ac_cv_path_GMSGFMT
5185 if test -n "$GMSGFMT"; then
5186 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5187 echo "${ECHO_T}$GMSGFMT" >&6
5188 else
5189 echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5193 # Extract the first word of "xgettext", so it can be a program name with args.
5194 set dummy xgettext; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 case "$XGETTEXT" in
5202 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5206 for ac_dir in $PATH; do
5207 test -z "$ac_dir" && ac_dir=.
5208 if test -f $ac_dir/$ac_word; then
5209 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5210 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5211 break
5214 done
5215 IFS="$ac_save_ifs"
5216 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5218 esac
5220 XGETTEXT="$ac_cv_path_XGETTEXT"
5221 if test -n "$XGETTEXT"; then
5222 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5223 echo "${ECHO_T}$XGETTEXT" >&6
5224 else
5225 echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5237 main ()
5239 extern int _nl_msg_cat_cntr;
5240 return _nl_msg_cat_cntr
5242 return 0;
5244 _ACEOF
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -z "$ac_c_werror_flag"
5255 || test ! -s conftest.err'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; } &&
5261 { ac_try='test -s conftest$ac_exeext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 CATOBJEXT=.gmo
5268 DATADIRNAME=share
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 CATOBJEXT=.mo
5274 DATADIRNAME=lib
5276 rm -f conftest.err conftest.$ac_objext \
5277 conftest$ac_exeext conftest.$ac_ext
5278 INSTOBJEXT=.mo
5287 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5288 # Neither gettext nor catgets in included in the C library.
5289 # Fall back on GNU gettext library (assuming it is present).
5290 nls_cv_use_gnu_gettext=yes
5294 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5295 INTLOBJS="\$(GETTOBJS)"
5296 # Extract the first word of "msgfmt", so it can be a program name with args.
5297 set dummy msgfmt; ac_word=$2
5298 echo "$as_me:$LINENO: checking for $ac_word" >&5
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300 if test "${ac_cv_path_MSGFMT+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303 case "$MSGFMT" in
5305 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5309 for ac_dir in $PATH; do
5310 test -z "$ac_dir" && ac_dir=.
5311 if test -f $ac_dir/$ac_word; then
5312 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5313 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5314 break
5317 done
5318 IFS="$ac_save_ifs"
5319 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5321 esac
5323 MSGFMT="$ac_cv_path_MSGFMT"
5324 if test -n "$MSGFMT"; then
5325 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5326 echo "${ECHO_T}$MSGFMT" >&6
5327 else
5328 echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5332 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5333 set dummy gmsgfmt; ac_word=$2
5334 echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5336 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 case $GMSGFMT in
5340 [\\/]* | ?:[\\/]*)
5341 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5355 done
5356 done
5358 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5360 esac
5362 GMSGFMT=$ac_cv_path_GMSGFMT
5364 if test -n "$GMSGFMT"; then
5365 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5366 echo "${ECHO_T}$GMSGFMT" >&6
5367 else
5368 echo "$as_me:$LINENO: result: no" >&5
5369 echo "${ECHO_T}no" >&6
5372 # Extract the first word of "xgettext", so it can be a program name with args.
5373 set dummy xgettext; ac_word=$2
5374 echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5376 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379 case "$XGETTEXT" in
5381 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5385 for ac_dir in $PATH; do
5386 test -z "$ac_dir" && ac_dir=.
5387 if test -f $ac_dir/$ac_word; then
5388 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5389 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5390 break
5393 done
5394 IFS="$ac_save_ifs"
5395 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5397 esac
5399 XGETTEXT="$ac_cv_path_XGETTEXT"
5400 if test -n "$XGETTEXT"; then
5401 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5402 echo "${ECHO_T}$XGETTEXT" >&6
5403 else
5404 echo "$as_me:$LINENO: result: no" >&5
5405 echo "${ECHO_T}no" >&6
5409 USE_INCLUDED_LIBINTL=yes
5410 CATOBJEXT=.gmo
5411 INSTOBJEXT=.mo
5412 DATADIRNAME=share
5413 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5414 INTLLIBS=$INTLDEPS
5415 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5416 nls_cv_header_intl=libintl.h
5417 nls_cv_header_libgt=libgettext.h
5420 if test "$XGETTEXT" != ":"; then
5421 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5423 else
5424 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5425 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5426 XGETTEXT=":"
5430 # We need to process the po/ directory.
5431 POSUB=po
5432 else
5433 DATADIRNAME=share
5434 nls_cv_header_intl=libintl.h
5435 nls_cv_header_libgt=libgettext.h
5438 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5439 # because some of the sources are only built for this goal.
5440 if test "$PACKAGE" = gettext; then
5441 USE_NLS=yes
5442 USE_INCLUDED_LIBINTL=yes
5445 for lang in $ALL_LINGUAS; do
5446 GMOFILES="$GMOFILES $lang.gmo"
5447 POFILES="$POFILES $lang.po"
5448 done
5461 if test "x$CATOBJEXT" != "x"; then
5463 cat >>confdefs.h <<\_ACEOF
5464 #define ENABLE_NLS 1
5465 _ACEOF
5470 if test "x$CATOBJEXT" != "x"; then
5471 if test "x$ALL_LINGUAS" = "x"; then
5472 LINGUAS=
5473 else
5474 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5475 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5476 NEW_LINGUAS=
5477 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5478 case "$ALL_LINGUAS" in
5479 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5480 esac
5481 done
5482 LINGUAS=$NEW_LINGUAS
5483 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5484 echo "${ECHO_T}$LINGUAS" >&6
5487 if test -n "$LINGUAS"; then
5488 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5492 if test $ac_cv_header_locale_h = yes; then
5493 INCLUDE_LOCALE_H="#include <locale.h>"
5494 else
5495 INCLUDE_LOCALE_H="\
5496 /* The system does not provide the header <locale.h>. Take care yourself. */"
5500 if test -f $srcdir/po2tbl.sed.in; then
5501 if test "$CATOBJEXT" = ".cat"; then
5502 if test "${ac_cv_header_linux_version_h+set}" = set; then
5503 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5504 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5505 if test "${ac_cv_header_linux_version_h+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5509 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5510 else
5511 # Is the header compilable?
5512 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5513 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 $ac_includes_default
5521 #include <linux/version.h>
5522 _ACEOF
5523 rm -f conftest.$ac_objext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525 (eval $ac_compile) 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -z "$ac_c_werror_flag"
5533 || test ! -s conftest.err'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 (eval $ac_try) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; } &&
5539 { ac_try='test -s conftest.$ac_objext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 ac_header_compiler=yes
5546 else
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 ac_header_compiler=no
5552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554 echo "${ECHO_T}$ac_header_compiler" >&6
5556 # Is the header present?
5557 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5558 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h. */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #include <linux/version.h>
5566 _ACEOF
5567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5569 ac_status=$?
5570 grep -v '^ *+' conftest.er1 >conftest.err
5571 rm -f conftest.er1
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } >/dev/null; then
5575 if test -s conftest.err; then
5576 ac_cpp_err=$ac_c_preproc_warn_flag
5577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5578 else
5579 ac_cpp_err=
5581 else
5582 ac_cpp_err=yes
5584 if test -z "$ac_cpp_err"; then
5585 ac_header_preproc=yes
5586 else
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 ac_header_preproc=no
5592 rm -f conftest.err conftest.$ac_ext
5593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5594 echo "${ECHO_T}$ac_header_preproc" >&6
5596 # So? What about this header?
5597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5598 yes:no: )
5599 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5600 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5601 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5602 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5603 ac_header_preproc=yes
5605 no:yes:* )
5606 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5607 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5608 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5609 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5610 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5611 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5612 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5613 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5614 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5615 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5616 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5617 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5619 cat <<\_ASBOX
5620 ## ------------------------------------------ ##
5621 ## Report this to the AC_PACKAGE_NAME lists. ##
5622 ## ------------------------------------------ ##
5623 _ASBOX
5625 sed "s/^/$as_me: WARNING: /" >&2
5627 esac
5628 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5629 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5630 if test "${ac_cv_header_linux_version_h+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633 ac_cv_header_linux_version_h=$ac_header_preproc
5635 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5636 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5639 if test $ac_cv_header_linux_version_h = yes; then
5640 msgformat=linux
5641 else
5642 msgformat=xopen
5647 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5649 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5650 $srcdir/po2tbl.sed.in > po2tbl.sed
5653 if test "$PACKAGE" = "gettext"; then
5654 GT_NO="#NO#"
5655 GT_YES=
5656 else
5657 GT_NO=
5658 GT_YES="#YES#"
5663 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5669 if test -f $srcdir/po/POTFILES.in; then
5670 test -d po || mkdir po
5671 if test "x$srcdir" != "x."; then
5672 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5673 posrcprefix="$srcdir/"
5674 else
5675 posrcprefix="../$srcdir/"
5677 else
5678 posrcprefix="../"
5680 rm -f po/POTFILES
5681 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5682 < $srcdir/po/POTFILES.in > po/POTFILES
5687 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
5688 if test "${enable_sim_alignment+set}" = set; then
5689 enableval="$enable_sim_alignment"
5690 case "${enableval}" in
5691 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
5692 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
5693 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
5694 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
5695 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
5696 { (exit 1); exit 1; }; }; sim_alignment="";;
5697 esac
5698 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
5699 echo "Setting alignment flags = $sim_alignment" 6>&1
5701 else
5702 sim_alignment=""
5705 # Check whether --enable-sim-assert or --disable-sim-assert was given.
5706 if test "${enable_sim_assert+set}" = set; then
5707 enableval="$enable_sim_assert"
5708 case "${enableval}" in
5709 yes) sim_assert="-DWITH_ASSERT=1";;
5710 no) sim_assert="-DWITH_ASSERT=0";;
5711 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
5712 echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
5713 { (exit 1); exit 1; }; }; sim_assert="";;
5714 esac
5715 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
5716 echo "Setting assert flags = $sim_assert" 6>&1
5718 else
5719 sim_assert=""
5722 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
5723 if test "${enable_sim_bitsize+set}" = set; then
5724 enableval="$enable_sim_bitsize"
5725 case "${enableval}" in
5726 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
5727 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
5728 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
5729 { (exit 1); exit 1; }; }; sim_bitsize="";;
5730 esac
5731 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5732 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5734 else
5735 sim_bitsize=""
5738 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
5739 if test "${enable_sim_bswap+set}" = set; then
5740 enableval="$enable_sim_bswap"
5741 case "${enableval}" in
5742 yes) sim_bswap="-DWITH_BSWAP=1";;
5743 no) sim_bswap="-DWITH_BSWAP=0";;
5744 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
5745 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
5746 { (exit 1); exit 1; }; }; sim_bswap="";;
5747 esac
5748 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
5749 echo "Setting bswap flags = $sim_bswap" 6>&1
5751 else
5752 sim_bswap=""
5755 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
5756 if test "${enable_sim_cflags+set}" = set; then
5757 enableval="$enable_sim_cflags"
5758 case "${enableval}" in
5759 yes) sim_cflags="-O2 -fomit-frame-pointer";;
5760 no) sim_cflags="";;
5761 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5762 esac
5763 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
5764 echo "Setting sim cflags = $sim_cflags" 6>&1
5766 else
5767 sim_cflags=""
5770 # Check whether --enable-sim-config or --disable-sim-config was given.
5771 if test "${enable_sim_config+set}" = set; then
5772 enableval="$enable_sim_config"
5773 case "${enableval}" in
5774 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
5775 echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
5776 { (exit 1); exit 1; }; };;
5777 *) if test -f "${srcdir}/${enableval}"; then
5778 sim_config="${enableval}";
5779 elif test -f "${srcdir}/${enableval}-config.h"; then
5780 sim_config="${enableval}-config.h"
5781 else
5782 { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
5783 echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
5784 { (exit 1); exit 1; }; };
5785 sim_config=std-config.h
5786 fi;;
5787 esac
5788 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
5789 echo "Setting config flags = $sim_config" 6>&1
5791 else
5792 sim_config="std-config.h"
5793 if test x"$silent" != x"yes"; then
5794 echo "Setting config flags = $sim_config" 6>&1
5798 # Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
5799 if test "${enable_sim_decode_mechanism+set}" = set; then
5800 enableval="$enable_sim_decode_mechanism"
5801 case "${enableval}" in
5802 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
5803 echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
5804 { (exit 1); exit 1; }; };;
5805 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
5806 *) { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
5807 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
5808 { (exit 1); exit 1; }; };
5809 sim_decode_mechanism="switch";;
5810 esac
5811 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
5812 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
5814 else
5815 sim_decode_mechanism=""
5816 if test x"$silent" != x"yes"; then
5817 echo "Setting decode mechanism flags = $sim_decode_mechanism"
5821 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
5822 if test "${enable_sim_default_model+set}" = set; then
5823 enableval="$enable_sim_default_model"
5824 case "${enableval}" in
5825 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
5826 echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
5827 { (exit 1); exit 1; }; };;
5828 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
5829 esac
5830 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5831 echo "Setting default-model flags = $sim_default_model" 6>&1
5833 else
5834 sim_default_model=""
5837 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
5838 if test "${enable_sim_duplicate+set}" = set; then
5839 enableval="$enable_sim_duplicate"
5840 case "${enableval}" in
5841 yes) sim_dup="-E";;
5842 no) sim_dup="";;
5843 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
5844 echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
5845 { (exit 1); exit 1; }; }; sim_dup="";;
5846 esac
5847 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
5848 echo "Setting duplicate flags = $sim_dup" 6>&1
5850 else
5851 sim_dup="-E"
5852 if test x"$silent" != x"yes"; then
5853 echo "Setting duplicate flags = $sim_dup" 6>&1
5857 # Check whether --enable-sim-endian or --disable-sim-endian was given.
5858 if test "${enable_sim_endian+set}" = set; then
5859 enableval="$enable_sim_endian"
5860 case "${enableval}" in
5861 yes) case "$target" in
5862 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5863 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5864 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5865 esac;;
5866 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5867 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5868 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5869 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
5870 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
5871 { (exit 1); exit 1; }; }; sim_endian="";;
5872 esac
5873 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5874 echo "Setting endian flags = $sim_endian" 6>&1
5876 else
5877 sim_endian=""
5880 # Check whether --enable-sim-env or --disable-sim-env was given.
5881 if test "${enable_sim_env+set}" = set; then
5882 enableval="$enable_sim_env"
5883 case "${enableval}" in
5884 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5885 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5886 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5887 no) sim_env="-DWITH_ENVIRONMENT=0";;
5888 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
5889 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
5890 { (exit 1); exit 1; }; }; sim_env="";;
5891 esac
5892 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
5893 echo "Setting env flags = $sim_env" 6>&1
5895 else
5896 sim_env=""
5899 # Check whether --enable-sim-filter or --disable-sim-filter was given.
5900 if test "${enable_sim_filter+set}" = set; then
5901 enableval="$enable_sim_filter"
5902 case "${enableval}" in
5903 yes) { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
5904 echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
5905 { (exit 1); exit 1; }; }; sim_filter="";;
5906 no) sim_filter="";;
5907 *) sim_filter="-F $enableval";;
5908 esac
5909 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
5910 echo "Setting filter flags = $sim_filter" 6>&1
5912 else
5913 sim_filter="-F 32,f,o"
5914 if test x"$silent" != x"yes"; then
5915 echo "Setting filter flags = $sim_filter" 6>&1
5919 # Check whether --enable-sim-float or --disable-sim-float was given.
5920 if test "${enable_sim_float+set}" = set; then
5921 enableval="$enable_sim_float"
5922 case "${enableval}" in
5923 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5924 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5925 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5926 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5927 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
5928 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
5929 { (exit 1); exit 1; }; }; sim_float="";;
5930 esac
5931 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5932 echo "Setting float flags = $sim_float" 6>&1
5934 else
5936 case "${target}" in
5937 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5938 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5939 *) sim_float=""
5940 esac
5944 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
5945 if test "${enable_sim_hardware+set}" = set; then
5946 enableval="$enable_sim_hardware"
5947 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
5948 case "${enableval}" in
5949 yes) ;;
5950 no) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
5951 echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
5952 { (exit 1); exit 1; }; }; hardware="";;
5953 ,*) hardware="${hardware}${enableval}";;
5954 *,) hardware="${enableval}${hardware}";;
5955 *) hardware="${enableval}"'';;
5956 esac
5957 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5958 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5959 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
5960 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5962 else
5963 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
5964 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5965 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5966 if test x"$silent" != x"yes"; then
5967 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5971 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
5972 if test "${enable_sim_hostbitsize+set}" = set; then
5973 enableval="$enable_sim_hostbitsize"
5974 case "${enableval}" in
5975 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
5976 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5
5977 echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;}
5978 { (exit 1); exit 1; }; }; sim_hostbitsize="";;
5979 esac
5980 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
5981 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
5983 else
5984 sim_hostbitsize=""
5987 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
5988 if test "${enable_sim_hostendian+set}" = set; then
5989 enableval="$enable_sim_hostendian"
5990 case "${enableval}" in
5991 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
5992 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
5993 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
5994 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
5995 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
5996 { (exit 1); exit 1; }; }; sim_hostendian="";;
5997 esac
5998 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
5999 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6001 else
6003 if test "x$cross_compiling" = "xno"; then
6004 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6005 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6006 if test "${ac_cv_c_bigendian+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009 # See if sys/param.h defines the BYTE_ORDER macro.
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h. */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 #include <sys/types.h>
6017 #include <sys/param.h>
6020 main ()
6022 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6023 bogus endian macros
6024 #endif
6027 return 0;
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032 (eval $ac_compile) 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -z "$ac_c_werror_flag"
6040 || test ! -s conftest.err'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; } &&
6046 { ac_try='test -s conftest.$ac_objext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 # It does; now see whether it defined to BIG_ENDIAN or not.
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h. */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #include <sys/types.h>
6060 #include <sys/param.h>
6063 main ()
6065 #if BYTE_ORDER != BIG_ENDIAN
6066 not big endian
6067 #endif
6070 return 0;
6072 _ACEOF
6073 rm -f conftest.$ac_objext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try='test -z "$ac_c_werror_flag"
6083 || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_c_bigendian=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_cv_c_bigendian=no
6102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6103 else
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6107 # It does not; compile a test program.
6108 if test "$cross_compiling" = yes; then
6109 # try to guess the endianness by grepping values into an object file
6110 ac_cv_c_bigendian=unknown
6111 cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h. */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6118 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6119 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6120 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6121 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6122 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6124 main ()
6126 _ascii (); _ebcdic ();
6128 return 0;
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133 (eval $ac_compile) 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try='test -z "$ac_c_werror_flag"
6141 || test ! -s conftest.err'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; } &&
6147 { ac_try='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6154 ac_cv_c_bigendian=yes
6156 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6157 if test "$ac_cv_c_bigendian" = unknown; then
6158 ac_cv_c_bigendian=no
6159 else
6160 # finding both strings is unlikely to happen, but who knows?
6161 ac_cv_c_bigendian=unknown
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6170 else
6171 cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h. */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6178 main ()
6180 /* Are we little or big endian? From Harbison&Steele. */
6181 union
6183 long l;
6184 char c[sizeof (long)];
6185 } u;
6186 u.l = 1;
6187 exit (u.c[sizeof (long) - 1] == 1);
6189 _ACEOF
6190 rm -f conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_c_bigendian=no
6202 else
6203 echo "$as_me: program exited with status $ac_status" >&5
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 ( exit $ac_status )
6208 ac_cv_c_bigendian=yes
6210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6215 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6216 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6217 case $ac_cv_c_bigendian in
6218 yes)
6220 cat >>confdefs.h <<\_ACEOF
6221 #define WORDS_BIGENDIAN 1
6222 _ACEOF
6227 { { echo "$as_me:$LINENO: error: unknown endianness
6228 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6229 echo "$as_me: error: unknown endianness
6230 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6231 { (exit 1); exit 1; }; } ;;
6232 esac
6234 if test $ac_cv_c_bigendian = yes; then
6235 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
6236 else
6237 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
6239 else
6240 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
6244 # Check whether --enable-sim-icache or --disable-sim-icache was given.
6245 if test "${enable_sim_icache+set}" = set; then
6246 enableval="$enable_sim_icache"
6247 icache="-R"
6248 case "${enableval}" in
6249 yes) icache="1024"; sim_icache="-I $icache";;
6250 no) sim_icache="-R";;
6251 *) icache=1024
6252 sim_icache="-"
6253 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
6254 case "$x" in
6255 define) sim_icache="${sim_icache}R";;
6256 semantic) sim_icache="${sim_icache}C";;
6257 insn) sim_icache="${sim_icache}S";;
6258 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
6259 *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
6260 echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
6261 { (exit 1); exit 1; }; }; sim_icache="";;
6262 esac
6263 done
6264 sim_icache="${sim_icache}I $icache";;
6265 esac
6266 if test x"$silent" != x"yes" && test x"$icache" != x""; then
6267 echo "Setting instruction cache size to $icache ($sim_icache)"
6269 else
6270 sim_icache="-CSRI 1024"
6271 if test x"$silent" != x"yes"; then
6272 echo "Setting instruction cache size to 1024 ($sim_icache)"
6276 # Check whether --enable-sim-inline or --disable-sim-inline was given.
6277 if test "${enable_sim_inline+set}" = set; then
6278 enableval="$enable_sim_inline"
6279 sim_inline=""
6280 case "$enableval" in
6281 no) sim_inline="-DDEFAULT_INLINE=0";;
6282 0) sim_inline="-DDEFAULT_INLINE=0";;
6283 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
6284 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
6285 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6286 new_flag=""
6287 case "$x" in
6288 *_INLINE=*) new_flag="-D$x";;
6289 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6290 *_INLINE) new_flag="-D$x=ALL_INLINE";;
6291 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
6292 esac
6293 if test x"$sim_inline" = x""; then
6294 sim_inline="$new_flag"
6295 else
6296 sim_inline="$sim_inline $new_flag"
6298 done;;
6299 esac
6300 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6301 echo "Setting inline flags = $sim_inline" 6>&1
6303 else
6304 if test x"$GCC" != ""; then
6305 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
6306 if test x"$silent" != x"yes"; then
6307 echo "Setting inline flags = $sim_inline" 6>&1
6309 else
6310 sim_inline=""
6314 # Check whether --enable-sim-jump or --disable-sim-jump was given.
6315 if test "${enable_sim_jump+set}" = set; then
6316 enableval="$enable_sim_jump"
6317 case "${enableval}" in
6318 yes) sim_jump="-J";;
6319 no) sim_jump="";;
6320 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
6321 echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
6322 { (exit 1); exit 1; }; }; sim_jump="";;
6323 esac
6324 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
6325 echo "Setting jump flag = $sim_jump" 6>&1
6327 else
6328 sim_jump=""
6329 if test x"$silent" != x"yes"; then
6330 echo "Setting jump flag = $sim_jump" 6>&1
6334 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
6335 if test "${enable_sim_line_nr+set}" = set; then
6336 enableval="$enable_sim_line_nr"
6337 case "${enableval}" in
6338 yes) sim_line_nr="";;
6339 no) sim_line_nr="-L";;
6340 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
6341 echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
6342 { (exit 1); exit 1; }; }; sim_line_nr="";;
6343 esac
6344 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
6345 echo "Setting warning flags = $sim_line_nr" 6>&1
6347 else
6348 sim_line_nr=""
6351 # Check whether --enable-sim-model or --disable-sim-model was given.
6352 if test "${enable_sim_model+set}" = set; then
6353 enableval="$enable_sim_model"
6354 case "${enableval}" in
6355 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
6356 echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
6357 { (exit 1); exit 1; }; };;
6358 *) sim_model="-DWITH_MODEL=${enableval}";;
6359 esac
6360 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
6361 echo "Setting model flags = $sim_model" 6>&1
6363 else
6364 sim_model=""
6367 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
6368 if test "${enable_sim_model_issue+set}" = set; then
6369 enableval="$enable_sim_model_issue"
6370 case "${enableval}" in
6371 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
6372 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
6373 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
6374 echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
6375 { (exit 1); exit 1; }; }; sim_model_issue="";;
6376 esac
6377 if test x"$silent" != x"yes"; then
6378 echo "Setting model-issue flags = $sim_model_issue" 6>&1
6380 else
6381 sim_model_issue=""
6384 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
6385 if test "${enable_sim_monitor+set}" = set; then
6386 enableval="$enable_sim_monitor"
6387 case "${enableval}" in
6388 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
6389 no) sim_monitor="-DWITH_MON=0";;
6390 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
6391 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
6392 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
6393 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
6394 { (exit 1); exit 1; }; }; sim_env="";;
6395 esac
6396 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
6397 echo "Setting monitor flags = $sim_monitor" 6>&1
6399 else
6400 sim_monitor=""
6403 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
6404 if test "${enable_sim_opcode+set}" = set; then
6405 enableval="$enable_sim_opcode"
6406 case "${enableval}" in
6407 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
6408 echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
6409 { (exit 1); exit 1; }; };;
6410 *) if test -f "${srcdir}/${enableval}"; then
6411 sim_opcode="${enableval}"
6412 elif test -f "${srcdir}/dc-${enableval}"; then
6413 sim_opcode="dc-${enableval}"
6414 else
6415 { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
6416 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
6417 { (exit 1); exit 1; }; };
6418 sim_opcode="dc-complex"
6419 fi;;
6420 esac
6421 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
6422 echo "Setting opcode flags = $sim_opcode" 6>&1
6424 else
6425 sim_opcode="dc-complex"
6426 if test x"$silent" != x"yes"; then
6427 echo "Setting opcode flags = $sim_opcode"
6431 # Check whether --enable-sim-packages or --disable-sim-packages was given.
6432 if test "${enable_sim_packages+set}" = set; then
6433 enableval="$enable_sim_packages"
6434 packages=disklabel
6435 case "${enableval}" in
6436 yes) ;;
6437 no) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
6438 echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
6439 { (exit 1); exit 1; }; }; packages="";;
6440 ,*) packages="${packages}${enableval}";;
6441 *,) packages="${enableval}${packages}";;
6442 *) packages="${enableval}"'';;
6443 esac
6444 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6445 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6446 if test x"$silent" != x"yes" && test x"$packages" != x""; then
6447 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6449 else
6450 packages=disklabel
6451 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6452 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6453 if test x"$silent" != x"yes"; then
6454 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6458 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
6459 if test "${enable_sim_regparm+set}" = set; then
6460 enableval="$enable_sim_regparm"
6461 case "${enableval}" in
6462 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
6463 no) sim_regparm="" ;;
6464 yes) sim_regparm="-DWITH_REGPARM=3";;
6465 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
6466 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
6467 { (exit 1); exit 1; }; }; sim_regparm="";;
6468 esac
6469 if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
6470 echo "Setting regparm flags = $sim_regparm" 6>&1
6472 else
6473 sim_regparm=""
6476 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
6477 if test "${enable_sim_reserved_bits+set}" = set; then
6478 enableval="$enable_sim_reserved_bits"
6479 case "${enableval}" in
6480 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
6481 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
6482 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
6483 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
6484 { (exit 1); exit 1; }; }; sim_reserved="";;
6485 esac
6486 if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
6487 echo "Setting reserved flags = $sim_reserved" 6>&1
6489 else
6490 sim_reserved=""
6493 # Check whether --enable-sim-smp or --disable-sim-smp was given.
6494 if test "${enable_sim_smp+set}" = set; then
6495 enableval="$enable_sim_smp"
6496 case "${enableval}" in
6497 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
6498 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
6499 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
6500 esac
6501 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
6502 echo "Setting smp flags = $sim_smp" 6>&1
6504 else
6505 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
6506 if test x"$silent" != x"yes"; then
6507 echo "Setting smp flags = $sim_smp" 6>&1
6511 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
6512 if test "${enable_sim_stdcall+set}" = set; then
6513 enableval="$enable_sim_stdcall"
6514 case "${enableval}" in
6515 no) sim_stdcall="" ;;
6516 std*) sim_stdcall="-DWITH_STDCALL=1";;
6517 yes) sim_stdcall="-DWITH_STDCALL=1";;
6518 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
6519 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
6520 { (exit 1); exit 1; }; }; sim_stdcall="";;
6521 esac
6522 if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
6523 echo "Setting function call flags = $sim_stdcall" 6>&1
6525 else
6526 sim_stdcall=""
6529 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6530 if test "${enable_sim_stdio+set}" = set; then
6531 enableval="$enable_sim_stdio"
6532 case "${enableval}" in
6533 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6534 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6535 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6536 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6537 { (exit 1); exit 1; }; }; sim_stdio="";;
6538 esac
6539 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6540 echo "Setting stdio flags = $sim_stdio" 6>&1
6542 else
6543 sim_stdio=""
6546 # Check whether --enable-sim-switch or --disable-sim-switch was given.
6547 if test "${enable_sim_switch+set}" = set; then
6548 enableval="$enable_sim_switch"
6549 case "${enableval}" in
6550 yes) sim_switch="-s";;
6551 no) sim_switch="";;
6552 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
6553 echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
6554 { (exit 1); exit 1; }; }; sim_switch="";;
6555 esac
6556 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
6557 echo "Setting switch flags = $sim_switch" 6>&1
6559 else
6560 sim_switch="";
6561 if test x"$silent" != x"yes"; then
6562 echo "Setting switch flags = $sim_switch" 6>&1
6566 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
6567 if test "${enable_sim_timebase+set}" = set; then
6568 enableval="$enable_sim_timebase"
6569 case "${enableval}" in
6570 yes) sim_timebase="-DWITH_TIME_BASE=1";;
6571 no) sim_timebase="-DWITH_TIME_BASE=0";;
6572 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
6573 echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
6574 { (exit 1); exit 1; }; }; sim_timebase="";;
6575 esac
6576 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
6577 echo "Setting timebase flags = $sim_timebase" 6>&1
6579 else
6580 sim_timebase=""
6583 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6584 if test "${enable_sim_trace+set}" = set; then
6585 enableval="$enable_sim_trace"
6586 case "${enableval}" in
6587 yes) sim_trace="-DWITH_TRACE=1";;
6588 no) sim_trace="-DWITH_TRACE=0";;
6589 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
6590 echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
6591 { (exit 1); exit 1; }; }; sim_trace="";;
6592 esac
6593 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6594 echo "Setting trace flags = $sim_trace" 6>&1
6596 else
6597 sim_trace=""
6600 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
6601 if test "${enable_sim_warnings+set}" = set; then
6602 enableval="$enable_sim_warnings"
6603 case "${enableval}" in
6604 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
6605 no) sim_warnings="-w";;
6606 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6607 esac
6608 if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
6609 echo "Setting warning flags = $sim_warnings" 6>&1
6611 else
6612 sim_warnings=""
6615 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
6616 if test "${enable_sim_xor_endian+set}" = set; then
6617 enableval="$enable_sim_xor_endian"
6618 case "${enableval}" in
6619 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
6620 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
6621 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
6622 esac
6623 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
6624 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
6626 else
6627 sim_xor_endian=""
6630 # Make sure we can run config.sub.
6631 $ac_config_sub sun4 >/dev/null 2>&1 ||
6632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6634 { (exit 1); exit 1; }; }
6636 echo "$as_me:$LINENO: checking build system type" >&5
6637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6638 if test "${ac_cv_build+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641 ac_cv_build_alias=$build_alias
6642 test -z "$ac_cv_build_alias" &&
6643 ac_cv_build_alias=`$ac_config_guess`
6644 test -z "$ac_cv_build_alias" &&
6645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6647 { (exit 1); exit 1; }; }
6648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6651 { (exit 1); exit 1; }; }
6654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6655 echo "${ECHO_T}$ac_cv_build" >&6
6656 build=$ac_cv_build
6657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6662 echo "$as_me:$LINENO: checking host system type" >&5
6663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6664 if test "${ac_cv_host+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 ac_cv_host_alias=$host_alias
6668 test -z "$ac_cv_host_alias" &&
6669 ac_cv_host_alias=$ac_cv_build_alias
6670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6673 { (exit 1); exit 1; }; }
6676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6677 echo "${ECHO_T}$ac_cv_host" >&6
6678 host=$ac_cv_host
6679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6684 echo "$as_me:$LINENO: checking target system type" >&5
6685 echo $ECHO_N "checking target system type... $ECHO_C" >&6
6686 if test "${ac_cv_target+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689 ac_cv_target_alias=$target_alias
6690 test "x$ac_cv_target_alias" = "x" &&
6691 ac_cv_target_alias=$ac_cv_host_alias
6692 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
6693 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
6694 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
6695 { (exit 1); exit 1; }; }
6698 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
6699 echo "${ECHO_T}$ac_cv_target" >&6
6700 target=$ac_cv_target
6701 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6702 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6703 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6706 # The aliases save the names the user supplied, while $host etc.
6707 # will get canonicalized.
6708 test -n "$target_alias" &&
6709 test "$program_prefix$program_suffix$program_transform_name" = \
6710 NONENONEs,x,x, &&
6711 program_prefix=${target_alias}-
6712 test "$program_prefix" != NONE &&
6713 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6714 # Use a double $ so make ignores it.
6715 test "$program_suffix" != NONE &&
6716 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6717 # Double any \ or $. echo might interpret backslashes.
6718 # By default was `s,x,x', remove it if useless.
6719 cat <<\_ACEOF >conftest.sed
6720 s/[\\$]/&&/g;s/;s,x,x,$//
6721 _ACEOF
6722 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6723 rm conftest.sed
6726 . ${srcdir}/../../bfd/configure.host
6728 case ${host} in
6729 *mingw32*)
6731 cat >>confdefs.h <<\_ACEOF
6732 #define USE_WIN32API 1
6733 _ACEOF
6736 esac
6738 ac_config_headers="$ac_config_headers config.h:config.in"
6742 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6743 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6744 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 $ac_includes_default
6755 main ()
6757 static struct stat ac_aggr;
6758 if (ac_aggr.st_blksize)
6759 return 0;
6761 return 0;
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>conftest.er1
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag"
6774 || test ! -s conftest.err'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; } &&
6780 { ac_try='test -s conftest.$ac_objext'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 (eval $ac_try) 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 ac_cv_member_struct_stat_st_blksize=yes
6787 else
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h. */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 $ac_includes_default
6799 main ()
6801 static struct stat ac_aggr;
6802 if (sizeof ac_aggr.st_blksize)
6803 return 0;
6805 return 0;
6807 _ACEOF
6808 rm -f conftest.$ac_objext
6809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810 (eval $ac_compile) 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try='test -z "$ac_c_werror_flag"
6818 || test ! -s conftest.err'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; } &&
6824 { ac_try='test -s conftest.$ac_objext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_member_struct_stat_st_blksize=yes
6831 else
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6835 ac_cv_member_struct_stat_st_blksize=no
6837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6841 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6842 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6843 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6845 cat >>confdefs.h <<_ACEOF
6846 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6847 _ACEOF
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_ST_BLKSIZE 1
6852 _ACEOF
6857 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6858 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6859 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 $ac_includes_default
6870 main ()
6872 static struct stat ac_aggr;
6873 if (ac_aggr.st_blocks)
6874 return 0;
6876 return 0;
6878 _ACEOF
6879 rm -f conftest.$ac_objext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6881 (eval $ac_compile) 2>conftest.er1
6882 ac_status=$?
6883 grep -v '^ *+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try='test -z "$ac_c_werror_flag"
6889 || test ! -s conftest.err'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest.$ac_objext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_member_struct_stat_st_blocks=yes
6902 else
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 cat >conftest.$ac_ext <<_ACEOF
6907 /* confdefs.h. */
6908 _ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6912 $ac_includes_default
6914 main ()
6916 static struct stat ac_aggr;
6917 if (sizeof ac_aggr.st_blocks)
6918 return 0;
6920 return 0;
6922 _ACEOF
6923 rm -f conftest.$ac_objext
6924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925 (eval $ac_compile) 2>conftest.er1
6926 ac_status=$?
6927 grep -v '^ *+' conftest.er1 >conftest.err
6928 rm -f conftest.er1
6929 cat conftest.err >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } &&
6932 { ac_try='test -z "$ac_c_werror_flag"
6933 || test ! -s conftest.err'
6934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 (eval $ac_try) 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; } &&
6939 { ac_try='test -s conftest.$ac_objext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_member_struct_stat_st_blocks=yes
6946 else
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6950 ac_cv_member_struct_stat_st_blocks=no
6952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6957 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6958 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6960 cat >>confdefs.h <<_ACEOF
6961 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6962 _ACEOF
6965 cat >>confdefs.h <<\_ACEOF
6966 #define HAVE_ST_BLOCKS 1
6967 _ACEOF
6969 else
6970 case $LIBOBJS in
6971 "fileblocks.$ac_objext" | \
6972 *" fileblocks.$ac_objext" | \
6973 "fileblocks.$ac_objext "* | \
6974 *" fileblocks.$ac_objext "* ) ;;
6975 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
6976 esac
6982 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6983 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6984 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6995 main ()
6997 static struct stat ac_aggr;
6998 if (ac_aggr.st_rdev)
6999 return 0;
7001 return 0;
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>conftest.er1
7007 ac_status=$?
7008 grep -v '^ *+' conftest.er1 >conftest.err
7009 rm -f conftest.er1
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -z "$ac_c_werror_flag"
7014 || test ! -s conftest.err'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7020 { ac_try='test -s conftest.$ac_objext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 ac_cv_member_struct_stat_st_rdev=yes
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 $ac_includes_default
7039 main ()
7041 static struct stat ac_aggr;
7042 if (sizeof ac_aggr.st_rdev)
7043 return 0;
7045 return 0;
7047 _ACEOF
7048 rm -f conftest.$ac_objext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7050 (eval $ac_compile) 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try='test -z "$ac_c_werror_flag"
7058 || test ! -s conftest.err'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; } &&
7064 { ac_try='test -s conftest.$ac_objext'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7070 ac_cv_member_struct_stat_st_rdev=yes
7071 else
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7075 ac_cv_member_struct_stat_st_rdev=no
7077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7081 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7082 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7083 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7085 cat >>confdefs.h <<_ACEOF
7086 #define HAVE_STRUCT_STAT_ST_RDEV 1
7087 _ACEOF
7090 cat >>confdefs.h <<\_ACEOF
7091 #define HAVE_ST_RDEV 1
7092 _ACEOF
7097 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7098 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7099 if test "${ac_cv_struct_tm+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #include <sys/types.h>
7109 #include <time.h>
7112 main ()
7114 struct tm *tp; tp->tm_sec;
7116 return 0;
7118 _ACEOF
7119 rm -f conftest.$ac_objext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7121 (eval $ac_compile) 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -z "$ac_c_werror_flag"
7129 || test ! -s conftest.err'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; } &&
7135 { ac_try='test -s conftest.$ac_objext'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; }; then
7141 ac_cv_struct_tm=time.h
7142 else
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7146 ac_cv_struct_tm=sys/time.h
7148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7151 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7152 if test $ac_cv_struct_tm = sys/time.h; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define TM_IN_SYS_TIME 1
7156 _ACEOF
7160 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7161 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7162 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <sys/types.h>
7172 #include <$ac_cv_struct_tm>
7176 main ()
7178 static struct tm ac_aggr;
7179 if (ac_aggr.tm_zone)
7180 return 0;
7182 return 0;
7184 _ACEOF
7185 rm -f conftest.$ac_objext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7187 (eval $ac_compile) 2>conftest.er1
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try='test -z "$ac_c_werror_flag"
7195 || test ! -s conftest.err'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; } &&
7201 { ac_try='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_member_struct_tm_tm_zone=yes
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h. */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 #include <sys/types.h>
7219 #include <$ac_cv_struct_tm>
7223 main ()
7225 static struct tm ac_aggr;
7226 if (sizeof ac_aggr.tm_zone)
7227 return 0;
7229 return 0;
7231 _ACEOF
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>conftest.er1
7235 ac_status=$?
7236 grep -v '^ *+' conftest.er1 >conftest.err
7237 rm -f conftest.er1
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try='test -z "$ac_c_werror_flag"
7242 || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 (eval $ac_try) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_cv_member_struct_tm_tm_zone=yes
7255 else
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7259 ac_cv_member_struct_tm_tm_zone=no
7261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7265 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7266 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7267 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7269 cat >>confdefs.h <<_ACEOF
7270 #define HAVE_STRUCT_TM_TM_ZONE 1
7271 _ACEOF
7276 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7278 cat >>confdefs.h <<\_ACEOF
7279 #define HAVE_TM_ZONE 1
7280 _ACEOF
7282 else
7283 echo "$as_me:$LINENO: checking for tzname" >&5
7284 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7285 if test "${ac_cv_var_tzname+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288 cat >conftest.$ac_ext <<_ACEOF
7289 /* confdefs.h. */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7294 #include <time.h>
7295 #ifndef tzname /* For SGI. */
7296 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7297 #endif
7300 main ()
7302 atoi(*tzname);
7304 return 0;
7306 _ACEOF
7307 rm -f conftest.$ac_objext conftest$ac_exeext
7308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7309 (eval $ac_link) 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -z "$ac_c_werror_flag"
7317 || test ! -s conftest.err'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 (eval $ac_try) 2>&5
7320 ac_status=$?
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; } &&
7323 { ac_try='test -s conftest$ac_exeext'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 (eval $ac_try) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7329 ac_cv_var_tzname=yes
7330 else
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 ac_cv_var_tzname=no
7336 rm -f conftest.err conftest.$ac_objext \
7337 conftest$ac_exeext conftest.$ac_ext
7339 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7340 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7341 if test $ac_cv_var_tzname = yes; then
7343 cat >>confdefs.h <<\_ACEOF
7344 #define HAVE_TZNAME 1
7345 _ACEOF
7351 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7352 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7353 if test "${ac_cv_type_uid_t+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 #include <sys/types.h>
7364 _ACEOF
7365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7366 $EGREP "uid_t" >/dev/null 2>&1; then
7367 ac_cv_type_uid_t=yes
7368 else
7369 ac_cv_type_uid_t=no
7371 rm -f conftest*
7374 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7375 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7376 if test $ac_cv_type_uid_t = no; then
7378 cat >>confdefs.h <<\_ACEOF
7379 #define uid_t int
7380 _ACEOF
7383 cat >>confdefs.h <<\_ACEOF
7384 #define gid_t int
7385 _ACEOF
7389 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7390 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7391 if test "${ac_cv_type_getgroups+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394 if test "$cross_compiling" = yes; then
7395 ac_cv_type_getgroups=cross
7396 else
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 /* Thanks to Mike Rendell for this test. */
7404 #include <sys/types.h>
7405 #define NGID 256
7406 #undef MAX
7407 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7410 main ()
7412 gid_t gidset[NGID];
7413 int i, n;
7414 union { gid_t gval; long lval; } val;
7416 val.lval = -1;
7417 for (i = 0; i < NGID; i++)
7418 gidset[i] = val.gval;
7419 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7420 gidset);
7421 /* Exit non-zero if getgroups seems to require an array of ints. This
7422 happens when gid_t is short but getgroups modifies an array of ints. */
7423 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7425 _ACEOF
7426 rm -f conftest$ac_exeext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428 (eval $ac_link) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 (eval $ac_try) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 ac_cv_type_getgroups=gid_t
7438 else
7439 echo "$as_me: program exited with status $ac_status" >&5
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 ( exit $ac_status )
7444 ac_cv_type_getgroups=int
7446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7448 if test $ac_cv_type_getgroups = cross; then
7449 cat >conftest.$ac_ext <<_ACEOF
7450 /* confdefs.h. */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7455 #include <unistd.h>
7457 _ACEOF
7458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7459 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7460 ac_cv_type_getgroups=gid_t
7461 else
7462 ac_cv_type_getgroups=int
7464 rm -f conftest*
7468 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7469 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7471 cat >>confdefs.h <<_ACEOF
7472 #define GETGROUPS_T $ac_cv_type_getgroups
7473 _ACEOF
7476 echo "$as_me:$LINENO: checking for mode_t" >&5
7477 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7478 if test "${ac_cv_type_mode_t+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 cat >conftest.$ac_ext <<_ACEOF
7482 /* confdefs.h. */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 $ac_includes_default
7489 main ()
7491 if ((mode_t *) 0)
7492 return 0;
7493 if (sizeof (mode_t))
7494 return 0;
7496 return 0;
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501 (eval $ac_compile) 2>conftest.er1
7502 ac_status=$?
7503 grep -v '^ *+' conftest.er1 >conftest.err
7504 rm -f conftest.er1
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -z "$ac_c_werror_flag"
7509 || test ! -s conftest.err'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; } &&
7515 { ac_try='test -s conftest.$ac_objext'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7521 ac_cv_type_mode_t=yes
7522 else
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 ac_cv_type_mode_t=no
7528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7530 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7531 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7532 if test $ac_cv_type_mode_t = yes; then
7534 else
7536 cat >>confdefs.h <<_ACEOF
7537 #define mode_t int
7538 _ACEOF
7542 echo "$as_me:$LINENO: checking for off_t" >&5
7543 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7544 if test "${ac_cv_type_off_t+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547 cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h. */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 $ac_includes_default
7555 main ()
7557 if ((off_t *) 0)
7558 return 0;
7559 if (sizeof (off_t))
7560 return 0;
7562 return 0;
7564 _ACEOF
7565 rm -f conftest.$ac_objext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } &&
7574 { ac_try='test -z "$ac_c_werror_flag"
7575 || test ! -s conftest.err'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; } &&
7581 { ac_try='test -s conftest.$ac_objext'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 (eval $ac_try) 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; }; then
7587 ac_cv_type_off_t=yes
7588 else
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7592 ac_cv_type_off_t=no
7594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7596 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7597 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7598 if test $ac_cv_type_off_t = yes; then
7600 else
7602 cat >>confdefs.h <<_ACEOF
7603 #define off_t long
7604 _ACEOF
7608 echo "$as_me:$LINENO: checking for pid_t" >&5
7609 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7610 if test "${ac_cv_type_pid_t+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h. */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 $ac_includes_default
7621 main ()
7623 if ((pid_t *) 0)
7624 return 0;
7625 if (sizeof (pid_t))
7626 return 0;
7628 return 0;
7630 _ACEOF
7631 rm -f conftest.$ac_objext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7633 (eval $ac_compile) 2>conftest.er1
7634 ac_status=$?
7635 grep -v '^ *+' conftest.er1 >conftest.err
7636 rm -f conftest.er1
7637 cat conftest.err >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } &&
7640 { ac_try='test -z "$ac_c_werror_flag"
7641 || test ! -s conftest.err'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; } &&
7647 { ac_try='test -s conftest.$ac_objext'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; }; then
7653 ac_cv_type_pid_t=yes
7654 else
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 ac_cv_type_pid_t=no
7660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7662 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7663 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7664 if test $ac_cv_type_pid_t = yes; then
7666 else
7668 cat >>confdefs.h <<_ACEOF
7669 #define pid_t int
7670 _ACEOF
7674 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7675 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7676 if test "${ac_cv_type_signal+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #include <sys/types.h>
7686 #include <signal.h>
7687 #ifdef signal
7688 # undef signal
7689 #endif
7690 #ifdef __cplusplus
7691 extern "C" void (*signal (int, void (*)(int)))(int);
7692 #else
7693 void (*signal ()) ();
7694 #endif
7697 main ()
7699 int i;
7701 return 0;
7703 _ACEOF
7704 rm -f conftest.$ac_objext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7706 (eval $ac_compile) 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try='test -z "$ac_c_werror_flag"
7714 || test ! -s conftest.err'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest.$ac_objext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_cv_type_signal=void
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 ac_cv_type_signal=int
7733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7735 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7736 echo "${ECHO_T}$ac_cv_type_signal" >&6
7738 cat >>confdefs.h <<_ACEOF
7739 #define RETSIGTYPE $ac_cv_type_signal
7740 _ACEOF
7743 echo "$as_me:$LINENO: checking for size_t" >&5
7744 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7745 if test "${ac_cv_type_size_t+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h. */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 $ac_includes_default
7756 main ()
7758 if ((size_t *) 0)
7759 return 0;
7760 if (sizeof (size_t))
7761 return 0;
7763 return 0;
7765 _ACEOF
7766 rm -f conftest.$ac_objext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768 (eval $ac_compile) 2>conftest.er1
7769 ac_status=$?
7770 grep -v '^ *+' conftest.er1 >conftest.err
7771 rm -f conftest.er1
7772 cat conftest.err >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try='test -z "$ac_c_werror_flag"
7776 || test ! -s conftest.err'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try='test -s conftest.$ac_objext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 ac_cv_type_size_t=yes
7789 else
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 ac_cv_type_size_t=no
7795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7797 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7798 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7799 if test $ac_cv_type_size_t = yes; then
7801 else
7803 cat >>confdefs.h <<_ACEOF
7804 #define size_t unsigned
7805 _ACEOF
7809 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7810 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7811 if test "${ac_cv_type_uid_t+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814 cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h. */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7820 #include <sys/types.h>
7822 _ACEOF
7823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7824 $EGREP "uid_t" >/dev/null 2>&1; then
7825 ac_cv_type_uid_t=yes
7826 else
7827 ac_cv_type_uid_t=no
7829 rm -f conftest*
7832 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7833 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7834 if test $ac_cv_type_uid_t = no; then
7836 cat >>confdefs.h <<\_ACEOF
7837 #define uid_t int
7838 _ACEOF
7841 cat >>confdefs.h <<\_ACEOF
7842 #define gid_t int
7843 _ACEOF
7898 for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
7900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7901 echo "$as_me:$LINENO: checking for $ac_func" >&5
7902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7903 if eval "test \"\${$as_ac_var+set}\" = set"; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7914 #define $ac_func innocuous_$ac_func
7916 /* System header to define __stub macros and hopefully few prototypes,
7917 which can conflict with char $ac_func (); below.
7918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7919 <limits.h> exists even on freestanding compilers. */
7921 #ifdef __STDC__
7922 # include <limits.h>
7923 #else
7924 # include <assert.h>
7925 #endif
7927 #undef $ac_func
7929 /* Override any gcc2 internal prototype to avoid an error. */
7930 #ifdef __cplusplus
7931 extern "C"
7933 #endif
7934 /* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7936 char $ac_func ();
7937 /* The GNU C library defines this for functions which it implements
7938 to always fail with ENOSYS. Some functions are actually named
7939 something starting with __ and the normal name is an alias. */
7940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7941 choke me
7942 #else
7943 char (*f) () = $ac_func;
7944 #endif
7945 #ifdef __cplusplus
7947 #endif
7950 main ()
7952 return f != $ac_func;
7954 return 0;
7956 _ACEOF
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7959 (eval $ac_link) 2>conftest.er1
7960 ac_status=$?
7961 grep -v '^ *+' conftest.er1 >conftest.err
7962 rm -f conftest.er1
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -z "$ac_c_werror_flag"
7967 || test ! -s conftest.err'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 (eval $ac_try) 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; } &&
7973 { ac_try='test -s conftest$ac_exeext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 eval "$as_ac_var=yes"
7980 else
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7984 eval "$as_ac_var=no"
7986 rm -f conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7991 if test `eval echo '${'$as_ac_var'}'` = yes; then
7992 cat >>confdefs.h <<_ACEOF
7993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7994 _ACEOF
7997 done
8018 for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
8020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8022 echo "$as_me:$LINENO: checking for $ac_header" >&5
8023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8029 else
8030 # Is the header compilable?
8031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_includes_default
8040 #include <$ac_header>
8041 _ACEOF
8042 rm -f conftest.$ac_objext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8044 (eval $ac_compile) 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -z "$ac_c_werror_flag"
8052 || test ! -s conftest.err'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8064 ac_header_compiler=yes
8065 else
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_header_compiler=no
8071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8073 echo "${ECHO_T}$ac_header_compiler" >&6
8075 # Is the header present?
8076 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8078 cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h. */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8084 #include <$ac_header>
8085 _ACEOF
8086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8088 ac_status=$?
8089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } >/dev/null; then
8094 if test -s conftest.err; then
8095 ac_cpp_err=$ac_c_preproc_warn_flag
8096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8097 else
8098 ac_cpp_err=
8100 else
8101 ac_cpp_err=yes
8103 if test -z "$ac_cpp_err"; then
8104 ac_header_preproc=yes
8105 else
8106 echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8109 ac_header_preproc=no
8111 rm -f conftest.err conftest.$ac_ext
8112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8113 echo "${ECHO_T}$ac_header_preproc" >&6
8115 # So? What about this header?
8116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8117 yes:no: )
8118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8122 ac_header_preproc=yes
8124 no:yes:* )
8125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8138 cat <<\_ASBOX
8139 ## ------------------------------------------ ##
8140 ## Report this to the AC_PACKAGE_NAME lists. ##
8141 ## ------------------------------------------ ##
8142 _ASBOX
8144 sed "s/^/$as_me: WARNING: /" >&2
8146 esac
8147 echo "$as_me:$LINENO: checking for $ac_header" >&5
8148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152 eval "$as_ac_Header=\$ac_header_preproc"
8154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8159 cat >>confdefs.h <<_ACEOF
8160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8161 _ACEOF
8165 done
8172 ac_header_dirent=no
8173 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8174 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8175 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8176 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h. */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 #include <sys/types.h>
8187 #include <$ac_hdr>
8190 main ()
8192 if ((DIR *) 0)
8193 return 0;
8195 return 0;
8197 _ACEOF
8198 rm -f conftest.$ac_objext
8199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8200 (eval $ac_compile) 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -z "$ac_c_werror_flag"
8208 || test ! -s conftest.err'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210 (eval $ac_try) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 eval "$as_ac_Header=yes"
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8225 eval "$as_ac_Header=no"
8227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8232 cat >>confdefs.h <<_ACEOF
8233 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8234 _ACEOF
8236 ac_header_dirent=$ac_hdr; break
8239 done
8240 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8241 if test $ac_header_dirent = dirent.h; then
8242 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8243 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8244 if test "${ac_cv_search_opendir+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247 ac_func_search_save_LIBS=$LIBS
8248 ac_cv_search_opendir=no
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8256 /* Override any gcc2 internal prototype to avoid an error. */
8257 #ifdef __cplusplus
8258 extern "C"
8259 #endif
8260 /* We use char because int might match the return type of a gcc2
8261 builtin and then its argument prototype would still apply. */
8262 char opendir ();
8264 main ()
8266 opendir ();
8268 return 0;
8270 _ACEOF
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8273 (eval $ac_link) 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -z "$ac_c_werror_flag"
8281 || test ! -s conftest.err'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 (eval $ac_try) 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; } &&
8287 { ac_try='test -s conftest$ac_exeext'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 (eval $ac_try) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; }; then
8293 ac_cv_search_opendir="none required"
8294 else
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8299 rm -f conftest.err conftest.$ac_objext \
8300 conftest$ac_exeext conftest.$ac_ext
8301 if test "$ac_cv_search_opendir" = no; then
8302 for ac_lib in dir; do
8303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8304 cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h. */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8311 /* Override any gcc2 internal prototype to avoid an error. */
8312 #ifdef __cplusplus
8313 extern "C"
8314 #endif
8315 /* We use char because int might match the return type of a gcc2
8316 builtin and then its argument prototype would still apply. */
8317 char opendir ();
8319 main ()
8321 opendir ();
8323 return 0;
8325 _ACEOF
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8328 (eval $ac_link) 2>conftest.er1
8329 ac_status=$?
8330 grep -v '^ *+' conftest.er1 >conftest.err
8331 rm -f conftest.er1
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } &&
8335 { ac_try='test -z "$ac_c_werror_flag"
8336 || test ! -s conftest.err'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; } &&
8342 { ac_try='test -s conftest$ac_exeext'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8348 ac_cv_search_opendir="-l$ac_lib"
8349 break
8350 else
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8355 rm -f conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8357 done
8359 LIBS=$ac_func_search_save_LIBS
8361 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8362 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8363 if test "$ac_cv_search_opendir" != no; then
8364 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8368 else
8369 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8370 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8371 if test "${ac_cv_search_opendir+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374 ac_func_search_save_LIBS=$LIBS
8375 ac_cv_search_opendir=no
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8383 /* Override any gcc2 internal prototype to avoid an error. */
8384 #ifdef __cplusplus
8385 extern "C"
8386 #endif
8387 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8389 char opendir ();
8391 main ()
8393 opendir ();
8395 return 0;
8397 _ACEOF
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag"
8408 || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest$ac_exeext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_search_opendir="none required"
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8426 rm -f conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8428 if test "$ac_cv_search_opendir" = no; then
8429 for ac_lib in x; do
8430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h. */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8438 /* Override any gcc2 internal prototype to avoid an error. */
8439 #ifdef __cplusplus
8440 extern "C"
8441 #endif
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444 char opendir ();
8446 main ()
8448 opendir ();
8450 return 0;
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try='test -s conftest$ac_exeext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_cv_search_opendir="-l$ac_lib"
8476 break
8477 else
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8482 rm -f conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8484 done
8486 LIBS=$ac_func_search_save_LIBS
8488 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8489 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8490 if test "$ac_cv_search_opendir" != no; then
8491 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8498 sim_termio=""
8499 echo "$as_me:$LINENO: checking for struct termios" >&5
8500 echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
8501 if test "${ac_cv_termios_struct+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h. */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 #include <sys/types.h>
8511 #include <sys/termios.h>
8513 main ()
8515 static struct termios x;
8516 x.c_iflag = 0;
8517 x.c_oflag = 0;
8518 x.c_cflag = 0;
8519 x.c_lflag = 0;
8520 x.c_cc[NCCS] = 0;
8522 return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_termios_struct=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 ac_cv_termios_struct=no
8554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
8558 echo "${ECHO_T}$ac_cv_termios_struct" >&6
8559 if test $ac_cv_termios_struct = yes; then
8560 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
8563 if test "$ac_cv_termios_struct" = "yes"; then
8564 echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
8565 echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
8566 if test "${ac_cv_termios_cline+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h. */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 #include <sys/types.h>
8576 #include <sys/termios.h>
8578 main ()
8580 static struct termios x; x.c_line = 0;
8582 return 0;
8584 _ACEOF
8585 rm -f conftest.$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_cv_termios_cline=yes
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ac_cv_termios_cline=no
8614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8618 echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
8619 echo "${ECHO_T}$ac_cv_termios_cline" >&6
8620 if test $ac_cv_termios_cline = yes; then
8621 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
8623 else
8624 ac_cv_termios_cline=no
8627 if test "$ac_cv_termios_struct" != "yes"; then
8628 echo "$as_me:$LINENO: checking for struct termio" >&5
8629 echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
8630 if test "${ac_cv_termio_struct+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633 cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h. */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 #include <sys/types.h>
8640 #include <sys/termio.h>
8642 main ()
8644 static struct termio x;
8645 x.c_iflag = 0;
8646 x.c_oflag = 0;
8647 x.c_cflag = 0;
8648 x.c_lflag = 0;
8649 x.c_cc[NCC] = 0;
8651 return 0;
8653 _ACEOF
8654 rm -f conftest.$ac_objext
8655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8656 (eval $ac_compile) 2>conftest.er1
8657 ac_status=$?
8658 grep -v '^ *+' conftest.er1 >conftest.err
8659 rm -f conftest.er1
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try='test -z "$ac_c_werror_flag"
8664 || test ! -s conftest.err'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; } &&
8670 { ac_try='test -s conftest.$ac_objext'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 ac_cv_termio_struct=yes
8677 else
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 ac_cv_termio_struct=no
8683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8686 echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
8687 echo "${ECHO_T}$ac_cv_termio_struct" >&6
8688 if test $ac_cv_termio_struct = yes; then
8689 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
8691 else
8692 ac_cv_termio_struct=no
8695 if test "$ac_cv_termio_struct" = "yes"; then
8696 echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
8697 echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
8698 if test "${ac_cv_termio_cline+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701 cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h. */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 #include <sys/types.h>
8708 #include <sys/termio.h>
8710 main ()
8712 static struct termio x; x.c_line = 0;
8714 return 0;
8716 _ACEOF
8717 rm -f conftest.$ac_objext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8719 (eval $ac_compile) 2>conftest.er1
8720 ac_status=$?
8721 grep -v '^ *+' conftest.er1 >conftest.err
8722 rm -f conftest.er1
8723 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try='test -z "$ac_c_werror_flag"
8727 || test ! -s conftest.err'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; } &&
8733 { ac_try='test -s conftest.$ac_objext'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 (eval $ac_try) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 ac_cv_termio_cline=yes
8740 else
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8744 ac_cv_termio_cline=no
8746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8750 echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
8751 echo "${ECHO_T}$ac_cv_termio_cline" >&6
8752 if test $ac_cv_termio_cline = yes; then
8753 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
8755 else
8756 ac_cv_termio_cline=no
8759 echo "$as_me:$LINENO: checking for struct statfs" >&5
8760 echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
8761 if test "${ac_cv_struct_statfs+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h. */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8770 #include <sys/types.h>
8771 #ifdef HAVE_SYS_PARAM_H
8772 #include <sys/param.h>
8773 #endif
8774 #ifdef HAVE_SYS_MOUNT_H
8775 #include <sys/mount.h>
8776 #endif
8777 #ifdef HAVE_SYS_VFS_H
8778 #include <sys/vfs.h>
8779 #endif
8780 #ifdef HAVE_SYS_STATFS_H
8781 #include <sys/statfs.h>
8782 #endif
8784 main ()
8786 static struct statfs s;
8788 return 0;
8790 _ACEOF
8791 rm -f conftest.$ac_objext
8792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8793 (eval $ac_compile) 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -z "$ac_c_werror_flag"
8801 || test ! -s conftest.err'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 (eval $ac_try) 2>&5
8804 ac_status=$?
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try='test -s conftest.$ac_objext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_cv_struct_statfs=yes
8814 else
8815 echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8818 ac_cv_struct_statfs=no
8820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
8824 echo "${ECHO_T}$ac_cv_struct_statfs" >&6
8825 if test $ac_cv_struct_statfs = yes; then
8827 cat >>confdefs.h <<\_ACEOF
8828 #define HAVE_STRUCT_STATFS 1
8829 _ACEOF
8833 echo "$as_me:$LINENO: checking for long long" >&5
8834 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8835 if test "${ac_cv_type_long_long+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
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 $ac_includes_default
8846 main ()
8848 if ((long long *) 0)
8849 return 0;
8850 if (sizeof (long long))
8851 return 0;
8853 return 0;
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858 (eval $ac_compile) 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag"
8866 || test ! -s conftest.err'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest.$ac_objext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_cv_type_long_long=yes
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_cv_type_long_long=no
8885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8887 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8888 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8889 if test $ac_cv_type_long_long = yes; then
8891 cat >>confdefs.h <<_ACEOF
8892 #define HAVE_LONG_LONG 1
8893 _ACEOF
8899 sim_devzero=""
8900 echo "$as_me:$LINENO: checking for /dev/zero" >&5
8901 echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
8902 if test "${ac_cv_devzero+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905 if test "$cross_compiling" = yes; then
8906 ac_cv_devzero=no
8907 else
8908 cat >conftest.$ac_ext <<_ACEOF
8909 /* confdefs.h. */
8910 _ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8914 #include <fcntl.h>
8915 main () {
8916 char buf[2048];
8917 int i;
8918 int fd = open ("/dev/zero", O_RDONLY);
8919 if (fd < 0)
8920 return 1;
8921 for (i = 0; i < sizeof (buf); i++)
8922 buf[i] = 1;
8923 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
8924 return 1;
8925 for (i = 0; i < sizeof (buf); i++)
8926 if (buf[i])
8927 return 1;
8928 return 0;
8930 _ACEOF
8931 rm -f conftest$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>&5
8934 ac_status=$?
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_devzero=yes
8943 else
8944 echo "$as_me: program exited with status $ac_status" >&5
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 ( exit $ac_status )
8949 ac_cv_devzero=no
8951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8955 echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
8956 echo "${ECHO_T}$ac_cv_devzero" >&6
8957 if test $ac_cv_devzero = yes; then
8958 sim_devzero="-DHAVE_DEVZERO"
8959 else
8960 sim_devzero=""
8963 echo "$as_me:$LINENO: checking for common simulator directory" >&5
8964 echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
8965 if test -f "${srcdir}/../common/callback.c"; then
8966 echo "$as_me:$LINENO: result: yes" >&5
8967 echo "${ECHO_T}yes" >&6
8968 sim_callback="callback.o targ-map.o"
8969 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
8970 else
8971 echo "$as_me:$LINENO: result: no" >&5
8972 echo "${ECHO_T}no" >&6
8973 sim_callback=""
8974 sim_targ_vals=""
8977 echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
8978 echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
8979 if test -f "${srcdir}/../common/sim-fpu.c"; then
8980 echo "$as_me:$LINENO: result: yes" >&5
8981 echo "${ECHO_T}yes" >&6
8982 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
8983 sim_fpu="sim-fpu.o"
8984 else
8985 echo "$as_me:$LINENO: result: no" >&5
8986 echo "${ECHO_T}no" >&6
8987 sim_fpu_cflags=
8988 sim_fpu=
8997 AR=${AR-ar}
8999 if test -n "$ac_tool_prefix"; then
9000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9001 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9002 echo "$as_me:$LINENO: checking for $ac_word" >&5
9003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9004 if test "${ac_cv_prog_RANLIB+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007 if test -n "$RANLIB"; then
9008 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9009 else
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 break 2
9021 done
9022 done
9026 RANLIB=$ac_cv_prog_RANLIB
9027 if test -n "$RANLIB"; then
9028 echo "$as_me:$LINENO: result: $RANLIB" >&5
9029 echo "${ECHO_T}$RANLIB" >&6
9030 else
9031 echo "$as_me:$LINENO: result: no" >&5
9032 echo "${ECHO_T}no" >&6
9036 if test -z "$ac_cv_prog_RANLIB"; then
9037 ac_ct_RANLIB=$RANLIB
9038 # Extract the first word of "ranlib", so it can be a program name with args.
9039 set dummy ranlib; ac_word=$2
9040 echo "$as_me:$LINENO: checking for $ac_word" >&5
9041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 if test -n "$ac_ct_RANLIB"; then
9046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_prog_ac_ct_RANLIB="ranlib"
9056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9059 done
9060 done
9062 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9066 if test -n "$ac_ct_RANLIB"; then
9067 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9068 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9069 else
9070 echo "$as_me:$LINENO: result: no" >&5
9071 echo "${ECHO_T}no" >&6
9074 RANLIB=$ac_ct_RANLIB
9075 else
9076 RANLIB="$ac_cv_prog_RANLIB"
9124 ac_config_files="$ac_config_files Makefile"
9125 ac_config_commands="$ac_config_commands default"
9126 cat >confcache <<\_ACEOF
9127 # This file is a shell script that caches the results of configure
9128 # tests run on this system so they can be shared between configure
9129 # scripts and configure runs, see configure's option --config-cache.
9130 # It is not useful on other systems. If it contains results you don't
9131 # want to keep, you may remove or edit it.
9133 # config.status only pays attention to the cache file if you give it
9134 # the --recheck option to rerun configure.
9136 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9137 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9138 # following values.
9140 _ACEOF
9142 # The following way of writing the cache mishandles newlines in values,
9143 # but we know of no workaround that is simple, portable, and efficient.
9144 # So, don't put newlines in cache variables' values.
9145 # Ultrix sh set writes to stderr and can't be redirected directly,
9146 # and sets the high bit in the cache file unless we assign to the vars.
9148 (set) 2>&1 |
9149 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9150 *ac_space=\ *)
9151 # `set' does not quote correctly, so add quotes (double-quote
9152 # substitution turns \\\\ into \\, and sed turns \\ into \).
9153 sed -n \
9154 "s/'/'\\\\''/g;
9155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9158 # `set' quotes correctly as required by POSIX, so do not add quotes.
9159 sed -n \
9160 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9162 esac;
9164 sed '
9165 t clear
9166 : clear
9167 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9168 t end
9169 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9170 : end' >>confcache
9171 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9172 if test -w $cache_file; then
9173 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9174 cat confcache >$cache_file
9175 else
9176 echo "not updating unwritable cache $cache_file"
9179 rm -f confcache
9181 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9182 # Let make expand exec_prefix.
9183 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9185 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9186 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9187 # trailing colons and then remove the whole line if VPATH becomes empty
9188 # (actually we leave an empty line to preserve line numbers).
9189 if test "x$srcdir" = x.; then
9190 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9191 s/:*\$(srcdir):*/:/;
9192 s/:*\${srcdir}:*/:/;
9193 s/:*@srcdir@:*/:/;
9194 s/^\([^=]*=[ ]*\):*/\1/;
9195 s/:*$//;
9196 s/^[^=]*=[ ]*$//;
9200 DEFS=-DHAVE_CONFIG_H
9202 ac_libobjs=
9203 ac_ltlibobjs=
9204 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9205 # 1. Remove the extension, and $U if already installed.
9206 ac_i=`echo "$ac_i" |
9207 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9208 # 2. Add them.
9209 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9210 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9211 done
9212 LIBOBJS=$ac_libobjs
9214 LTLIBOBJS=$ac_ltlibobjs
9218 : ${CONFIG_STATUS=./config.status}
9219 ac_clean_files_save=$ac_clean_files
9220 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9221 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9222 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9223 cat >$CONFIG_STATUS <<_ACEOF
9224 #! $SHELL
9225 # Generated by $as_me.
9226 # Run this file to recreate the current configuration.
9227 # Compiler output produced by configure, useful for debugging
9228 # configure, is in config.log if it exists.
9230 debug=false
9231 ac_cs_recheck=false
9232 ac_cs_silent=false
9233 SHELL=\${CONFIG_SHELL-$SHELL}
9234 _ACEOF
9236 cat >>$CONFIG_STATUS <<\_ACEOF
9237 ## --------------------- ##
9238 ## M4sh Initialization. ##
9239 ## --------------------- ##
9241 # Be Bourne compatible
9242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9243 emulate sh
9244 NULLCMD=:
9245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9246 # is contrary to our usage. Disable this feature.
9247 alias -g '${1+"$@"}'='"$@"'
9248 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9249 set -o posix
9251 DUALCASE=1; export DUALCASE # for MKS sh
9253 # Support unset when possible.
9254 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9255 as_unset=unset
9256 else
9257 as_unset=false
9261 # Work around bugs in pre-3.0 UWIN ksh.
9262 $as_unset ENV MAIL MAILPATH
9263 PS1='$ '
9264 PS2='> '
9265 PS4='+ '
9267 # NLS nuisances.
9268 for as_var in \
9269 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9270 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9271 LC_TELEPHONE LC_TIME
9273 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9274 eval $as_var=C; export $as_var
9275 else
9276 $as_unset $as_var
9278 done
9280 # Required to use basename.
9281 if expr a : '\(a\)' >/dev/null 2>&1; then
9282 as_expr=expr
9283 else
9284 as_expr=false
9287 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9288 as_basename=basename
9289 else
9290 as_basename=false
9294 # Name of the executable.
9295 as_me=`$as_basename "$0" ||
9296 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9297 X"$0" : 'X\(//\)$' \| \
9298 X"$0" : 'X\(/\)$' \| \
9299 . : '\(.\)' 2>/dev/null ||
9300 echo X/"$0" |
9301 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9302 /^X\/\(\/\/\)$/{ s//\1/; q; }
9303 /^X\/\(\/\).*/{ s//\1/; q; }
9304 s/.*/./; q'`
9307 # PATH needs CR, and LINENO needs CR and PATH.
9308 # Avoid depending upon Character Ranges.
9309 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9310 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9311 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9312 as_cr_digits='0123456789'
9313 as_cr_alnum=$as_cr_Letters$as_cr_digits
9315 # The user is always right.
9316 if test "${PATH_SEPARATOR+set}" != set; then
9317 echo "#! /bin/sh" >conf$$.sh
9318 echo "exit 0" >>conf$$.sh
9319 chmod +x conf$$.sh
9320 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9321 PATH_SEPARATOR=';'
9322 else
9323 PATH_SEPARATOR=:
9325 rm -f conf$$.sh
9329 as_lineno_1=$LINENO
9330 as_lineno_2=$LINENO
9331 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9332 test "x$as_lineno_1" != "x$as_lineno_2" &&
9333 test "x$as_lineno_3" = "x$as_lineno_2" || {
9334 # Find who we are. Look in the path if we contain no path at all
9335 # relative or not.
9336 case $0 in
9337 *[\\/]* ) as_myself=$0 ;;
9338 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 for as_dir in $PATH
9341 IFS=$as_save_IFS
9342 test -z "$as_dir" && as_dir=.
9343 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9344 done
9347 esac
9348 # We did not find ourselves, most probably we were run as `sh COMMAND'
9349 # in which case we are not to be found in the path.
9350 if test "x$as_myself" = x; then
9351 as_myself=$0
9353 if test ! -f "$as_myself"; then
9354 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9355 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9356 { (exit 1); exit 1; }; }
9358 case $CONFIG_SHELL in
9360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9363 IFS=$as_save_IFS
9364 test -z "$as_dir" && as_dir=.
9365 for as_base in sh bash ksh sh5; do
9366 case $as_dir in
9368 if ("$as_dir/$as_base" -c '
9369 as_lineno_1=$LINENO
9370 as_lineno_2=$LINENO
9371 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9372 test "x$as_lineno_1" != "x$as_lineno_2" &&
9373 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9374 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9375 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9376 CONFIG_SHELL=$as_dir/$as_base
9377 export CONFIG_SHELL
9378 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9379 fi;;
9380 esac
9381 done
9382 done
9384 esac
9386 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9387 # uniformly replaced by the line number. The first 'sed' inserts a
9388 # line-number line before each line; the second 'sed' does the real
9389 # work. The second script uses 'N' to pair each line-number line
9390 # with the numbered line, and appends trailing '-' during
9391 # substitution so that $LINENO is not a special case at line end.
9392 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9393 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9394 sed '=' <$as_myself |
9395 sed '
9397 s,$,-,
9398 : loop
9399 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9400 t loop
9401 s,-$,,
9402 s,^['$as_cr_digits']*\n,,
9403 ' >$as_me.lineno &&
9404 chmod +x $as_me.lineno ||
9405 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9406 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9407 { (exit 1); exit 1; }; }
9409 # Don't try to exec as it changes $[0], causing all sort of problems
9410 # (the dirname of $[0] is not the place where we might find the
9411 # original and so on. Autoconf is especially sensible to this).
9412 . ./$as_me.lineno
9413 # Exit status is that of the last command.
9414 exit
9418 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9419 *c*,-n*) ECHO_N= ECHO_C='
9420 ' ECHO_T=' ' ;;
9421 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9422 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9423 esac
9425 if expr a : '\(a\)' >/dev/null 2>&1; then
9426 as_expr=expr
9427 else
9428 as_expr=false
9431 rm -f conf$$ conf$$.exe conf$$.file
9432 echo >conf$$.file
9433 if ln -s conf$$.file conf$$ 2>/dev/null; then
9434 # We could just check for DJGPP; but this test a) works b) is more generic
9435 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9436 if test -f conf$$.exe; then
9437 # Don't use ln at all; we don't have any links
9438 as_ln_s='cp -p'
9439 else
9440 as_ln_s='ln -s'
9442 elif ln conf$$.file conf$$ 2>/dev/null; then
9443 as_ln_s=ln
9444 else
9445 as_ln_s='cp -p'
9447 rm -f conf$$ conf$$.exe conf$$.file
9449 if mkdir -p . 2>/dev/null; then
9450 as_mkdir_p=:
9451 else
9452 test -d ./-p && rmdir ./-p
9453 as_mkdir_p=false
9456 as_executable_p="test -f"
9458 # Sed expression to map a string onto a valid CPP name.
9459 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9461 # Sed expression to map a string onto a valid variable name.
9462 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9465 # IFS
9466 # We need space, tab and new line, in precisely that order.
9467 as_nl='
9469 IFS=" $as_nl"
9471 # CDPATH.
9472 $as_unset CDPATH
9474 exec 6>&1
9476 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9477 # report actual input values of CONFIG_FILES etc. instead of their
9478 # values after options handling. Logging --version etc. is OK.
9479 exec 5>>config.log
9481 echo
9482 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9483 ## Running $as_me. ##
9484 _ASBOX
9485 } >&5
9486 cat >&5 <<_CSEOF
9488 This file was extended by $as_me, which was
9489 generated by GNU Autoconf 2.59. Invocation command line was
9491 CONFIG_FILES = $CONFIG_FILES
9492 CONFIG_HEADERS = $CONFIG_HEADERS
9493 CONFIG_LINKS = $CONFIG_LINKS
9494 CONFIG_COMMANDS = $CONFIG_COMMANDS
9495 $ $0 $@
9497 _CSEOF
9498 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9499 echo >&5
9500 _ACEOF
9502 # Files that config.status was made for.
9503 if test -n "$ac_config_files"; then
9504 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9507 if test -n "$ac_config_headers"; then
9508 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9511 if test -n "$ac_config_links"; then
9512 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9515 if test -n "$ac_config_commands"; then
9516 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9519 cat >>$CONFIG_STATUS <<\_ACEOF
9521 ac_cs_usage="\
9522 \`$as_me' instantiates files from templates according to the
9523 current configuration.
9525 Usage: $0 [OPTIONS] [FILE]...
9527 -h, --help print this help, then exit
9528 -V, --version print version number, then exit
9529 -q, --quiet do not print progress messages
9530 -d, --debug don't remove temporary files
9531 --recheck update $as_me by reconfiguring in the same conditions
9532 --file=FILE[:TEMPLATE]
9533 instantiate the configuration file FILE
9534 --header=FILE[:TEMPLATE]
9535 instantiate the configuration header FILE
9537 Configuration files:
9538 $config_files
9540 Configuration headers:
9541 $config_headers
9543 Configuration commands:
9544 $config_commands
9546 Report bugs to <bug-autoconf@gnu.org>."
9547 _ACEOF
9549 cat >>$CONFIG_STATUS <<_ACEOF
9550 ac_cs_version="\\
9551 config.status
9552 configured by $0, generated by GNU Autoconf 2.59,
9553 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9555 Copyright (C) 2003 Free Software Foundation, Inc.
9556 This config.status script is free software; the Free Software Foundation
9557 gives unlimited permission to copy, distribute and modify it."
9558 srcdir=$srcdir
9559 INSTALL="$INSTALL"
9560 _ACEOF
9562 cat >>$CONFIG_STATUS <<\_ACEOF
9563 # If no file are specified by the user, then we need to provide default
9564 # value. By we need to know if files were specified by the user.
9565 ac_need_defaults=:
9566 while test $# != 0
9568 case $1 in
9569 --*=*)
9570 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9571 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9572 ac_shift=:
9575 ac_option=$1
9576 ac_optarg=$2
9577 ac_shift=shift
9579 *) # This is not an option, so the user has probably given explicit
9580 # arguments.
9581 ac_option=$1
9582 ac_need_defaults=false;;
9583 esac
9585 case $ac_option in
9586 # Handling of the options.
9587 _ACEOF
9588 cat >>$CONFIG_STATUS <<\_ACEOF
9589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9590 ac_cs_recheck=: ;;
9591 --version | --vers* | -V )
9592 echo "$ac_cs_version"; exit 0 ;;
9593 --he | --h)
9594 # Conflict between --help and --header
9595 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9596 Try \`$0 --help' for more information." >&5
9597 echo "$as_me: error: ambiguous option: $1
9598 Try \`$0 --help' for more information." >&2;}
9599 { (exit 1); exit 1; }; };;
9600 --help | --hel | -h )
9601 echo "$ac_cs_usage"; exit 0 ;;
9602 --debug | --d* | -d )
9603 debug=: ;;
9604 --file | --fil | --fi | --f )
9605 $ac_shift
9606 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9607 ac_need_defaults=false;;
9608 --header | --heade | --head | --hea )
9609 $ac_shift
9610 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9611 ac_need_defaults=false;;
9612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9613 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9614 ac_cs_silent=: ;;
9616 # This is an error.
9617 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9618 Try \`$0 --help' for more information." >&5
9619 echo "$as_me: error: unrecognized option: $1
9620 Try \`$0 --help' for more information." >&2;}
9621 { (exit 1); exit 1; }; } ;;
9623 *) ac_config_targets="$ac_config_targets $1" ;;
9625 esac
9626 shift
9627 done
9629 ac_configure_extra_args=
9631 if $ac_cs_silent; then
9632 exec 6>/dev/null
9633 ac_configure_extra_args="$ac_configure_extra_args --silent"
9636 _ACEOF
9637 cat >>$CONFIG_STATUS <<_ACEOF
9638 if \$ac_cs_recheck; then
9639 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9640 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9643 _ACEOF
9649 cat >>$CONFIG_STATUS <<\_ACEOF
9650 for ac_config_target in $ac_config_targets
9652 case "$ac_config_target" in
9653 # Handling of arguments.
9654 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9655 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9656 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9657 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9658 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9659 { (exit 1); exit 1; }; };;
9660 esac
9661 done
9663 # If the user did not use the arguments to specify the items to instantiate,
9664 # then the envvar interface is used. Set only those that are not.
9665 # We use the long form for the default assignment because of an extremely
9666 # bizarre bug on SunOS 4.1.3.
9667 if $ac_need_defaults; then
9668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9673 # Have a temporary directory for convenience. Make it in the build tree
9674 # simply because there is no reason to put it here, and in addition,
9675 # creating and moving files from /tmp can sometimes cause problems.
9676 # Create a temporary directory, and hook for its removal unless debugging.
9677 $debug ||
9679 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9680 trap '{ (exit 1); exit 1; }' 1 2 13 15
9683 # Create a (secure) tmp directory for tmp files.
9686 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9687 test -n "$tmp" && test -d "$tmp"
9688 } ||
9690 tmp=./confstat$$-$RANDOM
9691 (umask 077 && mkdir $tmp)
9692 } ||
9694 echo "$me: cannot create a temporary directory in ." >&2
9695 { (exit 1); exit 1; }
9698 _ACEOF
9700 cat >>$CONFIG_STATUS <<_ACEOF
9703 # CONFIG_FILES section.
9706 # No need to generate the scripts if there are no CONFIG_FILES.
9707 # This happens for instance when ./config.status config.h
9708 if test -n "\$CONFIG_FILES"; then
9709 # Protect against being on the right side of a sed subst in config.status.
9710 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9711 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9712 s,@sim_environment@,$sim_environment,;t t
9713 s,@sim_alignment@,$sim_alignment,;t t
9714 s,@sim_assert@,$sim_assert,;t t
9715 s,@sim_bitsize@,$sim_bitsize,;t t
9716 s,@sim_endian@,$sim_endian,;t t
9717 s,@sim_hostendian@,$sim_hostendian,;t t
9718 s,@sim_float@,$sim_float,;t t
9719 s,@sim_scache@,$sim_scache,;t t
9720 s,@sim_default_model@,$sim_default_model,;t t
9721 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9722 s,@sim_hw_objs@,$sim_hw_objs,;t t
9723 s,@sim_hw@,$sim_hw,;t t
9724 s,@sim_inline@,$sim_inline,;t t
9725 s,@sim_packages@,$sim_packages,;t t
9726 s,@sim_regparm@,$sim_regparm,;t t
9727 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9728 s,@sim_smp@,$sim_smp,;t t
9729 s,@sim_stdcall@,$sim_stdcall,;t t
9730 s,@sim_xor_endian@,$sim_xor_endian,;t t
9731 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9732 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9733 s,@SHELL@,$SHELL,;t t
9734 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9735 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9736 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9737 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9738 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9739 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9740 s,@exec_prefix@,$exec_prefix,;t t
9741 s,@prefix@,$prefix,;t t
9742 s,@program_transform_name@,$program_transform_name,;t t
9743 s,@bindir@,$bindir,;t t
9744 s,@sbindir@,$sbindir,;t t
9745 s,@libexecdir@,$libexecdir,;t t
9746 s,@datadir@,$datadir,;t t
9747 s,@sysconfdir@,$sysconfdir,;t t
9748 s,@sharedstatedir@,$sharedstatedir,;t t
9749 s,@localstatedir@,$localstatedir,;t t
9750 s,@libdir@,$libdir,;t t
9751 s,@includedir@,$includedir,;t t
9752 s,@oldincludedir@,$oldincludedir,;t t
9753 s,@infodir@,$infodir,;t t
9754 s,@mandir@,$mandir,;t t
9755 s,@build_alias@,$build_alias,;t t
9756 s,@host_alias@,$host_alias,;t t
9757 s,@target_alias@,$target_alias,;t t
9758 s,@DEFS@,$DEFS,;t t
9759 s,@ECHO_C@,$ECHO_C,;t t
9760 s,@ECHO_N@,$ECHO_N,;t t
9761 s,@ECHO_T@,$ECHO_T,;t t
9762 s,@LIBS@,$LIBS,;t t
9763 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9764 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9765 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9766 s,@CC@,$CC,;t t
9767 s,@CFLAGS@,$CFLAGS,;t t
9768 s,@LDFLAGS@,$LDFLAGS,;t t
9769 s,@CPPFLAGS@,$CPPFLAGS,;t t
9770 s,@ac_ct_CC@,$ac_ct_CC,;t t
9771 s,@EXEEXT@,$EXEEXT,;t t
9772 s,@OBJEXT@,$OBJEXT,;t t
9773 s,@SET_MAKE@,$SET_MAKE,;t t
9774 s,@RANLIB@,$RANLIB,;t t
9775 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9776 s,@CPP@,$CPP,;t t
9777 s,@EGREP@,$EGREP,;t t
9778 s,@ALLOCA@,$ALLOCA,;t t
9779 s,@USE_NLS@,$USE_NLS,;t t
9780 s,@MSGFMT@,$MSGFMT,;t t
9781 s,@GMSGFMT@,$GMSGFMT,;t t
9782 s,@XGETTEXT@,$XGETTEXT,;t t
9783 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9784 s,@CATALOGS@,$CATALOGS,;t t
9785 s,@CATOBJEXT@,$CATOBJEXT,;t t
9786 s,@DATADIRNAME@,$DATADIRNAME,;t t
9787 s,@GMOFILES@,$GMOFILES,;t t
9788 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9789 s,@INTLDEPS@,$INTLDEPS,;t t
9790 s,@INTLLIBS@,$INTLLIBS,;t t
9791 s,@INTLOBJS@,$INTLOBJS,;t t
9792 s,@POFILES@,$POFILES,;t t
9793 s,@POSUB@,$POSUB,;t t
9794 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9795 s,@GT_NO@,$GT_NO,;t t
9796 s,@GT_YES@,$GT_YES,;t t
9797 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9798 s,@l@,$l,;t t
9799 s,@build@,$build,;t t
9800 s,@build_cpu@,$build_cpu,;t t
9801 s,@build_vendor@,$build_vendor,;t t
9802 s,@build_os@,$build_os,;t t
9803 s,@host@,$host,;t t
9804 s,@host_cpu@,$host_cpu,;t t
9805 s,@host_vendor@,$host_vendor,;t t
9806 s,@host_os@,$host_os,;t t
9807 s,@target@,$target,;t t
9808 s,@target_cpu@,$target_cpu,;t t
9809 s,@target_vendor@,$target_vendor,;t t
9810 s,@target_os@,$target_os,;t t
9811 s,@LIBOBJS@,$LIBOBJS,;t t
9812 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9813 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
9814 s,@HDEFINES@,$HDEFINES,;t t
9815 s,@AR@,$AR,;t t
9816 s,@sim_cflags@,$sim_cflags,;t t
9817 s,@sim_warnings@,$sim_warnings,;t t
9818 s,@sim_line_nr@,$sim_line_nr,;t t
9819 s,@sim_config@,$sim_config,;t t
9820 s,@sim_opcode@,$sim_opcode,;t t
9821 s,@sim_switch@,$sim_switch,;t t
9822 s,@sim_dup@,$sim_dup,;t t
9823 s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
9824 s,@sim_jump@,$sim_jump,;t t
9825 s,@sim_filter@,$sim_filter,;t t
9826 s,@sim_icache@,$sim_icache,;t t
9827 s,@sim_hw_src@,$sim_hw_src,;t t
9828 s,@sim_hw_obj@,$sim_hw_obj,;t t
9829 s,@sim_pk_src@,$sim_pk_src,;t t
9830 s,@sim_pk_obj@,$sim_pk_obj,;t t
9831 s,@sim_bswap@,$sim_bswap,;t t
9832 s,@sim_igen_smp@,$sim_igen_smp,;t t
9833 s,@sim_hostbitsize@,$sim_hostbitsize,;t t
9834 s,@sim_env@,$sim_env,;t t
9835 s,@sim_timebase@,$sim_timebase,;t t
9836 s,@sim_trace@,$sim_trace,;t t
9837 s,@sim_reserved@,$sim_reserved,;t t
9838 s,@sim_monitor@,$sim_monitor,;t t
9839 s,@sim_model@,$sim_model,;t t
9840 s,@sim_model_issue@,$sim_model_issue,;t t
9841 s,@sim_stdio@,$sim_stdio,;t t
9842 s,@sim_termio@,$sim_termio,;t t
9843 s,@sim_devzero@,$sim_devzero,;t t
9844 s,@sim_callback@,$sim_callback,;t t
9845 s,@sim_targ_vals@,$sim_targ_vals,;t t
9846 s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
9847 s,@sim_fpu@,$sim_fpu,;t t
9848 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9849 CEOF
9851 _ACEOF
9853 cat >>$CONFIG_STATUS <<\_ACEOF
9854 # Split the substitutions into bite-sized pieces for seds with
9855 # small command number limits, like on Digital OSF/1 and HP-UX.
9856 ac_max_sed_lines=48
9857 ac_sed_frag=1 # Number of current file.
9858 ac_beg=1 # First line for current file.
9859 ac_end=$ac_max_sed_lines # Line after last line for current file.
9860 ac_more_lines=:
9861 ac_sed_cmds=
9862 while $ac_more_lines; do
9863 if test $ac_beg -gt 1; then
9864 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9865 else
9866 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9868 if test ! -s $tmp/subs.frag; then
9869 ac_more_lines=false
9870 else
9871 # The purpose of the label and of the branching condition is to
9872 # speed up the sed processing (if there are no `@' at all, there
9873 # is no need to browse any of the substitutions).
9874 # These are the two extra sed commands mentioned above.
9875 (echo ':t
9876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9877 if test -z "$ac_sed_cmds"; then
9878 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9879 else
9880 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9882 ac_sed_frag=`expr $ac_sed_frag + 1`
9883 ac_beg=$ac_end
9884 ac_end=`expr $ac_end + $ac_max_sed_lines`
9886 done
9887 if test -z "$ac_sed_cmds"; then
9888 ac_sed_cmds=cat
9890 fi # test -n "$CONFIG_FILES"
9892 _ACEOF
9893 cat >>$CONFIG_STATUS <<\_ACEOF
9894 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9896 case $ac_file in
9897 - | *:- | *:-:* ) # input from stdin
9898 cat >$tmp/stdin
9899 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9901 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9903 * ) ac_file_in=$ac_file.in ;;
9904 esac
9906 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9907 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9909 X"$ac_file" : 'X\(//\)[^/]' \| \
9910 X"$ac_file" : 'X\(//\)$' \| \
9911 X"$ac_file" : 'X\(/\)' \| \
9912 . : '\(.\)' 2>/dev/null ||
9913 echo X"$ac_file" |
9914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9916 /^X\(\/\/\)$/{ s//\1/; q; }
9917 /^X\(\/\).*/{ s//\1/; q; }
9918 s/.*/./; q'`
9919 { if $as_mkdir_p; then
9920 mkdir -p "$ac_dir"
9921 else
9922 as_dir="$ac_dir"
9923 as_dirs=
9924 while test ! -d "$as_dir"; do
9925 as_dirs="$as_dir $as_dirs"
9926 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9928 X"$as_dir" : 'X\(//\)[^/]' \| \
9929 X"$as_dir" : 'X\(//\)$' \| \
9930 X"$as_dir" : 'X\(/\)' \| \
9931 . : '\(.\)' 2>/dev/null ||
9932 echo X"$as_dir" |
9933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9935 /^X\(\/\/\)$/{ s//\1/; q; }
9936 /^X\(\/\).*/{ s//\1/; q; }
9937 s/.*/./; q'`
9938 done
9939 test ! -n "$as_dirs" || mkdir $as_dirs
9940 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9941 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9942 { (exit 1); exit 1; }; }; }
9944 ac_builddir=.
9946 if test "$ac_dir" != .; then
9947 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9948 # A "../" for each directory in $ac_dir_suffix.
9949 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9950 else
9951 ac_dir_suffix= ac_top_builddir=
9954 case $srcdir in
9955 .) # No --srcdir option. We are building in place.
9956 ac_srcdir=.
9957 if test -z "$ac_top_builddir"; then
9958 ac_top_srcdir=.
9959 else
9960 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9961 fi ;;
9962 [\\/]* | ?:[\\/]* ) # Absolute path.
9963 ac_srcdir=$srcdir$ac_dir_suffix;
9964 ac_top_srcdir=$srcdir ;;
9965 *) # Relative path.
9966 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9967 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9968 esac
9970 # Do not use `cd foo && pwd` to compute absolute paths, because
9971 # the directories may not exist.
9972 case `pwd` in
9973 .) ac_abs_builddir="$ac_dir";;
9975 case "$ac_dir" in
9976 .) ac_abs_builddir=`pwd`;;
9977 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9978 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9979 esac;;
9980 esac
9981 case $ac_abs_builddir in
9982 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9984 case ${ac_top_builddir}. in
9985 .) ac_abs_top_builddir=$ac_abs_builddir;;
9986 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9987 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9988 esac;;
9989 esac
9990 case $ac_abs_builddir in
9991 .) ac_abs_srcdir=$ac_srcdir;;
9993 case $ac_srcdir in
9994 .) ac_abs_srcdir=$ac_abs_builddir;;
9995 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9996 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9997 esac;;
9998 esac
9999 case $ac_abs_builddir in
10000 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10002 case $ac_top_srcdir in
10003 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10004 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10005 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10006 esac;;
10007 esac
10010 case $INSTALL in
10011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10012 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10013 esac
10015 if test x"$ac_file" != x-; then
10016 { echo "$as_me:$LINENO: creating $ac_file" >&5
10017 echo "$as_me: creating $ac_file" >&6;}
10018 rm -f "$ac_file"
10020 # Let's still pretend it is `configure' which instantiates (i.e., don't
10021 # use $as_me), people would be surprised to read:
10022 # /* config.h. Generated by config.status. */
10023 if test x"$ac_file" = x-; then
10024 configure_input=
10025 else
10026 configure_input="$ac_file. "
10028 configure_input=$configure_input"Generated from `echo $ac_file_in |
10029 sed 's,.*/,,'` by configure."
10031 # First look for the input files in the build tree, otherwise in the
10032 # src tree.
10033 ac_file_inputs=`IFS=:
10034 for f in $ac_file_in; do
10035 case $f in
10036 -) echo $tmp/stdin ;;
10037 [\\/$]*)
10038 # Absolute (can't be DOS-style, as IFS=:)
10039 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10040 echo "$as_me: error: cannot find input file: $f" >&2;}
10041 { (exit 1); exit 1; }; }
10042 echo "$f";;
10043 *) # Relative
10044 if test -f "$f"; then
10045 # Build tree
10046 echo "$f"
10047 elif test -f "$srcdir/$f"; then
10048 # Source tree
10049 echo "$srcdir/$f"
10050 else
10051 # /dev/null tree
10052 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10053 echo "$as_me: error: cannot find input file: $f" >&2;}
10054 { (exit 1); exit 1; }; }
10055 fi;;
10056 esac
10057 done` || { (exit 1); exit 1; }
10058 _ACEOF
10059 cat >>$CONFIG_STATUS <<_ACEOF
10060 sed "$ac_vpsub
10061 $extrasub
10062 _ACEOF
10063 cat >>$CONFIG_STATUS <<\_ACEOF
10065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10066 s,@configure_input@,$configure_input,;t t
10067 s,@srcdir@,$ac_srcdir,;t t
10068 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10069 s,@top_srcdir@,$ac_top_srcdir,;t t
10070 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10071 s,@builddir@,$ac_builddir,;t t
10072 s,@abs_builddir@,$ac_abs_builddir,;t t
10073 s,@top_builddir@,$ac_top_builddir,;t t
10074 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10075 s,@INSTALL@,$ac_INSTALL,;t t
10076 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10077 rm -f $tmp/stdin
10078 if test x"$ac_file" != x-; then
10079 mv $tmp/out $ac_file
10080 else
10081 cat $tmp/out
10082 rm -f $tmp/out
10085 done
10086 _ACEOF
10087 cat >>$CONFIG_STATUS <<\_ACEOF
10090 # CONFIG_HEADER section.
10093 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10094 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10096 # ac_d sets the value in "#define NAME VALUE" lines.
10097 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10098 ac_dB='[ ].*$,\1#\2'
10099 ac_dC=' '
10100 ac_dD=',;t'
10101 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10102 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10103 ac_uB='$,\1#\2define\3'
10104 ac_uC=' '
10105 ac_uD=',;t'
10107 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10108 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10109 case $ac_file in
10110 - | *:- | *:-:* ) # input from stdin
10111 cat >$tmp/stdin
10112 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10113 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10114 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10115 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10116 * ) ac_file_in=$ac_file.in ;;
10117 esac
10119 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10120 echo "$as_me: creating $ac_file" >&6;}
10122 # First look for the input files in the build tree, otherwise in the
10123 # src tree.
10124 ac_file_inputs=`IFS=:
10125 for f in $ac_file_in; do
10126 case $f in
10127 -) echo $tmp/stdin ;;
10128 [\\/$]*)
10129 # Absolute (can't be DOS-style, as IFS=:)
10130 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10131 echo "$as_me: error: cannot find input file: $f" >&2;}
10132 { (exit 1); exit 1; }; }
10133 # Do quote $f, to prevent DOS paths from being IFS'd.
10134 echo "$f";;
10135 *) # Relative
10136 if test -f "$f"; then
10137 # Build tree
10138 echo "$f"
10139 elif test -f "$srcdir/$f"; then
10140 # Source tree
10141 echo "$srcdir/$f"
10142 else
10143 # /dev/null tree
10144 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10145 echo "$as_me: error: cannot find input file: $f" >&2;}
10146 { (exit 1); exit 1; }; }
10147 fi;;
10148 esac
10149 done` || { (exit 1); exit 1; }
10150 # Remove the trailing spaces.
10151 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10153 _ACEOF
10155 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10156 # `conftest.undefs', that substitutes the proper values into
10157 # config.h.in to produce config.h. The first handles `#define'
10158 # templates, and the second `#undef' templates.
10159 # And first: Protect against being on the right side of a sed subst in
10160 # config.status. Protect against being in an unquoted here document
10161 # in config.status.
10162 rm -f conftest.defines conftest.undefs
10163 # Using a here document instead of a string reduces the quoting nightmare.
10164 # Putting comments in sed scripts is not portable.
10166 # `end' is used to avoid that the second main sed command (meant for
10167 # 0-ary CPP macros) applies to n-ary macro definitions.
10168 # See the Autoconf documentation for `clear'.
10169 cat >confdef2sed.sed <<\_ACEOF
10170 s/[\\&,]/\\&/g
10171 s,[\\$`],\\&,g
10172 t clear
10173 : clear
10174 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10175 t end
10176 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10177 : end
10178 _ACEOF
10179 # If some macros were called several times there might be several times
10180 # the same #defines, which is useless. Nevertheless, we may not want to
10181 # sort them, since we want the *last* AC-DEFINE to be honored.
10182 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10183 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10184 rm -f confdef2sed.sed
10186 # This sed command replaces #undef with comments. This is necessary, for
10187 # example, in the case of _POSIX_SOURCE, which is predefined and required
10188 # on some systems where configure will not decide to define it.
10189 cat >>conftest.undefs <<\_ACEOF
10190 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10191 _ACEOF
10193 # Break up conftest.defines because some shells have a limit on the size
10194 # of here documents, and old seds have small limits too (100 cmds).
10195 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10196 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10197 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10198 echo ' :' >>$CONFIG_STATUS
10199 rm -f conftest.tail
10200 while grep . conftest.defines >/dev/null
10202 # Write a limited-size here document to $tmp/defines.sed.
10203 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10204 # Speed up: don't consider the non `#define' lines.
10205 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10206 # Work around the forget-to-reset-the-flag bug.
10207 echo 't clr' >>$CONFIG_STATUS
10208 echo ': clr' >>$CONFIG_STATUS
10209 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10210 echo 'CEOF
10211 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10212 rm -f $tmp/in
10213 mv $tmp/out $tmp/in
10214 ' >>$CONFIG_STATUS
10215 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10216 rm -f conftest.defines
10217 mv conftest.tail conftest.defines
10218 done
10219 rm -f conftest.defines
10220 echo ' fi # grep' >>$CONFIG_STATUS
10221 echo >>$CONFIG_STATUS
10223 # Break up conftest.undefs because some shells have a limit on the size
10224 # of here documents, and old seds have small limits too (100 cmds).
10225 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10226 rm -f conftest.tail
10227 while grep . conftest.undefs >/dev/null
10229 # Write a limited-size here document to $tmp/undefs.sed.
10230 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10231 # Speed up: don't consider the non `#undef'
10232 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10233 # Work around the forget-to-reset-the-flag bug.
10234 echo 't clr' >>$CONFIG_STATUS
10235 echo ': clr' >>$CONFIG_STATUS
10236 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10237 echo 'CEOF
10238 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10239 rm -f $tmp/in
10240 mv $tmp/out $tmp/in
10241 ' >>$CONFIG_STATUS
10242 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10243 rm -f conftest.undefs
10244 mv conftest.tail conftest.undefs
10245 done
10246 rm -f conftest.undefs
10248 cat >>$CONFIG_STATUS <<\_ACEOF
10249 # Let's still pretend it is `configure' which instantiates (i.e., don't
10250 # use $as_me), people would be surprised to read:
10251 # /* config.h. Generated by config.status. */
10252 if test x"$ac_file" = x-; then
10253 echo "/* Generated by configure. */" >$tmp/config.h
10254 else
10255 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10257 cat $tmp/in >>$tmp/config.h
10258 rm -f $tmp/in
10259 if test x"$ac_file" != x-; then
10260 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10261 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10262 echo "$as_me: $ac_file is unchanged" >&6;}
10263 else
10264 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10266 X"$ac_file" : 'X\(//\)[^/]' \| \
10267 X"$ac_file" : 'X\(//\)$' \| \
10268 X"$ac_file" : 'X\(/\)' \| \
10269 . : '\(.\)' 2>/dev/null ||
10270 echo X"$ac_file" |
10271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10273 /^X\(\/\/\)$/{ s//\1/; q; }
10274 /^X\(\/\).*/{ s//\1/; q; }
10275 s/.*/./; q'`
10276 { if $as_mkdir_p; then
10277 mkdir -p "$ac_dir"
10278 else
10279 as_dir="$ac_dir"
10280 as_dirs=
10281 while test ! -d "$as_dir"; do
10282 as_dirs="$as_dir $as_dirs"
10283 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10285 X"$as_dir" : 'X\(//\)[^/]' \| \
10286 X"$as_dir" : 'X\(//\)$' \| \
10287 X"$as_dir" : 'X\(/\)' \| \
10288 . : '\(.\)' 2>/dev/null ||
10289 echo X"$as_dir" |
10290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10292 /^X\(\/\/\)$/{ s//\1/; q; }
10293 /^X\(\/\).*/{ s//\1/; q; }
10294 s/.*/./; q'`
10295 done
10296 test ! -n "$as_dirs" || mkdir $as_dirs
10297 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10298 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10299 { (exit 1); exit 1; }; }; }
10301 rm -f $ac_file
10302 mv $tmp/config.h $ac_file
10304 else
10305 cat $tmp/config.h
10306 rm -f $tmp/config.h
10308 done
10309 _ACEOF
10310 cat >>$CONFIG_STATUS <<\_ACEOF
10313 # CONFIG_COMMANDS section.
10315 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10316 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10317 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10318 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10319 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10320 X"$ac_dest" : 'X\(//\)[^/]' \| \
10321 X"$ac_dest" : 'X\(//\)$' \| \
10322 X"$ac_dest" : 'X\(/\)' \| \
10323 . : '\(.\)' 2>/dev/null ||
10324 echo X"$ac_dest" |
10325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10327 /^X\(\/\/\)$/{ s//\1/; q; }
10328 /^X\(\/\).*/{ s//\1/; q; }
10329 s/.*/./; q'`
10330 { if $as_mkdir_p; then
10331 mkdir -p "$ac_dir"
10332 else
10333 as_dir="$ac_dir"
10334 as_dirs=
10335 while test ! -d "$as_dir"; do
10336 as_dirs="$as_dir $as_dirs"
10337 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10339 X"$as_dir" : 'X\(//\)[^/]' \| \
10340 X"$as_dir" : 'X\(//\)$' \| \
10341 X"$as_dir" : 'X\(/\)' \| \
10342 . : '\(.\)' 2>/dev/null ||
10343 echo X"$as_dir" |
10344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10346 /^X\(\/\/\)$/{ s//\1/; q; }
10347 /^X\(\/\).*/{ s//\1/; q; }
10348 s/.*/./; q'`
10349 done
10350 test ! -n "$as_dirs" || mkdir $as_dirs
10351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10353 { (exit 1); exit 1; }; }; }
10355 ac_builddir=.
10357 if test "$ac_dir" != .; then
10358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10359 # A "../" for each directory in $ac_dir_suffix.
10360 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10361 else
10362 ac_dir_suffix= ac_top_builddir=
10365 case $srcdir in
10366 .) # No --srcdir option. We are building in place.
10367 ac_srcdir=.
10368 if test -z "$ac_top_builddir"; then
10369 ac_top_srcdir=.
10370 else
10371 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10372 fi ;;
10373 [\\/]* | ?:[\\/]* ) # Absolute path.
10374 ac_srcdir=$srcdir$ac_dir_suffix;
10375 ac_top_srcdir=$srcdir ;;
10376 *) # Relative path.
10377 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10378 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10379 esac
10381 # Do not use `cd foo && pwd` to compute absolute paths, because
10382 # the directories may not exist.
10383 case `pwd` in
10384 .) ac_abs_builddir="$ac_dir";;
10386 case "$ac_dir" in
10387 .) ac_abs_builddir=`pwd`;;
10388 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10389 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10390 esac;;
10391 esac
10392 case $ac_abs_builddir in
10393 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10395 case ${ac_top_builddir}. in
10396 .) ac_abs_top_builddir=$ac_abs_builddir;;
10397 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10398 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10399 esac;;
10400 esac
10401 case $ac_abs_builddir in
10402 .) ac_abs_srcdir=$ac_srcdir;;
10404 case $ac_srcdir in
10405 .) ac_abs_srcdir=$ac_abs_builddir;;
10406 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10407 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10408 esac;;
10409 esac
10410 case $ac_abs_builddir in
10411 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10413 case $ac_top_srcdir in
10414 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10415 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10416 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10417 esac;;
10418 esac
10421 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10422 echo "$as_me: executing $ac_dest commands" >&6;}
10423 case $ac_dest in
10424 default ) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
10425 esac
10426 done
10427 _ACEOF
10429 cat >>$CONFIG_STATUS <<\_ACEOF
10431 { (exit 0); exit 0; }
10432 _ACEOF
10433 chmod +x $CONFIG_STATUS
10434 ac_clean_files=$ac_clean_files_save
10437 # configure is writing to config.log, and then calls config.status.
10438 # config.status does its own redirection, appending to config.log.
10439 # Unfortunately, on DOS this fails, as config.log is still kept open
10440 # by configure, so config.status won't be able to write to it; its
10441 # output is simply discarded. So we exec the FD to /dev/null,
10442 # effectively closing config.log, so it can be properly (re)opened and
10443 # appended to by config.status. When coming back to configure, we
10444 # need to make the FD available again.
10445 if test "$no_create" != yes; then
10446 ac_cs_success=:
10447 ac_config_status_args=
10448 test "$silent" = yes &&
10449 ac_config_status_args="$ac_config_status_args --quiet"
10450 exec 5>/dev/null
10451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10452 exec 5>>config.log
10453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10454 # would make configure fail if this is the last instruction.
10455 $ac_cs_success || { (exit 1); exit 1; }